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.TankWithEmptyingPipe2.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.TankWithEmptyingPipe2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2") Notification: Performance of loadModel(Modelica): time 0.965/0.965, allocations: 111.3 MB / 119.1 MB, free: 11.16 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 1.665e-05/1.672e-05, allocations: 0 / 148.1 MB, free: 6.219 MB / 122.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.04472/0.04476, allocations: 25.18 MB / 173.3 MB, free: 13 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6255/0.6703, allocations: 237.6 MB / 410.9 MB, free: 60.28 MB / 234.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001702/0.6705, allocations: 69.17 kB / 411 MB, free: 60.28 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.817/1.488, allocations: 175.8 MB / 0.5731 GB, free: 23.62 MB / 234.7 MB Notification: Performance of FrontEnd: time 2.051e-06/1.488, allocations: 0 / 0.5731 GB, free: 23.62 MB / 234.7 MB Notification: Performance of Transformations before backend: time 8.87e-05/1.488, allocations: 21.44 kB / 0.5731 GB, free: 23.62 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: 160 * Number of variables: 160 Notification: Performance of Generate backend data structure: time 0.003275/1.491, allocations: 1.223 MB / 0.5743 GB, free: 23.09 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.16e-05/1.491, allocations: 9.172 kB / 0.5743 GB, free: 23.09 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004041/1.491, allocations: 103.9 kB / 0.5744 GB, free: 23.04 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001875/1.493, allocations: 0.7405 MB / 0.5751 GB, free: 22.79 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.882e-05/1.493, allocations: 22.16 kB / 0.5751 GB, free: 22.79 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001365/1.494, allocations: 34.11 kB / 0.5752 GB, free: 22.79 MB / 234.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001769/1.495, allocations: 0.7836 MB / 0.5759 GB, free: 22.78 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00183/1.497, allocations: 0.8886 MB / 0.5768 GB, free: 22.6 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.088e-05/1.497, allocations: 4.75 kB / 0.5768 GB, free: 22.6 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00011/1.497, allocations: 6.641 kB / 0.5768 GB, free: 22.6 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001125/1.497, allocations: 58.97 kB / 0.5769 GB, free: 22.59 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006487/1.504, allocations: 4.269 MB / 0.581 GB, free: 20.16 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001083/1.505, allocations: 0.4975 MB / 0.5815 GB, free: 20.14 MB / 234.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005177/1.506, allocations: 273.8 kB / 0.5818 GB, free: 20.13 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002957/1.509, allocations: 1.979 MB / 0.5837 GB, free: 18.79 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.688e-05/1.509, allocations: 48.62 kB / 0.5837 GB, free: 18.75 MB / 234.7 MB Notification: Performance of pre-optimization done (n=40): time 3.594e-06/1.509, allocations: 0 / 0.5837 GB, free: 18.75 MB / 234.7 MB Notification: Performance of matching and sorting (n=44): time 0.007398/1.516, allocations: 1.638 MB / 0.5853 GB, free: 18.33 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.856e-05/1.516, allocations: 162.1 kB / 0.5855 GB, free: 18.14 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009351/1.517, allocations: 0.5779 MB / 0.5861 GB, free: 18.02 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 9.84e-05/1.517, allocations: 27.86 kB / 0.5861 GB, free: 17.99 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002977/1.518, allocations: 0.5145 MB / 0.5866 GB, free: 17.66 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001487/1.518, allocations: 150.6 kB / 0.5867 GB, free: 17.57 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.976e-05/1.518, allocations: 0 / 0.5867 GB, free: 17.57 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 8.531e-05/1.518, allocations: 347.7 kB / 0.5871 GB, free: 17.25 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000481/1.518, allocations: 253.5 kB / 0.5873 GB, free: 17.25 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006458/1.519, allocations: 0.6051 MB / 0.5879 GB, free: 16.82 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001948/1.521, allocations: 467.4 kB / 0.5884 GB, free: 16.81 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.028e-05/1.521, allocations: 3.844 kB / 0.5884 GB, free: 16.81 MB / 234.7 MB Notification: Performance of matching and sorting (n=108) (initialization): time 0.003168/1.524, allocations: 1 MB / 0.5893 GB, free: 16.73 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.763e-05/1.524, allocations: 7.25 kB / 0.5893 GB, free: 16.73 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.823e-05/1.524, allocations: 13.22 kB / 0.5894 GB, free: 16.73 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006383/1.525, allocations: 159.3 kB / 0.5895 GB, free: 16.71 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008304/1.526, allocations: 176.4 kB / 0.5897 GB, free: 16.71 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00225/1.528, allocations: 1.434 MB / 0.5911 GB, free: 15.67 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001093/1.529, allocations: 40.11 kB / 0.5911 GB, free: 15.67 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001085/1.529, allocations: 50.41 kB / 0.5912 GB, free: 15.67 MB / 234.7 MB Warning: Assuming fixed start value for the following 2 variables: 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: 51 * Number of states: 0 () * Number of discrete variables: 6 ($PRE.tank1.aboveLevel[1],tank1.aboveLevel[1],$PRE.tank1.aboveLevel[2],tank1.aboveLevel[2],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 (102): * Single equations (assignments): 100 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 3,1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0003012/1.53, allocations: 156.8 kB / 0.5913 GB, free: 15.56 MB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001672/1.53, allocations: 80.47 kB / 0.5914 GB, free: 15.52 MB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00292/1.533, allocations: 0.7744 MB / 0.5921 GB, free: 15.43 MB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.144e-05/1.533, allocations: 10.75 kB / 0.5922 GB, free: 15.43 MB / 234.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.618e-06/1.533, allocations: 2.859 kB / 0.5922 GB, free: 15.43 MB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.877e-06/1.533, allocations: 6.75 kB / 0.5922 GB, free: 15.43 MB / 234.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004331/1.537, allocations: 1.445 MB / 0.5936 GB, free: 15.12 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.683e-06/1.537, allocations: 3.906 kB / 0.5936 GB, free: 15.12 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005205/1.538, allocations: 77.61 kB / 0.5936 GB, free: 15.12 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000808/1.539, allocations: 153.2 kB / 0.5938 GB, free: 15.1 MB / 234.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.524e-05/1.539, allocations: 3.875 kB / 0.5938 GB, free: 15.1 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002234/1.541, allocations: 1.374 MB / 0.5951 GB, free: 14.06 MB / 234.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.057e-06/1.541, allocations: 0 / 0.5951 GB, free: 14.06 MB / 234.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003231/1.544, allocations: 1.089 MB / 0.5962 GB, free: 13.8 MB / 234.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003125/1.545, allocations: 159.8 kB / 0.5964 GB, free: 13.66 MB / 234.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001573/1.545, allocations: 3.938 kB / 0.5964 GB, free: 13.66 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008365/1.546, allocations: 35.98 kB / 0.5964 GB, free: 13.66 MB / 234.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001377/1.546, allocations: 49.48 kB / 0.5964 GB, free: 13.66 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.408e-05/1.546, allocations: 18.94 kB / 0.5965 GB, free: 13.66 MB / 234.7 MB Notification: Performance of sorting global known variables: time 0.0006628/1.547, allocations: 439.5 kB / 0.5969 GB, free: 13.57 MB / 234.7 MB Notification: Performance of sort global known variables: time 9.13e-07/1.547, allocations: 0 / 0.5969 GB, free: 13.57 MB / 234.7 MB Notification: Performance of remove unused functions: time 0.002188/1.549, allocations: 0.5022 MB / 0.5974 GB, free: 13.47 MB / 234.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (tank1.medium.T,tank1.level) * Number of discrete variables: 2 (tank1.aboveLevel[1],tank1.aboveLevel[2]) * Number of discrete states: 2 (tank1.aboveLevel[1],tank1.aboveLevel[2]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (42): * Single equations (assignments): 40 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 6,1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.001842/1.551, allocations: 0.6977 MB / 0.5981 GB, free: 13.27 MB / 234.7 MB Notification: Performance of simCode: created initialization part: time 0.001557/1.552, allocations: 0.6287 MB / 0.5987 GB, free: 13.26 MB / 234.7 MB Notification: Performance of simCode: created event and clocks part: time 4.594e-06/1.552, allocations: 0 / 0.5987 GB, free: 13.26 MB / 234.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006327/1.553, allocations: 290.5 kB / 0.5989 GB, free: 13.26 MB / 234.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00222/1.555, allocations: 336 kB / 0.5993 GB, free: 13.26 MB / 234.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003166/1.558, allocations: 1.302 MB / 0.6005 GB, free: 12.89 MB / 234.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001102/1.559, allocations: 1.042 MB / 0.6016 GB, free: 28.19 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003032/1.56, allocations: 72.45 kB / 0.6016 GB, free: 28.19 MB / 250.7 MB Notification: Performance of SimCode: time 1.857e-06/1.56, allocations: 0 / 0.6016 GB, free: 28.19 MB / 250.7 MB Notification: Performance of Templates: time 0.03969/1.6, allocations: 23.55 MB / 0.6246 GB, free: 26.96 MB / 250.7 MB