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_4.0.0_Modelica.Mechanics.Translational.Examples.Brake") Notification: Performance of loadModel(Modelica): time 2.027/2.027, allocations: 225.8 MB / 238.8 MB, free: 11.16 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.645e-05/2.654e-05, allocations: 4 kB / 292.1 MB, free: 8.34 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09066/0.09071, allocations: 50.41 MB / 342.6 MB, free: 5.91 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4538/0.5445, allocations: 79.03 MB / 421.6 MB, free: 15.22 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002075/0.5448, allocations: 66.41 kB / 421.6 MB, free: 15.19 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02265/0.5675, allocations: 5.641 MB / 427.3 MB, free: 10.24 MB / 346.7 MB Notification: Performance of FrontEnd: time 6.293e-06/0.5675, allocations: 0 / 427.3 MB, free: 10.24 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.65e-05/0.5675, allocations: 7.938 kB / 427.3 MB, free: 10.23 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.001293/0.5688, allocations: 0.6001 MB / 427.9 MB, free: 9.609 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.322e-05/0.5689, allocations: 12.03 kB / 427.9 MB, free: 9.598 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001106/0.569, allocations: 31.62 kB / 427.9 MB, free: 9.566 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004285/0.5695, allocations: 272.3 kB / 428.2 MB, free: 9.281 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.652e-05/0.5695, allocations: 27.62 kB / 428.2 MB, free: 9.262 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.067e-05/0.5696, allocations: 26.59 kB / 428.3 MB, free: 9.242 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000813/0.5705, allocations: 338.2 kB / 428.6 MB, free: 9.012 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.514e-05/0.5705, allocations: 4 kB / 428.6 MB, free: 9.008 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.127e-05/0.5706, allocations: 10.5 kB / 428.6 MB, free: 9.008 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.984e-05/0.5706, allocations: 11.95 kB / 428.6 MB, free: 8.996 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008309/0.5714, allocations: 338.2 kB / 428.9 MB, free: 8.77 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00273/0.5742, allocations: 1.13 MB / 430.1 MB, free: 7.773 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006055/0.5748, allocations: 268.4 kB / 430.3 MB, free: 7.586 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004031/0.5752, allocations: 185.6 kB / 430.5 MB, free: 7.473 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.642e-05/0.5753, allocations: 11.92 kB / 430.5 MB, free: 7.461 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.19e-05/0.5754, allocations: 34.31 kB / 430.6 MB, free: 7.422 MB / 346.7 MB Notification: Performance of pre-optimization done (n=41): time 3.905e-06/0.5754, allocations: 0 / 430.6 MB, free: 7.422 MB / 346.7 MB Notification: Performance of matching and sorting (n=47): time 0.003611/0.579, allocations: 1.415 MB / 432 MB, free: 6.199 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.527e-05/0.5791, allocations: 59.8 kB / 432 MB, free: 6.129 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002554/0.5794, allocations: 186.7 kB / 432.2 MB, free: 5.969 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 7.753e-05/0.5795, allocations: 47.94 kB / 432.3 MB, free: 5.926 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001336/0.5796, allocations: 148.9 kB / 432.4 MB, free: 5.797 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000178/0.5798, allocations: 152.3 kB / 432.6 MB, free: 5.668 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.493e-05/0.5799, allocations: 9.359 kB / 432.6 MB, free: 5.668 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001912/0.5801, allocations: 348 kB / 432.9 MB, free: 5.332 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004272/0.5805, allocations: 175.2 kB / 433.1 MB, free: 5.23 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004936/0.581, allocations: 247.5 kB / 433.3 MB, free: 5.043 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000357/0.5814, allocations: 132.6 kB / 433.5 MB, free: 4.961 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.466e-06/0.5814, allocations: 4 kB / 433.5 MB, free: 4.957 MB / 346.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001864/0.5833, allocations: 0.6183 MB / 434.1 MB, free: 4.484 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.207e-05/0.5833, allocations: 8 kB / 434.1 MB, free: 4.477 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.579e-05/0.5834, allocations: 7.953 kB / 434.1 MB, free: 4.469 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009611/0.5843, allocations: 387.6 kB / 434.5 MB, free: 4.172 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003673/0.5847, allocations: 71.16 kB / 434.5 MB, free: 4.105 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001606/0.5863, allocations: 1.308 MB / 435.8 MB, free: 2.863 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005881/0.587, allocations: 98.98 kB / 435.9 MB, free: 2.773 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.064e-05/0.5871, allocations: 19.62 kB / 436 MB, free: 2.758 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.000205/0.5873, allocations: 138.1 kB / 436.1 MB, free: 2.633 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001172/0.5874, allocations: 35.61 kB / 436.1 MB, free: 2.598 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00182/0.5892, allocations: 0.6223 MB / 436.8 MB, free: 2.129 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.116e-05/0.5893, allocations: 7.953 kB / 436.8 MB, free: 2.121 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.469e-06/0.5893, allocations: 0 / 436.8 MB, free: 2.121 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.035e-05/0.5893, allocations: 3.984 kB / 436.8 MB, free: 2.117 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003397/0.5927, allocations: 1.284 MB / 438.1 MB, free: 1.016 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.04e-06/0.5928, allocations: 160 / 438.1 MB, free: 1.016 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003827/0.5932, allocations: 66.41 kB / 438.1 MB, free: 0.9531 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008322/0.594, allocations: 341.5 kB / 438.4 MB, free: 0.6875 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.352e-05/0.5941, allocations: 23.22 kB / 438.5 MB, free: 0.6719 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001496/0.5956, allocations: 1.262 MB / 439.7 MB, free: 15.45 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.401e-06/0.5956, allocations: 0 / 439.7 MB, free: 15.45 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002146/0.5978, allocations: 0.8936 MB / 440.6 MB, free: 14.71 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002759/0.5981, allocations: 150 kB / 440.8 MB, free: 14.56 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001042/0.5982, allocations: 21.8 kB / 440.8 MB, free: 14.55 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004039/0.5986, allocations: 51.59 kB / 440.8 MB, free: 14.5 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002564/0.5989, allocations: 104.8 kB / 440.9 MB, free: 14.41 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.297e-05/0.599, allocations: 27.5 kB / 441 MB, free: 14.39 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002169/0.5992, allocations: 159.2 kB / 441.1 MB, free: 14.25 MB / 362.7 MB Notification: Performance of sort global known variables: time 7.71e-07/0.5992, allocations: 0 / 441.1 MB, free: 14.25 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0006289/0.5999, allocations: 107.6 kB / 441.2 MB, free: 14.16 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.0002975/0.6002, allocations: 152.4 kB / 441.4 MB, free: 14.02 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001227/0.6014, allocations: 0.4892 MB / 441.9 MB, free: 13.66 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.556e-06/0.6014, allocations: 4 kB / 441.9 MB, free: 13.66 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007205/0.6022, allocations: 272.4 kB / 442.1 MB, free: 13.47 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004478/0.6026, allocations: 41.72 kB / 442.2 MB, free: 13.45 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00254/0.6052, allocations: 0.8517 MB / 443 MB, free: 12.63 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005161/0.6057, allocations: 0.7914 MB / 443.8 MB, free: 11.82 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.000177/0.6059, allocations: 26.97 kB / 443.9 MB, free: 11.79 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001015/0.606, allocations: 23.44 kB / 443.9 MB, free: 11.77 MB / 362.7 MB Notification: Performance of SimCode: time 1.625e-06/0.606, allocations: 0 / 443.9 MB, free: 11.77 MB / 362.7 MB Notification: Performance of Templates: time 0.02349/0.6295, allocations: 7.374 MB / 451.2 MB, free: 4.43 MB / 362.7 MB