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 2.215/2.215, allocations: 194.9 MB / 211.2 MB, free: 9.129 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.61e-05/2.601e-05, allocations: 4 kB / 258.8 MB, free: 9.5 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3038/0.3039, allocations: 44.52 MB / 303.3 MB, free: 12.68 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Brake): time 0.003372/0.3073, allocations: 1.903 MB / 305.2 MB, free: 11.13 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001394/0.3088, allocations: 461.7 kB / 305.6 MB, free: 10.77 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002055/0.309, allocations: 8.094 kB / 305.7 MB, free: 10.76 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001637/0.3092, allocations: 34.53 kB / 305.7 MB, free: 10.73 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002817/0.3095, allocations: 83.91 kB / 305.8 MB, free: 10.66 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005237/0.31, allocations: 144.7 kB / 305.9 MB, free: 10.54 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.000485/0.3105, allocations: 218.2 kB / 306.1 MB, free: 10.37 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001464/0.3107, allocations: 22.7 kB / 306.1 MB, free: 10.36 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003084/0.311, allocations: 174.5 kB / 306.3 MB, free: 10.27 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003982/0.3114, allocations: 195.3 kB / 306.5 MB, free: 10.15 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002262/0.3117, allocations: 61.22 kB / 306.6 MB, free: 10.12 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 8.692e-05/0.3118, allocations: 21.5 kB / 306.6 MB, free: 10.12 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001319/0.3119, allocations: 74.91 kB / 306.7 MB, free: 10.07 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001047/0.312, allocations: 26.19 kB / 306.7 MB, free: 10.07 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000554/0.3126, allocations: 321.3 kB / 307 MB, free: 9.836 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.506e-06/0.3126, allocations: 0 / 307 MB, free: 9.836 MB / 250.7 MB Notification: Performance of FrontEnd: time 4.929e-06/0.3126, allocations: 5.297 kB / 307 MB, free: 9.832 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.271e-05/0.3127, allocations: 0 / 307 MB, free: 9.832 MB / 250.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.001883/0.3146, allocations: 0.5913 MB / 307.6 MB, free: 9.328 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.819e-05/0.3146, allocations: 10.16 kB / 307.6 MB, free: 9.328 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001672/0.3148, allocations: 36.12 kB / 307.6 MB, free: 9.309 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005347/0.3153, allocations: 283.5 kB / 307.9 MB, free: 9.023 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.387e-05/0.3154, allocations: 28.88 kB / 307.9 MB, free: 9.008 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001088/0.3155, allocations: 29.81 kB / 308 MB, free: 8.996 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001189/0.3167, allocations: 374.1 kB / 308.3 MB, free: 8.641 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.635e-05/0.3168, allocations: 0 / 308.3 MB, free: 8.641 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.306e-05/0.3169, allocations: 12 kB / 308.4 MB, free: 8.629 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.284e-05/0.3169, allocations: 7.938 kB / 308.4 MB, free: 8.621 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001352/0.3183, allocations: 406 kB / 308.8 MB, free: 8.227 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003346/0.3216, allocations: 1.147 MB / 309.9 MB, free: 7.004 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009122/0.3226, allocations: 287.7 kB / 310.2 MB, free: 6.715 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.067e-05/0.3227, allocations: 4.984 kB / 310.2 MB, free: 6.711 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.322e-05/0.3227, allocations: 42.55 kB / 310.2 MB, free: 6.66 MB / 250.7 MB Notification: Performance of pre-optimization done (n=39): time 3.406e-06/0.3228, allocations: 7.938 kB / 310.2 MB, free: 6.652 MB / 250.7 MB Notification: Performance of matching and sorting (n=45): time 0.008116/0.3309, allocations: 2.109 MB / 312.3 MB, free: 4.406 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.764e-05/0.331, allocations: 55.41 kB / 312.4 MB, free: 4.34 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003597/0.3314, allocations: 208.1 kB / 312.6 MB, free: 4.133 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001013/0.3315, allocations: 41.69 kB / 312.6 MB, free: 4.086 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000159/0.3316, allocations: 211.3 kB / 312.9 MB, free: 3.879 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002235/0.3319, allocations: 158 kB / 313 MB, free: 3.723 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.983e-05/0.3319, allocations: 8 kB / 313 MB, free: 3.715 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001568/0.3321, allocations: 334.8 kB / 313.3 MB, free: 3.379 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007404/0.3329, allocations: 205 kB / 313.5 MB, free: 3.18 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000754/0.3336, allocations: 280.8 kB / 313.8 MB, free: 2.875 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000585/0.3342, allocations: 176.7 kB / 314 MB, free: 2.703 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.051e-06/0.3343, allocations: 4 kB / 314 MB, free: 2.699 MB / 250.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.002544/0.3368, allocations: 0.6808 MB / 314.7 MB, free: 2.008 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.325e-05/0.3369, allocations: 8 kB / 314.7 MB, free: 2 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.116e-05/0.3369, allocations: 0 / 314.7 MB, free: 2 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001401/0.3383, allocations: 493.5 kB / 315.2 MB, free: 1.512 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000583/0.3389, allocations: 79.95 kB / 315.2 MB, free: 1.434 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001993/0.341, allocations: 1.39 MB / 316.6 MB, free: 15.99 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009045/0.3419, allocations: 88 kB / 316.7 MB, free: 15.91 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.7e-05/0.342, allocations: 23.98 kB / 316.7 MB, free: 15.88 MB / 266.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.0003125/0.3423, allocations: 169.6 kB / 316.9 MB, free: 15.71 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001088/0.3424, allocations: 31.62 kB / 316.9 MB, free: 15.68 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001554/0.3426, allocations: 51.3 kB / 317 MB, free: 15.62 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.307e-06/0.3426, allocations: 4 kB / 317 MB, free: 15.62 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.043e-05/0.3427, allocations: 0 / 317 MB, free: 15.62 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.818e-06/0.3427, allocations: 3.984 kB / 317 MB, free: 15.61 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0048/0.3475, allocations: 1.401 MB / 318.4 MB, free: 14.13 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.047e-06/0.3475, allocations: 0 / 318.4 MB, free: 14.13 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005499/0.3481, allocations: 55.92 kB / 318.5 MB, free: 14.07 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001265/0.3494, allocations: 465.5 kB / 318.9 MB, free: 13.61 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.361e-05/0.3495, allocations: 11.98 kB / 318.9 MB, free: 13.6 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001766/0.3513, allocations: 1.343 MB / 320.3 MB, free: 12.21 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.527e-06/0.3513, allocations: 0 / 320.3 MB, free: 12.21 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003135/0.3544, allocations: 1.018 MB / 321.3 MB, free: 11.12 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003201/0.3548, allocations: 152.7 kB / 321.4 MB, free: 10.95 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001383/0.355, allocations: 19.95 kB / 321.4 MB, free: 10.93 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005522/0.3555, allocations: 51.95 kB / 321.5 MB, free: 10.88 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003114/0.3558, allocations: 103.7 kB / 321.6 MB, free: 10.78 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.673e-05/0.3559, allocations: 20.11 kB / 321.6 MB, free: 10.76 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0002527/0.3562, allocations: 168.5 kB / 321.8 MB, free: 10.59 MB / 266.7 MB Notification: Performance of sort global known variables: time 4.3e-07/0.3562, allocations: 4 kB / 321.8 MB, free: 10.59 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0006818/0.3569, allocations: 104 kB / 321.9 MB, free: 10.48 MB / 266.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.0003333/0.3572, allocations: 150.1 kB / 322 MB, free: 10.33 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.001826/0.3591, allocations: 0.4985 MB / 322.5 MB, free: 9.836 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 4.719e-06/0.3591, allocations: 0 / 322.5 MB, free: 9.836 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001021/0.3602, allocations: 295.6 kB / 322.8 MB, free: 9.547 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006114/0.3608, allocations: 44.75 kB / 322.9 MB, free: 9.504 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003893/0.3647, allocations: 1.192 MB / 324.1 MB, free: 8.266 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004224/0.3652, allocations: 0.7881 MB / 324.8 MB, free: 7.449 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001822/0.3654, allocations: 31.42 kB / 324.9 MB, free: 7.418 MB / 266.7 MB Notification: Performance of SimCode: time 1.212e-06/0.3654, allocations: 0 / 324.9 MB, free: 7.418 MB / 266.7 MB Notification: Performance of Templates: time 0.01452/0.3799, allocations: 6.376 MB / 331.3 MB, free: 1.035 MB / 266.7 MB