Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_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_Modelica.Mechanics.Translational.Examples.Brake") Notification: Performance of loadModel(Modelica): time 2.095/2.095, allocations: 171.2 MB / 186.7 MB, free: 1.121 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000354/0.0003546, allocations: 8 kB / 233.8 MB, free: 2.398 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08869/0.08907, allocations: 38.77 MB / 272.6 MB, free: 11.55 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3562/0.4453, allocations: 67.93 MB / 340.6 MB, free: 5.449 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002704/0.4456, allocations: 68.47 kB / 340.6 MB, free: 5.414 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03035/0.476, allocations: 5.385 MB / 346 MB, free: 0.6992 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.195e-06/0.4761, allocations: 4 kB / 346 MB, free: 0.6953 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.12e-05/0.4761, allocations: 8 kB / 346 MB, free: 0.6875 MB / 266.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.001821/0.4779, allocations: 0.6327 MB / 346.6 MB, free: 24 kB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.634e-05/0.478, allocations: 12.03 kB / 346.7 MB, free: 12 kB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001577/0.4782, allocations: 35.8 kB / 346.7 MB, free: 15.97 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005042/0.4787, allocations: 268.8 kB / 347 MB, free: 15.69 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.845e-05/0.4788, allocations: 21.81 kB / 347 MB, free: 15.68 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001029/0.4789, allocations: 30.41 kB / 347 MB, free: 15.66 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001137/0.48, allocations: 377.6 kB / 347.4 MB, free: 15.39 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.647e-05/0.4801, allocations: 3.906 kB / 347.4 MB, free: 15.39 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.161e-05/0.4801, allocations: 10.94 kB / 347.4 MB, free: 15.38 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.54e-05/0.4802, allocations: 8 kB / 347.4 MB, free: 15.38 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001326/0.4815, allocations: 406 kB / 347.8 MB, free: 15.09 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00338/0.4849, allocations: 1.127 MB / 348.9 MB, free: 14.1 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008495/0.4858, allocations: 298.5 kB / 349.2 MB, free: 13.89 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.217e-05/0.4859, allocations: 7.938 kB / 349.2 MB, free: 13.88 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.086e-05/0.4859, allocations: 38.06 kB / 349.3 MB, free: 13.84 MB / 282.7 MB Notification: Performance of pre-optimization done (n=39): time 3.367e-06/0.486, allocations: 0 / 349.3 MB, free: 13.84 MB / 282.7 MB Notification: Performance of matching and sorting (n=45): time 0.008243/0.4942, allocations: 2.213 MB / 351.5 MB, free: 11.88 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.797e-05/0.4943, allocations: 55.41 kB / 351.5 MB, free: 11.82 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003719/0.4947, allocations: 229.5 kB / 351.7 MB, free: 11.62 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001034/0.4948, allocations: 40.5 kB / 351.8 MB, free: 11.58 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001348/0.495, allocations: 158.2 kB / 351.9 MB, free: 11.44 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002024/0.4952, allocations: 155 kB / 352.1 MB, free: 11.31 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.793e-05/0.4952, allocations: 10.12 kB / 352.1 MB, free: 11.31 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001851/0.4954, allocations: 343.4 kB / 352.4 MB, free: 10.98 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006787/0.4961, allocations: 212.5 kB / 352.6 MB, free: 10.84 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007671/0.4969, allocations: 284.4 kB / 352.9 MB, free: 10.62 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005642/0.4975, allocations: 167.8 kB / 353.1 MB, free: 10.51 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.333e-06/0.4975, allocations: 4 kB / 353.1 MB, free: 10.51 MB / 282.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.002818/0.5003, allocations: 0.8039 MB / 353.9 MB, free: 9.883 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.797e-05/0.5004, allocations: 4 kB / 353.9 MB, free: 9.879 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.495e-05/0.5004, allocations: 4 kB / 353.9 MB, free: 9.875 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00148/0.5019, allocations: 0.5077 MB / 354.4 MB, free: 9.457 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005695/0.5025, allocations: 78.83 kB / 354.5 MB, free: 9.383 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001996/0.5045, allocations: 1.379 MB / 355.9 MB, free: 8.082 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009758/0.5056, allocations: 99.72 kB / 356 MB, free: 7.992 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000105/0.5057, allocations: 24.11 kB / 356 MB, free: 7.973 MB / 282.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.0003598/0.5061, allocations: 159.8 kB / 356.1 MB, free: 7.832 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001249/0.5062, allocations: 35.58 kB / 356.2 MB, free: 7.797 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000155/0.5064, allocations: 46.73 kB / 356.2 MB, free: 7.781 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.898e-06/0.5064, allocations: 4 kB / 356.2 MB, free: 7.777 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.736e-06/0.5064, allocations: 4 kB / 356.2 MB, free: 7.773 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.484e-06/0.5064, allocations: 0 / 356.2 MB, free: 7.773 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005112/0.5116, allocations: 1.49 MB / 357.7 MB, free: 6.488 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.399e-05/0.5116, allocations: 7.953 kB / 357.7 MB, free: 6.48 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005692/0.5122, allocations: 55.47 kB / 357.8 MB, free: 6.43 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001352/0.5136, allocations: 498.1 kB / 358.3 MB, free: 6.02 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.34e-05/0.5137, allocations: 22.41 kB / 358.3 MB, free: 6.004 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001833/0.5155, allocations: 1.327 MB / 359.6 MB, free: 4.73 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.3e-06/0.5156, allocations: 0 / 359.6 MB, free: 4.73 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003461/0.519, allocations: 1.044 MB / 360.7 MB, free: 3.891 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003372/0.5194, allocations: 155.6 kB / 360.8 MB, free: 3.738 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001348/0.5196, allocations: 19.44 kB / 360.8 MB, free: 3.727 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005364/0.5201, allocations: 50.72 kB / 360.9 MB, free: 3.684 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003182/0.5205, allocations: 109.2 kB / 361 MB, free: 3.586 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.592e-05/0.5206, allocations: 22.23 kB / 361 MB, free: 3.57 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0002605/0.5208, allocations: 161.6 kB / 361.2 MB, free: 3.43 MB / 282.7 MB Notification: Performance of sort global known variables: time 4.51e-07/0.5208, allocations: 0 / 361.2 MB, free: 3.43 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0006813/0.5215, allocations: 115.2 kB / 361.3 MB, free: 3.332 MB / 282.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.0003146/0.5219, allocations: 135.9 kB / 361.4 MB, free: 3.199 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.001669/0.5235, allocations: 0.4943 MB / 361.9 MB, free: 2.852 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 7.213e-06/0.5236, allocations: 4 kB / 361.9 MB, free: 2.848 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000984/0.5246, allocations: 280 kB / 362.2 MB, free: 2.66 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006034/0.5252, allocations: 51.17 kB / 362.2 MB, free: 2.621 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003959/0.5292, allocations: 1.17 MB / 363.4 MB, free: 1.484 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000472/0.5297, allocations: 0.7881 MB / 364.2 MB, free: 0.6719 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0002785/0.53, allocations: 30.97 kB / 364.2 MB, free: 0.6406 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001419/0.5301, allocations: 30.98 kB / 364.3 MB, free: 0.6133 MB / 282.7 MB Notification: Performance of SimCode: time 1.102e-06/0.5301, allocations: 0 / 364.3 MB, free: 0.6133 MB / 282.7 MB Notification: Performance of Templates: time 0.02118/0.5513, allocations: 7.079 MB / 371.3 MB, free: 9.562 MB / 298.7 MB