Running command: translateModel(Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_withLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=10000,variableFilter="time|PI.x|aimc.idq_rr.1.|aimc.idq_rr.2.|aimc.idq_sr.1.|aimc.idq_sr.2.|loadInertia.w|powerSensor.flange_a.phi",fileNamePrefix="Modelica_3.2.1_cpp_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_withLosses") Notification: Performance of loadModel(Modelica): time 1.735/1.735, allocations: 171.1 MB / 186.3 MB, free: 1.398 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.558e-05/3.572e-05, allocations: 4 kB / 228.1 MB, free: 7.965 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09253/0.0926, allocations: 38.77 MB / 266.9 MB, free: 1.109 MB / 218.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_withLosses): time 0.01379/0.1064, allocations: 7.561 MB / 274.5 MB, free: 9.508 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.008718/0.1152, allocations: 3.002 MB / 277.5 MB, free: 6.5 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001902/0.1172, allocations: 51.88 kB / 277.5 MB, free: 6.449 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002295/0.1195, allocations: 489.2 kB / 278 MB, free: 5.969 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003206/0.1228, allocations: 0.6151 MB / 278.6 MB, free: 5.352 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001357/0.1242, allocations: 255.6 kB / 278.9 MB, free: 5.102 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.003957/0.1282, allocations: 1.311 MB / 280.2 MB, free: 3.789 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002127/0.1303, allocations: 0.9854 MB / 281.2 MB, free: 2.789 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001686/0.1321, allocations: 0.6973 MB / 281.8 MB, free: 2.09 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002295/0.1344, allocations: 0.9462 MB / 282.8 MB, free: 1.141 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001268/0.1357, allocations: 207.8 kB / 283 MB, free: 0.9375 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000548/0.1363, allocations: 96 kB / 283.1 MB, free: 0.8438 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001183/0.1375, allocations: 0.7088 MB / 283.8 MB, free: 136 kB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0009482/0.1385, allocations: 212 kB / 284 MB, free: 15.92 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005418/0.1439, allocations: 3.296 MB / 287.3 MB, free: 12.62 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.96e-06/0.144, allocations: 3.938 kB / 287.3 MB, free: 12.62 MB / 250.7 MB Notification: Performance of FrontEnd: time 3.557e-06/0.144, allocations: 0 / 287.3 MB, free: 12.62 MB / 250.7 MB Notification: Performance of Transformations before backend: time 0.0001358/0.1442, allocations: 0 / 287.3 MB, free: 12.62 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: 518 * Number of variables: 518 Notification: Performance of Generate backend data structure: time 0.007761/0.1519, allocations: 2.399 MB / 289.7 MB, free: 10.15 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.572e-05/0.152, allocations: 12.03 kB / 289.7 MB, free: 10.14 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001626/0.1536, allocations: 320.3 kB / 290 MB, free: 9.824 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004551/0.1582, allocations: 1.518 MB / 291.5 MB, free: 8.258 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002162/0.1585, allocations: 152 kB / 291.7 MB, free: 8.109 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000713/0.1592, allocations: 203.9 kB / 291.9 MB, free: 7.91 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008469/0.1677, allocations: 2.639 MB / 294.5 MB, free: 5.215 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.802e-05/0.1679, allocations: 0 / 294.5 MB, free: 5.215 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00031/0.1682, allocations: 80 kB / 294.6 MB, free: 5.137 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001941/0.1684, allocations: 91.88 kB / 294.7 MB, free: 5.047 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007909/0.1763, allocations: 2.244 MB / 296.9 MB, free: 2.801 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2393/0.4156, allocations: 8.131 MB / 305.1 MB, free: 24.84 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004598/0.4203, allocations: 1.557 MB / 306.6 MB, free: 24.05 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004054/0.4208, allocations: 127.9 kB / 306.8 MB, free: 23.96 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.773e-05/0.4208, allocations: 48.92 kB / 306.8 MB, free: 23.91 MB / 250.7 MB Notification: Performance of pre-optimization done (n=112): time 4.639e-06/0.4208, allocations: 2.812 kB / 306.8 MB, free: 23.91 MB / 250.7 MB Notification: Performance of matching and sorting (n=128): time 0.02323/0.4441, allocations: 6.612 MB / 313.4 MB, free: 20.7 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.038e-05/0.4442, allocations: 69.16 kB / 313.5 MB, free: 20.63 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004107/0.4483, allocations: 1.857 MB / 315.3 MB, free: 19.68 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003519/0.4487, allocations: 49.55 kB / 315.4 MB, free: 19.64 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007967/0.4495, allocations: 0.9972 MB / 316.4 MB, free: 18.72 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000542/0.45, allocations: 446.4 kB / 316.8 MB, free: 18.34 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000128/0.4502, allocations: 24.64 kB / 316.9 MB, free: 18.32 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001155/0.4503, allocations: 362.5 kB / 317.2 MB, free: 17.98 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001997/0.4523, allocations: 0.7535 MB / 318 MB, free: 17.6 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002115/0.4544, allocations: 1.007 MB / 319 MB, free: 16.92 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002316/0.4568, allocations: 0.9084 MB / 319.9 MB, free: 16.44 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.065e-05/0.4568, allocations: 2.5 kB / 319.9 MB, free: 16.44 MB / 250.7 MB Notification: Performance of matching and sorting (n=170) (initialization): time 0.007638/0.4645, allocations: 2.656 MB / 322.5 MB, free: 15.04 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.223e-05/0.4646, allocations: 38.86 kB / 322.6 MB, free: 15.01 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.427e-05/0.4646, allocations: 5.75 kB / 322.6 MB, free: 15.01 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003343/0.468, allocations: 0.8124 MB / 323.4 MB, free: 14.27 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00206/0.4701, allocations: 263.6 kB / 323.6 MB, free: 14.01 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0176/0.4877, allocations: 9.277 MB / 332.9 MB, free: 4.473 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002184/0.4899, allocations: 99.77 kB / 333 MB, free: 4.379 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002777/0.4902, allocations: 55.98 kB / 333.1 MB, free: 4.324 MB / 250.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 30 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (121): * Single equations (assignments): 116 * Array equations: 2 * Algorithm blocks: 1 * 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 {(1,100.0%) 6,(6,88.9%) 36} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001863/0.4921, allocations: 0.7368 MB / 333.8 MB, free: 3.578 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006537/0.4928, allocations: 201.6 kB / 334 MB, free: 3.379 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007024/0.4998, allocations: 2.48 MB / 336.5 MB, free: 0.8867 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.832e-05/0.4999, allocations: 12 kB / 336.5 MB, free: 0.875 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.452e-05/0.4999, allocations: 8 kB / 336.5 MB, free: 0.8672 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.225e-05/0.5, allocations: 11.97 kB / 336.5 MB, free: 0.8555 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01531/0.5153, allocations: 4.831 MB / 341.4 MB, free: 11.96 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.534e-05/0.5154, allocations: 0 / 341.4 MB, free: 11.96 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00199/0.5174, allocations: 211.7 kB / 341.6 MB, free: 11.75 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003262/0.5207, allocations: 0.6864 MB / 342.2 MB, free: 11.06 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002936/0.521, allocations: 29.31 kB / 342.3 MB, free: 11.03 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0157/0.5367, allocations: 8.328 MB / 350.6 MB, free: 2.316 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.591e-06/0.5368, allocations: 4.031 kB / 350.6 MB, free: 2.312 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01087/0.5477, allocations: 3.594 MB / 354.2 MB, free: 14.63 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001626/0.5493, allocations: 438.5 kB / 354.6 MB, free: 14.18 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006678/0.55, allocations: 27.95 kB / 354.7 MB, free: 14.16 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001924/0.552, allocations: 97.45 kB / 354.8 MB, free: 14.06 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004341/0.5525, allocations: 92.86 kB / 354.8 MB, free: 13.97 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001626/0.5526, allocations: 39.97 kB / 354.9 MB, free: 13.93 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.003452/0.5561, allocations: 1.445 MB / 356.3 MB, free: 12.46 MB / 282.7 MB Notification: Performance of sort global known variables: time 6.01e-07/0.5561, allocations: 0 / 356.3 MB, free: 12.46 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.003074/0.5592, allocations: 0.5105 MB / 356.8 MB, free: 11.95 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 8 (aimc.inertiaRotor.w,aimc.i_0_s,aimc.idq_sr[1],aimc.idq_sr[2],aimc.idq_rr[1],aimc.idq_rr[2],loadInertia.phi,PI.x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (90): * Single equations (assignments): 84 * 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: 3 * 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: 3 {(2,100.0%) 12,(1,100.0%) 6,(2,100.0%) 16} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001045/0.5603, allocations: 256 kB / 357.1 MB, free: 11.75 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.007788/0.5681, allocations: 2.438 MB / 359.5 MB, free: 9.266 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 7.354e-06/0.5682, allocations: 0 / 359.5 MB, free: 9.266 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004935/0.5731, allocations: 1.629 MB / 361.2 MB, free: 7.578 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003541/0.5767, allocations: 411.5 kB / 361.6 MB, free: 7.172 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01568/0.5925, allocations: 5.986 MB / 367.5 MB, free: 1.133 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002691/0.5952, allocations: 1.97 MB / 369.5 MB, free: 15.13 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008702/0.5961, allocations: 131.4 kB / 369.6 MB, free: 15 MB / 298.7 MB Notification: Performance of SimCode: time 1.192e-06/0.5962, allocations: 0 / 369.6 MB, free: 15 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(sineVoltage.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({-sineVoltage.i[1], -sineVoltage.i[2], -sineVoltage.i[3]})[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] . [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.i[1], -sineVoltage.i[2], -sineVoltage.i[3]})[1] .