#3011 closed defect (fixed)
Dependent parameter is not changing in FMU
Reported by: | Owned by: | Adeel Asghar | |
---|---|---|---|
Priority: | high | Milestone: | 1.9.4 |
Component: | FMI | Version: | MathCore Branch |
Keywords: | dependant parameter, FMU, FMI, initial equation | Cc: |
Description
OM Version: 1.9.1 #r22707
I have a simple model as follows:
model parameter_test parameter Real p1=1; parameter Real p2=p1; Real u1, u2; equation u1 = p1; u2 = p2; end parameter_test;
when i export it to FMU and import it back to OM, changing parameter p1 in the FMU block, does not affect any of p2, u1 and u2 after simulation;
i modified my code to the following then:
model parameter_test_2 parameter input Real p1; parameter Real p2=p1; Real u1, u2; equation u1 = p1; u2 = p2; end parameter_test_2;
now changing p1 in FMU affects u1, but still the dependent parameter, p2 is not changing.
Change History (3)
comment:1 by , 10 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
comment:2 by , 9 years ago
Milestone: | Future → pre1.9.4 |
---|
It doesn't make sense to keep closed ticket in the "Future" milestone that were simply forgotten to assign to the correct milestone in the past.
comment:3 by , 7 years ago
Milestone: | pre1.9.4 → 1.9.4 |
---|
Removing the pre1.9.4 milestone in favor of 1.9.4.
Note:
See TracTickets
for help on using tickets.
Fixed in r23669.
Your 2nd code block doesn't look nice. But the first one should work now without any problem.