Running command: translateModel(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses,tolerance=1e-06,outputFormat="empty",numberOfIntervals=100000,variableFilter="",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses") Notification: Performance of loadModel(Modelica): time 2.101/2.101, allocations: 224.7 MB / 241.1 MB, free: 1.688 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.627e-05/2.657e-05, allocations: 0 / 294.6 MB, free: 11.41 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1108/0.1109, allocations: 50.41 MB / 345 MB, free: 8.949 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses): time 0.01322/0.1241, allocations: 7.64 MB / 352.6 MB, free: 1.277 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.008358/0.1325, allocations: 3.142 MB / 355.8 MB, free: 14.13 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001628/0.1342, allocations: 59.75 kB / 355.8 MB, free: 14.07 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002243/0.1365, allocations: 497.2 kB / 356.3 MB, free: 13.58 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003238/0.1398, allocations: 0.6307 MB / 356.9 MB, free: 12.95 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0016/0.1414, allocations: 291.5 kB / 357.2 MB, free: 12.66 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.004066/0.1455, allocations: 1.307 MB / 358.5 MB, free: 11.35 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002276/0.1479, allocations: 1.013 MB / 359.5 MB, free: 10.32 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001615/0.1495, allocations: 0.6934 MB / 360.2 MB, free: 9.629 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002358/0.1519, allocations: 0.9735 MB / 361.2 MB, free: 8.652 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001469/0.1534, allocations: 283.7 kB / 361.5 MB, free: 8.375 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0006421/0.1541, allocations: 96 kB / 361.6 MB, free: 8.281 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001452/0.1556, allocations: 0.7322 MB / 362.3 MB, free: 7.547 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0009444/0.1566, allocations: 212 kB / 362.5 MB, free: 7.34 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005742/0.1623, allocations: 3.358 MB / 365.9 MB, free: 3.973 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.039e-06/0.1624, allocations: 0 / 365.9 MB, free: 3.973 MB / 298.7 MB Notification: Performance of FrontEnd: time 3.076e-06/0.1624, allocations: 0 / 365.9 MB, free: 3.973 MB / 298.7 MB Notification: Performance of Transformations before backend: time 0.0001445/0.1626, allocations: 0 / 365.9 MB, free: 3.973 MB / 298.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.007853/0.1704, allocations: 2.41 MB / 368.3 MB, free: 1.5 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.18e-05/0.1705, allocations: 11.97 kB / 368.3 MB, free: 1.488 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001669/0.1722, allocations: 324.3 kB / 368.6 MB, free: 1.168 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004994/0.1772, allocations: 1.604 MB / 370.2 MB, free: 15.51 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002121/0.1775, allocations: 152 kB / 370.4 MB, free: 15.36 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007222/0.1782, allocations: 215.8 kB / 370.6 MB, free: 15.15 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008579/0.1868, allocations: 2.659 MB / 373.2 MB, free: 12.41 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001139/0.187, allocations: 7.922 kB / 373.2 MB, free: 12.4 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003134/0.1873, allocations: 84 kB / 373.3 MB, free: 12.32 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002038/0.1875, allocations: 95.92 kB / 373.4 MB, free: 12.23 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007929/0.1955, allocations: 2.272 MB / 375.7 MB, free: 9.953 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02308/0.2186, allocations: 8.201 MB / 383.9 MB, free: 1.551 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004832/0.2235, allocations: 1.59 MB / 385.5 MB, free: 15.89 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004243/0.224, allocations: 130 kB / 385.6 MB, free: 15.75 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.508e-05/0.224, allocations: 43.56 kB / 385.7 MB, free: 15.7 MB / 330.7 MB Notification: Performance of pre-optimization done (n=116): time 4.438e-06/0.224, allocations: 4 kB / 385.7 MB, free: 15.7 MB / 330.7 MB Notification: Performance of matching and sorting (n=132): time 0.02418/0.2482, allocations: 6.683 MB / 392.3 MB, free: 8.844 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.366e-05/0.2484, allocations: 68.72 kB / 392.4 MB, free: 8.766 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004208/0.2526, allocations: 1.897 MB / 394.3 MB, free: 6.828 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003253/0.2529, allocations: 53.69 kB / 394.4 MB, free: 6.77 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001071/0.254, allocations: 1 MB / 395.4 MB, free: 5.758 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007152/0.2548, allocations: 457.4 kB / 395.8 MB, free: 5.305 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001366/0.2549, allocations: 24 kB / 395.8 MB, free: 5.281 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0002204/0.2551, allocations: 366.8 kB / 396.2 MB, free: 4.914 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002384/0.2575, allocations: 0.7574 MB / 396.9 MB, free: 4.156 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002663/0.2602, allocations: 1.01 MB / 398 MB, free: 3.051 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002822/0.2631, allocations: 0.8925 MB / 398.8 MB, free: 2.16 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.556e-05/0.2632, allocations: 4 kB / 398.8 MB, free: 2.156 MB / 330.7 MB Notification: Performance of matching and sorting (n=173) (initialization): time 0.292/0.5551, allocations: 2.636 MB / 401.5 MB, free: 47.74 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.044e-05/0.5552, allocations: 8.156 kB / 401.5 MB, free: 47.74 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.643e-05/0.5553, allocations: 5.781 kB / 401.5 MB, free: 47.74 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004116/0.5594, allocations: 0.8008 MB / 402.3 MB, free: 47.72 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002432/0.5619, allocations: 272.7 kB / 402.6 MB, free: 47.72 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02052/0.5824, allocations: 9.282 MB / 411.8 MB, free: 42.86 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002278/0.5848, allocations: 92.98 kB / 411.9 MB, free: 42.84 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002977/0.5851, allocations: 58.25 kB / 412 MB, free: 42.83 MB / 330.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 (124): * Single equations (assignments): 120 * 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 {(1,100.0%) 6,(6,88.9%) 36} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002236/0.5874, allocations: 0.7404 MB / 412.7 MB, free: 42.46 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006817/0.5881, allocations: 199.3 kB / 412.9 MB, free: 42.46 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007684/0.5958, allocations: 2.51 MB / 415.4 MB, free: 41.52 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.376e-05/0.5959, allocations: 19.66 kB / 415.5 MB, free: 41.51 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.394e-05/0.5959, allocations: 7.812 kB / 415.5 MB, free: 41.51 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.221e-05/0.5959, allocations: 11.25 kB / 415.5 MB, free: 41.51 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01389/0.6098, allocations: 4.885 MB / 420.4 MB, free: 39.27 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.659e-05/0.6099, allocations: 3.75 kB / 420.4 MB, free: 39.27 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001962/0.6119, allocations: 215.9 kB / 420.6 MB, free: 39.21 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002933/0.6148, allocations: 0.6676 MB / 421.2 MB, free: 38.87 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002652/0.6152, allocations: 31.69 kB / 421.3 MB, free: 38.85 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01294/0.6281, allocations: 8.333 MB / 429.6 MB, free: 31.98 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.188e-06/0.6282, allocations: 0 / 429.6 MB, free: 31.98 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009344/0.6375, allocations: 3.636 MB / 433.2 MB, free: 28.27 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001341/0.6389, allocations: 438.5 kB / 433.7 MB, free: 27.82 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005605/0.6395, allocations: 24 kB / 433.7 MB, free: 27.8 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001832/0.6414, allocations: 95.89 kB / 433.8 MB, free: 27.71 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003514/0.6418, allocations: 96.84 kB / 433.9 MB, free: 27.61 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001439/0.6419, allocations: 51.17 kB / 433.9 MB, free: 27.56 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.002783/0.6447, allocations: 1.473 MB / 435.4 MB, free: 26.07 MB / 330.7 MB Notification: Performance of sort global known variables: time 8.02e-07/0.6448, allocations: 0 / 435.4 MB, free: 26.07 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.002761/0.6475, allocations: 0.5182 MB / 435.9 MB, free: 25.55 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.001344/0.6489, allocations: 417.6 kB / 436.3 MB, free: 25.25 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.006755/0.6557, allocations: 2.406 MB / 438.7 MB, free: 22.82 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 9.848e-06/0.6558, allocations: 4 kB / 438.7 MB, free: 22.82 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004208/0.66, allocations: 1.641 MB / 440.4 MB, free: 21.12 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003322/0.6634, allocations: 410.3 kB / 440.8 MB, free: 20.71 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01243/0.6758, allocations: 6.046 MB / 446.8 MB, free: 14.63 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002049/0.678, allocations: 1.986 MB / 448.8 MB, free: 12.61 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008282/0.6788, allocations: 135.4 kB / 448.9 MB, free: 12.47 MB / 330.7 MB Notification: Performance of SimCode: time 1.303e-06/0.6788, allocations: 0 / 448.9 MB, free: 12.47 MB / 330.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] .