This is a listing of builtin Modelica functions, libraries shipped with OpenModelica and the documentation for OpenModelica-specific scripting.
| Name | Description | Version |
|---|---|---|
| BioChem | 1.0 | |
| Complex | Complex number with overloaded operators | 1.0 |
| Modelica | Modelica Standard Library (Version 3.2) | 3.2 |
| ModelicaReference | Modelica Reference | 3.2 |
| ModelicaServices | (Default implementation) Models and functions used in the Modelica Standard Library requiring a tool specific implementation | 1.1 |
| ModelicaTest | Library to test components of library Modelica | 1.1 |
| Modelica_LinearSystems2 | Modelica_LinearSystems2 - Analysis, Synthesis and Modeling of Continuous and Discrete Linear Systems | 2.0 |
| ObsoleteModelica3 | Library that contains components from Modelica Standard Library 2.2.2 that have been removed from version 3.0 |
| Name | Description | Version |
|---|---|---|
| AssertionLevel | ||
| Connections | ||
| OpenModelica | OpenModelica internal defintions and scripting functions | 1.8.1+ (r11859) |
| Subtask | ||
| abs | Absolute value | |
| acos | Inverse cosine (-1 <= u <= 1) | |
| actualStream | ||
| array | ||
| asin | Inverse sine (-1 <= u <= 1) | |
| assert | ||
| atan | Inverse tangent | |
| atan2 | Four quadrant inverse tangent | |
| cardinality | Number of connectors in connection | Deprecated |
| cat | ||
| ceil | Round a real number towards plus infinity | |
| change | Indicate discrete variable changing | |
| classDirectory | No clue what it does as it's not standardized | 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 | ||
| exp | Exponential, base e | |
| fill | Returns an array with all elements equal | |
| floor | Round a real number towards minus infinity | |
| getInstanceName | Modelica 3.3 | |
| homotopy | Modelica 3.2 | |
| identity | ||
| inStream | ||
| initial | ||
| integer | Round a real number towards minus infinity | |
| linspace | ||
| log | Natural (base e) logarithm (u shall be > 0) | |
| log10 | Base 10 logarithm (u shall be > 0) | |
| 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 | |
| noEvent | Turn off event triggering | |
| ones | Returns a one array | |
| outerProduct | Outer product of two vectors | |
| pre | Refer to left limit | |
| Prints to stdout, useful for debugging. | OpenModelica extension | |
| product | ||
| reinit | Reinitialize state variable | |
| rem | Integer remainder of the division of two Real numbers | |
| rooted | Not yet standard Modelica, but in the MSL since 3-4 years now. | Dymola / MSL 3 |
| sample | Trigger time events | |
| scalar | ||
| semiLinear | ||
| sign | ||
| 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 | |
| sum | ||
| symmetric | Returns a symmetric matrix | |
| tan | Tangent (u shall not be -pi/2, pi/2, 3*pi/2, ...) | |
| tanh | Hyperbolic tangent | |
| terminal | ||
| transpose | ||
| vector | ||
| zeros | Returns a zero array |