Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+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.2.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.2.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/Complex 3.2.1+maint.om/package.mo): time 0.005848/0.005848, allocations: 183.2 kB / 7.457 MB, free: 2.516 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.402/1.402, allocations: 170.6 MB / 178.4 MB, free: 15.4 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.001824/0.001824, allocations: 111.9 kB / 217.7 MB, free: 8.164 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 9.508e-06/9.528e-06, allocations: 0 / 261.8 MB, free: 26.65 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09731/0.09734, allocations: 38.76 MB / 300.5 MB, free: 3.895 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.7737/0.8711, allocations: 313.2 MB / 0.5994 GB, free: 124.6 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002078/0.8713, allocations: 83.27 kB / 0.5994 GB, free: 124.6 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.5906/1.462, allocations: 189.7 MB / 0.7847 GB, free: 61.64 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0001987/1.462, allocations: 34.25 kB / 0.7847 GB, free: 61.63 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 164 * Number of variables: 164 Notification: Performance of Generate backend data structure: time 0.005551/1.468, allocations: 1.295 MB / 0.786 GB, free: 60.77 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.771e-05/1.468, allocations: 7.906 kB / 0.786 GB, free: 60.77 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009201/1.469, allocations: 113.7 kB / 0.7861 GB, free: 60.72 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002558/1.471, allocations: 0.7808 MB / 0.7869 GB, free: 60.18 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.566e-05/1.471, allocations: 21.12 kB / 0.7869 GB, free: 60.18 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003172/1.472, allocations: 35.59 kB / 0.7869 GB, free: 60.18 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001971/1.474, allocations: 0.9223 MB / 0.7878 GB, free: 59.75 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001731/1.475, allocations: 0.9649 MB / 0.7888 GB, free: 59.16 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.631e-05/1.475, allocations: 5.312 kB / 0.7888 GB, free: 59.16 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001276/1.476, allocations: 2.719 kB / 0.7888 GB, free: 59.16 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.886e-05/1.476, allocations: 72.81 kB / 0.7888 GB, free: 59.14 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007729/1.483, allocations: 4.275 MB / 0.793 GB, free: 55.61 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006262/1.484, allocations: 400.3 kB / 0.7934 GB, free: 55.42 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004572/1.485, allocations: 292.3 kB / 0.7937 GB, free: 55.28 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002674/1.487, allocations: 1.954 MB / 0.7956 GB, free: 53.53 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.384e-05/1.487, allocations: 41.58 kB / 0.7956 GB, free: 53.48 MB / 346.7 MB Notification: Performance of pre-optimization done (n=40): time 2.775e-06/1.487, allocations: 0 / 0.7956 GB, free: 53.48 MB / 346.7 MB Notification: Performance of matching and sorting (n=45): time 0.006674/1.494, allocations: 1.775 MB / 0.7973 GB, free: 52.44 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.819e-05/1.494, allocations: 163.2 kB / 0.7975 GB, free: 52.25 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001328/1.496, allocations: 0.6147 MB / 0.7981 GB, free: 51.9 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 8.559e-05/1.496, allocations: 35.88 kB / 0.7981 GB, free: 51.86 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003472/1.496, allocations: 409.3 kB / 0.7985 GB, free: 51.5 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000176/1.496, allocations: 161.9 kB / 0.7987 GB, free: 51.37 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.015e-05/1.496, allocations: 0 / 0.7987 GB, free: 51.37 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001668/1.496, allocations: 394.1 kB / 0.7991 GB, free: 51 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00059/1.497, allocations: 295.5 kB / 0.7993 GB, free: 50.87 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007386/1.498, allocations: 0.6383 MB / 0.8 GB, free: 50.26 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006945/1.505, allocations: 1.457 MB / 0.8014 GB, free: 49.07 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.953e-05/1.505, allocations: 4 kB / 0.8014 GB, free: 49.06 MB / 346.7 MB Notification: Performance of matching and sorting (n=115) (initialization): time 0.00904/1.514, allocations: 2.096 MB / 0.8034 GB, free: 46.99 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001063/1.515, allocations: 4.444 MB / 0.8078 GB, free: 42.24 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.83e-05/1.515, allocations: 12 kB / 0.8078 GB, free: 42.23 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00066/1.516, allocations: 165.6 kB / 0.8079 GB, free: 42.06 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008513/1.517, allocations: 190.2 kB / 0.8081 GB, free: 41.88 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002095/1.519, allocations: 1.511 MB / 0.8096 GB, free: 40.32 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001285/1.52, allocations: 43.12 kB / 0.8096 GB, free: 40.28 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001949/1.52, allocations: 51.98 kB / 0.8097 GB, free: 40.23 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.222e-05/1.52, allocations: 7.938 kB / 0.8097 GB, free: 40.22 MB / 346.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.008453/1.529, allocations: 1.907 MB / 0.8116 GB, free: 38.34 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.137e-05/1.529, allocations: 12 kB / 0.8116 GB, free: 38.33 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007416/1.53, allocations: 160.9 kB / 0.8117 GB, free: 38.17 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007744/1.53, allocations: 194.8 kB / 0.8119 GB, free: 37.98 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001681/1.532, allocations: 1.426 MB / 0.8133 GB, free: 36.51 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001149/1.533, allocations: 43.17 kB / 0.8133 GB, free: 36.47 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001465/1.533, allocations: 47.98 kB / 0.8134 GB, free: 36.43 MB / 346.7 MB 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 (109): * Single equations (assignments): 107 * 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.0003803/1.534, allocations: 148.3 kB / 0.8135 GB, free: 36.28 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003145/1.534, allocations: 79.06 kB / 0.8136 GB, free: 36.2 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002651/1.537, allocations: 0.8422 MB / 0.8144 GB, free: 35.37 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.097e-06/1.537, allocations: 4 kB / 0.8144 GB, free: 35.37 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.777e-06/1.537, allocations: 7.156 kB / 0.8144 GB, free: 35.37 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.995e-06/1.537, allocations: 0 / 0.8144 GB, free: 35.37 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003449/1.54, allocations: 1.523 MB / 0.8159 GB, free: 33.8 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.449e-06/1.54, allocations: 0 / 0.8159 GB, free: 33.8 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000421/1.541, allocations: 79.89 kB / 0.816 GB, free: 33.73 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006186/1.541, allocations: 160.2 kB / 0.8162 GB, free: 33.57 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.886e-05/1.541, allocations: 7.984 kB / 0.8162 GB, free: 33.56 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001496/1.543, allocations: 1.411 MB / 0.8175 GB, free: 32.11 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.091e-06/1.543, allocations: 0 / 0.8175 GB, free: 32.11 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002052/1.545, allocations: 1.134 MB / 0.8187 GB, free: 30.93 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004275/1.545, allocations: 164 kB / 0.8188 GB, free: 30.75 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002974/1.546, allocations: 7.516 kB / 0.8188 GB, free: 30.75 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006986/1.546, allocations: 31.14 kB / 0.8188 GB, free: 30.72 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001157/1.547, allocations: 56.2 kB / 0.8189 GB, free: 30.67 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.437e-05/1.547, allocations: 23.98 kB / 0.8189 GB, free: 30.64 MB / 346.7 MB Notification: Performance of sort global known variables: time 0.0006696/1.547, allocations: 467.1 kB / 0.8194 GB, free: 30.19 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.003334/1.551, allocations: 0.7571 MB / 0.8201 GB, free: 29.43 MB / 346.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 (43): * Single equations (assignments): 41 * 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.00294/1.554, allocations: 0.7801 MB / 0.8209 GB, free: 28.72 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.002321/1.556, allocations: 1.188 MB / 0.822 GB, free: 27.54 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 6.452e-06/1.556, allocations: 8.312 kB / 0.822 GB, free: 27.53 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000497/1.556, allocations: 297.5 kB / 0.8223 GB, free: 27.24 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001682/1.558, allocations: 279.4 kB / 0.8226 GB, free: 26.98 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003284/1.561, allocations: 1.353 MB / 0.8239 GB, free: 25.59 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008312/1.562, allocations: 1.139 MB / 0.825 GB, free: 24.43 MB / 346.7 MB Notification: Performance of SimCode: time 5.71e-07/1.562, allocations: 0 / 0.825 GB, free: 24.43 MB / 346.7 MB Notification: Performance of Templates: time 0.03957/1.602, allocations: 24.46 MB / 0.8489 GB, free: 128 kB / 346.7 MB make -j1 -f Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.makefile (rm -f Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.pipe ; mkfifo Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.pipe >> ../files/Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.sim & ./Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.pipe 2>&1)