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 2.005/2.005, allocations: 195 MB / 203.2 MB, free: 13.79 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 1.565e-05/1.573e-05, allocations: 0 / 249.6 MB, free: 15.28 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2436/0.2436, allocations: 44.5 MB / 294.1 MB, free: 14.32 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1412/0.3849, allocations: 93.74 MB / 387.9 MB, free: 4.207 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002753/0.3852, allocations: 79.95 kB / 387.9 MB, free: 4.129 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1214/0.5066, allocations: 29.86 MB / 417.8 MB, free: 6.086 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.245e-06/0.5067, allocations: 0 / 417.8 MB, free: 6.086 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0001045/0.5068, allocations: 28 kB / 417.8 MB, free: 6.059 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: 271 * Number of variables: 271 Notification: Performance of Generate backend data structure: time 0.003392/0.5102, allocations: 1.348 MB / 419.2 MB, free: 4.648 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.207e-05/0.5103, allocations: 8.031 kB / 419.2 MB, free: 4.641 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008875/0.5112, allocations: 202.4 kB / 419.4 MB, free: 4.441 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002263/0.5134, allocations: 0.8322 MB / 420.2 MB, free: 3.562 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001666/0.5136, allocations: 75.84 kB / 420.3 MB, free: 3.48 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000199/0.5139, allocations: 75.89 kB / 420.4 MB, free: 3.406 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001836/0.5157, allocations: 0.6291 MB / 421 MB, free: 2.773 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002331/0.5181, allocations: 0.9334 MB / 421.9 MB, free: 1.754 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.84e-05/0.5181, allocations: 0 / 421.9 MB, free: 1.754 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001179/0.5183, allocations: 7.953 kB / 421.9 MB, free: 1.746 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.942e-05/0.5183, allocations: 24 kB / 421.9 MB, free: 1.723 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2142/0.7326, allocations: 3.7 MB / 425.6 MB, free: 93.15 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001641/0.7343, allocations: 0.5166 MB / 426.2 MB, free: 93.12 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004739/0.7348, allocations: 219.3 kB / 426.4 MB, free: 93.11 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.702e-05/0.7348, allocations: 16.83 kB / 426.4 MB, free: 93.11 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005491/0.7354, allocations: 249.5 kB / 426.6 MB, free: 93.06 MB / 362.7 MB Notification: Performance of pre-optimization done (n=63): time 5.199e-06/0.7354, allocations: 0 / 426.6 MB, free: 93.06 MB / 362.7 MB Notification: Performance of matching and sorting (n=66): time 0.003478/0.7389, allocations: 1.398 MB / 428 MB, free: 92.59 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001007/0.739, allocations: 487.1 kB / 428.5 MB, free: 92.03 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001323/0.7404, allocations: 0.7259 MB / 429.2 MB, free: 91.88 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 7.375e-05/0.7405, allocations: 27.98 kB / 429.3 MB, free: 91.85 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004354/0.7409, allocations: 0.6544 MB / 429.9 MB, free: 91.53 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001956/0.7411, allocations: 226.6 kB / 430.1 MB, free: 91.41 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.735e-05/0.7412, allocations: 1.344 kB / 430.1 MB, free: 91.41 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 8.566e-05/0.7413, allocations: 343.8 kB / 430.5 MB, free: 91.1 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005096/0.7418, allocations: 197.9 kB / 430.7 MB, free: 91.1 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007294/0.7425, allocations: 0.6468 MB / 431.3 MB, free: 90.56 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006489/0.7432, allocations: 302 kB / 431.6 MB, free: 90.55 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.173e-05/0.7432, allocations: 3.281 kB / 431.6 MB, free: 90.55 MB / 362.7 MB Notification: Performance of matching and sorting (n=130) (initialization): time 0.002303/0.7455, allocations: 0.8792 MB / 432.5 MB, free: 90.46 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.741e-05/0.7456, allocations: 64.94 kB / 432.6 MB, free: 90.4 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.354e-05/0.7457, allocations: 14.81 kB / 432.6 MB, free: 90.4 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008821/0.7466, allocations: 190.4 kB / 432.8 MB, free: 90.38 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009/0.7475, allocations: 212.3 kB / 433 MB, free: 90.38 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004359/0.7519, allocations: 3.42 MB / 436.4 MB, free: 87.89 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001258/0.7532, allocations: 52.38 kB / 436.4 MB, free: 87.89 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001114/0.7533, allocations: 45.53 kB / 436.5 MB, free: 87.89 MB / 362.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,(2,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002391/0.7535, allocations: 148.5 kB / 436.6 MB, free: 87.78 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001885/0.7537, allocations: 107.9 kB / 436.7 MB, free: 87.73 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00169/0.7555, allocations: 0.6228 MB / 437.4 MB, free: 87.64 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.286e-05/0.7555, allocations: 11.14 kB / 437.4 MB, free: 87.64 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.418e-06/0.7555, allocations: 4.875 kB / 437.4 MB, free: 87.64 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001309/0.7568, allocations: 0.8788 MB / 438.2 MB, free: 87.07 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00328/0.7601, allocations: 1.582 MB / 439.8 MB, free: 86.68 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.137e-05/0.7602, allocations: 3.406 kB / 439.8 MB, free: 86.68 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006318/0.7608, allocations: 115.2 kB / 439.9 MB, free: 86.68 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006233/0.7615, allocations: 125.7 kB / 440.1 MB, free: 86.66 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.316e-05/0.7615, allocations: 21.95 kB / 440.1 MB, free: 86.66 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003283/0.7648, allocations: 3.147 MB / 443.2 MB, free: 84.17 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.269e-06/0.7649, allocations: 6.656 kB / 443.2 MB, free: 84.17 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001945/0.7668, allocations: 1.029 MB / 444.3 MB, free: 83.77 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004939/0.7673, allocations: 232.1 kB / 444.5 MB, free: 83.63 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001682/0.7675, allocations: 3.969 kB / 444.5 MB, free: 83.63 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007529/0.7683, allocations: 42.98 kB / 444.5 MB, free: 83.62 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001524/0.7685, allocations: 63.98 kB / 444.6 MB, free: 83.62 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.909e-05/0.7685, allocations: 18.3 kB / 444.6 MB, free: 83.62 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0009415/0.7695, allocations: 0.5351 MB / 445.2 MB, free: 83.38 MB / 362.7 MB Notification: Performance of sort global known variables: time 9.31e-07/0.7695, allocations: 2.906 kB / 445.2 MB, free: 83.38 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001501/0.771, allocations: 291.5 kB / 445.4 MB, free: 83.38 MB / 362.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.0004669/0.7715, allocations: 318.2 kB / 445.8 MB, free: 83.26 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.002111/0.7736, allocations: 0.9625 MB / 446.7 MB, free: 82.7 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 5.133e-06/0.7736, allocations: 0 / 446.7 MB, free: 82.7 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008364/0.7745, allocations: 487.1 kB / 447.2 MB, free: 82.39 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001513/0.776, allocations: 255 kB / 447.4 MB, free: 82.32 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003447/0.7795, allocations: 1.596 MB / 449 MB, free: 81.5 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006118/0.7801, allocations: 1.103 MB / 450.1 MB, free: 80.78 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00029/0.7804, allocations: 77.41 kB / 450.2 MB, free: 80.77 MB / 362.7 MB Notification: Performance of SimCode: time 2.243e-06/0.7804, allocations: 0 / 450.2 MB, free: 80.77 MB / 362.7 MB Notification: Performance of Templates: time 0.03148/0.8119, allocations: 24.51 MB / 474.7 MB, free: 70.12 MB / 362.7 MB