Opened 12 years ago

Closed 12 years ago

#1970 closed defect (fixed)

Multibody Visualizers type error

Reported by: Bruno Scaglioni Owned by: probably noone
Priority: high Milestone: 1.9.0
Component: Backend Version: trunk
Keywords: Visualizers, types Cc:

Description

The model contained in the attached file outputs a type mismatch error between the variable "r" of "visPoints" and the variable "points"
but both are of type "Modelica.SIunits.Position"

Here is reported the error I get with nightly build r14220:

Error: Type mismatch in modifier of component visPoints[1]r, declared type .Modelica.SIunits.Position[3], got modifier points[1] of type Real(quantity=\"Length\", unit=\"m\")
Error: Error occurred while flattening model TestPolimi.typeTest

further, the visual components of multibody shouldn't be ignored for the time being?

Attachments (1)

typeTest.mo (408 bytes ) - added by Bruno Scaglioni 12 years ago.

Download all attachments as: .zip

Change History (6)

by Bruno Scaglioni, 12 years ago

Attachment: typeTest.mo added

comment:1 by Per Östlund, 12 years ago

Duplicate of #1405.

comment:2 by Bruno Scaglioni, 12 years ago

The last comment of #1405 says the issue is fixed by "+d=sCodeInst" but I get the error with this instructions:

setMatchingAlgorithm("PFPlusExt");
setIndexReductionMethod("dynamicStateSelection");
setDebugFlags("scodeInstShortcut");
simulate(typeTest);

with r14220 (4/12/2012)

comment:3 by Per Östlund, 12 years ago

Yes, the old instantiation is still used for typing when using the scodeInstShortcut, since the typing in the new instantiation isn't done yet. And the old instantiation currently doesn't handle array types correctly.

comment:4 by Adrian Pop, 12 years ago

Hopefully fixed in r14255.

comment:5 by Adrian Pop, 12 years ago

Resolution: fixed
Status: newclosed

Fixed in r14273.

Note: See TracTickets for help on using tickets.