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.77/1.77, allocations: 194.9 MB / 208.4 MB, free: 3.164 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.481e-05/2.531e-05, allocations: 2.156 kB / 255.4 MB, free: 3.176 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07661/0.07665, allocations: 44.51 MB / 299.9 MB, free: 6.617 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3514/0.4281, allocations: 94.39 MB / 394.3 MB, free: 18.86 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002318/0.4283, allocations: 82.95 kB / 394.3 MB, free: 18.86 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1095/0.5378, allocations: 30.27 MB / 424.6 MB, free: 8.309 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.472e-06/0.5379, allocations: 7.938 kB / 424.6 MB, free: 8.301 MB / 314.7 MB Notification: Performance of Transformations before backend: time 8.894e-05/0.538, allocations: 23.19 kB / 424.6 MB, free: 8.301 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.00283/0.5408, allocations: 1.354 MB / 426 MB, free: 7.363 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.092e-05/0.5409, allocations: 7.719 kB / 426 MB, free: 7.363 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009434/0.5418, allocations: 200.5 kB / 426.2 MB, free: 7.27 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00188/0.5437, allocations: 0.8285 MB / 427 MB, free: 6.809 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001519/0.5439, allocations: 114.9 kB / 427.1 MB, free: 6.77 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001859/0.5441, allocations: 113.9 kB / 427.2 MB, free: 6.766 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002069/0.5462, allocations: 1.071 MB / 428.3 MB, free: 6.402 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.637e-05/0.5463, allocations: 3.938 kB / 428.3 MB, free: 6.398 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001293/0.5464, allocations: 46.75 kB / 428.4 MB, free: 6.398 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.401e-05/0.5464, allocations: 30.52 kB / 428.4 MB, free: 6.395 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001704/0.5482, allocations: 0.6763 MB / 429.1 MB, free: 6.367 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00687/0.555, allocations: 3.93 MB / 433 MB, free: 4.113 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001606/0.5567, allocations: 0.5361 MB / 433.5 MB, free: 4.039 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004668/0.5572, allocations: 245.1 kB / 433.8 MB, free: 4.02 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.233e-05/0.5572, allocations: 12.36 kB / 433.8 MB, free: 4.016 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005805/0.5578, allocations: 269.7 kB / 434.1 MB, free: 3.926 MB / 314.7 MB Notification: Performance of pre-optimization done (n=63): time 4.579e-06/0.5579, allocations: 0 / 434.1 MB, free: 3.926 MB / 314.7 MB Notification: Performance of matching and sorting (n=66): time 0.003205/0.5611, allocations: 1.481 MB / 435.5 MB, free: 2.773 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001027/0.5612, allocations: 475.2 kB / 436 MB, free: 2.199 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001493/0.5627, allocations: 0.9106 MB / 436.9 MB, free: 1.516 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 7.067e-05/0.5628, allocations: 44.7 kB / 437 MB, free: 1.477 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003904/0.5632, allocations: 0.6234 MB / 437.6 MB, free: 1.035 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001984/0.5634, allocations: 240.4 kB / 437.8 MB, free: 0.832 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.732e-05/0.5635, allocations: 22.5 kB / 437.8 MB, free: 0.8242 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 8.328e-05/0.5636, allocations: 349.2 kB / 438.2 MB, free: 0.4922 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005157/0.5641, allocations: 215.9 kB / 438.4 MB, free: 368 kB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008828/0.565, allocations: 0.6701 MB / 439.1 MB, free: 15.6 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000792/0.5658, allocations: 388.6 kB / 439.4 MB, free: 15.3 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.967e-06/0.5659, allocations: 4 kB / 439.4 MB, free: 15.3 MB / 330.7 MB Notification: Performance of matching and sorting (n=130) (initialization): time 0.002351/0.5682, allocations: 0.9774 MB / 440.4 MB, free: 14.52 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.326e-05/0.5683, allocations: 67.44 kB / 440.5 MB, free: 14.44 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.524e-05/0.5684, allocations: 12 kB / 440.5 MB, free: 14.43 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007463/0.5691, allocations: 167.6 kB / 440.7 MB, free: 14.29 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001095/0.5702, allocations: 223 kB / 440.9 MB, free: 14.07 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005231/0.5755, allocations: 3.533 MB / 444.4 MB, free: 10.72 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001324/0.5768, allocations: 77.48 kB / 444.5 MB, free: 10.66 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001093/0.577, allocations: 53.55 kB / 444.5 MB, free: 10.62 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: 1 {(1,100.0%) 1} * Non-linear torn systems: 1 {6 9} Notification: Performance of prepare postOptimizeDAE: time 0.000272/0.5773, allocations: 182.2 kB / 444.7 MB, free: 10.46 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002155/0.5775, allocations: 118.6 kB / 444.8 MB, free: 10.34 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00178/0.5793, allocations: 0.6574 MB / 445.5 MB, free: 9.875 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.146e-05/0.5793, allocations: 8 kB / 445.5 MB, free: 9.867 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.848e-06/0.5793, allocations: 4 kB / 445.5 MB, free: 9.863 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001438/0.5808, allocations: 0.8908 MB / 446.4 MB, free: 9.004 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003942/0.5847, allocations: 1.714 MB / 448.1 MB, free: 7.348 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.989e-06/0.5848, allocations: 4 kB / 448.1 MB, free: 7.344 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006966/0.5855, allocations: 120 kB / 448.2 MB, free: 7.227 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005989/0.5861, allocations: 129.6 kB / 448.4 MB, free: 7.094 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.895e-05/0.5862, allocations: 12 kB / 448.4 MB, free: 7.082 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004451/0.5906, allocations: 3.271 MB / 451.6 MB, free: 3.543 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.889e-06/0.5907, allocations: 3.938 kB / 451.6 MB, free: 3.539 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002396/0.5931, allocations: 1.082 MB / 452.7 MB, free: 2.379 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006904/0.5938, allocations: 251.6 kB / 453 MB, free: 2.113 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002105/0.594, allocations: 20 kB / 453 MB, free: 2.094 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007786/0.5948, allocations: 43.88 kB / 453 MB, free: 2.051 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001762/0.595, allocations: 64.41 kB / 453.1 MB, free: 1.988 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.384e-05/0.5951, allocations: 24.12 kB / 453.1 MB, free: 1.965 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.001487/0.5966, allocations: 0.6865 MB / 453.8 MB, free: 1.27 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.157e-06/0.5966, allocations: 0 / 453.8 MB, free: 1.27 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001953/0.5986, allocations: 352.1 kB / 454.1 MB, free: 0.9258 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.0006694/0.5993, allocations: 358.2 kB / 454.5 MB, free: 0.5703 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.002378/0.6017, allocations: 0.9985 MB / 455.5 MB, free: 15.53 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 8.84e-06/0.6017, allocations: 4 kB / 455.5 MB, free: 15.52 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001056/0.6028, allocations: 0.4935 MB / 456 MB, free: 15.01 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001762/0.6045, allocations: 297.5 kB / 456.3 MB, free: 14.72 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004165/0.6087, allocations: 1.632 MB / 457.9 MB, free: 13.03 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001002/0.6098, allocations: 1.105 MB / 459 MB, free: 11.89 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003628/0.6101, allocations: 87.36 kB / 459.1 MB, free: 11.81 MB / 346.7 MB Notification: Performance of SimCode: time 2.244e-06/0.6102, allocations: 0 / 459.1 MB, free: 11.81 MB / 346.7 MB Notification: Performance of Templates: time 0.04221/0.6524, allocations: 25.61 MB / 484.7 MB, free: 2.215 MB / 362.7 MB