Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_Modelica.Mechanics.Translational.Examples.Brake.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) 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.653/1.653, allocations: 171.2 MB / 184.2 MB, free: 12.08 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 2.84e-05/2.862e-05, allocations: 7.984 kB / 228.8 MB, free: 15.45 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2098/0.2098, allocations: 38.77 MB / 267.6 MB, free: 9.449 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1018/0.3116, allocations: 67.84 MB / 335.4 MB, free: 5.504 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002081/0.3119, allocations: 71.95 kB / 335.5 MB, free: 5.434 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02236/0.3343, allocations: 5.377 MB / 340.9 MB, free: 36 kB / 282.7 MB Notification: Performance of FrontEnd: time 1.924e-06/0.3343, allocations: 0 / 340.9 MB, free: 36 kB / 282.7 MB Notification: Performance of Transformations before backend: time 2.001e-05/0.3343, allocations: 4 kB / 340.9 MB, free: 32 kB / 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.001338/0.3357, allocations: 0.6035 MB / 341.5 MB, free: 15.38 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.825e-05/0.3357, allocations: 12.03 kB / 341.5 MB, free: 15.37 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001133/0.3359, allocations: 31.62 kB / 341.5 MB, free: 15.34 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004319/0.3363, allocations: 271.5 kB / 341.8 MB, free: 15.03 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.112e-05/0.3364, allocations: 20.56 kB / 341.8 MB, free: 15.01 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.214e-05/0.3365, allocations: 32 kB / 341.8 MB, free: 14.98 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008771/0.3374, allocations: 368.6 kB / 342.2 MB, free: 14.61 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.127e-05/0.3374, allocations: 0 / 342.2 MB, free: 14.61 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.476e-05/0.3375, allocations: 12 kB / 342.2 MB, free: 14.6 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.336e-05/0.3375, allocations: 11.98 kB / 342.2 MB, free: 14.59 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009247/0.3384, allocations: 378.1 kB / 342.6 MB, free: 14.22 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00273/0.3412, allocations: 1.127 MB / 343.7 MB, free: 13.02 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006513/0.3419, allocations: 288.7 kB / 344 MB, free: 12.72 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004228/0.3423, allocations: 184.8 kB / 344.2 MB, free: 12.54 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.359e-05/0.3424, allocations: 4 kB / 344.2 MB, free: 12.54 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.81e-05/0.3424, allocations: 43.11 kB / 344.2 MB, free: 12.48 MB / 298.7 MB Notification: Performance of pre-optimization done (n=39): time 4.039e-06/0.3425, allocations: 8 kB / 344.2 MB, free: 12.48 MB / 298.7 MB Notification: Performance of matching and sorting (n=45): time 0.004222/0.3467, allocations: 1.587 MB / 345.8 MB, free: 10.79 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.085e-05/0.3468, allocations: 59.41 kB / 345.9 MB, free: 10.72 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003281/0.3471, allocations: 208.9 kB / 346.1 MB, free: 10.5 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 9.441e-05/0.3472, allocations: 45.69 kB / 346.1 MB, free: 10.45 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001448/0.3474, allocations: 207.3 kB / 346.3 MB, free: 10.25 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000188/0.3476, allocations: 157.9 kB / 346.5 MB, free: 10.09 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.528e-05/0.3477, allocations: 8 kB / 346.5 MB, free: 10.09 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001717/0.3478, allocations: 330.8 kB / 346.8 MB, free: 9.754 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004828/0.3483, allocations: 197.1 kB / 347 MB, free: 9.562 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000581/0.3489, allocations: 276.8 kB / 347.3 MB, free: 9.266 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004228/0.3494, allocations: 161.6 kB / 347.4 MB, free: 9.109 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.765e-06/0.3494, allocations: 7.938 kB / 347.4 MB, free: 9.102 MB / 298.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.002181/0.3516, allocations: 0.7683 MB / 348.2 MB, free: 8.32 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.552e-05/0.3516, allocations: 5.094 kB / 348.2 MB, free: 8.316 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.176e-05/0.3517, allocations: 4 kB / 348.2 MB, free: 8.312 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001206/0.3529, allocations: 0.5052 MB / 348.7 MB, free: 7.801 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004426/0.3533, allocations: 71.91 kB / 348.8 MB, free: 7.73 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001777/0.3551, allocations: 1.378 MB / 350.2 MB, free: 6.301 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006338/0.3558, allocations: 92.05 kB / 350.3 MB, free: 6.211 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.22e-05/0.3559, allocations: 27.98 kB / 350.3 MB, free: 6.184 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.0002265/0.3561, allocations: 133.2 kB / 350.4 MB, free: 6.047 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001122/0.3563, allocations: 31.67 kB / 350.5 MB, free: 6.016 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001314/0.3564, allocations: 47.08 kB / 350.5 MB, free: 5.969 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.279e-06/0.3564, allocations: 8 kB / 350.5 MB, free: 5.961 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.612e-06/0.3565, allocations: 0 / 350.5 MB, free: 5.961 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.015e-06/0.3565, allocations: 3.984 kB / 350.5 MB, free: 5.957 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004016/0.3605, allocations: 1.46 MB / 352 MB, free: 4.418 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.647e-06/0.3606, allocations: 8.031 kB / 352 MB, free: 4.41 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004165/0.361, allocations: 63.91 kB / 352 MB, free: 4.348 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001114/0.3621, allocations: 485.2 kB / 352.5 MB, free: 3.867 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.03e-05/0.3622, allocations: 19.97 kB / 352.5 MB, free: 3.848 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001616/0.3638, allocations: 1.319 MB / 353.9 MB, free: 2.477 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.807e-06/0.3639, allocations: 4.031 kB / 353.9 MB, free: 2.473 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002689/0.3666, allocations: 1.084 MB / 354.9 MB, free: 1.32 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003101/0.3669, allocations: 160.7 kB / 355.1 MB, free: 1.145 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001063/0.367, allocations: 19.94 kB / 355.1 MB, free: 1.125 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004343/0.3675, allocations: 47.95 kB / 355.2 MB, free: 1.078 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002667/0.3678, allocations: 111.7 kB / 355.3 MB, free: 0.9688 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.035e-05/0.3679, allocations: 23.97 kB / 355.3 MB, free: 0.9453 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0002365/0.3681, allocations: 161.4 kB / 355.5 MB, free: 0.7852 MB / 298.7 MB Notification: Performance of sort global known variables: time 8.56e-07/0.3681, allocations: 0 / 355.5 MB, free: 0.7852 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0006246/0.3688, allocations: 100 kB / 355.6 MB, free: 0.6875 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.0002858/0.3691, allocations: 143.5 kB / 355.7 MB, free: 0.5391 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001274/0.3704, allocations: 487 kB / 356.2 MB, free: 68 kB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.706e-06/0.3704, allocations: 0 / 356.2 MB, free: 68 kB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.178/0.5484, allocations: 255.8 kB / 356.4 MB, free: 81.84 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005457/0.549, allocations: 41.5 kB / 356.5 MB, free: 81.84 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002922/0.552, allocations: 0.8976 MB / 357.4 MB, free: 81.55 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003366/0.5523, allocations: 0.7852 MB / 358.1 MB, free: 80.85 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001677/0.5525, allocations: 30.06 kB / 358.2 MB, free: 80.85 MB / 298.7 MB Notification: Performance of SimCode: time 2.48e-06/0.5525, allocations: 0.5625 kB / 358.2 MB, free: 80.85 MB / 298.7 MB Notification: Performance of Templates: time 0.009938/0.5625, allocations: 6.05 MB / 364.2 MB, free: 79.71 MB / 298.7 MB