Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/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_trunk_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_trunk_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 trunk/package.mo): time 0.001479/0.001479, allocations: 200.2 kB / 8.537 MB, free: 460 kB / 6.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.343/1.343, allocations: 225.5 MB / 234.4 MB, free: 9.465 MB / 194.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009114/0.0009112, allocations: 100.1 kB / 286.3 MB, free: 5.852 MB / 226.8 MB Notification: Performance of FrontEnd - loaded program: time 1.725e-05/1.76e-05, allocations: 7.938 kB / 343.1 MB, free: 13.04 MB / 290.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3014/0.3015, allocations: 51.46 MB / 394.6 MB, free: 47.36 MB / 322.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.7171/1.019, allocations: 327.4 MB / 0.705 GB, free: 119.7 MB / 450.8 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002704/1.019, allocations: 88.33 kB / 0.7051 GB, free: 119.7 MB / 450.8 MB Notification: Performance of FrontEnd: time 0.8872/1.906, allocations: 330.2 MB / 1.028 GB, free: 14.89 MB / 450.8 MB Notification: Performance of Transformations before backend: time 0.0001941/1.906, allocations: 41.78 kB / 1.028 GB, free: 14.85 MB / 450.8 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.006968/1.913, allocations: 2.075 MB / 1.03 GB, free: 12.74 MB / 450.8 MB Notification: Performance of prepare preOptimizeDAE: time 4.462e-05/1.913, allocations: 8.031 kB / 1.03 GB, free: 12.73 MB / 450.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001287/1.915, allocations: 201.7 kB / 1.03 GB, free: 12.53 MB / 450.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003379/1.918, allocations: 1.194 MB / 1.031 GB, free: 11.3 MB / 450.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001041/1.918, allocations: 51.84 kB / 1.031 GB, free: 11.25 MB / 450.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005125/1.919, allocations: 68 kB / 1.031 GB, free: 11.19 MB / 450.8 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003451/1.922, allocations: 1.805 MB / 1.033 GB, free: 9.379 MB / 450.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003466/1.926, allocations: 1.788 MB / 1.035 GB, free: 7.488 MB / 450.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.241e-05/1.926, allocations: 7.938 kB / 1.035 GB, free: 7.48 MB / 450.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002512/1.926, allocations: 0 / 1.035 GB, free: 7.48 MB / 450.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001189/1.926, allocations: 130.2 kB / 1.035 GB, free: 7.352 MB / 450.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2004/2.127, allocations: 7.395 MB / 1.042 GB, free: 89.56 MB / 450.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001729/2.128, allocations: 0.8986 MB / 1.043 GB, free: 89.54 MB / 450.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001007/2.129, allocations: 0.7263 MB / 1.044 GB, free: 89.52 MB / 450.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004807/2.134, allocations: 3.352 MB / 1.047 GB, free: 88.03 MB / 450.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.989e-05/2.134, allocations: 49.75 kB / 1.047 GB, free: 87.99 MB / 450.8 MB Notification: Performance of pre-optimization done (n=119): time 3.907e-06/2.134, allocations: 0 / 1.047 GB, free: 87.99 MB / 450.8 MB Notification: Performance of matching and sorting (n=134): time 0.01674/2.151, allocations: 4.871 MB / 1.052 GB, free: 87.49 MB / 450.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.958e-05/2.151, allocations: 169 kB / 1.052 GB, free: 87.3 MB / 450.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001393/2.153, allocations: 0.9558 MB / 1.053 GB, free: 87.15 MB / 450.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0002708/2.153, allocations: 39.81 kB / 1.053 GB, free: 87.12 MB / 450.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003496/2.153, allocations: 0.533 MB / 1.053 GB, free: 86.86 MB / 450.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004111/2.154, allocations: 453.6 kB / 1.054 GB, free: 86.63 MB / 450.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.261e-05/2.154, allocations: 0 / 1.054 GB, free: 86.63 MB / 450.8 MB Notification: Performance of setup shared object (initialization): time 9.666e-05/2.154, allocations: 376.5 kB / 1.054 GB, free: 86.32 MB / 450.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001038/2.155, allocations: 0.7404 MB / 1.055 GB, free: 86.32 MB / 450.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001151/2.156, allocations: 1.131 MB / 1.056 GB, free: 85.89 MB / 450.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006488/2.163, allocations: 1.843 MB / 1.058 GB, free: 85.88 MB / 450.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.827e-05/2.163, allocations: 3.938 kB / 1.058 GB, free: 85.88 MB / 450.8 MB Notification: Performance of matching and sorting (n=221) (initialization): time 0.009542/2.172, allocations: 3.241 MB / 1.061 GB, free: 85.69 MB / 450.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.0008507/2.173, allocations: 4.275 MB / 1.065 GB, free: 81.25 MB / 450.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.872e-05/2.173, allocations: 11.81 kB / 1.065 GB, free: 81.25 MB / 450.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00133/2.174, allocations: 459.1 kB / 1.066 GB, free: 81.22 MB / 450.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001412/2.176, allocations: 349.9 kB / 1.066 GB, free: 81.22 MB / 450.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004756/2.181, allocations: 3.399 MB / 1.069 GB, free: 79.13 MB / 450.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001805/2.182, allocations: 104.1 kB / 1.069 GB, free: 79.13 MB / 450.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001724/2.183, allocations: 82.22 kB / 1.069 GB, free: 79.13 MB / 450.8 MB Notification: Performance of prepare postOptimizeDAE: time 1.092e-05/2.183, allocations: 3.969 kB / 1.069 GB, free: 79.13 MB / 450.8 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007687/2.19, allocations: 2.861 MB / 1.072 GB, free: 79.05 MB / 450.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.567e-05/2.19, allocations: 10.91 kB / 1.072 GB, free: 79.05 MB / 450.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001067/2.191, allocations: 359.9 kB / 1.072 GB, free: 79.02 MB / 450.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001302/2.193, allocations: 356.2 kB / 1.073 GB, free: 79.02 MB / 450.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003434/2.196, allocations: 3.034 MB / 1.076 GB, free: 76.94 MB / 450.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001536/2.198, allocations: 101.2 kB / 1.076 GB, free: 76.93 MB / 450.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001535/2.198, allocations: 82.12 kB / 1.076 GB, free: 76.93 MB / 450.8 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.0004547/2.198, allocations: 161.5 kB / 1.076 GB, free: 76.83 MB / 450.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002527/2.199, allocations: 151.3 kB / 1.076 GB, free: 76.75 MB / 450.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005588/2.204, allocations: 2.51 MB / 1.079 GB, free: 76.61 MB / 450.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.687e-05/2.204, allocations: 15.12 kB / 1.079 GB, free: 76.61 MB / 450.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.486e-06/2.204, allocations: 6.375 kB / 1.079 GB, free: 76.61 MB / 450.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.475e-05/2.204, allocations: 10.22 kB / 1.079 GB, free: 76.61 MB / 450.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00735/2.212, allocations: 3.982 MB / 1.083 GB, free: 76.21 MB / 450.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.356e-06/2.212, allocations: 3.062 kB / 1.083 GB, free: 76.21 MB / 450.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001057/2.213, allocations: 237.6 kB / 1.083 GB, free: 76.21 MB / 450.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001285/2.214, allocations: 459.1 kB / 1.083 GB, free: 76.18 MB / 450.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001073/2.214, allocations: 21.22 kB / 1.083 GB, free: 76.18 MB / 450.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003341/2.217, allocations: 3.124 MB / 1.086 GB, free: 74.09 MB / 450.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.31e-06/2.217, allocations: 2.875 kB / 1.086 GB, free: 74.09 MB / 450.8 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00581/2.223, allocations: 3.342 MB / 1.09 GB, free: 73.63 MB / 450.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006733/2.224, allocations: 245 kB / 1.09 GB, free: 73.45 MB / 450.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003051/2.224, allocations: 12.83 kB / 1.09 GB, free: 73.45 MB / 450.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001152/2.225, allocations: 85.28 kB / 1.09 GB, free: 73.45 MB / 450.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002728/2.226, allocations: 139.6 kB / 1.09 GB, free: 73.45 MB / 450.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001489/2.226, allocations: 60.78 kB / 1.09 GB, free: 73.45 MB / 450.8 MB Notification: Performance of sort global known variables: time 0.0009132/2.227, allocations: 0.717 MB / 1.091 GB, free: 73.34 MB / 450.8 MB Notification: Performance of remove unused functions: time 0.004195/2.231, allocations: 1.292 MB / 1.092 GB, free: 73.34 MB / 450.8 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.002786/2.234, allocations: 1.227 MB / 1.093 GB, free: 73.23 MB / 450.8 MB Notification: Performance of simCode: created initialization part: time 0.004554/2.238, allocations: 2.957 MB / 1.096 GB, free: 73.19 MB / 450.8 MB Notification: Performance of simCode: created event and clocks part: time 8.005e-06/2.238, allocations: 5.625 kB / 1.096 GB, free: 73.19 MB / 450.8 MB Notification: Performance of simCode: created simulation system equations: time 0.001594/2.24, allocations: 1.068 MB / 1.097 GB, free: 73.17 MB / 450.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0031/2.243, allocations: 0.6095 MB / 1.098 GB, free: 73.16 MB / 450.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005389/2.249, allocations: 2.785 MB / 1.101 GB, free: 72.58 MB / 450.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001223/2.25, allocations: 1.607 MB / 1.102 GB, free: 71.85 MB / 450.8 MB Notification: Performance of SimCode: time 5.81e-07/2.25, allocations: 2.562 kB / 1.102 GB, free: 71.85 MB / 450.8 MB Notification: Performance of Templates: time 0.0778/2.328, allocations: 51.98 MB / 1.153 GB, free: 69.37 MB / 450.8 MB make -j1 -f Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.makefile (rm -f Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.pipe ; mkfifo Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.pipe >> ../files/Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.sim & ./Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Fluid/Examples/AST_BatchPlant/Test/TanksWithEmptyingPipe2/TanksWithEmptyingPipe2.csv","../files/Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches