Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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_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_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.001246/0.001246, allocations: 183.8 kB / 8.475 MB, free: 0.5391 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.314/1.314, allocations: 205.2 MB / 214.1 MB, free: 8.598 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.0009812/0.0009813, allocations: 96.89 kB / 262.1 MB, free: 5.082 MB / 210.8 MB Notification: Performance of FrontEnd - loaded program: time 9.748e-06/9.778e-06, allocations: 0 / 315 MB, free: 2 MB / 258.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09309/0.09312, allocations: 47.56 MB / 362.6 MB, free: 2.32 MB / 306.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5655/0.6587, allocations: 326 MB / 0.6724 GB, free: 5.199 MB / 418.8 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002083/0.6589, allocations: 91.19 kB / 0.6725 GB, free: 5.152 MB / 418.8 MB Notification: Performance of FrontEnd: time 0.9272/1.586, allocations: 324.9 MB / 0.9897 GB, free: 14.3 MB / 418.8 MB Notification: Performance of Transformations before backend: time 0.0001303/1.586, allocations: 48.09 kB / 0.9898 GB, free: 14.26 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: 315 * Number of variables: 315 Notification: Performance of Generate backend data structure: time 0.005934/1.592, allocations: 2.056 MB / 0.9918 GB, free: 12.17 MB / 418.8 MB Notification: Performance of prepare preOptimizeDAE: time 4.481e-05/1.592, allocations: 8.031 kB / 0.9918 GB, free: 12.16 MB / 418.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000912/1.593, allocations: 205.7 kB / 0.992 GB, free: 11.96 MB / 418.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002745/1.596, allocations: 1.192 MB / 0.9932 GB, free: 10.73 MB / 418.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.937e-05/1.596, allocations: 47.91 kB / 0.9932 GB, free: 10.69 MB / 418.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002094/1.596, allocations: 72 kB / 0.9933 GB, free: 10.62 MB / 418.8 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002604/1.599, allocations: 1.797 MB / 0.995 GB, free: 8.816 MB / 418.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002462/1.601, allocations: 1.798 MB / 0.9968 GB, free: 6.914 MB / 418.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.841e-05/1.601, allocations: 4 kB / 0.9968 GB, free: 6.91 MB / 418.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001524/1.602, allocations: 4 kB / 0.9968 GB, free: 6.906 MB / 418.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001035/1.602, allocations: 119.6 kB / 0.9969 GB, free: 6.789 MB / 418.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1554/1.757, allocations: 7.401 MB / 1.004 GB, free: 75.94 MB / 418.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001214/1.758, allocations: 0.9038 MB / 1.005 GB, free: 75.91 MB / 418.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008211/1.759, allocations: 0.7303 MB / 1.006 GB, free: 75.9 MB / 418.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003885/1.763, allocations: 3.346 MB / 1.009 GB, free: 74.41 MB / 418.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.394e-05/1.763, allocations: 52.19 kB / 1.009 GB, free: 74.37 MB / 418.8 MB Notification: Performance of pre-optimization done (n=119): time 2.325e-06/1.763, allocations: 0 / 1.009 GB, free: 74.37 MB / 418.8 MB Notification: Performance of matching and sorting (n=134): time 0.01485/1.778, allocations: 4.882 MB / 1.014 GB, free: 73.86 MB / 418.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.419e-05/1.778, allocations: 170.8 kB / 1.014 GB, free: 73.67 MB / 418.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001258/1.779, allocations: 0.9478 MB / 1.015 GB, free: 73.52 MB / 418.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0001528/1.78, allocations: 36.47 kB / 1.015 GB, free: 73.49 MB / 418.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003371/1.78, allocations: 0.5381 MB / 1.015 GB, free: 73.23 MB / 418.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003467/1.78, allocations: 448.5 kB / 1.016 GB, free: 73 MB / 418.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.014e-05/1.78, allocations: 0 / 1.016 GB, free: 73 MB / 418.8 MB Notification: Performance of setup shared object (initialization): time 9.203e-05/1.78, allocations: 382.6 kB / 1.016 GB, free: 72.7 MB / 418.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009639/1.781, allocations: 0.7364 MB / 1.017 GB, free: 72.7 MB / 418.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001107/1.783, allocations: 1.126 MB / 1.018 GB, free: 72.26 MB / 418.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01155/1.794, allocations: 2.7 MB / 1.021 GB, free: 72.25 MB / 418.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.33e-05/1.794, allocations: 3.562 kB / 1.021 GB, free: 72.25 MB / 418.8 MB Notification: Performance of matching and sorting (n=221) (initialization): time 0.01475/1.809, allocations: 4.096 MB / 1.025 GB, free: 72.07 MB / 418.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.0008382/1.81, allocations: 4.276 MB / 1.029 GB, free: 67.62 MB / 418.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.113e-05/1.81, allocations: 12.28 kB / 1.029 GB, free: 67.62 MB / 418.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001342/1.811, allocations: 463.6 kB / 1.029 GB, free: 67.59 MB / 418.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001326/1.812, allocations: 345.8 kB / 1.03 GB, free: 67.59 MB / 418.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004532/1.817, allocations: 3.405 MB / 1.033 GB, free: 65.5 MB / 418.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00169/1.819, allocations: 109.3 kB / 1.033 GB, free: 65.5 MB / 418.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001747/1.819, allocations: 78.19 kB / 1.033 GB, free: 65.5 MB / 418.8 MB Notification: Performance of prepare postOptimizeDAE: time 9.217e-06/1.819, allocations: 3.531 kB / 1.033 GB, free: 65.5 MB / 418.8 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01342/1.832, allocations: 3.721 MB / 1.037 GB, free: 65.43 MB / 418.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.019e-05/1.832, allocations: 11.09 kB / 1.037 GB, free: 65.43 MB / 418.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001105/1.834, allocations: 337.7 kB / 1.037 GB, free: 65.39 MB / 418.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00134/1.835, allocations: 361.9 kB / 1.037 GB, free: 65.39 MB / 418.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003596/1.838, allocations: 3.043 MB / 1.04 GB, free: 63.31 MB / 418.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001568/1.84, allocations: 105.2 kB / 1.041 GB, free: 63.3 MB / 418.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001762/1.84, allocations: 74.28 kB / 1.041 GB, free: 63.3 MB / 418.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.0004233/1.841, allocations: 158.3 kB / 1.041 GB, free: 63.2 MB / 418.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002553/1.841, allocations: 149.4 kB / 1.041 GB, free: 63.12 MB / 418.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005797/1.847, allocations: 2.509 MB / 1.043 GB, free: 62.97 MB / 418.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.963e-05/1.847, allocations: 16.53 kB / 1.043 GB, free: 62.97 MB / 418.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.384e-06/1.847, allocations: 0 / 1.043 GB, free: 62.97 MB / 418.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.526e-05/1.847, allocations: 8.172 kB / 1.043 GB, free: 62.97 MB / 418.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007606/1.854, allocations: 3.993 MB / 1.047 GB, free: 62.57 MB / 418.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.284e-06/1.854, allocations: 3.609 kB / 1.047 GB, free: 62.57 MB / 418.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001082/1.856, allocations: 240.9 kB / 1.048 GB, free: 62.57 MB / 418.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001323/1.857, allocations: 450.2 kB / 1.048 GB, free: 62.54 MB / 418.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001014/1.857, allocations: 31.69 kB / 1.048 GB, free: 62.54 MB / 418.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003274/1.86, allocations: 3.117 MB / 1.051 GB, free: 60.45 MB / 418.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.701e-06/1.86, allocations: 7.656 kB / 1.051 GB, free: 60.45 MB / 418.8 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00562/1.866, allocations: 3.339 MB / 1.054 GB, free: 59.99 MB / 418.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004926/1.866, allocations: 247.4 kB / 1.055 GB, free: 59.82 MB / 418.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000283/1.867, allocations: 14.05 kB / 1.055 GB, free: 59.82 MB / 418.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001143/1.868, allocations: 82.89 kB / 1.055 GB, free: 59.81 MB / 418.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002441/1.868, allocations: 138.2 kB / 1.055 GB, free: 59.81 MB / 418.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001336/1.868, allocations: 64.52 kB / 1.055 GB, free: 59.81 MB / 418.8 MB Notification: Performance of sort global known variables: time 0.0008473/1.869, allocations: 0.7133 MB / 1.056 GB, free: 59.7 MB / 418.8 MB Notification: Performance of remove unused functions: time 0.003385/1.873, allocations: 1.291 MB / 1.057 GB, free: 59.7 MB / 418.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.002288/1.875, allocations: 1.199 MB / 1.058 GB, free: 59.59 MB / 418.8 MB Notification: Performance of simCode: created initialization part: time 0.004431/1.879, allocations: 2.964 MB / 1.061 GB, free: 59.55 MB / 418.8 MB Notification: Performance of simCode: created event and clocks part: time 5.269e-06/1.879, allocations: 3.531 kB / 1.061 GB, free: 59.55 MB / 418.8 MB Notification: Performance of simCode: created simulation system equations: time 0.001559/1.881, allocations: 1.065 MB / 1.062 GB, free: 59.54 MB / 418.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002822/1.884, allocations: 0.5957 MB / 1.062 GB, free: 59.53 MB / 418.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004784/1.889, allocations: 2.784 MB / 1.065 GB, free: 58.96 MB / 418.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001194/1.89, allocations: 1.601 MB / 1.067 GB, free: 58.23 MB / 418.8 MB Notification: Performance of SimCode: time 8.82e-07/1.89, allocations: 0 / 1.067 GB, free: 58.23 MB / 418.8 MB Notification: Performance of Templates: time 0.07131/1.961, allocations: 52.04 MB / 1.118 GB, free: 55.28 MB / 418.8 MB make -j1 -f Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.makefile (rm -f Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.pipe ; mkfifo Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.pipe >> ../files/Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.sim & ./Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Fluid/Examples/AST_BatchPlant/Test/TanksWithEmptyingPipe2/TanksWithEmptyingPipe2.csv","../files/Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches