Running command: translateModel(Modelica.Mechanics.Translational.Examples.Brake,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.Brake") Notification: Performance of loadModel(Modelica): time 1.939/1.939, allocations: 225.8 MB / 239.3 MB, free: 11.17 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.308e-05/3.318e-05, allocations: 6.031 kB / 292.1 MB, free: 8.852 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09306/0.09311, allocations: 50.42 MB / 342.5 MB, free: 6.414 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3576/0.4508, allocations: 79.1 MB / 421.6 MB, free: 15.04 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000209/0.4511, allocations: 66.83 kB / 421.7 MB, free: 15.01 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02282/0.4739, allocations: 5.646 MB / 427.4 MB, free: 10.05 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.967e-06/0.4739, allocations: 0 / 427.4 MB, free: 10.05 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.416e-05/0.474, allocations: 8 kB / 427.4 MB, free: 10.05 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 69 * Number of variables: 69 Notification: Performance of Generate backend data structure: time 0.001306/0.4753, allocations: 0.593 MB / 428 MB, free: 9.426 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.211e-05/0.4753, allocations: 8.031 kB / 428 MB, free: 9.418 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000115/0.4755, allocations: 34.81 kB / 428 MB, free: 9.387 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004225/0.4759, allocations: 271.8 kB / 428.3 MB, free: 9.102 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.17e-05/0.476, allocations: 22.69 kB / 428.3 MB, free: 9.086 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.476e-05/0.4761, allocations: 34.53 kB / 428.3 MB, free: 9.062 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007948/0.4769, allocations: 343.9 kB / 428.7 MB, free: 8.824 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.151e-05/0.4769, allocations: 0 / 428.7 MB, free: 8.824 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.402e-05/0.477, allocations: 17.06 kB / 428.7 MB, free: 8.816 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.324e-05/0.477, allocations: 7.953 kB / 428.7 MB, free: 8.809 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008208/0.4779, allocations: 337 kB / 429 MB, free: 8.586 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002771/0.4806, allocations: 1.123 MB / 430.1 MB, free: 7.594 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006086/0.4813, allocations: 276.2 kB / 430.4 MB, free: 7.402 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003989/0.4817, allocations: 176.8 kB / 430.6 MB, free: 7.297 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.512e-05/0.4818, allocations: 4 kB / 430.6 MB, free: 7.293 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.549e-05/0.4818, allocations: 42.56 kB / 430.6 MB, free: 7.246 MB / 346.7 MB Notification: Performance of pre-optimization done (n=41): time 4.375e-06/0.4818, allocations: 0 / 430.6 MB, free: 7.246 MB / 346.7 MB Notification: Performance of matching and sorting (n=47): time 0.003689/0.4855, allocations: 1.413 MB / 432 MB, free: 6.023 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.052e-05/0.4856, allocations: 59.8 kB / 432.1 MB, free: 5.953 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002631/0.4859, allocations: 186.9 kB / 432.3 MB, free: 5.793 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 7.213e-05/0.486, allocations: 43.64 kB / 432.3 MB, free: 5.754 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001479/0.4862, allocations: 212.1 kB / 432.5 MB, free: 5.562 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001816/0.4864, allocations: 155.4 kB / 432.7 MB, free: 5.434 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.347e-05/0.4864, allocations: 14.69 kB / 432.7 MB, free: 5.426 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001782/0.4866, allocations: 337.2 kB / 433 MB, free: 5.098 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004316/0.487, allocations: 170 kB / 433.2 MB, free: 5 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005022/0.4876, allocations: 251.2 kB / 433.4 MB, free: 4.809 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003746/0.488, allocations: 149.9 kB / 433.6 MB, free: 4.711 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.754e-06/0.488, allocations: 4 kB / 433.6 MB, free: 4.707 MB / 346.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.00186/0.4898, allocations: 0.6069 MB / 434.2 MB, free: 4.246 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.292e-05/0.4899, allocations: 4 kB / 434.2 MB, free: 4.242 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.58e-05/0.4899, allocations: 7.953 kB / 434.2 MB, free: 4.234 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009582/0.4909, allocations: 374.3 kB / 434.6 MB, free: 3.949 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003664/0.4913, allocations: 71.59 kB / 434.6 MB, free: 3.883 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001655/0.493, allocations: 1.31 MB / 435.9 MB, free: 2.637 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005835/0.4936, allocations: 102.2 kB / 436 MB, free: 2.547 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.475e-05/0.4937, allocations: 19.5 kB / 436.1 MB, free: 2.531 MB / 346.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 (49): * Single equations (assignments): 45 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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.0002064/0.4939, allocations: 136.5 kB / 436.2 MB, free: 2.406 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001136/0.494, allocations: 27.72 kB / 436.2 MB, free: 2.379 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001863/0.4959, allocations: 0.6255 MB / 436.8 MB, free: 1.906 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.116e-05/0.4959, allocations: 11.95 kB / 436.9 MB, free: 1.895 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.355e-06/0.4959, allocations: 0 / 436.9 MB, free: 1.895 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.397e-05/0.496, allocations: 7.984 kB / 436.9 MB, free: 1.887 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003499/0.4995, allocations: 1.278 MB / 438.1 MB, free: 0.793 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.381e-06/0.4995, allocations: 0 / 438.1 MB, free: 0.793 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00042/0.4999, allocations: 62.66 kB / 438.2 MB, free: 0.7344 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000859/0.5008, allocations: 353.1 kB / 438.5 MB, free: 468 kB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.129e-05/0.5009, allocations: 19.41 kB / 438.6 MB, free: 456 kB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001543/0.5025, allocations: 1.264 MB / 439.8 MB, free: 15.22 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.32e-06/0.5025, allocations: 160 / 439.8 MB, free: 15.22 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002229/0.5047, allocations: 0.8987 MB / 440.7 MB, free: 14.48 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002886/0.5051, allocations: 149.5 kB / 440.9 MB, free: 14.33 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001053/0.5052, allocations: 18.06 kB / 440.9 MB, free: 14.32 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004276/0.5056, allocations: 54.7 kB / 440.9 MB, free: 14.27 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002618/0.5059, allocations: 95.41 kB / 441 MB, free: 14.19 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.772e-05/0.506, allocations: 30.69 kB / 441.1 MB, free: 14.16 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002276/0.5062, allocations: 157.1 kB / 441.2 MB, free: 14.03 MB / 362.7 MB Notification: Performance of sort global known variables: time 9.34e-07/0.5062, allocations: 0 / 441.2 MB, free: 14.03 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0006443/0.5069, allocations: 105 kB / 441.3 MB, free: 13.94 MB / 362.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 (35): * Single equations (assignments): 33 * 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.0003148/0.5072, allocations: 155.7 kB / 441.5 MB, free: 13.79 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001267/0.5085, allocations: 0.4899 MB / 442 MB, free: 13.43 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.573e-06/0.5085, allocations: 0 / 442 MB, free: 13.43 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007243/0.5093, allocations: 268.3 kB / 442.2 MB, free: 13.25 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005015/0.5098, allocations: 53.58 kB / 442.3 MB, free: 13.21 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002613/0.5124, allocations: 0.8772 MB / 443.2 MB, free: 12.37 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00051/0.513, allocations: 0.7803 MB / 443.9 MB, free: 11.57 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001303/0.5131, allocations: 31.42 kB / 444 MB, free: 11.54 MB / 362.7 MB Notification: Performance of SimCode: time 1.801e-06/0.5131, allocations: 4 kB / 444 MB, free: 11.53 MB / 362.7 MB Notification: Performance of Templates: time 0.01235/0.5255, allocations: 6.378 MB / 450.4 MB, free: 5.191 MB / 362.7 MB