Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.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.TwoTanks,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks") translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.1.0+maint.om/package.mo): time 0.9787/0.9787, allocations: 110.8 MB / 118.3 MB, free: 14.47 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo): time 0.001681/0.001681, allocations: 155.5 kB / 144 MB, free: 4.797 MB / 122.7 MB Notification: Performance of FrontEnd - loaded program: time 1.69e-05/1.692e-05, allocations: 0 / 173.9 MB, free: 22.79 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05579/0.05583, allocations: 25.19 MB / 199 MB, free: 13.69 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6059/0.6618, allocations: 236 MB / 435 MB, free: 81.77 MB / 234.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002433/0.6621, allocations: 66.48 kB / 435.1 MB, free: 81.77 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4248/1.087, allocations: 127.4 MB / 0.5493 GB, free: 42.73 MB / 234.7 MB Notification: Performance of FrontEnd: time 1.664e-06/1.087, allocations: 0 / 0.5493 GB, free: 42.73 MB / 234.7 MB Notification: Performance of Transformations before backend: time 7.261e-05/1.087, allocations: 24.91 kB / 0.5493 GB, free: 42.73 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: 118 * Number of variables: 118 Notification: Performance of Generate backend data structure: time 0.002331/1.089, allocations: 0.9814 MB / 0.5503 GB, free: 42.18 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.032e-05/1.089, allocations: 7.812 kB / 0.5503 GB, free: 42.18 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002988/1.09, allocations: 83.34 kB / 0.5504 GB, free: 42.14 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001043/1.091, allocations: 0.5532 MB / 0.5509 GB, free: 41.91 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.121e-05/1.091, allocations: 18.06 kB / 0.5509 GB, free: 41.91 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.531e-05/1.091, allocations: 27.61 kB / 0.551 GB, free: 41.91 MB / 234.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008886/1.092, allocations: 0.5549 MB / 0.5515 GB, free: 41.9 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008916/1.093, allocations: 0.6307 MB / 0.5521 GB, free: 41.78 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.149e-05/1.093, allocations: 0.75 kB / 0.5521 GB, free: 41.78 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.221e-05/1.093, allocations: 2.375 kB / 0.5521 GB, free: 41.78 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.065e-05/1.093, allocations: 45.58 kB / 0.5522 GB, free: 41.78 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003346/1.096, allocations: 2.703 MB / 0.5548 GB, free: 40.35 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000587/1.097, allocations: 432.6 kB / 0.5552 GB, free: 40.32 MB / 234.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002802/1.097, allocations: 229.8 kB / 0.5554 GB, free: 40.31 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002803/1.097, allocations: 425.2 kB / 0.5558 GB, free: 39.84 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.531e-05/1.098, allocations: 37.94 kB / 0.5559 GB, free: 39.8 MB / 234.7 MB Notification: Performance of pre-optimization done (n=48): time 3.176e-06/1.098, allocations: 0 / 0.5559 GB, free: 39.8 MB / 234.7 MB Notification: Performance of matching and sorting (n=56): time 0.004911/1.102, allocations: 1.763 MB / 0.5576 GB, free: 39.4 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.168e-05/1.102, allocations: 85.45 kB / 0.5577 GB, free: 39.3 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004472/1.103, allocations: 422.4 kB / 0.5581 GB, free: 39.19 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 5.281e-05/1.103, allocations: 28.8 kB / 0.5581 GB, free: 39.16 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001794/1.103, allocations: 323.3 kB / 0.5584 GB, free: 38.99 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001326/1.103, allocations: 192 kB / 0.5586 GB, free: 38.87 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.032e-05/1.103, allocations: 2.562 kB / 0.5586 GB, free: 38.87 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 9.188e-05/1.103, allocations: 375 kB / 0.559 GB, free: 38.55 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003085/1.104, allocations: 242.7 kB / 0.5592 GB, free: 38.55 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003749/1.104, allocations: 416.4 kB / 0.5596 GB, free: 38.38 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001149/1.105, allocations: 386.9 kB / 0.56 GB, free: 38.37 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.35e-06/1.105, allocations: 3.969 kB / 0.56 GB, free: 38.37 MB / 234.7 MB Notification: Performance of matching and sorting (n=86) (initialization): time 0.001853/1.107, allocations: 0.8852 MB / 0.5608 GB, free: 38.29 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.187e-05/1.107, allocations: 15.34 kB / 0.5608 GB, free: 38.28 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.114e-05/1.107, allocations: 4.594 kB / 0.5608 GB, free: 38.28 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000445/1.108, allocations: 162.2 kB / 0.561 GB, free: 38.27 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005101/1.108, allocations: 141.6 kB / 0.5611 GB, free: 38.27 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001353/1.11, allocations: 0.9309 MB / 0.562 GB, free: 37.75 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005196/1.11, allocations: 32.25 kB / 0.5621 GB, free: 37.75 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.535e-05/1.11, allocations: 32.94 kB / 0.5621 GB, free: 37.75 MB / 234.7 MB Warning: Assuming fixed start value for the following 4 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 = tank2.T_start 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 = tank1.T_start 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: 20 * Number of states: 0 () * Number of discrete variables: 6 ($PRE.tank1.aboveLevel[1],tank1.aboveLevel[1],$PRE.tank2.aboveLevel[1],tank2.aboveLevel[1],tank2.ports_m_flow_out[1],tank1.ports_m_flow_out[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (78): * Single equations (assignments): 77 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 7} Notification: Performance of prepare postOptimizeDAE: time 0.0002552/1.11, allocations: 153.3 kB / 0.5623 GB, free: 37.64 MB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001179/1.111, allocations: 70.03 kB / 0.5623 GB, free: 37.6 MB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001745/1.112, allocations: 0.7969 MB / 0.5631 GB, free: 37.52 MB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.556e-06/1.112, allocations: 10.97 kB / 0.5631 GB, free: 37.52 MB / 234.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.975e-06/1.112, allocations: 5.469 kB / 0.5631 GB, free: 37.52 MB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.196e-06/1.112, allocations: 3.797 kB / 0.5631 GB, free: 37.52 MB / 234.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002906/1.115, allocations: 1.551 MB / 0.5646 GB, free: 37.21 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.767e-06/1.115, allocations: 6.156 kB / 0.5646 GB, free: 37.21 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004542/1.116, allocations: 109.1 kB / 0.5647 GB, free: 37.21 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004516/1.116, allocations: 158.2 kB / 0.5649 GB, free: 37.2 MB / 234.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.788e-05/1.116, allocations: 11.22 kB / 0.5649 GB, free: 37.19 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009936/1.117, allocations: 0.8664 MB / 0.5658 GB, free: 36.55 MB / 234.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.777e-06/1.117, allocations: 3.094 kB / 0.5658 GB, free: 36.55 MB / 234.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001957/1.119, allocations: 1.22 MB / 0.5669 GB, free: 35.98 MB / 234.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001802/1.119, allocations: 146.9 kB / 0.5671 GB, free: 35.84 MB / 234.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001076/1.12, allocations: 7.766 kB / 0.5671 GB, free: 35.84 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004477/1.12, allocations: 26.95 kB / 0.5671 GB, free: 35.84 MB / 234.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001141/1.12, allocations: 53.44 kB / 0.5672 GB, free: 35.84 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.887e-05/1.12, allocations: 30.66 kB / 0.5672 GB, free: 35.83 MB / 234.7 MB Notification: Performance of sorting global known variables: time 0.0003841/1.121, allocations: 322.4 kB / 0.5675 GB, free: 35.66 MB / 234.7 MB Notification: Performance of sort global known variables: time 1.81e-07/1.121, allocations: 0 / 0.5675 GB, free: 35.66 MB / 234.7 MB Notification: Performance of remove unused functions: time 0.001461/1.122, allocations: 388.2 kB / 0.5679 GB, free: 35.58 MB / 234.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (tank1.medium.T,tank1.level,tank2.medium.T,tank2.level) * Number of discrete variables: 2 (tank1.aboveLevel[1],tank2.aboveLevel[1]) * Number of discrete states: 2 (tank2.aboveLevel[1],tank1.aboveLevel[1]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (52): * Single equations (assignments): 51 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.001373/1.123, allocations: 0.5388 MB / 0.5684 GB, free: 35.39 MB / 234.7 MB Notification: Performance of simCode: created initialization part: time 0.001168/1.125, allocations: 0.6279 MB / 0.569 GB, free: 35.18 MB / 234.7 MB Notification: Performance of simCode: created event and clocks part: time 5.28e-06/1.125, allocations: 2.156 kB / 0.569 GB, free: 35.18 MB / 234.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006145/1.125, allocations: 352 kB / 0.5694 GB, free: 35.09 MB / 234.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001716/1.127, allocations: 319.1 kB / 0.5697 GB, free: 35.04 MB / 234.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002248/1.129, allocations: 1.139 MB / 0.5708 GB, free: 34.6 MB / 234.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004869/1.13, allocations: 0.9766 MB / 0.5717 GB, free: 33.88 MB / 234.7 MB Notification: Performance of simCode: alias equations: time 0.0007008/1.131, allocations: 185.8 kB / 0.5719 GB, free: 33.86 MB / 234.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001758/1.131, allocations: 63.83 kB / 0.572 GB, free: 33.85 MB / 234.7 MB Notification: Performance of SimCode: time 6.21e-07/1.131, allocations: 0 / 0.572 GB, free: 33.85 MB / 234.7 MB Notification: Performance of Templates: time 0.02456/1.155, allocations: 16 MB / 0.5876 GB, free: 23.93 MB / 234.7 MB make -j1 -f Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.makefile (rm -f Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.pipe ; mkfifo Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.pipe >> ../files/Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.sim & ./Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.pipe 2>&1)