Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.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.TankWithEmptyingPipe1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_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.1_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.1+maint.om/package.mo): time 0.003827/0.003827, allocations: 175 kB / 7.451 MB, free: 2.508 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.511/1.511, allocations: 170.6 MB / 178.4 MB, free: 15.39 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.002134/0.002134, allocations: 113 kB / 217.7 MB, free: 8.148 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 8.726e-06/8.746e-06, allocations: 4 kB / 261.8 MB, free: 26.64 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1096/0.1096, allocations: 38.76 MB / 300.5 MB, free: 3.879 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.8903/1, allocations: 317.6 MB / 0.6036 GB, free: 122.1 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002812/1, allocations: 85.08 kB / 0.6037 GB, free: 122.1 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.6079/1.608, allocations: 164.2 MB / 0.764 GB, free: 64.64 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0001239/1.608, allocations: 21.44 kB / 0.7641 GB, free: 64.64 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: 145 * Number of variables: 145 Notification: Performance of Generate backend data structure: time 0.003856/1.612, allocations: 1.113 MB / 0.7651 GB, free: 64.05 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.458e-05/1.612, allocations: 7.875 kB / 0.7652 GB, free: 64.05 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007274/1.613, allocations: 100 kB / 0.7653 GB, free: 64.01 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001901/1.615, allocations: 0.668 MB / 0.7659 GB, free: 63.74 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.206e-05/1.615, allocations: 22.81 kB / 0.7659 GB, free: 63.74 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001859/1.615, allocations: 34.09 kB / 0.766 GB, free: 63.74 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001351/1.617, allocations: 0.7151 MB / 0.7667 GB, free: 63.73 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001401/1.618, allocations: 0.795 MB / 0.7674 GB, free: 63.56 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.574e-05/1.618, allocations: 6.344 kB / 0.7674 GB, free: 63.56 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001063/1.618, allocations: 0 / 0.7674 GB, free: 63.56 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.092e-05/1.618, allocations: 50.61 kB / 0.7675 GB, free: 63.56 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005366/1.624, allocations: 3.716 MB / 0.7711 GB, free: 61.43 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004876/1.624, allocations: 343.1 kB / 0.7714 GB, free: 61.41 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003223/1.625, allocations: 232.3 kB / 0.7717 GB, free: 61.4 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002558/1.627, allocations: 1.934 MB / 0.7736 GB, free: 60.16 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.472e-05/1.627, allocations: 43.88 kB / 0.7736 GB, free: 60.12 MB / 346.7 MB Notification: Performance of pre-optimization done (n=37): time 3.587e-06/1.627, allocations: 3.797 kB / 0.7736 GB, free: 60.12 MB / 346.7 MB Notification: Performance of matching and sorting (n=42): time 0.006896/1.634, allocations: 1.767 MB / 0.7753 GB, free: 59.45 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.978e-05/1.634, allocations: 136.4 kB / 0.7755 GB, free: 59.29 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008928/1.635, allocations: 0.5206 MB / 0.776 GB, free: 59.04 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 7.084e-05/1.635, allocations: 28.77 kB / 0.776 GB, free: 59 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003391/1.636, allocations: 357.7 kB / 0.7763 GB, free: 58.73 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001682/1.636, allocations: 150 kB / 0.7765 GB, free: 58.61 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.297e-05/1.636, allocations: 3.562 kB / 0.7765 GB, free: 58.61 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001887/1.636, allocations: 383 kB / 0.7768 GB, free: 58.27 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004214/1.636, allocations: 227.5 kB / 0.7771 GB, free: 58.2 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006401/1.637, allocations: 0.5387 MB / 0.7776 GB, free: 57.71 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004717/1.642, allocations: 0.9902 MB / 0.7786 GB, free: 57.55 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.265e-05/1.642, allocations: 3.812 kB / 0.7786 GB, free: 57.55 MB / 346.7 MB Notification: Performance of matching and sorting (n=100) (initialization): time 0.005482/1.647, allocations: 1.478 MB / 0.78 GB, free: 57.21 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0008931/1.648, allocations: 3.914 MB / 0.7838 GB, free: 53.06 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.671e-05/1.648, allocations: 11.72 kB / 0.7838 GB, free: 53.06 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002469/1.649, allocations: 57.22 kB / 0.7839 GB, free: 53.05 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001283/1.65, allocations: 244.1 kB / 0.7841 GB, free: 53.02 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001214/1.651, allocations: 1.303 MB / 0.7854 GB, free: 51.86 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008831/1.652, allocations: 45.56 kB / 0.7854 GB, free: 51.85 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.863e-05/1.652, allocations: 43.58 kB / 0.7855 GB, free: 51.84 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.888e-06/1.652, allocations: 3.125 kB / 0.7855 GB, free: 51.84 MB / 346.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004984/1.657, allocations: 1.35 MB / 0.7868 GB, free: 51.55 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.474e-05/1.657, allocations: 15.34 kB / 0.7868 GB, free: 51.55 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001714/1.657, allocations: 53.67 kB / 0.7869 GB, free: 51.54 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009256/1.658, allocations: 232.3 kB / 0.7871 GB, free: 51.52 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006595/1.659, allocations: 0.657 MB / 0.7877 GB, free: 50.96 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007842/1.66, allocations: 44.61 kB / 0.7878 GB, free: 50.95 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.961e-05/1.66, allocations: 40.94 kB / 0.7878 GB, free: 50.95 MB / 346.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.0002725/1.66, allocations: 150 kB / 0.788 GB, free: 50.81 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002019/1.66, allocations: 68.5 kB / 0.788 GB, free: 50.78 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002335/1.663, allocations: 0.8655 MB / 0.7889 GB, free: 50.5 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.251e-05/1.663, allocations: 7.406 kB / 0.7889 GB, free: 50.5 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.815e-06/1.663, allocations: 0 / 0.7889 GB, free: 50.5 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.267e-06/1.663, allocations: 7.641 kB / 0.7889 GB, free: 50.5 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003113/1.666, allocations: 1.416 MB / 0.7903 GB, free: 49.86 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.08e-06/1.666, allocations: 3.375 kB / 0.7903 GB, free: 49.86 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007202/1.667, allocations: 145.2 kB / 0.7904 GB, free: 49.85 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001669/1.667, allocations: 40.05 kB / 0.7904 GB, free: 49.84 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.024e-05/1.667, allocations: 13.8 kB / 0.7905 GB, free: 49.83 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008503/1.668, allocations: 1.227 MB / 0.7917 GB, free: 48.68 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.362e-06/1.668, allocations: 7.062 kB / 0.7917 GB, free: 48.68 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00229/1.67, allocations: 1.07 MB / 0.7927 GB, free: 48.17 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002978/1.67, allocations: 145.3 kB / 0.7928 GB, free: 48.04 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002025/1.67, allocations: 11.28 kB / 0.7929 GB, free: 48.03 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005472/1.671, allocations: 26.67 kB / 0.7929 GB, free: 48.03 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000131/1.671, allocations: 55.34 kB / 0.7929 GB, free: 48.02 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.358e-05/1.671, allocations: 19.41 kB / 0.793 GB, free: 48.02 MB / 346.7 MB Notification: Performance of sort global known variables: time 0.0006348/1.672, allocations: 399.6 kB / 0.7933 GB, free: 47.83 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.002964/1.675, allocations: 0.5982 MB / 0.7939 GB, free: 47.7 MB / 346.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.002572/1.677, allocations: 0.6505 MB / 0.7946 GB, free: 47.48 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.002845/1.68, allocations: 1.045 MB / 0.7956 GB, free: 47.16 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 5.902e-06/1.68, allocations: 5.219 kB / 0.7956 GB, free: 47.16 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008731/1.681, allocations: 336.6 kB / 0.7959 GB, free: 47.07 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001634/1.683, allocations: 263.2 kB / 0.7961 GB, free: 47 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003447/1.686, allocations: 1.141 MB / 0.7973 GB, free: 46.56 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001098/1.687, allocations: 1.093 MB / 0.7983 GB, free: 45.82 MB / 346.7 MB Notification: Performance of SimCode: time 1.573e-06/1.687, allocations: 0 / 0.7983 GB, free: 45.82 MB / 346.7 MB Notification: Performance of Templates: time 0.03948/1.727, allocations: 20.23 MB / 0.8181 GB, free: 32.5 MB / 346.7 MB make -j1 -f Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.makefile (rm -f Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.pipe ; mkfifo Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.pipe >> ../files/Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.sim & ./Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.pipe 2>&1)