Running command: translateModel(Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_withLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=100000,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.2_cpp_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_withLosses") Notification: Performance of loadModel(Modelica): time 1.941/1.941, allocations: 194.9 MB / 211.2 MB, free: 8.16 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.265e-05/3.27e-05, allocations: 11.89 kB / 258.8 MB, free: 8.5 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3109/0.311, allocations: 44.5 MB / 303.3 MB, free: 12.72 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_withLosses): time 0.01364/0.3247, allocations: 7.646 MB / 310.9 MB, free: 6.004 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.008491/0.3332, allocations: 3.03 MB / 314 MB, free: 2.961 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001661/0.3349, allocations: 51.81 kB / 314 MB, free: 2.91 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002167/0.3372, allocations: 493.2 kB / 314.5 MB, free: 2.426 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003154/0.3404, allocations: 0.6346 MB / 315.1 MB, free: 1.789 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001374/0.3418, allocations: 259.6 kB / 315.4 MB, free: 1.535 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.003881/0.3457, allocations: 1.322 MB / 316.7 MB, free: 212 kB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00207/0.3478, allocations: 0.9738 MB / 317.7 MB, free: 15.22 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001619/0.3495, allocations: 0.6934 MB / 318.4 MB, free: 14.53 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002327/0.3518, allocations: 0.9813 MB / 319.4 MB, free: 13.54 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001446/0.3533, allocations: 275.7 kB / 319.6 MB, free: 13.27 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0008837/0.3542, allocations: 96 kB / 319.7 MB, free: 13.18 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001674/0.3559, allocations: 0.74 MB / 320.5 MB, free: 12.44 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0009128/0.3569, allocations: 216 kB / 320.7 MB, free: 12.23 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005319/0.3622, allocations: 3.339 MB / 324 MB, free: 8.879 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.019e-06/0.3623, allocations: 0 / 324 MB, free: 8.879 MB / 266.7 MB Notification: Performance of FrontEnd: time 3.016e-06/0.3623, allocations: 4 kB / 324 MB, free: 8.875 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.000124/0.3625, allocations: 0 / 324 MB, free: 8.875 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: 524 * Number of variables: 524 Notification: Performance of Generate backend data structure: time 0.007502/0.37, allocations: 2.419 MB / 326.4 MB, free: 6.387 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.644e-05/0.37, allocations: 8.031 kB / 326.5 MB, free: 6.379 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00151/0.3716, allocations: 328.3 kB / 326.8 MB, free: 6.055 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004661/0.3762, allocations: 1.545 MB / 328.3 MB, free: 4.457 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002031/0.3765, allocations: 156 kB / 328.5 MB, free: 4.301 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006662/0.3772, allocations: 199.9 kB / 328.7 MB, free: 4.105 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008317/0.3855, allocations: 2.663 MB / 331.3 MB, free: 1.363 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.728e-05/0.3856, allocations: 7.938 kB / 331.3 MB, free: 1.355 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003171/0.386, allocations: 83.94 kB / 331.4 MB, free: 1.273 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002046/0.3862, allocations: 107.9 kB / 331.5 MB, free: 1.168 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007877/0.3941, allocations: 2.264 MB / 333.8 MB, free: 14.9 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02339/0.4175, allocations: 8.197 MB / 342 MB, free: 6.508 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004904/0.4225, allocations: 1.606 MB / 343.6 MB, free: 4.84 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004248/0.423, allocations: 126.1 kB / 343.7 MB, free: 4.699 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.515e-05/0.423, allocations: 47.56 kB / 343.8 MB, free: 4.645 MB / 282.7 MB Notification: Performance of pre-optimization done (n=116): time 4.218e-06/0.423, allocations: 4 kB / 343.8 MB, free: 4.641 MB / 282.7 MB Notification: Performance of matching and sorting (n=132): time 0.02422/0.4473, allocations: 6.455 MB / 350.2 MB, free: 14.05 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.947e-05/0.4474, allocations: 64.72 kB / 350.3 MB, free: 13.97 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004415/0.4518, allocations: 1.885 MB / 352.2 MB, free: 12.04 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003061/0.4522, allocations: 45.7 kB / 352.2 MB, free: 11.99 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001184/0.4534, allocations: 1.012 MB / 353.2 MB, free: 10.97 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007498/0.4542, allocations: 453.4 kB / 353.7 MB, free: 10.52 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001458/0.4543, allocations: 28 kB / 353.7 MB, free: 10.49 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0002084/0.4545, allocations: 366.8 kB / 354.1 MB, free: 10.12 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003748/0.4583, allocations: 0.7574 MB / 354.8 MB, free: 9.367 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004255/0.4626, allocations: 1.014 MB / 355.8 MB, free: 8.262 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004481/0.4672, allocations: 0.9216 MB / 356.7 MB, free: 7.332 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.58e-05/0.4673, allocations: 4 kB / 356.7 MB, free: 7.328 MB / 298.7 MB Notification: Performance of matching and sorting (n=174) (initialization): time 0.01454/0.4818, allocations: 2.677 MB / 359.4 MB, free: 4.629 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.078e-05/0.482, allocations: 37.66 kB / 359.5 MB, free: 4.586 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.778e-05/0.482, allocations: 8 kB / 359.5 MB, free: 4.578 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005975/0.488, allocations: 0.8135 MB / 360.3 MB, free: 3.758 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003362/0.4914, allocations: 271.6 kB / 360.6 MB, free: 3.492 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03376/0.5253, allocations: 9.271 MB / 369.8 MB, free: 9.945 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0035/0.5288, allocations: 104 kB / 369.9 MB, free: 9.844 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005733/0.5295, allocations: 51.98 kB / 370 MB, free: 9.793 MB / 314.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 (125): * Single equations (assignments): 120 * 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.003443/0.533, allocations: 0.7395 MB / 370.7 MB, free: 9.043 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001038/0.534, allocations: 197.6 kB / 370.9 MB, free: 8.848 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01412/0.5482, allocations: 2.524 MB / 373.4 MB, free: 6.305 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.092e-05/0.5483, allocations: 12 kB / 373.4 MB, free: 6.293 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.069e-05/0.5484, allocations: 8 kB / 373.4 MB, free: 6.285 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.544e-05/0.5485, allocations: 3.984 kB / 373.5 MB, free: 6.281 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0256/0.5741, allocations: 4.906 MB / 378.4 MB, free: 1.281 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.243e-05/0.5742, allocations: 0 / 378.4 MB, free: 1.281 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003257/0.5775, allocations: 215.6 kB / 378.6 MB, free: 1.07 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005373/0.5829, allocations: 0.6727 MB / 379.2 MB, free: 396 kB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004363/0.5834, allocations: 35.97 kB / 379.3 MB, free: 360 kB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03016/0.6136, allocations: 8.329 MB / 387.6 MB, free: 7.621 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.043e-06/0.6137, allocations: 0 / 387.6 MB, free: 7.621 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01345/0.6271, allocations: 3.626 MB / 391.2 MB, free: 3.898 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001513/0.6287, allocations: 442.4 kB / 391.7 MB, free: 3.445 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006886/0.6294, allocations: 31.98 kB / 391.7 MB, free: 3.414 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002025/0.6315, allocations: 99.84 kB / 391.8 MB, free: 3.316 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005039/0.632, allocations: 108.8 kB / 391.9 MB, free: 3.211 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001794/0.6322, allocations: 35.98 kB / 391.9 MB, free: 3.176 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.003638/0.6359, allocations: 1.468 MB / 393.4 MB, free: 1.684 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.192e-06/0.6359, allocations: 0 / 393.4 MB, free: 1.684 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.002915/0.6389, allocations: 0.5234 MB / 393.9 MB, free: 1.16 MB / 330.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 (94): * Single equations (assignments): 88 * 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.00118/0.6401, allocations: 284.6 kB / 394.2 MB, free: 0.9023 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.007879/0.648, allocations: 2.462 MB / 396.7 MB, free: 14.4 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 6.312e-06/0.648, allocations: 0 / 396.7 MB, free: 14.4 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004856/0.6529, allocations: 1.647 MB / 398.3 MB, free: 12.69 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003214/0.6562, allocations: 417.4 kB / 398.7 MB, free: 12.28 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01486/0.6711, allocations: 6.054 MB / 404.8 MB, free: 6.168 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003218/0.6743, allocations: 1.974 MB / 406.7 MB, free: 4.16 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009227/0.6753, allocations: 143.4 kB / 406.9 MB, free: 4.02 MB / 346.7 MB Notification: Performance of SimCode: time 1.032e-06/0.6753, allocations: 4 kB / 406.9 MB, free: 4.016 MB / 346.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] .