Opened 7 years ago

Closed 7 years ago

#4670 closed defect (fixed)

NF lookup issue in types involving equalityConstraint

Reported by: Per Östlund Owned by: Adrian Pop
Priority: high Milestone: 2.0.0
Component: New Instantiation Version: v1.13.0-dev-nightly
Keywords: Cc:

Description

Many models in the MSL fail with a lookup error, see e.g.
https://libraries.openmodelica.org/branches/newInst/Modelica_3.2.2/files/Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Constraints.PrismaticConstraint.err:

[Modelica 3.2.2/Mechanics/MultiBody/Parts.mo:844:9-844:81:writable]
Error: Variable Frames.Quaternions.Orientation.equalityConstraint
not found in scope body.

This is due to Orientation being a type, which causes the lookup to fail for some reason. Types aren't allowed to have any other named element than equalityConstraint, so we could probably implement a special case for that.

Change History (3)

comment:1 by Per Östlund, 7 years ago

Also, function lookup uses lookupCref which causes the error message to say "Variable ... not found" instead of "Function ... not found".

comment:2 by Francesco Casella, 7 years ago

Owner: changed from Per Östlund to Adrian Pop
Status: newassigned
Summary: NF lookup issue in typesNF lookup issue in types involving equalityConstraint

comment:3 by Francesco Casella, 7 years ago

Resolution: fixed
Status: assignedclosed

Fixed in PR 2411.

Note: See TracTickets for help on using tickets.