packageFMITest

Library of models to test connected FMUs in a Modelica tool

Uses Modelica 3.2.2.

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

Information

Library FMITest is a Modelica package providing models to test connected FMUs (Functional Mockup Units), especially during event iteration and during initializaton. The connection classes are structured in packages in different categories according to the underlying basic difficulty (such as "package LinearSystems: linear systems of equations occur over the connected FMUs").

All examples are organized in packages. The details of an example are given in the package description text or package documentation but not in the models in the package. Every package has the following structure:

  • Reference is the underlying Modelica model that shall be simulated and that can be successfully simulated in a Modelica tool.
     
  • WithFMUsReference is the same model as Reference but it is re-structured so that the structure corresponds to the one when replacing some of the components with FMUs. These are still pure Modelica models and should simulate successfully in any Modelica tool. The components of this model that shall be exported as FMUs are store in the sub-package FMUModels. All models stored here shall be exported as FMUs.
     
  • WithFMUs is the same model as WithFMUsReference but some of the component instances (marked in the icon with the text "toFMU") are replaced by imported FMUs. Since importing is tool dependent, the version on the svn server just provides a copy of WithFMUsReference at this place and the tester has to replace the marked component instances with FMUs imported with the underlying used tool.

Licensed by DLR-SR under the 3-Clause BSD License
Copyright © 2013-2018, DLR, Institute of System Dynamics and Control.

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://opensource.org/licenses/BSD-3-Clause.

Modelica® is a registered trademark of the Modelica Association.

DLR logo Initial version implemented by M. Otter.

Contents

NameDescription
SimpleConnectionsLibrary of models to test simple connections that only require appropriate FMU sorting
VirtualLoopsLibrary of models to test loop connections leading to artificial loops that can be resolved without algebraic loop handling by calling fmiGetXXX of FMUs in an appropriate sequence
LinearSystemsLibrary of models to test connected FMUs leading to linear real systems of equations over connected FMUs
NonlinearSystemsLibrary of models to test connected FMUs leading to nonlinear real systems of equations over connected FMUs
MixedSystemsLibrary of models to test connected FMUs leading to mixed Real/Boolean systems of equations over connected FMUs
PropagateEventsLibrary of models to test connected FMUs where events are propagated from one to another FMU
InitializationModels to test initialization of connected FMUs
UtilitiesUtility models used by the component models