Opened 7 years ago

Last modified 5 years ago

#4739 closed defect

Erroneous equation count with arrays — at Version 1

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

Description (last modified by massimo ceraolo)

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

If I repeat checking with -d=newInst I get, instead:

[1] 16:20:30 Translation Error
[Es1: 2:1-2:34]: Failed to deduce dimension 1 of x due to missing binding equation.

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

Change History (1)

comment:1 by massimo ceraolo, 7 years ago

Description: modified (diff)
Note: See TracTickets for help on using tickets.