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_cpp_Modelica.Mechanics.Translational.Examples.Brake") Notification: Performance of loadModel(Modelica): time 1.807/1.807, allocations: 171.1 MB / 186.3 MB, free: 1.398 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.248e-05/3.252e-05, allocations: 6.188 kB / 228.1 MB, free: 7.977 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08552/0.08559, allocations: 38.76 MB / 266.9 MB, free: 1.129 MB / 218.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Brake): time 0.00329/0.08894, allocations: 1.905 MB / 268.8 MB, free: 15.2 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.001404/0.0904, allocations: 467.4 kB / 269.2 MB, free: 14.74 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002226/0.09066, allocations: 11.88 kB / 269.3 MB, free: 14.73 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001504/0.09083, allocations: 31.75 kB / 269.3 MB, free: 14.7 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002647/0.09111, allocations: 83.73 kB / 269.4 MB, free: 14.62 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004987/0.09162, allocations: 135.8 kB / 269.5 MB, free: 14.48 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004118/0.09205, allocations: 216.1 kB / 269.7 MB, free: 14.27 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001465/0.09221, allocations: 35.88 kB / 269.7 MB, free: 14.24 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002962/0.09252, allocations: 163.6 kB / 269.9 MB, free: 14.08 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003695/0.0929, allocations: 179.5 kB / 270.1 MB, free: 13.9 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003194/0.09324, allocations: 107.9 kB / 270.2 MB, free: 13.8 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 9.436e-05/0.09335, allocations: 24 kB / 270.2 MB, free: 13.77 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001238/0.09348, allocations: 71.72 kB / 270.3 MB, free: 13.7 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001036/0.0936, allocations: 32 kB / 270.3 MB, free: 13.67 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005764/0.09419, allocations: 327.4 kB / 270.6 MB, free: 13.35 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.687e-06/0.09421, allocations: 0 / 270.6 MB, free: 13.35 MB / 234.7 MB Notification: Performance of FrontEnd: time 2.936e-06/0.09423, allocations: 0 / 270.6 MB, free: 13.35 MB / 234.7 MB Notification: Performance of Transformations before backend: time 1.449e-05/0.09425, allocations: 0 / 270.6 MB, free: 13.35 MB / 234.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.00184/0.0961, allocations: 0.6045 MB / 271.2 MB, free: 12.7 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.94e-05/0.09617, allocations: 8.031 kB / 271.2 MB, free: 12.69 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001395/0.09632, allocations: 35.62 kB / 271.3 MB, free: 12.66 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004774/0.09681, allocations: 263.5 kB / 271.5 MB, free: 12.36 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.148e-05/0.09687, allocations: 28.45 kB / 271.6 MB, free: 12.33 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001078/0.09699, allocations: 28 kB / 271.6 MB, free: 12.3 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001116/0.09812, allocations: 368.6 kB / 272 MB, free: 11.94 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.989e-05/0.09819, allocations: 7.906 kB / 272 MB, free: 11.93 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.791e-05/0.09826, allocations: 12 kB / 272 MB, free: 11.92 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.482e-05/0.09829, allocations: 8 kB / 272 MB, free: 11.91 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001338/0.09964, allocations: 382 kB / 272.4 MB, free: 11.54 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003333/0.103, allocations: 1.112 MB / 273.5 MB, free: 10.35 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008647/0.1039, allocations: 290.9 kB / 273.7 MB, free: 10.06 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.781e-05/0.104, allocations: 8.984 kB / 273.8 MB, free: 10.05 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.582e-05/0.1041, allocations: 34.56 kB / 273.8 MB, free: 10.01 MB / 234.7 MB Notification: Performance of pre-optimization done (n=39): time 3.156e-06/0.1041, allocations: 0 / 273.8 MB, free: 10.01 MB / 234.7 MB Notification: Performance of matching and sorting (n=45): time 0.008367/0.1125, allocations: 2.219 MB / 276 MB, free: 7.652 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.881e-05/0.1126, allocations: 67.36 kB / 276.1 MB, free: 7.574 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003448/0.1129, allocations: 208.2 kB / 276.3 MB, free: 7.367 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001238/0.1131, allocations: 41.7 kB / 276.3 MB, free: 7.32 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001643/0.1132, allocations: 215.1 kB / 276.5 MB, free: 7.105 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002142/0.1135, allocations: 154 kB / 276.7 MB, free: 6.953 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.819e-05/0.1135, allocations: 12 kB / 276.7 MB, free: 6.941 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 0.0001577/0.1137, allocations: 330.8 kB / 277 MB, free: 6.609 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000708/0.1144, allocations: 197 kB / 277.2 MB, free: 6.418 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007632/0.1152, allocations: 280.8 kB / 277.5 MB, free: 6.121 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005771/0.1158, allocations: 164.8 kB / 277.6 MB, free: 5.957 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.562e-06/0.1158, allocations: 4 kB / 277.6 MB, free: 5.953 MB / 234.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.002883/0.1187, allocations: 0.8173 MB / 278.5 MB, free: 5.125 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.742e-05/0.1188, allocations: 11.98 kB / 278.5 MB, free: 5.113 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.134e-05/0.1188, allocations: 0 / 278.5 MB, free: 5.113 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001086/0.1199, allocations: 361.6 kB / 278.8 MB, free: 4.754 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005906/0.1206, allocations: 75.91 kB / 278.9 MB, free: 4.68 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001898/0.1225, allocations: 1.358 MB / 280.3 MB, free: 3.27 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009127/0.1234, allocations: 96.03 kB / 280.4 MB, free: 3.176 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.632e-05/0.1235, allocations: 16 kB / 280.4 MB, free: 3.16 MB / 234.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.0003003/0.1238, allocations: 170 kB / 280.5 MB, free: 2.984 MB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001149/0.124, allocations: 31.58 kB / 280.6 MB, free: 2.953 MB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001465/0.1241, allocations: 47.31 kB / 280.6 MB, free: 2.91 MB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.556e-06/0.1242, allocations: 4 kB / 280.6 MB, free: 2.906 MB / 234.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.188e-05/0.1242, allocations: 3.984 kB / 280.6 MB, free: 2.902 MB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.043e-06/0.1242, allocations: 0 / 280.6 MB, free: 2.902 MB / 234.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005008/0.1292, allocations: 1.507 MB / 282.1 MB, free: 1.316 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.948e-06/0.1293, allocations: 3.938 kB / 282.1 MB, free: 1.312 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005691/0.1298, allocations: 63.91 kB / 282.2 MB, free: 1.25 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00096/0.1308, allocations: 333.6 kB / 282.5 MB, free: 0.918 MB / 234.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.188e-05/0.1309, allocations: 16.05 kB / 282.5 MB, free: 0.9023 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001707/0.1327, allocations: 1.315 MB / 283.9 MB, free: 15.54 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.563e-06/0.1327, allocations: 7.984 kB / 283.9 MB, free: 15.53 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003496/0.1362, allocations: 1.131 MB / 285 MB, free: 14.33 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002882/0.1366, allocations: 144.7 kB / 285.1 MB, free: 14.17 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001255/0.1367, allocations: 20 kB / 285.1 MB, free: 14.15 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005465/0.1373, allocations: 47.95 kB / 285.2 MB, free: 14.1 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003135/0.1376, allocations: 111.7 kB / 285.3 MB, free: 13.99 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.989e-05/0.1377, allocations: 15.98 kB / 285.3 MB, free: 13.98 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.0002545/0.1379, allocations: 168.5 kB / 285.5 MB, free: 13.81 MB / 250.7 MB Notification: Performance of sort global known variables: time 3.81e-07/0.138, allocations: 0 / 285.5 MB, free: 13.81 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0006583/0.1386, allocations: 99.98 kB / 285.6 MB, free: 13.71 MB / 250.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.000318/0.139, allocations: 139 kB / 285.7 MB, free: 13.57 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.001762/0.1407, allocations: 0.4951 MB / 286.2 MB, free: 13.07 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 4.849e-06/0.1408, allocations: 0 / 286.2 MB, free: 13.07 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001008/0.1418, allocations: 284.3 kB / 286.5 MB, free: 12.8 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006033/0.1425, allocations: 44.34 kB / 286.5 MB, free: 12.75 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003963/0.1464, allocations: 1.18 MB / 287.7 MB, free: 11.52 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004783/0.147, allocations: 0.7841 MB / 288.5 MB, free: 10.7 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00018/0.1472, allocations: 31.42 kB / 288.5 MB, free: 10.67 MB / 250.7 MB Notification: Performance of SimCode: time 3.056e-06/0.1472, allocations: 4 kB / 288.5 MB, free: 10.67 MB / 250.7 MB Notification: Performance of Templates: time 0.0144/0.1616, allocations: 6.037 MB / 294.6 MB, free: 4.621 MB / 250.7 MB