Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/../OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Running command: translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank1.medium.T|tank2.level|tank2.medium.T|tank3.level|tank3.medium.T|tank1.aboveLevel.1.|tank2.aboveLevel.1.|tank2.aboveLevel.2.|tank2.aboveLevel.3.|tank3.aboveLevel.1.|tank3.aboveLevel.2.",fileNamePrefix="Modelica_3.2.1_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2") Notification: Performance of loadModel(Modelica): time 1.56/1.56, allocations: 171.3 MB / 179.2 MB, free: 7.586 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 1.908e-05/1.927e-05, allocations: 4 kB / 222.5 MB, free: 8.703 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0703/0.07034, allocations: 38.77 MB / 261.3 MB, free: 1.84 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.9056/0.976, allocations: 316.3 MB / 0.564 GB, free: 84.71 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002614/0.9763, allocations: 91.19 kB / 0.5641 GB, free: 84.71 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.393/2.37, allocations: 319.6 MB / 0.8762 GB, free: 33.33 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.808e-06/2.37, allocations: 0 / 0.8762 GB, free: 33.33 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0001432/2.37, allocations: 51.23 kB / 0.8762 GB, free: 33.32 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 315 * Number of variables: 315 Notification: Performance of Generate backend data structure: time 0.005777/2.376, allocations: 2.035 MB / 0.8782 GB, free: 32.19 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.867e-05/2.376, allocations: 9.781 kB / 0.8782 GB, free: 32.19 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00105/2.377, allocations: 206.7 kB / 0.8784 GB, free: 32.1 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003542/2.38, allocations: 1.243 MB / 0.8796 GB, free: 31.44 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.522e-05/2.38, allocations: 47.41 kB / 0.8797 GB, free: 31.44 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002985/2.381, allocations: 72.95 kB / 0.8798 GB, free: 31.44 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003982/2.385, allocations: 1.744 MB / 0.8815 GB, free: 30.82 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003678/2.388, allocations: 1.751 MB / 0.8832 GB, free: 30.05 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.656e-05/2.389, allocations: 10.41 kB / 0.8832 GB, free: 30.04 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002149/2.389, allocations: 7.156 kB / 0.8832 GB, free: 30.04 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001689/2.389, allocations: 112.3 kB / 0.8833 GB, free: 30.03 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01371/2.403, allocations: 7.367 MB / 0.8905 GB, free: 25.24 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00205/2.405, allocations: 1.101 MB / 0.8916 GB, free: 24.82 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001313/2.406, allocations: 0.6943 MB / 0.8922 GB, free: 24.54 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005957/2.412, allocations: 3.304 MB / 0.8955 GB, free: 22.33 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.222e-05/2.412, allocations: 50.69 kB / 0.8955 GB, free: 22.28 MB / 346.7 MB Notification: Performance of pre-optimization done (n=119): time 4.759e-06/2.412, allocations: 0 / 0.8955 GB, free: 22.28 MB / 346.7 MB Notification: Performance of matching and sorting (n=134): time 0.02123/2.433, allocations: 4.625 MB / 0.9 GB, free: 19.02 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.47e-05/2.434, allocations: 175.5 kB / 0.9002 GB, free: 18.81 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001604/2.435, allocations: 0.922 MB / 0.9011 GB, free: 17.88 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003565/2.436, allocations: 33.69 kB / 0.9011 GB, free: 17.84 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005098/2.436, allocations: 0.7227 MB / 0.9018 GB, free: 17.12 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004739/2.437, allocations: 449.5 kB / 0.9023 GB, free: 16.67 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001414/2.437, allocations: 0 / 0.9023 GB, free: 16.67 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001267/2.437, allocations: 382.6 kB / 0.9026 GB, free: 16.29 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001397/2.438, allocations: 0.7106 MB / 0.9033 GB, free: 15.58 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001662/2.44, allocations: 1.156 MB / 0.9045 GB, free: 14.24 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01444/2.454, allocations: 2.518 MB / 0.9069 GB, free: 11.73 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.106e-05/2.454, allocations: 8 kB / 0.9069 GB, free: 11.72 MB / 346.7 MB Notification: Performance of matching and sorting (n=228) (initialization): time 0.01809/2.473, allocations: 3.828 MB / 0.9107 GB, free: 7.875 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0009896/2.474, allocations: 5.149 MB / 0.9157 GB, free: 2.328 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.566e-05/2.474, allocations: 12 kB / 0.9157 GB, free: 2.316 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001701/2.475, allocations: 447.1 kB / 0.9161 GB, free: 1.867 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001797/2.477, allocations: 363.4 kB / 0.9165 GB, free: 1.512 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006357/2.484, allocations: 3.281 MB / 0.9197 GB, free: 14.13 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00219/2.486, allocations: 103.8 kB / 0.9198 GB, free: 14.03 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000345/2.486, allocations: 87.97 kB / 0.9199 GB, free: 13.94 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.552e-05/2.486, allocations: 10.97 kB / 0.9199 GB, free: 13.93 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02301/2.509, allocations: 3.531 MB / 0.9233 GB, free: 10.39 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.866e-05/2.509, allocations: 16 kB / 0.9233 GB, free: 10.38 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002857/2.512, allocations: 315.6 kB / 0.9236 GB, free: 10.05 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004367/2.517, allocations: 379 kB / 0.924 GB, free: 9.688 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01193/2.529, allocations: 2.911 MB / 0.9268 GB, free: 6.676 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01167/2.54, allocations: 99.81 kB / 0.9269 GB, free: 6.578 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006475/2.541, allocations: 84.16 kB / 0.927 GB, free: 6.496 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 59 * Number of states: 0 () * Number of discrete variables: 18 ($PRE.tank3.aboveLevel[1],tank3.aboveLevel[1],$PRE.tank3.aboveLevel[2],tank3.aboveLevel[2],$PRE.tank1.aboveLevel[1],tank1.aboveLevel[1],$PRE.tank2.aboveLevel[1],tank2.aboveLevel[1],$PRE.tank2.aboveLevel[2],tank2.aboveLevel[2],$PRE.tank2.aboveLevel[3],tank2.aboveLevel[3],tank2.ports_m_flow_out[3],tank2.ports_m_flow_out[2],tank2.ports_m_flow_out[1],tank1.ports_m_flow_out[1],tank3.ports_m_flow_out[2],tank3.ports_m_flow_out[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (207): * Single equations (assignments): 203 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 2,2 7,2 7,1 3} Notification: Performance of prepare postOptimizeDAE: time 0.001077/2.542, allocations: 162.2 kB / 0.9272 GB, free: 6.328 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009772/2.543, allocations: 158.1 kB / 0.9273 GB, free: 6.172 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03866/2.582, allocations: 2.323 MB / 0.9296 GB, free: 3.84 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.708e-05/2.582, allocations: 16 kB / 0.9296 GB, free: 3.824 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.664e-05/2.582, allocations: 4 kB / 0.9296 GB, free: 3.82 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.147e-05/2.582, allocations: 11.97 kB / 0.9296 GB, free: 3.809 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2847/2.867, allocations: 3.808 MB / 0.9333 GB, free: 46.71 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.6e-05/2.867, allocations: 3.031 kB / 0.9333 GB, free: 46.71 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001601/2.868, allocations: 240.5 kB / 0.9336 GB, free: 46.71 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001996/2.871, allocations: 441 kB / 0.934 GB, free: 46.68 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003149/2.871, allocations: 23.47 kB / 0.934 GB, free: 46.68 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004733/2.876, allocations: 3.035 MB / 0.937 GB, free: 44.62 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.062e-06/2.876, allocations: 3.438 kB / 0.937 GB, free: 44.62 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009669/2.885, allocations: 3.197 MB / 0.9401 GB, free: 44.29 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006913/2.886, allocations: 246.3 kB / 0.9403 GB, free: 44.19 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005601/2.887, allocations: 13.14 kB / 0.9404 GB, free: 44.19 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001642/2.888, allocations: 82.69 kB / 0.9404 GB, free: 44.19 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000497/2.889, allocations: 152 kB / 0.9406 GB, free: 44.19 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002663/2.889, allocations: 54.8 kB / 0.9406 GB, free: 44.19 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.001371/2.891, allocations: 0.6893 MB / 0.9413 GB, free: 44.08 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.138e-06/2.891, allocations: 3.719 kB / 0.9413 GB, free: 44.08 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.005481/2.896, allocations: 1.258 MB / 0.9425 GB, free: 44.08 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 6 (tank3.medium.T,tank3.level,tank1.medium.T,tank1.level,tank2.medium.T,tank2.level) * Number of discrete variables: 6 (tank3.aboveLevel[1],tank3.aboveLevel[2],tank1.aboveLevel[1],tank2.aboveLevel[1],tank2.aboveLevel[2],tank2.aboveLevel[3]) * Number of discrete states: 6 (tank3.aboveLevel[1],tank3.aboveLevel[2],tank1.aboveLevel[1],tank2.aboveLevel[1],tank2.aboveLevel[2],tank2.aboveLevel[3]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (133): * Single equations (assignments): 127 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 6,2 12,2 12,1 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.003548/2.9, allocations: 1.207 MB / 0.9437 GB, free: 43.98 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.007584/2.907, allocations: 2.834 MB / 0.9465 GB, free: 43.95 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.109e-05/2.907, allocations: 1.188 kB / 0.9465 GB, free: 43.95 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002804/2.91, allocations: 1.017 MB / 0.9475 GB, free: 43.94 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004525/2.915, allocations: 0.6069 MB / 0.9481 GB, free: 43.93 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006892/2.922, allocations: 2.79 MB / 0.9508 GB, free: 43.29 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001189/2.923, allocations: 1.437 MB / 0.9522 GB, free: 42.57 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00087/2.924, allocations: 155.6 kB / 0.9523 GB, free: 42.56 MB / 362.7 MB Notification: Performance of SimCode: time 1.884e-06/2.924, allocations: 0 / 0.9523 GB, free: 42.56 MB / 362.7 MB Notification: Performance of Templates: time 0.07707/3.001, allocations: 58.05 MB / 1.009 GB, free: 36.99 MB / 362.7 MB