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_trunk_Modelica.Mechanics.Translational.Examples.Friction") Notification: Performance of loadModel(Modelica): time 2.192/2.192, allocations: 225.8 MB / 239.4 MB, free: 1.262 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 4.358e-05/4.393e-05, allocations: 0 / 292.7 MB, free: 11.48 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09491/0.09501, allocations: 50.41 MB / 343.1 MB, free: 9.086 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3742/0.4693, allocations: 82.3 MB / 425.4 MB, free: 8.324 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002027/0.4695, allocations: 69.72 kB / 425.4 MB, free: 8.324 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05443/0.524, allocations: 13.87 MB / 439.3 MB, free: 3.414 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.832e-06/0.524, allocations: 0 / 439.3 MB, free: 3.414 MB / 330.7 MB Notification: Performance of Transformations before backend: time 4.24e-05/0.5241, allocations: 15.59 kB / 439.3 MB, free: 3.41 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.002913/0.527, allocations: 1.081 MB / 440.4 MB, free: 2.703 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.203e-05/0.5271, allocations: 11.53 kB / 440.4 MB, free: 2.703 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002992/0.5274, allocations: 81.31 kB / 440.5 MB, free: 2.66 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008495/0.5282, allocations: 495.6 kB / 441 MB, free: 2.34 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.959e-05/0.5283, allocations: 30.2 kB / 441 MB, free: 2.336 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001616/0.5285, allocations: 41.34 kB / 441 MB, free: 2.332 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001774/0.5303, allocations: 0.8689 MB / 441.9 MB, free: 2.066 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.935e-05/0.5303, allocations: 3.594 kB / 441.9 MB, free: 2.066 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001296/0.5305, allocations: 25.2 kB / 441.9 MB, free: 2.059 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.324e-05/0.5305, allocations: 11.59 kB / 442 MB, free: 2.055 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002269/0.5328, allocations: 1.034 MB / 443 MB, free: 1.906 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00651/0.5393, allocations: 2.403 MB / 445.4 MB, free: 0.8359 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001298/0.5406, allocations: 0.6431 MB / 446 MB, free: 0.7188 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00101/0.5417, allocations: 0.5023 MB / 446.5 MB, free: 0.6523 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001043/0.5418, allocations: 3.844 kB / 446.5 MB, free: 0.6523 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001477/0.5433, allocations: 0.7408 MB / 447.3 MB, free: 420 kB / 330.7 MB Notification: Performance of pre-optimization done (n=49): time 4.015e-06/0.5433, allocations: 0 / 447.3 MB, free: 420 kB / 330.7 MB Notification: Performance of matching and sorting (n=51): time 0.008311/0.5516, allocations: 3.322 MB / 450.6 MB, free: 14.91 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.92e-05/0.5517, allocations: 81.11 kB / 450.7 MB, free: 14.81 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009194/0.5527, allocations: 0.5303 MB / 451.2 MB, free: 14.37 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002937/0.553, allocations: 50.56 kB / 451.3 MB, free: 14.32 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002839/0.5533, allocations: 296.2 kB / 451.6 MB, free: 14.14 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002957/0.5536, allocations: 170.5 kB / 451.7 MB, free: 14 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001024/0.5537, allocations: 13.44 kB / 451.7 MB, free: 14 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0002461/0.554, allocations: 381.5 kB / 452.1 MB, free: 13.64 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001213/0.5552, allocations: 0.515 MB / 452.6 MB, free: 13.29 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001289/0.5565, allocations: 0.594 MB / 453.2 MB, free: 12.84 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00105/0.5576, allocations: 447.7 kB / 453.7 MB, free: 12.52 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.013e-06/0.5576, allocations: 4 kB / 453.7 MB, free: 12.51 MB / 346.7 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.004562/0.5622, allocations: 1.677 MB / 455.3 MB, free: 11.22 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.37e-05/0.5623, allocations: 14.77 kB / 455.3 MB, free: 11.21 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.414e-05/0.5623, allocations: 11.98 kB / 455.4 MB, free: 11.2 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007672/0.57, allocations: 4.127 MB / 459.5 MB, free: 7.418 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007536/0.5708, allocations: 123.1 kB / 459.6 MB, free: 7.301 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01001/0.5808, allocations: 5.395 MB / 465 MB, free: 2.363 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001867/0.5827, allocations: 294.8 kB / 465.3 MB, free: 2.09 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002365/0.583, allocations: 99.86 kB / 465.4 MB, free: 1.996 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.0003762/0.5834, allocations: 149.3 kB / 465.5 MB, free: 1.863 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002292/0.5836, allocations: 75.11 kB / 465.6 MB, free: 1.789 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00411/0.5878, allocations: 1.478 MB / 467.1 MB, free: 0.6172 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.002e-05/0.5878, allocations: 8 kB / 467.1 MB, free: 0.6094 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.937e-06/0.5878, allocations: 0 / 467.1 MB, free: 0.6094 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.144e-05/0.5879, allocations: 0 / 467.1 MB, free: 0.6094 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006569/0.5944, allocations: 2.541 MB / 469.6 MB, free: 14.54 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.075e-06/0.5945, allocations: 0 / 469.6 MB, free: 14.54 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007239/0.5952, allocations: 95.97 kB / 469.7 MB, free: 14.44 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.007598/0.6028, allocations: 4.155 MB / 473.9 MB, free: 10.62 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001787/0.6031, allocations: 41.45 kB / 473.9 MB, free: 10.59 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009154/0.6122, allocations: 5.115 MB / 479 MB, free: 5.852 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.518e-06/0.6123, allocations: 0 / 479 MB, free: 5.852 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00607/0.6184, allocations: 2.267 MB / 481.3 MB, free: 3.523 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008567/0.6193, allocations: 308.2 kB / 481.6 MB, free: 3.203 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002304/0.6195, allocations: 23.95 kB / 481.6 MB, free: 3.18 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001905/0.6214, allocations: 307.7 kB / 481.9 MB, free: 2.879 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00221/0.6237, allocations: 0.6588 MB / 482.6 MB, free: 2.219 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002746/0.624, allocations: 87.97 kB / 482.7 MB, free: 2.133 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0009935/0.625, allocations: 0.5108 MB / 483.2 MB, free: 1.629 MB / 362.7 MB Notification: Performance of sort global known variables: time 9.27e-07/0.625, allocations: 0 / 483.2 MB, free: 1.629 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.00135/0.6264, allocations: 236 kB / 483.4 MB, free: 1.398 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.000454/0.6268, allocations: 163.1 kB / 483.6 MB, free: 1.23 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.003342/0.6302, allocations: 1.332 MB / 484.9 MB, free: 15.87 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 7.632e-06/0.6303, allocations: 0 / 484.9 MB, free: 15.87 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002122/0.6324, allocations: 0.8316 MB / 485.7 MB, free: 15.02 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007136/0.6331, allocations: 65.92 kB / 485.8 MB, free: 14.96 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006544/0.6397, allocations: 1.85 MB / 487.7 MB, free: 13.07 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008088/0.6406, allocations: 0.934 MB / 488.6 MB, free: 12.11 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0003777/0.641, allocations: 39.28 kB / 488.6 MB, free: 12.08 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001753/0.6412, allocations: 35.42 kB / 488.7 MB, free: 12.04 MB / 378.7 MB Notification: Performance of SimCode: time 1.898e-06/0.6412, allocations: 3.938 kB / 488.7 MB, free: 12.04 MB / 378.7 MB Notification: Performance of Templates: time 0.04626/0.6874, allocations: 20.62 MB / 0.4973 GB, free: 7.336 MB / 394.7 MB