Opened 7 years ago

Last modified 5 years ago

#4739 closed defect

Erroneous equation count with arrays — at Initial Version

Reported by: massimo ceraolo Owned by: somebody
Priority: high Milestone: 1.14.0
Component: *unknown* Version:
Keywords: Cc:

Description

The following model:

model errorSize
Real x[:](start={ 0.2, 0.4, 0.6});
equation
  der(x[1:3])+x[1:3]=fill(1/(time+0.1),3);
end errorSize;

gives rise to the following result when checking:

Check of errorSize completed successfully.
Class errorSize has 3 equation(s) and 1 variable(s).
1 of these are trivial equation(s).

and the model obviously won't run.
AFAIK this is valid modelica

Tested with OM v1.13.0-dev-380-g8b177b9 (WIN 64-bit)

Change History (0)

Note: See TracTickets for help on using tickets.