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_trunk_cpp_Modelica.Mechanics.Translational.Examples.Brake") Notification: Performance of loadModel(Modelica): time 2.15/2.15, allocations: 224.7 MB / 241.1 MB, free: 1.676 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.88e-05/2.877e-05, allocations: 4 kB / 294.6 MB, free: 11.39 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1162/0.1162, allocations: 50.41 MB / 345 MB, free: 8.938 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Brake): time 0.003468/0.1198, allocations: 1.936 MB / 346.9 MB, free: 6.984 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001439/0.1213, allocations: 459.4 kB / 347.4 MB, free: 6.535 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002214/0.1215, allocations: 4 kB / 347.4 MB, free: 6.531 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001719/0.1217, allocations: 35.77 kB / 347.4 MB, free: 6.496 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002857/0.122, allocations: 91.66 kB / 347.5 MB, free: 6.406 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005112/0.1225, allocations: 127.8 kB / 347.6 MB, free: 6.281 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004549/0.123, allocations: 224.1 kB / 347.8 MB, free: 6.062 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001419/0.1232, allocations: 35.83 kB / 347.9 MB, free: 6.027 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003026/0.1235, allocations: 171.6 kB / 348 MB, free: 5.859 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003912/0.1239, allocations: 203.4 kB / 348.2 MB, free: 5.66 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002218/0.1241, allocations: 55.95 kB / 348.3 MB, free: 5.605 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 8.825e-05/0.1242, allocations: 24 kB / 348.3 MB, free: 5.582 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001335/0.1244, allocations: 71.8 kB / 348.4 MB, free: 5.512 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001058/0.1245, allocations: 31.94 kB / 348.4 MB, free: 5.48 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000588/0.1251, allocations: 319.4 kB / 348.7 MB, free: 5.168 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.808e-06/0.1251, allocations: 0 / 348.7 MB, free: 5.168 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.716e-06/0.1251, allocations: 0 / 348.7 MB, free: 5.168 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.296e-05/0.1251, allocations: 0 / 348.7 MB, free: 5.168 MB / 282.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.001887/0.127, allocations: 0.6044 MB / 349.3 MB, free: 4.512 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.345e-05/0.1271, allocations: 8.031 kB / 349.3 MB, free: 4.504 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000149/0.1273, allocations: 35.58 kB / 349.4 MB, free: 4.469 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004981/0.1278, allocations: 275.4 kB / 349.6 MB, free: 4.16 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.904e-05/0.1278, allocations: 20.56 kB / 349.7 MB, free: 4.141 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001076/0.128, allocations: 32 kB / 349.7 MB, free: 4.109 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001217/0.1292, allocations: 384.6 kB / 350.1 MB, free: 3.73 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.792e-05/0.1293, allocations: 3.906 kB / 350.1 MB, free: 3.727 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.053e-05/0.1293, allocations: 12 kB / 350.1 MB, free: 3.715 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.36e-05/0.1294, allocations: 7.953 kB / 350.1 MB, free: 3.707 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001367/0.1307, allocations: 406 kB / 350.5 MB, free: 3.312 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00346/0.1342, allocations: 1.135 MB / 351.6 MB, free: 2.102 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000912/0.1352, allocations: 295.5 kB / 351.9 MB, free: 1.801 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.089e-05/0.1353, allocations: 4.984 kB / 351.9 MB, free: 1.797 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.38e-05/0.1353, allocations: 34.56 kB / 351.9 MB, free: 1.754 MB / 282.7 MB Notification: Performance of pre-optimization done (n=39): time 3.697e-06/0.1354, allocations: 0 / 351.9 MB, free: 1.754 MB / 282.7 MB Notification: Performance of matching and sorting (n=45): time 0.008444/0.1438, allocations: 2.12 MB / 354.1 MB, free: 15.5 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.916e-05/0.1439, allocations: 63.39 kB / 354.1 MB, free: 15.42 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003889/0.1444, allocations: 212.1 kB / 354.3 MB, free: 15.21 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001058/0.1445, allocations: 37.7 kB / 354.4 MB, free: 15.16 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001829/0.1447, allocations: 215.2 kB / 354.6 MB, free: 14.95 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002108/0.1449, allocations: 153.9 kB / 354.7 MB, free: 14.8 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.932e-05/0.145, allocations: 8 kB / 354.7 MB, free: 14.79 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001691/0.1451, allocations: 330.8 kB / 355.1 MB, free: 14.46 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007416/0.1459, allocations: 217 kB / 355.3 MB, free: 14.25 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007958/0.1467, allocations: 276.8 kB / 355.5 MB, free: 13.96 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006213/0.1473, allocations: 172.8 kB / 355.7 MB, free: 13.79 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.216e-06/0.1474, allocations: 0 / 355.7 MB, free: 13.79 MB / 298.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.003127/0.1505, allocations: 0.6847 MB / 356.4 MB, free: 13.09 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.628e-05/0.1506, allocations: 11.95 kB / 356.4 MB, free: 13.08 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.082e-05/0.1506, allocations: 0 / 356.4 MB, free: 13.08 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001441/0.1521, allocations: 497.5 kB / 356.9 MB, free: 12.59 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006316/0.1527, allocations: 75.84 kB / 357 MB, free: 12.52 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002073/0.1548, allocations: 1.39 MB / 358.4 MB, free: 11.07 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008776/0.1557, allocations: 91.98 kB / 358.4 MB, free: 10.98 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.302e-05/0.1558, allocations: 20 kB / 358.5 MB, free: 10.96 MB / 298.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.0002906/0.1561, allocations: 161.6 kB / 358.6 MB, free: 10.8 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001076/0.1562, allocations: 35.61 kB / 358.7 MB, free: 10.76 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001461/0.1564, allocations: 43.31 kB / 358.7 MB, free: 10.72 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.298e-06/0.1564, allocations: 8 kB / 358.7 MB, free: 10.71 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.514e-06/0.1564, allocations: 0 / 358.7 MB, free: 10.71 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.538e-06/0.1565, allocations: 3.984 kB / 358.7 MB, free: 10.71 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004743/0.1612, allocations: 1.376 MB / 360.1 MB, free: 9.254 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.819e-06/0.1613, allocations: 8.031 kB / 360.1 MB, free: 9.246 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005561/0.1618, allocations: 63.91 kB / 360.2 MB, free: 9.184 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001259/0.1631, allocations: 465.3 kB / 360.6 MB, free: 8.723 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.434e-05/0.1632, allocations: 19.97 kB / 360.6 MB, free: 8.703 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00179/0.165, allocations: 1.351 MB / 362 MB, free: 7.301 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.118e-06/0.165, allocations: 0 / 362 MB, free: 7.301 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003152/0.1682, allocations: 1.006 MB / 363 MB, free: 6.227 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003127/0.1686, allocations: 148.8 kB / 363.1 MB, free: 6.062 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001342/0.1687, allocations: 20 kB / 363.2 MB, free: 6.043 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005618/0.1693, allocations: 51.95 kB / 363.2 MB, free: 5.992 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003077/0.1696, allocations: 99.78 kB / 363.3 MB, free: 5.895 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.876e-05/0.1697, allocations: 27.91 kB / 363.3 MB, free: 5.867 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0002458/0.17, allocations: 164.5 kB / 363.5 MB, free: 5.703 MB / 298.7 MB Notification: Performance of sort global known variables: time 3.81e-07/0.17, allocations: 0 / 363.5 MB, free: 5.703 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0006092/0.1706, allocations: 104 kB / 363.6 MB, free: 5.602 MB / 298.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.0003124/0.1709, allocations: 145.8 kB / 363.7 MB, free: 5.449 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001778/0.1727, allocations: 0.5181 MB / 364.3 MB, free: 4.934 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 9.117e-06/0.1727, allocations: 8.312 kB / 364.3 MB, free: 4.926 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000966/0.1737, allocations: 283.6 kB / 364.5 MB, free: 4.648 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005535/0.1743, allocations: 40.41 kB / 364.6 MB, free: 4.609 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003904/0.1782, allocations: 1.192 MB / 365.8 MB, free: 3.367 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004298/0.1787, allocations: 0.788 MB / 366.6 MB, free: 2.555 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001839/0.1789, allocations: 35.42 kB / 366.6 MB, free: 2.52 MB / 298.7 MB Notification: Performance of SimCode: time 1.082e-06/0.1789, allocations: 0 / 366.6 MB, free: 2.52 MB / 298.7 MB Notification: Performance of Templates: time 0.01385/0.1928, allocations: 6.368 MB / 373 MB, free: 12.14 MB / 314.7 MB