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/OMCompiler/build/lib/omlibrary/ModelicaServices 1.0/package.mo) Using package Modelica with version 3.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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 1.028/1.028, allocations: 111.3 MB / 119.1 MB, free: 11.16 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 1.955e-05/1.973e-05, allocations: 4 kB / 148.1 MB, free: 6.223 MB / 122.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.04544/0.04549, allocations: 25.17 MB / 173.3 MB, free: 13.01 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6699/0.7154, allocations: 237.8 MB / 411.1 MB, free: 79.81 MB / 234.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001791/0.7157, allocations: 70.02 kB / 411.2 MB, free: 79.81 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.033/1.749, allocations: 257.8 MB / 0.6533 GB, free: 6.164 MB / 234.7 MB Notification: Performance of FrontEnd: time 1.638e-06/1.749, allocations: 3.938 kB / 0.6533 GB, free: 6.16 MB / 234.7 MB Notification: Performance of Transformations before backend: time 0.000119/1.749, allocations: 40.61 kB / 0.6533 GB, free: 6.125 MB / 234.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.004251/1.753, allocations: 1.671 MB / 0.655 GB, free: 4.422 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.895e-05/1.753, allocations: 16.03 kB / 0.655 GB, free: 4.406 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004988/1.754, allocations: 150.2 kB / 0.6551 GB, free: 4.258 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002656/1.756, allocations: 1.037 MB / 0.6561 GB, free: 3.199 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.393e-05/1.756, allocations: 40.67 kB / 0.6562 GB, free: 3.16 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002082/1.757, allocations: 52 kB / 0.6562 GB, free: 3.109 MB / 234.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002504/1.759, allocations: 1.265 MB / 0.6575 GB, free: 1.844 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002473/1.762, allocations: 1.373 MB / 0.6588 GB, free: 404 kB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.606e-05/1.762, allocations: 0 / 0.6588 GB, free: 404 kB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001592/1.762, allocations: 4 kB / 0.6588 GB, free: 400 kB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001372/1.762, allocations: 101.9 kB / 0.6589 GB, free: 296 kB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01178/1.774, allocations: 6.198 MB / 0.665 GB, free: 9.742 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001896/1.776, allocations: 0.8453 MB / 0.6658 GB, free: 8.895 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001016/1.777, allocations: 499 kB / 0.6663 GB, free: 8.406 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005187/1.782, allocations: 2.726 MB / 0.6689 GB, free: 5.438 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.765e-05/1.782, allocations: 47.33 kB / 0.669 GB, free: 5.383 MB / 250.7 MB Notification: Performance of pre-optimization done (n=80): time 1.283e-05/1.782, allocations: 4 kB / 0.669 GB, free: 5.379 MB / 250.7 MB Notification: Performance of matching and sorting (n=88): time 0.0134/1.795, allocations: 2.984 MB / 0.6719 GB, free: 2.336 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001269/1.796, allocations: 188.7 kB / 0.6721 GB, free: 2.109 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001603/1.797, allocations: 0.7982 MB / 0.6728 GB, free: 1.297 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001731/1.797, allocations: 29.7 kB / 0.6729 GB, free: 1.262 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006726/1.798, allocations: 0.6602 MB / 0.6735 GB, free: 0.5938 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000392/1.799, allocations: 303.6 kB / 0.6738 GB, free: 300 kB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.808e-05/1.799, allocations: 0 / 0.6738 GB, free: 300 kB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.1491/1.948, allocations: 363.5 kB / 0.6742 GB, free: 27.72 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00131/1.949, allocations: 478.8 kB / 0.6746 GB, free: 27.72 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001442/1.951, allocations: 0.9318 MB / 0.6755 GB, free: 27.17 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003692/1.954, allocations: 0.8059 MB / 0.6763 GB, free: 27.16 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.431e-05/1.954, allocations: 8.047 kB / 0.6763 GB, free: 27.16 MB / 250.7 MB Notification: Performance of matching and sorting (n=174) (initialization): time 0.005766/1.96, allocations: 1.735 MB / 0.678 GB, free: 27.07 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.24e-05/1.96, allocations: 14.44 kB / 0.678 GB, free: 27.07 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.304e-05/1.96, allocations: 13.28 kB / 0.678 GB, free: 27.07 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001144/1.961, allocations: 304.4 kB / 0.6783 GB, free: 27.05 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001295/1.963, allocations: 278.3 kB / 0.6786 GB, free: 27.05 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00418/1.967, allocations: 2.366 MB / 0.6809 GB, free: 25.5 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001824/1.969, allocations: 75.61 kB / 0.681 GB, free: 25.5 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000335/1.969, allocations: 67.2 kB / 0.681 GB, free: 25.5 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.0005079/1.97, allocations: 189.2 kB / 0.6812 GB, free: 25.39 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004089/1.97, allocations: 125.8 kB / 0.6813 GB, free: 25.39 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005773/1.976, allocations: 1.502 MB / 0.6828 GB, free: 25.27 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.132e-05/1.976, allocations: 10.5 kB / 0.6828 GB, free: 25.27 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.613e-06/1.976, allocations: 0 / 0.6828 GB, free: 25.27 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.549e-05/1.976, allocations: 9.344 kB / 0.6828 GB, free: 25.27 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008183/1.984, allocations: 2.609 MB / 0.6854 GB, free: 24.91 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.305e-06/1.984, allocations: 0 / 0.6854 GB, free: 24.91 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008674/1.985, allocations: 155.3 kB / 0.6855 GB, free: 24.91 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001332/1.986, allocations: 311.8 kB / 0.6858 GB, free: 24.89 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001457/1.987, allocations: 14.27 kB / 0.6858 GB, free: 24.89 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003257/1.99, allocations: 2.246 MB / 0.688 GB, free: 23.34 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.809e-06/1.99, allocations: 3.688 kB / 0.688 GB, free: 23.34 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005458/1.995, allocations: 2.094 MB / 0.6901 GB, free: 23.04 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005063/1.996, allocations: 208.8 kB / 0.6903 GB, free: 22.88 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002807/1.996, allocations: 10.08 kB / 0.6903 GB, free: 22.87 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001165/1.997, allocations: 58.8 kB / 0.6903 GB, free: 22.87 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002586/1.998, allocations: 93.92 kB / 0.6904 GB, free: 22.86 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001243/1.998, allocations: 36.83 kB / 0.6905 GB, free: 22.86 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.001068/1.999, allocations: 0.5897 MB / 0.691 GB, free: 22.75 MB / 250.7 MB Notification: Performance of sort global known variables: time 9.45e-07/1.999, allocations: 0 / 0.691 GB, free: 22.75 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.003115/2.002, allocations: 0.7139 MB / 0.6917 GB, free: 22.75 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.00252/2.005, allocations: 0.9298 MB / 0.6926 GB, free: 22.66 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.002954/2.008, allocations: 1.202 MB / 0.6938 GB, free: 22.64 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 6.734e-06/2.008, allocations: 1.625 kB / 0.6938 GB, free: 22.64 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001597/2.009, allocations: 0.6231 MB / 0.6944 GB, free: 22.63 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003568/2.013, allocations: 0.5186 MB / 0.6949 GB, free: 22.62 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004768/2.018, allocations: 2.119 MB / 0.697 GB, free: 22.11 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008831/2.019, allocations: 1.264 MB / 0.6982 GB, free: 21.39 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005556/2.019, allocations: 116.8 kB / 0.6984 GB, free: 21.39 MB / 250.7 MB Notification: Performance of SimCode: time 1.917e-06/2.019, allocations: 0 / 0.6984 GB, free: 21.39 MB / 250.7 MB Notification: Performance of Templates: time 0.0936/2.113, allocations: 40.73 MB / 0.7381 GB, free: 18.22 MB / 250.7 MB