﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
5243	The NF cannot evaluate a structural parameter in a record	Francesco Casella	Per Östlund	"Please check [https://libraries.openmodelica.org/branches/newInst/PowerSystems/files/PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASM.err 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 [https://github.com/modelica/PowerSystems/blob/44ecf8d170c5ce80281b306e706058329e706966/PowerSystems%200.6.0/AC3ph/Machines.mo#L2208 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."	defect	closed	blocker	2.0.0	New Instantiation		fixed		Rüdiger Franke
