Running command: translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling,tolerance=1e-06,outputFormat="mat",numberOfIntervals=500000,variableFilter="time|armature.T|core.T|dcpm.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling") Notification: Performance of loadModel(Modelica): time 1.866/1.866, allocations: 194.9 MB / 208.4 MB, free: 3.16 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 5.16e-05/5.197e-05, allocations: 2.875 kB / 255.3 MB, free: 3.184 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1009/0.1009, allocations: 44.51 MB / 299.8 MB, free: 6.613 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3458/0.4467, allocations: 94.38 MB / 394.2 MB, free: 19.01 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002385/0.447, allocations: 79.06 kB / 394.3 MB, free: 19.01 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1098/0.5569, allocations: 30.28 MB / 424.6 MB, free: 8.469 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.01e-06/0.5569, allocations: 3.938 kB / 424.6 MB, free: 8.465 MB / 314.7 MB Notification: Performance of Transformations before backend: time 8.399e-05/0.557, allocations: 27 kB / 424.6 MB, free: 8.465 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: 271 * Number of variables: 271 Notification: Performance of Generate backend data structure: time 0.002508/0.5596, allocations: 1.339 MB / 426 MB, free: 7.535 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.953e-05/0.5596, allocations: 11.47 kB / 426 MB, free: 7.535 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007002/0.5603, allocations: 205.5 kB / 426.2 MB, free: 7.438 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001812/0.5621, allocations: 0.8311 MB / 427 MB, free: 6.969 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001536/0.5623, allocations: 113.3 kB / 427.1 MB, free: 6.93 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001989/0.5625, allocations: 119.1 kB / 427.2 MB, free: 6.922 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002155/0.5647, allocations: 1.081 MB / 428.3 MB, free: 6.555 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.648e-05/0.5648, allocations: 3.812 kB / 428.3 MB, free: 6.555 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001226/0.5649, allocations: 46.16 kB / 428.4 MB, free: 6.555 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.279e-05/0.5649, allocations: 30.98 kB / 428.4 MB, free: 6.551 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001681/0.5666, allocations: 0.6894 MB / 429.1 MB, free: 6.516 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006644/0.5733, allocations: 3.92 MB / 433 MB, free: 4.273 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001619/0.575, allocations: 0.5458 MB / 433.5 MB, free: 4.195 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004854/0.5755, allocations: 244 kB / 433.8 MB, free: 4.164 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.25e-05/0.5755, allocations: 15.92 kB / 433.8 MB, free: 4.152 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005535/0.5761, allocations: 270 kB / 434.1 MB, free: 3.953 MB / 314.7 MB Notification: Performance of pre-optimization done (n=63): time 4.704e-06/0.5761, allocations: 4 kB / 434.1 MB, free: 3.949 MB / 314.7 MB Notification: Performance of matching and sorting (n=66): time 0.003333/0.5795, allocations: 1.511 MB / 435.6 MB, free: 2.688 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001052/0.5796, allocations: 482.5 kB / 436 MB, free: 2.109 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001508/0.5811, allocations: 0.9141 MB / 437 MB, free: 1.422 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 7.019e-05/0.5812, allocations: 41.08 kB / 437 MB, free: 1.383 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003909/0.5816, allocations: 0.6231 MB / 437.6 MB, free: 0.9453 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001795/0.5818, allocations: 238 kB / 437.9 MB, free: 0.7422 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.389e-05/0.5819, allocations: 21.69 kB / 437.9 MB, free: 0.7383 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 8.415e-05/0.582, allocations: 349.9 kB / 438.2 MB, free: 412 kB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005157/0.5825, allocations: 215.6 kB / 438.4 MB, free: 276 kB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009261/0.5834, allocations: 0.6854 MB / 439.1 MB, free: 15.49 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007705/0.5842, allocations: 376.2 kB / 439.5 MB, free: 15.21 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.96e-06/0.5843, allocations: 4 kB / 439.5 MB, free: 15.21 MB / 330.7 MB Notification: Performance of matching and sorting (n=130) (initialization): time 0.002583/0.5869, allocations: 1.048 MB / 440.5 MB, free: 14.37 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.7e-05/0.587, allocations: 71.2 kB / 440.6 MB, free: 14.29 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.083e-05/0.587, allocations: 12 kB / 440.6 MB, free: 14.28 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009415/0.5879, allocations: 199.5 kB / 440.8 MB, free: 14.11 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009569/0.5889, allocations: 215 kB / 441 MB, free: 13.9 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005521/0.5945, allocations: 3.517 MB / 444.5 MB, free: 10.56 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001345/0.5958, allocations: 87.47 kB / 444.6 MB, free: 10.49 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001051/0.596, allocations: 47.25 kB / 444.7 MB, free: 10.45 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 52 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (114): * Single equations (assignments): 110 * Array equations: 0 * Algorithm blocks: 2 * 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%) 1,(3,88.9%) 12} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002761/0.5963, allocations: 192.9 kB / 444.9 MB, free: 10.29 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002346/0.5965, allocations: 122.5 kB / 445 MB, free: 10.16 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001945/0.5985, allocations: 0.692 MB / 445.7 MB, free: 9.664 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.63e-06/0.5985, allocations: 4 kB / 445.7 MB, free: 9.66 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.225e-06/0.5985, allocations: 8 kB / 445.7 MB, free: 9.652 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001722/0.6002, allocations: 0.922 MB / 446.6 MB, free: 8.762 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004058/0.6043, allocations: 1.758 MB / 448.4 MB, free: 7.059 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.965e-05/0.6044, allocations: 0 / 448.4 MB, free: 7.059 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007231/0.6051, allocations: 111.9 kB / 448.5 MB, free: 6.949 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006492/0.6058, allocations: 129.8 kB / 448.6 MB, free: 6.816 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.754e-05/0.6059, allocations: 19.98 kB / 448.6 MB, free: 6.797 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004593/0.6105, allocations: 3.275 MB / 451.9 MB, free: 3.258 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.249e-06/0.6105, allocations: 4 kB / 451.9 MB, free: 3.254 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002615/0.6131, allocations: 1.11 MB / 453 MB, free: 2.066 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007477/0.6139, allocations: 255.6 kB / 453.2 MB, free: 1.797 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002189/0.6142, allocations: 16 kB / 453.3 MB, free: 1.781 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008494/0.615, allocations: 47.97 kB / 453.3 MB, free: 1.734 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001935/0.6152, allocations: 64.38 kB / 453.4 MB, free: 1.668 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.096e-05/0.6153, allocations: 19.98 kB / 453.4 MB, free: 1.648 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.001465/0.6168, allocations: 0.6826 MB / 454.1 MB, free: 0.957 MB / 330.7 MB Notification: Performance of sort global known variables: time 9.54e-07/0.6168, allocations: 0 / 454.1 MB, free: 0.957 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001831/0.6187, allocations: 360 kB / 454.4 MB, free: 0.6055 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 5 (dcpm.inertiaRotor.phi,dcpm.inertiaRotor.w,dcpm.la.i,armature.T,core.T) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (53): * Single equations (assignments): 49 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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: 1 {(1,100.0%) 1} * Non-linear torn systems: 1 {1 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.0006643/0.6193, allocations: 351 kB / 454.8 MB, free: 268 kB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.002825/0.6222, allocations: 1.041 MB / 455.8 MB, free: 15.17 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 6.205e-06/0.6222, allocations: 0 / 455.8 MB, free: 15.17 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001154/0.6234, allocations: 0.5252 MB / 456.3 MB, free: 14.62 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00202/0.6254, allocations: 304.3 kB / 456.6 MB, free: 14.33 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004328/0.6298, allocations: 1.637 MB / 458.3 MB, free: 12.63 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001001/0.6308, allocations: 1.105 MB / 459.4 MB, free: 11.5 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003845/0.6312, allocations: 79.44 kB / 459.5 MB, free: 11.42 MB / 346.7 MB Notification: Performance of SimCode: time 1.851e-06/0.6312, allocations: 3.938 kB / 459.5 MB, free: 11.42 MB / 346.7 MB Notification: Performance of Templates: time 0.04251/0.6738, allocations: 25.71 MB / 485.2 MB, free: 1.723 MB / 362.7 MB