Ticket #1275: planarRotationTotal.mos

File planarRotationTotal.mos, 132 bytes (added by dhedberg, 14 years ago)

Run the mos file and check the results. OpenModelica produces the following for me:

true
instantiateDaeFunction failed for Math.sin in scope: Modelica.Mechanics.MultiBody.Frames.Quaternions.planarRotation
instantiateDaeFunction failed for Math.sin in scope: Modelica.Mechanics.MultiBody.Frames.Quaternions.planarRotation
"Error: No matching function found for Math.sin(angle / 2.0) of type function(x:Real) => Real in component <NO COMPONENT>, candidates are function(x:Real) => Real
Error: Class Math.sin not found in scope Modelica.Mechanics.MultiBody.Frames.Quaternions.planarRotation.
Error: Wrong type or wrong number of arguments to vector([e * Math.sin(angle / 2);Math.cos(angle / 2)])'.
 (in component <NO COMPONENT>)
Error: No matching function found for Math.sin(angle / 2.0) of type function(x:Real) => Real in component <NO COMPONENT>, candidates are function(x:Real) => Real
Error: Class Math.sin not found in scope Modelica.Mechanics.MultiBody.Frames.Quaternions.planarRotation.
Error: Wrong type or wrong number of arguments to vector([e * Math.sin(angle / 2);Math.cos(angle / 2)])'.
 (in component <NO COMPONENT>)
"
""

So it does not seem to work as suggested, hence reopening this ticket.

Line 
1loadFile("planarRotationTotal.mo");
2checkModel(Modelica.Mechanics.MultiBody.Frames.Quaternions.planarRotation);
3getErrorString();