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.001533/0.001533, allocations: 82.61 kB / 19.87 MB, free: 4.613 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.001626/0.001626, allocations: 173.1 kB / 23.28 MB, free: 1.215 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.9928/0.9928, allocations: 177.1 MB / 203.7 MB, free: 5.48 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.38/2.38, allocations: 438.1 MB / 0.682 GB, free: 14.14 MB / 0.6511 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_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 2.725e-06/2.725e-06, allocations: 3.938 kB / 0.8898 GB, free: 9.625 MB / 0.8542 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.629e-05/2.901e-05, allocations: 2.312 kB / 0.8898 GB, free: 9.621 MB / 0.8542 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation): time 0.003988/0.004017, allocations: 1.808 MB / 0.8916 GB, free: 7.805 MB / 0.8542 GB Notification: Performance of NFInst.instExpressions: time 0.007399/0.01142, allocations: 5.117 MB / 0.8966 GB, free: 2.664 MB / 0.8542 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001003/0.01152, allocations: 3.938 kB / 0.8966 GB, free: 2.66 MB / 0.8542 GB Notification: Performance of NFTyping.typeComponents: time 0.0009264/0.01244, allocations: 346.3 kB / 0.8969 GB, free: 2.32 MB / 0.8542 GB Notification: Performance of NFTyping.typeBindings: time 9.356e-05/0.01254, allocations: 59.67 kB / 0.897 GB, free: 2.262 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.003347/0.01588, allocations: 1.62 MB / 0.8986 GB, free: 0.6367 MB / 0.8542 GB Notification: Performance of NFFlatten.flatten: time 0.0004465/0.01633, allocations: 171.3 kB / 0.8987 GB, free: 480 kB / 0.8542 GB Notification: Performance of NFFlatten.resolveConnections: time 3.429e-05/0.01636, allocations: 9.797 kB / 0.8988 GB, free: 472 kB / 0.8542 GB Notification: Performance of NFEvalConstants.evaluate: time 8.303e-05/0.01645, allocations: 83.73 kB / 0.8988 GB, free: 388 kB / 0.8542 GB Notification: Performance of NFSimplifyModel.simplify: time 9.495e-05/0.01654, allocations: 61.11 kB / 0.8989 GB, free: 324 kB / 0.8542 GB Notification: Performance of NFPackage.collectConstants: time 1.634e-05/0.01656, allocations: 8 kB / 0.8989 GB, free: 316 kB / 0.8542 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003053/0.01961, allocations: 2.424 MB / 0.9013 GB, free: 13.89 MB / 0.8698 GB Notification: Performance of NFScalarize.scalarize: time 0.0001871/0.0198, allocations: 263.2 kB / 0.9015 GB, free: 13.64 MB / 0.8698 GB Notification: Performance of NFVerifyModel.verify: time 0.000131/0.01993, allocations: 135.4 kB / 0.9016 GB, free: 13.5 MB / 0.8698 GB Notification: Performance of NFConvertDAE.convert: time 0.002892/0.02282, allocations: 2.38 MB / 0.904 GB, free: 11.12 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 1.964e-06/0.02282, allocations: 0 / 0.904 GB, free: 11.12 MB / 0.8698 GB Notification: Performance of FrontEnd: time 7.01e-07/0.02282, allocations: 0 / 0.904 GB, free: 11.12 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 8.095e-06/0.02283, allocations: 0 / 0.904 GB, free: 11.12 MB / 0.8698 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.001576/0.02441, allocations: 1.459 MB / 0.9054 GB, free: 9.617 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 3.881e-05/0.02445, allocations: 12.62 kB / 0.9054 GB, free: 9.605 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002401/0.02469, allocations: 96.2 kB / 0.9055 GB, free: 9.512 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005166/0.0252, allocations: 342.6 kB / 0.9058 GB, free: 9.141 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.306e-05/0.02522, allocations: 8.359 kB / 0.9058 GB, free: 9.133 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.424e-05/0.02524, allocations: 8.375 kB / 0.9058 GB, free: 9.125 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001983/0.02544, allocations: 226.2 kB / 0.9061 GB, free: 8.887 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.983e-06/0.02545, allocations: 192 / 0.9061 GB, free: 8.887 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.636e-06/0.02545, allocations: 8.375 kB / 0.9061 GB, free: 8.879 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.131e-06/0.02546, allocations: 7.938 kB / 0.9061 GB, free: 8.871 MB / 0.8698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000134/0.02559, allocations: 195.8 kB / 0.9063 GB, free: 8.68 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003714/0.02597, allocations: 0.5058 MB / 0.9068 GB, free: 8.145 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001998/0.02617, allocations: 297.9 kB / 0.907 GB, free: 7.828 MB / 0.8698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001015/0.02627, allocations: 171.3 kB / 0.9072 GB, free: 7.652 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003013/0.02657, allocations: 139.9 kB / 0.9073 GB, free: 7.516 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001815/0.02675, allocations: 224.3 kB / 0.9075 GB, free: 7.273 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=8): time 1.212e-06/0.02675, allocations: 0 / 0.9075 GB, free: 7.273 MB / 0.8698 GB Notification: Performance of matching and sorting (n=8): time 0.0006148/0.02737, allocations: 0.77 MB / 0.9083 GB, free: 6.496 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.738e-05/0.0274, allocations: 81.11 kB / 0.9084 GB, free: 6.398 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007676/0.02817, allocations: 1.275 MB / 0.9096 GB, free: 5.113 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 2.571e-05/0.0282, allocations: 37.62 kB / 0.9097 GB, free: 5.07 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001873/0.02838, allocations: 388.4 kB / 0.91 GB, free: 4.684 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 3.028e-05/0.02841, allocations: 23.95 kB / 0.9101 GB, free: 4.66 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002715/0.02869, allocations: 430.1 kB / 0.9105 GB, free: 4.234 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 0.0001289/0.02881, allocations: 0.4887 MB / 0.9109 GB, free: 3.738 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003124/0.02913, allocations: 494.4 kB / 0.9114 GB, free: 3.254 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000398/0.02952, allocations: 0.66 MB / 0.9121 GB, free: 2.582 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001815/0.03134, allocations: 2.25 MB / 0.9143 GB, free: 244 kB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.264e-06/0.03134, allocations: 4 kB / 0.9143 GB, free: 240 kB / 0.8698 GB Notification: Performance of matching and sorting (n=319) (initialization): time 0.00269/0.03403, allocations: 3.855 MB / 0.918 GB, free: 12.34 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 1.478e-05/0.03405, allocations: 8 kB / 0.918 GB, free: 12.34 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.44e-05/0.03406, allocations: 8 kB / 0.918 GB, free: 12.33 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.204e-05/0.03407, allocations: 3.984 kB / 0.918 GB, free: 12.32 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.435e-05/0.03416, allocations: 27.92 kB / 0.9181 GB, free: 12.3 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.178e-06/0.03416, allocations: 3.938 kB / 0.9181 GB, free: 12.29 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002594/0.03442, allocations: 245.3 kB / 0.9183 GB, free: 12.05 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.974e-05/0.03445, allocations: 19.98 kB / 0.9183 GB, free: 12.03 MB / 0.8855 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 (labels[1],cluSiz[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.0001245/0.03458, allocations: 160.6 kB / 0.9185 GB, free: 11.86 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.388e-05/0.03462, allocations: 83.3 kB / 0.9186 GB, free: 11.78 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004356/0.03505, allocations: 0.5815 MB / 0.9191 GB, free: 11.19 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.335e-06/0.03506, allocations: 3.938 kB / 0.9191 GB, free: 11.19 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.066e-06/0.03506, allocations: 3.984 kB / 0.9191 GB, free: 11.18 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.713e-06/0.03507, allocations: 7.938 kB / 0.9191 GB, free: 11.18 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002667/0.03533, allocations: 391.5 kB / 0.9195 GB, free: 10.77 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.543e-06/0.03534, allocations: 0 / 0.9195 GB, free: 10.77 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.042e-05/0.03537, allocations: 4 kB / 0.9195 GB, free: 10.77 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.583e-06/0.03537, allocations: 0 / 0.9195 GB, free: 10.77 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.316e-06/0.03538, allocations: 12.02 kB / 0.9195 GB, free: 10.75 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.162e-06/0.03538, allocations: 0 / 0.9195 GB, free: 10.75 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.21e-07/0.03538, allocations: 0 / 0.9195 GB, free: 10.75 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006132/0.03599, allocations: 0.6582 MB / 0.9202 GB, free: 10.07 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 6.307e-05/0.03605, allocations: 95.23 kB / 0.9203 GB, free: 9.977 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.201e-05/0.03609, allocations: 4 kB / 0.9203 GB, free: 9.973 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.255e-05/0.03615, allocations: 0 / 0.9203 GB, free: 9.973 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.849e-05/0.03618, allocations: 7.984 kB / 0.9203 GB, free: 9.965 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.363e-05/0.0362, allocations: 15.98 kB / 0.9203 GB, free: 9.949 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 0.0003242/0.03652, allocations: 0.5697 MB / 0.9208 GB, free: 9.375 MB / 0.8855 GB Notification: Performance of sort global known variables: time 8e-08/0.03652, allocations: 4 kB / 0.9208 GB, free: 9.371 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.001019/0.03754, allocations: 0.5884 MB / 0.9214 GB, free: 8.781 MB / 0.8855 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.001261/0.0388, allocations: 0.8059 MB / 0.9222 GB, free: 7.988 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.0007722/0.03958, allocations: 1.091 MB / 0.9233 GB, free: 6.879 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 1.703e-06/0.03958, allocations: 0 / 0.9233 GB, free: 6.879 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.000122/0.0397, allocations: 163.7 kB / 0.9234 GB, free: 6.715 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002536/0.03995, allocations: 57.41 kB / 0.9235 GB, free: 6.66 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001222/0.04118, allocations: 1.544 MB / 0.925 GB, free: 5.07 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001159/0.04129, allocations: 195.6 kB / 0.9252 GB, free: 4.859 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 8.198e-05/0.04137, allocations: 33.47 kB / 0.9252 GB, free: 4.824 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001394/0.04151, allocations: 110.2 kB / 0.9253 GB, free: 4.715 MB / 0.8855 GB Notification: Performance of SimCode: time 4.31e-07/0.04151, allocations: 0 / 0.9253 GB, free: 4.715 MB / 0.8855 GB Notification: Performance of Templates: time 0.01922/0.06073, allocations: 16.5 MB / 0.9414 GB, free: 4.379 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: 6.336023833137006]