Archived OpenModelica forums. Posting is disabled.

Alternative forums include GitHub discussions or StackOverflow (make sure to read the Stack Overflow rules; you need to have well-formed questions)


Forgot password? | Forgot username? | Register

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.
http://image.noelshack.com/fichiers/2015/39/1442999141-capture-proto4-simpledelayedtransition.gif
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

There are 0 guests and 0 other users also viewing this topic
You are here: