Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/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_10_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_10_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.002291/0.002291, allocations: 108 kB / 15.61 MB, free: 148 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002235/0.002235, allocations: 195.6 kB / 16.53 MB, free: 6.664 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.488/1.488, allocations: 222.9 MB / 240.2 MB, free: 4.375 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.74/2.74, allocations: 437 MB / 0.7104 GB, free: 5.113 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001951/0.001951, allocations: 67.89 kB / 0.8693 GB, free: 4.613 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5719/0.5739, allocations: 151.6 MB / 1.017 GB, free: 2.492 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation): time 0.003118/0.5771, allocations: 1.773 MB / 1.019 GB, free: 0.707 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.008625/0.5857, allocations: 5.384 MB / 1.024 GB, free: 11.3 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001131/0.5859, allocations: 4 kB / 1.024 GB, free: 11.3 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.001323/0.5872, allocations: 374.4 kB / 1.025 GB, free: 10.93 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0001601/0.5874, allocations: 59.66 kB / 1.025 GB, free: 10.87 MB / 0.7794 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 10.1.1-maint.10.0.x/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.004329/0.5917, allocations: 1.498 MB / 1.026 GB, free: 9.371 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0003022/0.592, allocations: 163.3 kB / 1.026 GB, free: 9.211 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 5.912e-05/0.5921, allocations: 9.562 kB / 1.026 GB, free: 9.199 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001141/0.5922, allocations: 63.7 kB / 1.026 GB, free: 9.137 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002609/0.5925, allocations: 163.5 kB / 1.027 GB, free: 8.977 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 6.084e-05/0.5926, allocations: 16 kB / 1.027 GB, free: 8.961 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003883/0.5965, allocations: 2.149 MB / 1.029 GB, free: 6.809 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0002817/0.5968, allocations: 279.8 kB / 1.029 GB, free: 6.535 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0003495/0.5971, allocations: 310.1 kB / 1.029 GB, free: 6.23 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.004128/0.6013, allocations: 2.17 MB / 1.031 GB, free: 4.055 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.978e-06/0.6013, allocations: 4 kB / 1.031 GB, free: 4.051 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.102e-06/0.6013, allocations: 0 / 1.031 GB, free: 4.051 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 1.427e-05/0.6013, allocations: 0 / 1.031 GB, free: 4.051 MB / 0.7794 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.01173/0.6131, allocations: 1.359 MB / 1.033 GB, free: 2.641 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.489e-05/0.6131, allocations: 12.03 kB / 1.033 GB, free: 2.629 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004489/0.6136, allocations: 99.5 kB / 1.033 GB, free: 2.531 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000583/0.6142, allocations: 414.1 kB / 1.033 GB, free: 2.078 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.574e-05/0.6142, allocations: 4.375 kB / 1.033 GB, free: 2.074 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.276e-05/0.6143, allocations: 8.375 kB / 1.033 GB, free: 2.066 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004904/0.6148, allocations: 395.4 kB / 1.034 GB, free: 1.668 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.231e-05/0.6148, allocations: 0 / 1.034 GB, free: 1.668 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.478e-05/0.6148, allocations: 0 / 1.034 GB, free: 1.668 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.05e-06/0.6148, allocations: 0 / 1.034 GB, free: 1.668 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004909/0.6153, allocations: 439.7 kB / 1.034 GB, free: 1.238 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008067/0.6161, allocations: 0.6615 MB / 1.035 GB, free: 0.5273 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006135/0.6168, allocations: 0.5632 MB / 1.035 GB, free: 15.95 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000367/0.6171, allocations: 345.7 kB / 1.036 GB, free: 15.6 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001257/0.6184, allocations: 1.025 MB / 1.037 GB, free: 14.36 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004745/0.6189, allocations: 424.7 kB / 1.037 GB, free: 13.92 MB / 0.795 GB Notification: Performance of pre-optimization done (n=8): time 1.703e-06/0.6189, allocations: 0 / 1.037 GB, free: 13.92 MB / 0.795 GB Notification: Performance of matching and sorting (n=8): time 0.001504/0.6204, allocations: 1.289 MB / 1.038 GB, free: 12.62 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.19e-05/0.6205, allocations: 85.09 kB / 1.038 GB, free: 12.52 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001481/0.622, allocations: 1.286 MB / 1.04 GB, free: 11.23 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 4.617e-05/0.622, allocations: 33.69 kB / 1.04 GB, free: 11.19 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002512/0.6223, allocations: 285.5 kB / 1.04 GB, free: 10.9 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 4.698e-05/0.6224, allocations: 23.7 kB / 1.04 GB, free: 10.88 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003846/0.6227, allocations: 351.6 kB / 1.04 GB, free: 10.53 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001476/0.6229, allocations: 318 kB / 1.041 GB, free: 10.21 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00143/0.6243, allocations: 1.373 MB / 1.042 GB, free: 8.84 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001534/0.6259, allocations: 1.501 MB / 1.043 GB, free: 7.328 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00769/0.6336, allocations: 3.564 MB / 1.047 GB, free: 3.672 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.013e-06/0.6336, allocations: 3.984 kB / 1.047 GB, free: 3.668 MB / 0.795 GB Notification: Performance of matching and sorting (n=319) (initialization): time 0.005/0.6386, allocations: 4.01 MB / 1.051 GB, free: 15.62 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.95e-05/0.6387, allocations: 7.938 kB / 1.051 GB, free: 15.61 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.057e-05/0.6387, allocations: 12.02 kB / 1.051 GB, free: 15.6 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.793e-05/0.6387, allocations: 0 / 1.051 GB, free: 15.6 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001338/0.6388, allocations: 15.94 kB / 1.051 GB, free: 15.59 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.003e-06/0.6389, allocations: 0 / 1.051 GB, free: 15.59 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000555/0.6394, allocations: 236.3 kB / 1.051 GB, free: 15.35 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.423e-05/0.6395, allocations: 23.98 kB / 1.051 GB, free: 15.33 MB / 0.8106 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.0003657/0.6399, allocations: 242.8 kB / 1.051 GB, free: 15.08 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.599e-05/0.64, allocations: 82.61 kB / 1.051 GB, free: 15 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003412/0.6403, allocations: 83.75 kB / 1.051 GB, free: 14.91 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.108e-06/0.6403, allocations: 0 / 1.051 GB, free: 14.91 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.22e-06/0.6403, allocations: 0 / 1.051 GB, free: 14.91 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.308e-06/0.6404, allocations: 0 / 1.051 GB, free: 14.91 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005672/0.6409, allocations: 0.5179 MB / 1.052 GB, free: 14.34 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.637e-06/0.6409, allocations: 3.984 kB / 1.052 GB, free: 14.34 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.942e-05/0.641, allocations: 11.97 kB / 1.052 GB, free: 14.33 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.805e-06/0.641, allocations: 4 kB / 1.052 GB, free: 14.32 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.683e-05/0.6411, allocations: 7.984 kB / 1.052 GB, free: 14.32 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.082e-06/0.6411, allocations: 4 kB / 1.052 GB, free: 14.31 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.483e-06/0.6411, allocations: 0 / 1.052 GB, free: 14.31 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001045/0.6421, allocations: 0.9982 MB / 1.053 GB, free: 13.29 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001599/0.6423, allocations: 163.7 kB / 1.053 GB, free: 13.11 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.181e-05/0.6424, allocations: 15.92 kB / 1.053 GB, free: 13.1 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00015/0.6425, allocations: 0 / 1.053 GB, free: 13.1 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.82e-05/0.6426, allocations: 7.984 kB / 1.053 GB, free: 13.09 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.042e-05/0.6426, allocations: 11.98 kB / 1.053 GB, free: 13.08 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.0009093/0.6436, allocations: 0.7261 MB / 1.054 GB, free: 12.35 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.7e-07/0.6436, allocations: 0 / 1.054 GB, free: 12.35 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.00162/0.6452, allocations: 0.5818 MB / 1.054 GB, free: 11.77 MB / 0.8106 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.002463/0.6477, allocations: 0.6974 MB / 1.055 GB, free: 11.08 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.002797/0.6505, allocations: 2.56 MB / 1.058 GB, free: 8.508 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 6.582e-06/0.6505, allocations: 0 / 1.058 GB, free: 8.508 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0003812/0.6509, allocations: 347.7 kB / 1.058 GB, free: 8.168 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004608/0.6514, allocations: 56.34 kB / 1.058 GB, free: 8.117 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002692/0.6541, allocations: 1.881 MB / 1.06 GB, free: 6.203 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006496/0.6547, allocations: 0.9995 MB / 1.061 GB, free: 5.176 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 0.0002019/0.6549, allocations: 37.42 kB / 1.061 GB, free: 5.141 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001084/0.6551, allocations: 27.42 kB / 1.061 GB, free: 5.113 MB / 0.8106 GB Notification: Performance of SimCode: time 3e-07/0.6551, allocations: 0 / 1.061 GB, free: 5.113 MB / 0.8106 GB Notification: Performance of Templates: time 0.02818/0.6832, allocations: 14.17 MB / 1.075 GB, free: 6.992 MB / 0.8262 GB make -j1 -f Buildings_10_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.makefile (rm -f Buildings_10_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe ; mkfifo Buildings_10_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe >> ../files/Buildings_10_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.sim & ./Buildings_10_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_SmallScaleValidation.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches