Running command: translateModel(Modelica.Mechanics.Translational.Examples.Brake,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_cpp_Modelica.Mechanics.Translational.Examples.Brake") Notification: Performance of loadModel(Modelica): time 1.005/1.005, allocations: 111.2 MB / 123.8 MB, free: 11.2 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 2.934e-05/2.955e-05, allocations: 4 kB / 151.4 MB, free: 15.62 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.165/0.1651, allocations: 25.14 MB / 176.5 MB, free: 20 kB / 138.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.0651/0.2302, allocations: 34.84 MB / 211.4 MB, free: 14.64 MB / 186.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002172/0.2305, allocations: 63.95 kB / 211.4 MB, free: 14.58 MB / 186.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02123/0.2517, allocations: 5.02 MB / 216.5 MB, free: 9.543 MB / 186.7 MB Notification: Performance of FrontEnd: time 4.498e-06/0.2518, allocations: 3.938 kB / 216.5 MB, free: 9.539 MB / 186.7 MB Notification: Performance of Transformations before backend: time 1.74e-05/0.2518, allocations: 11.94 kB / 216.5 MB, free: 9.527 MB / 186.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.001303/0.2531, allocations: 0.588 MB / 217.1 MB, free: 8.895 MB / 186.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.609e-05/0.2532, allocations: 12.03 kB / 217.1 MB, free: 8.883 MB / 186.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001095/0.2533, allocations: 31.62 kB / 217.1 MB, free: 8.852 MB / 186.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004181/0.2538, allocations: 266.2 kB / 217.4 MB, free: 8.551 MB / 186.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.697e-05/0.2538, allocations: 24.56 kB / 217.4 MB, free: 8.527 MB / 186.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.671e-05/0.2539, allocations: 28 kB / 217.4 MB, free: 8.5 MB / 186.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008507/0.2548, allocations: 351.6 kB / 217.8 MB, free: 8.152 MB / 186.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.407e-05/0.2548, allocations: 4 kB / 217.8 MB, free: 8.148 MB / 186.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.668e-05/0.2549, allocations: 12 kB / 217.8 MB, free: 8.137 MB / 186.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.297e-05/0.2549, allocations: 15.95 kB / 217.8 MB, free: 8.121 MB / 186.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009146/0.2558, allocations: 365 kB / 218.1 MB, free: 7.766 MB / 186.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002666/0.2585, allocations: 1.103 MB / 219.3 MB, free: 6.586 MB / 186.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005912/0.2591, allocations: 254.8 kB / 219.5 MB, free: 6.324 MB / 186.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000425/0.2596, allocations: 180.8 kB / 219.7 MB, free: 6.145 MB / 186.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.335e-05/0.2596, allocations: 8 kB / 219.7 MB, free: 6.137 MB / 186.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.904e-05/0.2597, allocations: 42.48 kB / 219.7 MB, free: 6.086 MB / 186.7 MB Notification: Performance of pre-optimization done (n=37): time 3.738e-06/0.2597, allocations: 0 / 219.7 MB, free: 6.086 MB / 186.7 MB Notification: Performance of matching and sorting (n=43): time 0.004005/0.2637, allocations: 1.459 MB / 221.2 MB, free: 4.523 MB / 186.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.609e-05/0.2638, allocations: 59.41 kB / 221.2 MB, free: 4.453 MB / 186.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002961/0.2641, allocations: 196.8 kB / 221.4 MB, free: 4.258 MB / 186.7 MB Notification: Performance of collectPreVariables (initialization): time 7.832e-05/0.2642, allocations: 45.7 kB / 221.5 MB, free: 4.207 MB / 186.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001481/0.2644, allocations: 211.2 kB / 221.7 MB, free: 3.996 MB / 186.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001732/0.2646, allocations: 150 kB / 221.8 MB, free: 3.848 MB / 186.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.385e-05/0.2646, allocations: 12 kB / 221.8 MB, free: 3.836 MB / 186.7 MB Notification: Performance of setup shared object (initialization): time 0.0001615/0.2648, allocations: 326.8 kB / 222.2 MB, free: 3.508 MB / 186.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004637/0.2653, allocations: 189.1 kB / 222.3 MB, free: 3.324 MB / 186.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005419/0.2658, allocations: 267.8 kB / 222.6 MB, free: 3.035 MB / 186.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003888/0.2662, allocations: 157.6 kB / 222.8 MB, free: 2.879 MB / 186.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.628e-06/0.2663, allocations: 3.953 kB / 222.8 MB, free: 2.875 MB / 186.7 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.001894/0.2682, allocations: 0.6459 MB / 223.4 MB, free: 2.219 MB / 186.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.256e-05/0.2682, allocations: 4 kB / 223.4 MB, free: 2.215 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.074e-05/0.2682, allocations: 4 kB / 223.4 MB, free: 2.211 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001205/0.2694, allocations: 0.5052 MB / 223.9 MB, free: 1.699 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003938/0.2699, allocations: 63.91 kB / 224 MB, free: 1.637 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001774/0.2716, allocations: 1.382 MB / 225.4 MB, free: 208 kB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006078/0.2723, allocations: 92.05 kB / 225.5 MB, free: 116 kB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.18e-05/0.2724, allocations: 27.92 kB / 225.5 MB, free: 88 kB / 186.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 16 (brake.free,$PRE.brake.startForward,brake.startForward,$PRE.brake.startBackward,brake.startBackward,brake.locked,$PRE.brake.mode,brake.mode,brake1.free,$PRE.brake1.startForward,brake1.startForward,$PRE.brake1.startBackward,brake1.startBackward,brake1.locked,$PRE.brake1.mode,brake1.mode) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (47): * Single equations (assignments): 45 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 7,1 6} Notification: Performance of prepare postOptimizeDAE: time 0.000217/0.2726, allocations: 133.8 kB / 225.6 MB, free: 15.95 MB / 202.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001089/0.2727, allocations: 31.66 kB / 225.6 MB, free: 15.92 MB / 202.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001269/0.2729, allocations: 47.08 kB / 225.7 MB, free: 15.87 MB / 202.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.532e-06/0.2729, allocations: 4 kB / 225.7 MB, free: 15.87 MB / 202.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.278e-06/0.2729, allocations: 4 kB / 225.7 MB, free: 15.86 MB / 202.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.222e-05/0.2729, allocations: 7.938 kB / 225.7 MB, free: 15.86 MB / 202.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003673/0.2766, allocations: 1.324 MB / 227 MB, free: 14.45 MB / 202.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.119e-05/0.2767, allocations: 7.984 kB / 227 MB, free: 14.44 MB / 202.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004104/0.2771, allocations: 56.08 kB / 227.1 MB, free: 14.39 MB / 202.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001093/0.2782, allocations: 489.3 kB / 227.6 MB, free: 13.9 MB / 202.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.949e-05/0.2783, allocations: 15.98 kB / 227.6 MB, free: 13.89 MB / 202.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001638/0.2799, allocations: 1.323 MB / 228.9 MB, free: 12.51 MB / 202.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.561e-06/0.28, allocations: 4.125 kB / 228.9 MB, free: 12.51 MB / 202.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002339/0.2823, allocations: 0.9526 MB / 229.9 MB, free: 11.49 MB / 202.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002801/0.2826, allocations: 156.7 kB / 230 MB, free: 11.32 MB / 202.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000108/0.2827, allocations: 20.17 kB / 230 MB, free: 11.3 MB / 202.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004301/0.2832, allocations: 51.97 kB / 230.1 MB, free: 11.25 MB / 202.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002685/0.2835, allocations: 99.78 kB / 230.2 MB, free: 11.15 MB / 202.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.974e-05/0.2835, allocations: 23.97 kB / 230.2 MB, free: 11.12 MB / 202.7 MB Notification: Performance of sorting global known variables: time 0.0002265/0.2838, allocations: 161.4 kB / 230.4 MB, free: 10.96 MB / 202.7 MB Notification: Performance of sort global known variables: time 8.18e-07/0.2838, allocations: 0 / 230.4 MB, free: 10.96 MB / 202.7 MB Notification: Performance of remove unused functions: time 0.0006142/0.2844, allocations: 100 kB / 230.5 MB, free: 10.87 MB / 202.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 4 (mass1.s,mass1.v,mass2.s,mass2.v) * Number of discrete variables: 10 (brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode,brake1.free,brake1.startForward,brake1.startBackward,brake1.locked,brake1.mode) * Number of discrete states: 6 (brake1.mode,brake1.startForward,brake1.startBackward,brake.mode,brake.startForward,brake.startBackward) * Top-level inputs: 0 Notification: Strong component statistics for simulation (33): * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 5,1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002842/0.2847, allocations: 150 kB / 230.6 MB, free: 10.71 MB / 202.7 MB Notification: Performance of simCode: created initialization part: time 0.001212/0.286, allocations: 461.2 kB / 231.1 MB, free: 10.26 MB / 202.7 MB Notification: Performance of simCode: created event and clocks part: time 3.516e-06/0.286, allocations: 3.938 kB / 231.1 MB, free: 10.26 MB / 202.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007039/0.2867, allocations: 259.8 kB / 231.3 MB, free: 10 MB / 202.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004795/0.2872, allocations: 37.05 kB / 231.4 MB, free: 9.969 MB / 202.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002656/0.2899, allocations: 0.8745 MB / 232.2 MB, free: 9.055 MB / 202.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005089/0.2904, allocations: 0.7842 MB / 233 MB, free: 8.246 MB / 202.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001383/0.2906, allocations: 27.42 kB / 233 MB, free: 8.219 MB / 202.7 MB Notification: Performance of SimCode: time 1.819e-06/0.2906, allocations: 0 / 233 MB, free: 8.219 MB / 202.7 MB Notification: Performance of Templates: time 0.01214/0.3027, allocations: 5.855 MB / 238.9 MB, free: 2.359 MB / 202.7 MB