Opened 12 years ago

Closed 12 years ago

#2163 closed defect (fixed)

A new case of erroneous equation counting

Reported by: massimo ceraolo Owned by: ardpo
Priority: high Milestone: 1.9.0
Component: Backend Version: trunk
Keywords: counting Cc:

Description

In enclose two files; QSAsma.mo and NW10.mo.
NW10 is a package containing only, exactly QSAsma.

When QSasma is checked, the result is:
Class NWQSAsma has 243 equation(s) and 243 variable(s).

When NW10.QSAsma is checked, the result is:
Class NW10.QSAsma has 250 equation(s) and 243 variable(s).

So, 7 more equations are wrongly counted.

Attachments (2)

QSAsma.mo (13.3 KB ) - added by massimo ceraolo 12 years ago.
NW10.mo (14.1 KB ) - added by massimo ceraolo 12 years ago.

Download all attachments as: .zip

Change History (5)

by massimo ceraolo, 12 years ago

Attachment: QSAsma.mo added

by massimo ceraolo, 12 years ago

Attachment: NW10.mo added

comment:1 by Adrian Pop, 12 years ago

Hi,

This seems to be some bug in the instantiation as simulation doesn't work.
I'll look more on what goes wrong. It could be the overconstrained connection
graph breaking or some other issue.

Cheers,
Adrian Pop/

comment:2 by massimo ceraolo, 12 years ago

Indeed it should be just a simple issue related to the reading of models inside packages.
In fact the same model, when outside packages, is given the right equation numbers, and simulates.

I would just compare the differences when interpreting the two files.
Massimo

comment:3 by Per Östlund, 12 years ago

Resolution: fixed
Status: newclosed

Fixed in r16545.

Note: See TracTickets for help on using tickets.