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_Modelica.Mechanics.Translational.Examples.Brake") Notification: Performance of loadModel(Modelica): time 1.93/1.93, allocations: 194.9 MB / 208 MB, free: 3.254 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.082e-05/3.099e-05, allocations: 4 kB / 255.4 MB, free: 2.707 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07698/0.07703, allocations: 44.5 MB / 299.9 MB, free: 6.148 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3277/0.4048, allocations: 73.18 MB / 373.1 MB, free: 22.53 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002027/0.405, allocations: 66.95 kB / 373.1 MB, free: 22.53 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02148/0.4265, allocations: 5.453 MB / 378.6 MB, free: 21.86 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.706e-06/0.4266, allocations: 0 / 378.6 MB, free: 21.86 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.387e-05/0.4266, allocations: 6.375 kB / 378.6 MB, free: 21.86 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.001182/0.4278, allocations: 0.6013 MB / 379.2 MB, free: 21.43 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.195e-05/0.4278, allocations: 9.438 kB / 379.2 MB, free: 21.43 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000119/0.428, allocations: 33.44 kB / 379.2 MB, free: 21.41 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003679/0.4284, allocations: 268.4 kB / 379.5 MB, free: 21.18 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.284e-05/0.4284, allocations: 24.12 kB / 379.5 MB, free: 21.18 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.194e-05/0.4285, allocations: 36.12 kB / 379.5 MB, free: 21.18 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007984/0.4293, allocations: 339.2 kB / 379.9 MB, free: 21.14 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.458e-05/0.4294, allocations: 1.5 kB / 379.9 MB, free: 21.14 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.678e-05/0.4294, allocations: 13.75 kB / 379.9 MB, free: 21.14 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.313e-05/0.4295, allocations: 7.844 kB / 379.9 MB, free: 21.14 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000823/0.4303, allocations: 342.8 kB / 380.2 MB, free: 21.13 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00266/0.433, allocations: 1.121 MB / 381.4 MB, free: 20.67 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006106/0.4336, allocations: 276.3 kB / 381.6 MB, free: 20.64 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003803/0.434, allocations: 175.4 kB / 381.8 MB, free: 20.63 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.616e-05/0.4341, allocations: 5.594 kB / 381.8 MB, free: 20.63 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.059e-05/0.4341, allocations: 37.55 kB / 381.8 MB, free: 20.59 MB / 314.7 MB Notification: Performance of pre-optimization done (n=41): time 3.876e-06/0.4342, allocations: 3.938 kB / 381.8 MB, free: 20.59 MB / 314.7 MB Notification: Performance of matching and sorting (n=47): time 0.003433/0.4376, allocations: 1.41 MB / 383.3 MB, free: 20.03 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.748e-05/0.4377, allocations: 61.62 kB / 383.3 MB, free: 19.96 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002307/0.4379, allocations: 185.1 kB / 383.5 MB, free: 19.86 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 6.823e-05/0.438, allocations: 47.92 kB / 383.5 MB, free: 19.83 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.525e-05/0.4381, allocations: 148.1 kB / 383.7 MB, free: 19.71 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001352/0.4382, allocations: 156 kB / 383.8 MB, free: 19.62 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.409e-05/0.4383, allocations: 13.69 kB / 383.9 MB, free: 19.62 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.64e-05/0.4384, allocations: 335.4 kB / 384.2 MB, free: 19.31 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004399/0.4388, allocations: 174.5 kB / 384.4 MB, free: 19.31 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004966/0.4393, allocations: 250.3 kB / 384.6 MB, free: 19.24 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003466/0.4397, allocations: 134 kB / 384.7 MB, free: 19.23 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.081e-06/0.4397, allocations: 7.891 kB / 384.7 MB, free: 19.23 MB / 314.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001832/0.4416, allocations: 0.6173 MB / 385.4 MB, free: 19.13 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.052e-05/0.4416, allocations: 6.875 kB / 385.4 MB, free: 19.13 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.137e-05/0.4416, allocations: 2.656 kB / 385.4 MB, free: 19.13 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009429/0.4426, allocations: 381.8 kB / 385.7 MB, free: 19.09 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003972/0.443, allocations: 75.22 kB / 385.8 MB, free: 19.09 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001312/0.4443, allocations: 1.315 MB / 387.1 MB, free: 18.04 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006182/0.445, allocations: 90.8 kB / 387.2 MB, free: 18.04 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.577e-05/0.4451, allocations: 23.5 kB / 387.2 MB, free: 18.04 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.0001772/0.4453, allocations: 136.4 kB / 387.4 MB, free: 17.92 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001064/0.4454, allocations: 34.27 kB / 387.4 MB, free: 17.9 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001778/0.4472, allocations: 0.6262 MB / 388 MB, free: 17.8 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.968e-06/0.4472, allocations: 4.844 kB / 388 MB, free: 17.8 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.56e-06/0.4472, allocations: 0 / 388 MB, free: 17.8 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.084e-06/0.4473, allocations: 5.219 kB / 388 MB, free: 17.8 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003353/0.4506, allocations: 1.298 MB / 389.3 MB, free: 17.38 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.107e-06/0.4507, allocations: 1.875 kB / 389.3 MB, free: 17.38 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004251/0.4511, allocations: 62.84 kB / 389.4 MB, free: 17.37 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008552/0.452, allocations: 342.8 kB / 389.7 MB, free: 17.34 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.048e-05/0.4521, allocations: 25.38 kB / 389.8 MB, free: 17.34 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001138/0.4532, allocations: 1.26 MB / 391 MB, free: 16.29 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.773e-06/0.4532, allocations: 0 / 391 MB, free: 16.29 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002078/0.4553, allocations: 0.9013 MB / 391.9 MB, free: 15.97 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002391/0.4556, allocations: 154.5 kB / 392.1 MB, free: 15.86 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001077/0.4557, allocations: 19.53 kB / 392.1 MB, free: 15.86 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004659/0.4562, allocations: 52.53 kB / 392.1 MB, free: 15.86 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002328/0.4564, allocations: 98.03 kB / 392.2 MB, free: 15.85 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.198e-05/0.4565, allocations: 24.95 kB / 392.3 MB, free: 15.85 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001709/0.4567, allocations: 162 kB / 392.4 MB, free: 15.77 MB / 314.7 MB Notification: Performance of sort global known variables: time 8.1e-07/0.4567, allocations: 0 / 392.4 MB, free: 15.77 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0006499/0.4574, allocations: 101.6 kB / 392.5 MB, free: 15.77 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.0002528/0.4577, allocations: 157.1 kB / 392.7 MB, free: 15.66 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001116/0.4588, allocations: 0.4947 MB / 393.2 MB, free: 15.59 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.437e-06/0.4588, allocations: 4.25 kB / 393.2 MB, free: 15.58 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006571/0.4595, allocations: 267.4 kB / 393.4 MB, free: 15.56 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004973/0.46, allocations: 45.62 kB / 393.5 MB, free: 15.55 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002409/0.4624, allocations: 0.8602 MB / 394.3 MB, free: 15.15 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000688/0.4631, allocations: 0.7825 MB / 395.1 MB, free: 30.45 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0001806/0.4633, allocations: 29.47 kB / 395.1 MB, free: 30.45 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.844e-05/0.4635, allocations: 26.02 kB / 395.2 MB, free: 30.44 MB / 330.7 MB Notification: Performance of SimCode: time 2.051e-06/0.4635, allocations: 0 / 395.2 MB, free: 30.44 MB / 330.7 MB Notification: Performance of Templates: time 0.01526/0.4787, allocations: 7.36 MB / 402.5 MB, free: 30.01 MB / 330.7 MB