Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+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_4.0.0_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_4.0.0_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 4.0.0+maint.om/package.mo): time 0.001511/0.001512, allocations: 184.8 kB / 8.134 MB, free: 2.199 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.201/1.201, allocations: 221.4 MB / 229.9 MB, free: 3.078 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009138/0.0009138, allocations: 96.72 kB / 280.8 MB, free: 1.242 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 6.983e-06/7.013e-06, allocations: 0 / 336.5 MB, free: 9.492 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.216/0.216, allocations: 50.39 MB / 386.9 MB, free: 37.98 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5751/0.7912, allocations: 326.6 MB / 0.6968 GB, free: 142.6 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002436/0.7915, allocations: 99.88 kB / 0.6969 GB, free: 142.5 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.011/1.803, allocations: 330.9 MB / 1.02 GB, free: 49.18 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0002404/1.803, allocations: 52.38 kB / 1.02 GB, free: 49.18 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: 315 * Number of variables: 315 Notification: Performance of Generate backend data structure: time 0.006505/1.81, allocations: 2.056 MB / 1.022 GB, free: 48.37 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.774e-05/1.81, allocations: 7.625 kB / 1.022 GB, free: 48.37 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009177/1.811, allocations: 202.9 kB / 1.022 GB, free: 48.27 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002531/1.813, allocations: 1.195 MB / 1.023 GB, free: 47.97 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.509e-05/1.813, allocations: 48.69 kB / 1.023 GB, free: 47.97 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000187/1.813, allocations: 64.97 kB / 1.024 GB, free: 47.97 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002608/1.816, allocations: 1.808 MB / 1.025 GB, free: 47.96 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002408/1.818, allocations: 1.794 MB / 1.027 GB, free: 47.68 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.422e-05/1.819, allocations: 7.625 kB / 1.027 GB, free: 47.68 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001515/1.819, allocations: 3.031 kB / 1.027 GB, free: 47.68 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001226/1.819, allocations: 123.6 kB / 1.027 GB, free: 47.68 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01024/1.829, allocations: 7.417 MB / 1.034 GB, free: 44.35 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00117/1.83, allocations: 0.9028 MB / 1.035 GB, free: 44.33 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008692/1.831, allocations: 0.7254 MB / 1.036 GB, free: 44.32 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004169/1.835, allocations: 3.354 MB / 1.039 GB, free: 42.77 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.313e-05/1.835, allocations: 54.12 kB / 1.039 GB, free: 42.72 MB / 442.7 MB Notification: Performance of pre-optimization done (n=119): time 2.635e-06/1.835, allocations: 0 / 1.039 GB, free: 42.72 MB / 442.7 MB Notification: Performance of matching and sorting (n=134): time 0.01575/1.851, allocations: 4.869 MB / 1.044 GB, free: 42.08 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.325e-05/1.851, allocations: 172.7 kB / 1.044 GB, free: 41.89 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001197/1.852, allocations: 0.952 MB / 1.045 GB, free: 41.73 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001473/1.853, allocations: 33.25 kB / 1.045 GB, free: 41.7 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003194/1.853, allocations: 0.5376 MB / 1.046 GB, free: 41.38 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003365/1.853, allocations: 456.2 kB / 1.046 GB, free: 41.09 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.782e-05/1.853, allocations: 0 / 1.046 GB, free: 41.09 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 9.306e-05/1.853, allocations: 372.8 kB / 1.047 GB, free: 40.78 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000966/1.854, allocations: 0.739 MB / 1.047 GB, free: 40.78 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00114/1.856, allocations: 1.125 MB / 1.048 GB, free: 40.35 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005151/1.861, allocations: 1.688 MB / 1.05 GB, free: 40.33 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.869e-06/1.861, allocations: 3.688 kB / 1.05 GB, free: 40.33 MB / 442.7 MB Notification: Performance of matching and sorting (n=221) (initialization): time 0.007234/1.868, allocations: 3.081 MB / 1.053 GB, free: 40.15 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007094/1.869, allocations: 4.278 MB / 1.057 GB, free: 35.7 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.671e-05/1.869, allocations: 11.34 kB / 1.057 GB, free: 35.7 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001292/1.87, allocations: 462.5 kB / 1.058 GB, free: 35.67 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001259/1.871, allocations: 346.5 kB / 1.058 GB, free: 35.67 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004474/1.876, allocations: 3.393 MB / 1.061 GB, free: 33.59 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001702/1.878, allocations: 109 kB / 1.061 GB, free: 33.58 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001754/1.878, allocations: 77.53 kB / 1.061 GB, free: 33.58 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.779e-06/1.878, allocations: 9.25 kB / 1.062 GB, free: 33.58 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006679/1.884, allocations: 2.703 MB / 1.064 GB, free: 33.5 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.156e-05/1.884, allocations: 12.72 kB / 1.064 GB, free: 33.5 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001113/1.886, allocations: 341 kB / 1.064 GB, free: 33.47 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001311/1.887, allocations: 357.4 kB / 1.065 GB, free: 33.47 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003553/1.89, allocations: 3.041 MB / 1.068 GB, free: 31.39 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001649/1.892, allocations: 108.3 kB / 1.068 GB, free: 31.38 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001679/1.892, allocations: 77 kB / 1.068 GB, free: 31.38 MB / 442.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.0005583/1.893, allocations: 160.5 kB / 1.068 GB, free: 31.27 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003692/1.893, allocations: 152.2 kB / 1.068 GB, free: 31.19 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006549/1.9, allocations: 2.505 MB / 1.071 GB, free: 31.05 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.347e-05/1.9, allocations: 13.91 kB / 1.071 GB, free: 31.05 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.438e-05/1.9, allocations: 3.906 kB / 1.071 GB, free: 31.04 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.029e-05/1.9, allocations: 13.52 kB / 1.071 GB, free: 31.04 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008875/1.909, allocations: 3.994 MB / 1.075 GB, free: 30.64 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.093e-05/1.909, allocations: 3.406 kB / 1.075 GB, free: 30.64 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001069/1.91, allocations: 235.4 kB / 1.075 GB, free: 30.64 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001381/1.911, allocations: 451.1 kB / 1.075 GB, free: 30.61 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001346/1.911, allocations: 26.78 kB / 1.075 GB, free: 30.61 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003474/1.915, allocations: 3.112 MB / 1.078 GB, free: 28.51 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.786e-06/1.915, allocations: 8.094 kB / 1.078 GB, free: 28.51 MB / 442.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.006219/1.921, allocations: 3.341 MB / 1.082 GB, free: 28.05 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008132/1.922, allocations: 251.6 kB / 1.082 GB, free: 27.87 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005907/1.923, allocations: 10.69 kB / 1.082 GB, free: 27.87 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001559/1.924, allocations: 84.58 kB / 1.082 GB, free: 27.87 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002788/1.925, allocations: 133.4 kB / 1.082 GB, free: 27.86 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001924/1.925, allocations: 64.7 kB / 1.082 GB, free: 27.86 MB / 442.7 MB Notification: Performance of sort global known variables: time 0.001253/1.926, allocations: 0.7164 MB / 1.083 GB, free: 27.75 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.005023/1.931, allocations: 1.288 MB / 1.084 GB, free: 27.54 MB / 442.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.003623/1.935, allocations: 1.209 MB / 1.085 GB, free: 27.22 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.005514/1.94, allocations: 2.963 MB / 1.088 GB, free: 27.17 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 8.606e-06/1.94, allocations: 0 / 1.088 GB, free: 27.17 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001946/1.942, allocations: 1.067 MB / 1.089 GB, free: 27.15 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003749/1.946, allocations: 0.597 MB / 1.09 GB, free: 27.14 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007221/1.953, allocations: 2.783 MB / 1.093 GB, free: 26.57 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00186/1.955, allocations: 1.605 MB / 1.094 GB, free: 25.84 MB / 442.7 MB Notification: Performance of SimCode: time 8.21e-07/1.955, allocations: 0 / 1.094 GB, free: 25.84 MB / 442.7 MB Notification: Performance of Templates: time 0.07645/2.032, allocations: 52.04 MB / 1.145 GB, free: 8.301 MB / 442.7 MB make -j1 -f Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.makefile (rm -f Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.pipe ; mkfifo Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.pipe >> ../files/Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.sim & ./Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches