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.0009233/0.0009233, allocations: 92.22 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.0009936/0.0009936, allocations: 169 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.9632/0.9632, allocations: 177.1 MB / 203.4 MB, free: 5.633 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.125/2.125, allocations: 429.5 MB / 0.6732 GB, free: 4.047 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_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.793e-06/1.793e-06, allocations: 0 / 0.8783 GB, free: 6.238 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.755e-05/2.934e-05, allocations: 3.844 kB / 0.8783 GB, free: 6.234 MB / 0.8386 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation): time 0.002414/0.002443, allocations: 1.829 MB / 0.8801 GB, free: 4.418 MB / 0.8386 GB Notification: Performance of NFInst.instExpressions: time 0.005722/0.008165, allocations: 5.23 MB / 0.8852 GB, free: 15.17 MB / 0.8542 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.784e-05/0.008243, allocations: 0 / 0.8852 GB, free: 15.17 MB / 0.8542 GB Notification: Performance of NFTyping.typeComponents: time 0.0009581/0.009201, allocations: 342.3 kB / 0.8855 GB, free: 14.84 MB / 0.8542 GB Notification: Performance of NFTyping.typeBindings: time 7.834e-05/0.009279, allocations: 63.61 kB / 0.8855 GB, free: 14.77 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.002458/0.01174, allocations: 1.605 MB / 0.8871 GB, free: 13.16 MB / 0.8542 GB Notification: Performance of NFFlatten.flatten: time 0.0001978/0.01194, allocations: 171.2 kB / 0.8873 GB, free: 13 MB / 0.8542 GB Notification: Performance of NFFlatten.resolveConnections: time 3.861e-05/0.01197, allocations: 5.812 kB / 0.8873 GB, free: 12.99 MB / 0.8542 GB Notification: Performance of NFEvalConstants.evaluate: time 8.654e-05/0.01206, allocations: 79.78 kB / 0.8874 GB, free: 12.91 MB / 0.8542 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000172/0.01223, allocations: 155.6 kB / 0.8875 GB, free: 12.76 MB / 0.8542 GB Notification: Performance of NFPackage.collectConstants: time 3.082e-05/0.01226, allocations: 16 kB / 0.8875 GB, free: 12.75 MB / 0.8542 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002429/0.01469, allocations: 2.421 MB / 0.8899 GB, free: 10.32 MB / 0.8542 GB Notification: Performance of NFScalarize.scalarize: time 0.0001744/0.01487, allocations: 283.9 kB / 0.8902 GB, free: 10.04 MB / 0.8542 GB Notification: Performance of NFVerifyModel.verify: time 0.0001406/0.01501, allocations: 163.9 kB / 0.8903 GB, free: 9.879 MB / 0.8542 GB Notification: Performance of NFConvertDAE.convert: time 0.002156/0.01716, allocations: 2.508 MB / 0.8928 GB, free: 7.367 MB / 0.8542 GB Notification: Performance of FrontEnd - DAE generated: time 2.735e-06/0.01717, allocations: 0 / 0.8928 GB, free: 7.367 MB / 0.8542 GB Notification: Performance of FrontEnd: time 1.112e-06/0.01717, allocations: 4 kB / 0.8928 GB, free: 7.363 MB / 0.8542 GB Notification: Performance of Transformations before backend: time 6.482e-06/0.01717, allocations: 4 kB / 0.8928 GB, free: 7.359 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.004432/0.02161, allocations: 1.471 MB / 0.8942 GB, free: 5.848 MB / 0.8542 GB Notification: Performance of prepare preOptimizeDAE: time 3.848e-05/0.02164, allocations: 12.03 kB / 0.8942 GB, free: 5.836 MB / 0.8542 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000259/0.0219, allocations: 100.2 kB / 0.8943 GB, free: 5.738 MB / 0.8542 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003394/0.02224, allocations: 346.6 kB / 0.8946 GB, free: 5.363 MB / 0.8542 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.307e-05/0.02226, allocations: 12.36 kB / 0.8947 GB, free: 5.352 MB / 0.8542 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.833e-05/0.02228, allocations: 8.375 kB / 0.8947 GB, free: 5.344 MB / 0.8542 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002948/0.02258, allocations: 374.1 kB / 0.895 GB, free: 4.961 MB / 0.8542 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.068e-05/0.02259, allocations: 4.125 kB / 0.895 GB, free: 4.957 MB / 0.8542 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.033e-05/0.0226, allocations: 384 / 0.895 GB, free: 4.957 MB / 0.8542 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.514e-06/0.02261, allocations: 3.938 kB / 0.895 GB, free: 4.953 MB / 0.8542 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002302/0.02284, allocations: 383.8 kB / 0.8954 GB, free: 4.578 MB / 0.8542 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004577/0.0233, allocations: 0.6719 MB / 0.8961 GB, free: 3.871 MB / 0.8542 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000321/0.02362, allocations: 0.5251 MB / 0.8966 GB, free: 3.32 MB / 0.8542 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001787/0.0238, allocations: 307.4 kB / 0.8969 GB, free: 3.012 MB / 0.8542 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003587/0.02415, allocations: 139.7 kB / 0.897 GB, free: 2.875 MB / 0.8542 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002452/0.0244, allocations: 384.1 kB / 0.8974 GB, free: 2.477 MB / 0.8542 GB Notification: Performance of pre-optimization done (n=8): time 8.61e-07/0.0244, allocations: 0 / 0.8974 GB, free: 2.477 MB / 0.8542 GB Notification: Performance of matching and sorting (n=8): time 0.0008172/0.02522, allocations: 1.172 MB / 0.8985 GB, free: 1.297 MB / 0.8542 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.881e-05/0.02526, allocations: 89.08 kB / 0.8986 GB, free: 1.191 MB / 0.8542 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009253/0.02618, allocations: 1.276 MB / 0.8998 GB, free: 15.91 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 3.249e-05/0.02621, allocations: 29.7 kB / 0.8999 GB, free: 15.87 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001867/0.0264, allocations: 372.6 kB / 0.9002 GB, free: 15.5 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 3.28e-05/0.02643, allocations: 27.78 kB / 0.9002 GB, free: 15.47 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002645/0.0267, allocations: 402.5 kB / 0.9006 GB, free: 15.07 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 0.000124/0.02682, allocations: 0.4965 MB / 0.9011 GB, free: 14.57 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004449/0.02727, allocations: 0.6781 MB / 0.9018 GB, free: 13.89 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000518/0.02778, allocations: 0.8496 MB / 0.9026 GB, free: 13.03 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00174/0.02952, allocations: 2.625 MB / 0.9052 GB, free: 10.31 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.595e-06/0.02953, allocations: 0 / 0.9052 GB, free: 10.31 MB / 0.8698 GB Notification: Performance of matching and sorting (n=319) (initialization): time 0.002846/0.03237, allocations: 4.238 MB / 0.9093 GB, free: 6.039 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 1.637e-05/0.03239, allocations: 8 kB / 0.9093 GB, free: 6.031 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.416e-05/0.0324, allocations: 7.922 kB / 0.9093 GB, free: 6.023 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.796e-05/0.03242, allocations: 4 kB / 0.9093 GB, free: 6.02 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001065/0.03253, allocations: 23.92 kB / 0.9093 GB, free: 5.996 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.972e-06/0.03253, allocations: 0 / 0.9093 GB, free: 5.996 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002604/0.03279, allocations: 245.4 kB / 0.9096 GB, free: 5.754 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.672e-05/0.03283, allocations: 23.98 kB / 0.9096 GB, free: 5.73 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.000129/0.03296, allocations: 164.5 kB / 0.9098 GB, free: 5.559 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.624e-05/0.03301, allocations: 79.3 kB / 0.9098 GB, free: 5.48 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006053/0.03361, allocations: 0.8548 MB / 0.9107 GB, free: 4.613 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.765e-06/0.03361, allocations: 0 / 0.9107 GB, free: 4.613 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.979e-06/0.03362, allocations: 3.938 kB / 0.9107 GB, free: 4.609 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.288e-06/0.03362, allocations: 4 kB / 0.9107 GB, free: 4.605 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003424/0.03397, allocations: 0.5289 MB / 0.9112 GB, free: 4.047 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.357e-06/0.03397, allocations: 3.984 kB / 0.9112 GB, free: 4.043 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.032e-05/0.03401, allocations: 7.938 kB / 0.9112 GB, free: 4.035 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.376e-06/0.03401, allocations: 4 kB / 0.9112 GB, free: 4.031 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.797e-06/0.03402, allocations: 0 / 0.9112 GB, free: 4.031 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.062e-06/0.03402, allocations: 0 / 0.9112 GB, free: 4.031 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.066e-06/0.03403, allocations: 7.984 kB / 0.9112 GB, free: 4.023 MB / 0.8698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005656/0.03459, allocations: 0.9355 MB / 0.9121 GB, free: 3.062 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 5.984e-05/0.03465, allocations: 87.28 kB / 0.9122 GB, free: 2.977 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.598e-05/0.03469, allocations: 0 / 0.9122 GB, free: 2.977 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.376e-05/0.03476, allocations: 8 kB / 0.9122 GB, free: 2.969 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.687e-05/0.0348, allocations: 19.86 kB / 0.9122 GB, free: 2.949 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.45e-05/0.03482, allocations: 11.98 kB / 0.9123 GB, free: 2.938 MB / 0.8698 GB Notification: Performance of sorting global known variables: time 0.0004061/0.03523, allocations: 0.5973 MB / 0.9128 GB, free: 2.336 MB / 0.8698 GB Notification: Performance of sort global known variables: time 6e-08/0.03523, allocations: 0 / 0.9128 GB, free: 2.336 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.001058/0.03629, allocations: 0.5962 MB / 0.9134 GB, free: 1.738 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.001303/0.03759, allocations: 0.7969 MB / 0.9142 GB, free: 0.957 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.0009769/0.03857, allocations: 1.42 MB / 0.9156 GB, free: 15.52 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 1.563e-06/0.03857, allocations: 0 / 0.9156 GB, free: 15.52 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.0001934/0.03876, allocations: 307.5 kB / 0.9159 GB, free: 15.21 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002673/0.03903, allocations: 57.88 kB / 0.9159 GB, free: 15.16 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001315/0.04034, allocations: 1.681 MB / 0.9176 GB, free: 13.43 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001087/0.04045, allocations: 199.5 kB / 0.9178 GB, free: 13.22 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 8.159e-05/0.04053, allocations: 33.45 kB / 0.9178 GB, free: 13.19 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.5e-05/0.04061, allocations: 36.47 kB / 0.9178 GB, free: 13.15 MB / 0.8855 GB Notification: Performance of SimCode: time 5.41e-07/0.04061, allocations: 0 / 0.9178 GB, free: 13.15 MB / 0.8855 GB Notification: Performance of Templates: time 0.01678/0.05739, allocations: 15.06 MB / 0.9325 GB, free: 14.24 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.050141838844866]