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.001019/0.001018, allocations: 170.2 kB / 12.72 MB, free: 2.594 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.21/1.21, allocations: 170.6 MB / 183.8 MB, free: 11.42 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.001606/0.001605, allocations: 107.5 kB / 223.2 MB, free: 4.043 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.606e-05/2.61e-05, allocations: 4 kB / 268.9 MB, free: 20.92 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06946/0.0695, allocations: 38.77 MB / 307.6 MB, free: 14.12 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6289/0.6985, allocations: 316 MB / 0.6091 GB, free: 2.695 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002587/0.6988, allocations: 87.02 kB / 0.6091 GB, free: 2.652 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.444/1.143, allocations: 141.4 MB / 0.7472 GB, free: 15.77 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.273e-06/1.143, allocations: 0 / 0.7472 GB, free: 15.77 MB / 362.7 MB Notification: Performance of Transformations before backend: time 5.062e-05/1.143, allocations: 23.94 kB / 0.7472 GB, free: 15.75 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.001768/1.145, allocations: 1.066 MB / 0.7483 GB, free: 14.63 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.613e-05/1.145, allocations: 8.031 kB / 0.7483 GB, free: 14.62 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003118/1.145, allocations: 91.06 kB / 0.7484 GB, free: 14.53 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001133/1.146, allocations: 0.6474 MB / 0.749 GB, free: 13.84 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.278e-05/1.146, allocations: 92.41 kB / 0.7491 GB, free: 13.74 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.991e-05/1.146, allocations: 47.98 kB / 0.7491 GB, free: 13.69 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001026/1.147, allocations: 0.7862 MB / 0.7499 GB, free: 12.85 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.891e-05/1.147, allocations: 7.938 kB / 0.7499 GB, free: 12.84 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.532e-05/1.148, allocations: 20 kB / 0.7499 GB, free: 12.82 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.753e-05/1.148, allocations: 36.98 kB / 0.75 GB, free: 12.79 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008348/1.148, allocations: 0.6519 MB / 0.7506 GB, free: 12.14 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00369/1.152, allocations: 3.413 MB / 0.7539 GB, free: 8.508 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005069/1.153, allocations: 394.9 kB / 0.7543 GB, free: 8.113 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002702/1.153, allocations: 232.8 kB / 0.7545 GB, free: 7.883 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001292/1.154, allocations: 1.335 MB / 0.7558 GB, free: 6.41 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003393/1.155, allocations: 298.2 kB / 0.7561 GB, free: 6.098 MB / 362.7 MB Notification: Performance of pre-optimization done (n=33): time 2.134e-06/1.155, allocations: 0 / 0.7561 GB, free: 6.098 MB / 362.7 MB Notification: Performance of matching and sorting (n=38): time 0.002469/1.157, allocations: 1.478 MB / 0.7576 GB, free: 4.543 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.498e-05/1.157, allocations: 166.2 kB / 0.7577 GB, free: 4.344 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005808/1.158, allocations: 0.6051 MB / 0.7583 GB, free: 3.734 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.914e-05/1.158, allocations: 37.7 kB / 0.7584 GB, free: 3.691 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001885/1.158, allocations: 418.5 kB / 0.7588 GB, free: 3.277 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.817e-05/1.158, allocations: 130.3 kB / 0.7589 GB, free: 3.148 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.243e-05/1.158, allocations: 16 kB / 0.7589 GB, free: 3.133 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 9.218e-05/1.158, allocations: 387.1 kB / 0.7593 GB, free: 2.746 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003149/1.158, allocations: 245.5 kB / 0.7595 GB, free: 2.504 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004036/1.159, allocations: 0.5166 MB / 0.76 GB, free: 1.855 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000427/1.159, allocations: 343.9 kB / 0.7603 GB, free: 1.512 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.157e-06/1.159, allocations: 8 kB / 0.7603 GB, free: 1.504 MB / 362.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.00133/1.161, allocations: 0.9665 MB / 0.7613 GB, free: 0.5195 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.1708/1.332, allocations: 3.511 MB / 0.7647 GB, free: 71.81 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.407e-05/1.332, allocations: 8.25 kB / 0.7647 GB, free: 71.81 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006758/1.332, allocations: 127.2 kB / 0.7648 GB, free: 71.8 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006085/1.333, allocations: 145.9 kB / 0.765 GB, free: 71.8 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005169/1.333, allocations: 0.679 MB / 0.7656 GB, free: 71.29 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006641/1.334, allocations: 49.44 kB / 0.7657 GB, free: 71.29 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.626e-05/1.334, allocations: 40.42 kB / 0.7657 GB, free: 71.29 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.889e-06/1.334, allocations: 4.531 kB / 0.7657 GB, free: 71.29 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001736/1.336, allocations: 0.9048 MB / 0.7666 GB, free: 71.25 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.457e-05/1.336, allocations: 10.11 kB / 0.7666 GB, free: 71.25 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004029/1.336, allocations: 117 kB / 0.7667 GB, free: 71.24 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004787/1.337, allocations: 152.4 kB / 0.7669 GB, free: 71.24 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004029/1.337, allocations: 0.6539 MB / 0.7675 GB, free: 70.72 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005734/1.338, allocations: 45.23 kB / 0.7676 GB, free: 70.72 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.919e-05/1.338, allocations: 40.14 kB / 0.7676 GB, free: 70.72 MB / 362.7 MB Warning: Assuming fixed start value for the following 2 variables: tank.level:VARIABLE(start = tank.level_start unit = "m" 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" 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 () * 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.0002642/1.338, allocations: 201.6 kB / 0.7678 GB, free: 70.58 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000107/1.338, allocations: 75.11 kB / 0.7679 GB, free: 70.58 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001307/1.34, allocations: 0.6881 MB / 0.7685 GB, free: 70.49 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.893e-06/1.34, allocations: 6.375 kB / 0.7685 GB, free: 70.49 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.15e-06/1.34, allocations: 0 / 0.7685 GB, free: 70.49 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.59e-06/1.34, allocations: 7.578 kB / 0.7685 GB, free: 70.49 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002052/1.342, allocations: 1.372 MB / 0.7699 GB, free: 70.14 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.905e-06/1.342, allocations: 0 / 0.7699 GB, free: 70.14 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002711/1.342, allocations: 60.03 kB / 0.7699 GB, free: 70.14 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004526/1.343, allocations: 122.5 kB / 0.7701 GB, free: 70.13 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.678e-05/1.343, allocations: 12.36 kB / 0.7701 GB, free: 70.13 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004258/1.343, allocations: 0.6625 MB / 0.7707 GB, free: 69.61 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.525e-06/1.343, allocations: 3.953 kB / 0.7707 GB, free: 69.61 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001335/1.344, allocations: 1.017 MB / 0.7717 GB, free: 69.41 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001612/1.345, allocations: 141.4 kB / 0.7719 GB, free: 69.31 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.938e-05/1.345, allocations: 17.03 kB / 0.7719 GB, free: 69.31 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003802/1.345, allocations: 37.94 kB / 0.7719 GB, free: 69.3 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001005/1.345, allocations: 33.92 kB / 0.7719 GB, free: 69.3 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.785e-05/1.345, allocations: 25.28 kB / 0.772 GB, free: 69.3 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0005771/1.346, allocations: 472.2 kB / 0.7724 GB, free: 69.2 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.61e-07/1.346, allocations: 0 / 0.7724 GB, free: 69.2 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001849/1.348, allocations: 0.5549 MB / 0.773 GB, free: 69.2 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) * 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.00121/1.349, allocations: 0.5724 MB / 0.7735 GB, free: 69.11 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.00203/1.351, allocations: 1.135 MB / 0.7746 GB, free: 68.98 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 6.201e-06/1.351, allocations: 2 kB / 0.7746 GB, free: 68.98 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006543/1.352, allocations: 309.4 kB / 0.7749 GB, free: 68.91 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001214/1.353, allocations: 250.5 kB / 0.7752 GB, free: 68.91 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00198/1.355, allocations: 1.072 MB / 0.7762 GB, free: 68.65 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004295/1.355, allocations: 0.984 MB / 0.7772 GB, free: 67.95 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.001011/1.356, allocations: 280.9 kB / 0.7774 GB, free: 67.94 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001193/1.356, allocations: 45.56 kB / 0.7775 GB, free: 67.93 MB / 362.7 MB Notification: Performance of SimCode: time 9.72e-07/1.356, allocations: 0 / 0.7775 GB, free: 67.93 MB / 362.7 MB Notification: Performance of Templates: time 0.02359/1.38, allocations: 16.8 MB / 0.7939 GB, free: 67.41 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)