modelon-community / fmi-library

C library for importing FMUs
Other
108 stars 34 forks source link

OpenModelica CS FMU Import fail #123

Open VictorHSalvador opened 3 weeks ago

VictorHSalvador commented 3 weeks ago

Hi. I'm trying to import a CS FMU from OpenModelica, but I'm getting some trouble with events on the FMU. I'm testing with a model that only has a pulse signal of 2 seconds of period. When the pulse change your value from 5 to 0, the doStep function identify a event and don't threat him, getting a error flag. How I bypass this?

I try the same with a CS FMU from the software System Modeler and this one could do the simulation complete, but I believe that this was possible because the function to check events are obsolete on System Modeler FMU (the message "Call to obsolete checkNewEventsZC has no effect"), so the code don't process events.

I'm working with fmi2 and my log message is:

./bin/simulate_fmu module = FMILIB, log level = VERBOSE: Allocating FMIL context module = FMILIB, log level = VERBOSE: Detecting FMI standard version module = FMIZIP, log level = VERBOSE: Unpacking FMU into /home/asturian3/Projects/Asturian/Sandbox/Asturian/development/2024-002-FMULibAppTest/fmu/temporaryFMU_JdM1qM module = FMIXML, log level = VERBOSE: Parsing XML to detect FMI standard version module = FMIXML, log level = VERBOSE: XML specifies FMI 2.0 module = FMILIB, log level = INFO: XML specifies FMI standard version 2.0 module = FMILIB, log level = VERBOSE: Parsing model description XML module = FMI2XML, log level = VERBOSE: Parsing XML element fmiModelDescription module = FMI2XML, log level = VERBOSE: Parsing XML element CoSimulation module = FMI2XML, log level = VERBOSE: Parsing XML element UnitDefinitions module = FMI2XML, log level = VERBOSE: Parsing XML element LogCategories module = FMI2XML, log level = VERBOSE: Parsing XML element ModelVariables module = FMI2XML, log level = VERBOSE: Building alias index module = FMI2XML, log level = VERBOSE: Variables y and ramp.y reference the same vr 7. Marking 'ramp.y' as alias. module = FMI2XML, log level = VERBOSE: Variables y1 and pulse.y reference the same vr 8. Marking 'pulse.y' as alias. module = FMI2XML, log level = VERBOSE: Parsing XML element ModelStructure module = FMI2XML, log level = VERBOSE: Parsing XML element Outputs module = FMI2XML, log level = VERBOSE: Parsing XML element InitialUnknowns module = FMILIB, log level = VERBOSE: Parsing finished successfully module = FMILIB, log level = INFO: Loading 'linux64' binary with 'default' platform types module = FMICAPI, log level = VERBOSE: Loaded FMU binary from /home/asturian3/Projects/Asturian/Sandbox/Asturian/development/2024-002-FMULibAppTest/fmu/temporaryFMU_JdM1qM/binaries/linux64/OM_008_1Ramp1Pulse.so module = FMICAPI, log level = VERBOSE: Loading functions for the co-simulation interface module = FMILIB, log level = VERBOSE: Successfully loaded all the interface functions Number of simulation values and reference values are different Version returned from FMU: 2.0 module = FMICAPI, log level = VERBOSE: Calling fmi2GetModelTypesPlatform Platform type returned: default FMU NAME: OM_008_1Ramp1Pulse GUID: {65845a16-b335-46ac-9669-1ab9c5d9d082}

Number of variables: 24

Variable 0: name = der(_D_outputAlias_y), causality = local, valueReference = 0 Variable 1: name = der(_D_outputAlias_y1), causality = local, valueReference = 1 Variable 2: name = _D_outputAlias_y, causality = local, valueReference = 2 Variable 3: name = _D_outputAlias_y1, causality = local, valueReference = 3 Variable 4: name = _D_y1_der, causality = local, valueReference = 4 Variable 5: name = _D_y_der, causality = local, valueReference = 5 Variable 6: name = pulse.T_width, causality = local, valueReference = 6 Variable 7: name = y, causality = output, valueReference = 7 Variable 8: name = y1, causality = output, valueReference = 8 Variable 9: name = pulse.T_start, causality = local, valueReference = 9 Variable 10: name = pulse.amplitude, causality = calculated_parameter, valueReference = 10 Variable 11: name = pulse.offset, causality = calculated_parameter, valueReference = 11 Variable 12: name = pulse.period, causality = calculated_parameter, valueReference = 12 Variable 13: name = pulse.startTime, causality = calculated_parameter, valueReference = 13 Variable 14: name = pulse.width, causality = calculated_parameter, valueReference = 14 Variable 15: name = ramp.duration, causality = calculated_parameter, valueReference = 15 Variable 16: name = ramp.height, causality = calculated_parameter, valueReference = 16 Variable 17: name = ramp.offset, causality = calculated_parameter, valueReference = 17 Variable 18: name = ramp.startTime, causality = calculated_parameter, valueReference = 18 Variable 19: name = pulse.y, causality = local, valueReference = 8 Variable 20: name = ramp.y, causality = local, valueReference = 7 Variable 21: name = pulse.count, causality = local, valueReference = 0 Variable 22: name = pulse.nperiod, causality = calculated_parameter, valueReference = 1 Variable 23: name = _D_whenCondition1, causality = local, valueReference = 0

module = Test CS model instance, log level = INFO: [logAll][FMU status:OK] fmi2Instantiate: Trying to find simulation settings /home/asturian3/Projects/Asturian/Sandbox/Asturian/development/2024-002-FMULibAppTest/fmu/temporaryFMU_JdM1qM/resources/OM_008_1Ramp1Pulse_flags.json. module = Test CS model instance, log level = INFO: [logAll][FMU status:OK] fmi2Instantiate: Using default simulation settings. module = Test CS model instance, log level = INFO: [logAll][FMU status:OK] fmi2Instantiate: No states present, continuing without ODE solver. module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] fmi2Instantiate: GUID={65845a16-b335-46ac-9669-1ab9c5d9d082} module = FMICAPI, log level = VERBOSE: Calling fmi2SetupExperiment module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] fmi2SetupExperiment: toleranceDefined=1 tolerance=0.0001 startTime=0 stopTimeDefined=0 stopTime=10 module = FMICAPI, log level = VERBOSE: Calling fmi2EnterInitializationMode module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] fmi2EnterInitializationMode... module = FMICAPI, log level = VERBOSE: Calling fmi2ExitInitializationMode module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] fmi2ExitInitializationMode... module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] fmi2EnterInitializationMode: succeed module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] fmi2ExitInitializationMode: succeed module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] internalEventUpdate: Start Event Update! Next Sample Event 0 module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] internalEventUpdate: newDiscreteStatesNeeded false module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] internalEventUpdate: Checked for Sample Events! Next Sample Event 0 module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] fmi2GetEventIndicators: z0 = -1 module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] fmi2GetEventIndicators: z1 = -1 module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] fmi2GetEventIndicators: z2 = -1 module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] fmi2GetEventIndicators: z3 = 1 module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] fmi2GetEventIndicators: z4 = 1 module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] fmi2CompletedIntegratorStep module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] fmi2GetEventIndicators: z0 = -1 module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] fmi2GetEventIndicators: z1 = -1 module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] fmi2GetEventIndicators: z2 = -1 module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] fmi2GetEventIndicators: z3 = 1 module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] fmi2GetEventIndicators: z4 = 1 module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] fmi2GetReal: y1 = 5 Variável real: 5.000000 module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] internalEventUpdate: Start Event Update! Next Sample Event 0 module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] internalEventUpdate: newDiscreteStatesNeeded false module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] internalEventUpdate: Checked for Sample Events! Next Sample Event 0 module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] fmi2GetEventIndicators: z0 = -1 module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] fmi2GetEventIndicators: z1 = -1 module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] fmi2GetEventIndicators: z2 = -1 module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] fmi2GetEventIndicators: z3 = 1 module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] fmi2GetEventIndicators: z4 = 1 module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] fmi2CompletedIntegratorStep module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] fmi2GetEventIndicators: z0 = -1 module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] fmi2GetEventIndicators: z1 = -1 module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] fmi2GetEventIndicators: z2 = -1 module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] fmi2GetEventIndicators: z3 = 1 module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] fmi2GetEventIndicators: z4 = 1 module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] fmi2GetReal: y1 = 5 Variável real: 5.000000 module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] internalEventUpdate: Start Event Update! Next Sample Event 0 module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] internalEventUpdate: newDiscreteStatesNeeded false module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] internalEventUpdate: Checked for Sample Events! Next Sample Event 0 module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] fmi2GetEventIndicators: z0 = -1 module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] fmi2GetEventIndicators: z1 = -1 module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] fmi2GetEventIndicators: z2 = -1 module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] fmi2GetEventIndicators: z3 = 1 module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] fmi2GetEventIndicators: z4 = 1 module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] fmi2CompletedIntegratorStep module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] fmi2GetEventIndicators: z0 = -1 module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] fmi2GetEventIndicators: z1 = -1 module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] fmi2GetEventIndicators: z2 = -1 module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] fmi2GetEventIndicators: z3 = 1 module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] fmi2GetEventIndicators: z4 = 1 module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] fmi2GetReal: y1 = 5 Variável real: 5.000000 module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] internalEventUpdate: Start Event Update! Next Sample Event 0 module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] internalEventUpdate: newDiscreteStatesNeeded false module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] internalEventUpdate: Checked for Sample Events! Next Sample Event 0 module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] fmi2GetEventIndicators: z0 = -1 module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] fmi2GetEventIndicators: z1 = -1 module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] fmi2GetEventIndicators: z2 = -1 module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] fmi2GetEventIndicators: z3 = 1 module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] fmi2GetEventIndicators: z4 = 1 module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] fmi2CompletedIntegratorStep module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] fmi2GetEventIndicators: z0 = -1 module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] fmi2GetEventIndicators: z1 = -1 module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] fmi2GetEventIndicators: z2 = -1 module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] fmi2GetEventIndicators: z3 = 1 module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] fmi2GetEventIndicators: z4 = 1 module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] fmi2GetReal: y1 = 5 Variável real: 5.000000 module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] internalEventUpdate: Start Event Update! Next Sample Event 0 module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] internalEventUpdate: newDiscreteStatesNeeded false module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] internalEventUpdate: Checked for Sample Events! Next Sample Event 0 module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] fmi2GetEventIndicators: z0 = -1 module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] fmi2GetEventIndicators: z1 = -1 module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] fmi2GetEventIndicators: z2 = -1 module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] fmi2GetEventIndicators: z3 = 1 module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] fmi2GetEventIndicators: z4 = 1 module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] fmi2CompletedIntegratorStep module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] fmi2GetEventIndicators: z0 = -1 module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] fmi2GetEventIndicators: z1 = -1 module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] fmi2GetEventIndicators: z2 = -1 module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] fmi2GetEventIndicators: z3 = 1 module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] fmi2GetEventIndicators: z4 = 1 module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] fmi2GetReal: y1 = 5 Variável real: 5.000000 module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] internalEventUpdate: Start Event Update! Next Sample Event 0 module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] internalEventUpdate: newDiscreteStatesNeeded false module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] internalEventUpdate: Checked for Sample Events! Next Sample Event 0 module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] fmi2GetEventIndicators: z0 = -1 module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] fmi2GetEventIndicators: z1 = -1 module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] fmi2GetEventIndicators: z2 = -1 module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] fmi2GetEventIndicators: z3 = 1 module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] fmi2GetEventIndicators: z4 = 1 module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] fmi2CompletedIntegratorStep module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] fmi2GetEventIndicators: z0 = -1 module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] fmi2GetEventIndicators: z1 = -1 module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] fmi2GetEventIndicators: z2 = -1 module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] fmi2GetEventIndicators: z3 = 1 module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] fmi2GetEventIndicators: z4 = 1 module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] fmi2GetReal: y1 = 5 Variável real: 5.000000 module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] internalEventUpdate: Start Event Update! Next Sample Event 0 module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] internalEventUpdate: newDiscreteStatesNeeded false module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] internalEventUpdate: Checked for Sample Events! Next Sample Event 0 module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] fmi2GetEventIndicators: z0 = -1 module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] fmi2GetEventIndicators: z1 = -1 module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] fmi2GetEventIndicators: z2 = -1 module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] fmi2GetEventIndicators: z3 = 1 module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] fmi2GetEventIndicators: z4 = 1 module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] fmi2CompletedIntegratorStep module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] fmi2GetEventIndicators: z0 = -1 module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] fmi2GetEventIndicators: z1 = -1 module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] fmi2GetEventIndicators: z2 = -1 module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] fmi2GetEventIndicators: z3 = 1 module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] fmi2GetEventIndicators: z4 = 1 module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] fmi2GetReal: y1 = 5 Variável real: 5.000000 module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] internalEventUpdate: Start Event Update! Next Sample Event 0 module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] internalEventUpdate: newDiscreteStatesNeeded false module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] internalEventUpdate: Checked for Sample Events! Next Sample Event 0 module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] fmi2GetEventIndicators: z0 = -1 module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] fmi2GetEventIndicators: z1 = -1 module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] fmi2GetEventIndicators: z2 = -1 module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] fmi2GetEventIndicators: z3 = 1 module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] fmi2GetEventIndicators: z4 = 1 module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] fmi2CompletedIntegratorStep module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] fmi2GetEventIndicators: z0 = -1 module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] fmi2GetEventIndicators: z1 = -1 module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] fmi2GetEventIndicators: z2 = -1 module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] fmi2GetEventIndicators: z3 = 1 module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] fmi2GetEventIndicators: z4 = 1 module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] fmi2GetReal: y1 = 5 Variável real: 5.000000 module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] internalEventUpdate: Start Event Update! Next Sample Event 0 module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] internalEventUpdate: newDiscreteStatesNeeded false module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] internalEventUpdate: Checked for Sample Events! Next Sample Event 0 module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] fmi2GetEventIndicators: z0 = -1 module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] fmi2GetEventIndicators: z1 = -1 module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] fmi2GetEventIndicators: z2 = -1 module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] fmi2GetEventIndicators: z3 = 1 module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] fmi2GetEventIndicators: z4 = 1 module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] fmi2CompletedIntegratorStep module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] fmi2GetEventIndicators: z0 = -1 module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] fmi2GetEventIndicators: z1 = -1 module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] fmi2GetEventIndicators: z2 = -1 module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] fmi2GetEventIndicators: z3 = 1 module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] fmi2GetEventIndicators: z4 = 1 module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] fmi2GetReal: y1 = 5 Variável real: 5.000000 module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] internalEventUpdate: Start Event Update! Next Sample Event 0 module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] internalEventUpdate: newDiscreteStatesNeeded false module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] internalEventUpdate: Checked for Sample Events! Next Sample Event 0 module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] fmi2GetEventIndicators: z0 = -1 module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] fmi2GetEventIndicators: z1 = -1 module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] fmi2GetEventIndicators: z2 = -1 module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] fmi2GetEventIndicators: z3 = 1 module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] fmi2GetEventIndicators: z4 = 1 module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] fmi2CompletedIntegratorStep module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] fmi2GetEventIndicators: z0 = -1 module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] fmi2GetEventIndicators: z1 = -1 module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] fmi2GetEventIndicators: z2 = -1 module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] fmi2GetEventIndicators: z3 = 1 module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] fmi2GetEventIndicators: z4 = 1 module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] fmi2GetReal: y1 = 5 Variável real: 5.000000 module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] internalEventUpdate: Start Event Update! Next Sample Event 0 module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] internalEventUpdate: newDiscreteStatesNeeded false module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] internalEventUpdate: Checked for Sample Events! Next Sample Event 0 module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] fmi2GetEventIndicators: z0 = -1 module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] fmi2GetEventIndicators: z1 = -1 module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] fmi2GetEventIndicators: z2 = -1 module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] fmi2GetEventIndicators: z3 = 1 module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] fmi2GetEventIndicators: z4 = 1 module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] fmi2CompletedIntegratorStep module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] fmi2GetEventIndicators: z0 = -1 module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] fmi2GetEventIndicators: z1 = -1 module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] fmi2GetEventIndicators: z2 = -1 module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] fmi2GetEventIndicators: z3 = -1 module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] fmi2GetEventIndicators: z4 = 1 module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] internalEventUpdate: Start Event Update! Next Sample Event 0 module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] internalEventUpdate: Need to iterate(discrete changes)! module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] internalEventUpdate: newDiscreteStatesNeeded true module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] internalEventUpdate: Checked for Sample Events! Next Sample Event 0 module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] internalEventUpdate: Start Event Update! Next Sample Event 0 module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] internalEventUpdate: newDiscreteStatesNeeded false module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] internalEventUpdate: Checked for Sample Events! Next Sample Event 0 module = Test CS model instance, log level = ERROR: [logStatusError][FMU status:Error] fmi2GetContinuousStates: Invalid argument states[] = NULL. module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] fmi2GetReal: y1 = 0 Variável real: 0.000000 module = Test CS model instance, log level = ERROR: [logStatusError][FMU status:Error] fmi2DoStep: Illegal co-simulation call sequence. fmi2DoStep is not allowed in model_state_error state. module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] fmi2GetReal: y1 = 0 Variável real: 0.000000 module = Test CS model instance, log level = ERROR: [logStatusError][FMU status:Error] fmi2DoStep: Illegal co-simulation call sequence. fmi2DoStep is not allowed in model_state_error state. module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] fmi2GetReal: y1 = 0 Variável real: 0.000000 module = Test CS model instance, log level = ERROR: [logStatusError][FMU status:Error] fmi2DoStep: Illegal co-simulation call sequence. fmi2DoStep is not allowed in model_state_error state. module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] fmi2GetReal: y1 = 0 Variável real: 0.000000 module = Test CS model instance, log level = ERROR: [logStatusError][FMU status:Error] fmi2DoStep: Illegal co-simulation call sequence. fmi2DoStep is not allowed in model_state_error state. module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] fmi2GetReal: y1 = 0 Variável real: 0.000000 module = Test CS model instance, log level = ERROR: [logStatusError][FMU status:Error] fmi2DoStep: Illegal co-simulation call sequence. fmi2DoStep is not allowed in model_state_error state. module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] fmi2GetReal: y1 = 0 Variável real: 0.000000 module = Test CS model instance, log level = ERROR: [logStatusError][FMU status:Error] fmi2DoStep: Illegal co-simulation call sequence. fmi2DoStep is not allowed in model_state_error state. module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] fmi2GetReal: y1 = 0 Variável real: 0.000000 module = Test CS model instance, log level = ERROR: [logStatusError][FMU status:Error] fmi2DoStep: Illegal co-simulation call sequence. fmi2DoStep is not allowed in model_state_error state. module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] fmi2GetReal: y1 = 0 Variável real: 0.000000 module = Test CS model instance, log level = ERROR: [logStatusError][FMU status:Error] fmi2DoStep: Illegal co-simulation call sequence. fmi2DoStep is not allowed in model_state_error state. module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] fmi2GetReal: y1 = 0 Variável real: 0.000000 module = Test CS model instance, log level = ERROR: [logStatusError][FMU status:Error] fmi2DoStep: Illegal co-simulation call sequence. fmi2DoStep is not allowed in model_state_error state. module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] fmi2GetReal: y1 = 0 Variável real: 0.000000 module = Test CS model instance, log level = ERROR: [logStatusError][FMU status:Error] fmi2DoStep: Illegal co-simulation call sequence. fmi2DoStep is not allowed in model_state_error state. module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] fmi2GetReal: y1 = 0 Variável real: 0.000000 module = Test CS model instance, log level = ERROR: [logStatusError][FMU status:Error] fmi2DoStep: Illegal co-simulation call sequence. fmi2DoStep is not allowed in model_state_error state. module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] fmi2GetReal: y1 = 0 Variável real: 0.000000 module = Test CS model instance, log level = ERROR: [logStatusError][FMU status:Error] fmi2DoStep: Illegal co-simulation call sequence. fmi2DoStep is not allowed in model_state_error state. module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] fmi2GetReal: y1 = 0 Variável real: 0.000000 module = Test CS model instance, log level = ERROR: [logStatusError][FMU status:Error] fmi2DoStep: Illegal co-simulation call sequence. fmi2DoStep is not allowed in model_state_error state. module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] fmi2GetReal: y1 = 0 Variável real: 0.000000 module = Test CS model instance, log level = ERROR: [logStatusError][FMU status:Error] fmi2DoStep: Illegal co-simulation call sequence. fmi2DoStep is not allowed in model_state_error state. module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] fmi2GetReal: y1 = 0 Variável real: 0.000000 module = Test CS model instance, log level = ERROR: [logStatusError][FMU status:Error] fmi2DoStep: Illegal co-simulation call sequence. fmi2DoStep is not allowed in model_state_error state. module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] fmi2GetReal: y1 = 0 Variável real: 0.000000 module = Test CS model instance, log level = ERROR: [logStatusError][FMU status:Error] fmi2DoStep: Illegal co-simulation call sequence. fmi2DoStep is not allowed in model_state_error state. module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] fmi2GetReal: y1 = 0 Variável real: 0.000000 module = Test CS model instance, log level = ERROR: [logStatusError][FMU status:Error] fmi2DoStep: Illegal co-simulation call sequence. fmi2DoStep is not allowed in model_state_error state. module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] fmi2GetReal: y1 = 0 Variável real: 0.000000 module = Test CS model instance, log level = ERROR: [logStatusError][FMU status:Error] fmi2DoStep: Illegal co-simulation call sequence. fmi2DoStep is not allowed in model_state_error state. module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] fmi2GetReal: y1 = 0 Variável real: 0.000000 module = Test CS model instance, log level = ERROR: [logStatusError][FMU status:Error] fmi2DoStep: Illegal co-simulation call sequence. fmi2DoStep is not allowed in model_state_error state. module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] fmi2GetReal: y1 = 0 Variável real: 0.000000 module = Test CS model instance, log level = ERROR: [logStatusError][FMU status:Error] fmi2DoStep: Illegal co-simulation call sequence. fmi2DoStep is not allowed in model_state_error state. module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] fmi2GetReal: y1 = 0 Variável real: 0.000000 module = Test CS model instance, log level = ERROR: [logStatusError][FMU status:Error] fmi2DoStep: Illegal co-simulation call sequence. fmi2DoStep is not allowed in model_state_error state. module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] fmi2GetReal: y1 = 0 Variável real: 0.000000 module = Test CS model instance, log level = ERROR: [logStatusError][FMU status:Error] fmi2DoStep: Illegal co-simulation call sequence. fmi2DoStep is not allowed in model_state_error state. module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] fmi2GetReal: y1 = 0 Variável real: 0.000000 module = Test CS model instance, log level = ERROR: [logStatusError][FMU status:Error] fmi2DoStep: Illegal co-simulation call sequence. fmi2DoStep is not allowed in model_state_error state. module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] fmi2GetReal: y1 = 0 Variável real: 0.000000 module = Test CS model instance, log level = ERROR: [logStatusError][FMU status:Error] fmi2DoStep: Illegal co-simulation call sequence. fmi2DoStep is not allowed in model_state_error state. module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] fmi2GetReal: y1 = 0 Variável real: 0.000000 module = Test CS model instance, log level = ERROR: [logStatusError][FMU status:Error] fmi2DoStep: Illegal co-simulation call sequence. fmi2DoStep is not allowed in model_state_error state. module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] fmi2GetReal: y1 = 0 Variável real: 0.000000 module = Test CS model instance, log level = ERROR: [logStatusError][FMU status:Error] fmi2DoStep: Illegal co-simulation call sequence. fmi2DoStep is not allowed in model_state_error state. module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] fmi2GetReal: y1 = 0 Variável real: 0.000000 module = Test CS model instance, log level = ERROR: [logStatusError][FMU status:Error] fmi2DoStep: Illegal co-simulation call sequence. fmi2DoStep is not allowed in model_state_error state. module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] fmi2GetReal: y1 = 0 Variável real: 0.000000 module = Test CS model instance, log level = ERROR: [logStatusError][FMU status:Error] fmi2DoStep: Illegal co-simulation call sequence. fmi2DoStep is not allowed in model_state_error state. module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] fmi2GetReal: y1 = 0 Variável real: 0.000000 module = Test CS model instance, log level = ERROR: [logStatusError][FMU status:Error] fmi2DoStep: Illegal co-simulation call sequence. fmi2DoStep is not allowed in model_state_error state. module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] fmi2GetReal: y1 = 0 Variável real: 0.000000 module = Test CS model instance, log level = ERROR: [logStatusError][FMU status:Error] fmi2DoStep: Illegal co-simulation call sequence. fmi2DoStep is not allowed in model_state_error state. module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] fmi2GetReal: y1 = 0 Variável real: 0.000000 module = Test CS model instance, log level = ERROR: [logStatusError][FMU status:Error] fmi2DoStep: Illegal co-simulation call sequence. fmi2DoStep is not allowed in model_state_error state. module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] fmi2GetReal: y1 = 0 Variável real: 0.000000 module = Test CS model instance, log level = ERROR: [logStatusError][FMU status:Error] fmi2DoStep: Illegal co-simulation call sequence. fmi2DoStep is not allowed in model_state_error state. module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] fmi2GetReal: y1 = 0 Variável real: 0.000000 module = Test CS model instance, log level = ERROR: [logStatusError][FMU status:Error] fmi2DoStep: Illegal co-simulation call sequence. fmi2DoStep is not allowed in model_state_error state. module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] fmi2GetReal: y1 = 0 Variável real: 0.000000 module = Test CS model instance, log level = ERROR: [logStatusError][FMU status:Error] fmi2DoStep: Illegal co-simulation call sequence. fmi2DoStep is not allowed in model_state_error state. module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] fmi2GetReal: y1 = 0 Variável real: 0.000000 module = Test CS model instance, log level = ERROR: [logStatusError][FMU status:Error] fmi2DoStep: Illegal co-simulation call sequence. fmi2DoStep is not allowed in model_state_error state. module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] fmi2GetReal: y1 = 0 Variável real: 0.000000 module = Test CS model instance, log level = ERROR: [logStatusError][FMU status:Error] fmi2DoStep: Illegal co-simulation call sequence. fmi2DoStep is not allowed in model_state_error state. module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] fmi2GetReal: y1 = 0 Variável real: 0.000000 module = Test CS model instance, log level = ERROR: [logStatusError][FMU status:Error] fmi2DoStep: Illegal co-simulation call sequence. fmi2DoStep is not allowed in model_state_error state. module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] fmi2GetReal: y1 = 0 Variável real: 0.000000 module = Test CS model instance, log level = ERROR: [logStatusError][FMU status:Error] fmi2DoStep: Illegal co-simulation call sequence. fmi2DoStep is not allowed in model_state_error state. module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] fmi2GetReal: y1 = 0 Variável real: 0.000000 module = Test CS model instance, log level = ERROR: [logStatusError][FMU status:Error] fmi2DoStep: Illegal co-simulation call sequence. fmi2DoStep is not allowed in model_state_error state. module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] fmi2GetReal: y1 = 0 Variável real: 0.000000 module = Test CS model instance, log level = ERROR: [logStatusError][FMU status:Error] fmi2DoStep: Illegal co-simulation call sequence. fmi2DoStep is not allowed in model_state_error state. module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] fmi2GetReal: y1 = 0 Variável real: 0.000000 module = Test CS model instance, log level = ERROR: [logStatusError][FMU status:Error] fmi2DoStep: Illegal co-simulation call sequence. fmi2DoStep is not allowed in model_state_error state. module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] fmi2GetReal: y1 = 0 Variável real: 0.000000 module = Test CS model instance, log level = ERROR: [logStatusError][FMU status:Error] fmi2DoStep: Illegal co-simulation call sequence. fmi2DoStep is not allowed in model_state_error state. module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] fmi2GetReal: y1 = 0 Variável real: 0.000000 module = Test CS model instance, log level = ERROR: [logStatusError][FMU status:Error] fmi2DoStep: Illegal co-simulation call sequence. fmi2DoStep is not allowed in model_state_error state. module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] fmi2GetReal: y1 = 0 Variável real: 0.000000 module = Test CS model instance, log level = ERROR: [logStatusError][FMU status:Error] fmi2DoStep: Illegal co-simulation call sequence. fmi2DoStep is not allowed in model_state_error state. module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] fmi2GetReal: y1 = 0 Variável real: 0.000000 module = Test CS model instance, log level = ERROR: [logStatusError][FMU status:Error] fmi2DoStep: Illegal co-simulation call sequence. fmi2DoStep is not allowed in model_state_error state. module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] fmi2GetReal: y1 = 0 Variável real: 0.000000 module = Test CS model instance, log level = ERROR: [logStatusError][FMU status:Error] fmi2DoStep: Illegal co-simulation call sequence. fmi2DoStep is not allowed in model_state_error state. module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] fmi2GetReal: y1 = 0 Variável real: 0.000000 module = Test CS model instance, log level = ERROR: [logStatusError][FMU status:Error] fmi2DoStep: Illegal co-simulation call sequence. fmi2DoStep is not allowed in model_state_error state. module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] fmi2GetReal: y1 = 0 Variável real: 0.000000 module = Test CS model instance, log level = ERROR: [logStatusError][FMU status:Error] fmi2DoStep: Illegal co-simulation call sequence. fmi2DoStep is not allowed in model_state_error state. module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] fmi2GetReal: y1 = 0 Variável real: 0.000000 module = Test CS model instance, log level = ERROR: [logStatusError][FMU status:Error] fmi2DoStep: Illegal co-simulation call sequence. fmi2DoStep is not allowed in model_state_error state. module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] fmi2GetReal: y1 = 0 Variável real: 0.000000 module = Test CS model instance, log level = ERROR: [logStatusError][FMU status:Error] fmi2DoStep: Illegal co-simulation call sequence. fmi2DoStep is not allowed in model_state_error state. module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] fmi2GetReal: y1 = 0 Variável real: 0.000000 module = Test CS model instance, log level = ERROR: [logStatusError][FMU status:Error] fmi2DoStep: Illegal co-simulation call sequence. fmi2DoStep is not allowed in model_state_error state. module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] fmi2GetReal: y1 = 0 Variável real: 0.000000 module = Test CS model instance, log level = ERROR: [logStatusError][FMU status:Error] fmi2DoStep: Illegal co-simulation call sequence. fmi2DoStep is not allowed in model_state_error state. module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] fmi2GetReal: y1 = 0 Variável real: 0.000000 module = Test CS model instance, log level = ERROR: [logStatusError][FMU status:Error] fmi2DoStep: Illegal co-simulation call sequence. fmi2DoStep is not allowed in model_state_error state. module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] fmi2GetReal: y1 = 0 Variável real: 0.000000 module = Test CS model instance, log level = ERROR: [logStatusError][FMU status:Error] fmi2DoStep: Illegal co-simulation call sequence. fmi2DoStep is not allowed in model_state_error state. module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] fmi2GetReal: y1 = 0 Variável real: 0.000000 module = Test CS model instance, log level = ERROR: [logStatusError][FMU status:Error] fmi2DoStep: Illegal co-simulation call sequence. fmi2DoStep is not allowed in model_state_error state. module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] fmi2GetReal: y1 = 0 Variável real: 0.000000 module = Test CS model instance, log level = ERROR: [logStatusError][FMU status:Error] fmi2DoStep: Illegal co-simulation call sequence. fmi2DoStep is not allowed in model_state_error state. module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] fmi2GetReal: y1 = 0 Variável real: 0.000000 module = Test CS model instance, log level = ERROR: [logStatusError][FMU status:Error] fmi2DoStep: Illegal co-simulation call sequence. fmi2DoStep is not allowed in model_state_error state. module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] fmi2GetReal: y1 = 0 Variável real: 0.000000 module = Test CS model instance, log level = ERROR: [logStatusError][FMU status:Error] fmi2DoStep: Illegal co-simulation call sequence. fmi2DoStep is not allowed in model_state_error state. module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] fmi2GetReal: y1 = 0 Variável real: 0.000000 module = Test CS model instance, log level = ERROR: [logStatusError][FMU status:Error] fmi2DoStep: Illegal co-simulation call sequence. fmi2DoStep is not allowed in model_state_error state. module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] fmi2GetReal: y1 = 0 Variável real: 0.000000 module = Test CS model instance, log level = ERROR: [logStatusError][FMU status:Error] fmi2DoStep: Illegal co-simulation call sequence. fmi2DoStep is not allowed in model_state_error state. module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] fmi2GetReal: y1 = 0 Variável real: 0.000000 module = Test CS model instance, log level = ERROR: [logStatusError][FMU status:Error] fmi2DoStep: Illegal co-simulation call sequence. fmi2DoStep is not allowed in model_state_error state. module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] fmi2GetReal: y1 = 0 Variável real: 0.000000 module = Test CS model instance, log level = ERROR: [logStatusError][FMU status:Error] fmi2DoStep: Illegal co-simulation call sequence. fmi2DoStep is not allowed in model_state_error state. module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] fmi2GetReal: y1 = 0 Variável real: 0.000000 module = Test CS model instance, log level = ERROR: [logStatusError][FMU status:Error] fmi2DoStep: Illegal co-simulation call sequence. fmi2DoStep is not allowed in model_state_error state. module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] fmi2GetReal: y1 = 0 Variável real: 0.000000 module = Test CS model instance, log level = ERROR: [logStatusError][FMU status:Error] fmi2DoStep: Illegal co-simulation call sequence. fmi2DoStep is not allowed in model_state_error state. module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] fmi2GetReal: y1 = 0 Variável real: 0.000000 module = Test CS model instance, log level = ERROR: [logStatusError][FMU status:Error] fmi2DoStep: Illegal co-simulation call sequence. fmi2DoStep is not allowed in model_state_error state. module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] fmi2GetReal: y1 = 0 Variável real: 0.000000 module = Test CS model instance, log level = ERROR: [logStatusError][FMU status:Error] fmi2DoStep: Illegal co-simulation call sequence. fmi2DoStep is not allowed in model_state_error state. module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] fmi2GetReal: y1 = 0 Variável real: 0.000000 module = Test CS model instance, log level = ERROR: [logStatusError][FMU status:Error] fmi2DoStep: Illegal co-simulation call sequence. fmi2DoStep is not allowed in model_state_error state. module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] fmi2GetReal: y1 = 0 Variável real: 0.000000 module = Test CS model instance, log level = ERROR: [logStatusError][FMU status:Error] fmi2DoStep: Illegal co-simulation call sequence. fmi2DoStep is not allowed in model_state_error state. module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] fmi2GetReal: y1 = 0 Variável real: 0.000000 module = Test CS model instance, log level = ERROR: [logStatusError][FMU status:Error] fmi2DoStep: Illegal co-simulation call sequence. fmi2DoStep is not allowed in model_state_error state. module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] fmi2GetReal: y1 = 0 Variável real: 0.000000 module = Test CS model instance, log level = ERROR: [logStatusError][FMU status:Error] fmi2DoStep: Illegal co-simulation call sequence. fmi2DoStep is not allowed in model_state_error state. module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] fmi2GetReal: y1 = 0 Variável real: 0.000000 module = Test CS model instance, log level = ERROR: [logStatusError][FMU status:Error] fmi2DoStep: Illegal co-simulation call sequence. fmi2DoStep is not allowed in model_state_error state. module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] fmi2GetReal: y1 = 0 Variável real: 0.000000 module = Test CS model instance, log level = ERROR: [logStatusError][FMU status:Error] fmi2DoStep: Illegal co-simulation call sequence. fmi2DoStep is not allowed in model_state_error state. module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] fmi2GetReal: y1 = 0 Variável real: 0.000000 module = Test CS model instance, log level = ERROR: [logStatusError][FMU status:Error] fmi2DoStep: Illegal co-simulation call sequence. fmi2DoStep is not allowed in model_state_error state. module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] fmi2GetReal: y1 = 0 Variável real: 0.000000 module = Test CS model instance, log level = ERROR: [logStatusError][FMU status:Error] fmi2DoStep: Illegal co-simulation call sequence. fmi2DoStep is not allowed in model_state_error state. module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] fmi2GetReal: y1 = 0 Variável real: 0.000000 module = Test CS model instance, log level = ERROR: [logStatusError][FMU status:Error] fmi2DoStep: Illegal co-simulation call sequence. fmi2DoStep is not allowed in model_state_error state. module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] fmi2GetReal: y1 = 0 Variável real: 0.000000 module = Test CS model instance, log level = ERROR: [logStatusError][FMU status:Error] fmi2DoStep: Illegal co-simulation call sequence. fmi2DoStep is not allowed in model_state_error state. module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] fmi2GetReal: y1 = 0 Variável real: 0.000000 module = Test CS model instance, log level = ERROR: [logStatusError][FMU status:Error] fmi2DoStep: Illegal co-simulation call sequence. fmi2DoStep is not allowed in model_state_error state. module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] fmi2GetReal: y1 = 0 Variável real: 0.000000 module = Test CS model instance, log level = ERROR: [logStatusError][FMU status:Error] fmi2DoStep: Illegal co-simulation call sequence. fmi2DoStep is not allowed in model_state_error state. module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] fmi2GetReal: y1 = 0 Variável real: 0.000000 module = Test CS model instance, log level = ERROR: [logStatusError][FMU status:Error] fmi2DoStep: Illegal co-simulation call sequence. fmi2DoStep is not allowed in model_state_error state. module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] fmi2GetReal: y1 = 0 Variável real: 0.000000 module = Test CS model instance, log level = ERROR: [logStatusError][FMU status:Error] fmi2DoStep: Illegal co-simulation call sequence. fmi2DoStep is not allowed in model_state_error state. module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] fmi2GetReal: y1 = 0 Variável real: 0.000000 module = Test CS model instance, log level = ERROR: [logStatusError][FMU status:Error] fmi2DoStep: Illegal co-simulation call sequence. fmi2DoStep is not allowed in model_state_error state. module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] fmi2GetReal: y1 = 0 Variável real: 0.000000 module = Test CS model instance, log level = ERROR: [logStatusError][FMU status:Error] fmi2DoStep: Illegal co-simulation call sequence. fmi2DoStep is not allowed in model_state_error state. module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] fmi2GetReal: y1 = 0 Variável real: 0.000000 module = Test CS model instance, log level = ERROR: [logStatusError][FMU status:Error] fmi2DoStep: Illegal co-simulation call sequence. fmi2DoStep is not allowed in model_state_error state. module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] fmi2GetReal: y1 = 0 Variável real: 0.000000 module = Test CS model instance, log level = ERROR: [logStatusError][FMU status:Error] fmi2DoStep: Illegal co-simulation call sequence. fmi2DoStep is not allowed in model_state_error state. module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] fmi2GetReal: y1 = 0 Variável real: 0.000000 module = Test CS model instance, log level = ERROR: [logStatusError][FMU status:Error] fmi2DoStep: Illegal co-simulation call sequence. fmi2DoStep is not allowed in model_state_error state. module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] fmi2GetReal: y1 = 0 Variável real: 0.000000 module = Test CS model instance, log level = ERROR: [logStatusError][FMU status:Error] fmi2DoStep: Illegal co-simulation call sequence. fmi2DoStep is not allowed in model_state_error state. module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] fmi2GetReal: y1 = 0 Variável real: 0.000000 module = Test CS model instance, log level = ERROR: [logStatusError][FMU status:Error] fmi2DoStep: Illegal co-simulation call sequence. fmi2DoStep is not allowed in model_state_error state. module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] fmi2GetReal: y1 = 0 Variável real: 0.000000 module = Test CS model instance, log level = ERROR: [logStatusError][FMU status:Error] fmi2DoStep: Illegal co-simulation call sequence. fmi2DoStep is not allowed in model_state_error state. module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] fmi2GetReal: y1 = 0 Variável real: 0.000000 module = Test CS model instance, log level = ERROR: [logStatusError][FMU status:Error] fmi2DoStep: Illegal co-simulation call sequence. fmi2DoStep is not allowed in model_state_error state. module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] fmi2GetReal: y1 = 0 Variável real: 0.000000 module = Test CS model instance, log level = ERROR: [logStatusError][FMU status:Error] fmi2DoStep: Illegal co-simulation call sequence. fmi2DoStep is not allowed in model_state_error state. module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] fmi2GetReal: y1 = 0 Variável real: 0.000000 Simulation finished. Checking results module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] fmi2GetReal: der(_D_outputAlias_y) = 1 Simulation results is wrong! State [0] 1 != 0.0143633, |res| = 0.985637

