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.2_cpp_Modelica.Mechanics.Translational.Examples.HeatLosses") Notification: Performance of loadModel(Modelica): time 1.877/1.877, allocations: 194.9 MB / 208.4 MB, free: 3.242 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 4.014e-05/4.029e-05, allocations: 1.844 kB / 255.3 MB, free: 3.18 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08131/0.08138, allocations: 44.5 MB / 299.8 MB, free: 6.633 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3285/0.4099, allocations: 78.96 MB / 378.8 MB, free: 22.33 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00022/0.4102, allocations: 74.16 kB / 378.9 MB, free: 22.32 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06001/0.4702, allocations: 14.73 MB / 393.6 MB, free: 20.21 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.157e-06/0.4703, allocations: 0 / 393.6 MB, free: 20.21 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.364e-05/0.4703, allocations: 23.44 kB / 393.6 MB, free: 20.2 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: 169 * Number of variables: 169 Notification: Performance of Generate backend data structure: time 0.00278/0.4731, allocations: 1.064 MB / 394.7 MB, free: 19.65 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.283e-05/0.4732, allocations: 7.812 kB / 394.7 MB, free: 19.65 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003691/0.4735, allocations: 89.41 kB / 394.8 MB, free: 19.61 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006812/0.4742, allocations: 414.9 kB / 395.2 MB, free: 19.33 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.181e-05/0.4743, allocations: 51.84 kB / 395.2 MB, free: 19.32 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001569/0.4745, allocations: 69.81 kB / 395.3 MB, free: 19.32 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001628/0.4761, allocations: 0.727 MB / 396 MB, free: 19.26 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.059e-05/0.4762, allocations: 7.812 kB / 396 MB, free: 19.25 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001219/0.4763, allocations: 30.56 kB / 396.1 MB, free: 19.25 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.687e-05/0.4764, allocations: 15.22 kB / 396.1 MB, free: 19.25 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001744/0.4781, allocations: 0.7154 MB / 396.8 MB, free: 19.24 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005785/0.4839, allocations: 2.439 MB / 399.2 MB, free: 18.39 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00126/0.4852, allocations: 0.6208 MB / 399.9 MB, free: 18.35 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008071/0.486, allocations: 407.4 kB / 400.3 MB, free: 18.34 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000101/0.4862, allocations: 12.5 kB / 400.3 MB, free: 18.34 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001076/0.4873, allocations: 0.4975 MB / 400.8 MB, free: 18.27 MB / 314.7 MB Notification: Performance of pre-optimization done (n=89): time 7.278e-06/0.4873, allocations: 0 / 400.8 MB, free: 18.27 MB / 314.7 MB Notification: Performance of matching and sorting (n=109): time 0.008129/0.4954, allocations: 2.951 MB / 403.7 MB, free: 17.52 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.275e-05/0.4955, allocations: 64.06 kB / 403.8 MB, free: 17.45 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004198/0.4959, allocations: 310.5 kB / 404.1 MB, free: 17.35 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001423/0.4961, allocations: 55.45 kB / 404.1 MB, free: 17.31 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001532/0.4963, allocations: 311.9 kB / 404.4 MB, free: 17.09 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003016/0.4966, allocations: 369.3 kB / 404.8 MB, free: 16.86 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.293e-05/0.4967, allocations: 21.25 kB / 404.8 MB, free: 16.86 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 8.696e-05/0.4968, allocations: 354.3 kB / 405.2 MB, free: 16.54 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001155/0.498, allocations: 357.9 kB / 405.5 MB, free: 16.54 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009564/0.4989, allocations: 454.2 kB / 406 MB, free: 16.48 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000918/0.4999, allocations: 306.1 kB / 406.3 MB, free: 16.46 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.614e-06/0.4999, allocations: 0 / 406.3 MB, free: 16.46 MB / 314.7 MB Notification: Performance of matching and sorting (n=134) (initialization): time 0.003307/0.5032, allocations: 1.146 MB / 407.4 MB, free: 16.33 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.472e-05/0.5033, allocations: 3.812 kB / 407.4 MB, free: 16.33 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.496e-05/0.5033, allocations: 3.906 kB / 407.4 MB, free: 16.33 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001296/0.5046, allocations: 0.5377 MB / 407.9 MB, free: 16.27 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001125/0.5058, allocations: 203.9 kB / 408.1 MB, free: 16.26 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004401/0.5102, allocations: 3.241 MB / 411.4 MB, free: 13.82 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001604/0.5118, allocations: 239.2 kB / 411.6 MB, free: 13.8 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000147/0.512, allocations: 42.05 kB / 411.7 MB, free: 13.8 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): 110 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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.0003061/0.5123, allocations: 171.6 kB / 411.8 MB, free: 13.68 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001702/0.5125, allocations: 66.28 kB / 411.9 MB, free: 13.65 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00311/0.5157, allocations: 1.199 MB / 413.1 MB, free: 13.5 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.559e-05/0.5157, allocations: 19.03 kB / 413.1 MB, free: 13.5 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.009e-06/0.5157, allocations: 0 / 413.1 MB, free: 13.5 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.805e-05/0.5158, allocations: 3.469 kB / 413.1 MB, free: 13.5 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005663/0.5214, allocations: 2.345 MB / 415.5 MB, free: 12.56 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.119e-05/0.5215, allocations: 8.188 kB / 415.5 MB, free: 12.55 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001178/0.5227, allocations: 188.2 kB / 415.7 MB, free: 12.52 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001351/0.5241, allocations: 0.5087 MB / 416.2 MB, free: 12.37 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002118/0.5243, allocations: 41.52 kB / 416.2 MB, free: 12.36 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00471/0.529, allocations: 3.051 MB / 419.3 MB, free: 25.88 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.414e-06/0.5291, allocations: 3.938 kB / 419.3 MB, free: 25.88 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003985/0.5331, allocations: 1.725 MB / 421 MB, free: 25.3 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006165/0.5337, allocations: 234.5 kB / 421.2 MB, free: 25.13 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001872/0.534, allocations: 29.88 kB / 421.2 MB, free: 25.13 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001579/0.5355, allocations: 253.5 kB / 421.5 MB, free: 25.05 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001175/0.5367, allocations: 430 kB / 421.9 MB, free: 24.84 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001468/0.5369, allocations: 46.55 kB / 422 MB, free: 24.82 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0003746/0.5373, allocations: 249.2 kB / 422.2 MB, free: 24.72 MB / 330.7 MB Notification: Performance of sort global known variables: time 8.1e-07/0.5373, allocations: 0 / 422.2 MB, free: 24.72 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001172/0.5385, allocations: 251.5 kB / 422.4 MB, free: 24.71 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * 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 (90): * Single equations (assignments): 87 * 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.0003881/0.5389, allocations: 176.2 kB / 422.6 MB, free: 24.59 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.002461/0.5414, allocations: 1.081 MB / 423.7 MB, free: 24.35 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 6.597e-06/0.5414, allocations: 320 / 423.7 MB, free: 24.35 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00158/0.543, allocations: 0.6754 MB / 424.4 MB, free: 24.16 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009138/0.544, allocations: 117.4 kB / 424.5 MB, free: 24.12 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00492/0.5489, allocations: 1.82 MB / 426.3 MB, free: 23.12 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006703/0.5496, allocations: 0.9431 MB / 427.2 MB, free: 22.32 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003403/0.55, allocations: 66.16 kB / 427.3 MB, free: 22.3 MB / 330.7 MB Notification: Performance of SimCode: time 1.857e-06/0.55, allocations: 0 / 427.3 MB, free: 22.3 MB / 330.7 MB Notification: Performance of Templates: time 0.02325/0.5733, allocations: 16.65 MB / 444 MB, free: 10.73 MB / 330.7 MB