OpenModelica icon indicating copy to clipboard operation
OpenModelica copied to clipboard

Exported CSV from plot has repeated rows 3 times, when ever a "Modelica.Blocks.Sources" starts at the given "starttime" or ends after the specified duration

Open Vivek106singh opened this issue 4 years ago • 1 comments

Description

When I export a varible to CSV file, If the model has a "Modelica.Blocks.Sources" the varible value is repeated 3 time in 3 rows at the specified "starttime" and after the end of the duration

Steps to Reproduce

Run the model "ThermoPower.Test.DistributedParameterComponents.TestWaterFlow1DFV2ph" export any variable, in the below example I have exported "hexFV.outfl.p" the "extTemp2" component image The CSV values at the 500 S the "start time of "extTemp2" and end time are give in table

498 5991429  
500 5991429  
500 5991429  
500 5991429  
502 5980942  
504 5955649  
598 5068558
600 5027974
600 5027974
600 5027974
602 5001420

Expected Behavior

Screenshots

Version and OS

  • OpenModelica Version: 1.18, 1.19
  • OS: Windows 10, 64 bit
  • Versions of used Modelica libraries if applicable

Additional Context

Vivek106singh avatar Dec 16 '21 06:12 Vivek106singh

This is not the problem of exported csv. The actual result file has repeated time values. Exported CSV is just a subset of the actual result file.

Go to Simulation Setup->Output and choose csv as Output Format, simulate the model and see the time values in the actual result file.

adeas31 avatar Mar 21 '22 12:03 adeas31