controllab / fmi-export-20sim

FMI export code generation template for 20-sim
GNU General Public License v3.0
3 stars 4 forks source link

Endless simulation parameter is ignored #18

Closed LordTy closed 7 years ago

LordTy commented 8 years ago

When the endless simulation is set (Run Properties > More > Endless) and a FMI model is exported. The model still stops simulation after the finish time. While one would expect the model to continue indefinitely.

This happens on version 4.6.1 (build 6898)

margro commented 8 years ago

The endless setting there is not exported during code generation to an FMU. I've added a feature request for this to our bug tracker.

According to the standard, the co-simulation engine should be able to request an endless simulation using the 'stopTimeDefined argument of the fmi2SetupExperiment() function. The template in 20-sim 4.6.1 does not yet react on this boolean. This is already fixed in the master branch of this repository and will be fixed in 20-sim 4.6.2 too.

margro commented 7 years ago

I'm closing this issue here since the endless simulation part in the exported FMU should work fine now in 20-sim 4.6.2 and above. For an FMU, you will need to use the stopTimeDefined argument from the fmi2SetupExperiment() function.

Note that the feature request for exporting the 20-sim setting is still open in our bug tracker.