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.9439/0.9439, 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.001938/0.001938, allocations: 143.5 kB / 149.1 MB, free: 1.004 MB / 122.7 MB Notification: Performance of FrontEnd - loaded program: time 4.032e-05/4.032e-05, allocations: 4 kB / 180.2 MB, free: 17.55 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05735/0.05741, allocations: 25.18 MB / 205.4 MB, free: 8.418 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.743/0.8005, allocations: 236.7 MB / 442.1 MB, free: 63.69 MB / 234.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002474/0.8008, allocations: 73.39 kB / 442.1 MB, free: 63.69 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4367/1.238, allocations: 128 MB / 0.5568 GB, free: 39.56 MB / 234.7 MB Notification: Performance of FrontEnd: time 1.703e-06/1.238, allocations: 0 / 0.5568 GB, free: 39.56 MB / 234.7 MB Notification: Performance of Transformations before backend: time 6.051e-05/1.238, allocations: 22.78 kB / 0.5568 GB, free: 39.55 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.002078/1.24, allocations: 0.989 MB / 0.5578 GB, free: 38.52 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.699e-05/1.24, allocations: 8.469 kB / 0.5578 GB, free: 38.52 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001457/1.24, allocations: 86.59 kB / 0.5579 GB, free: 38.43 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009359/1.241, allocations: 0.5518 MB / 0.5584 GB, free: 37.85 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.523e-05/1.241, allocations: 33 kB / 0.5585 GB, free: 37.82 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.374e-05/1.241, allocations: 47.86 kB / 0.5585 GB, free: 37.78 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009912/1.242, allocations: 0.6859 MB / 0.5592 GB, free: 37.07 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.18e-05/1.242, allocations: 0 / 0.5592 GB, free: 37.07 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.538e-05/1.242, allocations: 22.81 kB / 0.5592 GB, free: 37.05 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.91e-05/1.242, allocations: 52.91 kB / 0.5592 GB, free: 36.99 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008545/1.243, allocations: 0.619 MB / 0.5599 GB, free: 36.38 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003235/1.246, allocations: 2.806 MB / 0.5626 GB, free: 33.41 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006266/1.247, allocations: 464.7 kB / 0.563 GB, free: 32.95 MB / 234.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003201/1.247, allocations: 246 kB / 0.5633 GB, free: 32.71 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000293/1.248, allocations: 420.9 kB / 0.5637 GB, free: 32.21 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.665e-05/1.248, allocations: 42.94 kB / 0.5637 GB, free: 32.15 MB / 234.7 MB Notification: Performance of pre-optimization done (n=48): time 4.088e-06/1.248, allocations: 0 / 0.5637 GB, free: 32.15 MB / 234.7 MB Notification: Performance of matching and sorting (n=56): time 0.003599/1.251, allocations: 1.751 MB / 0.5654 GB, free: 30.35 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.572e-05/1.251, allocations: 81.67 kB / 0.5655 GB, free: 30.25 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005608/1.252, allocations: 0.5049 MB / 0.566 GB, free: 29.74 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 5.374e-05/1.252, allocations: 45.7 kB / 0.566 GB, free: 29.69 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001864/1.252, allocations: 311.8 kB / 0.5663 GB, free: 29.38 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001303/1.252, allocations: 195.2 kB / 0.5665 GB, free: 29.2 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.349e-05/1.252, allocations: 16 kB / 0.5665 GB, free: 29.18 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 0.0001132/1.252, allocations: 378.8 kB / 0.5669 GB, free: 28.8 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003404/1.253, allocations: 257.5 kB / 0.5671 GB, free: 28.55 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004126/1.253, allocations: 422.8 kB / 0.5675 GB, free: 28.07 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003889/1.254, allocations: 317.8 kB / 0.5678 GB, free: 27.76 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.007e-06/1.254, allocations: 4 kB / 0.5679 GB, free: 27.76 MB / 234.7 MB Notification: Performance of matching and sorting (n=86) (initialization): time 0.001119/1.255, allocations: 0.8734 MB / 0.5687 GB, free: 26.88 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.32e-05/1.255, allocations: 7.984 kB / 0.5687 GB, free: 26.87 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.173e-05/1.255, allocations: 8 kB / 0.5687 GB, free: 26.86 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001821/1.257, allocations: 337.1 kB / 0.569 GB, free: 26.53 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005072/1.257, allocations: 143.8 kB / 0.5692 GB, free: 26.39 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000704/1.258, allocations: 0.806 MB / 0.57 GB, free: 25.55 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005679/1.258, allocations: 51.94 kB / 0.57 GB, free: 25.5 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.982e-05/1.258, allocations: 27.98 kB / 0.57 GB, free: 25.48 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.0002884/1.259, allocations: 187.3 kB / 0.5702 GB, free: 25.29 MB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001073/1.259, allocations: 71.25 kB / 0.5703 GB, free: 25.22 MB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001367/1.26, allocations: 0.8222 MB / 0.5711 GB, free: 24.39 MB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.718e-06/1.26, allocations: 8 kB / 0.5711 GB, free: 24.38 MB / 234.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.012e-06/1.26, allocations: 0 / 0.5711 GB, free: 24.38 MB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.544e-06/1.26, allocations: 0 / 0.5711 GB, free: 24.38 MB / 234.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002317/1.263, allocations: 1.63 MB / 0.5727 GB, free: 22.71 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.009e-06/1.263, allocations: 0 / 0.5727 GB, free: 22.71 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004444/1.263, allocations: 111.8 kB / 0.5728 GB, free: 22.6 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001347/1.264, allocations: 328.6 kB / 0.5731 GB, free: 22.27 MB / 234.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.703e-05/1.265, allocations: 15.98 kB / 0.5731 GB, free: 22.26 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005907/1.265, allocations: 0.7943 MB / 0.5739 GB, free: 21.44 MB / 234.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.795e-06/1.265, allocations: 3.938 kB / 0.5739 GB, free: 21.44 MB / 234.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00155/1.267, allocations: 1.243 MB / 0.5751 GB, free: 20.16 MB / 234.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002298/1.267, allocations: 144.3 kB / 0.5753 GB, free: 20 MB / 234.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.464e-05/1.267, allocations: 15.95 kB / 0.5753 GB, free: 19.98 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004503/1.267, allocations: 43.88 kB / 0.5753 GB, free: 19.94 MB / 234.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001152/1.268, allocations: 52.48 kB / 0.5754 GB, free: 19.89 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.294e-05/1.268, allocations: 27.97 kB / 0.5754 GB, free: 19.86 MB / 234.7 MB Notification: Performance of sorting global known variables: time 0.0004808/1.268, allocations: 405.5 kB / 0.5758 GB, free: 19.46 MB / 234.7 MB Notification: Performance of sort global known variables: time 2.1e-07/1.268, allocations: 0 / 0.5758 GB, free: 19.46 MB / 234.7 MB Notification: Performance of remove unused functions: time 0.001346/1.27, allocations: 419.5 kB / 0.5762 GB, free: 19.05 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.0009761/1.27, allocations: 0.5361 MB / 0.5767 GB, free: 18.55 MB / 234.7 MB Notification: Performance of simCode: created initialization part: time 0.001158/1.272, allocations: 0.6599 MB / 0.5773 GB, free: 17.89 MB / 234.7 MB Notification: Performance of simCode: created event and clocks part: time 6.543e-06/1.272, allocations: 7.938 kB / 0.5774 GB, free: 17.88 MB / 234.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005074/1.272, allocations: 365.9 kB / 0.5777 GB, free: 17.53 MB / 234.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001644/1.274, allocations: 370.3 kB / 0.5781 GB, free: 17.17 MB / 234.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002027/1.276, allocations: 1.176 MB / 0.5792 GB, free: 15.99 MB / 234.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004107/1.276, allocations: 0.9745 MB / 0.5802 GB, free: 14.98 MB / 234.7 MB Notification: Performance of simCode: alias equations: time 0.0007346/1.277, allocations: 193.6 kB / 0.5803 GB, free: 14.8 MB / 234.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001647/1.277, allocations: 63.42 kB / 0.5804 GB, free: 14.74 MB / 234.7 MB Notification: Performance of SimCode: time 9.72e-07/1.277, allocations: 4 kB / 0.5804 GB, free: 14.74 MB / 234.7 MB Notification: Performance of Templates: time 0.1969/1.474, allocations: 18.26 MB / 0.5982 GB, free: 37.92 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)