Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.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.TankWithEmptyingPipe2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_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.2_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.2+maint.om/package.mo): time 0.001176/0.001176, allocations: 191.7 kB / 8.139 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.171/1.171, allocations: 194.2 MB / 202.8 MB, free: 8.664 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.001757/0.001757, allocations: 123.3 kB / 247.7 MB, free: 6.422 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 6.753e-06/6.833e-06, allocations: 0 / 297.6 MB, free: 8.039 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07611/0.07613, allocations: 44.49 MB / 342.1 MB, free: 11.44 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4726/0.5488, allocations: 318.6 MB / 0.6451 GB, free: 8.066 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000204/0.549, allocations: 88.31 kB / 0.6452 GB, free: 8.02 MB / 394.7 MB Notification: Performance of FrontEnd: time 0.6515/1.2, allocations: 189.7 MB / 0.8305 GB, free: 64.48 MB / 394.7 MB Notification: Performance of Transformations before backend: time 9.402e-05/1.201, allocations: 26.23 kB / 0.8305 GB, free: 64.48 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: 164 * Number of variables: 164 Notification: Performance of Generate backend data structure: time 0.002986/1.204, allocations: 1.293 MB / 0.8318 GB, free: 63.91 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.2e-05/1.204, allocations: 11.75 kB / 0.8318 GB, free: 63.91 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005375/1.204, allocations: 110.6 kB / 0.8319 GB, free: 63.86 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001716/1.206, allocations: 0.7753 MB / 0.8327 GB, free: 63.6 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.931e-05/1.206, allocations: 27.97 kB / 0.8327 GB, free: 63.6 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001239/1.206, allocations: 37.75 kB / 0.8327 GB, free: 63.59 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001384/1.207, allocations: 0.9145 MB / 0.8336 GB, free: 63.59 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001485/1.209, allocations: 0.9671 MB / 0.8346 GB, free: 63.41 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.029e-05/1.209, allocations: 3.188 kB / 0.8346 GB, free: 63.41 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001081/1.209, allocations: 3.969 kB / 0.8346 GB, free: 63.41 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.234e-05/1.209, allocations: 68.36 kB / 0.8346 GB, free: 63.41 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005838/1.215, allocations: 4.287 MB / 0.8388 GB, free: 61.26 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005219/1.216, allocations: 397.9 kB / 0.8392 GB, free: 61.25 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003657/1.216, allocations: 294.3 kB / 0.8395 GB, free: 61.24 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00205/1.218, allocations: 1.958 MB / 0.8414 GB, free: 60 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.735e-05/1.218, allocations: 38.11 kB / 0.8414 GB, free: 59.96 MB / 394.7 MB Notification: Performance of pre-optimization done (n=40): time 1.954e-06/1.218, allocations: 0 / 0.8414 GB, free: 59.96 MB / 394.7 MB Notification: Performance of matching and sorting (n=45): time 0.005605/1.224, allocations: 1.772 MB / 0.8432 GB, free: 59.54 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.653e-05/1.224, allocations: 164.9 kB / 0.8433 GB, free: 59.35 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006937/1.224, allocations: 0.6234 MB / 0.8439 GB, free: 59.21 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 5.427e-05/1.225, allocations: 25.7 kB / 0.844 GB, free: 59.18 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002282/1.225, allocations: 412.4 kB / 0.8444 GB, free: 58.96 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001183/1.225, allocations: 156.8 kB / 0.8445 GB, free: 58.89 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.445e-05/1.225, allocations: 1.875 kB / 0.8445 GB, free: 58.89 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 9.281e-05/1.225, allocations: 393 kB / 0.8449 GB, free: 58.57 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004069/1.225, allocations: 288.5 kB / 0.8452 GB, free: 58.57 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005348/1.226, allocations: 0.6465 MB / 0.8458 GB, free: 58.13 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007004/1.233, allocations: 1.464 MB / 0.8472 GB, free: 58.12 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.766e-06/1.233, allocations: 3.344 kB / 0.8472 GB, free: 58.12 MB / 394.7 MB Notification: Performance of matching and sorting (n=115) (initialization): time 0.007847/1.241, allocations: 2.096 MB / 0.8493 GB, free: 58.03 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0006965/1.242, allocations: 4.436 MB / 0.8536 GB, free: 53.41 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.592e-05/1.242, allocations: 11.59 kB / 0.8536 GB, free: 53.41 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005849/1.242, allocations: 160.6 kB / 0.8538 GB, free: 53.39 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007081/1.243, allocations: 191.2 kB / 0.8539 GB, free: 53.39 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001845/1.245, allocations: 1.518 MB / 0.8554 GB, free: 52.35 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008597/1.246, allocations: 47.98 kB / 0.8555 GB, free: 52.34 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.613e-05/1.246, allocations: 50.2 kB / 0.8555 GB, free: 52.34 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.202e-06/1.246, allocations: 6.062 kB / 0.8555 GB, free: 52.34 MB / 394.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007496/1.253, allocations: 1.905 MB / 0.8574 GB, free: 52.31 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.79e-05/1.253, allocations: 11.47 kB / 0.8574 GB, free: 52.31 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005899/1.254, allocations: 160.1 kB / 0.8576 GB, free: 52.3 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006728/1.255, allocations: 191.8 kB / 0.8577 GB, free: 52.3 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001446/1.256, allocations: 1.424 MB / 0.8591 GB, free: 51.25 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007909/1.257, allocations: 42.36 kB / 0.8592 GB, free: 51.25 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.323e-05/1.257, allocations: 50.56 kB / 0.8592 GB, free: 51.25 MB / 394.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.0001966/1.257, allocations: 143.2 kB / 0.8594 GB, free: 51.13 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001489/1.257, allocations: 81.66 kB / 0.8594 GB, free: 51.09 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002255/1.26, allocations: 0.8384 MB / 0.8603 GB, free: 51.02 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.733e-06/1.26, allocations: 7.688 kB / 0.8603 GB, free: 51.02 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.893e-06/1.26, allocations: 2.969 kB / 0.8603 GB, free: 51.02 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.494e-06/1.26, allocations: 7.297 kB / 0.8603 GB, free: 51.02 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002918/1.263, allocations: 1.514 MB / 0.8617 GB, free: 50.71 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.198e-06/1.263, allocations: 3.156 kB / 0.8617 GB, free: 50.71 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004011/1.263, allocations: 80.08 kB / 0.8618 GB, free: 50.71 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005887/1.264, allocations: 158.9 kB / 0.862 GB, free: 50.7 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.464e-05/1.264, allocations: 10.17 kB / 0.862 GB, free: 50.7 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001334/1.265, allocations: 1.405 MB / 0.8634 GB, free: 49.65 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.106e-06/1.265, allocations: 3.594 kB / 0.8634 GB, free: 49.65 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001817/1.267, allocations: 1.138 MB / 0.8645 GB, free: 49.39 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001981/1.267, allocations: 167.6 kB / 0.8646 GB, free: 49.25 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001713/1.267, allocations: 11.09 kB / 0.8646 GB, free: 49.25 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005463/1.268, allocations: 31.17 kB / 0.8647 GB, free: 49.25 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001055/1.268, allocations: 50.75 kB / 0.8647 GB, free: 49.25 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.734e-05/1.268, allocations: 17.94 kB / 0.8647 GB, free: 49.25 MB / 394.7 MB Notification: Performance of sort global known variables: time 0.0004891/1.268, allocations: 469.3 kB / 0.8652 GB, free: 49.16 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.002141/1.271, allocations: 0.765 MB / 0.8659 GB, free: 49.02 MB / 394.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.001742/1.272, allocations: 0.7838 MB / 0.8667 GB, free: 48.77 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.00183/1.274, allocations: 1.193 MB / 0.8679 GB, free: 48.76 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.717e-06/1.274, allocations: 0 / 0.8679 GB, free: 48.76 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004641/1.275, allocations: 295.1 kB / 0.8681 GB, free: 48.75 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001344/1.276, allocations: 281.8 kB / 0.8684 GB, free: 48.75 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002865/1.279, allocations: 1.346 MB / 0.8697 GB, free: 48.43 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000811/1.28, allocations: 1.133 MB / 0.8708 GB, free: 47.72 MB / 394.7 MB Notification: Performance of SimCode: time 2.71e-07/1.28, allocations: 3.609 kB / 0.8708 GB, free: 47.72 MB / 394.7 MB Notification: Performance of Templates: time 0.03926/1.319, allocations: 24.47 MB / 0.8947 GB, free: 46.58 MB / 394.7 MB make -j1 -f Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.makefile (rm -f Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.pipe ; mkfifo Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.pipe >> ../files/Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.sim & ./Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.pipe 2>&1)