Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.1.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo", uses=false) Using package ModelicaServices with version 1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo) Using package Modelica with version 3.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2") translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.1.0+maint.om/package.mo): time 0.9747/0.9747, allocations: 110.8 MB / 123.3 MB, free: 10.77 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo): time 0.001805/0.001805, allocations: 143.5 kB / 149.1 MB, free: 0.9844 MB / 122.7 MB Notification: Performance of FrontEnd - loaded program: time 2.936e-05/2.937e-05, allocations: 4 kB / 180.2 MB, free: 17.55 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.04817/0.04821, allocations: 25.18 MB / 205.4 MB, free: 8.426 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6152/0.6634, allocations: 240.8 MB / 446.1 MB, free: 77.93 MB / 234.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002328/0.6637, allocations: 74.02 kB / 446.2 MB, free: 77.89 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.045/1.709, allocations: 300.9 MB / 0.7296 GB, free: 19.77 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.443e-06/1.709, allocations: 0 / 0.7296 GB, free: 19.77 MB / 250.7 MB Notification: Performance of Transformations before backend: time 0.0001541/1.709, allocations: 42.75 kB / 0.7297 GB, free: 19.77 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.005806/1.715, allocations: 1.928 MB / 0.7315 GB, free: 18.85 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.761e-05/1.715, allocations: 9.812 kB / 0.7316 GB, free: 18.85 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00047/1.716, allocations: 186.9 kB / 0.7317 GB, free: 18.76 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002267/1.718, allocations: 1.189 MB / 0.7329 GB, free: 18.38 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.25e-05/1.718, allocations: 96.88 kB / 0.733 GB, free: 18.38 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001888/1.718, allocations: 123.9 kB / 0.7331 GB, free: 18.38 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002567/1.721, allocations: 1.818 MB / 0.7349 GB, free: 18.09 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.19e-05/1.721, allocations: 3.75 kB / 0.7349 GB, free: 18.09 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001541/1.721, allocations: 52.34 kB / 0.7349 GB, free: 18.09 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001162/1.721, allocations: 116 kB / 0.735 GB, free: 18.08 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002453/1.724, allocations: 1.776 MB / 0.7368 GB, free: 18.07 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008386/1.732, allocations: 7.415 MB / 0.744 GB, free: 14.45 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001447/1.733, allocations: 1.142 MB / 0.7451 GB, free: 14.41 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008533/1.734, allocations: 0.7133 MB / 0.7458 GB, free: 14.4 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003824/1.738, allocations: 3.353 MB / 0.7491 GB, free: 12.74 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.799e-05/1.738, allocations: 50.81 kB / 0.7492 GB, free: 12.7 MB / 250.7 MB Notification: Performance of pre-optimization done (n=119): time 3.035e-06/1.738, allocations: 0 / 0.7492 GB, free: 12.7 MB / 250.7 MB Notification: Performance of matching and sorting (n=131): time 0.007499/1.746, allocations: 3.93 MB / 0.753 GB, free: 12.05 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.593e-05/1.746, allocations: 178.7 kB / 0.7532 GB, free: 11.86 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001369/1.747, allocations: 1.083 MB / 0.7542 GB, free: 11.69 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001162/1.747, allocations: 56.17 kB / 0.7543 GB, free: 11.66 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000403/1.748, allocations: 0.7087 MB / 0.755 GB, free: 11.36 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002737/1.748, allocations: 461.9 kB / 0.7554 GB, free: 11.08 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.336e-05/1.748, allocations: 32.66 kB / 0.7554 GB, free: 11.08 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 9.109e-05/1.748, allocations: 374.2 kB / 0.7558 GB, free: 10.78 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008849/1.749, allocations: 0.6884 MB / 0.7565 GB, free: 10.77 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001073/1.75, allocations: 1.139 MB / 0.7576 GB, free: 10.26 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001025/1.751, allocations: 0.8244 MB / 0.7584 GB, free: 10.23 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.812e-06/1.751, allocations: 6.25 kB / 0.7584 GB, free: 10.23 MB / 250.7 MB Notification: Performance of matching and sorting (n=216) (initialization): time 0.003028/1.754, allocations: 2.268 MB / 0.7606 GB, free: 10.05 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.469e-05/1.754, allocations: 9.656 kB / 0.7606 GB, free: 10.05 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.847e-05/1.754, allocations: 14.97 kB / 0.7606 GB, free: 10.05 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004792/1.759, allocations: 0.9196 MB / 0.7615 GB, free: 10.02 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001263/1.76, allocations: 341.8 kB / 0.7619 GB, free: 10.02 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001885/1.762, allocations: 2.843 MB / 0.7646 GB, free: 7.934 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001615/1.764, allocations: 137 kB / 0.7648 GB, free: 7.926 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001668/1.764, allocations: 83.73 kB / 0.7648 GB, free: 7.922 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" 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 tank3.level:VARIABLE(min = 0.0 start = tank3.level_start unit = "m" 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" 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 () * 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.0004345/1.764, allocations: 275.4 kB / 0.7651 GB, free: 7.766 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002244/1.765, allocations: 162 kB / 0.7653 GB, free: 7.684 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0038/1.769, allocations: 2.272 MB / 0.7675 GB, free: 7.5 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.479e-05/1.769, allocations: 15.66 kB / 0.7675 GB, free: 7.5 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.052e-06/1.769, allocations: 0 / 0.7675 GB, free: 7.5 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.383e-05/1.769, allocations: 7.641 kB / 0.7675 GB, free: 7.5 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005262/1.774, allocations: 3.833 MB / 0.7712 GB, free: 6.93 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.734e-06/1.774, allocations: 9.391 kB / 0.7712 GB, free: 6.93 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008901/1.775, allocations: 239.8 kB / 0.7715 GB, free: 6.906 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003504/1.778, allocations: 0.846 MB / 0.7723 GB, free: 6.781 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001566/1.778, allocations: 42.75 kB / 0.7723 GB, free: 6.758 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001866/1.78, allocations: 2.808 MB / 0.7751 GB, free: 20.39 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.467e-06/1.78, allocations: 6.281 kB / 0.7751 GB, free: 20.38 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003841/1.784, allocations: 3.109 MB / 0.7781 GB, free: 18.94 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000567/1.785, allocations: 252.7 kB / 0.7784 GB, free: 18.74 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002138/1.785, allocations: 38.38 kB / 0.7784 GB, free: 18.72 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000978/1.786, allocations: 112.3 kB / 0.7785 GB, free: 18.68 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002311/1.786, allocations: 141.6 kB / 0.7786 GB, free: 18.66 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001088/1.786, allocations: 60.67 kB / 0.7787 GB, free: 18.65 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.001015/1.787, allocations: 0.8309 MB / 0.7795 GB, free: 18.32 MB / 266.7 MB Notification: Performance of sort global known variables: time 3.41e-07/1.787, allocations: 0 / 0.7795 GB, free: 18.32 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.002504/1.79, allocations: 0.8976 MB / 0.7804 GB, free: 18.08 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]) * 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.002107/1.792, allocations: 1.061 MB / 0.7814 GB, free: 17.67 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.003018/1.795, allocations: 1.81 MB / 0.7832 GB, free: 16.82 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 6.492e-06/1.795, allocations: 0 / 0.7832 GB, free: 16.82 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00152/1.797, allocations: 1.037 MB / 0.7842 GB, free: 15.9 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003633/1.8, allocations: 0.7208 MB / 0.7849 GB, free: 15.38 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00524/1.806, allocations: 2.795 MB / 0.7876 GB, free: 12.89 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001013/1.807, allocations: 1.419 MB / 0.789 GB, free: 11.7 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.002019/1.809, allocations: 0.4959 MB / 0.7895 GB, free: 11.36 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004268/1.809, allocations: 142.5 kB / 0.7896 GB, free: 11.23 MB / 266.7 MB Notification: Performance of SimCode: time 3.446e-06/1.809, allocations: 0 / 0.7896 GB, free: 11.23 MB / 266.7 MB Notification: Performance of Templates: time 0.2162/2.025, allocations: 40.85 MB / 0.8295 GB, free: 30.94 MB / 266.7 MB make -j1 -f Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.makefile (rm -f Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.pipe ; mkfifo Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.pipe >> ../files/Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.sim & ./Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.pipe 2>&1)