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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001566/0.001566, allocations: 111.8 kB / 17.08 MB, free: 6.012 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001617/0.001617, allocations: 193.2 kB / 20.03 MB, free: 3.082 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.51/1.51, allocations: 222.9 MB / 245.7 MB, free: 4.227 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 3.101/3.101, allocations: 489.3 MB / 0.7687 GB, free: 3.789 MB / 0.6075 GB " [Timeout remaining time 176] Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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 0.002215/0.002215, allocations: 71.89 kB / 1.103 GB, free: 0.7227 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.032/1.034, allocations: 163.8 MB / 1.263 GB, free: 8.004 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation): time 0.002977/1.037, allocations: 1.771 MB / 1.264 GB, free: 6.789 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.007575/1.044, allocations: 5.395 MB / 1.27 GB, free: 3.113 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001673/1.045, allocations: 5.281 kB / 1.27 GB, free: 3.109 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.001509/1.046, allocations: 359.4 kB / 1.27 GB, free: 2.957 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.0001601/1.046, allocations: 69.39 kB / 1.27 GB, free: 2.914 MB / 0.9981 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.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'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/Utilities/Clustering/KMeans.mo:96:7-96:35:writable] Warning: inertia was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. Notification: Performance of NFTyping.typeClassSections: time 0.004857/1.051, allocations: 1.491 MB / 1.272 GB, free: 2.359 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.0003525/1.052, allocations: 156.1 kB / 1.272 GB, free: 2.305 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 5.347e-05/1.052, allocations: 9.438 kB / 1.272 GB, free: 2.305 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 9.16e-05/1.052, allocations: 68.72 kB / 1.272 GB, free: 2.273 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002585/1.052, allocations: 165.9 kB / 1.272 GB, free: 2.223 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 5.4e-05/1.052, allocations: 14.62 kB / 1.272 GB, free: 2.223 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00424/1.056, allocations: 2.203 MB / 1.274 GB, free: 1.562 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 0.0003592/1.057, allocations: 289.9 kB / 1.274 GB, free: 1.473 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.000487/1.057, allocations: 301.5 kB / 1.275 GB, free: 1.281 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.005283/1.062, allocations: 2.19 MB / 1.277 GB, free: 0.6328 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 4.969e-06/1.062, allocations: 5.094 kB / 1.277 GB, free: 0.6289 MB / 0.9981 GB Notification: Performance of FrontEnd: time 2.194e-06/1.062, allocations: 0 / 1.277 GB, free: 0.6289 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 4.674e-05/1.063, allocations: 3.938 kB / 1.277 GB, free: 0.625 MB / 0.9981 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.01254/1.075, allocations: 1.41 MB / 1.278 GB, free: 15.62 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 4.37e-05/1.075, allocations: 9.516 kB / 1.278 GB, free: 15.62 MB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004779/1.076, allocations: 102.4 kB / 1.278 GB, free: 15.56 MB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007136/1.076, allocations: 414.9 kB / 1.279 GB, free: 15.23 MB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.311e-05/1.076, allocations: 5.047 kB / 1.279 GB, free: 15.23 MB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.104e-05/1.076, allocations: 6.906 kB / 1.279 GB, free: 15.23 MB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004836/1.077, allocations: 394.5 kB / 1.279 GB, free: 15.16 MB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.027e-05/1.077, allocations: 1.344 kB / 1.279 GB, free: 15.16 MB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.486e-05/1.077, allocations: 0.6094 kB / 1.279 GB, free: 15.16 MB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.211e-05/1.077, allocations: 9.141 kB / 1.279 GB, free: 15.16 MB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005236/1.078, allocations: 433.3 kB / 1.279 GB, free: 15.15 MB / 1.014 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009402/1.078, allocations: 0.6703 MB / 1.28 GB, free: 14.75 MB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006096/1.079, allocations: 0.567 MB / 1.281 GB, free: 14.69 MB / 1.014 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003806/1.079, allocations: 335 kB / 1.281 GB, free: 14.67 MB / 1.014 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001218/1.081, allocations: 1.029 MB / 1.282 GB, free: 13.53 MB / 1.014 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005189/1.081, allocations: 416.6 kB / 1.282 GB, free: 13.44 MB / 1.014 GB Notification: Performance of pre-optimization done (n=8): time 1.944e-06/1.081, allocations: 0 / 1.282 GB, free: 13.44 MB / 1.014 GB Notification: Performance of matching and sorting (n=8): time 0.001749/1.083, allocations: 1.295 MB / 1.284 GB, free: 13.33 MB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.786e-05/1.083, allocations: 84.16 kB / 1.284 GB, free: 13.23 MB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001944/1.085, allocations: 1.298 MB / 1.285 GB, free: 12.71 MB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 7.107e-05/1.085, allocations: 31.3 kB / 1.285 GB, free: 12.68 MB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002753/1.085, allocations: 292.1 kB / 1.285 GB, free: 12.46 MB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 4.467e-05/1.085, allocations: 16.69 kB / 1.285 GB, free: 12.45 MB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004126/1.086, allocations: 355.8 kB / 1.286 GB, free: 12.34 MB / 1.014 GB Notification: Performance of setup shared object (initialization): time 0.0001568/1.086, allocations: 316.7 kB / 1.286 GB, free: 12.04 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001541/1.088, allocations: 1.37 MB / 1.287 GB, free: 11.58 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001746/1.089, allocations: 1.506 MB / 1.289 GB, free: 11.05 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007879/1.097, allocations: 3.557 MB / 1.292 GB, free: 9.211 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.721e-06/1.097, allocations: 0 / 1.292 GB, free: 9.211 MB / 1.014 GB Notification: Performance of matching and sorting (n=319) (initialization): time 0.005425/1.103, allocations: 4.029 MB / 1.296 GB, free: 7.211 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 2.677e-05/1.103, allocations: 5.844 kB / 1.296 GB, free: 7.211 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.539e-05/1.103, allocations: 7.141 kB / 1.296 GB, free: 7.207 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.177e-05/1.103, allocations: 1.5 kB / 1.296 GB, free: 7.207 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001406/1.103, allocations: 15.56 kB / 1.296 GB, free: 7.207 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.588e-06/1.103, allocations: 1.344 kB / 1.296 GB, free: 7.207 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008111/1.104, allocations: 237.1 kB / 1.296 GB, free: 7.016 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.327e-05/1.104, allocations: 26.86 kB / 1.296 GB, free: 7.012 MB / 1.014 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.0004741/1.104, allocations: 252.6 kB / 1.297 GB, free: 6.883 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.317e-05/1.104, allocations: 84.75 kB / 1.297 GB, free: 6.816 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003236/1.105, allocations: 76.66 kB / 1.297 GB, free: 6.758 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.618e-06/1.105, allocations: 5.125 kB / 1.297 GB, free: 6.754 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.863e-06/1.105, allocations: 1.984 kB / 1.297 GB, free: 6.754 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.432e-06/1.105, allocations: 1.125 kB / 1.297 GB, free: 6.754 MB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000685/1.105, allocations: 0.5213 MB / 1.297 GB, free: 6.465 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.235e-06/1.106, allocations: 0 / 1.297 GB, free: 6.465 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.597e-05/1.106, allocations: 12.84 kB / 1.297 GB, free: 6.461 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.056e-06/1.106, allocations: 0 / 1.297 GB, free: 6.461 MB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.861e-05/1.106, allocations: 7.641 kB / 1.297 GB, free: 6.457 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.357e-06/1.106, allocations: 1.734 kB / 1.297 GB, free: 6.457 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.839e-06/1.106, allocations: 5.094 kB / 1.297 GB, free: 6.453 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001168/1.107, allocations: 1.005 MB / 1.298 GB, free: 6.301 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001803/1.107, allocations: 169.8 kB / 1.299 GB, free: 6.141 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.686e-05/1.107, allocations: 2.047 kB / 1.299 GB, free: 6.141 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001457/1.107, allocations: 9.531 kB / 1.299 GB, free: 6.137 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.523e-05/1.107, allocations: 5.891 kB / 1.299 GB, free: 6.137 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.518e-05/1.107, allocations: 13.2 kB / 1.299 GB, free: 6.137 MB / 1.014 GB Notification: Performance of sorting global known variables: time 0.001067/1.108, allocations: 0.7263 MB / 1.299 GB, free: 5.891 MB / 1.014 GB Notification: Performance of sort global known variables: time 1.3e-07/1.108, allocations: 0 / 1.299 GB, free: 5.891 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.002854/1.111, allocations: 0.5875 MB / 1.3 GB, free: 5.785 MB / 1.014 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.002484/1.114, allocations: 0.7086 MB / 1.301 GB, free: 5.512 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.003276/1.117, allocations: 2.554 MB / 1.303 GB, free: 4.48 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 3.887e-06/1.117, allocations: 4.062 kB / 1.303 GB, free: 4.477 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 0.0004452/1.118, allocations: 334.7 kB / 1.303 GB, free: 4.473 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005913/1.118, allocations: 56.08 kB / 1.303 GB, free: 4.434 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002911/1.121, allocations: 1.929 MB / 1.305 GB, free: 3.762 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006982/1.122, allocations: 0.9885 MB / 1.306 GB, free: 3.059 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001397/1.122, allocations: 32.84 kB / 1.306 GB, free: 3.051 MB / 1.014 GB Notification: Performance of SimCode: time 8.72e-07/1.122, allocations: 0 / 1.306 GB, free: 3.051 MB / 1.014 GB Notification: Performance of Templates: time 0.03333/1.155, allocations: 14.49 MB / 1.32 GB, free: 0.7695 MB / 1.014 GB " [Timeout remaining time 299] 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=800 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe 2>&1) [Timeout 800] 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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/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] "" Variables in the reference:time,gFun_int Variables in the result:gFun_int,time [Calling sys.exit(0), Time elapsed: 16.480879802023992]