mtiller / ModelicaBook

Source for my new Modelica Book
https://mbe.modelica.university
Other
97 stars 71 forks source link

Examples test run #54

Closed tbeu closed 10 years ago

tbeu commented 10 years ago

I run the 77 example models I could identify in SimulationX Modelica simulator. Please find below the output (informationals, warnings and errors). Beside some obvious issues of the example models there are probably some issues in SimulationX as well.

Model 1: ModelicaByExample.Architectures.SensorComparison.Examples.BaseSystem
Model 2: ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem
Model 3: ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem_Variation1
Model 4: ModelicaByExample.Architectures.SensorComparison.Examples.HierarchicalSystem
Model 5: ModelicaByExample.Architectures.SensorComparison.Examples.HierarchicalSystem_Variant1
Information In sensor.sample_rate
The parameter sensor.sample_rate has no value. For simulation the value Modelica.Constants.eps from min attribute is used.
Model 6: ModelicaByExample.Architectures.SensorComparison.Examples.SystemArchitecture
Warning In ModelicaByExample.Architectures.SensorComparison.Examples.SystemArchitecture
The structure of the equation system is singular.Equations are missing.
Following equations are introduced:
sensor.shaft.tau=0.;
plant.housing.tau=0.;
plant.flange_a.tau=0.;
.
Model 7: ModelicaByExample.Architectures.SensorComparison.Examples.SystemArchitecture_WithDefaults
Model 8: ModelicaByExample.Architectures.SensorComparison.Examples.Variant1
Model 9: ModelicaByExample.Architectures.SensorComparison.Examples.Variant1_unstable
Model 10: ModelicaByExample.Architectures.SensorComparison.Examples.Variant2
Model 11: ModelicaByExample.Architectures.SensorComparison.Examples.Variant2_tuned
Model 12: ModelicaByExample.Architectures.ThermalControl.Examples.BaseModel
Model 13: ModelicaByExample.Architectures.ThermalControl.Examples.ExpandableModel
Model 14: ModelicaByExample.Architectures.ThermalControl.Examples.HysteresisVariant
Model 15: ModelicaByExample.Architectures.ThermalControl.Examples.OnOffVariant
Model 16: ModelicaByExample.ArrayEquations.StateSpace.Examples.FirstOrder
Model 17: ModelicaByExample.ArrayEquations.StateSpace.Examples.FirstOrder_Compact
Model 18: ModelicaByExample.ArrayEquations.StateSpace.Examples.LotkaVolterra
Warning In ModelicaByExample.ArrayEquations.StateSpace.Examples.LotkaVolterra
The structure of the equation system is singular.Equations are missing.
Following equations are introduced:
x_1_=0.;
x_0_=0.;
.
Calculation of consistent initial values failed! (Lotka-Volterra model in state space form)
Residuals out of the tolerance region       (used states and their derivatives):
initial equation 1         10.000000000000000   ()
initial equation 2         10.000000000000000   ()

Current Simulation Time:    0 s
Computation Time:   5.02250227662329e-005 s
Steps:  0
   Valid:       0
   Error:       0
   NoConv:      0
Calculations:
   Residuals:   2
   Jacobian:    0
   Dummy-pivotings: 0
   Event iterations:    1
Order:
   Changes:     0
   Max:         0
Matrix:
   Decomp:      0
   Solve:       0
   CodeGeneration:  0
Number of States:       0
Model 19: ModelicaByExample.ArrayEquations.StateSpace.Examples.NewtonCooling
Model 20: ModelicaByExample.ArrayEquations.StateSpace.Examples.RLC
Model 21: ModelicaByExample.ArrayEquations.StateSpace.Examples.RotationalSMD
Model 22: ModelicaByExample.ArrayEquations.StateSpace.Examples.RotationalSMD_Concat
Model 23: ModelicaByExample.Components.BlockDiagrams.Examples.ControlledCooling
Model 24: ModelicaByExample.Components.BlockDiagrams.Examples.MultiDomainControl
Warning In convection2.A
The parameter convection2.A has no value, 0 is assumed.
Model 25: ModelicaByExample.Components.BlockDiagrams.Examples.NewtonCooling
Model 26: ModelicaByExample.Components.ChemicalReactions.Examples.ABX_System
Model 27: ModelicaByExample.Components.Electrical.Examples.SwitchedRLC
Warning In ModelicaByExample.Components.Electrical.Examples.SwitchedRLC
There is no start attribute of state capacitor.v. It is set to 0.
Warning In ModelicaByExample.Components.Electrical.Examples.SwitchedRLC
There is no start attribute of state inductor.p.i. It is set to 0.
Model 28: ModelicaByExample.Components.HeatTransfer.Examples.Adiabatic
Model 29: ModelicaByExample.Components.HeatTransfer.Examples.ComplexNetwork
Model 30: ModelicaByExample.Components.HeatTransfer.Examples.Cooling
Model 31: ModelicaByExample.Components.HeatTransfer.Examples.CoolingToAmbient
Model 32: ModelicaByExample.Components.LotkaVolterra.Examples.ClassicLotkaVolterra
Model 33: ModelicaByExample.Components.LotkaVolterra.Examples.ThirdSpecies
Model 34: ModelicaByExample.Components.LotkaVolterra.Examples.ThreeSpecies_Quiescent
Error: Exception during the calculation. Reducing the minimal computation step size (dtMin) can solve the problem. (Three species in a quiescent state)
Error: Exception during the calculation
In Base type ModelicaByExample.Components.LotkaVolterra.Examples.ThirdSpecies of wolves: assert failed: Population must be greater than zero

Current Simulation Time:    0 s
Computation Time:   0.00668139445193135 s
Steps:  11
   Valid:       0
   Error:       0
   NoConv:      11
Calculations:
   Residuals:   87
   Jacobian:    20
   Dummy-pivotings: 1
   Event iterations:    1
Order:
   Changes:     1
   Max:         1
Matrix:
   Decomp:      14
   Solve:       67
   CodeGeneration:  2
Number of States:       3
Error
In Base type ModelicaByExample.Components.LotkaVolterra.Examples.ThirdSpecies of wolves: assert failed: Population must be greater than zero
Model 35: ModelicaByExample.Components.Rotational.Examples.SMD
Model 36: ModelicaByExample.Components.Rotational.Examples.SMD_ConfigurableGear
Model 37: ModelicaByExample.Components.Rotational.Examples.SMD_GearComparison
Model 38: ModelicaByExample.Components.Rotational.Examples.SMD_WithBacklash
Model 39: ModelicaByExample.Components.Rotational.Examples.SMD_WithGroundedGear
Model 40: ModelicaByExample.Components.SpeedMeasurement.Examples.Plant
Model 41: ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithIntervalMeasure
Model 42: ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithPulseCounter
Model 43: ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithSampleHold
Model 44: ModelicaByExample.PackageExamples.NewtonCooling
Model 45: ModelicaByExample.PackageExamples.RLC
Warning In ModelicaByExample.PackageExamples.RLC
There is no start attribute of state V. It is set to 0.
Warning In ModelicaByExample.PackageExamples.RLC
There is no start attribute of state i_L. It is set to 0.
Model 46: ModelicaByExample.PackageExamples.SecondOrderSystem
Model 47: ModelicaByExample.Subsystems.GearSubsystemModel.Examples.BacklashExample
Model 48: ModelicaByExample.Subsystems.GearSubsystemModel.Examples.FlatSystemWithBacklash
Model 49: ModelicaByExample.Subsystems.HeatTransfer.Examples.FlatRod
Model 50: ModelicaByExample.Subsystems.HeatTransfer.Examples.OneHundredSegmentRod
Model 51: ModelicaByExample.Subsystems.HeatTransfer.Examples.SegmentComparison
Model 52: ModelicaByExample.Subsystems.HeatTransfer.Examples.SixSegmentRod
Model 53: ModelicaByExample.Subsystems.HeatTransfer.Examples.TenSegmentRod
Model 54: ModelicaByExample.Subsystems.HeatTransfer.Examples.ThreeSegmentRod
Model 55: ModelicaByExample.Subsystems.HeatTransfer.Examples.TwoHundredSegmentRod
Model 56: ModelicaByExample.Subsystems.LotkaVolterra.Examples.InitiallyDifferent
Model 57: ModelicaByExample.Subsystems.LotkaVolterra.Examples.UnconnectedPopulations
Model 58: ModelicaByExample.Subsystems.LotkaVolterra.Examples.WithMigration
Model 59: ModelicaByExample.Subsystems.Pendula.Pendulum
Warning In ball
The declaration of world (inner) is missing and automatically created.
No "world" component is defined. A default world
component with the default gravity field will be used
(g=9.81 in negative y-axis). If this is not desired,
drag Modelica.Mechanics.MultiBody.World into the top level of your model.
Warning In L
The parameter L has no value, 0 is assumed.
Information In m
The parameter m has no value. For simulation the value 0 from min attribute is used.
Warning In phi
The parameter phi has no value, 0 is assumed.
Warning In x
The parameter x has no value, 0 is assumed.
Warning In ModelicaByExample.Subsystems.Pendula.Pendulum
The structure of the equation system is singular.Equations are missing.
_der_revolute.w:
| _der_revolute.phi --> der-Equation of _der_revolute.phi and _der_revolute.w
| | string.body.w_a_2_ --> string.body.w_a_2_=-_der_revolute.phi;
| | | _der_string.body.w_a_2_ --> der-Equation of string.body.w_a_2_ and _der_string.body.w_a_2_
| | revolute.phi --> der-Equation of revolute.phi and _der_revolute.phi
| | | revolute.R_rel.T_4_ --> revolute.R_rel.T_4_=cos(revolute.phi);
| | | | revolute.frame_a.R.T_4_ --> revolute.frame_a.R.T_4_=revolute.R_rel.T_4_* ground.frame_b.R.T[2,2];
| | | revolute.R_rel.T_3_ --> revolute.R_rel.T_3_=sin(revolute.phi);
| | | | revolute.frame_a.R.T_3_ --> revolute.frame_a.R.T_3_=revolute.R_rel.T_3_* ground.frame_b.R.T[1,1];
| | | revolute.R_rel.T_1_ --> revolute.R_rel.T_1_=-1*sin(revolute.phi);
| | | | revolute.frame_a.R.T_1_ --> revolute.frame_a.R.T_1_=revolute.R_rel.T_1_* ground.frame_b.R.T[2,2];
| | | revolute.R_rel.T_0_ --> revolute.R_rel.T_0_=cos(revolute.phi);
| | | | revolute.frame_a.R.T_0_ --> revolute.frame_a.R.T_0_=revolute.R_rel.T_0_* ground.frame_b.R.T[1,1];
.
Error: Exception during the calculation. Reducing the minimal computation step size (dtMin) can solve the problem. (A single individual pendulum)
Error: Exception during the calculation
In Modelica.Math.Vectors.normalizeWithAssert: assert failed: Vector v={0,0,0} shall be normalized (= v/sqrt(v*v)), but this results in a division by zero.
Provide a non-zero vector!

Current Simulation Time:    0 s
Computation Time:   0.00277704049236653 s
Steps:  2
   Valid:       1
   Error:       0
   NoConv:      1
Calculations:
   Residuals:   4
   Jacobian:    0
   Dummy-pivotings: 0
   Event iterations:    1
Order:
   Changes:     0
   Max:         0
Matrix:
   Decomp:      0
   Solve:       0
   CodeGeneration:  0
Number of States:       0
Error
In Modelica.Math.Vectors.normalizeWithAssert: assert failed: Vector v={0,0,0} shall be normalized (= v/sqrt(v*v)), but this results in a division by zero.
Provide a non-zero vector!
Model 60: ModelicaByExample.Subsystems.Pendula.System
Error In Modelica.Math.Vectors.normalizeWithAssert
_2_Modelica.Math.Vectors.normalizeWithAssert.result:=
                                                     pendulum.revolute.n*sqrt(pendulum.revolute.n*pendulum.revolute.n)^-1;
