Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.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.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.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2") Notification: Performance of loadModel(Modelica): time 2.278/2.278, allocations: 194.8 MB / 211.7 MB, free: 3.004 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003712/0.0003713, allocations: 11.98 kB / 264.5 MB, free: 12.93 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1032/0.1035, allocations: 44.5 MB / 309.1 MB, free: 368 kB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.137/1.24, allocations: 322.3 MB / 0.6166 GB, free: 60.45 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003145/1.241, allocations: 98.38 kB / 0.6167 GB, free: 60.4 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.914/3.154, allocations: 322.5 MB / 0.9316 GB, free: 55.71 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.896e-06/3.154, allocations: 0 / 0.9316 GB, free: 55.71 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0002545/3.155, allocations: 44.44 kB / 0.9317 GB, free: 55.71 MB / 410.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.01041/3.165, allocations: 2.253 MB / 0.9339 GB, free: 54.52 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.426e-05/3.165, allocations: 7.469 kB / 0.9339 GB, free: 54.52 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00179/3.167, allocations: 202.7 kB / 0.9341 GB, free: 54.43 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005212/3.172, allocations: 1.247 MB / 0.9353 GB, free: 53.78 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002434/3.173, allocations: 99.78 kB / 0.9354 GB, free: 53.74 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008584/3.173, allocations: 122.5 kB / 0.9355 GB, free: 53.71 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006604/3.18, allocations: 1.948 MB / 0.9374 GB, free: 52.85 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.452e-05/3.18, allocations: 7.906 kB / 0.9374 GB, free: 52.84 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003252/3.18, allocations: 51.47 kB / 0.9375 GB, free: 52.81 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002517/3.181, allocations: 117.4 kB / 0.9376 GB, free: 52.79 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006526/3.187, allocations: 1.955 MB / 0.9395 GB, free: 52.11 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02046/3.208, allocations: 7.624 MB / 0.9469 GB, free: 47.18 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003321/3.211, allocations: 1.157 MB / 0.9481 GB, free: 46.75 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008191/3.219, allocations: 3.335 MB / 0.9513 GB, free: 44.49 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.103e-05/3.22, allocations: 51.34 kB / 0.9514 GB, free: 44.44 MB / 410.7 MB Notification: Performance of pre-optimization done (n=119): time 4.969e-06/3.22, allocations: 0 / 0.9514 GB, free: 44.44 MB / 410.7 MB Notification: Performance of matching and sorting (n=134): time 0.02224/3.242, allocations: 5.36 MB / 0.9566 GB, free: 40.77 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.168e-05/3.242, allocations: 171.5 kB / 0.9568 GB, free: 40.57 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002509/3.244, allocations: 1.324 MB / 0.9581 GB, free: 39.24 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004897/3.245, allocations: 65.69 kB / 0.9581 GB, free: 39.17 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006693/3.246, allocations: 0.7212 MB / 0.9588 GB, free: 38.45 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006856/3.246, allocations: 472.1 kB / 0.9593 GB, free: 37.99 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001809/3.247, allocations: 32 kB / 0.9593 GB, free: 37.96 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001385/3.247, allocations: 381.9 kB / 0.9597 GB, free: 37.58 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002152/3.249, allocations: 0.7456 MB / 0.9604 GB, free: 36.83 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002574/3.251, allocations: 1.216 MB / 0.9616 GB, free: 35.43 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002485/3.254, allocations: 0.8716 MB / 0.9624 GB, free: 34.59 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.467e-05/3.254, allocations: 7.938 kB / 0.9625 GB, free: 34.58 MB / 410.7 MB Notification: Performance of matching and sorting (n=228) (initialization): time 0.007006/3.261, allocations: 2.414 MB / 0.9648 GB, free: 32.15 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003223/3.261, allocations: 490.7 kB / 0.9653 GB, free: 31.52 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.362e-05/3.262, allocations: 12 kB / 0.9653 GB, free: 31.5 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00915/3.271, allocations: 0.957 MB / 0.9662 GB, free: 30.56 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002802/3.274, allocations: 353.3 kB / 0.9666 GB, free: 30.21 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003539/3.277, allocations: 2.894 MB / 0.9694 GB, free: 27.22 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002983/3.28, allocations: 131.8 kB / 0.9695 GB, free: 27.09 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004446/3.281, allocations: 87.95 kB / 0.9696 GB, free: 27 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.564e-05/3.281, allocations: 6.344 kB / 0.9696 GB, free: 27 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005859/3.287, allocations: 2.131 MB / 0.9717 GB, free: 24.86 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.086e-05/3.287, allocations: 12 kB / 0.9717 GB, free: 24.84 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007294/3.294, allocations: 0.6788 MB / 0.9724 GB, free: 24.15 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002895/3.297, allocations: 371.4 kB / 0.9727 GB, free: 23.79 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002688/3.3, allocations: 2.638 MB / 0.9753 GB, free: 21.05 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002859/3.303, allocations: 131.9 kB / 0.9754 GB, free: 20.92 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004383/3.303, allocations: 87.97 kB / 0.9755 GB, free: 20.84 MB / 410.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 () * Number of clocked 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.001385/3.304, allocations: 0.5216 MB / 0.976 GB, free: 20.3 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005028/3.305, allocations: 162.2 kB / 0.9762 GB, free: 20.14 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007261/3.312, allocations: 2.349 MB / 0.9785 GB, free: 17.79 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.782e-05/3.312, allocations: 23.94 kB / 0.9785 GB, free: 17.76 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.126e-05/3.312, allocations: 0 / 0.9785 GB, free: 17.76 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.311e-05/3.312, allocations: 11.97 kB / 0.9785 GB, free: 17.75 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01103/3.323, allocations: 3.937 MB / 0.9823 GB, free: 13.76 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.343e-05/3.323, allocations: 0 / 0.9823 GB, free: 13.76 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002207/3.326, allocations: 239.9 kB / 0.9826 GB, free: 13.52 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.007061/3.333, allocations: 0.8871 MB / 0.9834 GB, free: 12.62 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004576/3.333, allocations: 43.92 kB / 0.9835 GB, free: 12.58 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002974/3.336, allocations: 2.821 MB / 0.9862 GB, free: 9.66 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.861e-06/3.336, allocations: 8.156 kB / 0.9862 GB, free: 9.652 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007912/3.344, allocations: 3.138 MB / 0.9893 GB, free: 6.473 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008098/3.345, allocations: 258.9 kB / 0.9895 GB, free: 6.199 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004958/3.346, allocations: 39.98 kB / 0.9896 GB, free: 6.16 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001843/3.348, allocations: 107.8 kB / 0.9897 GB, free: 6.055 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004218/3.348, allocations: 157 kB / 0.9898 GB, free: 5.902 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000191/3.348, allocations: 55.97 kB / 0.9899 GB, free: 5.848 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001775/3.35, allocations: 0.8914 MB / 0.9908 GB, free: 4.957 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.733e-06/3.35, allocations: 0 / 0.9908 GB, free: 4.957 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.00587/3.356, allocations: 1.369 MB / 0.9921 GB, free: 3.59 MB / 410.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]) * Number of clocked states: 0 () * 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.004076/3.36, allocations: 1.223 MB / 0.9933 GB, free: 2.488 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.317/3.677, allocations: 3.046 MB / 0.9963 GB, free: 53.52 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.129e-05/3.677, allocations: 0 / 0.9963 GB, free: 53.52 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003638/3.681, allocations: 1.058 MB / 0.9973 GB, free: 53.52 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006322/3.687, allocations: 0.663 MB / 0.9979 GB, free: 53.52 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01201/3.699, allocations: 4.124 MB / 1.002 GB, free: 51.99 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001993/3.701, allocations: 1.437 MB / 1.003 GB, free: 51.27 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.005063/3.706, allocations: 0.7159 MB / 1.004 GB, free: 51.25 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009891/3.707, allocations: 145.5 kB / 1.004 GB, free: 51.25 MB / 410.7 MB Notification: Performance of SimCode: time 1.704e-06/3.707, allocations: 0 / 1.004 GB, free: 51.25 MB / 410.7 MB Notification: Performance of Templates: time 0.1099/3.817, allocations: 45.26 MB / 1.048 GB, free: 48.68 MB / 410.7 MB