Skip to content

Overview of MSL4 Coverage Issues #1382

@lochel

Description

@lochel

This issue consolidates the failures of MSL 4.0.0 models during simulation or before verification, as observed from the FMI coverage report. These failures are categorized based on the error messages, which may not fully capture the underlying problem.

Context:

  • Library Version: Modelica Standard Library 4.0.0
  • FMI Coverage Report: MSL 4.0.0 Coverage Report
  • Simulation Environment:
    • OpenModelica Version: OMCompiler v1.25.0-dev.195+ga3af80962f
    • OMSimulator Version: v3.0.0.post30-gd2465f8-linux-debug

Categories of Failures:

1. Timeouts During Simulation

2. Simulation Completed, Verification Skipped (for unknown reason)

  • Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate
  • Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate
  • Modelica.Electrical.Digital.Examples.Counter
  • Modelica.Electrical.Digital.Examples.FlipFlop
  • Modelica.Electrical.Spice3.Examples.Spice3BenchmarkDifferentialPair

3. Terminated by Assertion (fmi2GetBoolean)

  • Modelica.Fluid.Examples.AST_BatchPlant.BatchPlant_StandardWater

Debugged the model and compared the analysis with FMPY, found that CVODE with larger stepSize is failing to detect
events at some points which causes the problem, reducing the stepSize solves the problem, see below

>>>  ../../OpenModelica/OMSimulator/install/bin/OMSimulator standardwater.fmu --stopTime=130 --stepSize=0.004 -- logLevel=0 --progressBar=true
info:    maximum step size for 'model.root': 0.004000
info:    Result file: model_res.mat (bufferSize=10)
info:    step SC system [0.000000; 130.000000] with step size [0.000001; 0.000000; 0.004000]
info:    [===============================================================] 100%
info:    Final Statistics for 'model.root':
         NumSteps = 949 NumRhsEvals  = 950 NumLinSolvSetups = 49
         NumNonlinSolvIters = 949 NumNonlinSolvConvFails = 0 NumErrTestFails = 0 

  Running the above model with stepSize=0.4 will fail due to improper event detection.

4. Ungracefully handled Modelica terminate Termination

  • Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.FullRobot
  • Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis

5. Zero Step Size Error

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions