Opened 15 years ago

Last modified 14 years ago

#1156 closed defect (fixed)

The examples in Machines and Multiphase fails to check (by MathCore)

Reported by: kargu Owned by: kargu
Priority: critical Milestone: Red October
Component: Instantiation Version:
Keywords: Cc: kargu, adrpo

Description

The following models fails to check:

Modelica.Electrical.Machines.Examples.AIMC_DOL
Modelica.Electrical.Machines.Examples.AIMC_YD
Modelica.Electrical.Machines.Examples.AIMS_start
Modelica.Electrical.Machines.Examples.SMEE_Gen
Modelica.Electrical.MultiPhase.Examples.TransformerYY
Modelica.Electrical.MultiPhase.Examples.TransformerYD
Modelica.Electrical.MultiPhase.Examples.Rectifier

(They have worked in previous versions.)

Change History (6)

comment:2 Changed 14 years ago by petar

Increasing priority, as they have worked before and is part of MSL.

comment:3 Changed 14 years ago by adrpo

Note that:

Modelica.Electrical.Machines.Examples.AIMS_start

is actually called:

Modelica.Electrical.Machines.Examples.AIMS_Start

and:

Modelica.Electrical.Machines.Examples.SMEE_Gen

is actually called:

Modelica.Electrical.Machines.Examples.SMEE_Generator

comment:4 Changed 14 years ago by adrpo

The situation is like this 6 models check fine:

Check of Modelica.Electrical.Machines.Examples.AIMC_DOL completed successfully.
Class Modelica.Electrical.Machines.Examples.AIMC_DOL has 402 equation(s) and 390 variable(s).
289 of these are trivial equation(s).

Check of Modelica.Electrical.Machines.Examples.AIMC_YD completed successfully.
Class Modelica.Electrical.Machines.Examples.AIMC_YD has 476 equation(s) and 458 variable(s).
341 of these are trivial equation(s).

Check of Modelica.Electrical.Machines.Examples.AIMS_Start completed successfully.
Class Modelica.Electrical.Machines.Examples.AIMS_Start has 664 equation(s) and 634 variable(s).
470 of these are trivial equation(s).

Check of Modelica.Electrical.MultiPhase.Examples.TransformerYY completed successfully.
Class Modelica.Electrical.MultiPhase.Examples.TransformerYY has 293 equation(s) and 281 variable(s).
223 of these are trivial equation(s).

Check of Modelica.Electrical.MultiPhase.Examples.TransformerYD completed successfully.
Class Modelica.Electrical.MultiPhase.Examples.TransformerYD has 297 equation(s) and 285 variable(s).
225 of these are trivial equation(s).

Check of Modelica.Electrical.MultiPhase.Examples.Rectifier completed successfully.
Class Modelica.Electrical.MultiPhase.Examples.Rectifier has 224 equation(s) and 218 variable(s).
153 of these are trivial equation(s).

And one fails to check:

Check of Modelica.Electrical.Machines.Examples.SMEE_Generator failed.
Error: No constant value for variable useDamperCage in scope Modelica.Electrical.Machines.BasicMachines.SynchronousInductionMachines.SM_ElectricalExcited.
Warning: Parameter smee.useDamperCage has no value, and is fixed during initialization (fixed=true)
Error: Variable smee.p not found in scope Modelica.Electrical.Machines.Examples.SMEE_Generator
Error: Error occured while flattening model Modelica.Electrical.Machines.Examples.SMEE_Generator

comment:5 Changed 14 years ago by adrpo

The problem with Modelica.Electrical.Machines.Examples.SMEE_Generator is that
the boolean parameter without a default value (only a start value) useDumperCage
is used as a condition for a conditional component.

 parameter Boolean useDamperCage(start = true)
 output Modelica.SIunits.Current idq_dr[2](each stateSelect=StateSelect.prefer)
        = damperCage.spacePhasor_r.i_ if useDamperCage "damper space phasor current / rotor fixed frame";

Maybe we can fix this by detecting checkModel and use the start value as a default value
for useDumperCage:

 parameter Boolean useDamperCage(start = true) = true;

comment:6 Changed 14 years ago by adrpo

Fixed in revision 6119, see also the tests in SCM Commits.

Note: See TracTickets for help on using tickets.