modelica / Reference-FMUs

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

'fmusim' incorrect results for ME FMUs #489

Closed Maplesoft-fmigroup closed 1 month ago

Maplesoft-fmigroup commented 2 months ago

The results from running 'fmusim' on ModelExchange CoupledClutches FMUs (FMI2 and FMI3) do NOT match the (expected) results from FMPy and the old FMUChecker. The issue is reproducible with both MWorks and MapleSim FMUs. Based on logging information, the main difference seems to be that the 'fmusim' tool calls fmi2SetContinuousStates(x={0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, nx=18) -> OK upon entering ContinuousTimeMode for the first time but not all of the states have start=0. Should it not call fmi2GetContinuousStates first?