Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank.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) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Running command: translateModel(ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank.level|tank.medium.T|timeTable.a|timeTable.b|timeTable.last|timeTable.nextEvent",fileNamePrefix="ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank") Notification: Performance of loadModel(ModelicaTest): time 2.632/2.632, allocations: 234.9 MB / 251.1 MB, free: 10.55 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.00043/0.0004299, allocations: 12 kB / 314.9 MB, free: 10.59 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3351/0.3356, allocations: 54.87 MB / 369.8 MB, free: 10.86 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.116/1.452, allocations: 330.3 MB / 0.6837 GB, free: 127.7 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003168/1.452, allocations: 86.25 kB / 0.6838 GB, free: 127.7 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5122/1.965, allocations: 142 MB / 0.8225 GB, free: 17.44 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.916e-06/1.965, allocations: 4 kB / 0.8225 GB, free: 17.44 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0001091/1.965, allocations: 20 kB / 0.8225 GB, free: 17.42 MB / 490.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 153 * Number of variables: 153 Notification: Performance of Generate backend data structure: time 0.005051/1.97, allocations: 1.276 MB / 0.8238 GB, free: 16.09 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.871e-05/1.97, allocations: 12.02 kB / 0.8238 GB, free: 16.07 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000823/1.971, allocations: 106.9 kB / 0.8239 GB, free: 15.97 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002774/1.974, allocations: 0.714 MB / 0.8246 GB, free: 15.21 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001628/1.974, allocations: 120.6 kB / 0.8247 GB, free: 15.08 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002286/1.974, allocations: 48 kB / 0.8247 GB, free: 15.03 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003317/1.977, allocations: 1.015 MB / 0.8257 GB, free: 13.97 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.567e-05/1.977, allocations: 4 kB / 0.8257 GB, free: 13.96 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001887/1.978, allocations: 27.98 kB / 0.8258 GB, free: 13.94 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001323/1.978, allocations: 53.28 kB / 0.8258 GB, free: 13.89 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003146/1.981, allocations: 0.9145 MB / 0.8267 GB, free: 12.97 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01211/1.993, allocations: 3.998 MB / 0.8306 GB, free: 8.777 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002083/1.995, allocations: 0.6409 MB / 0.8312 GB, free: 8.125 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005921/2.001, allocations: 2.315 MB / 0.8335 GB, free: 5.562 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001315/2.003, allocations: 435.4 kB / 0.8339 GB, free: 5.117 MB / 490.7 MB Notification: Performance of pre-optimization done (n=47): time 4.238e-06/2.003, allocations: 3.938 kB / 0.8339 GB, free: 5.113 MB / 490.7 MB Notification: Performance of matching and sorting (n=52): time 0.01113/2.014, allocations: 2.613 MB / 0.8365 GB, free: 2.363 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.59e-05/2.014, allocations: 158.6 kB / 0.8366 GB, free: 2.172 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001749/2.016, allocations: 0.7895 MB / 0.8374 GB, free: 1.367 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001898/2.016, allocations: 37.7 kB / 0.8374 GB, free: 1.324 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000434/2.016, allocations: 453.7 kB / 0.8379 GB, free: 0.8789 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002651/2.017, allocations: 173.6 kB / 0.838 GB, free: 0.707 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001054/2.017, allocations: 16 kB / 0.838 GB, free: 0.6914 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0001053/2.017, allocations: 338.8 kB / 0.8384 GB, free: 360 kB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001271/2.018, allocations: 361.8 kB / 0.8387 GB, free: 0 / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.3221/2.34, allocations: 0.6283 MB / 0.8393 GB, free: 120.3 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001426/2.342, allocations: 463.7 kB / 0.8398 GB, free: 120.3 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.303e-05/2.342, allocations: 2.438 kB / 0.8398 GB, free: 120.3 MB / 490.7 MB Notification: Performance of matching and sorting (n=102) (initialization): time 0.004015/2.346, allocations: 1.2 MB / 0.8409 GB, free: 120.2 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000258/2.346, allocations: 379.5 kB / 0.8413 GB, free: 119.8 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.899e-05/2.346, allocations: 8.844 kB / 0.8413 GB, free: 119.8 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001527/2.348, allocations: 344.2 kB / 0.8416 GB, free: 119.8 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00126/2.349, allocations: 160.6 kB / 0.8418 GB, free: 119.8 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001848/2.351, allocations: 1.442 MB / 0.8432 GB, free: 118.7 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001319/2.352, allocations: 45.66 kB / 0.8432 GB, free: 118.7 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001838/2.352, allocations: 46.23 kB / 0.8433 GB, free: 118.7 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.33e-05/2.352, allocations: 6.469 kB / 0.8433 GB, free: 118.7 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003128/2.356, allocations: 1.088 MB / 0.8444 GB, free: 118.7 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.156e-05/2.356, allocations: 9.469 kB / 0.8444 GB, free: 118.7 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001113/2.357, allocations: 250.8 kB / 0.8446 GB, free: 118.6 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001147/2.358, allocations: 159.3 kB / 0.8448 GB, free: 118.6 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002625/2.361, allocations: 2.353 MB / 0.8471 GB, free: 116.8 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009903/2.362, allocations: 53.16 kB / 0.8471 GB, free: 116.8 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001215/2.362, allocations: 46.16 kB / 0.8471 GB, free: 116.8 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 39 * Number of states: 0 () * Number of discrete variables: 11 ($whenCondition1,tank.regularFlow[1],tank.regularFlow[2],tank.inFlow[1],tank.inFlow[2],timeTable.a,timeTable.b,timeTable.last,$PRE.timeTable.nextEvent,timeTable.nextEvent,timeTable.nextEventScaled) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (89): * Single equations (assignments): 86 * Array equations: 0 * Algorithm blocks: 1 * 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 {2 1,2 4} Notification: Performance of prepare postOptimizeDAE: time 0.0008462/2.363, allocations: 395.4 kB / 0.8475 GB, free: 116.6 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002441/2.363, allocations: 85.78 kB / 0.8476 GB, free: 116.6 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003354/2.366, allocations: 1.051 MB / 0.8486 GB, free: 116.5 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.058e-05/2.366, allocations: 3.969 kB / 0.8486 GB, free: 116.5 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.898e-06/2.366, allocations: 0 / 0.8486 GB, free: 116.5 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.034e-05/2.366, allocations: 3.938 kB / 0.8486 GB, free: 116.5 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004385/2.371, allocations: 1.856 MB / 0.8505 GB, free: 116.1 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.011e-06/2.371, allocations: 2.531 kB / 0.8505 GB, free: 116.1 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007149/2.371, allocations: 79.98 kB / 0.8505 GB, free: 116.1 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001354/2.373, allocations: 338.7 kB / 0.8509 GB, free: 116.1 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000137/2.373, allocations: 18.81 kB / 0.8509 GB, free: 116.1 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001672/2.375, allocations: 1.426 MB / 0.8523 GB, free: 115.1 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.727e-06/2.375, allocations: 2.156 kB / 0.8523 GB, free: 115.1 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003714/2.378, allocations: 1.512 MB / 0.8537 GB, free: 114.9 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006595/2.379, allocations: 251.4 kB / 0.854 GB, free: 114.8 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002231/2.379, allocations: 10.97 kB / 0.854 GB, free: 114.8 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009691/2.38, allocations: 43.88 kB / 0.854 GB, free: 114.7 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001805/2.381, allocations: 55.42 kB / 0.8541 GB, free: 114.7 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.625e-05/2.381, allocations: 25.28 kB / 0.8541 GB, free: 114.7 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.0009441/2.382, allocations: 0.5246 MB / 0.8546 GB, free: 114.6 MB / 490.7 MB Notification: Performance of sort global known variables: time 4.31e-07/2.382, allocations: 0 / 0.8546 GB, free: 114.6 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.00273/2.384, allocations: 0.6617 MB / 0.8553 GB, free: 114.6 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (tank.medium.T,tank.level) * Number of discrete variables: 10 ($whenCondition1,tank.regularFlow[1],tank.regularFlow[2],tank.inFlow[1],tank.inFlow[2],timeTable.a,timeTable.b,timeTable.last,timeTable.nextEvent,timeTable.nextEventScaled) * Number of discrete states: 6 (timeTable.nextEvent,timeTable.last,timeTable.nextEventScaled,timeTable.b,timeTable.a,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (42): * Single equations (assignments): 39 * Array equations: 0 * Algorithm blocks: 1 * 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 {2 1,2 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.001937/2.386, allocations: 0.6205 MB / 0.8559 GB, free: 114.6 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.004621/2.391, allocations: 1.619 MB / 0.8575 GB, free: 114.3 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 8.075e-06/2.391, allocations: 0 / 0.8575 GB, free: 114.3 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001531/2.393, allocations: 478.2 kB / 0.8579 GB, free: 114.2 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002318/2.395, allocations: 284.1 kB / 0.8582 GB, free: 114.2 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005066/2.4, allocations: 2.112 MB / 0.8602 GB, free: 113.5 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000655/2.401, allocations: 1.027 MB / 0.8613 GB, free: 112.8 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004398/2.401, allocations: 80.2 kB / 0.8613 GB, free: 112.8 MB / 490.7 MB Notification: Performance of SimCode: time 1.363e-06/2.401, allocations: 0 / 0.8613 GB, free: 112.8 MB / 490.7 MB Notification: Performance of Templates: time 0.0421/2.443, allocations: 21.9 MB / 0.8827 GB, free: 112 MB / 490.7 MB