functionassertEval
Assert function that forces Dymola to parse the message
Extends from Modelica.Icons.Function (Icon for functions).
Information
When an assert statement is false in the initial equation section of a model, Dymola 2014 gives the following error during translation:
"Error: The conditions of the following assert statements are always false:"
without parsing the message given to the assert function. This pass-through function causes the statement to be evaluated during initialization, at which point the message is evaluated.
Inputs
| Type | Name | Default | Description |
|---|---|---|---|
| Boolean | condition | ||
| String | message |