Running command: translateModel(Modelica.Mechanics.Translational.Examples.Friction,tolerance=1e-06,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.Friction") Notification: Performance of loadModel(Modelica): time 1.927/1.927, allocations: 225.8 MB / 239.3 MB, free: 11.18 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.87e-05/3.903e-05, allocations: 4 kB / 292.1 MB, free: 8.844 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1095/0.1096, allocations: 50.42 MB / 342.5 MB, free: 6.402 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3688/0.4784, allocations: 82.6 MB / 425.2 MB, free: 11.57 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002299/0.4787, allocations: 71.95 kB / 425.2 MB, free: 11.54 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06027/0.539, allocations: 13.87 MB / 439.1 MB, free: 15.3 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.68e-06/0.539, allocations: 0 / 439.1 MB, free: 15.3 MB / 362.7 MB Notification: Performance of Transformations before backend: time 4.341e-05/0.5391, allocations: 20 kB / 439.1 MB, free: 15.28 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.003373/0.5424, allocations: 1.078 MB / 440.2 MB, free: 14.2 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.481e-05/0.5425, allocations: 8.031 kB / 440.2 MB, free: 14.19 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003472/0.5429, allocations: 75.06 kB / 440.3 MB, free: 14.12 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001075/0.544, allocations: 0.4919 MB / 440.8 MB, free: 13.64 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.6e-05/0.544, allocations: 26.47 kB / 440.8 MB, free: 13.62 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00018/0.5442, allocations: 38.97 kB / 440.8 MB, free: 13.6 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002103/0.5463, allocations: 0.8773 MB / 441.7 MB, free: 12.93 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.506e-05/0.5464, allocations: 0 / 441.7 MB, free: 12.93 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001325/0.5465, allocations: 18.11 kB / 441.7 MB, free: 12.93 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.67e-05/0.5466, allocations: 8 kB / 441.7 MB, free: 12.92 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002462/0.549, allocations: 1.035 MB / 442.8 MB, free: 12.17 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007078/0.5562, allocations: 2.406 MB / 445.2 MB, free: 10.11 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001504/0.5577, allocations: 0.635 MB / 445.8 MB, free: 9.652 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00121/0.5589, allocations: 0.503 MB / 446.3 MB, free: 9.301 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001016/0.5591, allocations: 11.11 kB / 446.3 MB, free: 9.293 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00174/0.5608, allocations: 0.7478 MB / 447.1 MB, free: 8.711 MB / 362.7 MB Notification: Performance of pre-optimization done (n=49): time 4.727e-06/0.5609, allocations: 0 / 447.1 MB, free: 8.711 MB / 362.7 MB Notification: Performance of matching and sorting (n=51): time 0.008952/0.5698, allocations: 3.315 MB / 450.4 MB, free: 5.93 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.144e-05/0.5699, allocations: 84.23 kB / 450.5 MB, free: 5.832 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009343/0.5709, allocations: 0.5376 MB / 451 MB, free: 5.379 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002441/0.5712, allocations: 48.06 kB / 451 MB, free: 5.336 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002493/0.5714, allocations: 316.1 kB / 451.4 MB, free: 5.113 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000262/0.5717, allocations: 169.6 kB / 451.5 MB, free: 4.973 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001011/0.5718, allocations: 15.25 kB / 451.5 MB, free: 4.969 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001813/0.572, allocations: 333.7 kB / 451.9 MB, free: 4.641 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001193/0.5732, allocations: 0.5124 MB / 452.4 MB, free: 4.289 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001277/0.5745, allocations: 0.5973 MB / 453 MB, free: 3.84 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001048/0.5756, allocations: 450.4 kB / 453.4 MB, free: 3.512 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.585e-06/0.5756, allocations: 4 kB / 453.4 MB, free: 3.508 MB / 362.7 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.004446/0.5801, allocations: 1.629 MB / 455 MB, free: 2.195 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.055e-05/0.5801, allocations: 11.95 kB / 455.1 MB, free: 2.184 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.74e-05/0.5802, allocations: 15.98 kB / 455.1 MB, free: 2.168 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007931/0.5881, allocations: 4.133 MB / 459.2 MB, free: 14.02 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007658/0.5889, allocations: 115.9 kB / 459.3 MB, free: 13.9 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01072/0.5997, allocations: 5.395 MB / 464.7 MB, free: 8.219 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001863/0.6016, allocations: 295.8 kB / 465 MB, free: 7.93 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002578/0.6019, allocations: 99.98 kB / 465.1 MB, free: 7.832 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.0003946/0.6023, allocations: 145.7 kB / 465.2 MB, free: 7.688 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000246/0.6025, allocations: 79.09 kB / 465.3 MB, free: 7.609 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004269/0.6068, allocations: 1.49 MB / 466.8 MB, free: 6.094 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.508e-05/0.6069, allocations: 7.984 kB / 466.8 MB, free: 6.086 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.618e-06/0.6069, allocations: 0 / 466.8 MB, free: 6.086 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.405e-05/0.6069, allocations: 0 / 466.8 MB, free: 6.086 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006796/0.6137, allocations: 2.532 MB / 469.3 MB, free: 3.48 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.893e-06/0.6138, allocations: 0 / 469.3 MB, free: 3.48 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007137/0.6145, allocations: 99.97 kB / 469.4 MB, free: 3.383 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.007802/0.6223, allocations: 4.149 MB / 473.6 MB, free: 15.22 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001875/0.6226, allocations: 39.95 kB / 473.6 MB, free: 15.18 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009358/0.6319, allocations: 5.106 MB / 478.7 MB, free: 9.773 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.336e-06/0.632, allocations: 384 / 478.7 MB, free: 9.773 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005984/0.638, allocations: 2.264 MB / 481 MB, free: 7.449 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008804/0.6389, allocations: 308.2 kB / 481.3 MB, free: 7.129 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002321/0.6391, allocations: 28.08 kB / 481.3 MB, free: 7.102 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002262/0.6414, allocations: 303.7 kB / 481.6 MB, free: 6.805 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002197/0.6437, allocations: 0.6627 MB / 482.3 MB, free: 6.141 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002889/0.644, allocations: 87.97 kB / 482.4 MB, free: 6.055 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0009702/0.645, allocations: 0.5108 MB / 482.9 MB, free: 5.551 MB / 394.7 MB Notification: Performance of sort global known variables: time 8.26e-07/0.645, allocations: 3.938 kB / 482.9 MB, free: 5.547 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001317/0.6463, allocations: 236 kB / 483.1 MB, free: 5.316 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.0004209/0.6468, allocations: 174.8 kB / 483.3 MB, free: 5.141 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.003167/0.6499, allocations: 1.332 MB / 484.6 MB, free: 3.781 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 6.002e-06/0.65, allocations: 0 / 484.6 MB, free: 3.781 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001845/0.6518, allocations: 0.7887 MB / 485.4 MB, free: 2.973 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006755/0.6525, allocations: 63.44 kB / 485.5 MB, free: 2.91 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008419/0.661, allocations: 1.894 MB / 487.4 MB, free: 0.9727 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001298/0.6623, allocations: 0.934 MB / 488.3 MB, free: 16 kB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004276/0.6628, allocations: 39.47 kB / 488.3 MB, free: 15.97 MB / 410.7 MB Notification: Performance of SimCode: time 6.672e-06/0.6628, allocations: 0 / 488.3 MB, free: 15.97 MB / 410.7 MB Notification: Performance of Templates: time 0.03218/0.695, allocations: 14.96 MB / 0.4915 GB, free: 0.9805 MB / 410.7 MB