Running command: translateModel(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMEE_Generator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=60000,variableFilter="time|constantSpeed.phi|smee.idq_dr.1.|smee.idq_rr.2.|smee.idq_sr.1.|smee.idq_sr.2.",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMEE_Generator") Notification: Performance of loadModel(Modelica): time 2.143/2.143, allocations: 194.9 MB / 211.2 MB, free: 8.352 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.039e-05/3.043e-05, allocations: 4 kB / 258.8 MB, free: 8.703 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3072/0.3072, allocations: 44.49 MB / 303.3 MB, free: 12.8 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMEE_Generator): time 0.02155/0.3288, allocations: 9.066 MB / 312.4 MB, free: 4.625 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.01177/0.3407, allocations: 3.454 MB / 315.8 MB, free: 1.164 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002411/0.3431, allocations: 71.81 kB / 315.9 MB, free: 1.094 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003225/0.3464, allocations: 0.5904 MB / 316.5 MB, free: 0.5 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004758/0.3512, allocations: 0.7514 MB / 317.2 MB, free: 15.74 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002212/0.3535, allocations: 315.5 kB / 317.5 MB, free: 15.43 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.005834/0.3593, allocations: 1.56 MB / 319.1 MB, free: 13.87 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004003/0.3634, allocations: 1.316 MB / 320.4 MB, free: 12.54 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002461/0.3659, allocations: 0.822 MB / 321.2 MB, free: 11.71 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003749/0.3697, allocations: 1.168 MB / 322.4 MB, free: 10.54 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001974/0.3718, allocations: 295.7 kB / 322.7 MB, free: 10.25 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0009119/0.3727, allocations: 108 kB / 322.8 MB, free: 10.14 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001686/0.3744, allocations: 0.7009 MB / 323.5 MB, free: 9.441 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001383/0.3758, allocations: 252 kB / 323.7 MB, free: 9.195 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.008395/0.3843, allocations: 3.989 MB / 327.7 MB, free: 5.195 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.41e-06/0.3843, allocations: 0 / 327.7 MB, free: 5.195 MB / 266.7 MB Notification: Performance of FrontEnd: time 3.116e-06/0.3843, allocations: 0 / 327.7 MB, free: 5.195 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.000182/0.3845, allocations: 4 kB / 327.7 MB, free: 5.191 MB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 653 * Number of variables: 653 Notification: Performance of Generate backend data structure: time 0.008895/0.3934, allocations: 2.625 MB / 330.4 MB, free: 2.504 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.147e-05/0.3935, allocations: 12.03 kB / 330.4 MB, free: 2.492 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002655/0.3962, allocations: 408.1 kB / 330.8 MB, free: 2.09 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005476/0.4017, allocations: 1.671 MB / 332.4 MB, free: 372 kB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002556/0.402, allocations: 189 kB / 332.6 MB, free: 180 kB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009189/0.4029, allocations: 248 kB / 332.9 MB, free: 15.93 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01076/0.4137, allocations: 3.204 MB / 336.1 MB, free: 12.65 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001144/0.4139, allocations: 3.906 kB / 336.1 MB, free: 12.65 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004702/0.4144, allocations: 111.9 kB / 336.2 MB, free: 12.54 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002377/0.4146, allocations: 116.9 kB / 336.3 MB, free: 12.42 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009578/0.4242, allocations: 2.678 MB / 339 MB, free: 9.73 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03066/0.4549, allocations: 10.36 MB / 349.3 MB, free: 15.03 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004064/0.4591, allocations: 1.76 MB / 351.1 MB, free: 13.15 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004761/0.4596, allocations: 219.1 kB / 351.3 MB, free: 12.9 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.99e-05/0.4596, allocations: 43.56 kB / 351.3 MB, free: 12.85 MB / 298.7 MB Notification: Performance of pre-optimization done (n=114): time 4.298e-06/0.4597, allocations: 0 / 351.3 MB, free: 12.85 MB / 298.7 MB Notification: Performance of matching and sorting (n=136): time 0.03674/0.4964, allocations: 8.661 MB / 360 MB, free: 4.051 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.108e-05/0.4965, allocations: 64.72 kB / 360.1 MB, free: 3.977 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004341/0.5009, allocations: 1.632 MB / 361.7 MB, free: 2.348 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003141/0.5013, allocations: 49.7 kB / 361.8 MB, free: 2.293 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00121/0.5025, allocations: 1.182 MB / 362.9 MB, free: 1.098 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007538/0.5033, allocations: 469.2 kB / 363.4 MB, free: 0.6328 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001719/0.5035, allocations: 36 kB / 363.4 MB, free: 0.5977 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0002138/0.5037, allocations: 378.7 kB / 363.8 MB, free: 224 kB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002732/0.5064, allocations: 0.8511 MB / 364.7 MB, free: 15.37 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003166/0.5096, allocations: 1.346 MB / 366 MB, free: 13.81 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0032/0.5129, allocations: 1.045 MB / 367 MB, free: 12.77 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.318e-05/0.513, allocations: 12 kB / 367.1 MB, free: 12.75 MB / 314.7 MB Notification: Performance of matching and sorting (n=212) (initialization): time 0.008928/0.5219, allocations: 2.77 MB / 369.8 MB, free: 9.969 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.347e-05/0.522, allocations: 19.98 kB / 369.8 MB, free: 9.949 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.008e-05/0.5221, allocations: 19.95 kB / 369.9 MB, free: 9.93 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002405/0.5245, allocations: 0.5441 MB / 370.4 MB, free: 9.379 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00306/0.5276, allocations: 407.3 kB / 370.8 MB, free: 8.98 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01223/0.5399, allocations: 5.226 MB / 376 MB, free: 3.617 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002895/0.5428, allocations: 135.8 kB / 376.2 MB, free: 3.484 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003764/0.5432, allocations: 72 kB / 376.2 MB, free: 3.414 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 69 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (184): * Single equations (assignments): 180 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(6,72.2%) 20} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002421/0.5457, allocations: 0.7822 MB / 377 MB, free: 2.621 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007584/0.5464, allocations: 197.6 kB / 377.2 MB, free: 2.426 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007989/0.5544, allocations: 2.521 MB / 379.7 MB, free: 15.89 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.973e-05/0.5546, allocations: 19.94 kB / 379.7 MB, free: 15.87 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.395e-05/0.5546, allocations: 4 kB / 379.8 MB, free: 15.86 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.181e-05/0.5546, allocations: 11.97 kB / 379.8 MB, free: 15.85 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01656/0.5712, allocations: 5.332 MB / 385.1 MB, free: 10.41 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.759e-05/0.5713, allocations: 0 / 385.1 MB, free: 10.41 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002151/0.5734, allocations: 256.2 kB / 385.3 MB, free: 10.16 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002869/0.5763, allocations: 0.5873 MB / 385.9 MB, free: 9.566 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002905/0.5767, allocations: 35.98 kB / 386 MB, free: 9.531 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01402/0.5907, allocations: 6.735 MB / 392.7 MB, free: 2.523 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.094e-06/0.5908, allocations: 4 kB / 392.7 MB, free: 2.52 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01097/0.6018, allocations: 3.915 MB / 396.6 MB, free: 14.45 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001597/0.6034, allocations: 458.5 kB / 397.1 MB, free: 13.98 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006736/0.6041, allocations: 35.98 kB / 397.1 MB, free: 13.94 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002296/0.6064, allocations: 111.9 kB / 397.2 MB, free: 13.83 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004291/0.6069, allocations: 104.7 kB / 397.3 MB, free: 13.73 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000163/0.6071, allocations: 43.98 kB / 397.4 MB, free: 13.69 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.00321/0.6103, allocations: 1.259 MB / 398.6 MB, free: 12.44 MB / 346.7 MB Notification: Performance of sort global known variables: time 8.61e-07/0.6103, allocations: 4 kB / 398.6 MB, free: 12.43 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.003102/0.6134, allocations: 0.5624 MB / 399.2 MB, free: 11.87 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 5 (smee.phiMechanical,smee.idq_sr[1],smee.idq_sr[2],smee.idq_rr[2],smee.idq_dr[1]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (109): * Single equations (assignments): 105 * 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,72.2%) 20,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006778/0.6142, allocations: 175.7 kB / 399.4 MB, free: 11.69 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.007733/0.6219, allocations: 2.474 MB / 401.8 MB, free: 9.18 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 7.464e-06/0.622, allocations: 0 / 401.8 MB, free: 9.18 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004981/0.627, allocations: 1.496 MB / 403.3 MB, free: 7.656 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003412/0.6304, allocations: 408.2 kB / 403.7 MB, free: 7.258 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01558/0.6461, allocations: 6.09 MB / 409.8 MB, free: 1.098 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003114/0.6492, allocations: 2.037 MB / 411.9 MB, free: 15.03 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001057/0.6503, allocations: 139.4 kB / 412 MB, free: 14.89 MB / 362.7 MB Notification: Performance of SimCode: time 1.283e-06/0.6504, allocations: 7.938 kB / 412 MB, free: 14.88 MB / 362.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.is)[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.is)[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] .