Modelica Documentation

This is a listing of builtin Modelica functions, miscellaneous Modelica libraries stored in a git repository. There is also documentation for OpenModelica-specific scripting.

Note that not all libraries are supported or have been tested. Feel free to add bug reports either to OpenModelica (for compiler bugs) or to the GitHub projects for enhancements or bugs in the libraries. Older libraries may contain broken links and images (only libraries with modelica:// links produce good documentation). The Modelica Standard Library is the best supported package in OpenModelica.


Name Description Version
 ADGenKinetics Implementation of generalized kinetics for modeling biochemical reaction networks
 AdvancedNoise A library with additional noise modules compatible to the Modelica standard library 1.0.0
 Annex60 Library with models for building energy and control systems 1.0.0
 BioChem 1.0.1
 BondLib Modelica library for Bond Graph modeling 2.3
 BrineProp Media models for p-h-T-rho-eta properties of aqueous solutions of multiple salts and gases 0.4.1
 BuildSysPro EDF's Modelica library for modelling buildings and energy systems 2015.12
 BuildingSystems Library for energy-related building and plant simulation 0.1
 Buildings Library with models for building energy and control systems 3.0.0
 Chemical Library of Electro-Chemical models (version 1.1.0) 1.1.0
 Complex Complex number with overloaded operators 3.2.2
 ComplexLib Library for steady-state analysis of AC circuits within phasor domain, version 1.0
 DESLib 1
 ExtendedPetriNets Library to model timed, stochastic Petri nets and state transition diagrams, extended version.
 ExternData Library for data I/O of CSV, INI, JSON, MATLAB MAT, Excel XLS/XLSX or XML files 2.2.0
 FCSys Modelica fuel cell library 0.2.6
 FCSysTest Library to test components of FCSys
 FastBuildings Low order building simulation models 0.0
 FaultTriggering Library for Fault Triggering 0.6.6
 HelmholtzMedia Data and models of real pure fluids (liquid, two-phase and gas)
 IdealizedContact Idealized Contact Library 0.2.0
 IndustrialControlSystems Modelica Industrial Control Systems Library (version 1.0) 1
 InstantaneousSymmetricalComponents Sensors
 KeyWordIO Read and write data files with key words 0.6.0
 LinearMPC Modelica predictive control library (by the Institute of Automatic Control, RWTH Aachen University) 1
 MVEMLib 1.0.1
 ManualTracking Modelica manual tracking library
 MessagePack MessagePack is an efficient binary serialization format for multiple languages. 0.1
 Modelica Modelica Standard Library - Version 3.2.2 3.2.2
ModelicaAdditions Collection of Modelica libraries of DLR 1.5
ModelicaCompliance A semantics compliance suite for the Modelica language 3.2
 ModelicaDEVS Discrete Event Systems Library 1
 ModelicaReference Modelica Reference 3.2.2
 ModelicaServices ModelicaServices (OpenModelica implementation) - Models and functions used in the Modelica Standard Library requiring a tool specific implementation 3.2.2
 ModelicaTest Library to test components of package Modelica - Version 3.2.2 3.2.2
 ModelicaTestOverdetermined 3.2.2
 Modelica_DeviceDrivers Modelica_DeviceDrivers - A collection of drivers interfacing hardware like input devices, communication devices, shared memory, analog-digital converters and else 1.4.4
 Modelica_EnergyStorages Library for electric energy storages 3.2.1
 Modelica_LinearSystems2 Modelica_LinearSystems2 (version 2.3.4) - Analysis, Synthesis and Modeling of Continuous and Discrete Linear Systems 2.3.4
 Modelica_Noise Modelica_Noise version 1.0-Beta.1 (Library for random numbers and noise signals; now included in the Modelica Standard Library 3.2.2) 1.0 Beta.1
 Modelica_StateGraph2 Modelica_StateGraph2 (Version 2.0.3) - Modeling of continuous-time state machines 2.0.3
 Modelica_Synchronous Modelica_Synchronous (version 0.92.1) - Basic synchronous input/output control blocks that are triggered by clocks 0.92.1
 NcDataReader2 Library to read interpolated data from netCDF files and DAP servers 2.4.0
 Nuclear nuclear reactor simulations
 ObjectStab ObjectStab - A Modelica Library for Power System Stability Studies 1.1 Dev
 ObsoleteModelica3 Library that contains components from Modelica Standard Library 2.2.2 that have been removed from version 3.0
 OpenBLDC Simulation base package
 OpenHydraulics A free Modelica library that can be used to model hydraulic components and circuits. 1.0
 PNlib 2.0
 PVSystems PV Systems library 0.5.1
 PhotoVoltaics 0.X.X
 PhotoVoltaics_TGM 0.X.X
 Physiolibrary Modelica library for Physiology (version 2.3.1) 2.3.1
 Physiomodel Mammalian physiology model 1.0.0
 PlanarMechanics Library to model 2-dimensional, planar mechanical systems 1.4.0
 PowerFlow Library for electrical power flow calculations 0.3
 PowerSystems Library for electrical power systems 0.6.0
 PraxisSimulationstechnik Library of example and solution models from Peter Junglas' book "Praxis der Simulationstechnik"
 QCalc Modelica units based on quantity calculus
 QCalcTests Tests for QCalc
QSSFluidFlow Library for modeling of quasi-steady-state fluid flow with constant fluid density.
 RealTimeCoordinationLibrary Components for defining clocks, time constraints, and invariants. 1.0.4
 ScalableTestSuite A library of scalable Modelica test models 1.8.2
 Servomechanisms Servomechanism
 SiemensPower SiemensPower 2.2
 Spot Power-systems SPOT 0.706.1
 SpotExamples Spot examples 0.706.1
 SystemDynamics System Dynamics Library (Version 2.1) 2.1
 ThermoPower Open library for thermal power plant simulation 3.1
 ThermoSysPro 3.1
 VehicleInterfaces VehicleInterfaces Library (Version 1.2.2) - Interface definitions and architectures for vehicle system modeling 1.2.2
 WasteWater Modelica WasteWater Library 2.1.0
 WindPowerPlants Library of wind power plants 0.9.6
 XogenyTest Stand-alone library to facilitate assertion-based testing of Modelica code 1.1
 iPSL iTesla Power System Library 0.8.1

Builtin Environment

Name Description Version
Correlation defines correlation between two uncertainty variables
MetaModelica MetaModelica Language Extensions
OpenModelica OpenModelica internal defintions and scripting functions OpenModelica 1.12.0~dev-299-g74b08ca
abs Absolute value
acos Inverse cosine (-1 <= u <= 1)
activeState Return true if instance of a state machine is active, otherwise false
array Constructs an array
asin Inverse sine (-1 <= u <= 1)
assert Check an assertion condition
atan Inverse tangent
atan2 Four quadrant inverse tangent
backSample First activation of clock is shifted in time before activation of u
cardinality Number of connectors in connection Deprecated
cat Concatenate arrays along given dimension
ceil Round a real number towards plus infinity
change Indicate discrete variable changing
classDirectory Non-standard operator Dymola / MSL 2.2.1
constrain Dymola / MSL 1.6
cos Cosine
cosh Hyperbolic cosine
cross Cross product of two 3-vectors
delay Delay expression
der Derivative of the input expression
diagonal Returns a diagonal matrix
div Integer part of a division of two Real numbers
edge Indicate rising edge
exp Exponential, base e
fill Returns an array with all elements equal
floor Round a real number towards minus infinity
getInstanceName Modelica 3.3
hold Conversion from clocked discrete-time to continuous time
homotopy Modelica 3.2
identity Identity matrix of given size
initial True if in initialization phase
initialState Define inital state of a state machine
integer Round a real number towards minus infinity
interval Returns the interval between the previous and present tick of the clock of its argument
linspace Real vector with equally spaced elements
log Natural (base e) logarithm (u shall be > 0)
log10 Base 10 logarithm (u shall be > 0)
matrix Returns the first two dimensions of an array as matrix
max Returns the largest element
min Returns the smallest element
mod Integer modulus of a division of two Real numbers
ndims Number of array dimensions
noClock Clock of y=Clock(u) is always inferred
noEvent Turn off event triggering
ones Returns a one array
outerProduct Outer product of two vectors
pre Refer to left limit
previous Access previous value of a clocked variable
print Prints to stdout, useful for debugging. OpenModelica extension
product Product of all array elements
reinit Reinitialize state variable
rem Integer remainder of the division of two Real numbers
sample Overloaded operator to either trigger time events or to convert between continuous-time and clocked-time representation
scalar Returns a one-element array as scalar
shiftSample First activation of clock is shifted in time
sign Sign of real or integer number
sin Sine
sinh Hyperbolic sine
size Returns dimensions of an array
skew The skew matrix associated with the vector
smooth Indicate smoothness of expression
spatialDistribution Not yet implemented Modelica 3.3
sqrt Square root
subSample Conversion from faster clock to slower clock
sum Sum of all array elements
superSample Conversion from slower clock to faster clock
symmetric Returns a symmetric matrix
tan Tangent (u shall not be -pi/2, pi/2, 3*pi/2, ...)
tanh Hyperbolic tangent
terminal True after successful analysis
ticksInState Returns the number of clock ticks since a transition was made to the currently active state
timeInState Returns the time duration as Real in [s] since a transition was made to the currently active state
transition Define state machine transition
transpose Transpose a matrix
vector Returns an array as vector
zeros Returns a zero array

Generated at 2017-01-26T20:02:21Z by OpenModelicaOpenModelica 1.12.0~dev-299-g74b08ca using GenerateDoc.mos. Offline version (tar.xz) (zip).