Opened 4 years ago

Last modified 3 years ago

#6354 accepted defect

Result file from OMSimulator contains all lines in double

Reported by: jean-philippe.tavella@… 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)

stairBouncingBall_res.csv (314.3 KB ) - added by jean-philippe.tavella@… 4 years ago.

Download all attachments as: .zip

Change History (6)

by jean-philippe.tavella@…, 4 years ago

Attachment: stairBouncingBall_res.csv added

comment:1 by Francesco Casella, 4 years ago

Milestone: 1.17.01.18.0

Retargeted to 1.18.0 because of 1.17.0 timed release.

comment:2 by Lennart Ochel, 4 years ago

Status: newaccepted

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 Lennart Ochel, 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 Francesco Casella, 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.

comment:5 by Francesco Casella, 3 years ago

Milestone: 1.18.0

Ticket retargeted after milestone closed

Note: See TracTickets for help on using tickets.