Opened 12 years ago

Closed 7 years ago

#1910 closed defect (worksforme)

Erroneous Warning: Parameter ... has neither value nor start value, and is fixed during initialization (fixed=true)

Reported by: Jens Frenkel Owned by: Adrian Pop
Priority: high Milestone: 1.13.0
Component: Frontend Version: trunk
Keywords: Cc: Jens Frenkel

Description

For the models (msl3.2.1)

Modelica.Blocks.Examples.Filter.mos
Modelica.Blocks.Examples.FilterWithDifferentiation.mos
Modelica.Blocks.Examples.FilterWithRiseTime

The Warnings

Warning: Parameter a has neither value nor start value, and is fixed during initialization (fixed=true)
Warning: Parameter b has neither value nor start value, and is fixed during initialization (fixed=true)
Warning: Parameter ku has neither value nor start value, and is fixed during initialization (fixed=true)
Warning: Parameter c0 has neither value nor start value, and is fixed during initialization (fixed=true)
Warning: Parameter c1 has neither value nor start value, and is fixed during initialization (fixed=true)

are not valid because

parameter Real cr[ncr](each fixed=false);
parameter Real c0[nc0](each fixed=false);
parameter Real c1[nc0](each fixed=false);

Coefficients for differential equations.
parameter Real r[nr](each fixed=false);
parameter Real a[na](each fixed=false);
parameter Real b[na](each fixed=false);
parameter Real ku[na](each fixed=false);

Change History (11)

comment:1 by anonymous, 12 years ago

Summary: Rightless Warning: Parameter ... has neither value nor start value, and is fixed during initialization (fixed=true)Erroneous Warning: Parameter ... has neither value nor start value, and is fixed during initialization (fixed=true)

comment:2 by Jens Frenkel, 12 years ago

also for the model Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary
the warning

Warning: Parameter dcpm1.friction.frictionParameters.wRef has neither value nor start value, and is fixed during initialization (fixed=true)

is not valid because a start value is set via redeclaration.

model DC_PermanentMagnet
extends Machines.Interfaces.PartialBasicDCMachine(

final ViNominal = VaNominal - Machines.Thermal.convertResistance(Ra,TaRef,alpha20a,TaNominal)*IaNominal

  • Machines.Losses.DCMachines.brushVoltageDrop(brushParameters, IaNominal),

final psi_eNominal = Lme*IeNominal,
redeclare final Machines.Thermal.DCMachines.ThermalAmbientDCPM

thermalAmbient(final Tpm=TpmOperational),

redeclare final Machines.Interfaces.DCMachines.ThermalPortDCPM

thermalPort,

redeclare final Machines.Interfaces.DCMachines.ThermalPortDCPM

internalThermalPort,

redeclare final Machines.Interfaces.DCMachines.PowerBalanceDCPM

powerBalance(final lossPowerPermanentMagnet = 0),

core(final w=airGapDC.w));

end DC_PermanentMagnet;

partial model Modelica.Electrical.Machines.Interfaces.PartialBasicDCMachine
parameter Modelica.SIunits.AngularVelocity wNominal(displayUnit="1/min", start=1425*2*pi/60)
extends PartialBasicMachine(Jr(start=0.15),

frictionParameters(wRef=wNominal),
friction(final useHeatPort=true));

end Modelica.Electrical.Machines.Interfaces.PartialBasicDCMachine

partial model Modelica.Electrical.Machines.Interfaces.PartialBasicMachine

parameter Machines.Losses.FrictionParameters frictionParameters

end Modelica.Electrical.Machines.Interfaces.PartialBasicMachine;

record Modelica.Electrical.Machines.Losses.FrictionParameters
parameter Modelica.SIunits.AngularVelocity wRef(displayUnit="1/min", min=Modelica.Constants.small)
end Modelica.Electrical.Machines.Losses.FrictionParameters

comment:3 by Martin Sjölund, 11 years ago

Milestone: 1.9.01.9.1

Postponed until 1.9.1

comment:4 by Martin Sjölund, 10 years ago

Milestone: 1.9.11.9.2

This ticket was not closed for 1.9.1, which has now been released. It was batch modified for milestone 1.9.2 (but maybe an empty milestone was more appropriate; feel free to change it).

comment:5 by Martin Sjölund, 10 years ago

Milestone: 1.9.21.9.3

Milestone changed to 1.9.3 since 1.9.2 was released.

comment:6 by Martin Sjölund, 9 years ago

Milestone: 1.9.31.9.4

Moved to new milestone 1.9.4

comment:7 by Martin Sjölund, 9 years ago

Milestone: 1.9.41.9.5

Milestone pushed to 1.9.5

comment:8 by Martin Sjölund, 9 years ago

Milestone: 1.9.51.10.0

Milestone renamed

comment:9 by Martin Sjölund, 8 years ago

Milestone: 1.10.01.11.0

Ticket retargeted after milestone closed

comment:10 by Martin Sjölund, 8 years ago

Milestone: 1.11.01.12.0

Milestone moved to 1.12.0 due to 1.11.0 already being released.

comment:11 by Francesco Casella, 7 years ago

Milestone: 1.12.01.13.0
Resolution: worksforme
Status: newclosed

No more warnings in v1.13.0-dev-155-g68350e9

Note: See TracTickets for help on using tickets.