Opened 12 years ago

Last modified 12 years ago

#1852 closed defect

Error: Internal error SimCodeUtil.calculateIndex failed — at Version 1

Reported by: Adrian Pop Owned by: somebody
Priority: normal Milestone: 1.9.0
Component: Backend Version: trunk
Keywords: Cc: Jens Frenkel

Description (last modified by Adrian Pop)

The model below generates this error:

Error: Internal error SimCodeUtil.calculateIndex failed
model double_wishbone 
  Modelica.Mechanics.MultiBody.Parts.Body body1(r_CM = {0.2,0,0.3}, m = 5) annotation(Placement(visible = true, transformation(origin = {15.1111,79.5556}, extent = {{12,-12},{-12,12}}, rotation = -270))); 
  Modelica.Mechanics.MultiBody.Forces.SpringDamperParallel springdamperparallel1(c = 50000, s_unstretched = 0.5, d = 500) annotation(Placement(visible = true, transformation(origin = {69.7778,52}, extent = {{-12,-12},{12,12}}, rotation = 0))); 
  Modelica.Mechanics.MultiBody.Parts.FixedTranslation fixedtranslation2(r = {0.4,0,0}) annotation(Placement(visible = true, transformation(origin = {15.1111,-20.4444}, extent = {{-12,-12},{12,12}}, rotation = 0))); 
  Modelica.Mechanics.MultiBody.Parts.FixedTranslation fixedtranslation1(r = {0.4,0,0.3}) annotation(Placement(visible = true, transformation(origin = {20.8889,23.5556}, extent = {{-12,-12},{12,12}}, rotation = 0))); 
  Modelica.Mechanics.MultiBody.Joints.Revolute revolute1(n = {0,1,0}) annotation(Placement(visible = true, transformation(origin = {-28,52}, extent = {{-12,-12},{12,12}}, rotation = 0))); 
  inner Modelica.Mechanics.MultiBody.World world(label2 = "z", n = {0,0,-1}) annotation(Placement(visible = true, transformation(origin = {-84.0317,4}, extent = {{-12,-12},{12,12}}, rotation = 0))); 
equation 
  connect(fixedtranslation2.frame_a,world.frame_b) annotation(Line(points = {{3.11111,-20.4444},{-31.5556,-20.4444},{-31.5556,4},{-72.0317,4},{-72.0317,4}})); 
  connect(world.frame_b,revolute1.frame_a) annotation(Line(points = {{-72.0317,4},{-51.5556,4},{-51.5556,52},{-40,52}})); 
  connect(revolute1.frame_b,fixedtranslation1.frame_a) annotation(Line(points = {{-16,52},{-4,52},{-4,23.5556},{8.88889,23.5556}})); 
  connect(revolute1.frame_b,body1.frame_a) annotation(Line(points = {{-16,52},{14.6667,52},{14.6667,67.5556},{15.1111,67.5556}})); 
  connect(fixedtranslation1.frame_b,springdamperparallel1.frame_a) annotation(Line(points = {{32.8889,23.5556},{48,23.5556},{48,52},{57.7778,52}})); 
  connect(springdamperparallel1.frame_b,fixedtranslation2.frame_b) annotation(Line(points = {{81.7778,52},{90.6667,52},{90.6667,-20.4444},{27.1111,-20.4444}})); 
end double_wishbone; 

The model is taken from here

However, the simulation seems to work fine (no idea if the results are correct).

Change History (1)

comment:1 by Adrian Pop, 12 years ago

Description: modified (diff)
Note: See TracTickets for help on using tickets.