Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+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.2.2_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.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank") [: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/Complex 3.2.2+maint.om/package.mo): time 0.001045/0.001045, allocations: 192.1 kB / 8.139 MB, free: 2.215 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.093/1.093, allocations: 194.2 MB / 202.8 MB, free: 8.816 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001796/0.001796, allocations: 117.3 kB / 247.7 MB, free: 6.285 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 8.316e-06/8.346e-06, allocations: 4 kB / 297.6 MB, free: 8.008 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07477/0.07479, allocations: 44.48 MB / 342.1 MB, free: 11.41 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5433/0.6181, allocations: 320.7 MB / 0.6472 GB, free: 6.008 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002398/0.6184, allocations: 87.06 kB / 0.6473 GB, free: 5.965 MB / 394.7 MB Notification: Performance of FrontEnd: time 0.4519/1.07, allocations: 141 MB / 0.785 GB, free: 16.88 MB / 394.7 MB Notification: Performance of Transformations before backend: time 7.113e-05/1.07, allocations: 22.89 kB / 0.785 GB, free: 16.86 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 126 * Number of variables: 126 Notification: Performance of Generate backend data structure: time 0.002446/1.073, allocations: 1.069 MB / 0.786 GB, free: 15.75 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.452e-05/1.073, allocations: 8.031 kB / 0.786 GB, free: 15.74 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005453/1.074, allocations: 98.95 kB / 0.7861 GB, free: 15.64 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001611/1.075, allocations: 0.6514 MB / 0.7868 GB, free: 14.96 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.375e-05/1.075, allocations: 80.41 kB / 0.7869 GB, free: 14.87 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001109/1.075, allocations: 28 kB / 0.7869 GB, free: 14.84 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0009718/1.076, allocations: 0.6032 MB / 0.7875 GB, free: 14.23 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001034/1.077, allocations: 0.7374 MB / 0.7882 GB, free: 13.45 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.164e-05/1.077, allocations: 3.938 kB / 0.7882 GB, free: 13.44 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.975e-05/1.077, allocations: 4 kB / 0.7882 GB, free: 13.44 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.415e-05/1.078, allocations: 40.97 kB / 0.7882 GB, free: 13.4 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004386/1.082, allocations: 3.339 MB / 0.7915 GB, free: 9.887 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003991/1.082, allocations: 310.3 kB / 0.7918 GB, free: 9.574 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002843/1.083, allocations: 229.1 kB / 0.792 GB, free: 9.348 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001661/1.084, allocations: 1.339 MB / 0.7933 GB, free: 7.879 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003299/1.085, allocations: 289.8 kB / 0.7936 GB, free: 7.582 MB / 394.7 MB Notification: Performance of pre-optimization done (n=35): time 2.475e-06/1.085, allocations: 0 / 0.7936 GB, free: 7.582 MB / 394.7 MB Notification: Performance of matching and sorting (n=40): time 0.002823/1.087, allocations: 1.313 MB / 0.7949 GB, free: 6.215 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.91e-05/1.088, allocations: 166.4 kB / 0.795 GB, free: 6.016 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005504/1.088, allocations: 0.5346 MB / 0.7956 GB, free: 5.473 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 4.404e-05/1.088, allocations: 25.7 kB / 0.7956 GB, free: 5.441 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001537/1.088, allocations: 339.1 kB / 0.7959 GB, free: 5.102 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.717e-05/1.088, allocations: 130.1 kB / 0.796 GB, free: 4.973 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.57e-05/1.088, allocations: 0 / 0.796 GB, free: 4.973 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 9.206e-05/1.089, allocations: 386.8 kB / 0.7964 GB, free: 4.586 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003285/1.089, allocations: 237.5 kB / 0.7966 GB, free: 4.355 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004144/1.089, allocations: 0.5185 MB / 0.7971 GB, free: 3.703 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00346/1.093, allocations: 0.8014 MB / 0.7979 GB, free: 2.902 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.514e-06/1.093, allocations: 4 kB / 0.7979 GB, free: 2.898 MB / 394.7 MB Notification: Performance of matching and sorting (n=93) (initialization): time 0.0043/1.097, allocations: 1.334 MB / 0.7992 GB, free: 1.559 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.1318/1.229, allocations: 3.468 MB / 0.8026 GB, free: 107.9 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.584e-05/1.229, allocations: 10.38 kB / 0.8026 GB, free: 107.9 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005539/1.23, allocations: 111.5 kB / 0.8027 GB, free: 107.9 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006454/1.23, allocations: 152.2 kB / 0.8029 GB, free: 107.9 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007677/1.231, allocations: 0.7162 MB / 0.8036 GB, free: 107.4 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007495/1.232, allocations: 32.84 kB / 0.8036 GB, free: 107.4 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.889e-05/1.232, allocations: 45.08 kB / 0.8036 GB, free: 107.4 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.694e-06/1.232, allocations: 7.125 kB / 0.8037 GB, free: 107.4 MB / 394.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004182/1.236, allocations: 1.204 MB / 0.8048 GB, free: 107.4 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.706e-06/1.236, allocations: 10.66 kB / 0.8048 GB, free: 107.4 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003505/1.236, allocations: 107.3 kB / 0.8049 GB, free: 107.4 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004857/1.237, allocations: 151.8 kB / 0.8051 GB, free: 107.4 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004256/1.237, allocations: 0.6674 MB / 0.8057 GB, free: 106.8 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005825/1.238, allocations: 30.27 kB / 0.8058 GB, free: 106.8 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.996e-05/1.238, allocations: 44.52 kB / 0.8058 GB, free: 106.8 MB / 394.7 MB Warning: Assuming fixed start value for the following 2 variables: tank.level:VARIABLE(start = tank.level_start unit = "m" 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" 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: 11 ($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,timeTable.nextEventScaled) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (84): * Single equations (assignments): 82 * 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.0002761/1.238, allocations: 183.7 kB / 0.806 GB, free: 106.7 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001/1.238, allocations: 68.38 kB / 0.806 GB, free: 106.7 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001341/1.24, allocations: 0.6137 MB / 0.8066 GB, free: 106.7 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.372e-06/1.24, allocations: 3.875 kB / 0.8067 GB, free: 106.7 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.42e-06/1.24, allocations: 0 / 0.8067 GB, free: 106.7 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.552e-06/1.24, allocations: 3.703 kB / 0.8067 GB, free: 106.7 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002/1.242, allocations: 1.241 MB / 0.8079 GB, free: 106.4 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.727e-06/1.242, allocations: 3.938 kB / 0.8079 GB, free: 106.4 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000314/1.242, allocations: 61.95 kB / 0.8079 GB, free: 106.4 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003435/1.242, allocations: 106 kB / 0.808 GB, free: 106.4 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.851e-05/1.243, allocations: 7.406 kB / 0.808 GB, free: 106.4 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005588/1.243, allocations: 0.6929 MB / 0.8087 GB, free: 105.9 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.525e-06/1.243, allocations: 0 / 0.8087 GB, free: 105.9 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001257/1.244, allocations: 0.9488 MB / 0.8096 GB, free: 105.7 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001446/1.245, allocations: 140.9 kB / 0.8098 GB, free: 105.6 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000137/1.245, allocations: 10.64 kB / 0.8098 GB, free: 105.6 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004806/1.245, allocations: 28.83 kB / 0.8098 GB, free: 105.6 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.85e-05/1.245, allocations: 34.03 kB / 0.8098 GB, free: 105.6 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.64e-05/1.245, allocations: 21.61 kB / 0.8099 GB, free: 105.6 MB / 394.7 MB Notification: Performance of sort global known variables: time 0.0004128/1.246, allocations: 408.8 kB / 0.8103 GB, free: 105.5 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001874/1.248, allocations: 0.5169 MB / 0.8108 GB, free: 105.5 MB / 394.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: 8 ($whenCondition1,tank.ports_m_flow_out[1],tank.aboveLevel[1],timeTable.a,timeTable.b,timeTable.last,timeTable.nextEvent,timeTable.nextEventScaled) * Number of discrete states: 8 (tank.aboveLevel[1],tank.ports_m_flow_out[1],timeTable.nextEvent,timeTable.last,timeTable.nextEventScaled,timeTable.b,timeTable.a,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (32): * Single equations (assignments): 30 * 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.001176/1.249, allocations: 0.5769 MB / 0.8113 GB, free: 105.4 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001686/1.25, allocations: 0.997 MB / 0.8123 GB, free: 105.3 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.126e-06/1.251, allocations: 0 / 0.8123 GB, free: 105.3 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004267/1.251, allocations: 288.7 kB / 0.8126 GB, free: 105.3 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001157/1.252, allocations: 236.5 kB / 0.8128 GB, free: 105.3 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00227/1.254, allocations: 1.094 MB / 0.8139 GB, free: 105 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006118/1.255, allocations: 1.043 MB / 0.8149 GB, free: 104.3 MB / 394.7 MB Notification: Performance of SimCode: time 6.01e-07/1.255, allocations: 3.172 kB / 0.8149 GB, free: 104.3 MB / 394.7 MB Notification: Performance of Templates: time 0.02929/1.284, allocations: 17.4 MB / 0.8319 GB, free: 104 MB / 394.7 MB make -j1 -f Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.makefile (rm -f Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.pipe ; mkfifo Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.pipe >> ../files/Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.sim & ./Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.pipe 2>&1)