Running command: translateModel(Modelica.Mechanics.Translational.Examples.HeatLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4000,variableFilter="time|damper.s_rel|damper.v_rel|massWithStopAndFriction.s|massWithStopAndFriction.v|springDamper.s_rel|springDamper.v_rel|springDamper1.s_rel|springDamper1.v_rel|brake.mode|brake.startBackward|brake.startForward|massWithStopAndFriction.mode|massWithStopAndFriction.startBackward|massWithStopAndFriction.startForward|supportFriction.mode|supportFriction.startBackward|supportFriction.startForward",fileNamePrefix="Modelica_3.2.1_cpp_Modelica.Mechanics.Translational.Examples.HeatLosses") Notification: Performance of loadModel(Modelica): time 1.604/1.604, allocations: 171.2 MB / 183.8 MB, free: 12.07 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.079e-05/3.092e-05, allocations: 0 / 225 MB, free: 2.832 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.215/0.2151, allocations: 38.78 MB / 263.8 MB, free: 9.875 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1138/0.3289, allocations: 73.64 MB / 337.4 MB, free: 124 kB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002431/0.3292, allocations: 71.95 kB / 337.5 MB, free: 52 kB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06407/0.3933, allocations: 14.66 MB / 352.1 MB, free: 1.301 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.548e-06/0.3934, allocations: 0 / 352.1 MB, free: 1.301 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.997e-05/0.3934, allocations: 16 kB / 352.2 MB, free: 1.285 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 169 * Number of variables: 169 Notification: Performance of Generate backend data structure: time 0.00303/0.3965, allocations: 1.084 MB / 353.2 MB, free: 160 kB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.457e-05/0.3965, allocations: 12.03 kB / 353.3 MB, free: 148 kB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000309/0.3969, allocations: 91.27 kB / 353.3 MB, free: 56 kB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008589/0.3977, allocations: 419.1 kB / 353.8 MB, free: 15.61 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.399e-05/0.3978, allocations: 50 kB / 353.8 MB, free: 15.55 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001891/0.398, allocations: 75.91 kB / 353.9 MB, free: 15.48 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001847/0.3999, allocations: 0.7258 MB / 354.6 MB, free: 14.75 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.922e-05/0.4, allocations: 8 kB / 354.6 MB, free: 14.74 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001177/0.4001, allocations: 24 kB / 354.6 MB, free: 14.72 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.54e-05/0.4001, allocations: 16 kB / 354.6 MB, free: 14.7 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002014/0.4021, allocations: 0.7458 MB / 355.4 MB, free: 13.96 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006027/0.4082, allocations: 2.455 MB / 357.8 MB, free: 11.38 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001608/0.4098, allocations: 0.635 MB / 358.5 MB, free: 10.73 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009617/0.4108, allocations: 415.8 kB / 358.9 MB, free: 10.32 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.703e-05/0.411, allocations: 12.77 kB / 358.9 MB, free: 10.3 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001196/0.4122, allocations: 0.4887 MB / 359.4 MB, free: 9.809 MB / 314.7 MB Notification: Performance of pre-optimization done (n=86): time 4.953e-06/0.4122, allocations: 4 kB / 359.4 MB, free: 9.805 MB / 314.7 MB Notification: Performance of matching and sorting (n=106): time 0.009105/0.4213, allocations: 3.081 MB / 362.5 MB, free: 6.641 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.987e-05/0.4214, allocations: 64.41 kB / 362.5 MB, free: 6.566 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005767/0.422, allocations: 331.1 kB / 362.9 MB, free: 6.242 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001495/0.4222, allocations: 57.7 kB / 362.9 MB, free: 6.18 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002635/0.4224, allocations: 315.5 kB / 363.2 MB, free: 5.867 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004196/0.4229, allocations: 366.8 kB / 363.6 MB, free: 5.504 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.399e-05/0.423, allocations: 24 kB / 363.6 MB, free: 5.48 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0002048/0.4232, allocations: 350.8 kB / 364 MB, free: 5.129 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009872/0.4242, allocations: 374.6 kB / 364.3 MB, free: 4.762 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001111/0.4253, allocations: 476.8 kB / 364.8 MB, free: 4.281 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008675/0.4262, allocations: 320.9 kB / 365.1 MB, free: 3.969 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.384e-06/0.4262, allocations: 0 / 365.1 MB, free: 3.969 MB / 314.7 MB Notification: Performance of matching and sorting (n=134) (initialization): time 0.003824/0.4301, allocations: 1.316 MB / 366.4 MB, free: 2.637 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.465e-05/0.4301, allocations: 8 kB / 366.4 MB, free: 2.629 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.272e-05/0.4301, allocations: 0 / 366.4 MB, free: 2.629 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001673/0.4318, allocations: 0.666 MB / 367.1 MB, free: 1.953 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001132/0.433, allocations: 215.7 kB / 367.3 MB, free: 1.742 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1909/0.6239, allocations: 3.274 MB / 370.6 MB, free: 87.11 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002899/0.6269, allocations: 242.4 kB / 370.8 MB, free: 87.11 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002834/0.6272, allocations: 39.45 kB / 370.8 MB, free: 87.11 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 27 (supportFriction.free,$whenCondition1,elastoGap.contact,$PRE.supportFriction.startForward,supportFriction.startForward,$PRE.supportFriction.startBackward,supportFriction.startBackward,supportFriction.locked,$PRE.supportFriction.mode,supportFriction.mode,brake.free,$PRE.brake.startForward,brake.startForward,$PRE.brake.startBackward,brake.startBackward,brake.locked,$PRE.brake.mode,brake.mode,massWithStopAndFriction.free,$PRE.massWithStopAndFriction.startForward,massWithStopAndFriction.startForward,$PRE.massWithStopAndFriction.startBackward,massWithStopAndFriction.startBackward,massWithStopAndFriction.locked,$PRE.massWithStopAndFriction.mode,massWithStopAndFriction.mode,massWithStopAndFriction.stopped) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (115): * Single equations (assignments): 112 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {1 7,1 5,1 7} Notification: Performance of prepare postOptimizeDAE: time 0.0004731/0.6277, allocations: 169 kB / 371 MB, free: 87 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003456/0.628, allocations: 73.42 kB / 371.1 MB, free: 87 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003769/0.6284, allocations: 103.8 kB / 371.2 MB, free: 86.99 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.758e-05/0.6285, allocations: 11 kB / 371.2 MB, free: 86.99 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.042e-05/0.6285, allocations: 0.5 kB / 371.2 MB, free: 86.99 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.773e-05/0.6286, allocations: 14.14 kB / 371.2 MB, free: 86.99 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009277/0.6379, allocations: 2.495 MB / 373.7 MB, free: 86.48 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.919e-05/0.6379, allocations: 2.531 kB / 373.7 MB, free: 86.48 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001826/0.6398, allocations: 189.9 kB / 373.9 MB, free: 86.48 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002257/0.6421, allocations: 0.6339 MB / 374.5 MB, free: 86.46 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002902/0.6424, allocations: 41.44 kB / 374.6 MB, free: 86.45 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006062/0.6485, allocations: 3.104 MB / 377.7 MB, free: 84.18 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.883e-06/0.6486, allocations: 5.641 kB / 377.7 MB, free: 84.18 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006836/0.6554, allocations: 1.862 MB / 379.5 MB, free: 83.79 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007993/0.6563, allocations: 233 kB / 379.8 MB, free: 83.65 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002989/0.6566, allocations: 38.05 kB / 379.8 MB, free: 83.63 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002718/0.6593, allocations: 255.5 kB / 380.1 MB, free: 83.61 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002051/0.6614, allocations: 426 kB / 380.5 MB, free: 83.55 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002798/0.6617, allocations: 44.83 kB / 380.5 MB, free: 83.54 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0005566/0.6623, allocations: 261.9 kB / 380.8 MB, free: 83.41 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.376e-06/0.6623, allocations: 0 / 380.8 MB, free: 83.41 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001849/0.6642, allocations: 255.2 kB / 381 MB, free: 83.38 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 8 (springDamper.s_rel,springDamper.v_rel,elastoGap.s_rel,elastoGap.v_rel,massWithStopAndFriction.s,massWithStopAndFriction.v,springDamper1.s_rel,springDamper1.v_rel) * Number of discrete variables: 17 ($whenCondition1,elastoGap.contact,supportFriction.startForward,supportFriction.startBackward,supportFriction.locked,supportFriction.mode,brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode,massWithStopAndFriction.free,massWithStopAndFriction.startForward,massWithStopAndFriction.startBackward,massWithStopAndFriction.locked,massWithStopAndFriction.mode,massWithStopAndFriction.stopped) * Number of discrete states: 9 (massWithStopAndFriction.mode,massWithStopAndFriction.startBackward,massWithStopAndFriction.startForward,brake.mode,brake.startForward,brake.startBackward,supportFriction.mode,supportFriction.startForward,supportFriction.startBackward) * Top-level inputs: 0 Notification: Strong component statistics for simulation (89): * Single equations (assignments): 86 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {1 6,1 6,1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.0004654/0.6647, allocations: 173.2 kB / 381.2 MB, free: 83.27 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002336/0.6671, allocations: 1.034 MB / 382.2 MB, free: 82.84 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 5.607e-06/0.6671, allocations: 1.969 kB / 382.2 MB, free: 82.84 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001496/0.6686, allocations: 0.648 MB / 382.9 MB, free: 82.54 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008758/0.6695, allocations: 108 kB / 383 MB, free: 82.5 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004944/0.6745, allocations: 1.803 MB / 384.8 MB, free: 81.61 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004511/0.675, allocations: 0.9465 MB / 385.7 MB, free: 80.9 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000373/0.6754, allocations: 61.31 kB / 385.8 MB, free: 80.89 MB / 314.7 MB Notification: Performance of SimCode: time 1.706e-06/0.6754, allocations: 0 / 385.8 MB, free: 80.89 MB / 314.7 MB Notification: Performance of Templates: time 0.02146/0.6968, allocations: 16.28 MB / 402.1 MB, free: 68.16 MB / 314.7 MB