Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.1_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.conf.json Using package ModelicaServices with version 1.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 1.0/package.mo) Using package Modelica with version 3.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.1/package.mo) Running command: translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1") Notification: Performance of loadModel(Modelica): time 0.9363/0.9363, allocations: 111.2 MB / 124.2 MB, free: 11.21 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 2.273e-05/2.298e-05, allocations: 4 kB / 154.3 MB, free: 13.19 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1378/0.1378, allocations: 25.16 MB / 179.4 MB, free: 0.793 MB / 138.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6059/0.7437, allocations: 238.5 MB / 417.9 MB, free: 10.2 MB / 234.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002066/0.744, allocations: 67.72 kB / 418 MB, free: 10.17 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.185/1.929, allocations: 259.4 MB / 0.6615 GB, free: 33.46 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.932e-06/1.929, allocations: 0 / 0.6615 GB, free: 33.46 MB / 250.7 MB Notification: Performance of Transformations before backend: time 0.000136/1.929, allocations: 37.98 kB / 0.6615 GB, free: 33.45 MB / 250.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 250 * Number of variables: 250 Notification: Performance of Generate backend data structure: time 0.004477/1.934, allocations: 1.674 MB / 0.6632 GB, free: 32.23 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.995e-05/1.934, allocations: 11.53 kB / 0.6632 GB, free: 32.22 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005301/1.934, allocations: 153.5 kB / 0.6633 GB, free: 32.15 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00253/1.937, allocations: 1.04 MB / 0.6643 GB, free: 31.37 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.169e-05/1.937, allocations: 70.67 kB / 0.6644 GB, free: 31.3 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002278/1.937, allocations: 95.97 kB / 0.6645 GB, free: 31.21 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002828/1.94, allocations: 1.498 MB / 0.666 GB, free: 29.63 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.636e-05/1.94, allocations: 7.938 kB / 0.666 GB, free: 29.62 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001788/1.94, allocations: 39.97 kB / 0.666 GB, free: 29.58 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001464/1.94, allocations: 101.9 kB / 0.6661 GB, free: 29.48 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002776/1.943, allocations: 1.444 MB / 0.6675 GB, free: 28.04 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009515/1.953, allocations: 6.393 MB / 0.6738 GB, free: 21.23 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001619/1.954, allocations: 0.8742 MB / 0.6746 GB, free: 20.34 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009146/1.955, allocations: 0.5146 MB / 0.6751 GB, free: 19.83 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00409/1.96, allocations: 2.8 MB / 0.6778 GB, free: 16.77 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.616e-05/1.96, allocations: 47.28 kB / 0.6779 GB, free: 16.71 MB / 250.7 MB Notification: Performance of pre-optimization done (n=80): time 4.33e-06/1.96, allocations: 4 kB / 0.6779 GB, free: 16.71 MB / 250.7 MB Notification: Performance of matching and sorting (n=88): time 0.007533/1.967, allocations: 2.658 MB / 0.6805 GB, free: 13.99 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001391/1.967, allocations: 196.7 kB / 0.6807 GB, free: 13.75 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001987/1.969, allocations: 0.9729 MB / 0.6816 GB, free: 12.77 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001933/1.97, allocations: 49.69 kB / 0.6817 GB, free: 12.71 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006582/1.97, allocations: 0.6409 MB / 0.6823 GB, free: 12.07 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000428/1.971, allocations: 311.7 kB / 0.6826 GB, free: 11.76 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001144/1.971, allocations: 28 kB / 0.6826 GB, free: 11.73 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0002333/1.971, allocations: 362.8 kB / 0.683 GB, free: 11.37 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001196/1.972, allocations: 0.4959 MB / 0.6835 GB, free: 10.87 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001645/1.974, allocations: 0.9747 MB / 0.6844 GB, free: 9.684 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001391/1.975, allocations: 0.6215 MB / 0.685 GB, free: 9.059 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.142e-05/1.975, allocations: 4 kB / 0.685 GB, free: 9.055 MB / 250.7 MB Notification: Performance of matching and sorting (n=174) (initialization): time 0.004356/1.98, allocations: 1.671 MB / 0.6866 GB, free: 7.371 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.949e-05/1.98, allocations: 12 kB / 0.6867 GB, free: 7.359 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.625e-05/1.98, allocations: 12 kB / 0.6867 GB, free: 7.348 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00486/1.985, allocations: 0.639 MB / 0.6873 GB, free: 6.699 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001564/1.986, allocations: 271.5 kB / 0.6876 GB, free: 6.434 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002793/1.989, allocations: 2.12 MB / 0.6896 GB, free: 4.238 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00184/1.991, allocations: 103.9 kB / 0.6897 GB, free: 4.137 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002429/1.991, allocations: 71.91 kB / 0.6898 GB, free: 4.066 MB / 250.7 MB Warning: Assuming fixed start value for the following 4 variables: tank2.level:VARIABLE(min = 0.0 start = tank2.level_start unit = "m" stateSelect=StateSelect.prefer ) "Fluid level in the tank" type: Real tank2.medium.T:VARIABLE(min = max(1.0, max(1.0, 1.0)) max = min(10000.0, min(10000.0, 10000.0)) start = 293.15 unit = "K" nominal = 300.0 stateSelect=StateSelect.prefer ) "Temperature of medium" type: Real tank1.level:VARIABLE(min = 0.0 start = tank1.level_start unit = "m" stateSelect=StateSelect.prefer ) "Fluid level in the tank" type: Real tank1.medium.T:VARIABLE(min = max(1.0, max(1.0, 1.0)) max = min(10000.0, min(10000.0, 10000.0)) start = 293.15 unit = "K" nominal = 300.0 stateSelect=StateSelect.prefer ) "Temperature of medium" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 64 * Number of states: 0 () * Number of discrete variables: 12 ($PRE.tank1.aboveLevel[1],tank1.aboveLevel[1],$PRE.tank1.aboveLevel[2],tank1.aboveLevel[2],$PRE.tank2.aboveLevel[1],tank2.aboveLevel[1],$PRE.tank2.aboveLevel[2],tank2.aboveLevel[2],tank2.ports_m_flow_out[2],tank2.ports_m_flow_out[1],tank1.ports_m_flow_out[2],tank1.ports_m_flow_out[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (160): * Single equations (assignments): 157 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {1 3,2 7,1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0005292/1.992, allocations: 232.5 kB / 0.69 GB, free: 3.84 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000347/1.992, allocations: 130.4 kB / 0.6901 GB, free: 3.711 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004274/1.996, allocations: 1.483 MB / 0.6916 GB, free: 2.215 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.734e-05/1.997, allocations: 16 kB / 0.6916 GB, free: 2.199 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.789e-06/1.997, allocations: 0 / 0.6916 GB, free: 2.199 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.619e-05/1.997, allocations: 3.984 kB / 0.6916 GB, free: 2.195 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1618/2.158, allocations: 2.662 MB / 0.6942 GB, free: 30.94 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.635e-06/2.158, allocations: 3.906 kB / 0.6942 GB, free: 30.94 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009724/2.159, allocations: 149.7 kB / 0.6943 GB, free: 30.94 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004319/2.164, allocations: 0.5841 MB / 0.6949 GB, free: 30.92 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002137/2.164, allocations: 28.12 kB / 0.6949 GB, free: 30.92 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002047/2.166, allocations: 2.085 MB / 0.697 GB, free: 29.37 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.386e-06/2.166, allocations: 4.531 kB / 0.697 GB, free: 29.37 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004066/2.17, allocations: 2.065 MB / 0.699 GB, free: 29.11 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000545/2.171, allocations: 218.1 kB / 0.6992 GB, free: 29.02 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003094/2.171, allocations: 25.56 kB / 0.6992 GB, free: 29.02 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001192/2.172, allocations: 76.27 kB / 0.6993 GB, free: 29.02 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002341/2.173, allocations: 96.48 kB / 0.6994 GB, free: 29.02 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001206/2.173, allocations: 38.92 kB / 0.6994 GB, free: 29.02 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.001281/2.174, allocations: 0.7379 MB / 0.7002 GB, free: 28.9 MB / 250.7 MB Notification: Performance of sort global known variables: time 1.718e-06/2.174, allocations: 0 / 0.7002 GB, free: 28.9 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.002795/2.177, allocations: 0.7626 MB / 0.7009 GB, free: 28.9 MB / 250.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 4 (tank1.medium.T,tank1.level,tank2.medium.T,tank2.level) * Number of discrete variables: 4 (tank1.aboveLevel[1],tank1.aboveLevel[2],tank2.aboveLevel[1],tank2.aboveLevel[2]) * Number of discrete states: 4 (tank1.aboveLevel[1],tank1.aboveLevel[2],tank2.aboveLevel[1],tank2.aboveLevel[2]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (82): * Single equations (assignments): 79 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {2 12,1 6,1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.002352/2.179, allocations: 0.9351 MB / 0.7018 GB, free: 28.8 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.003111/2.182, allocations: 1.277 MB / 0.7031 GB, free: 28.79 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 8.012e-06/2.182, allocations: 3.156 kB / 0.7031 GB, free: 28.79 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001929/2.184, allocations: 0.6763 MB / 0.7037 GB, free: 28.78 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003615/2.188, allocations: 0.5578 MB / 0.7043 GB, free: 28.77 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004887/2.193, allocations: 2.193 MB / 0.7064 GB, free: 28.25 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008645/2.194, allocations: 1.265 MB / 0.7076 GB, free: 27.54 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005793/2.194, allocations: 120 kB / 0.7078 GB, free: 27.53 MB / 250.7 MB Notification: Performance of SimCode: time 2.155e-06/2.194, allocations: 2.719 kB / 0.7078 GB, free: 27.53 MB / 250.7 MB Notification: Performance of Templates: time 0.05663/2.251, allocations: 41.21 MB / 0.748 GB, free: 24.13 MB / 250.7 MB