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

FMUComplianceChecker-2.0.3 illegal calling sequence #26

Open modelica-trac-importer opened 6 years ago

modelica-trac-importer commented 6 years ago

Reported by awad.mukbil on 26 Jan 2017 15:29 UTC During my work on creating reference FMUs, I tried to test the Compliance Checker with a reference FMU that deals with integer variables to test integer capabilities. I provided the Compliance Checker with integer inputs and the FMU triggered the following errors:

  1. [FMU][logError][FMU status:Error] fmi2SetInteger: Illegal call sequence.
    [FATAL][FMUCHK] Simulation loop terminated at time ... since FMU returned status: Error

    because the it calls fmi2SetInteger in Continuous-Time Mode, which is not allowed according to the standard p. 85.

  2. [FMU][logError][FMU status:Error] fmi2Terminate: Illegal call sequence.
    [ERROR][FMUCHK] fmiTerminate returned status: Error

    Last error returned fmi2Error, by which the state changed to error and it is not allowed to call fmi2Terminate.

This is related to the ticket #20. The experiment data are attached. experiment.zip


Migrated-From: https://trac.fmi-standard.org/ticket/406

beutlich commented 3 years ago

This bug (of major priority) still can be observed in FMI/FMU Compliance Checker 2.0.4 and also for FMI 1.0.