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.3_Modelica.Mechanics.Translational.Examples.Friction") Notification: Performance of loadModel(Modelica): time 2.185/2.185, allocations: 205.8 MB / 218.9 MB, free: 9.266 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.86e-05/2.88e-05, allocations: 4 kB / 269.4 MB, free: 6.406 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0889/0.08895, allocations: 47.58 MB / 316.9 MB, free: 6.746 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3651/0.4541, allocations: 80.68 MB / 397.6 MB, free: 7.453 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002266/0.4544, allocations: 70.77 kB / 397.7 MB, free: 7.418 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0972/0.5516, allocations: 13.71 MB / 411.4 MB, free: 11.32 MB / 330.7 MB Notification: Performance of FrontEnd: time 3.39e-06/0.5517, allocations: 7.938 kB / 411.4 MB, free: 11.31 MB / 330.7 MB Notification: Performance of Transformations before backend: time 6.395e-05/0.5517, allocations: 12 kB / 411.4 MB, free: 11.3 MB / 330.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.006022/0.5578, allocations: 1.078 MB / 412.5 MB, free: 10.21 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.525e-05/0.5579, allocations: 8.031 kB / 412.5 MB, free: 10.2 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006726/0.5586, allocations: 79.06 kB / 412.6 MB, free: 10.12 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00209/0.5607, allocations: 0.4967 MB / 413.1 MB, free: 9.637 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001099/0.5609, allocations: 24.09 kB / 413.1 MB, free: 9.625 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004008/0.5613, allocations: 39.47 kB / 413.1 MB, free: 9.598 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003859/0.5652, allocations: 0.8694 MB / 414 MB, free: 8.941 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.144e-05/0.5653, allocations: 0 / 414 MB, free: 8.941 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002395/0.5655, allocations: 15.38 kB / 414 MB, free: 8.938 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.315e-05/0.5656, allocations: 8 kB / 414 MB, free: 8.93 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004584/0.5702, allocations: 1.043 MB / 415.1 MB, free: 8.176 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01236/0.5826, allocations: 2.398 MB / 417.5 MB, free: 6.121 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003266/0.5859, allocations: 0.635 MB / 418.1 MB, free: 5.66 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002903/0.5889, allocations: 0.509 MB / 418.6 MB, free: 5.309 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002197/0.5892, allocations: 4 kB / 418.6 MB, free: 5.305 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004045/0.5933, allocations: 0.7449 MB / 419.3 MB, free: 4.723 MB / 330.7 MB Notification: Performance of pre-optimization done (n=49): time 8.931e-06/0.5933, allocations: 3.938 kB / 419.4 MB, free: 4.719 MB / 330.7 MB Notification: Performance of matching and sorting (n=51): time 0.01057/0.6039, allocations: 3.319 MB / 422.7 MB, free: 1.934 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.287e-05/0.6041, allocations: 89.02 kB / 422.8 MB, free: 1.828 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009196/0.605, allocations: 0.5299 MB / 423.3 MB, free: 1.383 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002232/0.6052, allocations: 50.12 kB / 423.3 MB, free: 1.34 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002692/0.6055, allocations: 289.7 kB / 423.6 MB, free: 1.16 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000264/0.6058, allocations: 174 kB / 423.8 MB, free: 1.016 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.687e-05/0.6059, allocations: 10.94 kB / 423.8 MB, free: 1.016 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0002397/0.6062, allocations: 383.4 kB / 424.2 MB, free: 0.6602 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001172/0.6073, allocations: 0.5057 MB / 424.7 MB, free: 324 kB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001318/0.6087, allocations: 0.6086 MB / 425.3 MB, free: 15.85 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001064/0.6098, allocations: 448.2 kB / 425.7 MB, free: 15.53 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.626e-06/0.6098, allocations: 0 / 425.7 MB, free: 15.53 MB / 346.7 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.004433/0.6142, allocations: 1.68 MB / 427.4 MB, free: 14.23 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.556e-05/0.6143, allocations: 6.344 kB / 427.4 MB, free: 14.22 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.398e-05/0.6143, allocations: 8 kB / 427.4 MB, free: 14.21 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007643/0.622, allocations: 4.126 MB / 431.5 MB, free: 10.43 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007094/0.6227, allocations: 119 kB / 431.7 MB, free: 10.32 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009929/0.6327, allocations: 5.415 MB / 437.1 MB, free: 5.363 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002314/0.6351, allocations: 296.3 kB / 437.4 MB, free: 5.086 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004406/0.6355, allocations: 107.9 kB / 437.5 MB, free: 4.984 MB / 346.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.0004175/0.636, allocations: 145.8 kB / 437.6 MB, free: 4.855 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002455/0.6362, allocations: 71.16 kB / 437.7 MB, free: 4.785 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004207/0.6405, allocations: 1.479 MB / 439.2 MB, free: 3.609 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.42e-05/0.6405, allocations: 4 kB / 439.2 MB, free: 3.605 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.941e-06/0.6405, allocations: 4 kB / 439.2 MB, free: 3.602 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.766e-05/0.6406, allocations: 7.938 kB / 439.2 MB, free: 3.594 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006637/0.6472, allocations: 2.52 MB / 441.7 MB, free: 1.527 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.4e-05/0.6473, allocations: 4 kB / 441.7 MB, free: 1.523 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006988/0.648, allocations: 95.95 kB / 441.8 MB, free: 1.43 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0117/0.6597, allocations: 4.16 MB / 446 MB, free: 13.6 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000364/0.6601, allocations: 34.64 kB / 446 MB, free: 13.57 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01988/0.6801, allocations: 5.105 MB / 451.1 MB, free: 8.316 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.058e-05/0.6801, allocations: 8.094 kB / 451.1 MB, free: 8.309 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01351/0.6937, allocations: 2.252 MB / 453.4 MB, free: 6 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001867/0.6956, allocations: 316 kB / 453.7 MB, free: 5.672 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005478/0.6962, allocations: 20 kB / 453.7 MB, free: 5.652 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004202/0.7004, allocations: 307.7 kB / 454 MB, free: 5.352 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.005022/0.7055, allocations: 0.651 MB / 454.6 MB, free: 4.699 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005797/0.7062, allocations: 95.95 kB / 454.7 MB, free: 4.605 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.002022/0.7082, allocations: 0.5108 MB / 455.2 MB, free: 4.102 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.711e-06/0.7082, allocations: 0 / 455.2 MB, free: 4.102 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.003006/0.7113, allocations: 236 kB / 455.5 MB, free: 3.871 MB / 362.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.0008212/0.7121, allocations: 163 kB / 455.6 MB, free: 3.703 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.007111/0.7193, allocations: 1.343 MB / 457 MB, free: 2.332 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.36e-05/0.7193, allocations: 0 / 457 MB, free: 2.332 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004662/0.724, allocations: 0.8278 MB / 457.8 MB, free: 1.484 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001486/0.7256, allocations: 58.97 kB / 457.9 MB, free: 1.426 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01248/0.7381, allocations: 1.846 MB / 459.7 MB, free: 15.54 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001195/0.7393, allocations: 0.9454 MB / 460.7 MB, free: 14.57 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0006338/0.74, allocations: 39.27 kB / 460.7 MB, free: 14.53 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002907/0.7403, allocations: 35.36 kB / 460.7 MB, free: 14.49 MB / 378.7 MB Notification: Performance of SimCode: time 2.25e-06/0.7404, allocations: 4 kB / 460.7 MB, free: 14.49 MB / 378.7 MB Notification: Performance of Templates: time 0.05426/0.7946, allocations: 20.63 MB / 481.4 MB, free: 9.762 MB / 394.7 MB