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.001016/0.001016, allocations: 93.06 kB / 19.65 MB, free: 276 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.0009186/0.0009186, allocations: 173 kB / 23.02 MB, free: 1.547 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.9497/0.9497, allocations: 177.1 MB / 203.4 MB, free: 5.629 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 1.978/1.978, allocations: 429.5 MB / 0.6732 GB, free: 4.039 MB / 0.6355 GB " [Timeout remaining time 178] 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.543e-06/1.543e-06, allocations: 0 / 0.8783 GB, free: 6.207 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.951e-05/2.105e-05, allocations: 5.734 kB / 0.8783 GB, free: 6.203 MB / 0.8386 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation): time 0.002906/0.002927, allocations: 1.833 MB / 0.8801 GB, free: 4.383 MB / 0.8386 GB Notification: Performance of NFInst.instExpressions: time 0.008156/0.01108, allocations: 5.228 MB / 0.8852 GB, free: 15.14 MB / 0.8542 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001073/0.01119, allocations: 0 / 0.8852 GB, free: 15.14 MB / 0.8542 GB Notification: Performance of NFTyping.typeComponents: time 0.001304/0.01249, allocations: 334.4 kB / 0.8855 GB, free: 14.82 MB / 0.8542 GB Notification: Performance of NFTyping.typeBindings: time 0.0001377/0.01263, allocations: 75.53 kB / 0.8856 GB, free: 14.74 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.004215/0.01685, allocations: 1.605 MB / 0.8871 GB, free: 13.13 MB / 0.8542 GB Notification: Performance of NFFlatten.flatten: time 0.0001907/0.01704, allocations: 171.2 kB / 0.8873 GB, free: 12.96 MB / 0.8542 GB Notification: Performance of NFFlatten.resolveConnections: time 4.166e-05/0.01708, allocations: 5.812 kB / 0.8873 GB, free: 12.96 MB / 0.8542 GB Notification: Performance of NFEvalConstants.evaluate: time 8.003e-05/0.01716, allocations: 79.78 kB / 0.8874 GB, free: 12.88 MB / 0.8542 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001626/0.01732, allocations: 155.6 kB / 0.8875 GB, free: 12.73 MB / 0.8542 GB Notification: Performance of NFPackage.collectConstants: time 2.924e-05/0.01735, allocations: 12 kB / 0.8875 GB, free: 12.72 MB / 0.8542 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002235/0.01959, allocations: 2.475 MB / 0.8899 GB, free: 10.25 MB / 0.8542 GB Notification: Performance of NFScalarize.scalarize: time 0.0001543/0.01974, allocations: 287.8 kB / 0.8902 GB, free: 9.969 MB / 0.8542 GB Notification: Performance of NFVerifyModel.verify: time 0.0001242/0.01987, allocations: 163.9 kB / 0.8904 GB, free: 9.809 MB / 0.8542 GB Notification: Performance of NFConvertDAE.convert: time 0.001895/0.02176, allocations: 2.506 MB / 0.8928 GB, free: 7.297 MB / 0.8542 GB Notification: Performance of FrontEnd - DAE generated: time 3.817e-06/0.02176, allocations: 0 / 0.8928 GB, free: 7.297 MB / 0.8542 GB Notification: Performance of FrontEnd: time 1.062e-06/0.02176, allocations: 4 kB / 0.8928 GB, free: 7.293 MB / 0.8542 GB Notification: Performance of Transformations before backend: time 5.952e-06/0.02177, allocations: 0 / 0.8928 GB, free: 7.293 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.004102/0.02587, allocations: 1.474 MB / 0.8943 GB, free: 5.777 MB / 0.8542 GB Notification: Performance of prepare preOptimizeDAE: time 3.456e-05/0.02591, allocations: 8.031 kB / 0.8943 GB, free: 5.77 MB / 0.8542 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002452/0.02615, allocations: 100.2 kB / 0.8944 GB, free: 5.672 MB / 0.8542 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003679/0.02652, allocations: 346.6 kB / 0.8947 GB, free: 5.297 MB / 0.8542 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.173e-05/0.02653, allocations: 8.375 kB / 0.8947 GB, free: 5.289 MB / 0.8542 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.729e-05/0.02656, allocations: 16.36 kB / 0.8947 GB, free: 5.273 MB / 0.8542 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002895/0.02685, allocations: 374 kB / 0.8951 GB, free: 4.891 MB / 0.8542 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.693e-06/0.02686, allocations: 192 / 0.8951 GB, free: 4.891 MB / 0.8542 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.818e-06/0.02687, allocations: 384 / 0.8951 GB, free: 4.891 MB / 0.8542 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.604e-06/0.02687, allocations: 7.875 kB / 0.8951 GB, free: 4.883 MB / 0.8542 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002205/0.02709, allocations: 387.8 kB / 0.8955 GB, free: 4.504 MB / 0.8542 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004162/0.02751, allocations: 0.668 MB / 0.8961 GB, free: 3.801 MB / 0.8542 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003069/0.02782, allocations: 0.5212 MB / 0.8966 GB, free: 3.254 MB / 0.8542 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001774/0.02799, allocations: 311.4 kB / 0.8969 GB, free: 2.941 MB / 0.8542 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003406/0.02833, allocations: 139.7 kB / 0.8971 GB, free: 2.805 MB / 0.8542 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002314/0.02857, allocations: 384.1 kB / 0.8974 GB, free: 2.406 MB / 0.8542 GB Notification: Performance of pre-optimization done (n=8): time 9.82e-07/0.02857, allocations: 0 / 0.8974 GB, free: 2.406 MB / 0.8542 GB Notification: Performance of matching and sorting (n=8): time 0.0009111/0.02948, allocations: 1.172 MB / 0.8986 GB, free: 1.227 MB / 0.8542 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.554e-05/0.02951, allocations: 85.16 kB / 0.8986 GB, free: 1.125 MB / 0.8542 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007389/0.03025, allocations: 1.276 MB / 0.8999 GB, free: 15.84 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 3.053e-05/0.03028, allocations: 29.7 kB / 0.8999 GB, free: 15.8 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001688/0.03045, allocations: 368.6 kB / 0.9003 GB, free: 15.44 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 3.007e-05/0.03048, allocations: 31.77 kB / 0.9003 GB, free: 15.41 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002384/0.03072, allocations: 406.5 kB / 0.9007 GB, free: 15 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 9.987e-05/0.03082, allocations: 0.4887 MB / 0.9012 GB, free: 14.51 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000406/0.03123, allocations: 0.6781 MB / 0.9018 GB, free: 13.83 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004812/0.03171, allocations: 0.8513 MB / 0.9027 GB, free: 12.97 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001765/0.03347, allocations: 2.625 MB / 0.9052 GB, free: 10.25 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.535e-06/0.03348, allocations: 0 / 0.9052 GB, free: 10.25 MB / 0.8698 GB Notification: Performance of matching and sorting (n=319) (initialization): time 0.002624/0.0361, allocations: 4.242 MB / 0.9094 GB, free: 5.973 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 1.551e-05/0.03611, allocations: 4 kB / 0.9094 GB, free: 5.969 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.383e-05/0.03613, allocations: 4 kB / 0.9094 GB, free: 5.965 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.207e-05/0.03614, allocations: 0 / 0.9094 GB, free: 5.965 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.949e-05/0.03624, allocations: 23.92 kB / 0.9094 GB, free: 5.941 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.901e-06/0.03625, allocations: 4 kB / 0.9094 GB, free: 5.938 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002453/0.03649, allocations: 245.3 kB / 0.9096 GB, free: 5.695 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.375e-05/0.03652, allocations: 28.02 kB / 0.9097 GB, free: 5.668 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.0001206/0.03665, allocations: 164.5 kB / 0.9098 GB, free: 5.496 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.167e-05/0.03669, allocations: 79.3 kB / 0.9099 GB, free: 5.418 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005606/0.03725, allocations: 0.8587 MB / 0.9107 GB, free: 4.547 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.485e-06/0.03725, allocations: 0 / 0.9107 GB, free: 4.547 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.538e-06/0.03725, allocations: 7.938 kB / 0.9107 GB, free: 4.539 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.106e-06/0.03726, allocations: 3.938 kB / 0.9107 GB, free: 4.535 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003073/0.03757, allocations: 0.5211 MB / 0.9113 GB, free: 3.984 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.784e-06/0.03757, allocations: 4.031 kB / 0.9113 GB, free: 3.98 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.751e-05/0.0376, allocations: 11.98 kB / 0.9113 GB, free: 3.969 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.284e-06/0.03761, allocations: 0 / 0.9113 GB, free: 3.969 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.148e-06/0.03762, allocations: 0 / 0.9113 GB, free: 3.969 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.858e-06/0.03762, allocations: 8 kB / 0.9113 GB, free: 3.961 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.302e-06/0.03762, allocations: 0 / 0.9113 GB, free: 3.961 MB / 0.8698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006502/0.03827, allocations: 0.9394 MB / 0.9122 GB, free: 2.996 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 5.058e-05/0.03832, allocations: 83.3 kB / 0.9123 GB, free: 2.914 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.002e-05/0.03836, allocations: 7.984 kB / 0.9123 GB, free: 2.906 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.894e-05/0.03843, allocations: 0 / 0.9123 GB, free: 2.906 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.286e-05/0.03846, allocations: 23.86 kB / 0.9123 GB, free: 2.883 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.248e-05/0.03849, allocations: 11.98 kB / 0.9123 GB, free: 2.871 MB / 0.8698 GB Notification: Performance of sorting global known variables: time 0.0003799/0.03887, allocations: 0.6012 MB / 0.9129 GB, free: 2.266 MB / 0.8698 GB Notification: Performance of sort global known variables: time 7e-08/0.03887, allocations: 0 / 0.9129 GB, free: 2.266 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.0009494/0.03982, allocations: 0.5884 MB / 0.9135 GB, free: 1.676 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.001259/0.04107, allocations: 0.8029 MB / 0.9143 GB, free: 0.8945 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.0009107/0.04198, allocations: 1.414 MB / 0.9156 GB, free: 15.46 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 1.503e-06/0.04199, allocations: 0 / 0.9156 GB, free: 15.46 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.000177/0.04216, allocations: 311.4 kB / 0.9159 GB, free: 15.15 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002589/0.04242, allocations: 65.81 kB / 0.916 GB, free: 15.09 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001205/0.04363, allocations: 1.681 MB / 0.9176 GB, free: 13.36 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.867e-05/0.04373, allocations: 195.6 kB / 0.9178 GB, free: 13.15 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 8.013e-05/0.04381, allocations: 37.45 kB / 0.9179 GB, free: 13.12 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.652e-05/0.04388, allocations: 24.48 kB / 0.9179 GB, free: 13.09 MB / 0.8855 GB Notification: Performance of SimCode: time 7.71e-07/0.04388, allocations: 4 kB / 0.9179 GB, free: 13.09 MB / 0.8855 GB Notification: Performance of Templates: time 0.01885/0.06274, allocations: 16.95 MB / 0.9344 GB, free: 12.28 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","",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.831257116049528]