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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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=5000,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=5000,variableFilter="time|gFun_int",fileNamePrefix="Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.004464/0.004464, allocations: 103 kB / 15.73 MB, free: 6.055 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001075/0.001075, allocations: 194.3 kB / 16.68 MB, free: 5.965 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.313/1.313, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.517/2.517, allocations: 461.9 MB / 0.7348 GB, free: 11.09 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001197/0.001197, allocations: 63.91 kB / 1.054 GB, free: 7.641 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7167/0.7179, allocations: 157.4 MB / 1.208 GB, free: 13.66 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation): time 0.002584/0.7205, allocations: 1.758 MB / 1.21 GB, free: 11.89 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.007033/0.7276, allocations: 5.393 MB / 1.215 GB, free: 6.48 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001202/0.7277, allocations: 0 / 1.215 GB, free: 6.48 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 0.001123/0.7289, allocations: 368.4 kB / 1.215 GB, free: 6.121 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 0.0001246/0.7291, allocations: 63.66 kB / 1.215 GB, free: 6.059 MB / 0.9356 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 11.0.1-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.003582/0.7326, allocations: 1.492 MB / 1.217 GB, free: 4.566 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0002551/0.7329, allocations: 163.3 kB / 1.217 GB, free: 4.406 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 4.711e-05/0.733, allocations: 17.48 kB / 1.217 GB, free: 4.391 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 7.156e-05/0.733, allocations: 59.77 kB / 1.217 GB, free: 4.332 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002066/0.7333, allocations: 163.5 kB / 1.217 GB, free: 4.172 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 3.71e-05/0.7333, allocations: 19.94 kB / 1.217 GB, free: 4.152 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002911/0.7362, allocations: 2.204 MB / 1.219 GB, free: 1.945 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 0.0002059/0.7364, allocations: 279.8 kB / 1.219 GB, free: 1.668 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 0.00024/0.7367, allocations: 306.1 kB / 1.22 GB, free: 1.367 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.00279/0.7395, allocations: 2.178 MB / 1.222 GB, free: 15.18 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 4.298e-06/0.7395, allocations: 0 / 1.222 GB, free: 15.18 MB / 0.9512 GB Notification: Performance of FrontEnd: time 1.763e-06/0.7395, allocations: 0 / 1.222 GB, free: 15.18 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 1.46e-05/0.7395, allocations: 0 / 1.222 GB, free: 15.18 MB / 0.9512 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.01039/0.7499, allocations: 1.37 MB / 1.223 GB, free: 13.76 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 4.215e-05/0.75, allocations: 8.031 kB / 1.223 GB, free: 13.75 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000407/0.7504, allocations: 95.59 kB / 1.223 GB, free: 13.66 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005627/0.751, allocations: 418.1 kB / 1.224 GB, free: 13.2 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.091e-05/0.751, allocations: 384 / 1.224 GB, free: 13.2 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.24e-05/0.751, allocations: 8.359 kB / 1.224 GB, free: 13.2 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004206/0.7515, allocations: 395.5 kB / 1.224 GB, free: 12.8 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.417e-06/0.7515, allocations: 4 kB / 1.224 GB, free: 12.79 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.302e-05/0.7515, allocations: 11.88 kB / 1.224 GB, free: 12.78 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.779e-06/0.7515, allocations: 0 / 1.224 GB, free: 12.78 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004124/0.7519, allocations: 439.7 kB / 1.225 GB, free: 12.35 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005773/0.7525, allocations: 0.6654 MB / 1.225 GB, free: 11.64 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004855/0.753, allocations: 0.5633 MB / 1.226 GB, free: 11.05 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003027/0.7533, allocations: 333.7 kB / 1.226 GB, free: 10.72 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009629/0.7543, allocations: 1.028 MB / 1.227 GB, free: 9.473 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003885/0.7547, allocations: 404.8 kB / 1.227 GB, free: 9.059 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=8): time 1.442e-06/0.7547, allocations: 0 / 1.227 GB, free: 9.059 MB / 0.9512 GB Notification: Performance of matching and sorting (n=8): time 0.001292/0.756, allocations: 1.3 MB / 1.229 GB, free: 7.75 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.472e-05/0.7561, allocations: 89.22 kB / 1.229 GB, free: 7.645 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001211/0.7573, allocations: 1.289 MB / 1.23 GB, free: 6.344 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 4.513e-05/0.7574, allocations: 33.7 kB / 1.23 GB, free: 6.305 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001916/0.7576, allocations: 281.4 kB / 1.23 GB, free: 6.023 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 3.538e-05/0.7576, allocations: 19.8 kB / 1.23 GB, free: 6.004 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003025/0.7579, allocations: 355.6 kB / 1.231 GB, free: 5.652 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001014/0.758, allocations: 318 kB / 1.231 GB, free: 5.336 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001179/0.7592, allocations: 1.373 MB / 1.232 GB, free: 3.961 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001309/0.7605, allocations: 1.505 MB / 1.234 GB, free: 2.445 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007215/0.7678, allocations: 3.557 MB / 1.237 GB, free: 14.79 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.753e-06/0.7678, allocations: 0 / 1.237 GB, free: 14.79 MB / 0.9669 GB Notification: Performance of matching and sorting (n=319) (initialization): time 0.004067/0.7719, allocations: 4.026 MB / 1.241 GB, free: 10.73 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 2.211e-05/0.7719, allocations: 4 kB / 1.241 GB, free: 10.73 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.11e-05/0.7719, allocations: 4 kB / 1.241 GB, free: 10.72 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.942e-05/0.772, allocations: 0 / 1.241 GB, free: 10.72 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001397/0.7721, allocations: 15.98 kB / 1.241 GB, free: 10.71 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.075e-05/0.7721, allocations: 8 kB / 1.241 GB, free: 10.7 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004858/0.7726, allocations: 228.2 kB / 1.241 GB, free: 10.47 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.152e-05/0.7727, allocations: 28.02 kB / 1.242 GB, free: 10.45 MB / 0.9669 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.0002986/0.773, allocations: 249.6 kB / 1.242 GB, free: 10.19 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.182e-05/0.7731, allocations: 78.62 kB / 1.242 GB, free: 10.11 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002772/0.7734, allocations: 75.81 kB / 1.242 GB, free: 10.03 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.218e-06/0.7734, allocations: 0 / 1.242 GB, free: 10.03 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.484e-06/0.7734, allocations: 4 kB / 1.242 GB, free: 10.03 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.298e-06/0.7734, allocations: 8.016 kB / 1.242 GB, free: 10.02 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004115/0.7738, allocations: 0.5063 MB / 1.242 GB, free: 9.469 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.535e-06/0.7738, allocations: 4 kB / 1.242 GB, free: 9.465 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.805e-05/0.7739, allocations: 11.88 kB / 1.242 GB, free: 9.453 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.645e-06/0.7739, allocations: 0 / 1.242 GB, free: 9.453 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.421e-05/0.7739, allocations: 7.984 kB / 1.242 GB, free: 9.445 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.563e-06/0.7739, allocations: 0 / 1.242 GB, free: 9.445 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/0.7739, allocations: 3.938 kB / 1.242 GB, free: 9.441 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008742/0.7748, allocations: 1.01 MB / 1.243 GB, free: 8.414 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00011/0.7749, allocations: 167.6 kB / 1.244 GB, free: 8.23 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.421e-05/0.775, allocations: 0 / 1.244 GB, free: 8.23 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001457/0.7752, allocations: 8 kB / 1.244 GB, free: 8.223 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.564e-05/0.7752, allocations: 7.984 kB / 1.244 GB, free: 8.215 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.207e-05/0.7752, allocations: 11.92 kB / 1.244 GB, free: 8.203 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 0.0007405/0.776, allocations: 0.73 MB / 1.244 GB, free: 7.469 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.2e-07/0.776, allocations: 0 / 1.244 GB, free: 7.469 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.001456/0.7775, allocations: 0.5779 MB / 1.245 GB, free: 6.891 MB / 0.9669 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.001789/0.7793, allocations: 0.6886 MB / 1.246 GB, free: 6.211 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.002384/0.7816, allocations: 2.552 MB / 1.248 GB, free: 3.645 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 2.855e-06/0.7817, allocations: 0 / 1.248 GB, free: 3.645 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.0003234/0.782, allocations: 339.8 kB / 1.248 GB, free: 3.312 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004252/0.7824, allocations: 64.58 kB / 1.248 GB, free: 3.254 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002272/0.7847, allocations: 1.877 MB / 1.25 GB, free: 1.34 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004972/0.7852, allocations: 0.9879 MB / 1.251 GB, free: 336 kB / 0.9669 GB Notification: Performance of simCode: alias equations: time 0.0002086/0.7854, allocations: 37.42 kB / 1.251 GB, free: 296 kB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001102/0.7856, allocations: 27.42 kB / 1.251 GB, free: 268 kB / 0.9669 GB Notification: Performance of SimCode: time 3.7e-07/0.7856, allocations: 0 / 1.251 GB, free: 268 kB / 0.9669 GB Notification: Performance of Templates: time 0.02263/0.8082, allocations: 14.19 MB / 1.265 GB, free: 2.133 MB / 0.9825 GB make -j1 -f Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.makefile (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=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe 2>&1) 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/jenkins/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) Reference file matches