Opened 3 years ago

Last modified 3 years ago

#6344 accepted discussion

How to reopen the .csv file of a SSP model run?

Reported by: jean-philippe.tavella@… Owned by: lochel
Priority: high Milestone:
Component: OMSimulator Version: v1.17.0-dev
Keywords: Cc: arun3688

Description

This thread of discussion is related to SSP runs (OMSimulator).
I'm not able to identify the .csv file containing all variables after the run of s SSP model.
I see the results in the viewer but where is the .csv file (name, location) for post-morten visualization?

Second question: is there somewhere some information related to a SSP model run (simulation time, time for FMU loading, etc.)?

Attachments (1)

resultfile.png (105.0 KB) - added by lochel 3 years ago.

Download all attachments as: .zip

Change History (10)

comment:1 Changed 3 years ago by casella

  • Milestone changed from NeedsInput to 1.17.0
  • Owner changed from casella to lochel
  • Status changed from new to assigned

comment:2 Changed 3 years ago by casella

  • Cc arun3688 added

@lochel, @arun3688, could you please take care of this issue? It would also be good to add this info to the documentation.

Thanks!

comment:3 follow-up: Changed 3 years ago by lochel

  • Status changed from assigned to accepted

The result file is generated in OMEdit's temp directory. For me (on linux) it is in /tmp/OpenModelica_lochel/OMEdit. OMEdit has also an option to export csv files with the variables visible in the plot window.

There is a flag called --wallTime that includes time information for each component of the composite model. If using OMEdit, you can define such flags in Tools -> Options -> OMSimulator/SSP -> 'Command Line Options'-text box -> --wallTime=true

comment:4 in reply to: ↑ 3 Changed 3 years ago by jean-philippe.tavella@…

Replying to lochel:

The result file is generated in OMEdit's temp directory. For me (on linux) it is in /tmp/OpenModelica_lochel/OMEdit. OMEdit has also an option to export csv files with the variables visible in the plot window.

I work on Windows. I see an omslog.txt file containing information on the temp & working directory used being in my case C:/Users\a37619\AppData\Local\Temp\OpenModelica\OMEdit
After the run on my SSP named tankYPipeOM.ssp, I get a new file tankYPipeOM_res in this folder being an Access file (I cannot open it). But no .csv file is visible...

There is a flag called --wallTime that includes time information for each component of the composite model. If using OMEdit, you can define such flags in Tools -> Options -> OMSimulator/SSP -> 'Command Line Options'-text box -> --wallTime=true

I see the effect of flag --wallTime=true but some global statistics on time for loading FMUs, time in state Initialization for all FMUs, time in stepping mode, time for termination would be helpful...

comment:5 follow-up: Changed 3 years ago by lochel

You have to change the result file format to the csv format. By default, OMSimulator simulations will generate mat files which are sort of compressed and therefore smaller.

We can certainly provide more global statistics on timing. You can create a github issue and state your requirements a bit more in detail: https://github.com/OpenModelica/OMSimulator/issues/new/choose

comment:6 Changed 3 years ago by lochel


Changed 3 years ago by lochel

comment:7 in reply to: ↑ 5 Changed 3 years ago by jean-philippe.tavella@…

Replying to lochel:

You have to change the result file format to the csv format. By default, OMSimulator simulations will generate mat files which are sort of compressed and therefore smaller.

When I do as you propose (under Windows) I get this error message:
[5] 11:44:42 Ecriture Erreur
Failed to open simulation result C:/Users/a37619/AppData/Local/Temp/OpenModelica/OMEdit/stairBouncingBall_res.csv:
And no results are visible in the OMPlot window.
I found the reason for failure: in the csv file, the first line is to be removed and then the file can be opened in OMPlot. This line is simply this one: "sep=,"

We can certainly provide more global statistics on timing. You can create a github issue and state your requirements a bit more in detail: https://github.com/OpenModelica/OMSimulator/issues/new/choose

comment:8 Changed 3 years ago by casella

  • Milestone changed from 1.17.0 to 1.18.0

Retargeted to 1.18.0 because of 1.17.0 timed release.

comment:9 Changed 3 years ago by casella

  • Milestone 1.18.0 deleted

Ticket retargeted after milestone closed

Note: See TracTickets for help on using tickets.