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.1_Modelica.Mechanics.Translational.Examples.Brake") Notification: Performance of loadModel(Modelica): time 1.713/1.713, allocations: 171.2 MB / 183.3 MB, free: 12.07 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.789e-05/3.81e-05, allocations: 4 kB / 225 MB, free: 2.336 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.21/0.2101, allocations: 38.77 MB / 263.8 MB, free: 9.824 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1025/0.3126, allocations: 67.86 MB / 331.6 MB, free: 5.863 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002297/0.3129, allocations: 67.97 kB / 331.7 MB, free: 5.797 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02262/0.3355, allocations: 5.377 MB / 337.1 MB, free: 412 kB / 282.7 MB Notification: Performance of FrontEnd: time 2.079e-06/0.3356, allocations: 0 / 337.1 MB, free: 412 kB / 282.7 MB Notification: Performance of Transformations before backend: time 2.329e-05/0.3356, allocations: 8 kB / 337.1 MB, free: 404 kB / 282.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.001374/0.337, allocations: 0.6035 MB / 337.7 MB, free: 15.74 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.464e-05/0.337, allocations: 12.03 kB / 337.7 MB, free: 15.73 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001137/0.3372, allocations: 31.62 kB / 337.7 MB, free: 15.7 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004402/0.3376, allocations: 267.5 kB / 338 MB, free: 15.4 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.582e-05/0.3377, allocations: 20.56 kB / 338 MB, free: 15.38 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.514e-05/0.3378, allocations: 28 kB / 338 MB, free: 15.35 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009035/0.3387, allocations: 371.5 kB / 338.4 MB, free: 14.98 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.147e-05/0.3387, allocations: 0 / 338.4 MB, free: 14.98 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.98e-05/0.3388, allocations: 16 kB / 338.4 MB, free: 14.96 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.061e-05/0.3388, allocations: 4 kB / 338.4 MB, free: 14.96 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009554/0.3398, allocations: 377 kB / 338.8 MB, free: 14.59 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002806/0.3426, allocations: 1.135 MB / 339.9 MB, free: 13.38 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006497/0.3433, allocations: 271.4 kB / 340.2 MB, free: 13.1 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004527/0.3438, allocations: 190.8 kB / 340.4 MB, free: 12.91 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.768e-05/0.3439, allocations: 4 kB / 340.4 MB, free: 12.91 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.493e-05/0.3439, allocations: 38.52 kB / 340.4 MB, free: 12.86 MB / 298.7 MB Notification: Performance of pre-optimization done (n=39): time 3.859e-06/0.3439, allocations: 0 / 340.4 MB, free: 12.86 MB / 298.7 MB Notification: Performance of matching and sorting (n=45): time 0.004303/0.3482, allocations: 1.597 MB / 342 MB, free: 11.17 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.38e-05/0.3483, allocations: 63.34 kB / 342.1 MB, free: 11.09 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003149/0.3486, allocations: 208.9 kB / 342.3 MB, free: 10.88 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 7.12e-05/0.3487, allocations: 37.7 kB / 342.3 MB, free: 10.84 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001357/0.3489, allocations: 148.8 kB / 342.5 MB, free: 10.69 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000185/0.3491, allocations: 161.9 kB / 342.6 MB, free: 10.53 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.493e-05/0.3491, allocations: 8 kB / 342.6 MB, free: 10.52 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001919/0.3493, allocations: 342.8 kB / 343 MB, free: 10.18 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004989/0.3499, allocations: 197.1 kB / 343.2 MB, free: 9.984 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005579/0.3504, allocations: 259.8 kB / 343.4 MB, free: 9.707 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004166/0.3509, allocations: 169.5 kB / 343.6 MB, free: 9.543 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.486e-06/0.3509, allocations: 3.938 kB / 343.6 MB, free: 9.539 MB / 298.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.002204/0.3531, allocations: 0.7748 MB / 344.4 MB, free: 8.75 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.193e-05/0.3531, allocations: 4 kB / 344.4 MB, free: 8.746 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.111e-05/0.3532, allocations: 4 kB / 344.4 MB, free: 8.742 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001213/0.3544, allocations: 0.4974 MB / 344.9 MB, free: 8.238 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004224/0.3548, allocations: 79.89 kB / 344.9 MB, free: 8.16 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00182/0.3567, allocations: 1.382 MB / 346.3 MB, free: 6.727 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000594/0.3573, allocations: 96.03 kB / 346.4 MB, free: 6.633 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.622e-05/0.3574, allocations: 23.98 kB / 346.4 MB, free: 6.609 MB / 298.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): 47 * 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.0002048/0.3576, allocations: 134.8 kB / 346.6 MB, free: 6.473 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001153/0.3577, allocations: 35.58 kB / 346.6 MB, free: 6.438 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000132/0.3579, allocations: 51.08 kB / 346.7 MB, free: 6.387 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.231e-06/0.3579, allocations: 4 kB / 346.7 MB, free: 6.383 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.51e-06/0.3579, allocations: 0 / 346.7 MB, free: 6.383 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.567e-06/0.3579, allocations: 4 kB / 346.7 MB, free: 6.379 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004045/0.362, allocations: 1.456 MB / 348.1 MB, free: 4.844 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.262e-06/0.362, allocations: 0 / 348.1 MB, free: 4.844 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000403/0.3624, allocations: 59.91 kB / 348.2 MB, free: 4.785 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00111/0.3636, allocations: 489.4 kB / 348.7 MB, free: 4.301 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.994e-05/0.3636, allocations: 19.98 kB / 348.7 MB, free: 4.281 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001671/0.3653, allocations: 1.323 MB / 350 MB, free: 2.906 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.964e-06/0.3654, allocations: 3.984 kB / 350 MB, free: 2.902 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002662/0.368, allocations: 1.084 MB / 351.1 MB, free: 1.75 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002921/0.3683, allocations: 152.8 kB / 351.2 MB, free: 1.582 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001084/0.3685, allocations: 16 kB / 351.2 MB, free: 1.566 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004248/0.3689, allocations: 55.95 kB / 351.3 MB, free: 1.512 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002702/0.3692, allocations: 103.7 kB / 351.4 MB, free: 1.41 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.493e-05/0.3693, allocations: 23.97 kB / 351.4 MB, free: 1.387 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0002311/0.3695, allocations: 165.4 kB / 351.6 MB, free: 1.223 MB / 298.7 MB Notification: Performance of sort global known variables: time 8.26e-07/0.3695, allocations: 0 / 351.6 MB, free: 1.223 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0006146/0.3702, allocations: 103.9 kB / 351.7 MB, free: 1.121 MB / 298.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.0002914/0.3705, allocations: 143 kB / 351.8 MB, free: 0.9727 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001258/0.3717, allocations: 478 kB / 352.3 MB, free: 0.5078 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.17e-06/0.3718, allocations: 0 / 352.3 MB, free: 0.5078 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007561/0.3725, allocations: 272.4 kB / 352.6 MB, free: 248 kB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004633/0.373, allocations: 40.41 kB / 352.6 MB, free: 208 kB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002698/0.3757, allocations: 0.8675 MB / 353.5 MB, free: 15.29 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005312/0.3763, allocations: 0.7842 MB / 354.3 MB, free: 14.48 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0002128/0.3765, allocations: 34.95 kB / 354.3 MB, free: 14.45 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001216/0.3767, allocations: 27.42 kB / 354.3 MB, free: 14.42 MB / 314.7 MB Notification: Performance of SimCode: time 2.247e-06/0.3767, allocations: 3.938 kB / 354.3 MB, free: 14.42 MB / 314.7 MB Notification: Performance of Templates: time 0.01716/0.3939, allocations: 7.063 MB / 361.4 MB, free: 7.371 MB / 314.7 MB