In an assignment, the variable ([15]-vector) must have the same dimension as the expression ([3]-vector).
Error In pendulum.revolute.cylinder.r_shape
pendulum.revolute.cylinder.r_shapeCalc=
                                       -1*_2_Modelica.Math.Vectors.normalizeWithAssert.result*pendulum.revolute.cylinderLength*0.5;
In an equation, the left ([3]-vector) and the right side ([15]-vector) must have the same dimension.
Error In pendulum.revolute
pendulum.revolute.tau=
                      -1*pendulum.revolute.frame_b.t*_2_Modelica.Math.Vectors.normalizeWithAssert.result;
The operator "*" requires arguments of equal dimensions.
Error In Modelica.Math.Vectors.normalizeWithAssert
_3_Modelica.Math.Vectors.normalizeWithAssert.result:=
                                                     pendulum.string.lengthDirection*sqrt(pendulum.string.lengthDirection*pendulum.string.lengthDirection)^-1;
In an assignment, the variable ([15]-vector) must have the same dimension as the expression ([3]-vector).
Error In pendulum.string.r_CM
pendulum.string.r_CM=pendulum.string.r_shape+_3_Modelica.Math.Vectors.normalizeWithAssert.result*pendulum.string.length*0.5;
The operator "+" requires arguments of equal dimensions.
Error In pendulum.string.sequence_angleStates.min
pendulum.string.sequence_angleStates.min:=
                                          {1,1,1};
In an assignment, the variable ([15,3]-matrix) must have the same dimension as the expression ([3]-vector).
Error In pendulum.string.sequence_angleStates.max
pendulum.string.sequence_angleStates.max:=
                                          {3,3,3};
In an assignment, the variable ([15,3]-matrix) must have the same dimension as the expression ([3]-vector).
Error In pendulum.string.sequence_start.min
pendulum.string.sequence_start.min:=
                                    {1,1,1};
In an assignment, the variable ([15,3]-matrix) must have the same dimension as the expression ([3]-vector).
Error In pendulum.string.sequence_start.max
pendulum.string.sequence_start.max:=
                                    {3,3,3};
In an assignment, the variable ([15,3]-matrix) must have the same dimension as the expression ([3]-vector).
Error In pendulum.string.body.sequence_angleStates.min
pendulum.string.body.sequence_angleStates.min:=
                                               {1,1,1};
In an assignment, the variable ([15,3]-matrix) must have the same dimension as the expression ([3]-vector).
Error In pendulum.string.body.sequence_angleStates.max
pendulum.string.body.sequence_angleStates.max:=
                                               {3,3,3};
In an assignment, the variable ([15,3]-matrix) must have the same dimension as the expression ([3]-vector).
Error In pendulum.string.body.sequence_start.min
pendulum.string.body.sequence_start.min:=
                                         {1,1,1};
In an assignment, the variable ([15,3]-matrix) must have the same dimension as the expression ([3]-vector).
Error In pendulum.string.body.sequence_start.max
pendulum.string.body.sequence_start.max:=
                                         {3,3,3};
In an assignment, the variable ([15,3]-matrix) must have the same dimension as the expression ([3]-vector).
Model 61: ModelicaByExample.Subsystems.PowerSupply.Examples.AdditionalLoad
Model 62: ModelicaByExample.Subsystems.PowerSupply.Examples.FlatCircuit
Model 63: ModelicaByExample.Subsystems.PowerSupply.Examples.SubsystemCircuit
Model 64: ModelicaByExample.Functions.Polynomials.Differentiation1
Model 65: ModelicaByExample.Functions.Polynomials.Differentiation2
Model 66: ModelicaByExample.Functions.Polynomials.EvaluationTest1
Model 67: ModelicaByExample.Functions.Nonlinearities.ExplicitEvaluation
Model 68: ModelicaByExample.Functions.ImpureFunctions.HysteresisEmbeddedControl
Error In ModelicaByExample.Functions.ImpureFunctions.HysteresisEmbeddedControl
Q=computeHeat(T,Tbar,Qcapacity);
^---

