Opened 8 years ago

Last modified 7 years ago

#4411 new defect

OMEdit 1.12 simulate fails with parameter but works when changed to constant — at Version 2

Reported by: Vestal Owned by: Lennart Ochel
Priority: high Milestone: Future
Component: Backend Version:
Keywords: Cc:

Description (last modified by Martin Sjölund)

Seems like a bug in verison 1.12.0 of 3 May 2017

model SpinArtistry
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;
import Modelica.Mechanics.MultiBody.Types.Color;
  // Running "simulate" on this model will result in a 
  // Translation Error "The given system is mixed-determined.
  // [index > 3]"
  // If you comment/uncomment the following lines to change
  // the following declaration from a parameter to a constant,
  // it will succeed.
  parameter SIunits.AngularVelocity der_angle = 10.0;
  //constant SIunits.AngularVelocity der_angle = 10.0;

  //parameter Frames.Orientation Rtilt = Frames.axisRotation(3, -0.7, 0);
  constant Frames.Orientation Rtilt = Frames.axisRotation(3, -0.7, 0);
  SIunits.Angle angle;
  Frames.Orientation R;
     
initial equation
  angle = 0.0;
  R = Frames.absoluteRotation(Frames.Orientation(T=identity(3),w={0,der_angle,0}), Rtilt);
equation
  der_angle = der(angle);
  R = Frames.absoluteRotation(Frames.axisRotation(2, angle, der_angle), Rtilt);  
end SpinArtistry;

Change History (3)

by anonymous, 8 years ago

Attachment: SpinArtistry.mo added

Model with comment characters

comment:1 by Francesco Casella, 7 years ago

Component: *unknown*Backend
Owner: changed from somebody to Lennart Ochel

comment:2 by Martin Sjölund, 7 years ago

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