Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.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.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_trunk_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_trunk_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 trunk/package.mo): time 0.001978/0.001978, allocations: 192.1 kB / 8.533 MB, free: 1.844 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.209/1.209, allocations: 225.5 MB / 234.4 MB, free: 3.348 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009895/0.0009894, allocations: 93.2 kB / 286.3 MB, free: 5.266 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 6.442e-06/6.472e-06, allocations: 0 / 343.1 MB, free: 8.723 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09833/0.09835, allocations: 51.48 MB / 394.6 MB, free: 5.195 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6097/0.7081, allocations: 324.8 MB / 0.7026 GB, free: 31.96 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002024/0.7083, allocations: 86.52 kB / 0.7026 GB, free: 31.92 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.007/1.715, allocations: 286.1 MB / 0.9821 GB, free: 56.65 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0001379/1.715, allocations: 39.17 kB / 0.9821 GB, free: 56.64 MB / 442.7 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.006136/1.722, allocations: 1.799 MB / 0.9839 GB, free: 55.71 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.975e-05/1.722, allocations: 7.938 kB / 0.9839 GB, free: 55.71 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001/1.723, allocations: 167.8 kB / 0.984 GB, free: 55.63 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002755/1.725, allocations: 1.047 MB / 0.9851 GB, free: 55.28 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.476e-05/1.725, allocations: 37.91 kB / 0.9851 GB, free: 55.28 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001596/1.726, allocations: 52.25 kB / 0.9852 GB, free: 55.28 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002531/1.728, allocations: 1.474 MB / 0.9866 GB, free: 55.27 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002599/1.731, allocations: 1.511 MB / 0.9881 GB, free: 55.01 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.143e-05/1.731, allocations: 1 kB / 0.9881 GB, free: 55.01 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001326/1.731, allocations: 2.812 kB / 0.9881 GB, free: 55.01 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001475/1.731, allocations: 111.6 kB / 0.9882 GB, free: 55.01 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01123/1.742, allocations: 6.322 MB / 0.9944 GB, free: 51.38 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001244/1.744, allocations: 0.664 MB / 0.995 GB, free: 51.12 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001022/1.745, allocations: 0.5512 MB / 0.9955 GB, free: 50.92 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004633/1.749, allocations: 2.818 MB / 0.9983 GB, free: 48.95 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.836e-05/1.749, allocations: 45.66 kB / 0.9983 GB, free: 48.9 MB / 442.7 MB Notification: Performance of pre-optimization done (n=80): time 3.326e-06/1.749, allocations: 0 / 0.9983 GB, free: 48.9 MB / 442.7 MB Notification: Performance of matching and sorting (n=90): time 0.01038/1.76, allocations: 3.239 MB / 1.001 GB, free: 47.71 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.039e-05/1.76, allocations: 197.5 kB / 1.002 GB, free: 47.49 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001377/1.761, allocations: 0.8744 MB / 1.003 GB, free: 47.09 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000138/1.761, allocations: 36.08 kB / 1.003 GB, free: 47.06 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003402/1.762, allocations: 0.5121 MB / 1.003 GB, free: 46.67 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002622/1.762, allocations: 304.3 kB / 1.003 GB, free: 46.44 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.982e-05/1.762, allocations: 0 / 1.003 GB, free: 46.44 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 9.605e-05/1.762, allocations: 359.9 kB / 1.004 GB, free: 46.12 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007554/1.763, allocations: 0.55 MB / 1.004 GB, free: 45.91 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000916/1.764, allocations: 0.9333 MB / 1.005 GB, free: 45.22 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004927/1.769, allocations: 1.454 MB / 1.007 GB, free: 44.93 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.454e-05/1.769, allocations: 3.281 kB / 1.007 GB, free: 44.93 MB / 442.7 MB Notification: Performance of matching and sorting (n=177) (initialization): time 0.00698/1.776, allocations: 2.522 MB / 1.009 GB, free: 44.23 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007842/1.777, allocations: 4.353 MB / 1.013 GB, free: 39.61 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.802e-05/1.777, allocations: 11.72 kB / 1.013 GB, free: 39.61 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00104/1.778, allocations: 337.2 kB / 1.014 GB, free: 39.5 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001061/1.779, allocations: 278.5 kB / 1.014 GB, free: 39.48 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003423/1.782, allocations: 2.529 MB / 1.016 GB, free: 37.63 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00157/1.784, allocations: 75.53 kB / 1.016 GB, free: 37.62 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001432/1.784, allocations: 67.23 kB / 1.016 GB, free: 37.61 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.129e-05/1.784, allocations: 10.53 kB / 1.017 GB, free: 37.61 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006098/1.79, allocations: 2.22 MB / 1.019 GB, free: 37.04 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.739e-05/1.79, allocations: 17.98 kB / 1.019 GB, free: 37.04 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009172/1.791, allocations: 269.9 kB / 1.019 GB, free: 36.97 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001042/1.792, allocations: 284.1 kB / 1.019 GB, free: 36.94 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002602/1.795, allocations: 2.278 MB / 1.021 GB, free: 35.18 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001415/1.796, allocations: 77.97 kB / 1.022 GB, free: 35.17 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001341/1.796, allocations: 63.55 kB / 1.022 GB, free: 35.16 MB / 442.7 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.0004648/1.797, allocations: 154.5 kB / 1.022 GB, free: 35.02 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002278/1.797, allocations: 127.4 kB / 1.022 GB, free: 34.96 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003881/1.801, allocations: 1.59 MB / 1.023 GB, free: 34.45 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.008e-05/1.801, allocations: 9.906 kB / 1.023 GB, free: 34.45 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.376e-06/1.801, allocations: 6.75 kB / 1.023 GB, free: 34.45 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.18e-05/1.801, allocations: 6.656 kB / 1.023 GB, free: 34.45 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005352/1.806, allocations: 2.773 MB / 1.026 GB, free: 33.36 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.61e-06/1.806, allocations: 0 / 1.026 GB, free: 33.36 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007051/1.807, allocations: 162.9 kB / 1.026 GB, free: 33.34 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001025/1.808, allocations: 325.2 kB / 1.027 GB, free: 33.24 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.242e-05/1.808, allocations: 16.41 kB / 1.027 GB, free: 33.24 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002452/1.811, allocations: 2.316 MB / 1.029 GB, free: 31.43 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.763e-06/1.811, allocations: 3.25 kB / 1.029 GB, free: 31.43 MB / 442.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.004011/1.815, allocations: 2.19 MB / 1.031 GB, free: 30.49 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005453/1.815, allocations: 228.8 kB / 1.031 GB, free: 30.3 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002388/1.816, allocations: 6.219 kB / 1.031 GB, free: 30.3 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009501/1.817, allocations: 61.3 kB / 1.031 GB, free: 30.3 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002184/1.817, allocations: 96.78 kB / 1.031 GB, free: 30.29 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.922e-05/1.817, allocations: 45.16 kB / 1.031 GB, free: 30.28 MB / 442.7 MB Notification: Performance of sort global known variables: time 0.0009665/1.818, allocations: 0.6634 MB / 1.032 GB, free: 29.97 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.004422/1.822, allocations: 1.145 MB / 1.033 GB, free: 29.73 MB / 442.7 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.003316/1.826, allocations: 1.112 MB / 1.034 GB, free: 29.37 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.003965/1.83, allocations: 2.144 MB / 1.036 GB, free: 28.65 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 7.915e-06/1.83, allocations: 2.031 kB / 1.036 GB, free: 28.65 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001243/1.831, allocations: 0.6659 MB / 1.037 GB, free: 28.17 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002698/1.834, allocations: 476.6 kB / 1.037 GB, free: 27.84 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004266/1.838, allocations: 2.101 MB / 1.04 GB, free: 26.08 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001011/1.839, allocations: 1.416 MB / 1.041 GB, free: 24.88 MB / 442.7 MB Notification: Performance of SimCode: time 1.123e-06/1.839, allocations: 0 / 1.041 GB, free: 24.88 MB / 442.7 MB Notification: Performance of Templates: time 0.06835/1.907, allocations: 41.01 MB / 1.081 GB, free: 2.578 MB / 458.7 MB make -j1 -f Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.makefile (rm -f Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.pipe ; mkfifo Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.pipe >> ../files/Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.sim & ./Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Fluid/Examples/AST_BatchPlant/Test/TanksWithEmptyingPipe1/TanksWithEmptyingPipe1.csv","../files/Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches