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 Lennart Ochel, 11 years ago

Cc: Martin Sjölund added
Owner: changed from probably noone to Vitalij Ruge
Status: newassigned

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.

comment:2 by Martin Sjölund, 11 years ago

Resolution: wontfix
Status: assignedclosed

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 Lennart Ochel, 11 years ago

Resolution: wontfix
Status: closedreopened

Well, I am pretty sure that we want to have one. So this should work anyway.

Edit: Probably we can discuss this at the backend meeting tomorrow.

Last edited 11 years ago by Lennart Ochel (previous) (diff)

comment:4 by Willi Braun, 11 years ago

fixed in 17187

comment:5 by Martin Sjölund, 11 years ago

Milestone: 1.9.01.9.1

Postponed until 1.9.1

comment:6 by anonymous, 11 years ago

Resolution: fixed
Status: reopenedclosed
Note: See TracTickets for help on using tickets.