Opened 5 years ago
Last modified 5 years ago
#5457 closed defect
Re-simulation does not consider updated value — at Version 4
Reported by: | ceraolo | Owned by: | somebody |
---|---|---|---|
Priority: | high | Milestone: | 1.14.0 |
Component: | *unknown* | Version: | v1.13.2 |
Keywords: | Cc: |
Description (last modified by ceraolo)
Consider the following model
model Test2 import Modelica.Constants.pi; parameter Real Ipm = 1.5; parameter Real varPar (fixed=false); initial equation if Ipm>1.0 then varPar=pi/2; else varPar=asin(Ipm); end if; equation end Test2;
When run from OMEdit with default simulation parameters (and "Evaluate all parameter at compile time" unchecked) I get for varPar, correctly 1.5708.
Now I change, from the plotting perspective, Ipm from 1.5 to 0.5, and click on re-simulate button.
Then varPar remains at the old value instead of changing into 0.523599.
Checked with Connected to v1.14.0-dev-234 under windows (64 bit)
Change History (4)
comment:1 Changed 5 years ago by ceraolo
- Summary changed from An issue with parameters and and initial equations to An issue with parameters and initial equations
comment:2 in reply to: ↑ description Changed 5 years ago by Arinomo <trista.arinomo@…>
comment:3 Changed 5 years ago by ceraolo
Well, my report was bad.
I'm going to change name and description of the ticket in the next few minutes.
comment:4 Changed 5 years ago by ceraolo
- Description modified (diff)
- Summary changed from An issue with parameters and initial equations to Re-simulation does not consider updated value
Replying to ceraolo:
Your model work for me using ver1.14.0-def. With Ipm = 1.5, i got varPar = 1.5708 and for Ipm = 0.5, i've got varPar = 0.523599.Do you have any additional flags set?