- Index
- » Usage and Applications
- » OpenModelica Usage and Applications
- » Delayed Transition on ModelicaML
Delayed Transition on ModelicaML
Delayed Transition on ModelicaML
Hi,
I don't know if here is the right place to post this topic but, in the doubt, I prefer to report my issue here.
There are one reported issue and one question.
1.
I recently tried to use delayed transition with ModelicaML. So I built I pretty simple model from which I generated Modelica code.
However, when I tried to directly simulate this code (with Dymola 2016, JModelica 1.16 or OpenModelica 1.9.3), the simulation didn't work.
But, with some modifications on the Modelica code: mainly, it consisted in turning lines:
Code:
when {Given.State.active, Given.State.selfTransitionActivated} then
into
Code:
when {pre(Given.State.active), Given.State.selfTransitionActivated} then
Then, it eventually proved to work fine (at least with JModelica, I haven't tried with the two others yet).
Does some one have any explications?
2.
Does any one have hints about the modification of the generation template (how to process?) for test purposes?
Best regards,
Pierre
- Index
- » Usage and Applications
- » OpenModelica Usage and Applications
- » Delayed Transition on ModelicaML