Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo) Running command: translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank") translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.008738/0.008738, allocations: 165.6 kB / 15.11 MB, free: 5.973 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.509/1.509, allocations: 170.8 MB / 186.6 MB, free: 1.129 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.001676/0.001676, allocations: 106.6 kB / 226.2 MB, free: 10.11 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003659/0.0003658, allocations: 11.98 kB / 274.1 MB, free: 10.08 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2961/0.2965, allocations: 38.77 MB / 312.9 MB, free: 38.77 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.8215/1.118, allocations: 316.1 MB / 0.6143 GB, free: 69.61 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003014/1.118, allocations: 90.83 kB / 0.6144 GB, free: 69.56 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5291/1.648, allocations: 141.8 MB / 0.7529 GB, free: 81.53 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.625e-06/1.648, allocations: 0 / 0.7529 GB, free: 81.53 MB / 362.7 MB Notification: Performance of Transformations before backend: time 7.223e-05/1.648, allocations: 23.84 kB / 0.7529 GB, free: 81.51 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 124 * Number of variables: 124 Notification: Performance of Generate backend data structure: time 0.002908/1.651, allocations: 1.158 MB / 0.754 GB, free: 80.3 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.664e-05/1.651, allocations: 8.031 kB / 0.7541 GB, free: 80.3 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003488/1.651, allocations: 98.98 kB / 0.7541 GB, free: 80.2 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001262/1.652, allocations: 0.6549 MB / 0.7548 GB, free: 79.51 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.841e-05/1.652, allocations: 88.41 kB / 0.7549 GB, free: 79.41 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.438e-05/1.653, allocations: 47.91 kB / 0.7549 GB, free: 79.37 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001117/1.654, allocations: 0.8013 MB / 0.7557 GB, free: 78.53 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.964e-05/1.654, allocations: 0 / 0.7557 GB, free: 78.53 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.976e-05/1.654, allocations: 24 kB / 0.7557 GB, free: 78.5 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.044e-05/1.654, allocations: 36.98 kB / 0.7558 GB, free: 78.47 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009321/1.655, allocations: 0.6713 MB / 0.7564 GB, free: 77.79 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004488/1.659, allocations: 3.393 MB / 0.7597 GB, free: 74.21 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005649/1.66, allocations: 407.2 kB / 0.7601 GB, free: 73.81 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001583/1.661, allocations: 1.295 MB / 0.7614 GB, free: 72.39 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003913/1.662, allocations: 304.4 kB / 0.7617 GB, free: 72.07 MB / 362.7 MB Notification: Performance of pre-optimization done (n=33): time 2.304e-06/1.662, allocations: 0 / 0.7617 GB, free: 72.07 MB / 362.7 MB Notification: Performance of matching and sorting (n=38): time 0.003568/1.665, allocations: 1.845 MB / 0.7635 GB, free: 70.11 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.909e-05/1.666, allocations: 162.2 kB / 0.7636 GB, free: 69.92 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008212/1.666, allocations: 0.6128 MB / 0.7642 GB, free: 69.3 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 5.25e-05/1.666, allocations: 33.7 kB / 0.7643 GB, free: 69.26 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002792/1.667, allocations: 422.3 kB / 0.7647 GB, free: 68.85 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.391e-05/1.667, allocations: 126.3 kB / 0.7648 GB, free: 68.73 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.344e-05/1.667, allocations: 16 kB / 0.7648 GB, free: 68.71 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001598/1.667, allocations: 382.8 kB / 0.7652 GB, free: 68.33 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003498/1.667, allocations: 245.9 kB / 0.7654 GB, free: 68.09 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005039/1.668, allocations: 0.5343 MB / 0.7659 GB, free: 67.42 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004625/1.668, allocations: 363 kB / 0.7663 GB, free: 67.05 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.987e-06/1.668, allocations: 0 / 0.7663 GB, free: 67.05 MB / 362.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001563/1.67, allocations: 0.9706 MB / 0.7672 GB, free: 66.07 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001019/1.671, allocations: 3.522 MB / 0.7706 GB, free: 62.27 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.675e-05/1.671, allocations: 8 kB / 0.7707 GB, free: 62.26 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006357/1.672, allocations: 132.8 kB / 0.7708 GB, free: 62.13 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004868/1.672, allocations: 147.8 kB / 0.7709 GB, free: 61.98 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005544/1.673, allocations: 0.6771 MB / 0.7716 GB, free: 61.28 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006911/1.673, allocations: 43.92 kB / 0.7716 GB, free: 61.24 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.618e-05/1.674, allocations: 43.98 kB / 0.7717 GB, free: 61.2 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.955e-05/1.674, allocations: 8.062 kB / 0.7717 GB, free: 61.19 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001569/1.675, allocations: 0.9148 MB / 0.7726 GB, free: 60.26 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.757e-06/1.675, allocations: 16.03 kB / 0.7726 GB, free: 60.25 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00039/1.676, allocations: 116.8 kB / 0.7727 GB, free: 60.13 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004289/1.676, allocations: 147.8 kB / 0.7728 GB, free: 59.98 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004273/1.676, allocations: 0.6615 MB / 0.7735 GB, free: 59.3 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005232/1.677, allocations: 43.91 kB / 0.7735 GB, free: 59.25 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.743e-05/1.677, allocations: 40 kB / 0.7736 GB, free: 59.21 MB / 362.7 MB Warning: Assuming fixed start value for the following 2 variables: tank.level:VARIABLE(start = tank.level_start unit = "m" fixed = true stateSelect=StateSelect.prefer ) "Fluid level in the tank" type: Real tank.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: 40 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition1,$PRE.tank.ports_m_flow_out[1],tank.ports_m_flow_out[1],$PRE.tank.aboveLevel[1],tank.aboveLevel[1],timeTable.a,timeTable.b,timeTable.last,$PRE.timeTable.nextEvent,timeTable.nextEvent) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (84): * Single equations (assignments): 82 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0006368/1.678, allocations: 397.7 kB / 0.7739 GB, free: 58.82 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.792e-05/1.678, allocations: 75.06 kB / 0.774 GB, free: 58.74 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001262/1.679, allocations: 0.701 MB / 0.7747 GB, free: 58.02 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.841e-06/1.679, allocations: 4 kB / 0.7747 GB, free: 58.02 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.813e-06/1.679, allocations: 0 / 0.7747 GB, free: 58.02 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.963e-06/1.679, allocations: 4 kB / 0.7747 GB, free: 58.02 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001904/1.681, allocations: 1.375 MB / 0.7761 GB, free: 56.58 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.526e-06/1.681, allocations: 0 / 0.7761 GB, free: 56.58 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002788/1.681, allocations: 59.97 kB / 0.7761 GB, free: 56.52 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004784/1.682, allocations: 124.8 kB / 0.7762 GB, free: 56.4 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.707e-05/1.682, allocations: 15.94 kB / 0.7762 GB, free: 56.38 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004539/1.682, allocations: 0.6616 MB / 0.7769 GB, free: 55.7 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.733e-06/1.682, allocations: 0 / 0.7769 GB, free: 55.7 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001224/1.684, allocations: 1.034 MB / 0.7779 GB, free: 54.62 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001814/1.684, allocations: 148.3 kB / 0.778 GB, free: 54.46 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001057/1.684, allocations: 16 kB / 0.7781 GB, free: 54.45 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003891/1.684, allocations: 31.95 kB / 0.7781 GB, free: 54.41 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001046/1.684, allocations: 43.75 kB / 0.7781 GB, free: 54.37 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.677e-05/1.684, allocations: 19.98 kB / 0.7781 GB, free: 54.35 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0005296/1.685, allocations: 479 kB / 0.7786 GB, free: 53.89 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.2e-07/1.685, allocations: 0 / 0.7786 GB, free: 53.89 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.002328/1.687, allocations: 0.5542 MB / 0.7791 GB, free: 53.34 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (tank.medium.T,tank.level) * Number of discrete variables: 7 ($whenCondition1,tank.ports_m_flow_out[1],tank.aboveLevel[1],timeTable.a,timeTable.b,timeTable.last,timeTable.nextEvent) * Number of discrete states: 7 (tank.aboveLevel[1],tank.ports_m_flow_out[1],timeTable.last,timeTable.nextEvent,timeTable.b,timeTable.a,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (32): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.001469/1.689, allocations: 0.5914 MB / 0.7797 GB, free: 52.79 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.00219/1.691, allocations: 1.124 MB / 0.7808 GB, free: 51.64 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.92e-06/1.691, allocations: 0 / 0.7808 GB, free: 51.64 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005224/1.692, allocations: 311.9 kB / 0.7811 GB, free: 51.32 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001107/1.693, allocations: 249.3 kB / 0.7814 GB, free: 51.09 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00231/1.695, allocations: 1.718 MB / 0.783 GB, free: 49.33 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003859/1.695, allocations: 0.9849 MB / 0.784 GB, free: 48.31 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0007984/1.696, allocations: 240.7 kB / 0.7842 GB, free: 48.08 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001211/1.696, allocations: 51.42 kB / 0.7843 GB, free: 48.03 MB / 362.7 MB Notification: Performance of SimCode: time 1.163e-06/1.696, allocations: 0 / 0.7843 GB, free: 48.03 MB / 362.7 MB Notification: Performance of Templates: time 0.02246/1.719, allocations: 15.2 MB / 0.7991 GB, free: 32.84 MB / 362.7 MB make -j1 -f Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.makefile (rm -f Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.pipe ; mkfifo Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.pipe >> ../files/Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.sim & ./Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.pipe 2>&1)