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_1borehole_5meters.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.001461/0.001461, allocations: 92.2 kB / 20.19 MB, free: 4.359 MB / 18.57 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.001682/0.001682, allocations: 177 kB / 23.49 MB, free: 1.055 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 0.9428/0.9428, allocations: 177.1 MB / 203.8 MB, free: 5.652 MB / 186.7 MB " [Timeout remaining time 179] 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 2.115/2.115, allocations: 429.5 MB / 0.6736 GB, free: 4.051 MB / 0.6355 GB " [Timeout remaining time 177] 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_1borehole_5meters,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|gFun_int",fileNamePrefix="Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters") translateModel(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|gFun_int",fileNamePrefix="Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 2.204e-06/2.204e-06, allocations: 0.875 kB / 0.8783 GB, free: 6.543 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.483e-05/2.703e-05, allocations: 8.172 kB / 0.8783 GB, free: 6.539 MB / 0.8386 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters): time 0.002211/0.002238, allocations: 1.48 MB / 0.8797 GB, free: 5.066 MB / 0.8386 GB Notification: Performance of NFInst.instExpressions: time 0.004613/0.006851, allocations: 4.035 MB / 0.8837 GB, free: 1.023 MB / 0.8386 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.304e-05/0.006924, allocations: 0 / 0.8837 GB, free: 1.023 MB / 0.8386 GB Notification: Performance of NFTyping.typeComponents: time 0.0001168/0.00704, allocations: 11.86 kB / 0.8837 GB, free: 1.012 MB / 0.8386 GB Notification: Performance of NFTyping.typeBindings: time 0.0002395/0.00728, allocations: 31.77 kB / 0.8837 GB, free: 0.9805 MB / 0.8386 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.003186/0.01047, allocations: 1.609 MB / 0.8853 GB, free: 15.37 MB / 0.8542 GB Notification: Performance of NFFlatten.flatten: time 0.0001452/0.01061, allocations: 99.61 kB / 0.8854 GB, free: 15.27 MB / 0.8542 GB Notification: Performance of NFFlatten.resolveConnections: time 4.592e-05/0.01066, allocations: 7.984 kB / 0.8854 GB, free: 15.26 MB / 0.8542 GB Notification: Performance of NFEvalConstants.evaluate: time 8.294e-05/0.01074, allocations: 51.88 kB / 0.8854 GB, free: 15.21 MB / 0.8542 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001932/0.01093, allocations: 143.7 kB / 0.8856 GB, free: 15.07 MB / 0.8542 GB Notification: Performance of NFPackage.collectConstants: time 2.728e-05/0.01096, allocations: 16 kB / 0.8856 GB, free: 15.05 MB / 0.8542 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003054/0.01401, allocations: 2.401 MB / 0.8879 GB, free: 12.65 MB / 0.8542 GB Notification: Performance of NFScalarize.scalarize: time 0.0001739/0.01419, allocations: 275.9 kB / 0.8882 GB, free: 12.38 MB / 0.8542 GB Notification: Performance of NFVerifyModel.verify: time 0.0001306/0.01432, allocations: 148 kB / 0.8883 GB, free: 12.23 MB / 0.8542 GB Notification: Performance of NFConvertDAE.convert: time 0.00317/0.01749, allocations: 2.459 MB / 0.8907 GB, free: 9.766 MB / 0.8542 GB Notification: Performance of FrontEnd - DAE generated: time 4.248e-06/0.01749, allocations: 0 / 0.8907 GB, free: 9.766 MB / 0.8542 GB Notification: Performance of FrontEnd: time 1.313e-06/0.01749, allocations: 4 kB / 0.8907 GB, free: 9.762 MB / 0.8542 GB Notification: Performance of Transformations before backend: time 8.255e-06/0.0175, allocations: 3.938 kB / 0.8907 GB, free: 9.758 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.004865/0.02237, allocations: 1.396 MB / 0.8921 GB, free: 8.32 MB / 0.8542 GB Notification: Performance of prepare preOptimizeDAE: time 4.154e-05/0.02241, allocations: 8.031 kB / 0.8921 GB, free: 8.312 MB / 0.8542 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003041/0.02271, allocations: 104.2 kB / 0.8922 GB, free: 8.211 MB / 0.8542 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002919/0.023, allocations: 293.3 kB / 0.8925 GB, free: 7.887 MB / 0.8542 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.632e-05/0.02302, allocations: 12.36 kB / 0.8925 GB, free: 7.875 MB / 0.8542 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.493e-05/0.02305, allocations: 4.375 kB / 0.8925 GB, free: 7.871 MB / 0.8542 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003213/0.02337, allocations: 374.1 kB / 0.8929 GB, free: 7.488 MB / 0.8542 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.893e-06/0.02337, allocations: 4.188 kB / 0.8929 GB, free: 7.484 MB / 0.8542 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.179e-05/0.02339, allocations: 384 / 0.8929 GB, free: 7.484 MB / 0.8542 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.684e-06/0.02339, allocations: 3.938 kB / 0.8929 GB, free: 7.48 MB / 0.8542 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002362/0.02363, allocations: 387.7 kB / 0.8932 GB, free: 7.102 MB / 0.8542 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000453/0.02408, allocations: 0.6391 MB / 0.8939 GB, free: 6.426 MB / 0.8542 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003395/0.02442, allocations: 0.5212 MB / 0.8944 GB, free: 5.879 MB / 0.8542 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001976/0.02462, allocations: 303.4 kB / 0.8947 GB, free: 5.574 MB / 0.8542 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004175/0.02504, allocations: 147.7 kB / 0.8948 GB, free: 5.43 MB / 0.8542 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002644/0.0253, allocations: 380.2 kB / 0.8952 GB, free: 5.035 MB / 0.8542 GB Notification: Performance of pre-optimization done (n=8): time 1.263e-06/0.0253, allocations: 0 / 0.8952 GB, free: 5.035 MB / 0.8542 GB Notification: Performance of matching and sorting (n=8): time 0.000853/0.02616, allocations: 1.16 MB / 0.8963 GB, free: 3.867 MB / 0.8542 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.557e-05/0.0262, allocations: 84.98 kB / 0.8964 GB, free: 3.766 MB / 0.8542 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007465/0.02695, allocations: 1.195 MB / 0.8976 GB, free: 2.555 MB / 0.8542 GB Notification: Performance of collectPreVariables (initialization): time 2.864e-05/0.02698, allocations: 33.69 kB / 0.8976 GB, free: 2.516 MB / 0.8542 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001748/0.02715, allocations: 348.8 kB / 0.8979 GB, free: 2.168 MB / 0.8542 GB Notification: Performance of collectInitialBindings (initialization): time 3.551e-05/0.02719, allocations: 27.78 kB / 0.8979 GB, free: 2.141 MB / 0.8542 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003579/0.02754, allocations: 406.5 kB / 0.8983 GB, free: 1.738 MB / 0.8542 GB Notification: Performance of setup shared object (initialization): time 0.000106/0.02765, allocations: 488.4 kB / 0.8988 GB, free: 1.254 MB / 0.8542 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004605/0.02811, allocations: 0.6781 MB / 0.8995 GB, free: 0.5742 MB / 0.8542 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005306/0.02864, allocations: 0.8438 MB / 0.9003 GB, free: 15.72 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001776/0.03042, allocations: 2.621 MB / 0.9028 GB, free: 13 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.256e-06/0.03042, allocations: 0 / 0.9028 GB, free: 13 MB / 0.8698 GB Notification: Performance of matching and sorting (n=319) (initialization): time 0.003098/0.03352, allocations: 4.23 MB / 0.907 GB, free: 8.738 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 1.982e-05/0.03354, allocations: 4 kB / 0.907 GB, free: 8.734 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.762e-05/0.03356, allocations: 4 kB / 0.907 GB, free: 8.73 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.599e-05/0.03357, allocations: 0 / 0.907 GB, free: 8.73 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001202/0.03369, allocations: 31.86 kB / 0.907 GB, free: 8.699 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.252e-06/0.0337, allocations: 0 / 0.907 GB, free: 8.699 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002732/0.03397, allocations: 237.3 kB / 0.9072 GB, free: 8.465 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.444e-05/0.03401, allocations: 27.98 kB / 0.9073 GB, free: 8.438 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.0001401/0.03415, allocations: 164.6 kB / 0.9074 GB, free: 8.266 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.126e-05/0.0342, allocations: 71.34 kB / 0.9075 GB, free: 8.195 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006134/0.03481, allocations: 0.854 MB / 0.9083 GB, free: 7.332 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.37e-06/0.03482, allocations: 3.984 kB / 0.9083 GB, free: 7.328 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.41e-06/0.03482, allocations: 3.938 kB / 0.9083 GB, free: 7.324 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.057e-06/0.03483, allocations: 4 kB / 0.9083 GB, free: 7.32 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003251/0.03515, allocations: 0.4922 MB / 0.9088 GB, free: 6.797 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.364e-06/0.03515, allocations: 0 / 0.9088 GB, free: 6.797 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.483e-05/0.0352, allocations: 7.938 kB / 0.9088 GB, free: 6.789 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.008e-06/0.0352, allocations: 8.031 kB / 0.9088 GB, free: 6.781 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.176e-05/0.03521, allocations: 3.984 kB / 0.9088 GB, free: 6.777 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.394e-06/0.03522, allocations: 0 / 0.9088 GB, free: 6.777 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.03522, allocations: 0 / 0.9088 GB, free: 6.777 MB / 0.8698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005588/0.03578, allocations: 0.9265 MB / 0.9097 GB, free: 5.824 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 5.969e-05/0.03584, allocations: 79.33 kB / 0.9098 GB, free: 5.746 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.119e-05/0.03588, allocations: 8 kB / 0.9098 GB, free: 5.738 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.13e-05/0.03595, allocations: 8 kB / 0.9098 GB, free: 5.73 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.948e-05/0.03599, allocations: 11.86 kB / 0.9098 GB, free: 5.719 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.204e-05/0.03602, allocations: 19.92 kB / 0.9099 GB, free: 5.699 MB / 0.8698 GB Notification: Performance of sorting global known variables: time 0.0003796/0.0364, allocations: 0.5596 MB / 0.9104 GB, free: 5.133 MB / 0.8698 GB Notification: Performance of sort global known variables: time 2.71e-07/0.0364, allocations: 0 / 0.9104 GB, free: 5.133 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.001179/0.03758, allocations: 0.5845 MB / 0.911 GB, free: 4.547 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.001428/0.03901, allocations: 0.7889 MB / 0.9117 GB, free: 3.777 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.00106/0.04007, allocations: 1.418 MB / 0.9131 GB, free: 2.34 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 2.785e-06/0.04007, allocations: 0 / 0.9131 GB, free: 2.34 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 0.0001923/0.04026, allocations: 307.6 kB / 0.9134 GB, free: 2.035 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002373/0.0405, allocations: 37.77 kB / 0.9135 GB, free: 2 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001269/0.04177, allocations: 1.597 MB / 0.915 GB, free: 368 kB / 0.8698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001017/0.04187, allocations: 187.1 kB / 0.9152 GB, free: 160 kB / 0.8698 GB Notification: Performance of simCode: alias equations: time 8.107e-05/0.04195, allocations: 32.45 kB / 0.9152 GB, free: 124 kB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.187e-05/0.04202, allocations: 24.48 kB / 0.9153 GB, free: 100 kB / 0.8698 GB Notification: Performance of SimCode: time 1.633e-06/0.04202, allocations: 0 / 0.9153 GB, free: 100 kB / 0.8698 GB Notification: Performance of Templates: time 0.01761/0.05964, allocations: 14.35 MB / 0.9293 GB, free: 1.871 MB / 0.8855 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe >> ../files/Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.sim & ./Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_1borehole_5meters.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 5.753371788887307]