Opened 8 years ago

Last modified 8 years ago

#4399 closed defect

OMEdit 1.12 simulate with animation fails on a model that works with 1.11 — at Initial Version

Reported by: anonymous Owned by: somebody
Priority: high Milestone: 1.12.0
Component: Backend Version: v1.12.0
Keywords: Cc:

Description

This model will Simulate with Animation using OMEdit
version 1.11 but generates the message
BackendDAEUtil.incidenceMatrixScalar failed
when using version 1.12

model SpinningCylinderSimple
import Modelica.SIunits;
import Modelica.Mechanics.MultiBody.Frames.Orientation;
import Modelica.Mechanics.MultiBody.Frames.axisRotation;
import Modelica.Mechanics.MultiBody.Visualizers;
import Modelica.Mechanics.MultiBody.Frames;

parameter SIunits.AngularVelocity der_angle = 10.0;
parameter Real length = 0.1;
SIunits.Angle angle;
Frames.Orientation R;


Visualizers.Advanced.Shape cylinder(

shapeType = "cylinder",
length = length,
width = 1.0,
height = 1.0,
lengthDirection = {1,0,0},
widthDirection = {0,1,0},
r_shape = {-length/2,0,0},
R = R,
extra = 1
);

initial equation

angle = 0.0;
R = Orientation(T=identity(3),w={0,der_angle,0});

equation

R = axisRotation(2, angle, der_angle);
der_angle = der(angle);

end SpinningCylinderSimple;

Change History (0)

Note: See TracTickets for help on using tickets.