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_4.0.0_Modelica.Mechanics.Translational.Examples.Friction") Notification: Performance of loadModel(Modelica): time 2.102/2.102, allocations: 225.8 MB / 238.8 MB, free: 11.16 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.305e-05/2.315e-05, allocations: 0 / 292.1 MB, free: 8.332 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09099/0.09104, allocations: 50.41 MB / 342.6 MB, free: 5.895 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3971/0.4882, allocations: 82.55 MB / 425.1 MB, free: 11.68 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002188/0.4885, allocations: 70.41 kB / 425.2 MB, free: 11.64 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05839/0.5469, allocations: 13.86 MB / 439 MB, free: 15.41 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.904e-06/0.5469, allocations: 4 kB / 439 MB, free: 15.4 MB / 362.7 MB Notification: Performance of Transformations before backend: time 4.358e-05/0.547, allocations: 16 kB / 439.1 MB, free: 15.39 MB / 362.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.003352/0.5503, allocations: 1.083 MB / 440.1 MB, free: 14.3 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.275e-05/0.5504, allocations: 12.03 kB / 440.2 MB, free: 14.29 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003009/0.5507, allocations: 79.06 kB / 440.2 MB, free: 14.21 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001035/0.5518, allocations: 496.4 kB / 440.7 MB, free: 13.73 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.644e-05/0.5518, allocations: 29.72 kB / 440.7 MB, free: 13.72 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000176/0.552, allocations: 38.16 kB / 440.8 MB, free: 13.69 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002071/0.5541, allocations: 0.8715 MB / 441.7 MB, free: 13.04 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.064e-05/0.5542, allocations: 4 kB / 441.7 MB, free: 13.04 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001382/0.5543, allocations: 10.06 kB / 441.7 MB, free: 13.04 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.08e-05/0.5544, allocations: 12 kB / 441.7 MB, free: 13.02 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002471/0.5568, allocations: 1.04 MB / 442.7 MB, free: 12.27 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007322/0.5642, allocations: 2.413 MB / 445.1 MB, free: 10.21 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001552/0.5658, allocations: 0.6307 MB / 445.8 MB, free: 9.75 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001183/0.567, allocations: 0.4996 MB / 446.3 MB, free: 9.402 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.963e-05/0.5671, allocations: 8 kB / 446.3 MB, free: 9.395 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00162/0.5688, allocations: 0.7478 MB / 447 MB, free: 8.812 MB / 362.7 MB Notification: Performance of pre-optimization done (n=49): time 4.685e-06/0.5688, allocations: 0 / 447 MB, free: 8.812 MB / 362.7 MB Notification: Performance of matching and sorting (n=51): time 0.008706/0.5775, allocations: 3.314 MB / 450.3 MB, free: 6.035 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.757e-05/0.5776, allocations: 89.11 kB / 450.4 MB, free: 5.93 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009257/0.5786, allocations: 0.5254 MB / 450.9 MB, free: 5.488 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002186/0.5788, allocations: 51.19 kB / 451 MB, free: 5.445 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002839/0.5791, allocations: 296.1 kB / 451.3 MB, free: 5.254 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002835/0.5794, allocations: 170.5 kB / 451.4 MB, free: 5.113 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001015/0.5795, allocations: 14.81 kB / 451.5 MB, free: 5.109 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.000233/0.5798, allocations: 376.6 kB / 451.8 MB, free: 4.758 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001209/0.581, allocations: 0.5179 MB / 452.3 MB, free: 4.402 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00129/0.5823, allocations: 0.5984 MB / 452.9 MB, free: 3.949 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001068/0.5834, allocations: 446.9 kB / 453.4 MB, free: 3.562 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.614e-06/0.5834, allocations: 0 / 453.4 MB, free: 3.562 MB / 362.7 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.004679/0.5881, allocations: 1.69 MB / 455.1 MB, free: 1.855 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.928e-05/0.5882, allocations: 7.953 kB / 455.1 MB, free: 1.848 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.69e-05/0.5882, allocations: 12 kB / 455.1 MB, free: 1.836 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007759/0.596, allocations: 4.126 MB / 459.2 MB, free: 13.7 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000746/0.5968, allocations: 123.8 kB / 459.3 MB, free: 13.57 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01036/0.6072, allocations: 5.396 MB / 464.7 MB, free: 7.887 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001872/0.6091, allocations: 295.7 kB / 465 MB, free: 7.598 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002443/0.6094, allocations: 104 kB / 465.1 MB, free: 7.496 MB / 378.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.0003822/0.6098, allocations: 143.3 kB / 465.3 MB, free: 7.352 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002332/0.61, allocations: 79.11 kB / 465.3 MB, free: 7.273 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004301/0.6143, allocations: 1.478 MB / 466.8 MB, free: 5.77 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.473e-05/0.6144, allocations: 4 kB / 466.8 MB, free: 5.766 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.075e-06/0.6144, allocations: 4 kB / 466.8 MB, free: 5.762 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.436e-05/0.6144, allocations: 3.984 kB / 466.8 MB, free: 5.758 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006695/0.6211, allocations: 2.532 MB / 469.4 MB, free: 3.152 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.109e-06/0.6212, allocations: 0 / 469.4 MB, free: 3.152 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007163/0.6219, allocations: 99.95 kB / 469.5 MB, free: 3.055 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00766/0.6296, allocations: 4.153 MB / 473.6 MB, free: 14.89 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001813/0.6298, allocations: 35.95 kB / 473.6 MB, free: 14.85 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009385/0.6392, allocations: 5.115 MB / 478.8 MB, free: 9.438 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.397e-06/0.6393, allocations: 4.062 kB / 478.8 MB, free: 9.434 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005971/0.6452, allocations: 2.26 MB / 481 MB, free: 7.113 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008016/0.6461, allocations: 308.3 kB / 481.3 MB, free: 6.793 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002303/0.6463, allocations: 27.95 kB / 481.4 MB, free: 6.766 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001862/0.6482, allocations: 311.7 kB / 481.7 MB, free: 6.461 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002167/0.6504, allocations: 0.651 MB / 482.3 MB, free: 5.809 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002142/0.6506, allocations: 91.95 kB / 482.4 MB, free: 5.719 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0009214/0.6516, allocations: 0.5108 MB / 482.9 MB, free: 5.215 MB / 394.7 MB Notification: Performance of sort global known variables: time 7.87e-07/0.6516, allocations: 0 / 482.9 MB, free: 5.215 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001255/0.6528, allocations: 236 kB / 483.1 MB, free: 4.984 MB / 394.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.0004109/0.6533, allocations: 171 kB / 483.3 MB, free: 4.809 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.003421/0.6567, allocations: 1.332 MB / 484.6 MB, free: 3.449 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 8.639e-06/0.6568, allocations: 0 / 484.6 MB, free: 3.449 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00215/0.6589, allocations: 0.8281 MB / 485.5 MB, free: 2.602 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007159/0.6597, allocations: 59.45 kB / 485.5 MB, free: 2.543 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006079/0.6658, allocations: 1.865 MB / 487.4 MB, free: 0.6406 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008049/0.6666, allocations: 0.934 MB / 488.3 MB, free: 15.68 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.000342/0.667, allocations: 35.28 kB / 488.4 MB, free: 15.65 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001697/0.6672, allocations: 35.36 kB / 488.4 MB, free: 15.62 MB / 410.7 MB Notification: Performance of SimCode: time 1.701e-06/0.6672, allocations: 4 kB / 488.4 MB, free: 15.61 MB / 410.7 MB Notification: Performance of Templates: time 0.04658/0.7138, allocations: 20.62 MB / 0.4971 GB, free: 10.9 MB / 426.7 MB