Opened 4 years ago
Last modified 3 years ago
#6354 accepted defect
Result file from OMSimulator contains all lines in double
Reported by: | Owned by: | Lennart Ochel | |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | OMSimulator | Version: | 1.16.0 |
Keywords: | Cc: |
Description
Result file from OMSimulator contains all lines in double.
As an example I attach a .csv from a run of a SSP model and each line are doubled.
For optimization purpose, a single line should be anough, should'nt it?
Attachments (1)
Change History (6)
by , 4 years ago
Attachment: | stairBouncingBall_res.csv added |
---|
comment:1 by , 4 years ago
Milestone: | 1.17.0 → 1.18.0 |
---|
comment:2 by , 4 years ago
Status: | new → accepted |
---|
The reason for it is that each time point in the result file is a communication time point with potential discrete changes. There is a flag which can be used to suppress having both left-hand and right-hand side in the result file.
--emitEvents=<bool> Specifies whether events should be emitted or not ([true], false)
https://openmodelica.org/doc/OMSimulator/master/html/OMSimulator.html#omsimulator-flags
comment:3 by , 4 years ago
Comment by Jean Philippe:
I agree on the idea that communication time points may have potential discrete changes. But it is not efficient to systematically double all the points because the .csv file may be this way unnecessarily heavy for very long/large simulations.
With DNG for example, only communication times corresponding to event times are duplicated. And in this case, we have one line per discrete change, possibly more than 2 lines.
E.g. with 3 discrete changes, we have 4 lines with the same timestamp.
comment:4 by , 4 years ago
If I am not mistaken, simulation outputs from the regular simulation runtimes double the data points only for time points corresponding to events. I guess OMSimulator should do the same.
Retargeted to 1.18.0 because of 1.17.0 timed release.