Running command: translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling,tolerance=1e-06,outputFormat="empty",numberOfIntervals=500000,variableFilter="",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling") Notification: Performance of loadModel(Modelica): time 1.961/1.961, allocations: 225.8 MB / 239.3 MB, free: 11.2 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.464e-05/2.476e-05, allocations: 0 / 292.1 MB, free: 8.84 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08826/0.08831, allocations: 50.42 MB / 342.6 MB, free: 6.406 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3784/0.4667, allocations: 100 MB / 442.6 MB, free: 10.39 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002388/0.467, allocations: 83.14 kB / 442.7 MB, free: 10.35 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1598/0.6268, allocations: 30.64 MB / 473.3 MB, free: 200 kB / 378.7 MB Notification: Performance of FrontEnd: time 2.576e-06/0.6269, allocations: 0 / 473.3 MB, free: 200 kB / 378.7 MB Notification: Performance of Transformations before backend: time 9.884e-05/0.627, allocations: 31.94 kB / 473.3 MB, free: 168 kB / 378.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.003025/0.63, allocations: 1.364 MB / 474.7 MB, free: 14.74 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.806e-05/0.6301, allocations: 12.03 kB / 474.7 MB, free: 14.73 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000784/0.6309, allocations: 198.1 kB / 474.9 MB, free: 14.53 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002188/0.6331, allocations: 0.84 MB / 475.7 MB, free: 13.65 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002042/0.6333, allocations: 119.8 kB / 475.9 MB, free: 13.52 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002477/0.6336, allocations: 111.9 kB / 476 MB, free: 13.41 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002564/0.6362, allocations: 1.077 MB / 477 MB, free: 12.25 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.351e-05/0.6362, allocations: 0 / 477 MB, free: 12.25 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001444/0.6364, allocations: 48 kB / 477.1 MB, free: 12.2 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.957e-05/0.6364, allocations: 24 kB / 477.1 MB, free: 12.18 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001867/0.6383, allocations: 0.6796 MB / 477.8 MB, free: 11.5 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008215/0.6465, allocations: 3.942 MB / 481.7 MB, free: 7.359 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001813/0.6484, allocations: 0.5375 MB / 482.3 MB, free: 6.805 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000563/0.649, allocations: 251.9 kB / 482.5 MB, free: 6.559 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.648e-05/0.649, allocations: 8.562 kB / 482.5 MB, free: 6.551 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006453/0.6497, allocations: 262 kB / 482.8 MB, free: 6.285 MB / 394.7 MB Notification: Performance of pre-optimization done (n=63): time 4.246e-06/0.6497, allocations: 0 / 482.8 MB, free: 6.285 MB / 394.7 MB Notification: Performance of matching and sorting (n=66): time 0.003804/0.6535, allocations: 1.501 MB / 484.3 MB, free: 4.73 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002985/0.6539, allocations: 475.2 kB / 484.8 MB, free: 4.152 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001946/0.6558, allocations: 0.921 MB / 485.7 MB, free: 3.219 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001181/0.656, allocations: 45.7 kB / 485.7 MB, free: 3.168 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006289/0.6566, allocations: 0.6293 MB / 486.3 MB, free: 2.531 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002857/0.6569, allocations: 240.6 kB / 486.6 MB, free: 2.293 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.248e-05/0.657, allocations: 20 kB / 486.6 MB, free: 2.273 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001942/0.6572, allocations: 354.8 kB / 486.9 MB, free: 1.918 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005867/0.6578, allocations: 218.6 kB / 487.2 MB, free: 1.707 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001029/0.6588, allocations: 0.6756 MB / 487.8 MB, free: 0.8203 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008269/0.6597, allocations: 375.4 kB / 488.2 MB, free: 452 kB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.051e-05/0.6597, allocations: 4 kB / 488.2 MB, free: 448 kB / 394.7 MB Notification: Performance of matching and sorting (n=130) (initialization): time 0.002459/0.6622, allocations: 0.9857 MB / 489.2 MB, free: 15.43 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.356e-05/0.6623, allocations: 63.41 kB / 489.3 MB, free: 15.36 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.252e-05/0.6623, allocations: 16.03 kB / 489.3 MB, free: 15.34 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007418/0.6631, allocations: 161.6 kB / 489.4 MB, free: 15.18 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000942/0.664, allocations: 219.7 kB / 489.6 MB, free: 14.96 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005384/0.6694, allocations: 3.53 MB / 493.2 MB, free: 11.16 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001261/0.6707, allocations: 76.02 kB / 493.2 MB, free: 11.09 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001143/0.6709, allocations: 52 kB / 493.3 MB, free: 11.04 MB / 410.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.0002788/0.6712, allocations: 176.8 kB / 493.5 MB, free: 10.86 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002238/0.6714, allocations: 126.5 kB / 493.6 MB, free: 10.73 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001784/0.6732, allocations: 0.6571 MB / 494.3 MB, free: 10.06 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.272e-05/0.6732, allocations: 8 kB / 494.3 MB, free: 10.05 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.509e-06/0.6732, allocations: 3.938 kB / 494.3 MB, free: 10.05 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001492/0.6747, allocations: 0.8905 MB / 495.2 MB, free: 9.043 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003743/0.6785, allocations: 1.735 MB / 496.9 MB, free: 7.227 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.315e-06/0.6785, allocations: 4 kB / 496.9 MB, free: 7.223 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006847/0.6792, allocations: 115.8 kB / 497 MB, free: 7.109 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005717/0.6798, allocations: 125.9 kB / 497.1 MB, free: 6.98 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.951e-05/0.6799, allocations: 16.12 kB / 497.1 MB, free: 6.965 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004439/0.6843, allocations: 3.256 MB / 0.4887 GB, free: 3.441 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.148e-06/0.6844, allocations: 8.094 kB / 0.4887 GB, free: 3.434 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00229/0.6867, allocations: 1.099 MB / 0.4898 GB, free: 2.258 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006098/0.6873, allocations: 251.6 kB / 0.49 GB, free: 1.992 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002041/0.6875, allocations: 19.98 kB / 0.49 GB, free: 1.973 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007672/0.6883, allocations: 43.97 kB / 0.4901 GB, free: 1.93 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001649/0.6885, allocations: 64.38 kB / 0.4901 GB, free: 1.867 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.08e-05/0.6886, allocations: 20 kB / 0.4901 GB, free: 1.848 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001404/0.69, allocations: 0.6952 MB / 0.4908 GB, free: 1.145 MB / 410.7 MB Notification: Performance of sort global known variables: time 8.86e-07/0.69, allocations: 0 / 0.4908 GB, free: 1.145 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001551/0.6916, allocations: 360 kB / 0.4912 GB, free: 0.793 MB / 410.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.0006281/0.6922, allocations: 379.4 kB / 0.4915 GB, free: 432 kB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.002247/0.6945, allocations: 0.9953 MB / 0.4925 GB, free: 15.38 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 7.457e-06/0.6945, allocations: 8.062 kB / 0.4925 GB, free: 15.37 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001048/0.6956, allocations: 497.4 kB / 0.493 GB, free: 14.87 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001632/0.6972, allocations: 300.9 kB / 0.4933 GB, free: 14.57 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003964/0.7012, allocations: 1.651 MB / 0.4949 GB, free: 12.87 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009953/0.7022, allocations: 1.116 MB / 0.496 GB, free: 11.72 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003251/0.7026, allocations: 87.38 kB / 0.496 GB, free: 11.63 MB / 426.7 MB Notification: Performance of SimCode: time 1.708e-06/0.7026, allocations: 0 / 0.496 GB, free: 11.63 MB / 426.7 MB Notification: Performance of Templates: time 0.04171/0.7443, allocations: 25.88 MB / 0.5213 GB, free: 1.84 MB / 442.7 MB