Opened 6 years ago

Closed 6 years ago

Last modified 6 years ago

#5299 closed enhancement (fixed)

Intoduce flag to only show annotations which affect the solution process

Reported by: Francesco Casella Owned by: Per Östlund
Priority: high Milestone: 2.1.0
Component: Flat Model Dumping Version:
Keywords: Cc:

Description

The --showAnnotations flag shows all the annotations in the flattened model. This includes graphical annotations and documentation, which can be a lot of stuff.

When debugging a model (or OMC itself) it would be nice to only see those annotations that actually affect the solution process. As far as I remember, they would be: Evaluate, Inline, LateInline, derivative, and inverse. We could introduce a --showStructuralAnnotations flag for this purpose.

Change History (6)

comment:1 by Per Östlund, 6 years ago

inverse is actually ignored by the compiler, the only mention I can find in the compiler is in BackEnd/ExpressionSolve.mo: "- TODO: support annotation inverse".

Also, this isn't really a new instantiation issue, but a flat model dumping issue (i.e. the flag would work with the old instantiation too if implemented). But I guess we don't have any Trac component for that.

comment:2 by Per Östlund, 6 years ago

Another annotation that maybe should be shown is smoothOrder, even though it's also ignored by the compiler currently.

comment:3 by Per Östlund, 6 years ago

Implemented in 956320d. Let me know if you come up with any other annotations that should be shown, adding more annotations is trivial.

comment:4 by Per Östlund, 6 years ago

Resolution: fixed
Status: newclosed

in reply to:  1 comment:5 by Francesco Casella, 6 years ago

Replying to perost:

inverse is actually ignored by the compiler, the only mention I can find in the compiler is in BackEnd/ExpressionSolve.mo: "- TODO: support annotation inverse".

I just opened #5300 on this topic.

Also, this isn't really a new instantiation issue, but a flat model dumping issue (i.e. the flag would work with the old instantiation too if implemented). But I guess we don't have any Trac component for that.

Just added one.

comment:6 by Francesco Casella, 6 years ago

Component: New InstantiationFlat Model Dumping
Note: See TracTickets for help on using tickets.