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.8936/0.8936, allocations: 110.9 MB / 125.9 MB, free: 6.211 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo): time 0.001721/0.00172, allocations: 142.6 kB / 151.8 MB, free: 5 MB / 122.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002866/0.0002867, allocations: 4 kB / 184.9 MB, free: 3.926 MB / 154.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1842/0.1845, allocations: 25.15 MB / 210.1 MB, free: 29.77 MB / 170.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5209/0.7055, allocations: 239.6 MB / 449.6 MB, free: 29.26 MB / 234.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002612/0.7058, allocations: 71.97 kB / 449.7 MB, free: 29.19 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5615/1.267, allocations: 131.6 MB / 0.5677 GB, free: 36 MB / 234.7 MB Notification: Performance of FrontEnd: time 3.095e-06/1.267, allocations: 3.844 kB / 0.5677 GB, free: 36 MB / 234.7 MB Notification: Performance of Transformations before backend: time 7.238e-05/1.267, allocations: 18.25 kB / 0.5677 GB, free: 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: 122 * Number of variables: 122 Notification: Performance of Generate backend data structure: time 0.002771/1.27, allocations: 1.125 MB / 0.5688 GB, free: 35.41 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.045e-05/1.27, allocations: 11.89 kB / 0.5688 GB, free: 35.41 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002363/1.271, allocations: 90.22 kB / 0.5689 GB, free: 35.37 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001449/1.272, allocations: 0.6193 MB / 0.5695 GB, free: 35.12 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000151/1.272, allocations: 88.12 kB / 0.5696 GB, free: 35.06 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001247/1.272, allocations: 42.94 kB / 0.5696 GB, free: 35.06 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001768/1.274, allocations: 0.7688 MB / 0.5704 GB, free: 34.89 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.019e-05/1.274, allocations: 3.438 kB / 0.5704 GB, free: 34.89 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.57e-05/1.274, allocations: 29.28 kB / 0.5704 GB, free: 34.89 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.742e-05/1.274, allocations: 39.75 kB / 0.5704 GB, free: 34.89 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001387/1.276, allocations: 0.6206 MB / 0.571 GB, free: 34.89 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004842/1.281, allocations: 3.601 MB / 0.5745 GB, free: 32.59 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005946/1.281, allocations: 394.2 kB / 0.5749 GB, free: 32.57 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001623/1.283, allocations: 1.348 MB / 0.5762 GB, free: 31.62 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004159/1.283, allocations: 275.7 kB / 0.5765 GB, free: 31.54 MB / 234.7 MB Notification: Performance of pre-optimization done (n=33): time 3.326e-06/1.283, allocations: 3.062 kB / 0.5765 GB, free: 31.54 MB / 234.7 MB Notification: Performance of matching and sorting (n=37): time 0.003741/1.287, allocations: 1.813 MB / 0.5783 GB, free: 30.86 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.858e-05/1.287, allocations: 161.8 kB / 0.5784 GB, free: 30.67 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008584/1.288, allocations: 0.5893 MB / 0.579 GB, free: 30.53 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 4.961e-05/1.288, allocations: 36.7 kB / 0.579 GB, free: 30.5 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003222/1.288, allocations: 410.5 kB / 0.5794 GB, free: 30.29 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001124/1.289, allocations: 130.4 kB / 0.5796 GB, free: 30.21 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.461e-05/1.289, allocations: 14.59 kB / 0.5796 GB, free: 30.21 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 0.0001374/1.289, allocations: 382.1 kB / 0.5799 GB, free: 29.9 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003751/1.289, allocations: 232.5 kB / 0.5802 GB, free: 29.9 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005527/1.29, allocations: 0.512 MB / 0.5807 GB, free: 29.56 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005089/1.29, allocations: 333.4 kB / 0.581 GB, free: 29.52 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.502e-06/1.29, allocations: 2.344 kB / 0.581 GB, free: 29.52 MB / 234.7 MB Notification: Performance of matching and sorting (n=87) (initialization): time 0.001765/1.292, allocations: 0.9488 MB / 0.5819 GB, free: 29.4 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.583e-05/1.292, allocations: 43.8 kB / 0.5819 GB, free: 29.37 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.89e-05/1.292, allocations: 8.438 kB / 0.582 GB, free: 29.37 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006386/1.293, allocations: 125 kB / 0.5821 GB, free: 29.36 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005067/1.293, allocations: 143.5 kB / 0.5822 GB, free: 29.36 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005368/1.294, allocations: 0.666 MB / 0.5829 GB, free: 28.84 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006669/1.294, allocations: 51.44 kB / 0.5829 GB, free: 28.84 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.009e-05/1.295, allocations: 37.06 kB / 0.5829 GB, free: 28.84 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" fixed = true 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" 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: 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 () * Number of clocked 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.0005713/1.295, allocations: 316.4 kB / 0.5832 GB, free: 28.69 MB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.164e-05/1.295, allocations: 76.27 kB / 0.5833 GB, free: 28.65 MB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001252/1.296, allocations: 0.69 MB / 0.584 GB, free: 28.55 MB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.412e-06/1.297, allocations: 3.844 kB / 0.584 GB, free: 28.55 MB / 234.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.135e-06/1.297, allocations: 3.953 kB / 0.584 GB, free: 28.55 MB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.814e-06/1.297, allocations: 1.828 kB / 0.584 GB, free: 28.55 MB / 234.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002048/1.299, allocations: 1.348 MB / 0.5853 GB, free: 28.2 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.497e-06/1.299, allocations: 3.609 kB / 0.5853 GB, free: 28.2 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002775/1.299, allocations: 57.19 kB / 0.5854 GB, free: 28.2 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004878/1.299, allocations: 122.4 kB / 0.5855 GB, free: 28.19 MB / 234.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.652e-05/1.299, allocations: 14.39 kB / 0.5855 GB, free: 28.19 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004656/1.3, allocations: 0.6527 MB / 0.5861 GB, free: 27.67 MB / 234.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.476e-06/1.3, allocations: 9.203 kB / 0.5862 GB, free: 27.67 MB / 234.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001331/1.301, allocations: 1.016 MB / 0.5871 GB, free: 27.43 MB / 234.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002135/1.301, allocations: 135.6 kB / 0.5873 GB, free: 27.3 MB / 234.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000105/1.302, allocations: 15.88 kB / 0.5873 GB, free: 27.3 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003876/1.302, allocations: 32.8 kB / 0.5873 GB, free: 27.3 MB / 234.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001089/1.302, allocations: 34.95 kB / 0.5874 GB, free: 27.3 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.893e-05/1.302, allocations: 21.95 kB / 0.5874 GB, free: 27.3 MB / 234.7 MB Notification: Performance of sorting global known variables: time 0.0005328/1.303, allocations: 463.9 kB / 0.5878 GB, free: 27.21 MB / 234.7 MB Notification: Performance of sort global known variables: time 1.81e-07/1.303, allocations: 1.812 kB / 0.5878 GB, free: 27.21 MB / 234.7 MB Notification: Performance of remove unused functions: time 0.001532/1.304, allocations: 373.3 kB / 0.5882 GB, free: 27.14 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) * Number of clocked states: 0 () * 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.001146/1.305, allocations: 0.5359 MB / 0.5887 GB, free: 26.98 MB / 234.7 MB Notification: Performance of simCode: created initialization part: time 0.001205/1.307, allocations: 0.6351 MB / 0.5893 GB, free: 26.91 MB / 234.7 MB Notification: Performance of simCode: created event and clocks part: time 3.386e-06/1.307, allocations: 7.344 kB / 0.5893 GB, free: 26.91 MB / 234.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005439/1.307, allocations: 315.2 kB / 0.5896 GB, free: 26.84 MB / 234.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001276/1.308, allocations: 271.1 kB / 0.5899 GB, free: 26.84 MB / 234.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00272/1.311, allocations: 1.701 MB / 0.5915 GB, free: 26.16 MB / 234.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000476/1.312, allocations: 0.9725 MB / 0.5925 GB, free: 25.46 MB / 234.7 MB Notification: Performance of simCode: alias equations: time 0.0006414/1.312, allocations: 164.6 kB / 0.5927 GB, free: 25.46 MB / 234.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001357/1.313, allocations: 55.11 kB / 0.5927 GB, free: 25.45 MB / 234.7 MB Notification: Performance of SimCode: time 9.51e-07/1.313, allocations: 2.344 kB / 0.5927 GB, free: 25.45 MB / 234.7 MB Notification: Performance of Templates: time 0.0269/1.339, allocations: 13.89 MB / 0.6063 GB, free: 24.64 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)