Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.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.TanksWithEmptyingPipe1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1") translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.1.0+maint.om/package.mo): time 0.8131/0.8131, allocations: 110.8 MB / 118 MB, free: 3.445 MB / 98.76 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo): time 0.001767/0.001767, allocations: 152 kB / 143.7 MB, free: 9.734 MB / 130.8 MB Notification: Performance of FrontEnd - loaded program: time 8.215e-06/8.235e-06, allocations: 4 kB / 173.5 MB, free: 13.66 MB / 130.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05456/0.05458, allocations: 25.18 MB / 198.6 MB, free: 4.438 MB / 146.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5272/0.5818, allocations: 237.7 MB / 436.4 MB, free: 44.25 MB / 226.8 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001792/0.582, allocations: 67.72 kB / 436.4 MB, free: 44.22 MB / 226.8 MB Notification: Performance of FrontEnd: time 0.8049/1.387, allocations: 259.3 MB / 0.6794 GB, free: 21.52 MB / 242.8 MB Notification: Performance of Transformations before backend: time 9.606e-05/1.387, allocations: 39.03 kB / 0.6795 GB, free: 21.51 MB / 242.8 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 250 * Number of variables: 250 Notification: Performance of Generate backend data structure: time 0.003438/1.39, allocations: 1.684 MB / 0.6811 GB, free: 20.7 MB / 242.8 MB Notification: Performance of prepare preOptimizeDAE: time 3.801e-05/1.391, allocations: 10.38 kB / 0.6811 GB, free: 20.7 MB / 242.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00026/1.391, allocations: 155.8 kB / 0.6813 GB, free: 20.63 MB / 242.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001794/1.393, allocations: 1.05 MB / 0.6823 GB, free: 20.29 MB / 242.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.443e-05/1.393, allocations: 36.7 kB / 0.6823 GB, free: 20.29 MB / 242.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001367/1.393, allocations: 54.09 kB / 0.6824 GB, free: 20.29 MB / 242.8 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001722/1.395, allocations: 1.302 MB / 0.6837 GB, free: 20.28 MB / 242.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001729/1.396, allocations: 1.395 MB / 0.685 GB, free: 20.04 MB / 242.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.576e-05/1.396, allocations: 5.781 kB / 0.685 GB, free: 20.04 MB / 242.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001126/1.396, allocations: 3.906 kB / 0.685 GB, free: 20.04 MB / 242.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.171e-05/1.397, allocations: 105.8 kB / 0.6851 GB, free: 20.04 MB / 242.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006603/1.403, allocations: 6.236 MB / 0.6912 GB, free: 16.75 MB / 242.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007732/1.404, allocations: 0.626 MB / 0.6918 GB, free: 16.73 MB / 242.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005706/1.404, allocations: 0.511 MB / 0.6923 GB, free: 16.73 MB / 242.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002864/1.407, allocations: 2.743 MB / 0.695 GB, free: 15.18 MB / 242.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.817e-05/1.407, allocations: 44.22 kB / 0.6951 GB, free: 15.14 MB / 242.8 MB Notification: Performance of pre-optimization done (n=80): time 2.084e-06/1.407, allocations: 0 / 0.6951 GB, free: 15.14 MB / 242.8 MB Notification: Performance of matching and sorting (n=88): time 0.009272/1.417, allocations: 3.106 MB / 0.6981 GB, free: 14.59 MB / 242.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.318e-05/1.417, allocations: 195.1 kB / 0.6983 GB, free: 14.37 MB / 242.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009886/1.418, allocations: 0.7986 MB / 0.6991 GB, free: 14.21 MB / 242.8 MB Notification: Performance of collectPreVariables (initialization): time 8.297e-05/1.418, allocations: 31.33 kB / 0.6991 GB, free: 14.18 MB / 242.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003034/1.418, allocations: 0.5028 MB / 0.6996 GB, free: 13.86 MB / 242.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002207/1.418, allocations: 306.1 kB / 0.6999 GB, free: 13.67 MB / 242.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.258e-05/1.418, allocations: 0 / 0.6999 GB, free: 13.67 MB / 242.8 MB Notification: Performance of setup shared object (initialization): time 7.653e-05/1.419, allocations: 366.3 kB / 0.7002 GB, free: 13.37 MB / 242.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006308/1.419, allocations: 494.5 kB / 0.7007 GB, free: 13.36 MB / 242.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008182/1.42, allocations: 0.9451 MB / 0.7016 GB, free: 12.8 MB / 242.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00246/1.422, allocations: 0.8485 MB / 0.7024 GB, free: 12.79 MB / 242.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.344e-06/1.423, allocations: 9.406 kB / 0.7025 GB, free: 12.79 MB / 242.8 MB Notification: Performance of matching and sorting (n=174) (initialization): time 0.004043/1.427, allocations: 1.854 MB / 0.7043 GB, free: 12.65 MB / 242.8 MB Notification: Performance of prepare postOptimizeDAE: time 1.618e-05/1.427, allocations: 6.875 kB / 0.7043 GB, free: 12.65 MB / 242.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.814e-05/1.427, allocations: 16.19 kB / 0.7043 GB, free: 12.65 MB / 242.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009739/1.428, allocations: 320.9 kB / 0.7046 GB, free: 12.62 MB / 242.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001019/1.429, allocations: 274.9 kB / 0.7049 GB, free: 12.62 MB / 242.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003136/1.432, allocations: 2.43 MB / 0.7072 GB, free: 11.06 MB / 242.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001261/1.433, allocations: 81.61 kB / 0.7073 GB, free: 11.05 MB / 242.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001166/1.433, allocations: 69.58 kB / 0.7074 GB, free: 11.05 MB / 242.8 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 = 293.15 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 = 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: 64 * Number of states: 0 () * Number of discrete variables: 12 ($PRE.tank1.aboveLevel[1],tank1.aboveLevel[1],$PRE.tank1.aboveLevel[2],tank1.aboveLevel[2],$PRE.tank2.aboveLevel[1],tank2.aboveLevel[1],$PRE.tank2.aboveLevel[2],tank2.aboveLevel[2],tank2.ports_m_flow_out[2],tank2.ports_m_flow_out[1],tank1.ports_m_flow_out[2],tank1.ports_m_flow_out[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (160): * Single equations (assignments): 157 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {1 3,2 7,1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0003125/1.433, allocations: 179.6 kB / 0.7075 GB, free: 10.94 MB / 242.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001715/1.434, allocations: 123.4 kB / 0.7077 GB, free: 10.88 MB / 242.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00381/1.437, allocations: 1.588 MB / 0.7092 GB, free: 10.76 MB / 242.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.648e-06/1.438, allocations: 10.06 kB / 0.7092 GB, free: 10.76 MB / 242.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.616e-06/1.438, allocations: 3.938 kB / 0.7092 GB, free: 10.76 MB / 242.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.346e-05/1.438, allocations: 10.64 kB / 0.7092 GB, free: 10.76 MB / 242.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005063/1.443, allocations: 2.645 MB / 0.7118 GB, free: 10.39 MB / 242.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.079e-06/1.443, allocations: 5.25 kB / 0.7118 GB, free: 10.39 MB / 242.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006911/1.443, allocations: 153.7 kB / 0.712 GB, free: 10.39 MB / 242.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001063/1.444, allocations: 315.4 kB / 0.7123 GB, free: 10.37 MB / 242.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.713e-05/1.444, allocations: 16.47 kB / 0.7123 GB, free: 10.37 MB / 242.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002355/1.447, allocations: 2.274 MB / 0.7145 GB, free: 8.805 MB / 242.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.799e-06/1.447, allocations: 3.906 kB / 0.7145 GB, free: 8.801 MB / 242.8 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00347/1.45, allocations: 2.167 MB / 0.7166 GB, free: 8.449 MB / 242.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003219/1.451, allocations: 196.5 kB / 0.7168 GB, free: 8.289 MB / 242.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002192/1.451, allocations: 8.109 kB / 0.7168 GB, free: 8.289 MB / 242.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000837/1.452, allocations: 61.58 kB / 0.7169 GB, free: 8.281 MB / 242.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002198/1.452, allocations: 98.14 kB / 0.717 GB, free: 8.281 MB / 242.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.738e-05/1.452, allocations: 31.88 kB / 0.717 GB, free: 8.281 MB / 242.8 MB Notification: Performance of sort global known variables: time 0.0007907/1.453, allocations: 0.5957 MB / 0.7176 GB, free: 8.172 MB / 242.8 MB Notification: Performance of remove unused functions: time 0.002653/1.456, allocations: 0.7187 MB / 0.7183 GB, free: 8.039 MB / 242.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 4 (tank1.medium.T,tank1.level,tank2.medium.T,tank2.level) * Number of discrete variables: 4 (tank1.aboveLevel[1],tank1.aboveLevel[2],tank2.aboveLevel[1],tank2.aboveLevel[2]) * Number of discrete states: 4 (tank1.aboveLevel[1],tank1.aboveLevel[2],tank2.aboveLevel[1],tank2.aboveLevel[2]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (82): * Single equations (assignments): 79 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {2 12,1 6,1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.001885/1.457, allocations: 0.9308 MB / 0.7192 GB, free: 7.766 MB / 242.8 MB Notification: Performance of simCode: created initialization part: time 0.001949/1.459, allocations: 1.235 MB / 0.7204 GB, free: 7.723 MB / 242.8 MB Notification: Performance of simCode: created event and clocks part: time 3.066e-06/1.459, allocations: 0 / 0.7204 GB, free: 7.723 MB / 242.8 MB Notification: Performance of simCode: created simulation system equations: time 0.0009546/1.46, allocations: 0.649 MB / 0.721 GB, free: 7.691 MB / 242.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00215/1.463, allocations: 0.496 MB / 0.7215 GB, free: 7.676 MB / 242.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004239/1.467, allocations: 2.111 MB / 0.7236 GB, free: 7.199 MB / 242.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001254/1.468, allocations: 1.393 MB / 0.7249 GB, free: 6.477 MB / 242.8 MB Notification: Performance of SimCode: time 4.61e-07/1.468, allocations: 0 / 0.7249 GB, free: 6.477 MB / 242.8 MB Notification: Performance of Templates: time 0.1508/1.619, allocations: 30.03 MB / 0.7543 GB, free: 37.34 MB / 242.8 MB make -j1 -f Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.makefile (rm -f Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.pipe ; mkfifo Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.pipe >> ../files/Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.sim & ./Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.pipe 2>&1)