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_3.2.2_cpp_Modelica.Mechanics.Translational.Examples.Brake") Notification: Performance of loadModel(Modelica): time 1.818/1.818, allocations: 194.9 MB / 208.4 MB, free: 3.238 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.097e-05/3.109e-05, allocations: 4 kB / 255.4 MB, free: 3.191 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1139/0.1139, allocations: 44.5 MB / 299.9 MB, free: 6.629 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3175/0.4314, allocations: 73.19 MB / 373 MB, free: 22.48 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002141/0.4317, allocations: 65.62 kB / 373.1 MB, free: 22.48 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0211/0.4528, allocations: 5.452 MB / 378.6 MB, free: 21.81 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.496e-06/0.4528, allocations: 0 / 378.6 MB, free: 21.81 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.371e-05/0.4529, allocations: 6.406 kB / 378.6 MB, free: 21.81 MB / 314.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.00115/0.454, allocations: 0.5993 MB / 379.2 MB, free: 21.38 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.158e-05/0.4541, allocations: 8.25 kB / 379.2 MB, free: 21.38 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000111/0.4542, allocations: 33.25 kB / 379.2 MB, free: 21.37 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003385/0.4546, allocations: 274.2 kB / 379.5 MB, free: 21.14 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.084e-05/0.4546, allocations: 23.22 kB / 379.5 MB, free: 21.14 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.657e-05/0.4547, allocations: 33.06 kB / 379.5 MB, free: 21.13 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007726/0.4555, allocations: 343.4 kB / 379.9 MB, free: 21.09 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.269e-05/0.4555, allocations: 1.312 kB / 379.9 MB, free: 21.09 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.488e-05/0.4556, allocations: 8.938 kB / 379.9 MB, free: 21.09 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.305e-05/0.4556, allocations: 6.906 kB / 379.9 MB, free: 21.09 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008328/0.4565, allocations: 337.2 kB / 380.2 MB, free: 21.09 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002571/0.4591, allocations: 1.118 MB / 381.3 MB, free: 20.63 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005959/0.4597, allocations: 282.4 kB / 381.6 MB, free: 20.59 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000388/0.4601, allocations: 172.1 kB / 381.8 MB, free: 20.59 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.408e-05/0.4602, allocations: 12.33 kB / 381.8 MB, free: 20.59 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.925e-05/0.4602, allocations: 34.38 kB / 381.8 MB, free: 20.55 MB / 314.7 MB Notification: Performance of pre-optimization done (n=41): time 3.975e-06/0.4602, allocations: 4.969 kB / 381.8 MB, free: 20.54 MB / 314.7 MB Notification: Performance of matching and sorting (n=47): time 0.003414/0.4637, allocations: 1.41 MB / 383.2 MB, free: 19.99 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.943e-05/0.4637, allocations: 57.47 kB / 383.3 MB, free: 19.93 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002353/0.464, allocations: 190.8 kB / 383.5 MB, free: 19.82 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 6.817e-05/0.4641, allocations: 39.08 kB / 383.5 MB, free: 19.79 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.136e-05/0.4642, allocations: 218 kB / 383.7 MB, free: 19.61 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000137/0.4643, allocations: 160.9 kB / 383.9 MB, free: 19.52 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.269e-05/0.4644, allocations: 8.781 kB / 383.9 MB, free: 19.52 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.627e-05/0.4645, allocations: 330.2 kB / 384.2 MB, free: 19.2 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004099/0.4649, allocations: 174.2 kB / 384.4 MB, free: 19.2 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004607/0.4654, allocations: 241.5 kB / 384.6 MB, free: 19.13 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003509/0.4657, allocations: 144.8 kB / 384.8 MB, free: 19.12 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.236e-06/0.4657, allocations: 5.266 kB / 384.8 MB, free: 19.12 MB / 314.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001827/0.4676, allocations: 0.6087 MB / 385.4 MB, free: 19.03 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.233e-05/0.4676, allocations: 5.344 kB / 385.4 MB, free: 19.03 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.396e-05/0.4677, allocations: 5.578 kB / 385.4 MB, free: 19.03 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000926/0.4686, allocations: 376.1 kB / 385.8 MB, free: 18.99 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003614/0.469, allocations: 71.45 kB / 385.8 MB, free: 18.98 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001233/0.4702, allocations: 1.318 MB / 387.1 MB, free: 17.94 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000581/0.4708, allocations: 92.11 kB / 387.2 MB, free: 17.93 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.285e-05/0.4709, allocations: 22.39 kB / 387.3 MB, free: 17.93 MB / 314.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.0001682/0.4711, allocations: 137.1 kB / 387.4 MB, free: 17.82 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001062/0.4712, allocations: 30.83 kB / 387.4 MB, free: 17.8 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001758/0.473, allocations: 0.6303 MB / 388.1 MB, free: 17.7 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.786e-06/0.473, allocations: 5.094 kB / 388.1 MB, free: 17.7 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.242e-06/0.4731, allocations: 0 / 388.1 MB, free: 17.7 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.531e-06/0.4731, allocations: 2.344 kB / 388.1 MB, free: 17.7 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003158/0.4762, allocations: 1.294 MB / 389.4 MB, free: 17.27 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.836e-06/0.4763, allocations: 1.531 kB / 389.4 MB, free: 17.27 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003771/0.4767, allocations: 61.59 kB / 389.4 MB, free: 17.27 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000798/0.4775, allocations: 347.7 kB / 389.8 MB, free: 17.23 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.994e-05/0.4776, allocations: 21.31 kB / 389.8 MB, free: 17.23 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001079/0.4787, allocations: 1.268 MB / 391 MB, free: 16.18 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.441e-06/0.4787, allocations: 0 / 391 MB, free: 16.18 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002058/0.4808, allocations: 0.9018 MB / 391.9 MB, free: 15.86 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000236/0.481, allocations: 150.8 kB / 392.1 MB, free: 15.75 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001083/0.4811, allocations: 21.3 kB / 392.1 MB, free: 15.75 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004398/0.4816, allocations: 48.89 kB / 392.2 MB, free: 15.75 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002305/0.4818, allocations: 103.7 kB / 392.3 MB, free: 15.75 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.565e-05/0.4819, allocations: 22.39 kB / 392.3 MB, free: 15.75 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001625/0.4821, allocations: 158.2 kB / 392.4 MB, free: 15.67 MB / 314.7 MB Notification: Performance of sort global known variables: time 8.83e-07/0.4821, allocations: 0 / 392.4 MB, free: 15.67 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0006193/0.4827, allocations: 104.2 kB / 392.5 MB, free: 15.66 MB / 314.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.0002439/0.483, allocations: 156.9 kB / 392.7 MB, free: 15.56 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0011/0.4841, allocations: 0.4886 MB / 393.2 MB, free: 15.48 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.999e-06/0.4842, allocations: 7.438 kB / 393.2 MB, free: 15.48 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006336/0.4848, allocations: 269.2 kB / 393.5 MB, free: 15.46 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004735/0.4853, allocations: 42.27 kB / 393.5 MB, free: 15.45 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002423/0.4877, allocations: 0.8777 MB / 394.4 MB, free: 15.02 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006766/0.4884, allocations: 0.7909 MB / 395.2 MB, free: 30.32 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001124/0.4886, allocations: 26.97 kB / 395.2 MB, free: 30.32 MB / 330.7 MB Notification: Performance of SimCode: time 1.649e-06/0.4886, allocations: 0 / 395.2 MB, free: 30.32 MB / 330.7 MB Notification: Performance of Templates: time 0.009663/0.4983, allocations: 6.38 MB / 401.6 MB, free: 29.97 MB / 330.7 MB