module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] fmi2GetReal: der(_D_outputAlias_y1) = 0 Simulation results is wrong! State [1] 0 != -1.62417, |res| = 1.62417

module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] fmi2GetReal: _D_outputAlias_y = 1.1 Simulation results is wrong! State [2] 1.1 != 6.95312e-310, |res| = 1.1

module = Test CS model instance, log level = ERROR: [logStatusError][FMU status:Error] fmi2Terminate: Illegal co-simulation call sequence. fmi2Terminate is not allowed in model_state_error state. module = Test CS model instance, log level = INFO: [logFmi2Call][FMU status:OK] fmi2FreeInstance module = Test CS model instance, log level = INFO: [logAll][FMU status:OK] fmi2FreeInstance: Freeing solver data. module = FMILIB, log level = VERBOSE: Releasing FMU CAPI interface module = FMICAPI, log level = VERBOSE: Successfully unloaded FMU binary module = FMILIB, log level = VERBOSE: Releasing allocated library resources module = JMPRT, log level = VERBOSE: Removing /home/asturian3/Projects/Asturian/Sandbox/Asturian/development/2024-002-FMULibAppTest/fmu/temporaryFMU_JdM1qM Everything seems to be OK since you got this far=)!

Has anyone dealt with this problem?

PeterMeisrimelModelon commented 3 weeks ago

Hi VictorHSalvador,

What sticks out in the log is the follow line

module = Test CS model instance, log level = ERROR: [logStatusError][FMU status:Error] fmi2GetContinuousStates: Invalid argument states[] = NULL.

After that the FMU status is Error and all subsequent doStep calls are rejected.

I am suspecting the invalid fmi2GetContinuousStates call is within the event-handling of the CS solver. My guess is that it might contain a NULL check for the states argument, that is performed even if nx == 0, since a simple pulse signal should not have any continuous states.

This seems to be a question for the FMU export tool.

/Peter

VictorHSalvador commented 2 weeks ago

Thanks, Peter.

I'm going to try to generate the FMU with a python library to check if this issue persist. If no, its a problem of OpenModelica, like u said.