Opened 14 years ago
Last modified 14 years ago
#1488 closed defect (fixed)
final prefix not set for record elements
Reported by: | Jens Frenkel | Owned by: | Jens Frenkel |
---|---|---|---|
Priority: | high | Milestone: | |
Component: | Version: | ||
Keywords: | Cc: | Frenkel TUD, Adrian Pop |
Description
The final prefix is not set for record elements.
record R Real b; end R; model A final parameter R r = R(1); end A; ./ omc +d=dumpdaelow A.mo Variables (1) ========= 1: $dummy:STATE(fixed = true ) type: Real indx = -1 Known Variables (constants) (1) ============================= 1: r.b:PARAM(final = false ) = 1.0 A, R type: Real (final = false ) indx = -1 External Objects (0)
The final prefix is important for optimisation of equations. See Modelica Spec 3.2 Chapter 7.2.6
Setting the value of a parameter in an experiment environment is conceptually treated as a modification. This implies that a final modification equation of a parameter cannot be changed in a simulation environment.
Note:
See TracTickets
for help on using tickets.
I'll look into this. The front-end doesn't seem to set the final attribute.