Opened 5 years ago

Last modified 5 years ago

#5605 new defect

Parameter with only start value not accepted

Reported by: massimo ceraolo Owned by: Per Östlund
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)

in reply to:  description comment:1 by Francesco Casella, 5 years ago

Milestone: Future2.0.0
Priority: normalblocker
Type: discussiondefect

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.