Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.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.TankWithEmptyingPipe1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1") translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1") [: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.001515/0.001516, allocations: 190.5 kB / 8.138 MB, free: 2.211 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.246/1.246, allocations: 194.2 MB / 202.8 MB, free: 8.711 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.001785/0.001786, allocations: 118.6 kB / 247.8 MB, free: 6.359 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 7.695e-06/7.735e-06, allocations: 4 kB / 297.6 MB, free: 7.969 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07922/0.07925, allocations: 44.48 MB / 342.1 MB, free: 11.38 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5401/0.6193, allocations: 322.9 MB / 0.6494 GB, free: 4.215 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000233/0.6196, allocations: 90.36 kB / 0.6495 GB, free: 4.172 MB / 394.7 MB Notification: Performance of FrontEnd: time 0.4607/1.08, allocations: 164.2 MB / 0.8099 GB, free: 2.277 MB / 394.7 MB Notification: Performance of Transformations before backend: time 8.452e-05/1.08, allocations: 24 kB / 0.8099 GB, free: 2.254 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: 145 * Number of variables: 145 Notification: Performance of Generate backend data structure: time 0.002692/1.083, allocations: 1.112 MB / 0.811 GB, free: 1.098 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.384e-05/1.083, allocations: 8.031 kB / 0.811 GB, free: 1.09 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006151/1.084, allocations: 98.95 kB / 0.8111 GB, free: 0.9922 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001526/1.085, allocations: 0.6634 MB / 0.8117 GB, free: 288 kB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.746e-05/1.085, allocations: 24 kB / 0.8117 GB, free: 264 kB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001377/1.086, allocations: 36 kB / 0.8118 GB, free: 228 kB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.112/1.198, allocations: 0.7191 MB / 0.8125 GB, free: 101.8 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001582/1.199, allocations: 0.7991 MB / 0.8133 GB, free: 101.6 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.584e-05/1.199, allocations: 1.688 kB / 0.8133 GB, free: 101.6 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001183/1.199, allocations: 7.219 kB / 0.8133 GB, free: 101.6 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.672e-05/1.199, allocations: 49.7 kB / 0.8133 GB, free: 101.6 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00511/1.205, allocations: 3.725 MB / 0.8169 GB, free: 99.54 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004549/1.205, allocations: 335 kB / 0.8173 GB, free: 99.52 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002947/1.205, allocations: 232.7 kB / 0.8175 GB, free: 99.51 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002245/1.208, allocations: 1.933 MB / 0.8194 GB, free: 98.29 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.308e-05/1.208, allocations: 34.19 kB / 0.8194 GB, free: 98.25 MB / 394.7 MB Notification: Performance of pre-optimization done (n=37): time 2.244e-06/1.208, allocations: 3.469 kB / 0.8194 GB, free: 98.25 MB / 394.7 MB Notification: Performance of matching and sorting (n=42): time 0.006821/1.214, allocations: 1.769 MB / 0.8211 GB, free: 97.87 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.253e-05/1.215, allocations: 139.8 kB / 0.8213 GB, free: 97.71 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006117/1.215, allocations: 0.518 MB / 0.8218 GB, free: 97.59 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 5.224e-05/1.215, allocations: 28.86 kB / 0.8218 GB, free: 97.55 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001842/1.215, allocations: 361.6 kB / 0.8222 GB, free: 97.36 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001065/1.216, allocations: 146 kB / 0.8223 GB, free: 97.29 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.724e-05/1.216, allocations: 3.969 kB / 0.8223 GB, free: 97.29 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 8.947e-05/1.216, allocations: 378.8 kB / 0.8227 GB, free: 96.97 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003417/1.216, allocations: 236.5 kB / 0.8229 GB, free: 96.97 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004526/1.216, allocations: 0.5372 MB / 0.8234 GB, free: 96.59 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004665/1.221, allocations: 0.9895 MB / 0.8244 GB, free: 96.59 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.821e-06/1.221, allocations: 3.688 kB / 0.8244 GB, free: 96.59 MB / 394.7 MB Notification: Performance of matching and sorting (n=100) (initialization): time 0.005534/1.227, allocations: 1.474 MB / 0.8258 GB, free: 96.5 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0006031/1.227, allocations: 3.917 MB / 0.8296 GB, free: 92.43 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.925e-05/1.227, allocations: 7.625 kB / 0.8296 GB, free: 92.43 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000214/1.228, allocations: 59.19 kB / 0.8297 GB, free: 92.42 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001313/1.229, allocations: 239.3 kB / 0.8299 GB, free: 92.42 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001285/1.23, allocations: 1.3 MB / 0.8312 GB, free: 91.31 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009601/1.231, allocations: 47.22 kB / 0.8312 GB, free: 91.31 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001221/1.231, allocations: 44.89 kB / 0.8313 GB, free: 91.31 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.283e-05/1.231, allocations: 7.219 kB / 0.8313 GB, free: 91.31 MB / 394.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00534/1.237, allocations: 1.356 MB / 0.8326 GB, free: 91.29 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.845e-05/1.237, allocations: 18.19 kB / 0.8326 GB, free: 91.29 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001595/1.237, allocations: 60 kB / 0.8327 GB, free: 91.28 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009554/1.238, allocations: 222.9 kB / 0.8329 GB, free: 91.28 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006542/1.239, allocations: 0.6595 MB / 0.8336 GB, free: 90.76 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007292/1.239, allocations: 42.14 kB / 0.8336 GB, free: 90.76 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.749e-05/1.239, allocations: 43.06 kB / 0.8336 GB, free: 90.76 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 45 * 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 (98): * Single equations (assignments): 96 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 2} Notification: Performance of prepare postOptimizeDAE: time 0.0002528/1.24, allocations: 139.5 kB / 0.8338 GB, free: 90.65 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000174/1.24, allocations: 66.97 kB / 0.8338 GB, free: 90.61 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002389/1.242, allocations: 0.8828 MB / 0.8347 GB, free: 90.55 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.044e-05/1.242, allocations: 3.969 kB / 0.8347 GB, free: 90.55 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.851e-06/1.242, allocations: 3.969 kB / 0.8347 GB, free: 90.55 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.604e-06/1.242, allocations: 3.844 kB / 0.8347 GB, free: 90.55 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002918/1.245, allocations: 1.42 MB / 0.8361 GB, free: 90.23 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.589e-06/1.245, allocations: 0 / 0.8361 GB, free: 90.23 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007472/1.246, allocations: 142 kB / 0.8362 GB, free: 90.23 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001575/1.246, allocations: 41.8 kB / 0.8363 GB, free: 90.23 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.568e-05/1.246, allocations: 14.22 kB / 0.8363 GB, free: 90.23 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007647/1.247, allocations: 1.224 MB / 0.8375 GB, free: 89.12 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.298e-06/1.247, allocations: 3.531 kB / 0.8375 GB, free: 89.12 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00203/1.249, allocations: 1.075 MB / 0.8385 GB, free: 88.85 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002666/1.249, allocations: 152.5 kB / 0.8387 GB, free: 88.72 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001962/1.25, allocations: 3.719 kB / 0.8387 GB, free: 88.72 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005427/1.25, allocations: 33.27 kB / 0.8387 GB, free: 88.71 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001022/1.25, allocations: 50.28 kB / 0.8388 GB, free: 88.71 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.458e-05/1.25, allocations: 25.27 kB / 0.8388 GB, free: 88.71 MB / 394.7 MB Notification: Performance of sort global known variables: time 0.0004548/1.251, allocations: 393.4 kB / 0.8392 GB, free: 88.62 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.00215/1.253, allocations: 0.5916 MB / 0.8397 GB, free: 88.62 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * 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[2],tank1.aboveLevel[1]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (55): * Single equations (assignments): 51 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.001635/1.255, allocations: 0.6548 MB / 0.8404 GB, free: 88.53 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.002302/1.257, allocations: 1.051 MB / 0.8414 GB, free: 88.52 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 4.188e-06/1.257, allocations: 7.75 kB / 0.8414 GB, free: 88.52 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000685/1.258, allocations: 326.4 kB / 0.8417 GB, free: 88.52 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001315/1.259, allocations: 252.3 kB / 0.842 GB, free: 88.52 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002604/1.261, allocations: 1.144 MB / 0.8431 GB, free: 88.22 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006586/1.262, allocations: 1.091 MB / 0.8441 GB, free: 87.5 MB / 394.7 MB Notification: Performance of SimCode: time 7.42e-07/1.262, allocations: 0 / 0.8441 GB, free: 87.5 MB / 394.7 MB Notification: Performance of Templates: time 0.03022/1.292, allocations: 20.24 MB / 0.8639 GB, free: 87.07 MB / 394.7 MB make -j1 -f Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.makefile (rm -f Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.pipe ; mkfifo Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.pipe >> ../files/Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.sim & ./Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.pipe 2>&1)