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: Karin Gustafsson Owned by: Karin Gustafsson
Priority: critical Milestone: Red October
Component: Instantiation Version:
Keywords: Cc: Karin Gustafsson, Adrian Pop

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 by Peter Aronsson, 15 years ago

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

comment:3 by Adrian Pop, 14 years ago

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 by Adrian Pop, 14 years ago

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 by Adrian Pop, 14 years ago

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 by Adrian Pop, 14 years ago

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

Note: See TracTickets for help on using tickets.