Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank1.medium.T|tank2.level|tank2.medium.T|tank3.level|tank3.medium.T|tank1.aboveLevel.1.|tank2.aboveLevel.1.|tank2.aboveLevel.2.|tank2.aboveLevel.3.|tank3.aboveLevel.1.|tank3.aboveLevel.2.",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2") translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank1.medium.T|tank2.level|tank2.medium.T|tank3.level|tank3.medium.T|tank1.aboveLevel.1.|tank2.aboveLevel.1.|tank2.aboveLevel.2.|tank2.aboveLevel.3.|tank3.aboveLevel.1.|tank3.aboveLevel.2.",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2") [: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.3+maint.om/package.mo): time 0.001632/0.001632, allocations: 178.3 kB / 8.152 MB, free: 2.203 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.722/1.722, allocations: 205.2 MB / 213.8 MB, free: 13.91 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001392/0.001391, allocations: 95 kB / 261.8 MB, free: 13.62 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.239e-05/1.272e-05, allocations: 0 / 314.3 MB, free: 9.039 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.267/0.267, allocations: 47.55 MB / 361.8 MB, free: 45.69 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.7947/1.062, allocations: 326 MB / 0.6717 GB, free: 119.4 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003022/1.062, allocations: 92.62 kB / 0.6718 GB, free: 119.4 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.293/2.355, allocations: 324.9 MB / 0.989 GB, free: 2.645 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0002212/2.355, allocations: 42.19 kB / 0.9891 GB, free: 2.605 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 315 * Number of variables: 315 Notification: Performance of Generate backend data structure: time 0.008868/2.364, allocations: 2.059 MB / 0.9911 GB, free: 0.5117 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 0.0001092/2.364, allocations: 11.97 kB / 0.9911 GB, free: 0.5 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001622/2.366, allocations: 205.7 kB / 0.9913 GB, free: 304 kB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.1668/2.533, allocations: 1.183 MB / 0.9925 GB, free: 83.23 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001179/2.533, allocations: 50.5 kB / 0.9925 GB, free: 83.23 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006348/2.534, allocations: 71.55 kB / 0.9926 GB, free: 83.23 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.005614/2.539, allocations: 1.803 MB / 0.9943 GB, free: 83.22 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006654/2.546, allocations: 1.798 MB / 0.9961 GB, free: 82.94 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.973e-05/2.546, allocations: 5.938 kB / 0.9961 GB, free: 82.94 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003056/2.546, allocations: 6.375 kB / 0.9961 GB, free: 82.94 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001882/2.547, allocations: 124.5 kB / 0.9962 GB, free: 82.93 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01859/2.565, allocations: 7.4 MB / 1.003 GB, free: 79.65 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002259/2.568, allocations: 0.9003 MB / 1.004 GB, free: 79.62 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001728/2.569, allocations: 0.7351 MB / 1.005 GB, free: 79.61 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007443/2.577, allocations: 3.348 MB / 1.008 GB, free: 78.09 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.981e-05/2.577, allocations: 52.39 kB / 1.008 GB, free: 78.05 MB / 426.7 MB Notification: Performance of pre-optimization done (n=119): time 4.148e-06/2.577, allocations: 3.094 kB / 1.008 GB, free: 78.05 MB / 426.7 MB Notification: Performance of matching and sorting (n=134): time 0.02754/2.604, allocations: 4.867 MB / 1.013 GB, free: 77.45 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.141e-05/2.605, allocations: 170.4 kB / 1.013 GB, free: 77.25 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002122/2.607, allocations: 0.9585 MB / 1.014 GB, free: 77.1 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005088/2.607, allocations: 33.39 kB / 1.014 GB, free: 77.07 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003952/2.608, allocations: 0.5174 MB / 1.015 GB, free: 76.75 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006931/2.608, allocations: 454.2 kB / 1.015 GB, free: 76.52 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001723/2.609, allocations: 0 / 1.015 GB, free: 76.52 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001391/2.609, allocations: 387 kB / 1.016 GB, free: 76.2 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001985/2.611, allocations: 0.735 MB / 1.016 GB, free: 76.2 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002371/2.613, allocations: 1.131 MB / 1.017 GB, free: 75.77 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02194/2.635, allocations: 2.699 MB / 1.02 GB, free: 75.76 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.234e-05/2.635, allocations: 3.938 kB / 1.02 GB, free: 75.76 MB / 426.7 MB Notification: Performance of matching and sorting (n=221) (initialization): time 0.02617/2.661, allocations: 4.013 MB / 1.024 GB, free: 75.62 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0008885/2.662, allocations: 4.273 MB / 1.028 GB, free: 71.18 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.919e-05/2.662, allocations: 11.28 kB / 1.028 GB, free: 71.18 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002306/2.665, allocations: 459.9 kB / 1.029 GB, free: 71.15 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002894/2.668, allocations: 336.7 kB / 1.029 GB, free: 71.15 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007954/2.676, allocations: 3.366 MB / 1.032 GB, free: 69.07 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002474/2.678, allocations: 101.2 kB / 1.032 GB, free: 69.06 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003305/2.679, allocations: 81.84 kB / 1.032 GB, free: 69.06 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.323e-05/2.679, allocations: 3.5 kB / 1.032 GB, free: 69.06 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02521/2.704, allocations: 3.722 MB / 1.036 GB, free: 68.99 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.648e-05/2.704, allocations: 13.47 kB / 1.036 GB, free: 68.99 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001803/2.706, allocations: 327.2 kB / 1.036 GB, free: 68.96 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002991/2.709, allocations: 352.6 kB / 1.037 GB, free: 68.96 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006205/2.715, allocations: 3.014 MB / 1.04 GB, free: 66.88 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002459/2.717, allocations: 102.9 kB / 1.04 GB, free: 66.88 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003825/2.718, allocations: 81.7 kB / 1.04 GB, free: 66.88 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 49 * Number of states: 0 () * Number of discrete variables: 18 ($PRE.tank3.aboveLevel[1],tank3.aboveLevel[1],$PRE.tank3.aboveLevel[2],tank3.aboveLevel[2],$PRE.tank1.aboveLevel[1],tank1.aboveLevel[1],$PRE.tank2.aboveLevel[1],tank2.aboveLevel[1],$PRE.tank2.aboveLevel[2],tank2.aboveLevel[2],$PRE.tank2.aboveLevel[3],tank2.aboveLevel[3],tank2.ports_m_flow_out[3],tank2.ports_m_flow_out[2],tank2.ports_m_flow_out[1],tank1.ports_m_flow_out[1],tank3.ports_m_flow_out[2],tank3.ports_m_flow_out[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (200): * Single equations (assignments): 196 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 2,2 7,2 7,1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0006249/2.719, allocations: 77.97 kB / 1.04 GB, free: 66.84 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005378/2.719, allocations: 147.8 kB / 1.04 GB, free: 66.77 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01087/2.73, allocations: 2.505 MB / 1.042 GB, free: 66.62 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.329e-05/2.73, allocations: 14.06 kB / 1.042 GB, free: 66.62 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.067e-05/2.73, allocations: 3.609 kB / 1.042 GB, free: 66.62 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.161e-05/2.73, allocations: 18.28 kB / 1.042 GB, free: 66.62 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01487/2.745, allocations: 3.981 MB / 1.046 GB, free: 66.22 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.65e-05/2.745, allocations: 6.5 kB / 1.046 GB, free: 66.22 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002281/2.747, allocations: 240.8 kB / 1.047 GB, free: 66.22 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00247/2.75, allocations: 456.1 kB / 1.047 GB, free: 66.19 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000374/2.75, allocations: 24.88 kB / 1.047 GB, free: 66.19 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005708/2.756, allocations: 3.117 MB / 1.05 GB, free: 64.1 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.085e-06/2.756, allocations: 0 / 1.05 GB, free: 64.1 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01081/2.767, allocations: 3.342 MB / 1.053 GB, free: 63.64 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007645/2.768, allocations: 251.2 kB / 1.054 GB, free: 63.46 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007385/2.768, allocations: 10.44 kB / 1.054 GB, free: 63.46 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00255/2.771, allocations: 85.83 kB / 1.054 GB, free: 63.46 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000565/2.772, allocations: 131.8 kB / 1.054 GB, free: 63.46 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002502/2.772, allocations: 64.16 kB / 1.054 GB, free: 63.46 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.001554/2.773, allocations: 0.7131 MB / 1.055 GB, free: 63.35 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.006196/2.78, allocations: 1.291 MB / 1.056 GB, free: 63.35 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 6 (tank3.medium.T,tank3.level,tank1.medium.T,tank1.level,tank2.medium.T,tank2.level) * Number of discrete variables: 6 (tank3.aboveLevel[1],tank3.aboveLevel[2],tank1.aboveLevel[1],tank2.aboveLevel[1],tank2.aboveLevel[2],tank2.aboveLevel[3]) * Number of discrete states: 6 (tank3.aboveLevel[1],tank3.aboveLevel[2],tank1.aboveLevel[1],tank2.aboveLevel[1],tank2.aboveLevel[2],tank2.aboveLevel[3]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (133): * Single equations (assignments): 127 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 6,2 12,2 12,1 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.00434/2.784, allocations: 1.219 MB / 1.057 GB, free: 63.18 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.009093/2.793, allocations: 2.932 MB / 1.06 GB, free: 63.14 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.189e-05/2.793, allocations: 0 / 1.06 GB, free: 63.14 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003317/2.797, allocations: 1.054 MB / 1.061 GB, free: 63.14 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00599/2.803, allocations: 0.5957 MB / 1.061 GB, free: 63.12 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0094/2.812, allocations: 2.832 MB / 1.064 GB, free: 62.52 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002394/2.814, allocations: 1.591 MB / 1.066 GB, free: 61.79 MB / 426.7 MB Notification: Performance of SimCode: time 1.393e-06/2.815, allocations: 0 / 1.066 GB, free: 61.79 MB / 426.7 MB Notification: Performance of Templates: time 0.09742/2.912, allocations: 58.15 MB / 1.123 GB, free: 51.42 MB / 426.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.sim & ./Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2 --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.pipe 2>&1)