Running command: translateModel(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMEE_Generator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=12000,variableFilter="time|constantSpeed.phi|smee.idq_dr.1.|smee.idq_rr.2.|smee.idq_sr.1.|smee.idq_sr.2.",fileNamePrefix="Modelica_3.2.1_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMEE_Generator") Notification: Performance of loadModel(Modelica): time 1.681/1.681, allocations: 171.1 MB / 186.3 MB, free: 1.422 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.25e-05/3.26e-05, allocations: 4 kB / 228.1 MB, free: 7.992 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08289/0.08296, allocations: 38.77 MB / 266.9 MB, free: 1.133 MB / 218.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMEE_Generator): time 0.0153/0.09832, allocations: 9.067 MB / 276 MB, free: 8.016 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.008964/0.1073, allocations: 3.397 MB / 279.4 MB, free: 4.613 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002051/0.1094, allocations: 75.75 kB / 279.4 MB, free: 4.539 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002438/0.1119, allocations: 0.5827 MB / 280 MB, free: 3.953 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003707/0.1157, allocations: 0.7514 MB / 280.8 MB, free: 3.199 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001544/0.1172, allocations: 319.5 kB / 281.1 MB, free: 2.887 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.00452/0.1218, allocations: 1.56 MB / 282.6 MB, free: 1.32 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002952/0.1248, allocations: 1.328 MB / 284 MB, free: 15.97 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002121/0.127, allocations: 0.8375 MB / 284.8 MB, free: 15.13 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002789/0.1298, allocations: 1.129 MB / 285.9 MB, free: 14 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001478/0.1313, allocations: 215.8 kB / 286.1 MB, free: 13.79 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000791/0.1322, allocations: 108 kB / 286.3 MB, free: 13.68 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001528/0.1337, allocations: 0.7048 MB / 287 MB, free: 12.98 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001246/0.135, allocations: 256 kB / 287.2 MB, free: 12.73 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.007034/0.1421, allocations: 3.927 MB / 291.1 MB, free: 8.789 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.47e-06/0.1422, allocations: 0 / 291.1 MB, free: 8.789 MB / 250.7 MB Notification: Performance of FrontEnd: time 6.873e-06/0.1422, allocations: 0 / 291.1 MB, free: 8.789 MB / 250.7 MB Notification: Performance of Transformations before backend: time 0.0001868/0.1424, allocations: 3.938 kB / 291.1 MB, free: 8.785 MB / 250.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 655 * Number of variables: 655 Notification: Performance of Generate backend data structure: time 0.009322/0.1517, allocations: 2.618 MB / 293.8 MB, free: 6.105 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.895e-05/0.1518, allocations: 12.03 kB / 293.8 MB, free: 6.094 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00267/0.1545, allocations: 412 kB / 294.2 MB, free: 5.688 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005146/0.1597, allocations: 1.624 MB / 295.8 MB, free: 4.008 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002789/0.16, allocations: 189 kB / 296 MB, free: 3.82 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000931/0.1609, allocations: 259.9 kB / 296.2 MB, free: 3.566 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0108/0.1718, allocations: 3.204 MB / 299.4 MB, free: 292 kB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001223/0.1719, allocations: 0 / 299.4 MB, free: 292 kB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004824/0.1724, allocations: 104 kB / 299.5 MB, free: 188 kB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002394/0.1727, allocations: 112.9 kB / 299.6 MB, free: 72 kB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2386/0.4113, allocations: 2.682 MB / 302.3 MB, free: 27.18 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02971/0.4411, allocations: 10.34 MB / 312.7 MB, free: 21.12 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00383/0.445, allocations: 1.754 MB / 314.4 MB, free: 19.88 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003754/0.4454, allocations: 127.5 kB / 314.5 MB, free: 19.77 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.78e-05/0.4455, allocations: 45.06 kB / 314.6 MB, free: 19.72 MB / 250.7 MB Notification: Performance of pre-optimization done (n=113): time 4.859e-06/0.4455, allocations: 4 kB / 314.6 MB, free: 19.72 MB / 250.7 MB Notification: Performance of matching and sorting (n=135): time 0.03409/0.4796, allocations: 8.526 MB / 323.1 MB, free: 14.32 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.844e-05/0.4797, allocations: 68.72 kB / 323.2 MB, free: 14.23 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003304/0.483, allocations: 1.589 MB / 324.8 MB, free: 12.65 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003062/0.4833, allocations: 45.7 kB / 324.8 MB, free: 12.6 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007702/0.4841, allocations: 1.167 MB / 326 MB, free: 11.42 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005026/0.4846, allocations: 465.2 kB / 326.4 MB, free: 10.97 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001507/0.4848, allocations: 36 kB / 326.5 MB, free: 10.94 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001224/0.4849, allocations: 370.8 kB / 326.8 MB, free: 10.57 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00229/0.4872, allocations: 0.8589 MB / 327.7 MB, free: 9.707 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002684/0.49, allocations: 1.33 MB / 329 MB, free: 8.168 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002911/0.4929, allocations: 1.052 MB / 330.1 MB, free: 7.117 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.117e-05/0.493, allocations: 4 kB / 330.1 MB, free: 7.113 MB / 250.7 MB Notification: Performance of matching and sorting (n=211) (initialization): time 0.008167/0.5012, allocations: 2.78 MB / 332.9 MB, free: 4.32 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.071e-05/0.5013, allocations: 13.56 kB / 332.9 MB, free: 4.309 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.459e-05/0.5013, allocations: 16 kB / 332.9 MB, free: 4.293 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002293/0.5036, allocations: 0.5478 MB / 333.4 MB, free: 3.742 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002919/0.5066, allocations: 395.4 kB / 333.8 MB, free: 3.355 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01171/0.5184, allocations: 5.255 MB / 339.1 MB, free: 13.97 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002859/0.5213, allocations: 135.8 kB / 339.2 MB, free: 13.84 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004311/0.5218, allocations: 68 kB / 339.3 MB, free: 13.77 MB / 266.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 (183): * Single equations (assignments): 179 * 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.002525/0.5243, allocations: 0.7923 MB / 340.1 MB, free: 12.97 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007592/0.5251, allocations: 197.6 kB / 340.3 MB, free: 12.77 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00795/0.533, allocations: 2.502 MB / 342.8 MB, free: 10.25 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.954e-05/0.5332, allocations: 20 kB / 342.8 MB, free: 10.23 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.822e-05/0.5332, allocations: 12 kB / 342.8 MB, free: 10.22 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.885e-05/0.5332, allocations: 7.969 kB / 342.8 MB, free: 10.21 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01749/0.5507, allocations: 5.302 MB / 348.1 MB, free: 4.84 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.836e-05/0.5508, allocations: 4 kB / 348.1 MB, free: 4.836 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002165/0.553, allocations: 243.6 kB / 348.4 MB, free: 4.598 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002857/0.5559, allocations: 0.5798 MB / 348.9 MB, free: 4.012 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002197/0.5561, allocations: 37.23 kB / 349 MB, free: 3.977 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01406/0.5702, allocations: 6.732 MB / 355.7 MB, free: 12.97 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.466e-06/0.5703, allocations: 8.125 kB / 355.7 MB, free: 12.96 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01089/0.5812, allocations: 3.91 MB / 359.6 MB, free: 8.902 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001597/0.5828, allocations: 458.6 kB / 360.1 MB, free: 8.434 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006191/0.5835, allocations: 35.98 kB / 360.1 MB, free: 8.398 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002231/0.5857, allocations: 115.8 kB / 360.2 MB, free: 8.285 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004442/0.5862, allocations: 100.8 kB / 360.3 MB, free: 8.188 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001593/0.5864, allocations: 40.69 kB / 360.4 MB, free: 8.148 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.003088/0.5895, allocations: 1.224 MB / 361.6 MB, free: 6.934 MB / 282.7 MB Notification: Performance of sort global known variables: time 8.92e-07/0.5895, allocations: 0 / 361.6 MB, free: 6.934 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.002843/0.5923, allocations: 0.5499 MB / 362.1 MB, free: 6.387 MB / 282.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 (108): * Single equations (assignments): 104 * 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.000531/0.5929, allocations: 164.2 kB / 362.3 MB, free: 6.219 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.007362/0.6003, allocations: 2.469 MB / 364.8 MB, free: 3.715 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 7.454e-06/0.6004, allocations: 4.062 kB / 364.8 MB, free: 3.711 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004753/0.6051, allocations: 1.488 MB / 366.2 MB, free: 2.199 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003261/0.6084, allocations: 402.9 kB / 366.6 MB, free: 1.809 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01497/0.6234, allocations: 6.043 MB / 372.7 MB, free: 11.69 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002935/0.6264, allocations: 2.041 MB / 374.7 MB, free: 9.617 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001041/0.6275, allocations: 127.4 kB / 374.9 MB, free: 9.492 MB / 298.7 MB Notification: Performance of SimCode: time 1.343e-06/0.6275, allocations: 7.938 kB / 374.9 MB, free: 9.484 MB / 298.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] .