Opened 6 years ago

Closed 5 years ago

#5243 closed defect (fixed)

The NF cannot evaluate a structural parameter in a record

Reported by: casella Owned by: perost
Priority: blocker Milestone: 2.0.0
Component: New Instantiation Version:
Keywords: Cc: rfranke

Description

Please check PowerSystems.Examples.AC3ph.Drives.ASM. The following error is reported:

[OMCompiler/build/lib/omlibrary/PowerSystems 0.6.0/AC3ph/Machines.mo:2208:3-2208:47:writable] 
Error: Could not evaluate structural parameter (or constant): 
asm.motor.c.n_r which gives dimensions of array: L_r. 
Array dimensions must be known at compile time.

The source code is found here, I report it for convenience:

record Asynchron "Coefficient matrices of asynchronous machine"
  extends Modelica.Icons.Record;

  parameter Integer n_r "number of rotor circuits";
  SI.Inductance[3] L_s "L matrix stator dq0, d=q";
  SI.Inductance[n_r, n_r] L_r "L matrix rotor";
  SI.Inductance[n_r] L_m "L matrix mutual";
  SI.Resistance R_s "R matrix stator";
  SI.Resistance[n_r] R_r "R matrix rotor";
  SI.Resistance R_n "resistance neutral to grd (if Y)";
  SI.Resistance[n_r] R_m "= diagonal(R_r)*inv(L_r)*L_m";
end Asynchron;

I'n not sure if the problem is with the front end or with the model. Also the old front-end failed on this model for the same reason.

Change History (4)

comment:1 Changed 6 years ago by casella

This issue affects many models in PowerSystems

comment:2 Changed 6 years ago by casella

See also #3302

comment:3 Changed 5 years ago by casella

  • Priority changed from high to blocker

Possibly a duplicate of #5204

comment:4 Changed 5 years ago by perost

  • Resolution set to fixed
  • Status changed from new to closed

Fixed since c1c920a9.

Note: See TracTickets for help on using tickets.