modelica / Reference-FMUs

Functional Mock-up Units for development, testing and debugging
Other
143 stars 60 forks source link

Wrong behaviour before first doStep #593

Open MarcoFilimonE opened 3 hours ago

MarcoFilimonE commented 3 hours ago

FMI version: 3.0 fmusim version: 0.0.34

I have a FMU with one input and one output. The problem observed is that before the first doStep, I was expecting to see only one command for getting the output and one for setting the input (this is at least what I saw with the previous versions of fmusim), but as we can see in the below screenshot, 2 extra GET commands are being called. Is this the expected behaviour?

image

fmusim version 0.0.32 behaviour for the same FMU image

FMU + input.csv: SimpleExample.zip input.csv

Simply run the FMU with --input-file input.csv to observe the problem.

t-sommer commented 2 hours ago

It's sampling the initial values. What's exactly wrong with the call sequence?