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_cpp_Modelica.Mechanics.Translational.Examples.Friction") Notification: Performance of loadModel(Modelica): time 2.242/2.242, allocations: 224.7 MB / 241.1 MB, free: 1.699 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.051e-05/3.043e-05, allocations: 0 / 294.6 MB, free: 11.43 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1156/0.1157, allocations: 50.42 MB / 345 MB, free: 8.965 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Friction): time 0.004028/0.1198, allocations: 2.392 MB / 347.4 MB, free: 6.551 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.002722/0.1226, allocations: 0.9981 MB / 348.4 MB, free: 5.551 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003505/0.123, allocations: 4 kB / 348.4 MB, free: 5.547 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003416/0.1234, allocations: 59.59 kB / 348.4 MB, free: 5.488 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004206/0.1238, allocations: 131.6 kB / 348.6 MB, free: 5.359 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001249/0.1251, allocations: 323.2 kB / 348.9 MB, free: 5.043 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008159/0.1259, allocations: 356.4 kB / 349.2 MB, free: 4.691 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001706/0.1261, allocations: 48.38 kB / 349.3 MB, free: 4.645 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005877/0.1267, allocations: 295.3 kB / 349.6 MB, free: 4.355 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002241/0.1289, allocations: 1.397 MB / 351 MB, free: 2.957 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003522/0.1293, allocations: 71.95 kB / 351 MB, free: 2.887 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001989/0.1296, allocations: 39.98 kB / 351.1 MB, free: 2.848 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002796/0.1298, allocations: 191.4 kB / 351.2 MB, free: 2.66 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001985/0.1301, allocations: 48 kB / 351.3 MB, free: 2.613 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0009993/0.1311, allocations: 0.6003 MB / 351.9 MB, free: 2.012 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.527e-06/0.1311, allocations: 0 / 351.9 MB, free: 2.012 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.615e-06/0.1311, allocations: 0 / 351.9 MB, free: 2.012 MB / 282.7 MB Notification: Performance of Transformations before backend: time 2.286e-05/0.1311, allocations: 0 / 351.9 MB, free: 2.012 MB / 282.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.006028/0.1372, allocations: 1.221 MB / 353.1 MB, free: 0.7383 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.78e-05/0.1373, allocations: 12.03 kB / 353.1 MB, free: 0.7266 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004214/0.1377, allocations: 83.02 kB / 353.2 MB, free: 0.6445 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001061/0.1388, allocations: 402.7 kB / 353.6 MB, free: 216 kB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.378e-05/0.1389, allocations: 29 kB / 353.6 MB, free: 184 kB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002075/0.1391, allocations: 36 kB / 353.7 MB, free: 148 kB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004285/0.1434, allocations: 1.165 MB / 354.8 MB, free: 14.97 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.917e-05/0.1435, allocations: 4 kB / 354.8 MB, free: 14.96 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001581/0.1437, allocations: 15.98 kB / 354.8 MB, free: 14.95 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.436e-05/0.1437, allocations: 11.95 kB / 354.9 MB, free: 14.94 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006988/0.1507, allocations: 1.775 MB / 356.6 MB, free: 13.16 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01016/0.161, allocations: 2.549 MB / 359.2 MB, free: 10.54 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004159/0.1652, allocations: 0.9458 MB / 360.1 MB, free: 9.57 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001838/0.1654, allocations: 8 kB / 360.1 MB, free: 9.562 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003559/0.169, allocations: 0.9122 MB / 361.1 MB, free: 8.633 MB / 298.7 MB Notification: Performance of pre-optimization done (n=47): time 4.849e-06/0.1691, allocations: 4 kB / 361.1 MB, free: 8.629 MB / 298.7 MB Notification: Performance of matching and sorting (n=49): time 0.02663/0.1957, allocations: 6.018 MB / 367.1 MB, free: 2.449 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.846e-05/0.1959, allocations: 89.06 kB / 367.2 MB, free: 2.344 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002351/0.1982, allocations: 0.8391 MB / 368 MB, free: 1.496 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000315/0.1986, allocations: 49.69 kB / 368 MB, free: 1.441 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004003/0.199, allocations: 314.8 kB / 368.4 MB, free: 1.133 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003542/0.1994, allocations: 165.9 kB / 368.5 MB, free: 0.9688 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000106/0.1995, allocations: 12 kB / 368.5 MB, free: 0.957 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0002109/0.1997, allocations: 334.8 kB / 368.9 MB, free: 0.6211 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00307/0.2028, allocations: 0.8604 MB / 369.7 MB, free: 15.75 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003122/0.206, allocations: 0.9557 MB / 370.7 MB, free: 14.77 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002658/0.2087, allocations: 0.7831 MB / 371.5 MB, free: 13.99 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.29e-06/0.2087, allocations: 0 / 371.5 MB, free: 13.99 MB / 314.7 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.008632/0.2174, allocations: 2.448 MB / 373.9 MB, free: 11.53 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.877e-05/0.2175, allocations: 10.66 kB / 373.9 MB, free: 11.52 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.479e-05/0.2175, allocations: 4.031 kB / 373.9 MB, free: 11.52 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004309/0.2218, allocations: 1.904 MB / 375.8 MB, free: 9.605 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001055/0.2229, allocations: 123.8 kB / 375.9 MB, free: 9.484 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01231/0.2353, allocations: 6.455 MB / 382.4 MB, free: 2.73 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002853/0.2382, allocations: 299.8 kB / 382.7 MB, free: 2.438 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001465/0.2384, allocations: 31.98 kB / 382.7 MB, free: 2.406 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.0005791/0.239, allocations: 252 kB / 383 MB, free: 2.152 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002108/0.2392, allocations: 71.16 kB / 383 MB, free: 2.082 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00029/0.2395, allocations: 102.4 kB / 383.1 MB, free: 1.969 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.222e-05/0.2395, allocations: 4 kB / 383.1 MB, free: 1.965 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.348e-06/0.2395, allocations: 7.938 kB / 383.1 MB, free: 1.957 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.093e-05/0.2395, allocations: 3.984 kB / 383.2 MB, free: 1.953 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007077/0.2466, allocations: 3.131 MB / 386.3 MB, free: 14.75 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.147e-05/0.2467, allocations: 0 / 386.3 MB, free: 14.75 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009715/0.2477, allocations: 99.92 kB / 386.4 MB, free: 14.65 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003142/0.2509, allocations: 1.857 MB / 388.2 MB, free: 12.79 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001747/0.2511, allocations: 31.95 kB / 388.3 MB, free: 12.76 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01164/0.2628, allocations: 6.188 MB / 394.5 MB, free: 6.281 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.276e-06/0.2628, allocations: 0 / 394.5 MB, free: 6.281 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009326/0.2722, allocations: 3.311 MB / 397.8 MB, free: 2.914 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006012/0.2728, allocations: 208.1 kB / 398 MB, free: 2.691 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002114/0.273, allocations: 23.95 kB / 398 MB, free: 2.668 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003364/0.2764, allocations: 351.6 kB / 398.3 MB, free: 2.324 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002803/0.2793, allocations: 0.6471 MB / 399 MB, free: 1.676 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002134/0.2795, allocations: 23.97 kB / 399 MB, free: 1.652 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.001199/0.2808, allocations: 0.6748 MB / 399.7 MB, free: 0.9844 MB / 330.7 MB Notification: Performance of sort global known variables: time 8.82e-07/0.2808, allocations: 3.938 kB / 399.7 MB, free: 0.9805 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001291/0.2821, allocations: 188 kB / 399.9 MB, free: 0.7969 MB / 330.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.0005005/0.2826, allocations: 160.9 kB / 400 MB, free: 0.6328 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.2766/0.5593, allocations: 1.938 MB / 402 MB, free: 54.02 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 8.436e-06/0.5594, allocations: 0.7188 kB / 402 MB, free: 54.02 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002997/0.5624, allocations: 1.061 MB / 403 MB, free: 53.79 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007837/0.5632, allocations: 57.36 kB / 403.1 MB, free: 53.79 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007553/0.5708, allocations: 2.309 MB / 405.4 MB, free: 52.98 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000643/0.5715, allocations: 0.9301 MB / 406.3 MB, free: 52.28 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003516/0.5719, allocations: 41.23 kB / 406.4 MB, free: 52.27 MB / 330.7 MB Notification: Performance of SimCode: time 1.473e-06/0.5719, allocations: 3.938 kB / 406.4 MB, free: 52.27 MB / 330.7 MB Notification: Performance of Templates: time 0.02868/0.6006, allocations: 13.06 MB / 419.4 MB, free: 45.88 MB / 330.7 MB