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.8701/0.8701, allocations: 110.9 MB / 125.9 MB, free: 6.219 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo): time 0.001744/0.001744, allocations: 139.4 kB / 151.8 MB, free: 5 MB / 122.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003317/0.0003318, allocations: 4 kB / 184.9 MB, free: 3.922 MB / 154.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1827/0.183, allocations: 25.15 MB / 210.1 MB, free: 29.76 MB / 170.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4855/0.6686, allocations: 236.8 MB / 446.8 MB, free: 32.05 MB / 234.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002474/0.6689, allocations: 68.53 kB / 446.9 MB, free: 31.98 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5398/1.209, allocations: 128.6 MB / 0.562 GB, free: 34.36 MB / 234.7 MB Notification: Performance of FrontEnd: time 2.224e-06/1.209, allocations: 0 / 0.562 GB, free: 34.36 MB / 234.7 MB Notification: Performance of Transformations before backend: time 6.341e-05/1.209, allocations: 25.56 kB / 0.562 GB, free: 34.36 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.002385/1.211, allocations: 1.086 MB / 0.5631 GB, free: 33.84 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.563e-05/1.211, allocations: 9.906 kB / 0.5631 GB, free: 33.84 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001541/1.211, allocations: 74.62 kB / 0.5631 GB, free: 33.8 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009599/1.212, allocations: 0.5523 MB / 0.5637 GB, free: 33.57 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.108e-05/1.212, allocations: 35.95 kB / 0.5637 GB, free: 33.57 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.884e-05/1.213, allocations: 53.5 kB / 0.5638 GB, free: 33.57 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001043/1.214, allocations: 0.7055 MB / 0.5645 GB, free: 33.45 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.115e-05/1.214, allocations: 3 kB / 0.5645 GB, free: 33.45 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.417e-05/1.214, allocations: 21.58 kB / 0.5645 GB, free: 33.45 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.832e-05/1.214, allocations: 45.02 kB / 0.5645 GB, free: 33.45 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008844/1.215, allocations: 0.6316 MB / 0.5651 GB, free: 33.45 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003471/1.218, allocations: 2.805 MB / 0.5679 GB, free: 31.99 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007258/1.219, allocations: 469.7 kB / 0.5683 GB, free: 31.96 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003576/1.219, allocations: 424.8 kB / 0.5687 GB, free: 31.5 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.308e-05/1.219, allocations: 35.67 kB / 0.5688 GB, free: 31.46 MB / 234.7 MB Notification: Performance of pre-optimization done (n=48): time 3.577e-06/1.219, allocations: 3.219 kB / 0.5688 GB, free: 31.46 MB / 234.7 MB Notification: Performance of matching and sorting (n=56): time 0.005017/1.224, allocations: 2.2 MB / 0.5709 GB, free: 30.96 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.474e-05/1.224, allocations: 81.61 kB / 0.571 GB, free: 30.87 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000661/1.225, allocations: 0.5107 MB / 0.5715 GB, free: 30.76 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 6.259e-05/1.225, allocations: 40.97 kB / 0.5715 GB, free: 30.73 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002423/1.225, allocations: 321.2 kB / 0.5718 GB, free: 30.59 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001647/1.226, allocations: 191.6 kB / 0.572 GB, free: 30.49 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.316e-05/1.226, allocations: 14.28 kB / 0.572 GB, free: 30.49 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 0.0001435/1.226, allocations: 379.4 kB / 0.5724 GB, free: 30.18 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003863/1.226, allocations: 261.5 kB / 0.5726 GB, free: 30.18 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005244/1.227, allocations: 432 kB / 0.5731 GB, free: 30 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006481/1.227, allocations: 327 kB / 0.5734 GB, free: 30 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.66e-06/1.227, allocations: 1.844 kB / 0.5734 GB, free: 30 MB / 234.7 MB Notification: Performance of matching and sorting (n=86) (initialization): time 0.001689/1.229, allocations: 0.884 MB / 0.5742 GB, free: 29.91 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.812e-05/1.229, allocations: 6.75 kB / 0.5742 GB, free: 29.91 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.534e-05/1.229, allocations: 4.906 kB / 0.5742 GB, free: 29.91 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001934/1.231, allocations: 354 kB / 0.5746 GB, free: 29.9 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000633/1.232, allocations: 141.4 kB / 0.5747 GB, free: 29.9 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001013/1.233, allocations: 0.8034 MB / 0.5755 GB, free: 29.38 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006941/1.233, allocations: 55.67 kB / 0.5756 GB, free: 29.38 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.399e-05/1.234, allocations: 27.48 kB / 0.5756 GB, free: 29.38 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" fixed = true 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" fixed = true nominal = 300.0 stateSelect=StateSelect.prefer ) "Temperature of medium" type: Real tank1.level:VARIABLE(min = 0.0 start = tank1.level_start unit = "m" fixed = true 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" fixed = true 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 () * Number of clocked 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.0006194/1.234, allocations: 275.4 kB / 0.5758 GB, free: 29.26 MB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001422/1.234, allocations: 77.03 kB / 0.5759 GB, free: 29.22 MB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001376/1.236, allocations: 0.8288 MB / 0.5767 GB, free: 29.14 MB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.382e-06/1.236, allocations: 10.81 kB / 0.5767 GB, free: 29.14 MB / 234.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.052e-06/1.236, allocations: 0 / 0.5767 GB, free: 29.14 MB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.085e-06/1.236, allocations: 6.391 kB / 0.5767 GB, free: 29.14 MB / 234.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002752/1.239, allocations: 1.64 MB / 0.5783 GB, free: 28.8 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.328e-06/1.239, allocations: 1.594 kB / 0.5783 GB, free: 28.8 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000471/1.239, allocations: 105 kB / 0.5784 GB, free: 28.8 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001443/1.24, allocations: 339.2 kB / 0.5788 GB, free: 28.79 MB / 234.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.315e-05/1.241, allocations: 18.52 kB / 0.5788 GB, free: 28.79 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006594/1.241, allocations: 0.7909 MB / 0.5796 GB, free: 28.27 MB / 234.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.974e-06/1.241, allocations: 0 / 0.5796 GB, free: 28.27 MB / 234.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002034/1.243, allocations: 1.249 MB / 0.5808 GB, free: 28.02 MB / 234.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003284/1.244, allocations: 150.7 kB / 0.5809 GB, free: 27.89 MB / 234.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001126/1.244, allocations: 15.88 kB / 0.5809 GB, free: 27.89 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005536/1.244, allocations: 38.45 kB / 0.581 GB, free: 27.89 MB / 234.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001481/1.244, allocations: 60.38 kB / 0.581 GB, free: 27.88 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.821e-05/1.245, allocations: 25.83 kB / 0.5811 GB, free: 27.88 MB / 234.7 MB Notification: Performance of sorting global known variables: time 0.000723/1.245, allocations: 416.5 kB / 0.5815 GB, free: 27.8 MB / 234.7 MB Notification: Performance of sort global known variables: time 1.4e-07/1.245, allocations: 0.9688 kB / 0.5815 GB, free: 27.8 MB / 234.7 MB Notification: Performance of remove unused functions: time 0.002002/1.247, allocations: 416.9 kB / 0.5819 GB, free: 27.72 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]) * Number of clocked states: 0 () * 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.00116/1.248, allocations: 0.5386 MB / 0.5824 GB, free: 27.55 MB / 234.7 MB Notification: Performance of simCode: created initialization part: time 0.001589/1.25, allocations: 0.6751 MB / 0.583 GB, free: 27.54 MB / 234.7 MB Notification: Performance of simCode: created event and clocks part: time 6.242e-06/1.25, allocations: 1.188 kB / 0.583 GB, free: 27.54 MB / 234.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007603/1.251, allocations: 372.6 kB / 0.5834 GB, free: 27.54 MB / 234.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00184/1.253, allocations: 359.9 kB / 0.5837 GB, free: 27.53 MB / 234.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002648/1.255, allocations: 1.839 MB / 0.5855 GB, free: 26.83 MB / 234.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003992/1.256, allocations: 0.9772 MB / 0.5865 GB, free: 26.13 MB / 234.7 MB Notification: Performance of simCode: alias equations: time 0.0008009/1.257, allocations: 194.5 kB / 0.5867 GB, free: 26.12 MB / 234.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001728/1.257, allocations: 68.31 kB / 0.5867 GB, free: 26.12 MB / 234.7 MB Notification: Performance of SimCode: time 1.253e-06/1.257, allocations: 0 / 0.5867 GB, free: 26.12 MB / 234.7 MB Notification: Performance of Templates: time 0.02777/1.285, allocations: 17.97 MB / 0.6043 GB, free: 25.01 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)