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.9144/0.9144, allocations: 110.8 MB / 118.3 MB, free: 14.52 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo): time 0.00174/0.00174, allocations: 151.4 kB / 144 MB, free: 4.844 MB / 122.7 MB Notification: Performance of FrontEnd - loaded program: time 1.376e-05/1.378e-05, allocations: 4 kB / 173.9 MB, free: 22.8 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.04917/0.0492, allocations: 25.17 MB / 199 MB, free: 13.7 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6584/0.7076, allocations: 238.8 MB / 437.8 MB, free: 83.05 MB / 234.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002782/0.7079, allocations: 70.02 kB / 437.9 MB, free: 83.05 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3872/1.095, allocations: 130.1 MB / 0.5547 GB, free: 43.97 MB / 234.7 MB Notification: Performance of FrontEnd: time 1.552e-06/1.095, allocations: 0 / 0.5547 GB, free: 43.97 MB / 234.7 MB Notification: Performance of Transformations before backend: time 6.247e-05/1.095, allocations: 18.91 kB / 0.5548 GB, free: 43.97 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.002114/1.097, allocations: 1.037 MB / 0.5558 GB, free: 43.38 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.999e-05/1.097, allocations: 7.781 kB / 0.5558 GB, free: 43.38 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001719/1.098, allocations: 89.41 kB / 0.5559 GB, free: 43.34 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00107/1.099, allocations: 0.6108 MB / 0.5565 GB, free: 43.06 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.346e-05/1.099, allocations: 78.02 kB / 0.5565 GB, free: 43 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.734e-05/1.099, allocations: 35.5 kB / 0.5566 GB, free: 43 MB / 234.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007722/1.1, allocations: 0.5336 MB / 0.5571 GB, free: 42.99 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008933/1.101, allocations: 0.6951 MB / 0.5578 GB, free: 42.82 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.271e-05/1.101, allocations: 7.047 kB / 0.5578 GB, free: 42.82 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.057e-05/1.101, allocations: 3.125 kB / 0.5578 GB, free: 42.82 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.511e-05/1.101, allocations: 42.08 kB / 0.5578 GB, free: 42.82 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003487/1.104, allocations: 3.495 MB / 0.5612 GB, free: 40.55 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004837/1.105, allocations: 371.5 kB / 0.5616 GB, free: 40.52 MB / 234.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002635/1.105, allocations: 216.2 kB / 0.5618 GB, free: 40.5 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001362/1.106, allocations: 1.37 MB / 0.5631 GB, free: 39.38 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003915/1.107, allocations: 284.4 kB / 0.5634 GB, free: 39.23 MB / 234.7 MB Notification: Performance of pre-optimization done (n=33): time 1.923e-06/1.107, allocations: 3.562 kB / 0.5634 GB, free: 39.23 MB / 234.7 MB Notification: Performance of matching and sorting (n=37): time 0.003072/1.11, allocations: 1.304 MB / 0.5647 GB, free: 38.63 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.974e-05/1.11, allocations: 162.1 kB / 0.5648 GB, free: 38.44 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000563/1.11, allocations: 0.5111 MB / 0.5653 GB, free: 38.2 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 4.251e-05/1.111, allocations: 29.59 kB / 0.5654 GB, free: 38.17 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002497/1.111, allocations: 413.1 kB / 0.5658 GB, free: 37.84 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.291e-05/1.111, allocations: 125.7 kB / 0.5659 GB, free: 37.75 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.961e-05/1.111, allocations: 3.844 kB / 0.5659 GB, free: 37.75 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 0.0001088/1.111, allocations: 379.6 kB / 0.5662 GB, free: 37.4 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002645/1.111, allocations: 216.6 kB / 0.5664 GB, free: 37.33 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004001/1.112, allocations: 496.4 kB / 0.5669 GB, free: 36.9 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005281/1.112, allocations: 318.8 kB / 0.5672 GB, free: 36.81 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.121e-06/1.112, allocations: 3.625 kB / 0.5672 GB, free: 36.81 MB / 234.7 MB Notification: Performance of matching and sorting (n=87) (initialization): time 0.001409/1.114, allocations: 0.8461 MB / 0.5681 GB, free: 36.53 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.268e-05/1.114, allocations: 40.45 kB / 0.5681 GB, free: 36.5 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.222e-05/1.114, allocations: 10.3 kB / 0.5681 GB, free: 36.5 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003377/1.114, allocations: 108 kB / 0.5682 GB, free: 36.47 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004335/1.115, allocations: 139.1 kB / 0.5683 GB, free: 36.45 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005246/1.115, allocations: 0.6819 MB / 0.569 GB, free: 35.88 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000504/1.116, allocations: 38.41 kB / 0.569 GB, free: 35.87 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.522e-05/1.116, allocations: 39.12 kB / 0.5691 GB, free: 35.87 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.0002302/1.116, allocations: 182.9 kB / 0.5693 GB, free: 35.71 MB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.014e-05/1.116, allocations: 66.19 kB / 0.5693 GB, free: 35.67 MB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001225/1.117, allocations: 0.6363 MB / 0.5699 GB, free: 35.46 MB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.25e-06/1.117, allocations: 3.719 kB / 0.5699 GB, free: 35.46 MB / 234.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.728e-06/1.117, allocations: 0 / 0.5699 GB, free: 35.46 MB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.42e-06/1.117, allocations: 3.938 kB / 0.5699 GB, free: 35.46 MB / 234.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001718/1.119, allocations: 1.233 MB / 0.5711 GB, free: 34.89 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.685e-06/1.119, allocations: 3.188 kB / 0.5712 GB, free: 34.89 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002632/1.119, allocations: 59.86 kB / 0.5712 GB, free: 34.88 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003216/1.12, allocations: 98.98 kB / 0.5713 GB, free: 34.86 MB / 234.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.362e-05/1.12, allocations: 14.62 kB / 0.5713 GB, free: 34.85 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004676/1.12, allocations: 0.6689 MB / 0.572 GB, free: 34.28 MB / 234.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.527e-06/1.12, allocations: 3.938 kB / 0.572 GB, free: 34.27 MB / 234.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001202/1.121, allocations: 0.9653 MB / 0.5729 GB, free: 33.84 MB / 234.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001079/1.121, allocations: 139 kB / 0.573 GB, free: 33.71 MB / 234.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001001/1.122, allocations: 3.75 kB / 0.5731 GB, free: 33.71 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003579/1.122, allocations: 29.16 kB / 0.5731 GB, free: 33.71 MB / 234.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.277e-05/1.122, allocations: 34.75 kB / 0.5731 GB, free: 33.7 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.424e-05/1.122, allocations: 24.45 kB / 0.5731 GB, free: 33.7 MB / 234.7 MB Notification: Performance of sorting global known variables: time 0.0003629/1.122, allocations: 389.9 kB / 0.5735 GB, free: 33.51 MB / 234.7 MB Notification: Performance of sort global known variables: time 1.61e-07/1.122, allocations: 7.75 kB / 0.5735 GB, free: 33.51 MB / 234.7 MB Notification: Performance of remove unused functions: time 0.001162/1.124, allocations: 358.3 kB / 0.5739 GB, free: 33.43 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.0009554/1.125, allocations: 0.5123 MB / 0.5744 GB, free: 33.25 MB / 234.7 MB Notification: Performance of simCode: created initialization part: time 0.0008216/1.125, allocations: 0.5574 MB / 0.5749 GB, free: 33.02 MB / 234.7 MB Notification: Performance of simCode: created event and clocks part: time 3.297e-06/1.125, allocations: 2.562 kB / 0.5749 GB, free: 33.02 MB / 234.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003515/1.126, allocations: 292.7 kB / 0.5752 GB, free: 32.87 MB / 234.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001169/1.127, allocations: 251.3 kB / 0.5754 GB, free: 32.82 MB / 234.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001745/1.129, allocations: 1.021 MB / 0.5764 GB, free: 32.43 MB / 234.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003454/1.129, allocations: 0.9798 MB / 0.5774 GB, free: 31.71 MB / 234.7 MB Notification: Performance of simCode: alias equations: time 0.0005232/1.13, allocations: 160.1 kB / 0.5775 GB, free: 31.69 MB / 234.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001104/1.13, allocations: 49.81 kB / 0.5776 GB, free: 31.68 MB / 234.7 MB Notification: Performance of SimCode: time 4.51e-07/1.13, allocations: 2.906 kB / 0.5776 GB, free: 31.68 MB / 234.7 MB Notification: Performance of Templates: time 0.01869/1.148, allocations: 12.62 MB / 0.5899 GB, free: 21.58 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)