Running command: translateModel(Modelica.Mechanics.Rotational.Examples.HeatLosses,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.HeatLosses") Notification: Performance of loadModel(Modelica): time 2.071/2.071, allocations: 225.8 MB / 239.3 MB, free: 11.19 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.067e-05/3.079e-05, allocations: 4 kB / 292.1 MB, free: 8.828 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0918/0.09185, allocations: 50.41 MB / 342.5 MB, free: 6.398 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3737/0.4656, allocations: 89.14 MB / 431.7 MB, free: 5.113 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002244/0.4658, allocations: 70.64 kB / 431.8 MB, free: 5.078 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.09989/0.5658, allocations: 23.33 MB / 455.1 MB, free: 1.141 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.984e-06/0.5658, allocations: 0 / 455.1 MB, free: 1.141 MB / 362.7 MB Notification: Performance of Transformations before backend: time 5.128e-05/0.5659, allocations: 20 kB / 455.1 MB, free: 1.121 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: 243 * Number of variables: 243 Notification: Performance of Generate backend data structure: time 0.003801/0.5697, allocations: 1.266 MB / 456.4 MB, free: 15.87 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.525e-05/0.5698, allocations: 12.03 kB / 456.4 MB, free: 15.86 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008198/0.5706, allocations: 138.5 kB / 456.5 MB, free: 15.72 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001321/0.5719, allocations: 0.5316 MB / 457 MB, free: 15.23 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004257/0.5724, allocations: 194.9 kB / 457.2 MB, free: 15.06 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002903/0.5727, allocations: 113.5 kB / 457.3 MB, free: 14.98 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002808/0.5755, allocations: 1.131 MB / 458.5 MB, free: 14.2 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.279e-05/0.5756, allocations: 18.44 kB / 458.5 MB, free: 14.18 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001576/0.5758, allocations: 37 kB / 458.5 MB, free: 14.17 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.257e-05/0.5758, allocations: 24 kB / 458.6 MB, free: 14.15 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002971/0.5788, allocations: 1.131 MB / 459.7 MB, free: 13.36 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01022/0.5891, allocations: 3.701 MB / 463.4 MB, free: 9.945 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002347/0.5915, allocations: 0.929 MB / 464.3 MB, free: 9.008 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00149/0.593, allocations: 0.5905 MB / 464.9 MB, free: 8.414 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001322/0.5931, allocations: 21.3 kB / 464.9 MB, free: 8.391 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.66e-05/0.5932, allocations: 43.88 kB / 465 MB, free: 8.34 MB / 378.7 MB Notification: Performance of pre-optimization done (n=135): time 5.163e-06/0.5932, allocations: 0 / 465 MB, free: 8.34 MB / 378.7 MB Notification: Performance of matching and sorting (n=147): time 0.01081/0.604, allocations: 3.74 MB / 468.7 MB, free: 4.535 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.129e-05/0.6041, allocations: 90.42 kB / 468.8 MB, free: 4.426 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000858/0.605, allocations: 444.7 kB / 469.2 MB, free: 3.988 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002821/0.6053, allocations: 69.69 kB / 469.3 MB, free: 3.914 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003291/0.6057, allocations: 348.1 kB / 469.6 MB, free: 3.57 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006435/0.6063, allocations: 0.4969 MB / 470.1 MB, free: 3.066 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001349/0.6065, allocations: 31.98 kB / 470.2 MB, free: 3.035 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0002207/0.6067, allocations: 362.8 kB / 470.5 MB, free: 2.672 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001432/0.6082, allocations: 0.5156 MB / 471 MB, free: 2.156 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001612/0.6098, allocations: 0.6452 MB / 471.7 MB, free: 1.488 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001308/0.6111, allocations: 453.8 kB / 472.1 MB, free: 1.051 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.031e-06/0.6111, allocations: 8.031 kB / 472.1 MB, free: 1.043 MB / 378.7 MB Notification: Performance of matching and sorting (n=179) (initialization): time 0.004636/0.6158, allocations: 1.607 MB / 473.7 MB, free: 15.42 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.272e-05/0.6159, allocations: 8 kB / 473.7 MB, free: 15.41 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.545e-05/0.6159, allocations: 16.17 kB / 473.8 MB, free: 15.4 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002396/0.6183, allocations: 0.7784 MB / 474.5 MB, free: 14.61 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001509/0.6199, allocations: 251.7 kB / 474.8 MB, free: 14.37 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003317/0.6232, allocations: 1.868 MB / 476.7 MB, free: 12.45 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001676/0.6249, allocations: 211.9 kB / 476.9 MB, free: 12.24 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002254/0.6252, allocations: 59.97 kB / 476.9 MB, free: 12.18 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 37 ($PRE.bearingFriction.startForward,bearingFriction.startForward,$PRE.bearingFriction.startBackward,bearingFriction.startBackward,bearingFriction.locked,$PRE.bearingFriction.mode,bearingFriction.mode,lossyGear.tau_aPos,lossyGear.startForward,lossyGear.startBackward,lossyGear.locked,$PRE.lossyGear.mode,lossyGear.mode,clutch.free,$PRE.clutch.startForward,clutch.startForward,$PRE.clutch.startBackward,clutch.startBackward,clutch.locked,$PRE.clutch.mode,clutch.mode,$PRE.oneWayClutch.startForward,oneWayClutch.startForward,oneWayClutch.locked,$PRE.oneWayClutch.stuck,oneWayClutch.stuck,oneWayClutch.free,brake.free,$PRE.brake.startForward,brake.startForward,$PRE.brake.startBackward,brake.startBackward,brake.locked,$PRE.brake.mode,brake.mode,lossyGear.ideal,bearingFriction.free) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (129): * Single equations (assignments): 123 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * 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: 0 * Non-linear torn systems: 2 {4 40,1 7} Notification: Performance of prepare postOptimizeDAE: time 0.0004669/0.6256, allocations: 188 kB / 477.1 MB, free: 11.99 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003061/0.626, allocations: 94.95 kB / 477.2 MB, free: 11.89 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004662/0.6306, allocations: 1.777 MB / 479 MB, free: 10.09 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.472e-05/0.6307, allocations: 16 kB / 479 MB, free: 10.07 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.676e-06/0.6307, allocations: 0 / 479 MB, free: 10.07 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.149e-05/0.6308, allocations: 3.984 kB / 479 MB, free: 10.07 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008484/0.6393, allocations: 3.037 MB / 482 MB, free: 6.945 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.108e-05/0.6393, allocations: 0 / 482 MB, free: 6.945 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001654/0.641, allocations: 259.8 kB / 482.3 MB, free: 6.691 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00236/0.6434, allocations: 0.7351 MB / 483 MB, free: 5.949 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002696/0.6437, allocations: 59.92 kB / 483.1 MB, free: 5.891 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003105/0.6468, allocations: 1.796 MB / 484.9 MB, free: 4.039 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.683e-06/0.6468, allocations: 0 / 484.9 MB, free: 4.039 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005904/0.6527, allocations: 2.266 MB / 487.1 MB, free: 1.715 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000912/0.6537, allocations: 291.9 kB / 487.4 MB, free: 1.41 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002848/0.654, allocations: 39.95 kB / 487.5 MB, free: 1.371 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001492/0.6555, allocations: 223.7 kB / 487.7 MB, free: 1.152 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006127/0.6561, allocations: 224.8 kB / 487.9 MB, free: 0.9297 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001953/0.6564, allocations: 67.94 kB / 488 MB, free: 0.8633 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0006417/0.657, allocations: 357.5 kB / 488.3 MB, free: 0.5156 MB / 394.7 MB Notification: Performance of sort global known variables: time 8.47e-07/0.657, allocations: 0 / 488.3 MB, free: 0.5156 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001324/0.6584, allocations: 316 kB / 488.6 MB, free: 212 kB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 12 (damper.phi_rel,damper.w_rel,springDamper.phi_rel,springDamper.w_rel,elastoBacklash.phi_rel,elastoBacklash.w_rel,inertia4.w,lossyGear.phi_a,clutch.phi_rel,clutch.w_rel,oneWayClutch.phi_rel,oneWayClutch.w_rel) * Number of discrete variables: 23 (bearingFriction.startForward,bearingFriction.startBackward,bearingFriction.locked,bearingFriction.mode,lossyGear.tau_aPos,lossyGear.startForward,lossyGear.startBackward,lossyGear.locked,lossyGear.mode,clutch.free,clutch.startForward,clutch.startBackward,clutch.locked,clutch.mode,oneWayClutch.startForward,oneWayClutch.locked,oneWayClutch.stuck,oneWayClutch.free,brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode) * Number of discrete states: 12 (lossyGear.mode,brake.mode,brake.startForward,clutch.mode,clutch.startForward,clutch.startBackward,oneWayClutch.stuck,oneWayClutch.startForward,brake.startBackward,bearingFriction.mode,bearingFriction.startForward,bearingFriction.startBackward) * Top-level inputs: 0 Notification: Strong component statistics for simulation (96): * Single equations (assignments): 94 * Array equations: 0 * Algorithm blocks: 0 * 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: 0 * Non-linear torn systems: 2 {1 6,4 38} Notification: Performance of Backend phase and start with SimCode phase: time 0.0004929/0.6589, allocations: 213.6 kB / 488.8 MB, free: 16 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.00375/0.6626, allocations: 1.403 MB / 490.2 MB, free: 14.57 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 6.499e-06/0.6627, allocations: 0 / 490.2 MB, free: 14.57 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002293/0.665, allocations: 0.7516 MB / 491 MB, free: 13.82 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001199/0.6662, allocations: 138.5 kB / 491.1 MB, free: 13.68 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01049/0.6768, allocations: 2.972 MB / 494.1 MB, free: 10.66 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009473/0.6777, allocations: 1.047 MB / 495.1 MB, free: 9.59 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005988/0.6784, allocations: 91.39 kB / 495.2 MB, free: 9.5 MB / 410.7 MB Notification: Performance of SimCode: time 1.856e-06/0.6784, allocations: 0 / 495.2 MB, free: 9.5 MB / 410.7 MB Notification: Performance of Templates: time 0.03407/0.7125, allocations: 18.75 MB / 0.5019 GB, free: 6.73 MB / 426.7 MB