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.002202/0.002202, allocations: 110.4 kB / 18.94 MB, free: 2.949 MB / 14.72 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.002783/0.002783, allocations: 220.1 kB / 22.26 MB, free: 5.125 MB / 14.72 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.494/1.494, allocations: 230.6 MB / 256 MB, free: 7.992 MB / 206.1 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.186/3.186, allocations: 0.505 GB / 0.8101 GB, free: 22.06 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 13.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: "" <> buildModelFMU(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation,fileNamePrefix="Buildings_latest_Buildings_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_SmallScaleValidation",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation,fileNamePrefix="Buildings_latest_Buildings_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_SmallScaleValidation",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001986/0.001986, allocations: 65.34 kB / 1.177 GB, free: 17 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3449/0.3468, allocations: 180.2 MB / 1.353 GB, free: 8.457 MB / 1.045 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation): time 0.003033/0.3499, allocations: 1.799 MB / 1.355 GB, free: 6.648 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.008107/0.358, allocations: 5.495 MB / 1.36 GB, free: 1.129 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001443/0.3581, allocations: 3.938 kB / 1.36 GB, free: 1.125 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 0.001288/0.3594, allocations: 374.4 kB / 1.36 GB, free: 0.7578 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 0.0001513/0.3596, allocations: 63.66 kB / 1.36 GB, free: 0.6953 MB / 1.045 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.004219/0.3638, allocations: 1.6 MB / 1.362 GB, free: 15.09 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.0003108/0.3641, allocations: 167.3 kB / 1.362 GB, free: 14.93 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 5.45e-05/0.3641, allocations: 9.734 kB / 1.362 GB, free: 14.92 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 8.95e-05/0.3642, allocations: 67.72 kB / 1.362 GB, free: 14.86 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002417/0.3645, allocations: 159.5 kB / 1.362 GB, free: 14.7 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 4.062e-05/0.3645, allocations: 16 kB / 1.362 GB, free: 14.68 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004498/0.369, allocations: 2.659 MB / 1.365 GB, free: 12.02 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 0.0002774/0.3693, allocations: 275.8 kB / 1.365 GB, free: 11.75 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 0.0003171/0.3696, allocations: 310.1 kB / 1.366 GB, free: 11.44 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.004215/0.3738, allocations: 2.231 MB / 1.368 GB, free: 9.203 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 4.218e-06/0.3738, allocations: 0 / 1.368 GB, free: 9.203 MB / 1.061 GB Notification: Performance of FrontEnd: time 2.104e-06/0.3738, allocations: 3.938 kB / 1.368 GB, free: 9.199 MB / 1.061 GB Notification: Performance of Transformations before backend: time 1.051e-05/0.3738, allocations: 0 / 1.368 GB, free: 9.199 MB / 1.061 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.009046/0.3829, allocations: 1.346 MB / 1.369 GB, free: 7.816 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 4.746e-05/0.3829, allocations: 8.031 kB / 1.369 GB, free: 7.809 MB / 1.061 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.521e-05/0.383, allocations: 30.75 kB / 1.369 GB, free: 7.77 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004077/0.3834, allocations: 104.2 kB / 1.369 GB, free: 7.668 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006051/0.384, allocations: 352.5 kB / 1.37 GB, free: 7.289 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.376e-05/0.384, allocations: 4.359 kB / 1.37 GB, free: 7.285 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.77e-05/0.384, allocations: 8.375 kB / 1.37 GB, free: 7.277 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004547/0.3845, allocations: 395.3 kB / 1.37 GB, free: 6.879 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.998e-06/0.3845, allocations: 3.938 kB / 1.37 GB, free: 6.875 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.41e-05/0.3845, allocations: 3.984 kB / 1.37 GB, free: 6.871 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.648e-06/0.3845, allocations: 0 / 1.37 GB, free: 6.871 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004457/0.385, allocations: 431.8 kB / 1.37 GB, free: 6.449 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006861/0.3857, allocations: 0.6377 MB / 1.371 GB, free: 5.77 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005464/0.3862, allocations: 0.5632 MB / 1.372 GB, free: 5.188 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00032/0.3865, allocations: 333.7 kB / 1.372 GB, free: 4.855 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006074/0.3871, allocations: 127.9 kB / 1.372 GB, free: 4.73 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004368/0.3876, allocations: 416.8 kB / 1.372 GB, free: 4.305 MB / 1.061 GB Notification: Performance of pre-optimization done (n=8): time 1.302e-06/0.3876, allocations: 0 / 1.372 GB, free: 4.305 MB / 1.061 GB Notification: Performance of matching and sorting (n=8): time 0.001415/0.389, allocations: 1.301 MB / 1.374 GB, free: 2.996 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.035e-05/0.3891, allocations: 89.03 kB / 1.374 GB, free: 2.891 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001344/0.3904, allocations: 1.294 MB / 1.375 GB, free: 1.586 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 5.876e-05/0.3905, allocations: 29.7 kB / 1.375 GB, free: 1.551 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002315/0.3907, allocations: 297.8 kB / 1.375 GB, free: 1.254 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 3.688e-05/0.3907, allocations: 19.84 kB / 1.375 GB, free: 1.234 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003389/0.3911, allocations: 351.6 kB / 1.376 GB, free: 0.8867 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 0.0001401/0.3912, allocations: 322 kB / 1.376 GB, free: 0.5664 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001307/0.3925, allocations: 1.373 MB / 1.377 GB, free: 15.19 MB / 1.076 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001425/0.3939, allocations: 1.501 MB / 1.379 GB, free: 13.68 MB / 1.076 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007025/0.401, allocations: 3.564 MB / 1.382 GB, free: 10.02 MB / 1.076 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.492e-06/0.401, allocations: 0 / 1.382 GB, free: 10.02 MB / 1.076 GB Notification: Performance of matching and sorting (n=319) (initialization): time 0.004604/0.4056, allocations: 4.015 MB / 1.386 GB, free: 5.973 MB / 1.076 GB Notification: Performance of prepare postOptimizeDAE: time 2.453e-05/0.4056, allocations: 4 kB / 1.386 GB, free: 5.969 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.432e-05/0.4056, allocations: 7.984 kB / 1.386 GB, free: 5.961 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.209e-05/0.4056, allocations: 4 kB / 1.386 GB, free: 5.957 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001386/0.4058, allocations: 15.94 kB / 1.386 GB, free: 5.941 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.198e-05/0.4058, allocations: 4 kB / 1.386 GB, free: 5.938 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005098/0.4063, allocations: 241.4 kB / 1.386 GB, free: 5.699 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.965e-05/0.4064, allocations: 27.98 kB / 1.386 GB, free: 5.672 MB / 1.076 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.0003439/0.4067, allocations: 245.6 kB / 1.387 GB, free: 5.422 MB / 1.076 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.672e-05/0.4068, allocations: 79.23 kB / 1.387 GB, free: 5.344 MB / 1.076 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001063/0.4078, allocations: 0.9485 MB / 1.388 GB, free: 4.387 MB / 1.076 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.858e-06/0.4078, allocations: 0 / 1.388 GB, free: 4.387 MB / 1.076 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.579e-06/0.4078, allocations: 11.97 kB / 1.388 GB, free: 4.375 MB / 1.076 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.586e-06/0.4079, allocations: 0 / 1.388 GB, free: 4.375 MB / 1.076 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004893/0.4083, allocations: 0.4897 MB / 1.388 GB, free: 3.848 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.457e-06/0.4083, allocations: 3.938 kB / 1.388 GB, free: 3.844 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.013e-05/0.4084, allocations: 4 kB / 1.388 GB, free: 3.84 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.356e-06/0.4084, allocations: 3.938 kB / 1.388 GB, free: 3.836 MB / 1.076 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.303e-05/0.4084, allocations: 7.984 kB / 1.388 GB, free: 3.828 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.984e-06/0.4084, allocations: 0 / 1.388 GB, free: 3.828 MB / 1.076 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.175e-06/0.4084, allocations: 0 / 1.388 GB, free: 3.828 MB / 1.076 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009883/0.4094, allocations: 1.018 MB / 1.389 GB, free: 2.789 MB / 1.076 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001027/0.4095, allocations: 95.12 kB / 1.389 GB, free: 2.695 MB / 1.076 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.075e-05/0.4096, allocations: 0 / 1.389 GB, free: 2.695 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001367/0.4097, allocations: 4 kB / 1.389 GB, free: 2.691 MB / 1.076 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.849e-05/0.4098, allocations: 11.98 kB / 1.389 GB, free: 2.68 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.831e-05/0.4098, allocations: 19.97 kB / 1.389 GB, free: 2.66 MB / 1.076 GB Notification: Performance of sorting global known variables: time 0.0008069/0.4106, allocations: 0.7222 MB / 1.39 GB, free: 1.934 MB / 1.076 GB Notification: Performance of sort global known variables: time 9.1e-08/0.4106, allocations: 0 / 1.39 GB, free: 1.934 MB / 1.076 GB Notification: Performance of remove unused functions: time 0.00155/0.4122, allocations: 0.5962 MB / 1.391 GB, free: 1.336 MB / 1.076 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.003317/0.4155, allocations: 2.159 MB / 1.393 GB, free: 15.16 MB / 1.092 GB Notification: Performance of simCode: created initialization part: time 0.002221/0.4177, allocations: 2 MB / 1.395 GB, free: 13.15 MB / 1.092 GB Notification: Performance of simCode: created event and clocks part: time 3.296e-06/0.4177, allocations: 0 / 1.395 GB, free: 13.15 MB / 1.092 GB Notification: Performance of simCode: created simulation system equations: time 0.0003441/0.418, allocations: 339.8 kB / 1.395 GB, free: 12.82 MB / 1.092 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004402/0.4185, allocations: 61.8 kB / 1.395 GB, free: 12.76 MB / 1.092 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01655/0.435, allocations: 15.3 MB / 1.41 GB, free: 13.27 MB / 1.107 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006086/0.4356, allocations: 0.9839 MB / 1.411 GB, free: 12.26 MB / 1.107 GB Notification: Performance of simCode: alias equations: time 0.0001591/0.4358, allocations: 53.64 kB / 1.411 GB, free: 12.21 MB / 1.107 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003445/0.4361, allocations: 287.3 kB / 1.411 GB, free: 11.93 MB / 1.107 GB Notification: Performance of SimCode: time 1.273e-06/0.4361, allocations: 0 / 1.411 GB, free: 11.93 MB / 1.107 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06103/0.4972, allocations: 24.45 MB / 1.435 GB, free: 3.66 MB / 1.123 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.08/13.57, allocations: 13.45 kB / 1.435 GB, free: 3.648 MB / 1.123 GB " [Timeout remaining time 286] (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 & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation_res.csv --start-time 0 --stop-time 1.8e+12 --timeout 800 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 7.2e+08 Buildings_latest_Buildings_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_SmallScaleValidation.fmu > Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe 2>&1) [Timeout 840.0] diffSimulationResults("Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_SmallScaleValidation.csv","/var/lib/jenkins1/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: 20.928738448999866]