packageModelicaTest

Library to test components of package Modelica

Version 4.2.0 dev

Uses Complex 4.2.0 dev, Modelica 4.2.0 dev.

Extends from Modelica.Icons.Package (Icon for standard packages).

Information

This library provides models and functions to test components of package Modelica (the Modelica Standard Library).

Further development of this library should be performed in the following way:

  • Functions that are added to this library to test functions of the Modelica Standard Library, should be called in "ModelicaTest.testAllFunctions()". The idea is that all test functions are called, when calling "testAllFunctions()".
  • Models that are added to this library should have the annotation (with an appropriate StopTime):
             annotation(experiment(StopTime=1.1));
         
    This gives the tool vendors the possibility to automatically identify the models that shall be simulated and, e.g., that shall be used in an automatic regression test.

Copyright © 1998-2025, Modelica Association and contributors

This Modelica package is free software and the use is completely at your own risk; it can be redistributed and/or modified under the terms of the 3-Clause BSD license. For license conditions (including the disclaimer of warranty) visit https://modelica.org/licenses/modelica-3-clause-bsd.

Contents

NameDescription
testAllFunctionsRuns all test cases for functions
BlocksTest models for Modelica.Blocks
TablesTest models for the table blocks in Modelica.Blocks
ElectricalTest models for Modelica.Electrical
MagneticTest examples of Modelica.Magnetic
FluidTest models for Modelica.Fluid
MediaTest models for Modelica.Media
MathTest models for Modelica.Math
MultiBodyTest models for Modelica.Mechanics.MultiBody
RotationalTest models for Modelica.Mechanics.Rotational
TranslationalTest models for Modelica.Mechanics.Translational
UtilitiesTest functions for Modelica.Utilities
ComplexMathTest functions for Complex and Modelica.ComplexMath