Running command: translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses,tolerance=1e-06,outputFormat="empty",numberOfIntervals=100000,variableFilter="",fileNamePrefix="Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses") Notification: Performance of loadModel(Modelica): time 2.044/2.044, allocations: 224.7 MB / 241.1 MB, free: 1.688 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.808e-05/2.812e-05, allocations: 4 kB / 294.6 MB, free: 11.39 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1078/0.1079, allocations: 50.41 MB / 345 MB, free: 8.93 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses): time 0.01875/0.1267, allocations: 10.67 MB / 355.7 MB, free: 14.21 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01159/0.1383, allocations: 4.321 MB / 360 MB, free: 9.879 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002502/0.1409, allocations: 95.69 kB / 360.1 MB, free: 9.785 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003332/0.1443, allocations: 0.7109 MB / 360.8 MB, free: 9.07 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005365/0.1497, allocations: 1.11 MB / 361.9 MB, free: 7.957 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003265/0.153, allocations: 0.6508 MB / 362.6 MB, free: 7.305 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.006771/0.1598, allocations: 2.312 MB / 364.9 MB, free: 4.988 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004038/0.1639, allocations: 1.715 MB / 366.6 MB, free: 3.262 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002786/0.1667, allocations: 1.106 MB / 367.7 MB, free: 2.152 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003574/0.1703, allocations: 1.394 MB / 369.1 MB, free: 0.7539 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002476/0.1729, allocations: 435.5 kB / 369.5 MB, free: 336 kB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001121/0.1741, allocations: 144 kB / 369.6 MB, free: 192 kB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001785/0.1759, allocations: 0.8449 MB / 370.5 MB, free: 15.34 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001524/0.1774, allocations: 316 kB / 370.8 MB, free: 15.03 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0102/0.1877, allocations: 5.917 MB / 376.7 MB, free: 9.098 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 9.417e-06/0.1877, allocations: 4 kB / 376.7 MB, free: 9.094 MB / 314.7 MB Notification: Performance of FrontEnd: time 4.028e-06/0.1877, allocations: 3.938 kB / 376.7 MB, free: 9.09 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0002421/0.188, allocations: 0 / 376.7 MB, free: 9.09 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 877 * Number of variables: 877 Notification: Performance of Generate backend data structure: time 0.01551/0.2035, allocations: 3.874 MB / 380.6 MB, free: 5.145 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.077e-05/0.2036, allocations: 12.03 kB / 380.6 MB, free: 5.133 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007651/0.2113, allocations: 0.8809 MB / 381.5 MB, free: 4.246 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008389/0.2197, allocations: 2.612 MB / 384.1 MB, free: 1.559 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004154/0.2202, allocations: 250.7 kB / 384.3 MB, free: 1.312 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001318/0.2215, allocations: 335.9 kB / 384.7 MB, free: 0.9844 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01609/0.2376, allocations: 4.496 MB / 389.2 MB, free: 12.44 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001463/0.2378, allocations: 11.89 kB / 389.2 MB, free: 12.43 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008521/0.2387, allocations: 136 kB / 389.3 MB, free: 12.3 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002863/0.239, allocations: 154.7 kB / 389.5 MB, free: 12.14 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01439/0.2534, allocations: 3.895 MB / 393.4 MB, free: 8.242 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3251/0.5785, allocations: 14.15 MB / 407.5 MB, free: 38.85 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01192/0.5905, allocations: 6.896 MB / 414.4 MB, free: 33.77 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0108/0.6013, allocations: 3.609 MB / 418 MB, free: 31.88 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.671e-05/0.6014, allocations: 50.84 kB / 418.1 MB, free: 31.83 MB / 330.7 MB Notification: Performance of pre-optimization done (n=167): time 7.765e-06/0.6015, allocations: 2.688 kB / 418.1 MB, free: 31.83 MB / 330.7 MB Notification: Performance of matching and sorting (n=187): time 0.02817/0.6296, allocations: 7.979 MB / 426.1 MB, free: 28.02 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.697e-05/0.6297, allocations: 73.09 kB / 426.1 MB, free: 27.95 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005125/0.6349, allocations: 2.309 MB / 428.4 MB, free: 26.96 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004083/0.6353, allocations: 53.58 kB / 428.5 MB, free: 26.9 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001175/0.6365, allocations: 1.474 MB / 430 MB, free: 25.57 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007627/0.6373, allocations: 0.6332 MB / 430.6 MB, free: 25.02 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001742/0.6375, allocations: 41.14 kB / 430.6 MB, free: 24.98 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001414/0.6377, allocations: 386.2 kB / 431 MB, free: 24.62 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002645/0.6403, allocations: 0.9002 MB / 431.9 MB, free: 24.14 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002932/0.6433, allocations: 1.274 MB / 433.2 MB, free: 23.21 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003065/0.6464, allocations: 1.121 MB / 434.3 MB, free: 22.61 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.586e-05/0.6465, allocations: 3.188 kB / 434.3 MB, free: 22.61 MB / 330.7 MB Notification: Performance of matching and sorting (n=246) (initialization): time 0.008459/0.6549, allocations: 2.875 MB / 437.2 MB, free: 21.07 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.583e-05/0.655, allocations: 7 kB / 437.2 MB, free: 21.07 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.97e-05/0.6551, allocations: 12.88 kB / 437.2 MB, free: 21.07 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002399/0.6575, allocations: 0.5636 MB / 437.8 MB, free: 20.8 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003518/0.661, allocations: 429.9 kB / 438.2 MB, free: 20.54 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01326/0.6743, allocations: 7.203 MB / 445.4 MB, free: 13.08 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002721/0.6771, allocations: 93.17 kB / 445.5 MB, free: 12.99 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003816/0.6775, allocations: 78.17 kB / 445.6 MB, free: 12.92 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 46 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (197): * Single equations (assignments): 193 * 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,(8,65.6%) 34} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003032/0.6806, allocations: 1.157 MB / 446.7 MB, free: 11.75 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007741/0.6814, allocations: 252.9 kB / 447 MB, free: 11.5 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008369/0.6898, allocations: 2.884 MB / 449.8 MB, free: 8.59 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.009e-05/0.6899, allocations: 20 kB / 449.9 MB, free: 8.57 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.583e-05/0.6899, allocations: 12 kB / 449.9 MB, free: 8.559 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.746e-05/0.6899, allocations: 7.969 kB / 449.9 MB, free: 8.551 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01627/0.7062, allocations: 6.296 MB / 456.2 MB, free: 2.211 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.496e-05/0.7063, allocations: 0 / 456.2 MB, free: 2.211 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002611/0.7089, allocations: 283.6 kB / 456.5 MB, free: 1.934 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002615/0.7116, allocations: 0.6236 MB / 457.1 MB, free: 1.305 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000284/0.7119, allocations: 39.98 kB / 457.1 MB, free: 1.266 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01862/0.7305, allocations: 10.78 MB / 467.9 MB, free: 5.988 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.238e-06/0.7306, allocations: 2.375 kB / 467.9 MB, free: 5.988 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0132/0.7438, allocations: 4.205 MB / 472.1 MB, free: 1.723 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001896/0.7457, allocations: 0.5368 MB / 472.6 MB, free: 1.164 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007859/0.7465, allocations: 43.89 kB / 472.7 MB, free: 1.121 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002436/0.749, allocations: 91.92 kB / 472.8 MB, free: 1.031 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005591/0.7496, allocations: 137.8 kB / 472.9 MB, free: 0.8945 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002065/0.7498, allocations: 55.97 kB / 473 MB, free: 0.8398 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.004463/0.7543, allocations: 1.792 MB / 474.8 MB, free: 15.04 MB / 362.7 MB Notification: Performance of sort global known variables: time 8.41e-07/0.7543, allocations: 4 kB / 474.8 MB, free: 15.03 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.003954/0.7583, allocations: 0.6915 MB / 475.5 MB, free: 14.34 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 8 (aimc.inertiaRotor.w,aimc.stator.zeroInductor.i0,aimc.stator.core.Phi.re,aimc.stator.core.Phi.im,aimc.stator.stray.Phi.re,aimc.stator.stray.Phi.im,loadInertia.phi,PI.x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (127): * Single equations (assignments): 121 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(2,100.0%) 12,(1,100.0%) 12,(1,100.0%) 6,(2,100.0%) 26} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00166/0.76, allocations: 420.1 kB / 475.9 MB, free: 14.04 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.009126/0.7692, allocations: 2.836 MB / 478.7 MB, free: 11.18 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.019e-05/0.7692, allocations: 4.312 kB / 478.7 MB, free: 11.18 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00556/0.7748, allocations: 1.942 MB / 480.6 MB, free: 9.191 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004541/0.7794, allocations: 0.5229 MB / 481.2 MB, free: 8.664 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02114/0.8006, allocations: 8.351 MB / 489.5 MB, free: 272 kB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004477/0.8051, allocations: 2.643 MB / 492.2 MB, free: 13.6 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001224/0.8064, allocations: 183.4 kB / 492.3 MB, free: 13.42 MB / 378.7 MB Notification: Performance of SimCode: time 1.893e-06/0.8064, allocations: 0 / 492.3 MB, free: 13.42 MB / 378.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] .