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.TanksWithEmptyingPipe1.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.TanksWithEmptyingPipe1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank1.medium.T|tank2.level|tank2.medium.T|tank1.aboveLevel.1.|tank1.aboveLevel.2.|tank2.aboveLevel.1.|tank2.aboveLevel.2.",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1") translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank1.medium.T|tank2.level|tank2.medium.T|tank1.aboveLevel.1.|tank1.aboveLevel.2.|tank2.aboveLevel.1.|tank2.aboveLevel.2.",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1") [: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.00318/0.00318, allocations: 191.3 kB / 8.153 MB, free: 0.8477 MB / 6.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.781/1.781, allocations: 205.2 MB / 213.7 MB, free: 8.574 MB / 178.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001295/0.001294, allocations: 92.58 kB / 261.7 MB, free: 5.164 MB / 210.8 MB Notification: Performance of FrontEnd - loaded program: time 1.576e-05/1.591e-05, allocations: 4 kB / 314.3 MB, free: 2.422 MB / 258.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1046/0.1047, allocations: 47.57 MB / 361.9 MB, free: 2.727 MB / 306.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.7555/0.8602, allocations: 323.4 MB / 0.6692 GB, free: 8.082 MB / 418.8 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003213/0.8606, allocations: 89.45 kB / 0.6693 GB, free: 8.039 MB / 418.8 MB Notification: Performance of FrontEnd: time 1.299/2.159, allocations: 281.7 MB / 0.9444 GB, free: 58.96 MB / 418.8 MB Notification: Performance of Transformations before backend: time 0.000154/2.159, allocations: 38.39 kB / 0.9444 GB, free: 58.96 MB / 418.8 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 256 * Number of variables: 256 Notification: Performance of Generate backend data structure: time 0.006937/2.166, allocations: 1.797 MB / 0.9462 GB, free: 57.48 MB / 418.8 MB Notification: Performance of prepare preOptimizeDAE: time 4.317e-05/2.166, allocations: 8.031 kB / 0.9462 GB, free: 57.48 MB / 418.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001715/2.168, allocations: 174.1 kB / 0.9464 GB, free: 57.3 MB / 418.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004357/2.173, allocations: 1.037 MB / 0.9474 GB, free: 56.25 MB / 418.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.511e-05/2.173, allocations: 36 kB / 0.9474 GB, free: 56.21 MB / 418.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003609/2.173, allocations: 56 kB / 0.9475 GB, free: 56.16 MB / 418.8 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004341/2.177, allocations: 1.476 MB / 0.9489 GB, free: 54.68 MB / 418.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004089/2.181, allocations: 1.505 MB / 0.9504 GB, free: 53.09 MB / 418.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.077e-05/2.182, allocations: 0 / 0.9504 GB, free: 53.09 MB / 418.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003173/2.182, allocations: 7.312 kB / 0.9504 GB, free: 53.09 MB / 418.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001533/2.182, allocations: 101.9 kB / 0.9505 GB, free: 52.99 MB / 418.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01525/2.197, allocations: 6.318 MB / 0.9566 GB, free: 46.43 MB / 418.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001653/2.199, allocations: 0.6678 MB / 0.9573 GB, free: 45.76 MB / 418.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001176/2.2, allocations: 0.5486 MB / 0.9578 GB, free: 45.21 MB / 418.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006116/2.206, allocations: 2.814 MB / 0.9606 GB, free: 42.18 MB / 418.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.784e-05/2.206, allocations: 47.16 kB / 0.9606 GB, free: 42.13 MB / 418.8 MB Notification: Performance of pre-optimization done (n=80): time 4.468e-06/2.207, allocations: 0 / 0.9606 GB, free: 42.13 MB / 418.8 MB Notification: Performance of matching and sorting (n=90): time 0.01736/2.224, allocations: 3.243 MB / 0.9638 GB, free: 38.84 MB / 418.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.819e-05/2.224, allocations: 192.7 kB / 0.964 GB, free: 38.61 MB / 418.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00176/2.226, allocations: 0.8831 MB / 0.9648 GB, free: 37.71 MB / 418.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0003082/2.226, allocations: 32.98 kB / 0.9649 GB, free: 37.68 MB / 418.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003356/2.226, allocations: 0.5081 MB / 0.9654 GB, free: 37.16 MB / 418.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003675/2.227, allocations: 311.5 kB / 0.9657 GB, free: 36.85 MB / 418.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001317/2.227, allocations: 0 / 0.9657 GB, free: 36.85 MB / 418.8 MB Notification: Performance of setup shared object (initialization): time 0.00012/2.227, allocations: 362.8 kB / 0.966 GB, free: 36.49 MB / 418.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001393/2.229, allocations: 0.5467 MB / 0.9665 GB, free: 35.95 MB / 418.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001549/2.23, allocations: 0.9366 MB / 0.9675 GB, free: 34.85 MB / 418.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01853/2.249, allocations: 2.303 MB / 0.9697 GB, free: 32.6 MB / 418.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.034e-05/2.249, allocations: 7.875 kB / 0.9697 GB, free: 32.59 MB / 418.8 MB Notification: Performance of matching and sorting (n=177) (initialization): time 0.02103/2.27, allocations: 3.313 MB / 0.973 GB, free: 29.31 MB / 418.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.0008433/2.271, allocations: 4.349 MB / 0.9772 GB, free: 24.66 MB / 418.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.289e-05/2.271, allocations: 12 kB / 0.9772 GB, free: 24.65 MB / 418.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001655/2.272, allocations: 333.6 kB / 0.9775 GB, free: 24.32 MB / 418.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002137/2.274, allocations: 279.5 kB / 0.9778 GB, free: 24.04 MB / 418.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005576/2.28, allocations: 2.494 MB / 0.9802 GB, free: 21.48 MB / 418.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001791/2.282, allocations: 74.47 kB / 0.9803 GB, free: 21.42 MB / 418.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001951/2.282, allocations: 67.97 kB / 0.9804 GB, free: 21.35 MB / 418.8 MB Notification: Performance of prepare postOptimizeDAE: time 1.114e-05/2.282, allocations: 4 kB / 0.9804 GB, free: 21.35 MB / 418.8 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02121/2.303, allocations: 3.071 MB / 0.9834 GB, free: 18.31 MB / 418.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.26e-05/2.303, allocations: 12 kB / 0.9834 GB, free: 18.3 MB / 418.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001471/2.305, allocations: 253.3 kB / 0.9836 GB, free: 18.04 MB / 418.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002383/2.307, allocations: 287.5 kB / 0.9839 GB, free: 17.76 MB / 418.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004741/2.312, allocations: 2.267 MB / 0.9861 GB, free: 15.43 MB / 418.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001983/2.314, allocations: 81.36 kB / 0.9862 GB, free: 15.35 MB / 418.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002617/2.314, allocations: 63.97 kB / 0.9862 GB, free: 15.29 MB / 418.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 50 * Number of states: 0 () * Number of discrete variables: 12 ($PRE.tank1.aboveLevel[1],tank1.aboveLevel[1],$PRE.tank1.aboveLevel[2],tank1.aboveLevel[2],$PRE.tank2.aboveLevel[1],tank2.aboveLevel[1],$PRE.tank2.aboveLevel[2],tank2.aboveLevel[2],tank2.ports_m_flow_out[2],tank2.ports_m_flow_out[1],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 (163): * Single equations (assignments): 160 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {1 3,2 7,1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0005247/2.315, allocations: 78.56 kB / 0.9863 GB, free: 15.21 MB / 418.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004524/2.315, allocations: 126.5 kB / 0.9864 GB, free: 15.09 MB / 418.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007101/2.323, allocations: 1.608 MB / 0.988 GB, free: 13.51 MB / 418.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.746e-05/2.323, allocations: 12 kB / 0.988 GB, free: 13.5 MB / 418.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.658e-06/2.323, allocations: 0 / 0.988 GB, free: 13.5 MB / 418.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.407e-05/2.323, allocations: 7.969 kB / 0.988 GB, free: 13.49 MB / 418.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00871/2.331, allocations: 2.773 MB / 0.9907 GB, free: 10.68 MB / 418.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.878e-06/2.331, allocations: 0 / 0.9907 GB, free: 10.68 MB / 418.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001345/2.333, allocations: 155.9 kB / 0.9909 GB, free: 10.53 MB / 418.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001769/2.335, allocations: 331.2 kB / 0.9912 GB, free: 10.2 MB / 418.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001002/2.335, allocations: 15.98 kB / 0.9912 GB, free: 10.18 MB / 418.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003817/2.338, allocations: 2.312 MB / 0.9935 GB, free: 7.797 MB / 418.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.332e-06/2.339, allocations: 0 / 0.9935 GB, free: 7.797 MB / 418.8 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.006462/2.345, allocations: 2.199 MB / 0.9956 GB, free: 5.543 MB / 418.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007196/2.346, allocations: 219.5 kB / 0.9958 GB, free: 5.309 MB / 418.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006167/2.346, allocations: 12 kB / 0.9958 GB, free: 5.297 MB / 418.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002029/2.348, allocations: 63.84 kB / 0.9959 GB, free: 5.234 MB / 418.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004143/2.349, allocations: 88.86 kB / 0.996 GB, free: 5.148 MB / 418.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001881/2.349, allocations: 39.97 kB / 0.996 GB, free: 5.109 MB / 418.8 MB Notification: Performance of sort global known variables: time 0.001438/2.351, allocations: 0.6647 MB / 0.9967 GB, free: 4.438 MB / 418.8 MB Notification: Performance of remove unused functions: time 0.005842/2.356, allocations: 1.14 MB / 0.9978 GB, free: 3.297 MB / 418.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 4 (tank1.medium.T,tank1.level,tank2.medium.T,tank2.level) * Number of discrete variables: 4 (tank1.aboveLevel[1],tank1.aboveLevel[2],tank2.aboveLevel[1],tank2.aboveLevel[2]) * Number of discrete states: 4 (tank1.aboveLevel[1],tank1.aboveLevel[2],tank2.aboveLevel[1],tank2.aboveLevel[2]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (84): * Single equations (assignments): 81 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {2 12,1 6,1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.004135/2.361, allocations: 1.104 MB / 0.9989 GB, free: 2.281 MB / 418.8 MB Notification: Performance of simCode: created initialization part: time 0.006768/2.367, allocations: 2.115 MB / 1.001 GB, free: 176 kB / 418.8 MB Notification: Performance of simCode: created event and clocks part: time 1.075e-05/2.368, allocations: 7.859 kB / 1.001 GB, free: 168 kB / 418.8 MB Notification: Performance of simCode: created simulation system equations: time 0.1616/2.529, allocations: 0.6568 MB / 1.002 GB, free: 94.02 MB / 418.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004701/2.534, allocations: 464 kB / 1.002 GB, free: 94.02 MB / 418.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008609/2.543, allocations: 2.145 MB / 1.004 GB, free: 93.54 MB / 418.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003881/2.546, allocations: 1.402 MB / 1.005 GB, free: 92.82 MB / 418.8 MB Notification: Performance of SimCode: time 2.314e-06/2.547, allocations: 0 / 1.005 GB, free: 92.82 MB / 418.8 MB Notification: Performance of Templates: time 0.07848/2.625, allocations: 43.11 MB / 1.048 GB, free: 91.67 MB / 418.8 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.sim & ./Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1 --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.pipe 2>&1)