Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.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.TankWithEmptyingPipe2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2") translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2") [: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.8421/0.8421, allocations: 110.8 MB / 118 MB, free: 14.57 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo): time 0.001806/0.001807, allocations: 156 kB / 143.7 MB, free: 4.895 MB / 122.7 MB Notification: Performance of FrontEnd - loaded program: time 8.807e-06/8.847e-06, allocations: 0 / 173.5 MB, free: 23.05 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0549/0.05493, allocations: 25.17 MB / 198.6 MB, free: 13.95 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5698/0.6248, allocations: 237.5 MB / 436.2 MB, free: 65.91 MB / 234.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002175/0.6251, allocations: 65.44 kB / 436.2 MB, free: 65.91 MB / 234.7 MB Notification: Performance of FrontEnd: time 0.5659/1.191, allocations: 176.8 MB / 0.5986 GB, free: 19.89 MB / 234.7 MB Notification: Performance of Transformations before backend: time 7.138e-05/1.191, allocations: 26.86 kB / 0.5987 GB, free: 19.89 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: 160 * Number of variables: 160 Notification: Performance of Generate backend data structure: time 0.002644/1.194, allocations: 1.231 MB / 0.5999 GB, free: 19.33 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.942e-05/1.194, allocations: 6.5 kB / 0.5999 GB, free: 19.33 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002161/1.194, allocations: 105 kB / 0.6 GB, free: 19.28 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001362/1.195, allocations: 0.7424 MB / 0.6007 GB, free: 19.02 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.361e-05/1.196, allocations: 20.78 kB / 0.6007 GB, free: 19.02 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.171e-05/1.196, allocations: 37.75 kB / 0.6008 GB, free: 19.02 MB / 234.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001137/1.197, allocations: 0.8102 MB / 0.6015 GB, free: 19.02 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001156/1.198, allocations: 0.9085 MB / 0.6024 GB, free: 18.84 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.149e-05/1.198, allocations: 0 / 0.6024 GB, free: 18.84 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.556e-05/1.198, allocations: 0 / 0.6024 GB, free: 18.84 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.31e-05/1.198, allocations: 69.67 kB / 0.6025 GB, free: 18.84 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004573/1.203, allocations: 4.283 MB / 0.6067 GB, free: 16.41 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004728/1.203, allocations: 385.4 kB / 0.607 GB, free: 16.39 MB / 234.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003235/1.204, allocations: 287 kB / 0.6073 GB, free: 16.39 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001833/1.205, allocations: 1.979 MB / 0.6093 GB, free: 15.05 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.494e-05/1.205, allocations: 44.7 kB / 0.6093 GB, free: 15.01 MB / 234.7 MB Notification: Performance of pre-optimization done (n=40): time 3.497e-06/1.205, allocations: 0 / 0.6093 GB, free: 15.01 MB / 234.7 MB Notification: Performance of matching and sorting (n=44): time 0.005294/1.211, allocations: 1.707 MB / 0.611 GB, free: 14.59 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.279e-05/1.211, allocations: 165 kB / 0.6111 GB, free: 14.4 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006406/1.211, allocations: 0.5789 MB / 0.6117 GB, free: 14.27 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 4.397e-05/1.211, allocations: 29.58 kB / 0.6117 GB, free: 14.23 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001964/1.212, allocations: 400.7 kB / 0.6121 GB, free: 13.99 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001011/1.212, allocations: 153.6 kB / 0.6122 GB, free: 13.89 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.521e-05/1.212, allocations: 3.281 kB / 0.6122 GB, free: 13.89 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 0.0001046/1.212, allocations: 388.8 kB / 0.6126 GB, free: 13.58 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003365/1.212, allocations: 262 kB / 0.6129 GB, free: 13.58 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004752/1.213, allocations: 0.6101 MB / 0.6135 GB, free: 13.14 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001317/1.214, allocations: 0.4959 MB / 0.6139 GB, free: 13.13 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.539e-06/1.214, allocations: 3.844 kB / 0.614 GB, free: 13.13 MB / 234.7 MB Notification: Performance of matching and sorting (n=108) (initialization): time 0.00213/1.216, allocations: 1.059 MB / 0.615 GB, free: 13.03 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.514e-05/1.216, allocations: 7.75 kB / 0.615 GB, free: 13.03 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.434e-05/1.216, allocations: 10.75 kB / 0.615 GB, free: 13.03 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005337/1.217, allocations: 150.7 kB / 0.6151 GB, free: 13.02 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006129/1.217, allocations: 176.9 kB / 0.6153 GB, free: 13.02 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001637/1.219, allocations: 1.47 MB / 0.6168 GB, free: 11.97 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007419/1.22, allocations: 40.19 kB / 0.6168 GB, free: 11.97 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.308e-05/1.22, allocations: 46.66 kB / 0.6168 GB, free: 11.97 MB / 234.7 MB Warning: Assuming fixed start value for the following 2 variables: 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: 51 * Number of states: 0 () * Number of discrete variables: 6 ($PRE.tank1.aboveLevel[1],tank1.aboveLevel[1],$PRE.tank1.aboveLevel[2],tank1.aboveLevel[2],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 (102): * Single equations (assignments): 100 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 3,1 3} Notification: Performance of prepare postOptimizeDAE: time 0.000225/1.22, allocations: 159 kB / 0.617 GB, free: 11.86 MB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001112/1.22, allocations: 78.19 kB / 0.6171 GB, free: 11.82 MB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002089/1.222, allocations: 0.818 MB / 0.6179 GB, free: 11.73 MB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.562e-06/1.222, allocations: 10.28 kB / 0.6179 GB, free: 11.73 MB / 234.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.47e-06/1.222, allocations: 3.234 kB / 0.6179 GB, free: 11.73 MB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.33e-06/1.222, allocations: 0 / 0.6179 GB, free: 11.73 MB / 234.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00261/1.225, allocations: 1.485 MB / 0.6193 GB, free: 11.42 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.999e-06/1.225, allocations: 2.062 kB / 0.6193 GB, free: 11.42 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003743/1.225, allocations: 78.06 kB / 0.6194 GB, free: 11.42 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000599/1.226, allocations: 154.8 kB / 0.6195 GB, free: 11.41 MB / 234.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.584e-05/1.226, allocations: 3.5 kB / 0.6195 GB, free: 11.41 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001298/1.227, allocations: 1.403 MB / 0.6209 GB, free: 10.36 MB / 234.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.499e-06/1.227, allocations: 9.156 kB / 0.6209 GB, free: 10.36 MB / 234.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001834/1.229, allocations: 1.117 MB / 0.622 GB, free: 10.11 MB / 234.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002516/1.23, allocations: 164.1 kB / 0.6222 GB, free: 9.973 MB / 234.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001531/1.23, allocations: 6.375 kB / 0.6222 GB, free: 9.973 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005108/1.23, allocations: 39.88 kB / 0.6222 GB, free: 9.969 MB / 234.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001193/1.23, allocations: 45.11 kB / 0.6223 GB, free: 9.969 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.847e-05/1.23, allocations: 20.91 kB / 0.6223 GB, free: 9.969 MB / 234.7 MB Notification: Performance of sort global known variables: time 0.000594/1.231, allocations: 437.7 kB / 0.6227 GB, free: 9.879 MB / 234.7 MB Notification: Performance of remove unused functions: time 0.001961/1.233, allocations: 0.502 MB / 0.6232 GB, free: 9.777 MB / 234.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (tank1.medium.T,tank1.level) * Number of discrete variables: 2 (tank1.aboveLevel[1],tank1.aboveLevel[2]) * Number of discrete states: 2 (tank1.aboveLevel[1],tank1.aboveLevel[2]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (42): * Single equations (assignments): 40 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 6,1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.00138/1.234, allocations: 0.6853 MB / 0.6239 GB, free: 9.57 MB / 234.7 MB Notification: Performance of simCode: created initialization part: time 0.001025/1.235, allocations: 0.6483 MB / 0.6245 GB, free: 9.566 MB / 234.7 MB Notification: Performance of simCode: created event and clocks part: time 3.286e-06/1.235, allocations: 0 / 0.6245 GB, free: 9.566 MB / 234.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004407/1.236, allocations: 302.4 kB / 0.6248 GB, free: 9.566 MB / 234.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001428/1.237, allocations: 304.7 kB / 0.6251 GB, free: 9.559 MB / 234.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002456/1.24, allocations: 1.282 MB / 0.6263 GB, free: 9.242 MB / 234.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007062/1.241, allocations: 1.118 MB / 0.6274 GB, free: 24.54 MB / 250.7 MB Notification: Performance of SimCode: time 2.71e-07/1.241, allocations: 2.562 kB / 0.6274 GB, free: 24.54 MB / 250.7 MB Notification: Performance of Templates: time 0.02846/1.269, allocations: 18.57 MB / 0.6456 GB, free: 23.33 MB / 250.7 MB make -j1 -f Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.makefile (rm -f Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.pipe ; mkfifo Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.pipe >> ../files/Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.sim & ./Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.pipe 2>&1)