Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.1_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.conf.json Using package ModelicaServices with version 1.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 1.0/package.mo) Using package Modelica with version 3.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.1/package.mo) Running command: translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2") Notification: Performance of loadModel(Modelica): time 1.022/1.022, allocations: 111.1 MB / 127.3 MB, free: 6.137 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002592/0.0002596, allocations: 8 kB / 158.9 MB, free: 15.22 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05468/0.05496, allocations: 25.17 MB / 184 MB, free: 6.012 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.853/0.908, allocations: 240.8 MB / 424.9 MB, free: 51.21 MB / 234.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000255/0.9083, allocations: 72.97 kB / 425 MB, free: 51.18 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.582/2.49, allocations: 302.1 MB / 0.71 GB, free: 19.91 MB / 250.7 MB Notification: Performance of FrontEnd: time 2.906e-06/2.49, allocations: 2.938 kB / 0.71 GB, free: 19.91 MB / 250.7 MB Notification: Performance of Transformations before backend: time 0.000173/2.49, allocations: 43.83 kB / 0.7101 GB, free: 19.9 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: 309 * Number of variables: 309 Notification: Performance of Generate backend data structure: time 0.008052/2.499, allocations: 2.142 MB / 0.7122 GB, free: 18.84 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.424e-05/2.499, allocations: 7.875 kB / 0.7122 GB, free: 18.84 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008864/2.499, allocations: 185.9 kB / 0.7124 GB, free: 18.75 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00443/2.504, allocations: 1.204 MB / 0.7135 GB, free: 18.37 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001713/2.504, allocations: 93.12 kB / 0.7136 GB, free: 18.36 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005882/2.505, allocations: 121.4 kB / 0.7137 GB, free: 18.36 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005388/2.51, allocations: 1.858 MB / 0.7156 GB, free: 18.07 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.484e-05/2.51, allocations: 3.125 kB / 0.7156 GB, free: 18.07 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002746/2.511, allocations: 47.8 kB / 0.7156 GB, free: 18.07 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002247/2.511, allocations: 118.4 kB / 0.7157 GB, free: 18.07 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005455/2.516, allocations: 1.813 MB / 0.7175 GB, free: 18.05 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01748/2.534, allocations: 7.421 MB / 0.7247 GB, free: 14.38 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003104/2.537, allocations: 1.152 MB / 0.7259 GB, free: 14.34 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007246/2.544, allocations: 3.314 MB / 0.7291 GB, free: 12.68 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.071e-05/2.544, allocations: 42.81 kB / 0.7291 GB, free: 12.64 MB / 250.7 MB Notification: Performance of pre-optimization done (n=119): time 4.499e-06/2.544, allocations: 0 / 0.7291 GB, free: 12.64 MB / 250.7 MB Notification: Performance of matching and sorting (n=131): time 0.02086/2.565, allocations: 5.194 MB / 0.7342 GB, free: 10.4 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.905e-05/2.565, allocations: 178.2 kB / 0.7344 GB, free: 10.2 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00241/2.568, allocations: 1.262 MB / 0.7356 GB, free: 9.711 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004486/2.568, allocations: 54.95 kB / 0.7357 GB, free: 9.66 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006009/2.569, allocations: 0.6754 MB / 0.7363 GB, free: 9.078 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007612/2.57, allocations: 458.7 kB / 0.7368 GB, free: 8.734 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001821/2.57, allocations: 30.34 kB / 0.7368 GB, free: 8.711 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001503/2.57, allocations: 375.3 kB / 0.7371 GB, free: 8.371 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002053/2.572, allocations: 0.7036 MB / 0.7378 GB, free: 8.125 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002603/2.575, allocations: 1.167 MB / 0.739 GB, free: 7.316 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002566/2.577, allocations: 0.8361 MB / 0.7398 GB, free: 6.961 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.778e-05/2.577, allocations: 3.281 kB / 0.7398 GB, free: 6.961 MB / 250.7 MB Notification: Performance of matching and sorting (n=216) (initialization): time 0.006314/2.584, allocations: 2.216 MB / 0.742 GB, free: 6.082 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.37e-05/2.584, allocations: 11.06 kB / 0.742 GB, free: 6.082 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.319e-05/2.584, allocations: 13.19 kB / 0.742 GB, free: 6.082 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00911/2.593, allocations: 0.9451 MB / 0.7429 GB, free: 5.926 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002619/2.596, allocations: 328.8 kB / 0.7432 GB, free: 5.895 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003398/2.599, allocations: 2.847 MB / 0.746 GB, free: 3.414 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002814/2.602, allocations: 134.6 kB / 0.7461 GB, free: 3.305 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004147/2.602, allocations: 86.64 kB / 0.7462 GB, free: 3.23 MB / 250.7 MB Warning: Assuming fixed start value for the following 6 variables: tank2.level:VARIABLE(min = 0.0 start = tank2.level_start unit = "m" fixed = true 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" fixed = true nominal = 300.0 stateSelect=StateSelect.prefer ) "Temperature of medium" type: Real tank1.level:VARIABLE(min = 0.0 start = tank1.level_start unit = "m" fixed = true 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" fixed = true nominal = 300.0 stateSelect=StateSelect.prefer ) "Temperature of medium" type: Real tank3.level:VARIABLE(min = 0.0 start = tank3.level_start unit = "m" fixed = true stateSelect=StateSelect.prefer ) "Fluid level in the tank" type: Real tank3.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" fixed = true 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: 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 (195): * Single equations (assignments): 191 * 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.001611/2.604, allocations: 0.5025 MB / 0.7467 GB, free: 2.773 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005098/2.604, allocations: 154.1 kB / 0.7468 GB, free: 2.621 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007466/2.612, allocations: 2.299 MB / 0.7491 GB, free: 0.6836 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.963e-05/2.612, allocations: 20 kB / 0.7491 GB, free: 0.6641 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.063e-05/2.612, allocations: 0 / 0.7491 GB, free: 0.6641 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.081e-05/2.612, allocations: 7.688 kB / 0.7491 GB, free: 0.6641 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01365/2.626, allocations: 3.934 MB / 0.753 GB, free: 13.6 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.461e-05/2.626, allocations: 0 / 0.753 GB, free: 13.6 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00224/2.628, allocations: 235 kB / 0.7532 GB, free: 13.41 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.007157/2.635, allocations: 0.8707 MB / 0.754 GB, free: 12.75 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004584/2.636, allocations: 43.5 kB / 0.7541 GB, free: 12.71 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003881/2.64, allocations: 2.814 MB / 0.7568 GB, free: 9.922 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.721e-06/2.64, allocations: 0 / 0.7568 GB, free: 9.922 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009216/2.649, allocations: 3.073 MB / 0.7598 GB, free: 7.16 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008327/2.65, allocations: 252.9 kB / 0.7601 GB, free: 6.906 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007252/2.651, allocations: 39.7 kB / 0.7601 GB, free: 6.871 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002151/2.653, allocations: 108.8 kB / 0.7602 GB, free: 6.781 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004806/2.653, allocations: 151.5 kB / 0.7604 GB, free: 6.691 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000222/2.654, allocations: 55.45 kB / 0.7604 GB, free: 6.645 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.002042/2.656, allocations: 0.8528 MB / 0.7612 GB, free: 5.934 MB / 266.7 MB Notification: Performance of sort global known variables: time 6.41e-07/2.656, allocations: 0 / 0.7612 GB, free: 5.934 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.004689/2.66, allocations: 0.8816 MB / 0.7621 GB, free: 5.074 MB / 266.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 (130): * Single equations (assignments): 124 * 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.003887/2.664, allocations: 1.069 MB / 0.7631 GB, free: 4.129 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.006723/2.671, allocations: 1.838 MB / 0.7649 GB, free: 2.293 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.096e-05/2.671, allocations: 0 / 0.7649 GB, free: 2.293 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003663/2.675, allocations: 1.05 MB / 0.766 GB, free: 1.25 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006618/2.681, allocations: 0.7292 MB / 0.7667 GB, free: 0.5508 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2093/2.891, allocations: 4.142 MB / 0.7707 GB, free: 32.13 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001173/2.892, allocations: 1.417 MB / 0.7721 GB, free: 31.41 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001033/2.893, allocations: 156.8 kB / 0.7723 GB, free: 31.41 MB / 266.7 MB Notification: Performance of SimCode: time 1.132e-06/2.893, allocations: 3 kB / 0.7723 GB, free: 31.41 MB / 266.7 MB Notification: Performance of Templates: time 0.098/2.991, allocations: 56.58 MB / 0.8275 GB, free: 23.54 MB / 266.7 MB