Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Overview of MSL4 Coverage Issues #1382

Open
15 of 20 tasks
lochel opened this issue Nov 27, 2024 · 0 comments
Open
15 of 20 tasks

Overview of MSL4 Coverage Issues #1382

lochel opened this issue Nov 27, 2024 · 0 comments

Comments

@lochel
Copy link
Member

lochel commented Nov 27, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant