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.3_Modelica.Mechanics.Translational.Examples.Brake") Notification: Performance of loadModel(Modelica): time 2.123/2.123, allocations: 205.8 MB / 218.9 MB, free: 9.359 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.053e-05/3.069e-05, allocations: 4 kB / 269.4 MB, free: 6.41 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09379/0.09384, allocations: 47.57 MB / 316.9 MB, free: 6.754 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3321/0.426, allocations: 77.42 MB / 394.4 MB, free: 10.66 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002212/0.4263, allocations: 69.83 kB / 394.4 MB, free: 10.62 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02334/0.4496, allocations: 5.568 MB / 400 MB, free: 5.746 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.225e-06/0.4497, allocations: 0 / 400 MB, free: 5.746 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.393e-05/0.4497, allocations: 4 kB / 400 MB, free: 5.742 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.001415/0.4511, allocations: 0.5881 MB / 400.6 MB, free: 5.129 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.807e-05/0.4512, allocations: 15.97 kB / 400.6 MB, free: 5.113 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001256/0.4513, allocations: 35.53 kB / 400.6 MB, free: 5.078 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004345/0.4518, allocations: 261.7 kB / 400.9 MB, free: 4.805 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.751e-05/0.4518, allocations: 25.88 kB / 400.9 MB, free: 4.785 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.981e-05/0.4519, allocations: 33.3 kB / 400.9 MB, free: 4.762 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008159/0.4528, allocations: 341.7 kB / 401.3 MB, free: 4.527 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.662e-05/0.4528, allocations: 7.984 kB / 401.3 MB, free: 4.52 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.214e-05/0.4529, allocations: 9.438 kB / 401.3 MB, free: 4.52 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.456e-05/0.4529, allocations: 8 kB / 401.3 MB, free: 4.512 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008865/0.4538, allocations: 334.8 kB / 401.6 MB, free: 4.289 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002891/0.4567, allocations: 1.123 MB / 402.8 MB, free: 3.297 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006357/0.4574, allocations: 274.5 kB / 403 MB, free: 3.105 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004141/0.4578, allocations: 187.1 kB / 403.2 MB, free: 2.992 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.1e-05/0.4579, allocations: 7.953 kB / 403.2 MB, free: 2.984 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.048e-05/0.458, allocations: 33.69 kB / 403.2 MB, free: 2.945 MB / 314.7 MB Notification: Performance of pre-optimization done (n=41): time 4.342e-06/0.458, allocations: 0 / 403.2 MB, free: 2.945 MB / 314.7 MB Notification: Performance of matching and sorting (n=47): time 0.003695/0.4617, allocations: 1.416 MB / 404.7 MB, free: 1.723 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.022e-05/0.4618, allocations: 59.83 kB / 404.7 MB, free: 1.652 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002751/0.4621, allocations: 184.2 kB / 404.9 MB, free: 1.492 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 8.702e-05/0.4622, allocations: 44.12 kB / 404.9 MB, free: 1.453 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001264/0.4623, allocations: 146.6 kB / 405.1 MB, free: 1.32 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001864/0.4625, allocations: 162 kB / 405.2 MB, free: 1.188 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.15e-05/0.4626, allocations: 6.625 kB / 405.2 MB, free: 1.188 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001895/0.4628, allocations: 341.2 kB / 405.6 MB, free: 0.8555 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004336/0.4632, allocations: 172 kB / 405.7 MB, free: 0.7578 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004996/0.4637, allocations: 252 kB / 406 MB, free: 0.5625 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003891/0.4641, allocations: 136.3 kB / 406.1 MB, free: 484 kB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.712e-06/0.4641, allocations: 0 / 406.1 MB, free: 484 kB / 314.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001935/0.4661, allocations: 0.6238 MB / 406.8 MB, free: 0 / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.095e-05/0.4662, allocations: 8.047 kB / 406.8 MB, free: 15.99 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.59e-05/0.4662, allocations: 7.188 kB / 406.8 MB, free: 15.98 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009788/0.4672, allocations: 377 kB / 407.1 MB, free: 15.7 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004066/0.4676, allocations: 70.84 kB / 407.2 MB, free: 15.63 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00169/0.4694, allocations: 1.315 MB / 408.5 MB, free: 14.38 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006232/0.47, allocations: 95.84 kB / 408.6 MB, free: 14.3 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.355e-05/0.4701, allocations: 27.59 kB / 408.6 MB, free: 14.27 MB / 330.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.000221/0.4704, allocations: 139.8 kB / 408.8 MB, free: 14.14 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000119/0.4705, allocations: 31.62 kB / 408.8 MB, free: 14.11 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001911/0.4724, allocations: 0.6197 MB / 409.4 MB, free: 13.65 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.016e-05/0.4725, allocations: 4 kB / 409.4 MB, free: 13.65 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.051e-06/0.4725, allocations: 0 / 409.4 MB, free: 13.65 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.229e-05/0.4725, allocations: 3.984 kB / 409.4 MB, free: 13.64 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003627/0.4761, allocations: 1.298 MB / 410.7 MB, free: 12.53 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.018e-05/0.4762, allocations: 4.141 kB / 410.7 MB, free: 12.53 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004022/0.4766, allocations: 63.91 kB / 410.8 MB, free: 12.46 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009018/0.4775, allocations: 349.8 kB / 411.1 MB, free: 12.19 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.067e-05/0.4776, allocations: 19.78 kB / 411.2 MB, free: 12.18 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001528/0.4792, allocations: 1.261 MB / 412.4 MB, free: 10.96 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.784e-06/0.4792, allocations: 3.938 kB / 412.4 MB, free: 10.95 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002248/0.4814, allocations: 0.8945 MB / 413.3 MB, free: 10.22 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003055/0.4818, allocations: 150.2 kB / 413.5 MB, free: 10.07 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001044/0.4819, allocations: 17.12 kB / 413.5 MB, free: 10.06 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004366/0.4824, allocations: 51.27 kB / 413.5 MB, free: 10.02 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002653/0.4826, allocations: 106.1 kB / 413.6 MB, free: 9.922 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.613e-05/0.4827, allocations: 30.03 kB / 413.7 MB, free: 9.898 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0002177/0.483, allocations: 157.4 kB / 413.8 MB, free: 9.758 MB / 330.7 MB Notification: Performance of sort global known variables: time 7.31e-07/0.483, allocations: 0 / 413.8 MB, free: 9.758 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0006335/0.4836, allocations: 105.9 kB / 413.9 MB, free: 9.668 MB / 330.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.0003044/0.4839, allocations: 150 kB / 414.1 MB, free: 9.52 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001279/0.4852, allocations: 0.493 MB / 414.6 MB, free: 9.16 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.788e-06/0.4853, allocations: 4 kB / 414.6 MB, free: 9.156 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007456/0.486, allocations: 266.7 kB / 414.8 MB, free: 8.98 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004956/0.4865, allocations: 43.73 kB / 414.9 MB, free: 8.949 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002682/0.4892, allocations: 0.8497 MB / 415.7 MB, free: 8.137 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005261/0.4898, allocations: 0.784 MB / 416.5 MB, free: 7.324 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0002114/0.49, allocations: 30.97 kB / 416.5 MB, free: 7.297 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001078/0.4902, allocations: 35.11 kB / 416.6 MB, free: 7.266 MB / 330.7 MB Notification: Performance of SimCode: time 2.001e-06/0.4902, allocations: 0 / 416.6 MB, free: 7.266 MB / 330.7 MB Notification: Performance of Templates: time 0.01844/0.5086, allocations: 7.365 MB / 423.9 MB, free: 15.92 MB / 346.7 MB