Opened 12 years ago

Last modified 12 years ago

#2403 closed defect

Counting size of equations is wrong if tuples are involved — at Version 1

Reported by: Adrian Pop Owned by: probably noone
Priority: high Milestone: 1.9.0
Component: Backend Version: trunk
Keywords: Cc: Lennart Ochel, Willi Braun

Description (last modified by Adrian Pop)

This model:

Real x[10];
equation
  (,,x[1],) = fcall(1); // wrongly counted as size 10!
  (,,x[2],) = fcall(2); // wrongly counted as size 10!
  ...
  (,,x[10],) = fcall(10); // wrongly counted as size 10!

So the system is not balanced as it has 10 variables and 100 equations.
This happens because we expand array crefs in algorithms to their full size and we also translate tuple = fcall() equations to algorithms.

This affects for example: ModelicaTest.Fluid.Dissipation.Verifications.HeatTransfer.Channel.kc_evenGapLaminar

Change History (1)

comment:1 by Adrian Pop, 12 years ago

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