Opened 5 years ago

Closed 5 years ago

#5739 closed defect (duplicate)

Invalid models without parameter binding equations are compiled by OMC

Reported by: Francesco Casella Owned by: Per Östlund
Priority: critical Milestone: 1.16.0
Component: New Instantiation Version:
Keywords: Cc: Karim Adbdelhak, Andreas Heuermann

Description

Consider the following test models

model UnboundParameter
  parameter Real p;
end UnboundParameter;

model UnboundEvaluatedParameter
  parameter Real p annotation(Evaluate = true);
end UnboundEvaluatedParameter;

As far as I understand, according to the Modelica specification those two models cannot be simulated, because they lack a binding equation for the parameter p, and there is no default value given by an explicit start modifier (see Modelica Specification 8.6).

Unfortunately, OMC compiles and run both models with a default value of zero for parameter p.

I'm not 100% sure if this is a frontend or backend issue.

Change History (2)

comment:1 by massimo ceraolo, 5 years ago

This is a duplicate of #5051.
So this problem was already there 17 months ago, when the old Front End was used.

comment:2 by Francesco Casella, 5 years ago

Resolution: duplicate
Status: newclosed

@ceraolo, you are right, I forgot about that.

Note: See TracTickets for help on using tickets.