Opened 7 years ago

Closed 7 years ago

#4813 closed defect (fixed)

Structural parameters not substituted in connection equations by the NF

Reported by: Francesco Casella Owned by: Per Östlund
Priority: high Milestone: 2.0.0
Component: New Instantiation Version:
Keywords: Cc:

Description (last modified by Francesco Casella)

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.

The same problem arises with the ScalableTestSuite.Electrical.TransmissionLine.ScaledExperiments.TransmissionLineModelica_N_XX models, where the following equation appears in the flattened model:

transmissionline.L[transmissionline.N].n

Change History (2)

comment:1 by Francesco Casella, 7 years ago

Description: modified (diff)
Summary: Structural parameters not substituted in connection equationsStructural parameters not substituted in connection equations by the NF

comment:2 by Per Östlund, 7 years ago

Resolution: fixed
Status: newclosed

Fixed in 4330bb7.

Note: See TracTickets for help on using tickets.