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.92/1.92, allocations: 194.9 MB / 208.4 MB, free: 3.168 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.191e-05/3.215e-05, allocations: 2.938 kB / 255.4 MB, free: 3.188 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08147/0.08152, allocations: 44.51 MB / 299.9 MB, free: 6.621 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3837/0.4653, allocations: 78.98 MB / 378.8 MB, free: 22.35 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003626/0.4657, allocations: 70.03 kB / 378.9 MB, free: 22.35 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06432/0.5301, allocations: 14.72 MB / 393.6 MB, free: 20.23 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.679e-06/0.5301, allocations: 0 / 393.6 MB, free: 20.23 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.539e-05/0.5302, allocations: 11.72 kB / 393.6 MB, free: 20.23 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.002604/0.5328, allocations: 1.079 MB / 394.7 MB, free: 19.67 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.81e-05/0.5328, allocations: 7.812 kB / 394.7 MB, free: 19.67 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000296/0.5332, allocations: 86.03 kB / 394.8 MB, free: 19.63 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006566/0.5338, allocations: 414.5 kB / 395.2 MB, free: 19.36 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.241e-05/0.5339, allocations: 48.28 kB / 395.3 MB, free: 19.35 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000158/0.5341, allocations: 73.06 kB / 395.3 MB, free: 19.35 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001589/0.5357, allocations: 0.7128 MB / 396 MB, free: 19.29 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.719e-05/0.5357, allocations: 0 / 396 MB, free: 19.29 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001151/0.5359, allocations: 30.78 kB / 396.1 MB, free: 19.29 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.812e-05/0.5359, allocations: 23.47 kB / 396.1 MB, free: 19.29 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001725/0.5376, allocations: 0.7067 MB / 396.8 MB, free: 19.28 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005248/0.5429, allocations: 2.433 MB / 399.2 MB, free: 18.43 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001207/0.5441, allocations: 0.6162 MB / 399.9 MB, free: 18.39 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008352/0.545, allocations: 405.7 kB / 400.3 MB, free: 18.38 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000102/0.5451, allocations: 20.14 kB / 400.3 MB, free: 18.38 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001059/0.5462, allocations: 497.2 kB / 400.8 MB, free: 18.31 MB / 314.7 MB Notification: Performance of pre-optimization done (n=89): time 5.037e-06/0.5462, allocations: 7.875 kB / 400.8 MB, free: 18.3 MB / 314.7 MB Notification: Performance of matching and sorting (n=109): time 0.007732/0.554, allocations: 2.938 MB / 403.7 MB, free: 17.57 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.174e-05/0.554, allocations: 64.19 kB / 403.8 MB, free: 17.5 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004068/0.5545, allocations: 309 kB / 404.1 MB, free: 17.4 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001177/0.5546, allocations: 55.91 kB / 404.1 MB, free: 17.37 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001461/0.5548, allocations: 314.2 kB / 404.4 MB, free: 17.14 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002684/0.555, allocations: 367.3 kB / 404.8 MB, free: 16.91 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.506e-05/0.5551, allocations: 18.78 kB / 404.8 MB, free: 16.91 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 8.465e-05/0.5552, allocations: 360.7 kB / 405.2 MB, free: 16.59 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008725/0.5561, allocations: 356.8 kB / 405.5 MB, free: 16.59 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009464/0.5571, allocations: 445.7 kB / 405.9 MB, free: 16.53 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007508/0.5578, allocations: 305 kB / 406.2 MB, free: 16.51 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.233e-06/0.5579, allocations: 0 / 406.2 MB, free: 16.51 MB / 314.7 MB Notification: Performance of matching and sorting (n=134) (initialization): time 0.003203/0.5611, allocations: 1.151 MB / 407.4 MB, free: 16.38 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.391e-05/0.5611, allocations: 5.469 kB / 407.4 MB, free: 16.38 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.259e-05/0.5612, allocations: 3.906 kB / 407.4 MB, free: 16.38 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001306/0.5625, allocations: 0.5443 MB / 407.9 MB, free: 16.31 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001159/0.5637, allocations: 205.9 kB / 408.1 MB, free: 16.29 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004483/0.5682, allocations: 3.222 MB / 411.4 MB, free: 13.87 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001567/0.5698, allocations: 242.3 kB / 411.6 MB, free: 13.85 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001369/0.5699, allocations: 45.92 kB / 411.6 MB, free: 13.85 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.0002856/0.5702, allocations: 164.8 kB / 411.8 MB, free: 13.73 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001668/0.5704, allocations: 70.12 kB / 411.9 MB, free: 13.7 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003144/0.5736, allocations: 1.204 MB / 413.1 MB, free: 13.55 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.366e-05/0.5736, allocations: 15.66 kB / 413.1 MB, free: 13.55 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.422e-06/0.5736, allocations: 3.281 kB / 413.1 MB, free: 13.55 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.553e-05/0.5737, allocations: 3.375 kB / 413.1 MB, free: 13.55 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005308/0.579, allocations: 2.342 MB / 415.4 MB, free: 12.62 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.071e-05/0.579, allocations: 3.906 kB / 415.5 MB, free: 12.62 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001068/0.5801, allocations: 192 kB / 415.6 MB, free: 12.58 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001306/0.5815, allocations: 0.5063 MB / 416.1 MB, free: 12.43 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001775/0.5817, allocations: 46.08 kB / 416.2 MB, free: 12.42 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00476/0.5864, allocations: 3.042 MB / 419.2 MB, free: 25.94 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.106e-06/0.5865, allocations: 7.875 kB / 419.2 MB, free: 25.94 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004113/0.5906, allocations: 1.717 MB / 421 MB, free: 25.37 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006507/0.5913, allocations: 231.5 kB / 421.2 MB, free: 25.2 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002142/0.5916, allocations: 28.78 kB / 421.2 MB, free: 25.2 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001551/0.5931, allocations: 257.9 kB / 421.5 MB, free: 25.12 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00128/0.5944, allocations: 435.1 kB / 421.9 MB, free: 24.9 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001482/0.5946, allocations: 46.2 kB / 421.9 MB, free: 24.89 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0003807/0.595, allocations: 249 kB / 422.2 MB, free: 24.78 MB / 330.7 MB Notification: Performance of sort global known variables: time 7.88e-07/0.595, allocations: 0 / 422.2 MB, free: 24.78 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001101/0.5961, allocations: 250.2 kB / 422.4 MB, free: 24.77 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.0003726/0.5965, allocations: 169.9 kB / 422.6 MB, free: 24.66 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.002359/0.5989, allocations: 1.067 MB / 423.7 MB, free: 24.43 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 5.246e-06/0.5989, allocations: 0 / 423.7 MB, free: 24.43 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001514/0.6004, allocations: 0.6551 MB / 424.3 MB, free: 24.26 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009496/0.6014, allocations: 108.4 kB / 424.4 MB, free: 24.23 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004967/0.6064, allocations: 1.818 MB / 426.2 MB, free: 23.23 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006588/0.6071, allocations: 0.9511 MB / 427.2 MB, free: 22.41 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003703/0.6075, allocations: 58.33 kB / 427.2 MB, free: 22.4 MB / 330.7 MB Notification: Performance of SimCode: time 2.043e-06/0.6075, allocations: 0 / 427.2 MB, free: 22.4 MB / 330.7 MB Notification: Performance of Templates: time 0.02282/0.6303, allocations: 16.63 MB / 443.9 MB, free: 10.87 MB / 330.7 MB