Running command: translateModel(Modelica.Electrical.Machines.Examples.SMEE_Generator,tolerance=1e-06,outputFormat="empty",numberOfIntervals=12000,variableFilter="",fileNamePrefix="Modelica_3.1_cpp_Modelica.Electrical.Machines.Examples.SMEE_Generator") Notification: Performance of loadModel(Modelica): time 1.193/1.193, allocations: 111.1 MB / 126.3 MB, free: 6.41 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 2.315e-05/2.311e-05, allocations: 0 / 154.5 MB, free: 2.832 MB / 122.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06/0.06004, allocations: 25.18 MB / 179.7 MB, free: 9.617 MB / 154.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SMEE_Generator): time 0.009046/0.06918, allocations: 5.333 MB / 185 MB, free: 4.266 MB / 154.7 MB Notification: Performance of NFInst.instExpressions: time 0.00419/0.07343, allocations: 1.376 MB / 186.4 MB, free: 2.887 MB / 154.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009352/0.07442, allocations: 51.88 kB / 186.4 MB, free: 2.836 MB / 154.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007004/0.07514, allocations: 254.4 kB / 186.7 MB, free: 2.586 MB / 154.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.1/Electrical/Machines.mo:2351:9-2353:60:writable] Warning: Conditional component damperCage is used in a non-connect context. Notification: Performance of NFTyping.typeBindings: time 0.001321/0.07647, allocations: 370.8 kB / 187.1 MB, free: 2.223 MB / 154.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007748/0.07727, allocations: 227.6 kB / 187.3 MB, free: 2 MB / 154.7 MB Notification: Performance of NFFlatten.flatten: time 0.00223/0.07951, allocations: 0.9832 MB / 188.3 MB, free: 1.016 MB / 154.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002072/0.08162, allocations: 1.105 MB / 189.4 MB, free: 15.89 MB / 170.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001224/0.08287, allocations: 0.5804 MB / 189.9 MB, free: 15.31 MB / 170.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001505/0.0844, allocations: 0.7865 MB / 190.7 MB, free: 14.52 MB / 170.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005289/0.08495, allocations: 104 kB / 190.8 MB, free: 14.42 MB / 170.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003346/0.0853, allocations: 80 kB / 190.9 MB, free: 14.34 MB / 170.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001008/0.08632, allocations: 0.5803 MB / 191.5 MB, free: 13.76 MB / 170.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005739/0.08691, allocations: 168 kB / 191.7 MB, free: 13.6 MB / 170.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004308/0.09123, allocations: 2.93 MB / 194.6 MB, free: 10.66 MB / 170.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.689e-06/0.09129, allocations: 0 / 194.6 MB, free: 10.66 MB / 170.7 MB Notification: Performance of FrontEnd: time 3.487e-06/0.09131, allocations: 0 / 194.6 MB, free: 10.66 MB / 170.7 MB Notification: Performance of Transformations before backend: time 0.0001036/0.09142, allocations: 0 / 194.6 MB, free: 10.66 MB / 170.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 501 * Number of variables: 501 Notification: Performance of Generate backend data structure: time 0.007043/0.09847, allocations: 2.094 MB / 196.7 MB, free: 8.512 MB / 170.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.002e-05/0.09854, allocations: 8.031 kB / 196.7 MB, free: 8.504 MB / 170.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008858/0.09944, allocations: 233.2 kB / 196.9 MB, free: 8.273 MB / 170.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003508/0.103, allocations: 1.22 MB / 198.1 MB, free: 7.012 MB / 170.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001763/0.1032, allocations: 143.8 kB / 198.3 MB, free: 6.871 MB / 170.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004942/0.1037, allocations: 191.9 kB / 198.5 MB, free: 6.684 MB / 170.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007476/0.1112, allocations: 2.588 MB / 201.1 MB, free: 4.059 MB / 170.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.824e-05/0.1113, allocations: 4 kB / 201.1 MB, free: 4.055 MB / 170.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002895/0.1116, allocations: 83.97 kB / 201.1 MB, free: 3.973 MB / 170.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002105/0.1118, allocations: 95.86 kB / 201.2 MB, free: 3.879 MB / 170.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007359/0.1192, allocations: 2.229 MB / 203.5 MB, free: 1.648 MB / 170.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1709/0.2902, allocations: 7.607 MB / 211.1 MB, free: 18.71 MB / 170.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004713/0.2949, allocations: 1.913 MB / 213 MB, free: 17.37 MB / 170.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001858/0.2952, allocations: 13.64 kB / 213 MB, free: 17.37 MB / 170.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.631e-05/0.2952, allocations: 42.94 kB / 213 MB, free: 17.32 MB / 170.7 MB Notification: Performance of pre-optimization done (n=102): time 7.003e-06/0.2953, allocations: 5.25 kB / 213 MB, free: 17.32 MB / 170.7 MB Notification: Performance of matching and sorting (n=122): time 0.03339/0.3287, allocations: 7.96 MB / 221 MB, free: 13.14 MB / 170.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.141e-05/0.3288, allocations: 63.31 kB / 221.1 MB, free: 13.08 MB / 170.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.1/Electrical/Machines.mo:7706:7-7708:33:writable] Warning: Parameter terminalBox.terminalConnection has no value, and is fixed during initialization (fixed=true), using available start value (start="Y") as default value. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.1/Electrical/Machines.mo:2348:9-2350:50:writable] Warning: Parameter smee.sigmae has no value, and is fixed during initialization (fixed=true), using available start value (start=0.025) as default value. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.1/Electrical/Machines.mo:2345:9-2347:50:writable] Warning: Parameter smee.Re has no value, and is fixed during initialization (fixed=true), using available start value (start=2.5) as default value. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.1/Electrical/Machines.mo:2342:9-2344:50:writable] Warning: Parameter smee.IeOpenCircuit has no value, and is fixed during initialization (fixed=true), using available start value (start=10.0) as default value. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.1/Electrical/Machines.mo:2339:9-2341:50:writable] Warning: Parameter smee.VsNominal has no value, and is fixed during initialization (fixed=true), using available start value (start=100.0) as default value. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.1/Electrical/Machines.mo:2333:9-2335:75:writable] Warning: Parameter smee.Rrd has no value, and is fixed during initialization (fixed=true), using available start value (start=0.04) as default value. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.1/Electrical/Machines.mo:2327:9-2329:75:writable] Warning: Parameter smee.Lrsigmad has no value, and is fixed during initialization (fixed=true), using available start value (start=0.05 / (6.283185307179586 * smee.fsNominal)) as default value. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.1/Electrical/Machines.mo:2324:9-2326:51:writable] Warning: Parameter smee.useDamperCage has no value, and is fixed during initialization (fixed=true), using available start value (start=true) as default value. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.1/Electrical/Machines.mo:2321:9-2323:75:writable] Warning: Parameter smee.Lmq has no value, and is fixed during initialization (fixed=true), using available start value (start=1.5 / (6.283185307179586 * smee.fsNominal)) as default value. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.1/Electrical/Machines.mo:2318:9-2320:75:writable] Warning: Parameter smee.Lmd has no value, and is fixed during initialization (fixed=true), using available start value (start=1.5 / (6.283185307179586 * smee.fsNominal)) as default value. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.1/Electrical/Machines.mo:7411:7-7413:73:writable] Warning: Parameter smee.Lssigma has no value, and is fixed during initialization (fixed=true), using available start value (start=0.1 / (6.283185307179586 * smee.fsNominal)) as default value. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.1/Electrical/Machines.mo:7408:7-7410:73:writable] Warning: Parameter smee.Rs has no value, and is fixed during initialization (fixed=true), using available start value (start=0.03) as default value. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.1/Electrical/Machines.mo:7406:7-7407:28:writable] Warning: Parameter smee.fsNominal has no value, and is fixed during initialization (fixed=true), using available start value (start=50.0) as default value. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.1/Electrical/Machines.mo:7405:7-7405:75:writable] Warning: Parameter smee.p has no value, and is fixed during initialization (fixed=true), using available start value (start=2) as default value. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.1/Electrical/Machines.mo:7272:7-7274:46:writable] Warning: Parameter smee.Js has no value, and is fixed during initialization (fixed=true), using available start value (start=smee.Jr) as default value. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.1/Electrical/Machines.mo:7268:7-7268:72:writable] Warning: Parameter smee.Jr has no value, and is fixed during initialization (fixed=true), using available start value (start=0.29) as default value. Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001952/0.3307, allocations: 0.9553 MB / 222 MB, free: 12.55 MB / 170.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002545/0.331, allocations: 47.11 kB / 222.1 MB, free: 12.5 MB / 170.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005165/0.3315, allocations: 0.8258 MB / 222.9 MB, free: 11.7 MB / 170.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000756/0.3323, allocations: 427 kB / 223.3 MB, free: 11.29 MB / 170.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001944/0.3325, allocations: 28.78 kB / 223.3 MB, free: 11.26 MB / 170.7 MB Notification: Performance of setup shared object (initialization): time 0.0001695/0.3327, allocations: 361.9 kB / 223.7 MB, free: 10.9 MB / 170.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002621/0.3354, allocations: 0.7443 MB / 224.4 MB, free: 10.15 MB / 170.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002275/0.3377, allocations: 1.001 MB / 225.4 MB, free: 9.055 MB / 170.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002452/0.3402, allocations: 0.8891 MB / 226.3 MB, free: 8.164 MB / 170.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.019e-05/0.3403, allocations: 0 / 226.3 MB, free: 8.164 MB / 170.7 MB Notification: Performance of matching and sorting (n=156) (initialization): time 0.006599/0.3469, allocations: 2.398 MB / 228.7 MB, free: 5.754 MB / 170.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.059e-05/0.347, allocations: 8 kB / 228.7 MB, free: 5.746 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.978e-05/0.347, allocations: 11.95 kB / 228.7 MB, free: 5.734 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002226/0.3492, allocations: 0.5717 MB / 229.3 MB, free: 5.156 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002114/0.3514, allocations: 291.5 kB / 229.6 MB, free: 4.871 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01329/0.3647, allocations: 7.172 MB / 236.8 MB, free: 13.43 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001681/0.3664, allocations: 112.7 kB / 236.9 MB, free: 13.32 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001783/0.3666, allocations: 47.98 kB / 236.9 MB, free: 13.27 MB / 186.7 MB Warning: Assuming fixed start value for the following 4 variables: smee.idq_dr[2]:VARIABLE(unit = "A" fixed = true stateSelect=StateSelect.prefer ) "damper space phasor current / rotor fixed frame" type: Real [2] smee.idq_rr[1]:VARIABLE(unit = "A" fixed = true stateSelect=StateSelect.prefer final = true ) "rotor space phasor current / rotor fixed frame" type: Real [2] smee.idq_sr[2]:VARIABLE(unit = "A" fixed = true stateSelect=StateSelect.prefer final = true ) "stator space phasor current / rotor fixed frame" type: Real [2] smee.idq_sr[1]:VARIABLE(unit = "A" fixed = true stateSelect=StateSelect.prefer final = true ) "stator space phasor current / rotor fixed frame" type: Real [2] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 32 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (127): * Single equations (assignments): 123 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(6,80.6%) 20,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001805/0.3685, allocations: 0.6776 MB / 237.6 MB, free: 12.59 MB / 186.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004495/0.3689, allocations: 126.4 kB / 237.7 MB, free: 12.46 MB / 186.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007248/0.3762, allocations: 2.369 MB / 240.1 MB, free: 10.09 MB / 186.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.028e-05/0.3763, allocations: 18.28 kB / 240.1 MB, free: 10.07 MB / 186.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.14e-05/0.3763, allocations: 7.938 kB / 240.1 MB, free: 10.06 MB / 186.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.77e-05/0.3763, allocations: 3.984 kB / 240.1 MB, free: 10.06 MB / 186.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01375/0.3901, allocations: 4.718 MB / 244.8 MB, free: 5.281 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.473e-05/0.3902, allocations: 4 kB / 244.8 MB, free: 5.277 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001896/0.3921, allocations: 212 kB / 245.1 MB, free: 5.07 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002599/0.3947, allocations: 0.5796 MB / 245.6 MB, free: 4.484 MB / 186.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002414/0.395, allocations: 35.97 kB / 245.7 MB, free: 4.449 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0144/0.4094, allocations: 6.978 MB / 252.6 MB, free: 13.21 MB / 202.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.446e-06/0.4095, allocations: 0 / 252.6 MB, free: 13.21 MB / 202.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01019/0.4197, allocations: 3.558 MB / 256.2 MB, free: 9.59 MB / 202.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001109/0.4208, allocations: 355.5 kB / 256.6 MB, free: 9.223 MB / 202.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003335/0.4212, allocations: 28.97 kB / 256.6 MB, free: 9.195 MB / 202.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001259/0.4224, allocations: 87.91 kB / 256.7 MB, free: 9.109 MB / 202.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00035/0.4228, allocations: 88.86 kB / 256.8 MB, free: 9.023 MB / 202.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001303/0.423, allocations: 36.23 kB / 256.8 MB, free: 8.988 MB / 202.7 MB Notification: Performance of sorting global known variables: time 0.001608/0.4246, allocations: 0.7211 MB / 257.5 MB, free: 8.258 MB / 202.7 MB Notification: Performance of sort global known variables: time 9.62e-07/0.4246, allocations: 0 / 257.5 MB, free: 8.258 MB / 202.7 MB Notification: Performance of remove unused functions: time 0.00203/0.4266, allocations: 420 kB / 257.9 MB, free: 7.852 MB / 202.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 5 (smee.phiMechanical,smee.idq_sr[1],smee.idq_sr[2],smee.idq_rr[1],smee.idq_dr[2]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (95): * Single equations (assignments): 91 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(6,80.6%) 20,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004014/0.4271, allocations: 139.8 kB / 258.1 MB, free: 7.703 MB / 202.7 MB Notification: Performance of simCode: created initialization part: time 0.006863/0.4339, allocations: 2.311 MB / 260.4 MB, free: 5.363 MB / 202.7 MB Notification: Performance of simCode: created event and clocks part: time 7.374e-06/0.434, allocations: 0 / 260.4 MB, free: 5.363 MB / 202.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004588/0.4386, allocations: 1.444 MB / 261.8 MB, free: 3.898 MB / 202.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002139/0.4408, allocations: 231.2 kB / 262 MB, free: 3.68 MB / 202.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01115/0.452, allocations: 4.907 MB / 266.9 MB, free: 14.72 MB / 218.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002328/0.4543, allocations: 1.783 MB / 268.7 MB, free: 12.9 MB / 218.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007462/0.4551, allocations: 95.41 kB / 268.8 MB, free: 12.81 MB / 218.7 MB Notification: Performance of SimCode: time 1.193e-06/0.4551, allocations: 0 / 268.8 MB, free: 12.81 MB / 218.7 MB [CodegenCpp.tpl:10820:11-10820:11:writable] Error: Template error: Unsupported type of array call assign: ERROR:expTypeFromExpFlag Modelica.Electrical.Machines.SpacePhasors.Functions.ToSpacePhasor({smee.lssigma.inductor[1].i, smee.lssigma.inductor[2].i, smee.lssigma.inductor[3].i})[1] . [CodegenCpp.tpl:10820:11-10820:11:writable] Error: Template error: Unsupported type of array call assign: ERROR:expTypeFromExpFlag Modelica.Electrical.Machines.SpacePhasors.Functions.ToSpacePhasor({sineVoltage.v[1] - terminalBox.plug_sn.pin[3].v, sineVoltage.v[2] - terminalBox.plug_sn.pin[3].v, sineVoltage.v[3] - terminalBox.plug_sn.pin[3].v})[1] . [CodegenCpp.tpl:10820:11-10820:11:writable] Error: Template error: Unsupported type of array call assign: ERROR:expTypeFromExpFlag Modelica.Electrical.Machines.SpacePhasors.Functions.ToSpacePhasor({smee.lssigma.inductor[1].i, smee.lssigma.inductor[2].i, smee.lssigma.inductor[3].i})[1] . [CodegenCpp.tpl:10820:11-10820:11:writable] Error: Template error: Unsupported type of array call assign: ERROR:expTypeFromExpFlag Modelica.Electrical.Machines.SpacePhasors.Functions.ToSpacePhasor({sineVoltage.v[1] - terminalBox.plug_sn.pin[3].v, sineVoltage.v[2] - terminalBox.plug_sn.pin[3].v, sineVoltage.v[3] - terminalBox.plug_sn.pin[3].v})[1] .