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.
function assertEval extends Modelica.Icons.Function; input Boolean condition; input String message; end assertEval;