Skip to content

Instantly share code, notes, and snippets.

@dietmarw
Created June 11, 2018 09:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dietmarw/d9403c49425fcbd9f86c2ba36cc161b9 to your computer and use it in GitHub Desktop.
Save dietmarw/d9403c49425fcbd9f86c2ba36cc161b9 to your computer and use it in GitHub Desktop.
For equation
controller.BooleanExpression1.y = time > 2500;
found in class Modelica.Blocks.Interfaces, /home/dietmarw/.workspace/gh-modelica/Modelica/Modelica/Blocks/Sources.mo at line 82, and used in component controller.BooleanExpression1.
The expression "time > 2500" will generate a state event and not a time event.
This is not an error, but it slightly decreases performance and is unlikely to be intentional.
The only supported variants for time-events are "time>=expr" and "time<expr", where expr is a discrete-time expression.
You can turn off this warning by setting Advanced.PedanticModelica=false.
For equation
BooleanExpression1.y = time > 2500;
found in class Modelica.Blocks.Interfaces, /home/dietmarw/.workspace/gh-modelica/Modelica/Modelica/Blocks/Sources.mo at line 82, and used in component BooleanExpression1.
The expression "time > 2500" will generate a state event and not a time event.
This is not an error, but it slightly decreases performance and is unlikely to be intentional.
The only supported variants for time-events are "time>=expr" and "time<expr", where expr is a discrete-time expression.
You can turn off this warning by setting Advanced.PedanticModelica=false.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment