Opened 11 years ago
Closed 11 years ago
#2341 closed defect (fixed)
for objective forget remove alias
Reported by: | Vitalij Ruge | Owned by: | Vitalij Ruge |
---|---|---|---|
Priority: | high | Milestone: | 1.9.1 |
Component: | Backend | Version: | trunk |
Keywords: | Cc: | Willi Braun, Martin Sjölund |
Description
The following model
optimization removeAlias(objective = b) Real a; Real b; equation a = b; der(a) = 1; end removeAlias;
generated bad code.
Change History (6)
comment:1 by , 11 years ago
Cc: | added |
---|---|
Owner: | changed from | to
Status: | new → assigned |
comment:2 by , 11 years ago
Resolution: | → wontfix |
---|---|
Status: | assigned → closed |
The only valid grammars are:
+g, +grammar Sets the grammar and semantics to accept. Valid options: Modelica, MetaModelica, ParModelica
There is no optimization target for the parser.
comment:3 by , 11 years ago
Resolution: | wontfix |
---|---|
Status: | closed → reopened |
Well, I am pretty sure that we want to have one. So this should work anyway.
Version 0, edited 11 years ago by (next)
comment:6 by , 11 years ago
Resolution: | → fixed |
---|---|
Status: | reopened → closed |
Note:
See TracTickets
for help on using tickets.
I added a corresponding test here: \testsuite\openmodelica\cruntime\optimization\basic\removeAliasOpt.mos
I guess you can fix it by your own. This is probably good to practice.
There are even more issues with the "optimization" target (e.g. loadString fails if it is used instead of loadFile due to the optimization keyword). Probably you should open also a ticket for that.