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.879/1.879, allocations: 194.9 MB / 208.4 MB, free: 3.168 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.675e-05/2.698e-05, allocations: 2.719 kB / 255.3 MB, free: 3.18 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07808/0.07813, allocations: 44.5 MB / 299.8 MB, free: 6.625 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.33/0.4082, allocations: 73.17 MB / 373 MB, free: 22.37 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002262/0.4084, allocations: 67.8 kB / 373.1 MB, free: 22.37 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02207/0.4305, allocations: 5.461 MB / 378.5 MB, free: 21.69 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.832e-06/0.4306, allocations: 0 / 378.5 MB, free: 21.69 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.326e-05/0.4306, allocations: 6.469 kB / 378.5 MB, free: 21.69 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.001211/0.4318, allocations: 0.5973 MB / 379.1 MB, free: 21.26 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.26e-05/0.4319, allocations: 10.53 kB / 379.1 MB, free: 21.26 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001152/0.432, allocations: 31.78 kB / 379.2 MB, free: 21.24 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003462/0.4324, allocations: 273.1 kB / 379.4 MB, free: 21.02 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.084e-05/0.4324, allocations: 24.66 kB / 379.5 MB, free: 21.01 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.174e-05/0.4325, allocations: 34.06 kB / 379.5 MB, free: 21.01 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008005/0.4334, allocations: 346.8 kB / 379.8 MB, free: 20.97 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.406e-05/0.4334, allocations: 2.281 kB / 379.8 MB, free: 20.97 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.341e-05/0.4335, allocations: 8.531 kB / 379.9 MB, free: 20.97 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.397e-05/0.4335, allocations: 9.922 kB / 379.9 MB, free: 20.97 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008356/0.4343, allocations: 339.7 kB / 380.2 MB, free: 20.96 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002572/0.4369, allocations: 1.122 MB / 381.3 MB, free: 20.5 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006098/0.4376, allocations: 283.4 kB / 381.6 MB, free: 20.46 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003943/0.438, allocations: 175.7 kB / 381.8 MB, free: 20.46 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.158e-05/0.438, allocations: 6.062 kB / 381.8 MB, free: 20.46 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.981e-05/0.4381, allocations: 37.84 kB / 381.8 MB, free: 20.42 MB / 314.7 MB Notification: Performance of pre-optimization done (n=41): time 4.751e-06/0.4381, allocations: 112 / 381.8 MB, free: 20.42 MB / 314.7 MB Notification: Performance of matching and sorting (n=47): time 0.003432/0.4415, allocations: 1.424 MB / 383.2 MB, free: 19.85 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.546e-05/0.4416, allocations: 56.5 kB / 383.3 MB, free: 19.79 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002228/0.4418, allocations: 188.1 kB / 383.5 MB, free: 19.69 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 6.594e-05/0.4419, allocations: 42.23 kB / 383.5 MB, free: 19.66 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.966e-05/0.442, allocations: 210 kB / 383.7 MB, free: 19.48 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001309/0.4422, allocations: 157.3 kB / 383.9 MB, free: 19.39 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.355e-05/0.4422, allocations: 8.812 kB / 383.9 MB, free: 19.39 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.678e-05/0.4423, allocations: 330.4 kB / 384.2 MB, free: 19.07 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004225/0.4427, allocations: 172.8 kB / 384.4 MB, free: 19.07 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000468/0.4432, allocations: 249.1 kB / 384.6 MB, free: 19.01 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003546/0.4436, allocations: 146.9 kB / 384.8 MB, free: 18.99 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.282e-06/0.4436, allocations: 5.641 kB / 384.8 MB, free: 18.99 MB / 314.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.00188/0.4455, allocations: 0.6117 MB / 385.4 MB, free: 18.9 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.528e-05/0.4456, allocations: 5.5 kB / 385.4 MB, free: 18.9 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.414e-05/0.4456, allocations: 2.75 kB / 385.4 MB, free: 18.9 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000998/0.4466, allocations: 379.2 kB / 385.8 MB, free: 18.86 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003661/0.447, allocations: 71.72 kB / 385.8 MB, free: 18.86 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001292/0.4483, allocations: 1.318 MB / 387.1 MB, free: 17.81 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006018/0.4489, allocations: 91.97 kB / 387.2 MB, free: 17.8 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.717e-05/0.449, allocations: 24 kB / 387.3 MB, free: 17.8 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.0001739/0.4492, allocations: 135 kB / 387.4 MB, free: 17.69 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001097/0.4493, allocations: 34.83 kB / 387.4 MB, free: 17.67 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001803/0.4512, allocations: 0.6274 MB / 388 MB, free: 17.57 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.769e-06/0.4512, allocations: 5.312 kB / 388.1 MB, free: 17.57 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.803e-06/0.4512, allocations: 0 / 388.1 MB, free: 17.57 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.084e-05/0.4512, allocations: 7.641 kB / 388.1 MB, free: 17.56 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003285/0.4545, allocations: 1.297 MB / 389.4 MB, free: 17.14 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.557e-06/0.4546, allocations: 2.781 kB / 389.4 MB, free: 17.14 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004002/0.455, allocations: 58.27 kB / 389.4 MB, free: 17.14 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008778/0.4559, allocations: 349.4 kB / 389.8 MB, free: 17.1 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.52e-05/0.456, allocations: 17.69 kB / 389.8 MB, free: 17.1 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00114/0.4571, allocations: 1.273 MB / 391 MB, free: 16.05 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.719e-06/0.4572, allocations: 0 / 391 MB, free: 16.05 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00221/0.4594, allocations: 0.891 MB / 391.9 MB, free: 15.73 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002601/0.4597, allocations: 152.8 kB / 392.1 MB, free: 15.62 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001227/0.4598, allocations: 26.11 kB / 392.1 MB, free: 15.62 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004564/0.4603, allocations: 49.36 kB / 392.2 MB, free: 15.61 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002362/0.4605, allocations: 98.25 kB / 392.3 MB, free: 15.61 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.123e-05/0.4606, allocations: 26.45 kB / 392.3 MB, free: 15.61 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001715/0.4608, allocations: 156.2 kB / 392.4 MB, free: 15.54 MB / 314.7 MB Notification: Performance of sort global known variables: time 7.8e-07/0.4608, allocations: 0 / 392.4 MB, free: 15.54 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0006623/0.4615, allocations: 108.5 kB / 392.5 MB, free: 15.53 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.0002654/0.4618, allocations: 150.5 kB / 392.7 MB, free: 15.43 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001198/0.463, allocations: 0.5031 MB / 393.2 MB, free: 15.35 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.624e-06/0.463, allocations: 3.938 kB / 393.2 MB, free: 15.34 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006607/0.4637, allocations: 261.9 kB / 393.5 MB, free: 15.33 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004903/0.4642, allocations: 51.27 kB / 393.5 MB, free: 15.32 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002323/0.4665, allocations: 0.8875 MB / 394.4 MB, free: 14.89 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007284/0.4673, allocations: 0.7855 MB / 395.2 MB, free: 30.19 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001261/0.4674, allocations: 23.06 kB / 395.2 MB, free: 30.18 MB / 330.7 MB Notification: Performance of SimCode: time 1.918e-06/0.4675, allocations: 0 / 395.2 MB, free: 30.18 MB / 330.7 MB Notification: Performance of Templates: time 0.01006/0.4775, allocations: 6.397 MB / 401.6 MB, free: 29.84 MB / 330.7 MB