Opened 7 years ago
Last modified 7 years ago
#4813 closed defect
Structural parameters not substituted in connection equations — at Initial Version
Reported by: | Francesco Casella | Owned by: | Per Östlund |
---|---|---|---|
Priority: | high | Milestone: | 2.0.0 |
Component: | New Instantiation | Version: | |
Keywords: | Cc: |
Description
Consider the follwoing test case
model Test extends ScalableTestSuite.Electrical.DistributionSystemDC.ScaledExperiments.DistributionSystemModelicaActiveLoads_N_10_M_10(N = 1, M = 1); end Test;
The NF reports one more equation than unknowns. A comparison with the equations flattened with the OF reveals that the NF contains extra equations involving secondary[1,M].n
, which should not be there as this connector is actually secondary[1,1].n
, which already appears in other equations.
Apparently, these extra equations come from the equations:
for i in 1:N loop connect(activeLoad[i].p, secondary[i,M].n); end for;
which are contained in the DistributionSystemModelicaActiveLoads
class, whereby M is not substituted with its value 1, thus generating the problem.
Note:
See TracTickets
for help on using tickets.