Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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.812/1.812, allocations: 171.1 MB / 187.3 MB, free: 1.133 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003542/0.0003543, allocations: 12 kB / 233.8 MB, free: 0.9844 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08463/0.085, allocations: 38.77 MB / 272.5 MB, free: 10.13 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3519/0.4369, allocations: 67.92 MB / 340.5 MB, free: 15.18 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002643/0.4373, allocations: 75.94 kB / 340.5 MB, free: 15.11 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02501/0.4623, allocations: 5.373 MB / 345.9 MB, free: 9.73 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.194e-06/0.4624, allocations: 4 kB / 345.9 MB, free: 9.727 MB / 282.7 MB Notification: Performance of Transformations before backend: time 2.429e-05/0.4624, allocations: 4 kB / 345.9 MB, free: 9.723 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.001732/0.4641, allocations: 0.6313 MB / 346.6 MB, free: 9.039 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.298e-05/0.4642, allocations: 12.03 kB / 346.6 MB, free: 9.027 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001213/0.4643, allocations: 39.61 kB / 346.6 MB, free: 8.988 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004523/0.4648, allocations: 271.5 kB / 346.9 MB, free: 8.684 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.387e-05/0.4648, allocations: 20.56 kB / 346.9 MB, free: 8.664 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001037/0.465, allocations: 31.95 kB / 346.9 MB, free: 8.633 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001147/0.4661, allocations: 376.7 kB / 347.3 MB, free: 8.258 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.715e-05/0.4662, allocations: 3.906 kB / 347.3 MB, free: 8.254 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.575e-05/0.4662, allocations: 23.92 kB / 347.3 MB, free: 8.23 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.037e-05/0.4663, allocations: 4 kB / 347.3 MB, free: 8.227 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001319/0.4676, allocations: 398 kB / 347.7 MB, free: 7.84 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003224/0.4708, allocations: 1.131 MB / 348.8 MB, free: 6.629 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008588/0.4717, allocations: 293.2 kB / 349.1 MB, free: 6.332 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.329e-05/0.4718, allocations: 11.94 kB / 349.1 MB, free: 6.32 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.27e-05/0.4718, allocations: 30.56 kB / 349.2 MB, free: 6.281 MB / 282.7 MB Notification: Performance of pre-optimization done (n=39): time 3.086e-06/0.4719, allocations: 4 kB / 349.2 MB, free: 6.277 MB / 282.7 MB Notification: Performance of matching and sorting (n=45): time 0.008173/0.48, allocations: 2.213 MB / 351.4 MB, free: 3.93 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.838e-05/0.4801, allocations: 59.41 kB / 351.4 MB, free: 3.859 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000359/0.4805, allocations: 233 kB / 351.7 MB, free: 3.625 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 9.624e-05/0.4806, allocations: 37.7 kB / 351.7 MB, free: 3.582 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001467/0.4808, allocations: 219.1 kB / 351.9 MB, free: 3.363 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001898/0.481, allocations: 150 kB / 352.1 MB, free: 3.215 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.123e-05/0.481, allocations: 12 kB / 352.1 MB, free: 3.203 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001395/0.4812, allocations: 330.8 kB / 352.4 MB, free: 2.871 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007049/0.4819, allocations: 209 kB / 352.6 MB, free: 2.668 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007982/0.4827, allocations: 280.8 kB / 352.9 MB, free: 2.367 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005928/0.4833, allocations: 180.7 kB / 353.1 MB, free: 2.188 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.627e-06/0.4833, allocations: 0 / 353.1 MB, free: 2.188 MB / 282.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.002874/0.4862, allocations: 0.794 MB / 353.9 MB, free: 1.383 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.196e-05/0.4863, allocations: 4 kB / 353.9 MB, free: 1.379 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.517e-06/0.4863, allocations: 0 / 353.9 MB, free: 1.379 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001481/0.4878, allocations: 0.5169 MB / 354.4 MB, free: 0.8555 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00054/0.4883, allocations: 75.95 kB / 354.4 MB, free: 0.7812 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001924/0.4903, allocations: 1.378 MB / 355.8 MB, free: 15.35 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008401/0.4911, allocations: 99.91 kB / 355.9 MB, free: 15.25 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.887e-05/0.4912, allocations: 23.98 kB / 355.9 MB, free: 15.23 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 () * Number of clocked 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.0003066/0.4916, allocations: 158.1 kB / 356.1 MB, free: 15.07 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001132/0.4917, allocations: 35.58 kB / 356.1 MB, free: 15.03 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001491/0.4918, allocations: 51.3 kB / 356.2 MB, free: 14.98 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.604e-06/0.4919, allocations: 7.938 kB / 356.2 MB, free: 14.97 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.877e-06/0.4919, allocations: 4 kB / 356.2 MB, free: 14.97 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.365e-06/0.4919, allocations: 3.984 kB / 356.2 MB, free: 14.96 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004973/0.4969, allocations: 1.475 MB / 357.7 MB, free: 13.41 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.366e-06/0.4969, allocations: 4 kB / 357.7 MB, free: 13.41 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005312/0.4975, allocations: 63.86 kB / 357.7 MB, free: 13.34 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001365/0.4988, allocations: 497.5 kB / 358.2 MB, free: 12.85 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.517e-05/0.4989, allocations: 19.97 kB / 358.2 MB, free: 12.83 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001727/0.5007, allocations: 1.323 MB / 359.6 MB, free: 11.46 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.655e-06/0.5007, allocations: 7.938 kB / 359.6 MB, free: 11.45 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003453/0.5042, allocations: 1.045 MB / 360.6 MB, free: 10.37 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000305/0.5045, allocations: 156.7 kB / 360.8 MB, free: 10.2 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001333/0.5047, allocations: 16 kB / 360.8 MB, free: 10.18 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000543/0.5052, allocations: 51.91 kB / 360.8 MB, free: 10.13 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003269/0.5056, allocations: 111.7 kB / 361 MB, free: 10.02 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.89e-05/0.5056, allocations: 23.97 kB / 361 MB, free: 9.996 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0002366/0.5059, allocations: 164.5 kB / 361.1 MB, free: 9.832 MB / 298.7 MB Notification: Performance of sort global known variables: time 3.71e-07/0.5059, allocations: 0 / 361.1 MB, free: 9.832 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0006638/0.5066, allocations: 111.9 kB / 361.2 MB, free: 9.723 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) * Number of clocked states: 0 () * 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.0003002/0.5069, allocations: 143 kB / 361.4 MB, free: 9.574 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001675/0.5086, allocations: 499.2 kB / 361.9 MB, free: 9.09 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.016e-06/0.5086, allocations: 4 kB / 361.9 MB, free: 9.086 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009381/0.5096, allocations: 279.7 kB / 362.1 MB, free: 8.812 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000618/0.5102, allocations: 40.36 kB / 362.2 MB, free: 8.773 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003861/0.5141, allocations: 1.207 MB / 363.4 MB, free: 7.516 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000411/0.5145, allocations: 0.7841 MB / 364.2 MB, free: 6.707 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001778/0.5147, allocations: 31.42 kB / 364.2 MB, free: 6.676 MB / 298.7 MB Notification: Performance of SimCode: time 1.763e-06/0.5147, allocations: 0 / 364.2 MB, free: 6.676 MB / 298.7 MB Notification: Performance of Templates: time 0.01324/0.528, allocations: 6.043 MB / 370.3 MB, free: 0.625 MB / 298.7 MB