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.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling") Notification: Performance of loadModel(Modelica): time 1.883/1.883, allocations: 205.8 MB / 218.9 MB, free: 9.262 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.159e-05/2.17e-05, allocations: 0 / 269.4 MB, free: 6.387 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08154/0.08158, allocations: 47.57 MB / 316.9 MB, free: 6.73 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3575/0.4392, allocations: 99.93 MB / 416.9 MB, free: 4.453 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002489/0.4395, allocations: 76.45 kB / 416.9 MB, free: 4.414 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1182/0.5577, allocations: 30.82 MB / 447.8 MB, free: 10.46 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.851e-06/0.5577, allocations: 4 kB / 447.8 MB, free: 10.46 MB / 362.7 MB Notification: Performance of Transformations before backend: time 8.889e-05/0.5578, allocations: 28 kB / 447.8 MB, free: 10.43 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 272 * Number of variables: 272 Notification: Performance of Generate backend data structure: time 0.00277/0.5606, allocations: 1.362 MB / 449.1 MB, free: 9.09 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.251e-05/0.5606, allocations: 12.03 kB / 449.2 MB, free: 9.078 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007341/0.5614, allocations: 202.1 kB / 449.4 MB, free: 8.879 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001964/0.5634, allocations: 0.8441 MB / 450.2 MB, free: 8.172 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001807/0.5636, allocations: 118.5 kB / 450.3 MB, free: 8.082 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002258/0.5638, allocations: 113.8 kB / 450.4 MB, free: 8.004 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002315/0.5662, allocations: 1.073 MB / 451.5 MB, free: 7.195 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.439e-05/0.5662, allocations: 7.875 kB / 451.5 MB, free: 7.188 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001266/0.5664, allocations: 48.44 kB / 451.6 MB, free: 7.176 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.443e-05/0.5664, allocations: 24 kB / 451.6 MB, free: 7.152 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001795/0.5682, allocations: 0.6803 MB / 452.3 MB, free: 6.719 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007701/0.5759, allocations: 3.937 MB / 456.2 MB, free: 3.508 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001737/0.5777, allocations: 0.533 MB / 456.7 MB, free: 3.137 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005424/0.5783, allocations: 243.6 kB / 457 MB, free: 2.988 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.838e-05/0.5783, allocations: 12.55 kB / 457 MB, free: 2.977 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006547/0.579, allocations: 270 kB / 457.2 MB, free: 2.707 MB / 362.7 MB Notification: Performance of pre-optimization done (n=63): time 4.183e-06/0.579, allocations: 0 / 457.2 MB, free: 2.707 MB / 362.7 MB Notification: Performance of matching and sorting (n=66): time 0.003776/0.5828, allocations: 1.497 MB / 458.7 MB, free: 1.152 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002941/0.5831, allocations: 475.2 kB / 459.2 MB, free: 0.5742 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001881/0.585, allocations: 0.9288 MB / 460.1 MB, free: 15.63 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 8.464e-05/0.5851, allocations: 37.7 kB / 460.2 MB, free: 15.59 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007097/0.5858, allocations: 0.6466 MB / 460.8 MB, free: 14.93 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002741/0.5861, allocations: 248.6 kB / 461.1 MB, free: 14.69 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.168e-05/0.5862, allocations: 20 kB / 461.1 MB, free: 14.67 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0002094/0.5864, allocations: 345.9 kB / 461.4 MB, free: 14.32 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005993/0.587, allocations: 214.6 kB / 461.6 MB, free: 14.11 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001073/0.5881, allocations: 0.6756 MB / 462.3 MB, free: 13.23 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008617/0.589, allocations: 377.3 kB / 462.7 MB, free: 12.85 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.077e-05/0.589, allocations: 4 kB / 462.7 MB, free: 12.84 MB / 378.7 MB Notification: Performance of matching and sorting (n=130) (initialization): time 0.002643/0.5917, allocations: 1.059 MB / 463.7 MB, free: 11.76 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.279e-05/0.5918, allocations: 67.44 kB / 463.8 MB, free: 11.68 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.122e-05/0.5918, allocations: 12 kB / 463.8 MB, free: 11.67 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007166/0.5925, allocations: 162.3 kB / 464 MB, free: 11.5 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009288/0.5935, allocations: 223.6 kB / 464.2 MB, free: 11.29 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005434/0.599, allocations: 3.541 MB / 467.7 MB, free: 7.48 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001121/0.6001, allocations: 72.03 kB / 467.8 MB, free: 7.41 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000112/0.6002, allocations: 55.98 kB / 467.9 MB, free: 7.355 MB / 378.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: 1 {(1,100.0%) 1} * Non-linear torn systems: 1 {6 9} Notification: Performance of prepare postOptimizeDAE: time 0.0002644/0.6005, allocations: 180.7 kB / 468 MB, free: 7.172 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002192/0.6007, allocations: 130.5 kB / 468.2 MB, free: 7.043 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001792/0.6025, allocations: 0.6532 MB / 468.8 MB, free: 6.371 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.033e-06/0.6026, allocations: 4 kB / 468.8 MB, free: 6.367 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.412e-06/0.6026, allocations: 11.95 kB / 468.8 MB, free: 6.355 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001513/0.6041, allocations: 0.875 MB / 469.7 MB, free: 5.367 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003756/0.6079, allocations: 1.743 MB / 471.4 MB, free: 3.543 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.106e-06/0.6079, allocations: 4 kB / 471.4 MB, free: 3.539 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006661/0.6086, allocations: 116 kB / 471.6 MB, free: 3.426 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005719/0.6092, allocations: 125.6 kB / 471.7 MB, free: 3.297 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.791e-05/0.6093, allocations: 19.98 kB / 471.7 MB, free: 3.277 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004439/0.6137, allocations: 3.255 MB / 475 MB, free: 15.75 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.015e-05/0.6137, allocations: 7.969 kB / 475 MB, free: 15.75 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002249/0.616, allocations: 1.08 MB / 476 MB, free: 14.59 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005372/0.6166, allocations: 251.6 kB / 476.3 MB, free: 14.32 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001986/0.6168, allocations: 16 kB / 476.3 MB, free: 14.31 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007606/0.6176, allocations: 51.86 kB / 476.4 MB, free: 14.26 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001578/0.6177, allocations: 64.41 kB / 476.4 MB, free: 14.2 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.444e-05/0.6178, allocations: 23.98 kB / 476.4 MB, free: 14.17 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.001373/0.6192, allocations: 0.6952 MB / 477.1 MB, free: 13.47 MB / 394.7 MB Notification: Performance of sort global known variables: time 8.06e-07/0.6192, allocations: 0 / 477.1 MB, free: 13.47 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001485/0.6207, allocations: 363.9 kB / 477.5 MB, free: 13.11 MB / 394.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.0006019/0.6213, allocations: 371.4 kB / 477.9 MB, free: 12.75 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.002195/0.6235, allocations: 0.9946 MB / 478.9 MB, free: 11.71 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 7.109e-06/0.6236, allocations: 4 kB / 478.9 MB, free: 11.71 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001077/0.6247, allocations: 0.4974 MB / 479.4 MB, free: 11.19 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00152/0.6262, allocations: 305.7 kB / 479.7 MB, free: 10.89 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003828/0.63, allocations: 1.618 MB / 481.3 MB, free: 9.219 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009937/0.6311, allocations: 1.113 MB / 482.4 MB, free: 8.07 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0007577/0.6318, allocations: 145.8 kB / 482.5 MB, free: 7.926 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002504/0.6321, allocations: 75.44 kB / 482.6 MB, free: 7.852 MB / 394.7 MB Notification: Performance of SimCode: time 1.477e-06/0.6321, allocations: 0 / 482.6 MB, free: 7.852 MB / 394.7 MB Notification: Performance of Templates: time 0.04707/0.6792, allocations: 19.04 MB / 0.4899 GB, free: 4.863 MB / 410.7 MB