Reference-FMUs icon indicating copy to clipboard operation
Reference-FMUs copied to clipboard

'fmusim' incorrect results for ME FMUs

Open Maplesoft-fmigroup opened this issue 9 months ago • 0 comments

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?

Maplesoft-fmigroup avatar May 08 '24 13:05 Maplesoft-fmigroup