Opened 14 years ago

Last modified 14 years ago

#1315 closed defect (fixed)

Checking model Modelica.Mechanics.MultiBody.Visualizers.Internal.Lines gives errors but works fine to instantiate

Reported by: Adrian Pop Owned by: Adrian Pop
Priority: high Milestone: Red October
Component: Version: 1.6.0
Keywords: Cc: Adrian Pop, Adrian Pop

Description

Checking: model Modelica.Mechanics.MultiBody.Visualizers.Internal.Lines... 0.188000000000102 seconds -> OK
	Check of Modelica.Mechanics.MultiBody.Visualizers.Internal.Lines completed successfully.
	
	Error: Type mismatch in modifier of component cylinders[0].length, expected type Real(quantity="Length", unit="m"), got modifier ={} of type Real[0]
	
	Class Modelica.Mechanics.MultiBody.Visualizers.Internal.Lines has 33 equation(s) and 33 variable(s).
	12 of these are trivial equation(s).

We might need to relax the type checking a bit more while Option "checkModel" is activated.

Change History (3)

comment:1 by Per Östlund, 14 years ago

I don't think that this is a bug. The error is actually correct if you look at the model, since the model defines a vector with one dimension set to zero. The reason for this is probably that the Lines model should be modified when it's used.

comment:2 by Peter Aronsson, 14 years ago

Dymola reports:
Check of Modelica.Mechanics.MultiBody.Visualizers.Internal.Lines:
Model having the same number of unknowns and equations:

50+4*size(lines, 1)

Check of Modelica.Mechanics.MultiBody.Visualizers.Internal.Lines successful.

I think that the type checking should not be relaxed, but extended to handle empty arrays correctly.

comment:3 by Adrian Pop, 14 years ago

  • fixed in revision 7159 (see SCM commits for more info).
Note: See TracTickets for help on using tickets.