Unknown function "computeHeat" referenced.
Model 69: ModelicaByExample.Functions.Nonlinearities.ImplicitEvaluation
Model 70: ModelicaByExample.Functions.Interpolation.IntegrateInterpolatedExternalVector
Warning In ModelicaByExample.Functions.Interpolation.IntegrateInterpolatedExternalVector
There is no start attribute of state z. It is set to 0.
The name of the library is missing.
In ModelicaByExample.Functions.Interpolation.VectorTable: The name of the library where the external function createVectorTable is defined is missing (use "Library=name" or "dll=name.dll" annotation).
Model 71: ModelicaByExample.Functions.Interpolation.IntegrateInterpolatedVector
Warning In ModelicaByExample.Functions.Interpolation.IntegrateInterpolatedVector
There is no start attribute of state z. It is set to 0.
Model 72: ModelicaByExample.BasicEquations.SimpleExample.FirstOrderSteady
Model 73: ModelicaByExample.BasicEquations.SimpleExample.FirstOrderInitial
Model 74: ModelicaByExample.BasicEquations.SimpleExample.FirstOrderExperiment
Model 75: ModelicaByExample.BasicEquations.SimpleExample.FirstOrderDocumented
Warning In ModelicaByExample.BasicEquations.SimpleExample.FirstOrderDocumented
There is no start attribute of state x. It is set to 0.
Model 76: ModelicaByExample.BasicEquations.SimpleExample.FirstOrder
Warning In ModelicaByExample.BasicEquations.SimpleExample.FirstOrder
There is no start attribute of state x. It is set to 0.
Model 77: ModelicaByExample.BasicEquations.CoolingExample.NewtonCoolingWithDefaults

I need to check what happens with the Pendula models.

xogeny commented 10 years ago

Thomas,

