modelica-tools / FMUComplianceChecker

FMI Compliance Checker for validation of FMUs 1.0 and 2.0
BSD 3-Clause "New" or "Revised" License
42 stars 31 forks source link

End of simulation time not propagated for FMUs 2.0 for co-simulation #61

Open tsnouidui opened 3 years ago

tsnouidui commented 3 years ago

The latest version of FMUChecker (2.0.4) seems to not propagate the simulation stop time to FMUs 2.0 for co-simulation.

The following line indicates that the last argument of fmi2_import_setup_experiment() is set to 0 as opposed to tEnd.

https://github.com/modelica-tools/FMUComplianceChecker/blob/f0fd0b2ca78c415a725b028deec46c1962799f1d/src/FMI2/fmi2_cs_sim.c#L50

Consequently, FMUChecker will not use the stop time provided as parameter. Changing the value to tEnd will lead to the correct behavior.