Running command: translateModel(Modelica.Mechanics.Translational.Examples.Brake,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4000,variableFilter="time|mass1.s|mass1.v|mass2.s|mass2.v|brake.mode|brake.startBackward|brake.startForward|brake1.mode|brake1.startBackward|brake1.startForward",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake") Notification: Performance of loadModel(Modelica): time 2.104/2.104, allocations: 225.8 MB / 239.4 MB, free: 11.18 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.281e-05/2.29e-05, allocations: 0 / 292.7 MB, free: 8.352 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0904/0.09045, allocations: 50.42 MB / 343.1 MB, free: 5.918 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3561/0.4466, allocations: 79.04 MB / 422.1 MB, free: 15.17 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002047/0.4469, allocations: 64.91 kB / 422.2 MB, free: 15.14 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02307/0.47, allocations: 5.645 MB / 427.8 MB, free: 10.19 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.295e-06/0.47, allocations: 0 / 427.8 MB, free: 10.19 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.588e-05/0.47, allocations: 4 kB / 427.8 MB, free: 10.18 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.001335/0.4714, allocations: 0.6026 MB / 428.4 MB, free: 9.555 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.396e-05/0.4714, allocations: 8.031 kB / 428.4 MB, free: 9.547 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001085/0.4716, allocations: 31.62 kB / 428.5 MB, free: 9.516 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004273/0.472, allocations: 274.6 kB / 428.7 MB, free: 9.23 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.146e-05/0.4721, allocations: 20.38 kB / 428.8 MB, free: 9.215 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.246e-05/0.4722, allocations: 31.28 kB / 428.8 MB, free: 9.195 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007885/0.473, allocations: 342.8 kB / 429.1 MB, free: 8.957 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.672e-05/0.473, allocations: 4 kB / 429.1 MB, free: 8.953 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.309e-05/0.4731, allocations: 8.875 kB / 429.1 MB, free: 8.953 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.592e-05/0.4731, allocations: 11.95 kB / 429.2 MB, free: 8.941 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008173/0.4739, allocations: 342.8 kB / 429.5 MB, free: 8.715 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002795/0.4768, allocations: 1.121 MB / 430.6 MB, free: 7.723 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006172/0.4774, allocations: 281 kB / 430.9 MB, free: 7.527 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004097/0.4778, allocations: 178.1 kB / 431.1 MB, free: 7.418 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.228e-05/0.4779, allocations: 7.125 kB / 431.1 MB, free: 7.414 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.089e-05/0.478, allocations: 34.69 kB / 431.1 MB, free: 7.375 MB / 346.7 MB Notification: Performance of pre-optimization done (n=41): time 4.111e-06/0.478, allocations: 0 / 431.1 MB, free: 7.375 MB / 346.7 MB Notification: Performance of matching and sorting (n=47): time 0.003693/0.4817, allocations: 1.42 MB / 432.5 MB, free: 6.145 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.541e-05/0.4818, allocations: 59.8 kB / 432.6 MB, free: 6.074 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002528/0.482, allocations: 190.1 kB / 432.8 MB, free: 5.914 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 7.581e-05/0.4821, allocations: 41.44 kB / 432.8 MB, free: 5.875 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001195/0.4823, allocations: 153.3 kB / 432.9 MB, free: 5.742 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001851/0.4825, allocations: 158.2 kB / 433.1 MB, free: 5.609 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.553e-05/0.4825, allocations: 6.484 kB / 433.1 MB, free: 5.609 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001905/0.4827, allocations: 348.6 kB / 433.5 MB, free: 5.273 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004247/0.4832, allocations: 169.7 kB / 433.6 MB, free: 5.176 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004997/0.4837, allocations: 250.3 kB / 433.9 MB, free: 4.988 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003624/0.484, allocations: 130.4 kB / 434 MB, free: 4.906 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.791e-06/0.4841, allocations: 4 kB / 434 MB, free: 4.902 MB / 346.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001872/0.486, allocations: 0.6221 MB / 434.6 MB, free: 4.43 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.286e-05/0.486, allocations: 9.406 kB / 434.6 MB, free: 4.422 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.405e-05/0.486, allocations: 7.953 kB / 434.6 MB, free: 4.414 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009568/0.487, allocations: 375.1 kB / 435 MB, free: 4.125 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003753/0.4874, allocations: 74.64 kB / 435.1 MB, free: 4.055 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00164/0.4891, allocations: 1.308 MB / 436.4 MB, free: 2.812 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005952/0.4897, allocations: 101.9 kB / 436.5 MB, free: 2.723 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.913e-05/0.4898, allocations: 19.5 kB / 436.5 MB, free: 2.707 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.0002085/0.49, allocations: 141.8 kB / 436.6 MB, free: 2.578 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001142/0.4901, allocations: 31.62 kB / 436.7 MB, free: 2.547 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001834/0.492, allocations: 0.623 MB / 437.3 MB, free: 2.078 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.155e-05/0.492, allocations: 7.953 kB / 437.3 MB, free: 2.07 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.94e-06/0.492, allocations: 0 / 437.3 MB, free: 2.07 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.019e-05/0.492, allocations: 3.984 kB / 437.3 MB, free: 2.066 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003469/0.4955, allocations: 1.28 MB / 438.6 MB, free: 0.9688 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.716e-06/0.4955, allocations: 0 / 438.6 MB, free: 0.9688 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004155/0.496, allocations: 63.16 kB / 438.6 MB, free: 0.9102 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008503/0.4968, allocations: 343.9 kB / 439 MB, free: 0.6406 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.169e-05/0.4969, allocations: 17.72 kB / 439 MB, free: 0.6289 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001524/0.4985, allocations: 1.271 MB / 440.3 MB, free: 15.4 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.734e-06/0.4985, allocations: 0 / 440.3 MB, free: 15.4 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002208/0.5007, allocations: 0.8959 MB / 441.2 MB, free: 14.66 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002757/0.501, allocations: 155.8 kB / 441.3 MB, free: 14.5 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001082/0.5011, allocations: 18.88 kB / 441.3 MB, free: 14.5 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004316/0.5016, allocations: 51.89 kB / 441.4 MB, free: 14.45 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002592/0.5019, allocations: 96.72 kB / 441.5 MB, free: 14.36 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.612e-05/0.5019, allocations: 30.56 kB / 441.5 MB, free: 14.34 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002104/0.5022, allocations: 154 kB / 441.7 MB, free: 14.21 MB / 362.7 MB Notification: Performance of sort global known variables: time 8.77e-07/0.5022, allocations: 4 kB / 441.7 MB, free: 14.2 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0006419/0.5028, allocations: 107.9 kB / 441.8 MB, free: 14.11 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.0003061/0.5032, allocations: 146.9 kB / 441.9 MB, free: 13.97 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001245/0.5044, allocations: 0.4891 MB / 442.4 MB, free: 13.61 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.708e-06/0.5044, allocations: 0 / 442.4 MB, free: 13.61 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007374/0.5052, allocations: 279.6 kB / 442.7 MB, free: 13.43 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004679/0.5057, allocations: 45.42 kB / 442.7 MB, free: 13.39 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002621/0.5083, allocations: 0.8566 MB / 443.6 MB, free: 12.58 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005228/0.5089, allocations: 0.7881 MB / 444.4 MB, free: 11.77 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001847/0.5091, allocations: 26.97 kB / 444.4 MB, free: 11.75 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001076/0.5092, allocations: 27.42 kB / 444.4 MB, free: 11.72 MB / 362.7 MB Notification: Performance of SimCode: time 1.97e-06/0.5092, allocations: 0 / 444.4 MB, free: 11.72 MB / 362.7 MB Notification: Performance of Templates: time 0.01769/0.5269, allocations: 7.372 MB / 451.8 MB, free: 4.379 MB / 362.7 MB