Thanks! It is great that you had a look at this. One thing to keep in mind is that I deliberately left experiment annotations out of most models simply because I didn't want them cluttering up the source code listings in the book. The experimental conditions are stored in a script called text/specs.py. You'll notice at the end of that script a call to generate. Currently, that call generates input files for OpenModelica. But what it could also do (I just haven't had time to add it) is create a special package that creates a version of each simulation with an experiment annotation, e.g.

package Experiments
  model FO
    extends ModelicaByExample.BasicEquations.SimpleExample.FirstOrder;
    annotation(experiment(stopTime=10));
  end FO;
  model FOI
    extends ModelicaByExample.BasicEquations.SimpleExample.FirstOrderInitial;
    annotation(experiment(stopTime=10));
  end FOI;
  ...
end Experiments;

The add_case function in specs.py collects/infers all the information necessary to know exactly what model should be run and under what conditions. For the OpenModelica output, I use a Jinja2 based code generation scheme. It would be quite easy to add additional code to generate the Experiments package I describe above. I will do it at some point. But if you want to take a shot at it, feel free. This is how I managed to get the integrated Javascript into the web version of the book, BTW. (same information was required)

tbeu commented 10 years ago

What I would need is a plain text file where each line is one model to be simulated. Thus I use default experiment settings if there is no experiment annotation. Maybe this is easier for you to generate from the add_case.

ModelicaByExample.Architectures.SensorComparison.Examples.BaseSystem
ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem
ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem_Variation1
ModelicaByExample.Architectures.SensorComparison.Examples.HierarchicalSystem
ModelicaByExample.Architectures.SensorComparison.Examples.HierarchicalSystem_Variant1
ModelicaByExample.Architectures.SensorComparison.Examples.SystemArchitecture
ModelicaByExample.Architectures.SensorComparison.Examples.SystemArchitecture_WithDefaults
ModelicaByExample.Architectures.SensorComparison.Examples.Variant1
ModelicaByExample.Architectures.SensorComparison.Examples.Variant1_unstable
ModelicaByExample.Architectures.SensorComparison.Examples.Variant2
ModelicaByExample.Architectures.SensorComparison.Examples.Variant2_tuned
ModelicaByExample.Architectures.ThermalControl.Examples.BaseModel
ModelicaByExample.Architectures.ThermalControl.Examples.ExpandableModel
ModelicaByExample.Architectures.ThermalControl.Examples.HysteresisVariant
ModelicaByExample.Architectures.ThermalControl.Examples.OnOffVariant
ModelicaByExample.ArrayEquations.StateSpace.Examples.FirstOrder
ModelicaByExample.ArrayEquations.StateSpace.Examples.FirstOrder_Compact
ModelicaByExample.ArrayEquations.StateSpace.Examples.LotkaVolterra
ModelicaByExample.ArrayEquations.StateSpace.Examples.NewtonCooling
ModelicaByExample.ArrayEquations.StateSpace.Examples.RLC
ModelicaByExample.ArrayEquations.StateSpace.Examples.RotationalSMD
ModelicaByExample.ArrayEquations.StateSpace.Examples.RotationalSMD_Concat
ModelicaByExample.Components.BlockDiagrams.Examples.ControlledCooling
ModelicaByExample.Components.BlockDiagrams.Examples.MultiDomainControl
ModelicaByExample.Components.BlockDiagrams.Examples.NewtonCooling
ModelicaByExample.Components.ChemicalReactions.Examples.ABX_System
ModelicaByExample.Components.Electrical.Examples.SwitchedRLC
ModelicaByExample.Components.HeatTransfer.Examples.Adiabatic
ModelicaByExample.Components.HeatTransfer.Examples.ComplexNetwork
ModelicaByExample.Components.HeatTransfer.Examples.Cooling
ModelicaByExample.Components.HeatTransfer.Examples.CoolingToAmbient
ModelicaByExample.Components.LotkaVolterra.Examples.ClassicLotkaVolterra
ModelicaByExample.Components.LotkaVolterra.Examples.ThirdSpecies
ModelicaByExample.Components.LotkaVolterra.Examples.ThreeSpecies_Quiescent
ModelicaByExample.Components.Rotational.Examples.SMD
ModelicaByExample.Components.Rotational.Examples.SMD_ConfigurableGear
ModelicaByExample.Components.Rotational.Examples.SMD_GearComparison
ModelicaByExample.Components.Rotational.Examples.SMD_WithBacklash
ModelicaByExample.Components.Rotational.Examples.SMD_WithGroundedGear
ModelicaByExample.Components.SpeedMeasurement.Examples.Plant
ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithIntervalMeasure
ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithPulseCounter
ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithSampleHold
ModelicaByExample.PackageExamples.NewtonCooling
ModelicaByExample.PackageExamples.RLC
ModelicaByExample.PackageExamples.SecondOrderSystem
ModelicaByExample.Subsystems.GearSubsystemModel.Examples.BacklashExample
ModelicaByExample.Subsystems.GearSubsystemModel.Examples.FlatSystemWithBacklash
ModelicaByExample.Subsystems.HeatTransfer.Examples.FlatRod
ModelicaByExample.Subsystems.HeatTransfer.Examples.OneHundredSegmentRod
ModelicaByExample.Subsystems.HeatTransfer.Examples.SegmentComparison
ModelicaByExample.Subsystems.HeatTransfer.Examples.SixSegmentRod
ModelicaByExample.Subsystems.HeatTransfer.Examples.TenSegmentRod
ModelicaByExample.Subsystems.HeatTransfer.Examples.ThreeSegmentRod
ModelicaByExample.Subsystems.HeatTransfer.Examples.TwoHundredSegmentRod
ModelicaByExample.Subsystems.LotkaVolterra.Examples.InitiallyDifferent
ModelicaByExample.Subsystems.LotkaVolterra.Examples.UnconnectedPopulations
ModelicaByExample.Subsystems.LotkaVolterra.Examples.WithMigration
ModelicaByExample.Subsystems.Pendula.Pendulum
ModelicaByExample.Subsystems.Pendula.System
ModelicaByExample.Subsystems.PowerSupply.Examples.AdditionalLoad
ModelicaByExample.Subsystems.PowerSupply.Examples.FlatCircuit
ModelicaByExample.Subsystems.PowerSupply.Examples.SubsystemCircuit
ModelicaByExample.Functions.Polynomials.Differentiation1
ModelicaByExample.Functions.Polynomials.Differentiation2
ModelicaByExample.Functions.Polynomials.EvaluationTest1
ModelicaByExample.Functions.Nonlinearities.ExplicitEvaluation
ModelicaByExample.Functions.ImpureFunctions.HysteresisEmbeddedControl
ModelicaByExample.Functions.Nonlinearities.ImplicitEvaluation
ModelicaByExample.Functions.Interpolation.IntegrateInterpolatedExternalVector
ModelicaByExample.Functions.Interpolation.IntegrateInterpolatedVector
ModelicaByExample.BasicEquations.SimpleExample.FirstOrderSteady
ModelicaByExample.BasicEquations.SimpleExample.FirstOrderInitial
ModelicaByExample.BasicEquations.SimpleExample.FirstOrderExperiment
ModelicaByExample.BasicEquations.SimpleExample.FirstOrderDocumented
ModelicaByExample.BasicEquations.SimpleExample.FirstOrder
ModelicaByExample.BasicEquations.CoolingExample.NewtonCoolingWithDefaults
xogeny commented 10 years ago

Thomas,

Just to be clear, the default experiment settings won't be correct for these models. The specs.py file includes the experimental information (not the Modelica models). So if you only have a list of the models, you won't simulate for the right amount of time or the right tolerance.

tbeu commented 10 years ago

So far I was only interested in the symbolic analysis (= translation) and initialization but not the simulation (results).

xogeny commented 10 years ago

I'm not sure how to "resolve" this issue. I'm going to mark it as a duplicate of issue #6. So any additional commentary should be added there.

tbeu commented 10 years ago

Hm, I thought you would care about missing start value warnings (like in model 45) or missing parameters (e.g. model 24). Furthermore, model 6 an 18 give warnings about missing equations.

xogeny commented 10 years ago

Sorry, I overlooked those issue. I got too focused on the issue of generating the list of models and how to run them. My mistake. I'll probably split those out into individual issues and then close this ticket. Sound reasonable?

tbeu commented 10 years ago

Yes, fine for me. I should have done it this way but was too lazy.

xogeny commented 10 years ago

I don't understand the problem with model 6. It is partial. Why is there an error here?

xogeny commented 10 years ago

Why is model 18 reporting an issue. It looks like SimulationX is adding initial equations. But that model already has initial equations?

tbeu commented 10 years ago

Mike, can't check the models right now but will do so later.

xogeny commented 10 years ago

I don't understand the issue with model 59. That is a component model so I don't see why those checks are being done. I realize that without an "experiment" annotation, it is hard to know which ones to check for "simulatability". It doesn't look like 59 should be on that list. Correct me if I'm wrong.

tbeu commented 10 years ago

Model 6 is indeed partial and is not intended to run as simulation model. It should be removed from my list.

tbeu commented 10 years ago

From looking at ABCD.mo of model 18: Shouldn't it be?

parameter Real x0[nx](fixed=false)=fill(0,nx);

I need to run some tests on it.

tbeu commented 10 years ago

Model 59 should also be removed from the list of runnable models.

tbeu commented 10 years ago

About model 18: SimulationX has some problem with those empty vectors and matrices. Workaround: If I increase dimensions of ny and nu from 0 to 1 and change the model it runs as expected.

model LotkaVolterra "Lotka-Volterra model in state space form"
  parameter Real alpha=0.1;
  parameter Real beta=0.02;
  parameter Real gamma=0.4;
  parameter Real delta=0.02;
  parameter Real x_init=10;
  parameter Real y_init=10;
  extends ABCD(nx=2, nu=1, ny=1, x0={x_init, y_init});
equation
  A = [alpha-beta*x[2], 0; 0, -gamma+delta*x[1]];
  B = zeros(nx, nu);
  C = zeros(ny, nx);
  D = zeros(ny, nu);
  u = zeros(nu);
end LotkaVolterra;

I will file a ticket for SimulationX here.

tbeu commented 10 years ago

About model 59: Maybe you should move: Subsystems.Pendula.Pendulum -> Subsystems.Pendula.Components.Pendulum Subsystems.Pendula.System -> Subsystems.Pendula.Examples.System

tbeu commented 10 years ago

I added my list of identified examples to Examples.txt.

xogeny commented 10 years ago

I think all the issues discussed in this ticket have been either dealt with or given their own ticket. So I'm closing this now.