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.1_cpp_Modelica.Mechanics.Translational.Examples.Friction") Notification: Performance of loadModel(Modelica): time 1.569/1.569, allocations: 171.2 MB / 183.8 MB, free: 11.95 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 2.91e-05/2.92e-05, allocations: 0 / 225 MB, free: 2.711 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2504/0.2504, allocations: 38.77 MB / 263.7 MB, free: 9.871 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1056/0.3561, allocations: 70.95 MB / 334.7 MB, free: 2.816 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000237/0.3564, allocations: 75.95 kB / 334.8 MB, free: 2.742 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05724/0.4137, allocations: 13.34 MB / 348.1 MB, free: 5.363 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.283e-06/0.4137, allocations: 0 / 348.1 MB, free: 5.363 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.693e-05/0.4138, allocations: 12 kB / 348.1 MB, free: 5.352 MB / 298.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.003334/0.4171, allocations: 1.11 MB / 349.2 MB, free: 4.191 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.564e-05/0.4172, allocations: 11.97 kB / 349.2 MB, free: 4.18 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000306/0.4175, allocations: 91 kB / 349.3 MB, free: 4.09 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001268/0.4188, allocations: 0.5769 MB / 349.9 MB, free: 3.473 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.155e-05/0.4189, allocations: 36.72 kB / 349.9 MB, free: 3.438 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002109/0.4191, allocations: 44 kB / 350 MB, free: 3.395 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003008/0.4221, allocations: 1.446 MB / 351.4 MB, free: 1.93 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.762e-05/0.4222, allocations: 4 kB / 351.4 MB, free: 1.926 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000172/0.4223, allocations: 24 kB / 351.5 MB, free: 1.902 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.324e-05/0.4224, allocations: 8 kB / 351.5 MB, free: 1.895 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004235/0.4266, allocations: 2.156 MB / 353.6 MB, free: 15.74 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008419/0.4351, allocations: 3.144 MB / 356.8 MB, free: 12.51 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002183/0.4373, allocations: 1.024 MB / 357.8 MB, free: 11.47 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00165/0.439, allocations: 0.8645 MB / 358.7 MB, free: 10.6 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.167e-05/0.4391, allocations: 8.5 kB / 358.7 MB, free: 10.59 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002179/0.4413, allocations: 1.122 MB / 359.8 MB, free: 9.445 MB / 314.7 MB Notification: Performance of pre-optimization done (n=47): time 6.269e-06/0.4413, allocations: 3.984 kB / 359.8 MB, free: 9.441 MB / 314.7 MB Notification: Performance of matching and sorting (n=49): time 0.01241/0.4537, allocations: 5.724 MB / 365.5 MB, free: 3.609 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.573e-05/0.4538, allocations: 85.09 kB / 365.6 MB, free: 3.508 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001719/0.4555, allocations: 0.7923 MB / 366.4 MB, free: 2.711 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002498/0.4558, allocations: 61.69 kB / 366.5 MB, free: 2.645 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002818/0.4561, allocations: 310.8 kB / 366.8 MB, free: 2.34 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002906/0.4564, allocations: 169.9 kB / 366.9 MB, free: 2.172 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001432/0.4566, allocations: 24 kB / 366.9 MB, free: 2.148 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001907/0.4568, allocations: 330.8 kB / 367.3 MB, free: 1.816 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002028/0.4588, allocations: 1.048 MB / 368.3 MB, free: 0.7695 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.218/0.6768, allocations: 1.129 MB / 369.4 MB, free: 93.45 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002257/0.6791, allocations: 0.9669 MB / 370.4 MB, free: 93.45 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.841e-06/0.6792, allocations: 0 / 370.4 MB, free: 93.45 MB / 314.7 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.006463/0.6856, allocations: 3.265 MB / 373.7 MB, free: 93.38 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.653e-05/0.6857, allocations: 6.812 kB / 373.7 MB, free: 93.38 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.262e-05/0.6857, allocations: 10.61 kB / 373.7 MB, free: 93.38 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0141/0.6998, allocations: 11.42 MB / 385.1 MB, free: 87.07 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007604/0.7006, allocations: 134.2 kB / 385.2 MB, free: 86.95 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01029/0.7109, allocations: 7.114 MB / 392.4 MB, free: 79.62 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001783/0.7128, allocations: 301.4 kB / 392.7 MB, free: 79.33 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001997/0.713, allocations: 116 kB / 392.8 MB, free: 79.22 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): 58 * 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 5,1 5} Notification: Performance of prepare postOptimizeDAE: time 0.0003084/0.7133, allocations: 154.3 kB / 392.9 MB, free: 79.07 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000234/0.7136, allocations: 78.98 kB / 393 MB, free: 79.03 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002351/0.7138, allocations: 102.3 kB / 393.1 MB, free: 78.92 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.222e-06/0.7138, allocations: 4.938 kB / 393.1 MB, free: 78.91 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.612e-06/0.7139, allocations: 3.125 kB / 393.1 MB, free: 78.91 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.697e-06/0.7139, allocations: 3.984 kB / 393.1 MB, free: 78.91 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008283/0.7222, allocations: 4.511 MB / 397.6 MB, free: 74.36 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.077e-06/0.7222, allocations: 0 / 397.6 MB, free: 74.36 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006705/0.7229, allocations: 99.92 kB / 397.7 MB, free: 74.27 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01383/0.7368, allocations: 11.32 MB / 409 MB, free: 62.92 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000179/0.737, allocations: 43.97 kB / 409.1 MB, free: 62.88 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009217/0.7462, allocations: 6.822 MB / 415.9 MB, free: 55.78 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.033e-06/0.7463, allocations: 0.7656 kB / 415.9 MB, free: 55.78 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007348/0.7536, allocations: 4.293 MB / 420.2 MB, free: 51.45 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009336/0.7546, allocations: 419.3 kB / 420.6 MB, free: 51.02 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002438/0.7549, allocations: 28 kB / 420.6 MB, free: 50.99 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001754/0.7566, allocations: 307.7 kB / 420.9 MB, free: 50.69 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001917/0.7586, allocations: 0.6617 MB / 421.6 MB, free: 50.03 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002223/0.7588, allocations: 104 kB / 421.7 MB, free: 49.93 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0008891/0.7597, allocations: 0.6241 MB / 422.3 MB, free: 49.31 MB / 314.7 MB Notification: Performance of sort global known variables: time 8.36e-07/0.7597, allocations: 0 / 422.3 MB, free: 49.31 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001104/0.7608, allocations: 221.7 kB / 422.5 MB, free: 49.1 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * 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 (34): * Single equations (assignments): 31 * 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.00031/0.7612, allocations: 150.7 kB / 422.7 MB, free: 48.95 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002261/0.7635, allocations: 1.64 MB / 424.3 MB, free: 47.29 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 6.172e-06/0.7635, allocations: 0 / 424.3 MB, free: 47.29 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00136/0.7649, allocations: 0.9007 MB / 425.2 MB, free: 46.38 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006255/0.7655, allocations: 72.88 kB / 425.3 MB, free: 46.31 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005149/0.7707, allocations: 2.036 MB / 427.3 MB, free: 44.25 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004507/0.7712, allocations: 0.9338 MB / 428.3 MB, free: 43.29 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002922/0.7715, allocations: 55.42 kB / 428.3 MB, free: 43.24 MB / 314.7 MB Notification: Performance of SimCode: time 2.107e-06/0.7715, allocations: 0 / 428.3 MB, free: 43.24 MB / 314.7 MB Notification: Performance of Templates: time 0.01976/0.7913, allocations: 13.38 MB / 441.7 MB, free: 29.86 MB / 314.7 MB