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_Modelica.Mechanics.Translational.Examples.HeatLosses") Notification: Performance of loadModel(Modelica): time 1.638/1.638, allocations: 171.2 MB / 183.3 MB, free: 12.07 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.078e-05/3.091e-05, allocations: 4 kB / 225 MB, free: 2.336 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2097/0.2098, allocations: 38.77 MB / 263.8 MB, free: 9.824 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1127/0.3225, allocations: 73.65 MB / 337.4 MB, free: 56 kB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002508/0.3228, allocations: 75.89 kB / 337.5 MB, free: 15.98 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.09765/0.4204, allocations: 14.67 MB / 352.2 MB, free: 1.223 MB / 298.7 MB Notification: Performance of FrontEnd: time 3.59e-06/0.4205, allocations: 0 / 352.2 MB, free: 1.223 MB / 298.7 MB Notification: Performance of Transformations before backend: time 7.352e-05/0.4206, allocations: 16 kB / 352.2 MB, free: 1.207 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.006566/0.4272, allocations: 1.08 MB / 353.3 MB, free: 84 kB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.623e-05/0.4273, allocations: 12.03 kB / 353.3 MB, free: 72 kB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006729/0.428, allocations: 99.25 kB / 353.4 MB, free: 15.97 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001587/0.4296, allocations: 415.1 kB / 353.8 MB, free: 15.53 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000153/0.4298, allocations: 54 kB / 353.8 MB, free: 15.47 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003571/0.4302, allocations: 71.89 kB / 353.9 MB, free: 15.4 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003715/0.4339, allocations: 0.7297 MB / 354.6 MB, free: 14.67 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.092e-05/0.434, allocations: 4 kB / 354.6 MB, free: 14.66 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002454/0.4343, allocations: 28 kB / 354.7 MB, free: 14.64 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.569e-05/0.4343, allocations: 16 kB / 354.7 MB, free: 14.62 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004033/0.4384, allocations: 0.7419 MB / 355.4 MB, free: 13.88 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01163/0.4501, allocations: 2.451 MB / 357.9 MB, free: 11.3 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00308/0.4532, allocations: 0.6428 MB / 358.5 MB, free: 10.65 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001908/0.4552, allocations: 411.8 kB / 358.9 MB, free: 10.24 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000154/0.4553, allocations: 12.78 kB / 358.9 MB, free: 10.23 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002348/0.4577, allocations: 488.4 kB / 359.4 MB, free: 9.742 MB / 314.7 MB Notification: Performance of pre-optimization done (n=86): time 8.37e-06/0.4578, allocations: 4 kB / 359.4 MB, free: 9.738 MB / 314.7 MB Notification: Performance of matching and sorting (n=106): time 0.01756/0.4753, allocations: 3.096 MB / 362.5 MB, free: 6.562 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.028e-05/0.4755, allocations: 60.41 kB / 362.6 MB, free: 6.492 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001032/0.4765, allocations: 339.1 kB / 362.9 MB, free: 6.16 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000255/0.4768, allocations: 53.7 kB / 363 MB, free: 6.102 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004369/0.4773, allocations: 265 kB / 363.2 MB, free: 5.836 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007645/0.4781, allocations: 370.8 kB / 363.6 MB, free: 5.469 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001777/0.4783, allocations: 20 kB / 363.6 MB, free: 5.449 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0003799/0.4787, allocations: 378.8 kB / 364 MB, free: 5.07 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00201/0.4807, allocations: 378.6 kB / 364.3 MB, free: 4.699 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002215/0.483, allocations: 468.8 kB / 364.8 MB, free: 4.227 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001737/0.4847, allocations: 328.9 kB / 365.1 MB, free: 3.906 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.825e-06/0.4848, allocations: 0 / 365.1 MB, free: 3.906 MB / 314.7 MB Notification: Performance of matching and sorting (n=134) (initialization): time 0.007688/0.4925, allocations: 1.33 MB / 366.4 MB, free: 2.559 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.082e-05/0.4925, allocations: 4 kB / 366.4 MB, free: 2.555 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.682e-05/0.4926, allocations: 3.938 kB / 366.4 MB, free: 2.551 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002319/0.4949, allocations: 0.6622 MB / 367.1 MB, free: 1.879 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00114/0.4961, allocations: 215.7 kB / 367.3 MB, free: 1.668 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1856/0.6817, allocations: 3.276 MB / 370.6 MB, free: 87.16 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001654/0.6834, allocations: 242.3 kB / 370.8 MB, free: 87.16 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001645/0.6836, allocations: 43.91 kB / 370.9 MB, free: 87.16 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.0002982/0.6839, allocations: 162.7 kB / 371 MB, free: 87.06 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002017/0.6842, allocations: 71.14 kB / 371.1 MB, free: 87.06 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002466/0.6844, allocations: 107.7 kB / 371.2 MB, free: 87.05 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.883e-05/0.6845, allocations: 10.66 kB / 371.2 MB, free: 87.05 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.177e-06/0.6845, allocations: 0 / 371.2 MB, free: 87.05 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.834e-05/0.6845, allocations: 10.06 kB / 371.2 MB, free: 87.04 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005667/0.6902, allocations: 2.504 MB / 373.7 MB, free: 86.54 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.461e-06/0.6902, allocations: 0 / 373.7 MB, free: 86.54 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001154/0.6914, allocations: 190.5 kB / 373.9 MB, free: 86.54 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001394/0.6928, allocations: 0.6272 MB / 374.5 MB, free: 86.51 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000122/0.693, allocations: 48.95 kB / 374.6 MB, free: 86.51 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004043/0.697, allocations: 3.099 MB / 377.7 MB, free: 84.23 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.571e-06/0.6971, allocations: 5.359 kB / 377.7 MB, free: 84.23 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004326/0.7014, allocations: 1.865 MB / 379.6 MB, free: 83.81 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005474/0.702, allocations: 234.8 kB / 379.8 MB, free: 83.67 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002011/0.7022, allocations: 32.88 kB / 379.8 MB, free: 83.65 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001678/0.7039, allocations: 251.5 kB / 380.1 MB, free: 83.63 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001227/0.7051, allocations: 434.5 kB / 380.5 MB, free: 83.57 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00014/0.7053, allocations: 44.23 kB / 380.5 MB, free: 83.56 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0003776/0.7057, allocations: 258.1 kB / 380.8 MB, free: 83.43 MB / 314.7 MB Notification: Performance of sort global known variables: time 8.42e-07/0.7057, allocations: 0 / 380.8 MB, free: 83.43 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001055/0.7068, allocations: 255.4 kB / 381 MB, free: 83.4 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.0003237/0.7071, allocations: 166.5 kB / 381.2 MB, free: 83.29 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002309/0.7094, allocations: 1.038 MB / 382.2 MB, free: 82.87 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 5.875e-06/0.7095, allocations: 9.312 kB / 382.3 MB, free: 82.86 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00166/0.7112, allocations: 0.6907 MB / 382.9 MB, free: 82.53 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009207/0.7121, allocations: 112.1 kB / 383.1 MB, free: 82.49 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005041/0.7172, allocations: 1.757 MB / 384.8 MB, free: 81.65 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004372/0.7176, allocations: 0.952 MB / 385.8 MB, free: 80.94 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0005169/0.7182, allocations: 81.52 kB / 385.8 MB, free: 80.91 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002505/0.7184, allocations: 51.88 kB / 385.9 MB, free: 80.91 MB / 314.7 MB Notification: Performance of SimCode: time 1.868e-06/0.7184, allocations: 0 / 385.9 MB, free: 80.91 MB / 314.7 MB Notification: Performance of Templates: time 0.02956/0.748, allocations: 14.59 MB / 400.5 MB, free: 69.77 MB / 314.7 MB