Opened 6 years ago

Closed 6 years ago

#5054 closed defect (fixed)

Remaining issue with rooted in NF

Reported by: casella Owned by: adrpo
Priority: high Milestone: 2.0.0
Component: New Instantiation Version:
Keywords: Cc:

Description

After support fro overconstrained connectors was pushed in, there is a remaining issue in all the MultiBody models of the ScalableTestSuite, see, e.g. this one. The error reported is:

[OpenModelica/OMCompiler/Compiler/NFFrontEnd/NFCeval.mo:1440:9-1441:51:writable] Error:
Internal error NFCeval.evalBuiltinCall: unimplemented case for rooted

These models all use plain vanilla components from MSL 3.2.2, where rooted was replaced by Connection.rooted. Is the error message misleading (thus there is an issue with Connection.rooted that needs to be fixed) or has the old, deprecated operator crept in somehow?

Attachments (1)

Change History (4)

comment:1 Changed 6 years ago by adrpo

Seems to be an issue with prefixing / subscripting, I get: Connections.rooted(revolute.frame_a.R) when I should get:Connections.rooted(revolute[1].frame_a.R), Connections.rooted(revolute[2].frame_a.R).

Because of this I cannot find the actual branch in the graph either
branch(revolute[1].frame_a.R, revolute[1].frame_b.R) or
revolute[2].frame_a.R, revolute[2].frame_b.R).

I'll investigate why there is no proper prefixing for just this builtin operator.

comment:2 Changed 6 years ago by adrpo

PR: https://github.com/OpenModelica/OMCompiler/pull/2586 adds a better check about the missing Connection.branch edge in the graph needed for Connection.rooted. It issues a warning and continues. The prefixing problems remains thou.

comment:3 Changed 6 years ago by adrpo

  • Resolution set to fixed
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.