Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.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.OneTank,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.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.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.1.0+maint.om/package.mo): time 0.9769/0.9769, allocations: 110.8 MB / 123.3 MB, free: 10.79 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo): time 0.002045/0.002045, allocations: 147.5 kB / 149.1 MB, free: 0.9922 MB / 122.7 MB Notification: Performance of FrontEnd - loaded program: time 3.48e-05/3.481e-05, allocations: 4 kB / 180.2 MB, free: 17.56 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05883/0.05888, allocations: 25.18 MB / 205.4 MB, free: 8.43 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.7341/0.7931, allocations: 239.5 MB / 444.9 MB, free: 79.27 MB / 234.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002487/0.7934, allocations: 69.34 kB / 444.9 MB, free: 79.24 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4411/1.235, allocations: 131 MB / 0.5625 GB, free: 36.61 MB / 234.7 MB Notification: Performance of FrontEnd: time 3.006e-06/1.235, allocations: 0 / 0.5625 GB, free: 36.61 MB / 234.7 MB Notification: Performance of Transformations before backend: time 7.395e-05/1.235, allocations: 16.81 kB / 0.5625 GB, free: 36.61 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: 122 * Number of variables: 122 Notification: Performance of Generate backend data structure: time 0.002375/1.237, allocations: 1.028 MB / 0.5635 GB, free: 35.79 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.838e-05/1.237, allocations: 7.625 kB / 0.5635 GB, free: 35.79 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001713/1.237, allocations: 89.12 kB / 0.5636 GB, free: 35.75 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0012/1.239, allocations: 0.6293 MB / 0.5642 GB, free: 35.27 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.848e-05/1.239, allocations: 90.22 kB / 0.5643 GB, free: 35.2 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.189e-05/1.239, allocations: 43.84 kB / 0.5643 GB, free: 35.18 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001114/1.24, allocations: 0.7596 MB / 0.5651 GB, free: 34.7 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.434e-05/1.24, allocations: 7.938 kB / 0.5651 GB, free: 34.69 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.233e-05/1.24, allocations: 26.69 kB / 0.5651 GB, free: 34.67 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.176e-05/1.24, allocations: 34.89 kB / 0.5651 GB, free: 34.66 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008729/1.241, allocations: 0.6075 MB / 0.5657 GB, free: 34.39 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004166/1.245, allocations: 3.6 MB / 0.5692 GB, free: 30.58 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005354/1.246, allocations: 390.9 kB / 0.5696 GB, free: 30.19 MB / 234.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000279/1.246, allocations: 228.8 kB / 0.5698 GB, free: 29.96 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00133/1.247, allocations: 1.386 MB / 0.5712 GB, free: 28.43 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003756/1.248, allocations: 291.7 kB / 0.5715 GB, free: 28.12 MB / 234.7 MB Notification: Performance of pre-optimization done (n=33): time 2.054e-06/1.248, allocations: 0 / 0.5715 GB, free: 28.12 MB / 234.7 MB Notification: Performance of matching and sorting (n=37): time 0.002661/1.25, allocations: 1.444 MB / 0.5729 GB, free: 26.61 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.505e-05/1.25, allocations: 166.2 kB / 0.573 GB, free: 26.41 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006453/1.251, allocations: 0.5854 MB / 0.5736 GB, free: 25.81 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 4.451e-05/1.251, allocations: 33.7 kB / 0.5736 GB, free: 25.77 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002386/1.251, allocations: 406.2 kB / 0.574 GB, free: 25.38 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.582e-05/1.251, allocations: 125.6 kB / 0.5741 GB, free: 25.25 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.103e-05/1.251, allocations: 12 kB / 0.5742 GB, free: 25.24 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 0.0001519/1.252, allocations: 390.8 kB / 0.5745 GB, free: 24.85 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002987/1.252, allocations: 225.5 kB / 0.5747 GB, free: 24.63 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004293/1.252, allocations: 0.5049 MB / 0.5752 GB, free: 23.99 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004002/1.253, allocations: 342.3 kB / 0.5756 GB, free: 23.65 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.947e-06/1.253, allocations: 3.938 kB / 0.5756 GB, free: 23.64 MB / 234.7 MB Notification: Performance of matching and sorting (n=87) (initialization): time 0.00136/1.254, allocations: 0.9367 MB / 0.5765 GB, free: 22.69 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.116e-05/1.254, allocations: 41.69 kB / 0.5765 GB, free: 22.64 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.231e-05/1.254, allocations: 8 kB / 0.5765 GB, free: 22.63 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000545/1.255, allocations: 132.2 kB / 0.5767 GB, free: 22.5 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004259/1.255, allocations: 143.7 kB / 0.5768 GB, free: 22.36 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004781/1.256, allocations: 0.6655 MB / 0.5774 GB, free: 21.67 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005217/1.256, allocations: 39.92 kB / 0.5775 GB, free: 21.63 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.661e-05/1.256, allocations: 43.98 kB / 0.5775 GB, free: 21.59 MB / 234.7 MB Warning: Assuming fixed start value for the following 2 variables: tank.level:VARIABLE(min = 0.0 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 (80): * Single equations (assignments): 78 * 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.000246/1.257, allocations: 210.4 kB / 0.5777 GB, free: 21.38 MB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.473e-05/1.257, allocations: 75.11 kB / 0.5778 GB, free: 21.3 MB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001163/1.258, allocations: 0.6803 MB / 0.5785 GB, free: 20.61 MB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.361e-06/1.258, allocations: 4 kB / 0.5785 GB, free: 20.61 MB / 234.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.22e-06/1.258, allocations: 3.938 kB / 0.5785 GB, free: 20.6 MB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.29e-06/1.258, allocations: 0 / 0.5785 GB, free: 20.6 MB / 234.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001773/1.26, allocations: 1.348 MB / 0.5798 GB, free: 19.19 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.396e-06/1.26, allocations: 0 / 0.5798 GB, free: 19.19 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002578/1.26, allocations: 59.91 kB / 0.5798 GB, free: 19.13 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004345/1.26, allocations: 120.8 kB / 0.58 GB, free: 19.01 MB / 234.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.467e-05/1.26, allocations: 8 kB / 0.58 GB, free: 19 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003911/1.261, allocations: 0.6538 MB / 0.5806 GB, free: 18.32 MB / 234.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.403e-06/1.261, allocations: 0 / 0.5806 GB, free: 18.32 MB / 234.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001151/1.262, allocations: 1.011 MB / 0.5816 GB, free: 17.28 MB / 234.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001451/1.262, allocations: 139.7 kB / 0.5817 GB, free: 17.12 MB / 234.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.851e-05/1.262, allocations: 19.95 kB / 0.5817 GB, free: 17.11 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003619/1.263, allocations: 31.88 kB / 0.5818 GB, free: 17.07 MB / 234.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000111/1.263, allocations: 39.88 kB / 0.5818 GB, free: 17.04 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.948e-05/1.263, allocations: 23.98 kB / 0.5818 GB, free: 17.01 MB / 234.7 MB Notification: Performance of sorting global known variables: time 0.0004822/1.263, allocations: 451.1 kB / 0.5823 GB, free: 16.58 MB / 234.7 MB Notification: Performance of sort global known variables: time 1.8e-07/1.263, allocations: 0 / 0.5823 GB, free: 16.58 MB / 234.7 MB Notification: Performance of remove unused functions: time 0.00159/1.265, allocations: 379.6 kB / 0.5826 GB, free: 16.21 MB / 234.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 (31): * Single equations (assignments): 29 * 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.001154/1.266, allocations: 0.5308 MB / 0.5831 GB, free: 15.73 MB / 234.7 MB Notification: Performance of simCode: created initialization part: time 0.001041/1.267, allocations: 0.607 MB / 0.5837 GB, free: 15.11 MB / 234.7 MB Notification: Performance of simCode: created event and clocks part: time 4.007e-06/1.267, allocations: 8.062 kB / 0.5837 GB, free: 15.1 MB / 234.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004931/1.268, allocations: 319 kB / 0.5841 GB, free: 14.78 MB / 234.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001199/1.269, allocations: 262.3 kB / 0.5843 GB, free: 14.52 MB / 234.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001699/1.271, allocations: 1.05 MB / 0.5853 GB, free: 13.45 MB / 234.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003459/1.271, allocations: 0.9686 MB / 0.5863 GB, free: 12.45 MB / 234.7 MB Notification: Performance of simCode: alias equations: time 0.0005138/1.271, allocations: 165.4 kB / 0.5864 GB, free: 12.29 MB / 234.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001096/1.272, allocations: 55.42 kB / 0.5865 GB, free: 12.23 MB / 234.7 MB Notification: Performance of SimCode: time 6.81e-07/1.272, allocations: 0 / 0.5865 GB, free: 12.23 MB / 234.7 MB Notification: Performance of Templates: time 0.1824/1.454, allocations: 14.17 MB / 0.6003 GB, free: 35.11 MB / 234.7 MB make -j1 -f Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.makefile (rm -f Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.pipe ; mkfifo Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.pipe >> ../files/Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.sim & ./Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.pipe 2>&1)