Running command: translateModel(Modelica.Mechanics.Translational.Examples.Friction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=10000,variableFilter="time|mass.s|mass.v|stop1.s|stop1.v|stop2.s|stop2.v|stop1.mode|stop1.startBackward|stop1.startForward|stop2.mode|stop2.startBackward|stop2.startForward|supportFriction.mode|supportFriction.startBackward|supportFriction.startForward",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Mechanics.Translational.Examples.Friction") Notification: Performance of loadModel(Modelica): time 1.911/1.911, allocations: 194.9 MB / 208.4 MB, free: 3.164 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.846e-05/2.876e-05, allocations: 4 kB / 255.3 MB, free: 3.191 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07759/0.07764, allocations: 44.5 MB / 299.8 MB, free: 6.633 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3333/0.411, allocations: 76.26 MB / 376.1 MB, free: 22.5 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002257/0.4112, allocations: 72.66 kB / 376.2 MB, free: 22.5 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05316/0.4644, allocations: 13.57 MB / 389.7 MB, free: 21.21 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.067e-06/0.4645, allocations: 4 kB / 389.7 MB, free: 21.2 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.739e-05/0.4645, allocations: 11.69 kB / 389.7 MB, free: 21.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: 88 * Number of variables: 88 Notification: Performance of Generate backend data structure: time 0.003151/0.4677, allocations: 1.082 MB / 390.8 MB, free: 20.64 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.131e-05/0.4677, allocations: 11.69 kB / 390.8 MB, free: 20.64 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003002/0.4681, allocations: 82.23 kB / 390.9 MB, free: 20.6 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008682/0.4689, allocations: 500 kB / 391.4 MB, free: 20.32 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.571e-05/0.469, allocations: 27.16 kB / 391.4 MB, free: 20.32 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001638/0.4692, allocations: 40.75 kB / 391.5 MB, free: 20.31 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001864/0.4711, allocations: 0.8705 MB / 392.3 MB, free: 20.25 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.704e-05/0.4711, allocations: 4.5 kB / 392.3 MB, free: 20.25 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001503/0.4713, allocations: 15.31 kB / 392.4 MB, free: 20.25 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.275e-05/0.4713, allocations: 7.906 kB / 392.4 MB, free: 20.25 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002363/0.4737, allocations: 1.049 MB / 393.4 MB, free: 20.23 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006623/0.4803, allocations: 2.407 MB / 395.8 MB, free: 19.65 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001311/0.4817, allocations: 0.6397 MB / 396.5 MB, free: 19.59 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001063/0.4828, allocations: 0.5008 MB / 397 MB, free: 19.57 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.95e-05/0.4829, allocations: 11.78 kB / 397 MB, free: 19.57 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001496/0.4844, allocations: 0.7466 MB / 397.7 MB, free: 19.49 MB / 314.7 MB Notification: Performance of pre-optimization done (n=49): time 4.033e-06/0.4844, allocations: 0 / 397.7 MB, free: 19.49 MB / 314.7 MB Notification: Performance of matching and sorting (n=51): time 0.008083/0.4925, allocations: 3.33 MB / 401.1 MB, free: 18.8 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.525e-05/0.4926, allocations: 92.67 kB / 401.1 MB, free: 18.7 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007937/0.4934, allocations: 0.5285 MB / 401.7 MB, free: 18.57 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002574/0.4937, allocations: 51.78 kB / 401.7 MB, free: 18.54 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001786/0.4939, allocations: 310.6 kB / 402 MB, free: 18.34 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002377/0.4941, allocations: 171.3 kB / 402.2 MB, free: 18.25 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000112/0.4943, allocations: 10.38 kB / 402.2 MB, free: 18.25 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.831e-05/0.4944, allocations: 341.6 kB / 402.5 MB, free: 17.93 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001149/0.4955, allocations: 0.5084 MB / 403 MB, free: 17.93 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001183/0.4967, allocations: 0.6023 MB / 403.6 MB, free: 17.84 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009502/0.4977, allocations: 442.1 kB / 404.1 MB, free: 17.83 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.556e-06/0.4977, allocations: 3.906 kB / 404.1 MB, free: 17.83 MB / 314.7 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.006436/0.5042, allocations: 1.648 MB / 405.7 MB, free: 17.72 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.258e-05/0.5042, allocations: 3.906 kB / 405.7 MB, free: 17.72 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.058e-05/0.5043, allocations: 14.48 kB / 405.7 MB, free: 17.72 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01094/0.5153, allocations: 4.126 MB / 409.9 MB, free: 16.79 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006763/0.516, allocations: 124.2 kB / 410 MB, free: 16.76 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008568/0.5246, allocations: 5.389 MB / 415.4 MB, free: 13.12 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002022/0.5267, allocations: 301.5 kB / 415.7 MB, free: 13.02 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002344/0.5269, allocations: 101.8 kB / 415.8 MB, free: 13.02 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 28 (supportFriction.free,$whenCondition2,stop1.free,$PRE.stop1.startForward,stop1.startForward,$PRE.stop1.startBackward,stop1.startBackward,stop1.locked,$PRE.stop1.mode,stop1.mode,stop1.stopped,$PRE.supportFriction.startForward,supportFriction.startForward,$PRE.supportFriction.startBackward,supportFriction.startBackward,supportFriction.locked,$PRE.supportFriction.mode,supportFriction.mode,$whenCondition1,stop2.free,$PRE.stop2.startForward,stop2.startForward,$PRE.stop2.startBackward,stop2.startBackward,stop2.locked,$PRE.stop2.mode,stop2.mode,stop2.stopped) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (61): * Single equations (assignments): 57 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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 5,1 5} Notification: Performance of prepare postOptimizeDAE: time 0.0003704/0.5273, allocations: 149.2 kB / 415.9 MB, free: 12.9 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002046/0.5276, allocations: 74.31 kB / 416 MB, free: 12.86 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004135/0.5317, allocations: 1.486 MB / 417.5 MB, free: 28.48 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.25e-05/0.5318, allocations: 7.844 kB / 417.5 MB, free: 28.48 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.678e-06/0.5318, allocations: 0 / 417.5 MB, free: 28.48 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.29e-05/0.5318, allocations: 11.88 kB / 417.5 MB, free: 28.47 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005959/0.5378, allocations: 2.52 MB / 420 MB, free: 27.61 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.438e-06/0.5378, allocations: 0 / 420 MB, free: 27.61 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007562/0.5386, allocations: 102 kB / 420.1 MB, free: 27.58 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006618/0.5452, allocations: 4.149 MB / 424.3 MB, free: 25.83 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001822/0.5455, allocations: 38.27 kB / 424.3 MB, free: 25.82 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008665/0.5541, allocations: 5.106 MB / 429.4 MB, free: 22.36 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.295e-06/0.5542, allocations: 15.91 kB / 429.4 MB, free: 22.34 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005822/0.56, allocations: 2.25 MB / 431.7 MB, free: 21.75 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007544/0.5608, allocations: 308.5 kB / 432 MB, free: 21.58 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002088/0.5611, allocations: 19.38 kB / 432 MB, free: 21.58 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001771/0.5628, allocations: 311.9 kB / 432.3 MB, free: 21.48 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001964/0.5648, allocations: 0.6532 MB / 433 MB, free: 21.14 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002524/0.5651, allocations: 97.02 kB / 433.1 MB, free: 21.12 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0007902/0.5659, allocations: 0.5103 MB / 433.6 MB, free: 20.98 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.079e-06/0.5659, allocations: 0 / 433.6 MB, free: 20.98 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001318/0.5673, allocations: 237.1 kB / 433.8 MB, free: 20.98 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 6 (stop2.s,stop2.v,stop1.s,stop1.v,mass.s,mass.v) * Number of discrete variables: 18 ($whenCondition1,stop2.free,stop2.startForward,stop2.startBackward,stop2.locked,stop2.mode,stop2.stopped,$whenCondition2,stop1.free,stop1.startForward,stop1.startBackward,stop1.locked,stop1.mode,stop1.stopped,supportFriction.startForward,supportFriction.startBackward,supportFriction.locked,supportFriction.mode) * Number of discrete states: 9 (supportFriction.mode,supportFriction.startForward,supportFriction.startBackward,stop1.mode,stop1.startBackward,stop1.startForward,stop2.mode,stop2.startBackward,stop2.startForward) * Top-level inputs: 0 Notification: Strong component statistics for simulation (35): * Single equations (assignments): 32 * 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 5,1 5,1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.0004281/0.5677, allocations: 175 kB / 434 MB, free: 20.82 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.002986/0.5707, allocations: 1.353 MB / 435.3 MB, free: 19.77 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 8.002e-06/0.5708, allocations: 3.938 kB / 435.3 MB, free: 19.77 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001755/0.5726, allocations: 0.8046 MB / 436.1 MB, free: 19.11 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007592/0.5734, allocations: 57.84 kB / 436.2 MB, free: 19.07 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00539/0.5788, allocations: 1.895 MB / 438.1 MB, free: 17.3 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006924/0.5795, allocations: 0.9308 MB / 439 MB, free: 16.35 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002231/0.5797, allocations: 37.8 kB / 439 MB, free: 16.32 MB / 330.7 MB Notification: Performance of SimCode: time 1.814e-06/0.5798, allocations: 0 / 439 MB, free: 16.32 MB / 330.7 MB Notification: Performance of Templates: time 0.02755/0.6073, allocations: 14.96 MB / 454 MB, free: 1.367 MB / 330.7 MB