Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_Modelica.Mechanics.Translational.Examples.Brake.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/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.2_cpp_Modelica.Mechanics.Translational.Examples.Brake") Notification: Performance of loadModel(Modelica): time 2.044/2.044, allocations: 194.8 MB / 212.3 MB, free: 3.012 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003978/0.0003979, allocations: 8 kB / 264.5 MB, free: 13.64 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1061/0.1065, allocations: 44.5 MB / 309 MB, free: 1.074 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4104/0.517, allocations: 73.26 MB / 382.2 MB, free: 14.71 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002765/0.5173, allocations: 73 kB / 382.3 MB, free: 14.71 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02478/0.5421, allocations: 5.455 MB / 387.7 MB, free: 14.05 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.894e-06/0.5422, allocations: 0 / 387.7 MB, free: 14.05 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.426e-05/0.5422, allocations: 6.5 kB / 387.8 MB, free: 14.05 MB / 314.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.001662/0.5439, allocations: 0.6232 MB / 388.4 MB, free: 13.6 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.256e-05/0.544, allocations: 9.156 kB / 388.4 MB, free: 13.6 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001227/0.5441, allocations: 37.38 kB / 388.4 MB, free: 13.58 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004084/0.5445, allocations: 265.8 kB / 388.7 MB, free: 13.36 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.601e-05/0.5446, allocations: 23.38 kB / 388.7 MB, free: 13.36 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000104/0.5447, allocations: 32.88 kB / 388.7 MB, free: 13.35 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001055/0.5458, allocations: 362.2 kB / 389.1 MB, free: 13.31 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.499e-05/0.5458, allocations: 5.312 kB / 389.1 MB, free: 13.3 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.84e-05/0.5459, allocations: 9.562 kB / 389.1 MB, free: 13.3 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.526e-05/0.5459, allocations: 7.156 kB / 389.1 MB, free: 13.3 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001125/0.547, allocations: 360.8 kB / 389.5 MB, free: 13.3 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003029/0.5501, allocations: 1.137 MB / 390.6 MB, free: 12.83 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007596/0.5509, allocations: 292.5 kB / 390.9 MB, free: 12.79 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.581e-05/0.551, allocations: 7.5 kB / 390.9 MB, free: 12.79 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.386e-05/0.551, allocations: 37.66 kB / 390.9 MB, free: 12.75 MB / 314.7 MB Notification: Performance of pre-optimization done (n=41): time 3.417e-06/0.551, allocations: 0 / 390.9 MB, free: 12.75 MB / 314.7 MB Notification: Performance of matching and sorting (n=47): time 0.006832/0.5579, allocations: 2.01 MB / 392.9 MB, free: 11.99 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.348e-05/0.5579, allocations: 59.69 kB / 393 MB, free: 11.93 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002624/0.5582, allocations: 210.3 kB / 393.2 MB, free: 11.82 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 7.632e-05/0.5583, allocations: 44.56 kB / 393.3 MB, free: 11.79 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.781e-05/0.5584, allocations: 210.1 kB / 393.5 MB, free: 11.61 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001497/0.5586, allocations: 160.1 kB / 393.6 MB, free: 11.52 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.962e-05/0.5586, allocations: 14.19 kB / 393.6 MB, free: 11.52 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.403e-05/0.5587, allocations: 327.7 kB / 393.9 MB, free: 11.2 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005779/0.5593, allocations: 185 kB / 394.1 MB, free: 11.2 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006189/0.5599, allocations: 264.1 kB / 394.4 MB, free: 11.13 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005205/0.5605, allocations: 150.8 kB / 394.5 MB, free: 11.13 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.478e-06/0.5605, allocations: 3.953 kB / 394.5 MB, free: 11.12 MB / 314.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.002297/0.5628, allocations: 0.6438 MB / 395.2 MB, free: 11.03 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.333e-05/0.5628, allocations: 7.75 kB / 395.2 MB, free: 11.03 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.328e-05/0.5629, allocations: 3.875 kB / 395.2 MB, free: 11.03 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001092/0.564, allocations: 388.9 kB / 395.6 MB, free: 10.99 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004819/0.5645, allocations: 73.8 kB / 395.6 MB, free: 10.98 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001435/0.5659, allocations: 1.311 MB / 397 MB, free: 9.941 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008331/0.5668, allocations: 99.41 kB / 397.1 MB, free: 9.934 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.342e-05/0.5669, allocations: 25.33 kB / 397.1 MB, free: 9.934 MB / 314.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): 45 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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.0002951/0.5672, allocations: 157.7 kB / 397.2 MB, free: 9.812 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.765e-05/0.5673, allocations: 34.52 kB / 397.3 MB, free: 9.793 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002321/0.5696, allocations: 0.6412 MB / 397.9 MB, free: 9.695 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.464e-06/0.5697, allocations: 3.875 kB / 397.9 MB, free: 9.695 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.154e-06/0.5697, allocations: 4.062 kB / 397.9 MB, free: 9.691 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.428e-06/0.5697, allocations: 6.719 kB / 397.9 MB, free: 9.688 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004122/0.5738, allocations: 1.321 MB / 399.2 MB, free: 9.266 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.885e-06/0.5739, allocations: 3.906 kB / 399.2 MB, free: 9.266 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005041/0.5744, allocations: 63.98 kB / 399.3 MB, free: 9.258 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009399/0.5753, allocations: 364 kB / 399.7 MB, free: 9.219 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.178e-05/0.5754, allocations: 20.47 kB / 399.7 MB, free: 9.219 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00134/0.5768, allocations: 1.265 MB / 400.9 MB, free: 8.172 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.928e-06/0.5768, allocations: 0 / 400.9 MB, free: 8.172 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00281/0.5796, allocations: 0.8716 MB / 401.8 MB, free: 7.934 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003077/0.58, allocations: 154 kB / 402 MB, free: 7.824 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001311/0.5801, allocations: 17.41 kB / 402 MB, free: 7.824 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005455/0.5807, allocations: 50.27 kB / 402 MB, free: 7.82 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002867/0.581, allocations: 103.9 kB / 402.1 MB, free: 7.82 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.517e-05/0.5811, allocations: 22.09 kB / 402.2 MB, free: 7.82 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0002136/0.5813, allocations: 158.7 kB / 402.3 MB, free: 7.742 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.91e-07/0.5813, allocations: 0 / 402.3 MB, free: 7.742 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0007034/0.582, allocations: 105.4 kB / 402.4 MB, free: 7.738 MB / 314.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.0003383/0.5824, allocations: 148.7 kB / 402.6 MB, free: 7.637 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001677/0.5841, allocations: 0.5347 MB / 403.1 MB, free: 7.547 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.198e-06/0.5841, allocations: 320 / 403.1 MB, free: 7.547 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008825/0.585, allocations: 278 kB / 403.4 MB, free: 7.523 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005922/0.5856, allocations: 46.38 kB / 403.4 MB, free: 7.52 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003502/0.5891, allocations: 1.19 MB / 404.6 MB, free: 6.855 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002578/0.5894, allocations: 0.7938 MB / 405.4 MB, free: 6.152 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001541/0.5896, allocations: 22.81 kB / 405.4 MB, free: 6.145 MB / 314.7 MB Notification: Performance of SimCode: time 1.182e-06/0.5896, allocations: 0 / 405.4 MB, free: 6.145 MB / 314.7 MB Notification: Performance of Templates: time 0.01216/0.6018, allocations: 6.413 MB / 411.8 MB, free: 4.184 MB / 314.7 MB