Opened 5 years ago

Last modified 5 years ago

#5605 new defect

Parameter with only start value not accepted

Reported by: ceraolo Owned by: perost
Priority: blocker Milestone: 2.0.0
Component: New Instantiation Version:
Keywords: Cc:

Description

A parameter with evaluate=true and only a start value (no binding equation) can be accepted?

Consider model Modelica.Electrical.Machines.Examples.SMPM_NoLoad.
If in the machine we delete the boolean value useDamperCage, the model does not run with NF, while it runs with OF, which issues the following warning:

Parameter smpm.useDamperCage has no value, and is fixed during initialization (fixed=true), using available start value (start=true) as default value.

Change History (1)

comment:1 in reply to: ↑ description Changed 5 years ago by casella

  • Milestone changed from Future to 2.0.0
  • Priority changed from normal to blocker
  • Type changed from discussion to defect

Replying to ceraolo:

A parameter with evaluate=true and only a start value (no binding equation) can be accepted?

It should, preferably with a warning, see Section 8.6 of the language specification

If a parameter has a modifier for the start -attribute, does not have fixed=false , and neither has a binding equation nor is part of a record having a binding equation, the modifier for the start-attribute can be used to add a parameter binding equation assigning the parameter to that start-modifier. In this case a diagnostic message is recommended in a simulation model

Note: See TracTickets for help on using tickets.