Opened 17 years ago
Closed 12 years ago
#128 closed defect (fixed)
Default fixed=true attribute set to state variables even when not meant
Reported by: | Francesco Casella | Owned by: | Francesco Casella |
---|---|---|---|
Priority: | critical | Milestone: | |
Component: | Backend | Version: | |
Keywords: | Cc: | Francesco Casella, Adrian Pop |
Description
Attachments (1)
Change History (4)
comment:1 by , 17 years ago
comment:3 by , 12 years ago
Component: | → Backend |
---|---|
Resolution: | → fixed |
Status: | new → closed |
OMC 1.9.0 beta implements the correct semantics
Note:
See TracTickets
for help on using tickets.
The OMC automatically and silently sets a fixed = true attribute to all the state variables, unless the attribute fixed = false is explicitly set in the code. This is contrary to the Modelica specification, which states that the default value for variables is fixed = false (section 4.8.1, rev. 3.0).
This behaviour causes models to behave differently from what one would expect.
Always adding this fixed = true attribute will be even more questionable once OMC supports state selection.
Suggestions: