Opened 14 years ago

Last modified 13 years ago

#1265 closed defect (fixed)

Full Modelica 3.1 flattening support of those libraries that where fully supported in Modelica 2.1.

Reported by: Adrian Pop Owned by: Adrian Pop
Priority: blocker Milestone: Red October
Component: Instantiation Version: 1.6.0
Keywords: Cc: Adrian Pop, Per Östlund

Description

The following models fail to instantiate. See also the attached .xls with the same information.

Blocks  
  Check of Modelica.Blocks.Continuous.TransferFunction failed
  Check of Modelica.Blocks.Continuous.StateSpace failed
  Check of Modelica.Blocks.Examples.BusUsage failed
  Check of Modelica.Blocks.Examples.BusUsage_Utilities.Part failed
  Check of Modelica.Blocks.Tables.CombiTable1D failed.
  Check of Modelica.Blocks.Tables.CombiTable1Ds failed.
  Check of Modelica.Blocks.Tables.CombiTable2D failed.
  Check of Modelica.Blocks.Sources.KinematicPTP failed
  Check of Modelica.Blocks.Sources.KinematicPTP2 failed
  Check of Modelica.Blocks.Sources.TimeTable failed
  Check of Modelica.Blocks.Sources.CombiTimeTable failed.
  Check of Modelica.Blocks.Sources.BooleanTable failed
Analog  
  Check of Modelica.Electrical.Analog.Examples.Utilities.RealSwitch failed.
  Check of Modelica.Electrical.Analog.Examples.Utilities.Nand failed.
  Check of Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed failed
  Check of Modelica.Electrical.Analog.Sources.StepVoltage failed.
  Check of Modelica.Electrical.Analog.Sources.RampVoltage failed.
  Check of Modelica.Electrical.Analog.Sources.SineVoltage failed.
  Check of Modelica.Electrical.Analog.Sources.ExpSineVoltage failed.
  Check of Modelica.Electrical.Analog.Sources.ExponentialsVoltage failed.
  Check of Modelica.Electrical.Analog.Sources.PulseVoltage failed.
  Check of Modelica.Electrical.Analog.Sources.SawToothVoltage failed.
  Check of Modelica.Electrical.Analog.Sources.TrapezoidVoltage failed.
  Check of Modelica.Electrical.Analog.Sources.TableVoltage failed.
  Check of Modelica.Electrical.Analog.Sources.StepCurrent failed.
  Check of Modelica.Electrical.Analog.Sources.RampCurrent failed.
  Check of Modelica.Electrical.Analog.Sources.SineCurrent failed.
  Check of Modelica.Electrical.Analog.Sources.ExpSineCurrent failed.
  Check of Modelica.Electrical.Analog.Sources.ExponentialsCurrent failed.
  Check of Modelica.Electrical.Analog.Sources.PulseCurrent failed.
  Check of Modelica.Electrical.Analog.Sources.SawToothCurrent failed.
  Check of Modelica.Electrical.Analog.Sources.TrapezoidCurrent failed.
  Check of Modelica.Electrical.Analog.Sources.TableCurrent failed.
  Check of Modelica.Electrical.Analog.Sensors.PowerSensor failed.
  Check of Modelica.Electrical.Analog.Lines.OLine failed
  Check of Modelica.Electrical.Analog.Lines.M_OLine failed
  Check of Modelica.Electrical.Analog.Lines.ULine failed
  Check of Modelica.Electrical.Analog.Lines.TLine2 failed
  Check of Modelica.Electrical.Analog.Lines.TLine3 failed
  Check of Modelica.Electrical.Analog.Interfaces.VoltageSource failed
  Check of Modelica.Electrical.Analog.Interfaces.CurrentSource failed
  Check of Modelica.Electrical.Analog.Basic.EMF failed.
  Check of Modelica.Electrical.Analog.Basic.TranslationalEMF failed.
  Check of Modelica.Electrical.Analog.Basic.OpAmpDetailed failed
MultiPhase  
  Ok :)
  
Math  
  Check of Modelica.Math.Vectors.norm failed
  Check of Modelica.Math.Matrices.norm failed
  Check of Modelica.Math.Matrices.leastSquares failed
  Check of Modelica.Math.Matrices.singularValues failed
  Check of Modelica.Math.Matrices.det failed
  Check of Modelica.Math.Matrices.rank failed
  Check of Modelica.Math.Matrices.balance failed
  Check of Modelica.Math.Matrices.exp failed
  Check of Modelica.Math.Matrices.integralExp failed
  Check of Modelica.Math.Matrices.integralExpT failed
  Check of Modelica.Math.Matrices.LAPACK.dgels_vec failed
  Check of Modelica.Math.Matrices.LAPACK.dgelsx_vec failed

Multibody  
MultiBody.Forces  
  Ok :)
MultiBody.Frames  
  Check of Modelica.Mechanics.MultiBody.Frames.Quaternions.multipleResolve1 failed
  Check of Modelica.Mechanics.MultiBody.Frames.Quaternions.multipleResolve2 failed
  Check of Modelica.Mechanics.MultiBody.Frames.Quaternions.planarRotation failed
  Check of Modelica.Mechanics.MultiBody.Frames.TransformationMatrices.multipleResolve1 failed
  Check of Modelica.Mechanics.MultiBody.Frames.TransformationMatrices.multipleResolve2 failed
MultiBody.Interfaces  
  Check of Modelica.Mechanics.MultiBody.Interfaces.PartialLineForce failed
MultiBody.Joints  
  Ok :)
MultiBody.Parts  
  Ok :)
MultiBody.Sensors  
  Ok :)
MultiBody.Types  
  Check of Modelica.Mechanics.MultiBody.Types.RotationSequence failed

Attachments (2)

OSMC-CheckMSL-100906.xls (28.5 KB ) - added by Adrian Pop 14 years ago.
failingModels-Modelica3.1.txt (19.4 KB ) - added by Adrian Pop 14 years ago.
This is the result of running: […] Filtered so just the failing models are included.

Download all attachments as: .zip

Change History (4)

by Adrian Pop, 14 years ago

Attachment: OSMC-CheckMSL-100906.xls added

by Adrian Pop, 14 years ago

This is the result of running:

 loadModel(Modelica);
 checkAllModelsRecursive(Modelica);

Filtered so just the failing models are included.

comment:1 by Martin Sjölund, 13 years ago

Only the following models now give errors. Some because they are partial and should not work.

Error: Error occured while flattening model Modelica.Blocks.Continuous.TransferFunction
Error: Error occured while flattening model Modelica.Blocks.Continuous.StateSpace
Error: Error occured while flattening model Modelica.Blocks.Sources.KinematicPTP
Error: Error occured while flattening model Modelica.Blocks.Sources.KinematicPTP2
Error: Error occured while flattening model Modelica.Electrical.Analog.Interfaces.VoltageSource
Error: Error occured while flattening model Modelica.Electrical.Analog.Interfaces.CurrentSource
Error: Error occured while flattening model Modelica.Mechanics.MultiBody.Interfaces.PartialLineForce
Error: Error occured while flattening model Modelica.Mechanics.MultiBody.Types.RotationSequence

I used echo "loadModel(Modelica);" > x.mos ; grep -o Modelica.*\ c | sed "s/^/x:=instantiateModel(/" | sed "s/ \$/) == \"\"; echo(false);y:=getErrorString();echo(true);if x then print(y); end if;/" >> x.mos; omc x.mos > log; grep flattening log to generate the report :)

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

checkModel works on all the models, so I am closing the bug.

Note: See TracTickets for help on using tickets.