Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.002478/0.002478, allocations: 88.05 kB / 19.44 MB, free: 320 kB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002906/0.002906, allocations: 173.3 kB / 22.76 MB, free: 1.641 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.575/1.575, allocations: 177.1 MB / 203.1 MB, free: 5.617 MB / 186.7 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 3.358/3.358, allocations: 429.4 MB / 0.6729 GB, free: 4.004 MB / 0.6355 GB " [Timeout remaining time 176] Using package Buildings with version 14.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|gFun_int",fileNamePrefix="Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation") translateModel(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|gFun_int",fileNamePrefix="Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.814e-06/1.814e-06, allocations: 0 / 0.8775 GB, free: 6.551 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.946e-05/3.127e-05, allocations: 10.09 kB / 0.8775 GB, free: 6.543 MB / 0.8386 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation): time 0.003744/0.003775, allocations: 1.805 MB / 0.8793 GB, free: 4.754 MB / 0.8386 GB Notification: Performance of NFInst.instExpressions: time 0.009782/0.01356, allocations: 5.197 MB / 0.8844 GB, free: 15.55 MB / 0.8542 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001491/0.01371, allocations: 0 / 0.8844 GB, free: 15.55 MB / 0.8542 GB Notification: Performance of NFTyping.typeComponents: time 0.001399/0.01511, allocations: 338.3 kB / 0.8847 GB, free: 15.21 MB / 0.8542 GB Notification: Performance of NFTyping.typeBindings: time 0.0001606/0.01527, allocations: 71.59 kB / 0.8848 GB, free: 15.14 MB / 0.8542 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/Math/Random.mo:1057:5-1146:31:writable] Warning: Pure function 'Modelica.Math.Random.Utilities.initializeImpureRandom' contains a call to impure function 'Modelica.Math.Random.Utilities.initializeImpureRandom.setInternalState'. Notification: Performance of NFTyping.typeClassSections: time 0.004858/0.02012, allocations: 1.589 MB / 0.8863 GB, free: 13.55 MB / 0.8542 GB Notification: Performance of NFFlatten.flatten: time 0.0003439/0.02047, allocations: 178.5 kB / 0.8865 GB, free: 13.38 MB / 0.8542 GB Notification: Performance of NFFlatten.resolveConnections: time 4.65e-05/0.02051, allocations: 5.812 kB / 0.8865 GB, free: 13.38 MB / 0.8542 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001566/0.02067, allocations: 79.78 kB / 0.8866 GB, free: 13.3 MB / 0.8542 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002789/0.02095, allocations: 159.6 kB / 0.8867 GB, free: 13.14 MB / 0.8542 GB Notification: Performance of NFPackage.collectConstants: time 5.415e-05/0.021, allocations: 12 kB / 0.8867 GB, free: 13.13 MB / 0.8542 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00444/0.02544, allocations: 2.409 MB / 0.8891 GB, free: 10.71 MB / 0.8542 GB Notification: Performance of NFScalarize.scalarize: time 0.0003171/0.02576, allocations: 283.9 kB / 0.8894 GB, free: 10.43 MB / 0.8542 GB Notification: Performance of NFVerifyModel.verify: time 0.0002461/0.02601, allocations: 168 kB / 0.8895 GB, free: 10.27 MB / 0.8542 GB Notification: Performance of NFConvertDAE.convert: time 0.004568/0.03058, allocations: 2.517 MB / 0.892 GB, free: 7.746 MB / 0.8542 GB Notification: Performance of FrontEnd - DAE generated: time 3.938e-06/0.03058, allocations: 0 / 0.892 GB, free: 7.746 MB / 0.8542 GB Notification: Performance of FrontEnd: time 3.937e-06/0.03058, allocations: 4 kB / 0.892 GB, free: 7.742 MB / 0.8542 GB Notification: Performance of Transformations before backend: time 9.568e-06/0.03059, allocations: 0 / 0.892 GB, free: 7.742 MB / 0.8542 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.01225/0.04284, allocations: 1.474 MB / 0.8934 GB, free: 6.227 MB / 0.8542 GB Notification: Performance of prepare preOptimizeDAE: time 4.384e-05/0.04288, allocations: 16.03 kB / 0.8934 GB, free: 6.211 MB / 0.8542 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004365/0.04332, allocations: 100.2 kB / 0.8935 GB, free: 6.113 MB / 0.8542 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006272/0.04395, allocations: 350.6 kB / 0.8939 GB, free: 5.734 MB / 0.8542 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.563e-05/0.04396, allocations: 4.375 kB / 0.8939 GB, free: 5.73 MB / 0.8542 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.97e-05/0.044, allocations: 4.375 kB / 0.8939 GB, free: 5.727 MB / 0.8542 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005065/0.04451, allocations: 361.4 kB / 0.8942 GB, free: 5.359 MB / 0.8542 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.285e-05/0.04452, allocations: 192 / 0.8942 GB, free: 5.359 MB / 0.8542 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.722e-05/0.04454, allocations: 4.375 kB / 0.8942 GB, free: 5.355 MB / 0.8542 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.073e-06/0.04455, allocations: 7.938 kB / 0.8942 GB, free: 5.348 MB / 0.8542 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000482/0.04503, allocations: 391.7 kB / 0.8946 GB, free: 4.965 MB / 0.8542 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008644/0.04589, allocations: 0.6758 MB / 0.8953 GB, free: 4.254 MB / 0.8542 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006371/0.04653, allocations: 0.5251 MB / 0.8958 GB, free: 3.703 MB / 0.8542 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000368/0.0469, allocations: 315.3 kB / 0.8961 GB, free: 3.387 MB / 0.8542 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006969/0.04759, allocations: 139.9 kB / 0.8962 GB, free: 3.25 MB / 0.8542 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004949/0.04809, allocations: 384.2 kB / 0.8966 GB, free: 2.852 MB / 0.8542 GB Notification: Performance of pre-optimization done (n=8): time 1.012e-06/0.04809, allocations: 0 / 0.8966 GB, free: 2.852 MB / 0.8542 GB Notification: Performance of matching and sorting (n=8): time 0.001671/0.04976, allocations: 1.192 MB / 0.8977 GB, free: 1.652 MB / 0.8542 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.813e-05/0.04984, allocations: 88.98 kB / 0.8978 GB, free: 1.547 MB / 0.8542 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001588/0.05143, allocations: 1.283 MB / 0.8991 GB, free: 260 kB / 0.8542 GB Notification: Performance of collectPreVariables (initialization): time 4.246e-05/0.05147, allocations: 25.83 kB / 0.8991 GB, free: 228 kB / 0.8542 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003741/0.05184, allocations: 384.7 kB / 0.8995 GB, free: 15.84 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 4.415e-05/0.05189, allocations: 23.8 kB / 0.8995 GB, free: 15.81 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006262/0.05251, allocations: 406.5 kB / 0.8999 GB, free: 15.41 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 0.0002736/0.05279, allocations: 0.4926 MB / 0.9004 GB, free: 14.91 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008463/0.05363, allocations: 0.6586 MB / 0.901 GB, free: 14.25 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001052/0.05469, allocations: 0.8203 MB / 0.9018 GB, free: 13.42 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008077/0.06276, allocations: 3.903 MB / 0.9056 GB, free: 9.422 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.809e-06/0.06277, allocations: 4 kB / 0.9056 GB, free: 9.418 MB / 0.8698 GB Notification: Performance of matching and sorting (n=319) (initialization): time 0.005819/0.06859, allocations: 4.199 MB / 0.9097 GB, free: 5.184 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 2.326e-05/0.06861, allocations: 4 kB / 0.9097 GB, free: 5.18 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.714e-05/0.06864, allocations: 8 kB / 0.9097 GB, free: 5.172 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.054e-05/0.06866, allocations: 0 / 0.9097 GB, free: 5.172 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001836/0.06884, allocations: 35.86 kB / 0.9098 GB, free: 5.137 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.037e-06/0.06885, allocations: 0 / 0.9098 GB, free: 5.137 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006473/0.0695, allocations: 237.3 kB / 0.91 GB, free: 4.902 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.381e-05/0.06956, allocations: 28.02 kB / 0.91 GB, free: 4.875 MB / 0.8698 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 13 (cluSiz[1],labels[1],gFun2,$PRE.gFun2,gFun1,$PRE.gFun1,t2,$PRE.t2,t1,$PRE.t1,k,$PRE.k,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (17): * Single equations (assignments): 13 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002575/0.06982, allocations: 168.6 kB / 0.9102 GB, free: 4.699 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.976e-05/0.06992, allocations: 83.3 kB / 0.9103 GB, free: 4.617 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00114/0.07106, allocations: 0.8626 MB / 0.9111 GB, free: 3.742 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.677e-06/0.07106, allocations: 0 / 0.9111 GB, free: 3.742 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.203e-06/0.07107, allocations: 3.938 kB / 0.9111 GB, free: 3.738 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.788e-06/0.07107, allocations: 3.938 kB / 0.9111 GB, free: 3.734 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006865/0.07176, allocations: 0.5367 MB / 0.9116 GB, free: 3.168 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.914e-06/0.07176, allocations: 4 kB / 0.9116 GB, free: 3.164 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.798e-05/0.07183, allocations: 7.938 kB / 0.9116 GB, free: 3.156 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.78e-06/0.07184, allocations: 4 kB / 0.9117 GB, free: 3.152 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.472e-05/0.07185, allocations: 3.984 kB / 0.9117 GB, free: 3.148 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.953e-06/0.07185, allocations: 0 / 0.9117 GB, free: 3.148 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.313e-06/0.07185, allocations: 0 / 0.9117 GB, free: 3.148 MB / 0.8698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001126/0.07298, allocations: 0.9433 MB / 0.9126 GB, free: 2.18 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001325/0.07311, allocations: 87.3 kB / 0.9127 GB, free: 2.094 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.868e-05/0.07318, allocations: 8 kB / 0.9127 GB, free: 2.086 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001469/0.07333, allocations: 3.984 kB / 0.9127 GB, free: 2.082 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.551e-05/0.07338, allocations: 7.938 kB / 0.9127 GB, free: 2.074 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.896e-05/0.07343, allocations: 19.91 kB / 0.9127 GB, free: 2.055 MB / 0.8698 GB Notification: Performance of sorting global known variables: time 0.0008204/0.07425, allocations: 0.6168 MB / 0.9133 GB, free: 1.434 MB / 0.8698 GB Notification: Performance of sort global known variables: time 9e-08/0.07425, allocations: 0 / 0.9133 GB, free: 1.434 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.001943/0.0762, allocations: 0.5884 MB / 0.9139 GB, free: 0.8438 MB / 0.8698 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,k,t1,t2,gFun1,gFun2) * Number of discrete states: 2 (k,t2) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002407/0.0786, allocations: 0.8018 MB / 0.9147 GB, free: 60 kB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.001957/0.08056, allocations: 1.383 MB / 0.916 GB, free: 14.66 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 5.45e-06/0.08057, allocations: 4 kB / 0.916 GB, free: 14.65 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.0003706/0.08094, allocations: 307.5 kB / 0.9163 GB, free: 14.35 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004307/0.08137, allocations: 53.88 kB / 0.9164 GB, free: 14.3 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002423/0.08379, allocations: 1.701 MB / 0.918 GB, free: 12.55 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004311/0.08422, allocations: 377.8 kB / 0.9184 GB, free: 12.16 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 0.000146/0.08437, allocations: 37.45 kB / 0.9184 GB, free: 12.12 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001154/0.08448, allocations: 24.48 kB / 0.9184 GB, free: 12.1 MB / 0.8855 GB Notification: Performance of SimCode: time 1.613e-06/0.08448, allocations: 4 kB / 0.9184 GB, free: 12.1 MB / 0.8855 GB Notification: Performance of Templates: time 0.02925/0.1137, allocations: 14.79 MB / 0.9329 GB, free: 13.45 MB / 0.9011 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe >> ../files/Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.sim & ./Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_SmallScaleValidation.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 9.5192095519742]