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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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=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.0008252/0.0008253, allocations: 99.58 kB / 16.02 MB, free: 76 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.000905/0.000905, allocations: 182.5 kB / 16.92 MB, free: 6.918 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.453/1.453, allocations: 223.3 MB / 241 MB, free: 5.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.68/2.68, allocations: 443.2 MB / 0.7181 GB, free: 1.48 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003783/0.0003785, allocations: 19.27 kB / 0.8801 GB, free: 41.77 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3384/0.3388, allocations: 155.2 MB / 1.032 GB, free: 4.492 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation): time 0.002534/0.3414, allocations: 1.468 MB / 1.033 GB, free: 3.012 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.009664/0.3511, allocations: 5.564 MB / 1.039 GB, free: 13.42 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001746/0.3514, allocations: 4 kB / 1.039 GB, free: 13.42 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 0.001458/0.3528, allocations: 354.6 kB / 1.039 GB, free: 13.07 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 0.0002257/0.3531, allocations: 47.73 kB / 1.039 GB, free: 13.02 MB / 0.795 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‘. Notification: Performance of NFTyping.typeClassSections: time 0.004021/0.3571, allocations: 1.177 MB / 1.04 GB, free: 11.85 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.0003843/0.3575, allocations: 211.2 kB / 1.04 GB, free: 11.64 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 8.323e-05/0.3576, allocations: 17.53 kB / 1.04 GB, free: 11.62 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001353/0.3577, allocations: 55.77 kB / 1.04 GB, free: 11.57 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003042/0.358, allocations: 180.8 kB / 1.041 GB, free: 11.39 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 6.25e-05/0.3581, allocations: 12 kB / 1.041 GB, free: 11.38 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004337/0.3625, allocations: 2.188 MB / 1.043 GB, free: 9.188 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 0.0002832/0.3628, allocations: 279.8 kB / 1.043 GB, free: 8.914 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 0.0003449/0.3631, allocations: 323.9 kB / 1.043 GB, free: 8.59 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.003072/0.3662, allocations: 1.563 MB / 1.045 GB, free: 7.023 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 4.469e-06/0.3662, allocations: 0 / 1.045 GB, free: 7.023 MB / 0.795 GB Notification: Performance of FrontEnd: time 1.773e-06/0.3662, allocations: 3.938 kB / 1.045 GB, free: 7.02 MB / 0.795 GB Notification: Performance of Transformations before backend: time 1.941e-05/0.3663, allocations: 4 kB / 1.045 GB, free: 7.016 MB / 0.795 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.01119/0.3775, allocations: 1.296 MB / 1.046 GB, free: 5.668 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 5.115e-05/0.3775, allocations: 12.03 kB / 1.046 GB, free: 5.656 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004822/0.378, allocations: 99.58 kB / 1.046 GB, free: 5.559 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006035/0.3786, allocations: 402.3 kB / 1.047 GB, free: 5.117 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.987e-05/0.3787, allocations: 4.375 kB / 1.047 GB, free: 5.113 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.691e-05/0.3787, allocations: 8.375 kB / 1.047 GB, free: 5.105 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005069/0.3792, allocations: 391.4 kB / 1.047 GB, free: 4.711 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.325e-06/0.3793, allocations: 0 / 1.047 GB, free: 4.711 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.557e-05/0.3793, allocations: 3.984 kB / 1.047 GB, free: 4.707 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.519e-06/0.3793, allocations: 0 / 1.047 GB, free: 4.707 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004592/0.3798, allocations: 435.8 kB / 1.047 GB, free: 4.281 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007499/0.3805, allocations: 0.6693 MB / 1.048 GB, free: 3.562 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005485/0.3811, allocations: 0.5594 MB / 1.049 GB, free: 2.984 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003454/0.3814, allocations: 337.7 kB / 1.049 GB, free: 2.648 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001147/0.3826, allocations: 1.044 MB / 1.05 GB, free: 1.383 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004659/0.3831, allocations: 412.8 kB / 1.05 GB, free: 0.9609 MB / 0.795 GB Notification: Performance of pre-optimization done (n=8): time 1.823e-06/0.3831, allocations: 0 / 1.05 GB, free: 0.9609 MB / 0.795 GB Notification: Performance of matching and sorting (n=8): time 0.001588/0.3847, allocations: 1.3 MB / 1.052 GB, free: 15.65 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.975e-05/0.3848, allocations: 77.23 kB / 1.052 GB, free: 15.56 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001598/0.3864, allocations: 1.293 MB / 1.053 GB, free: 14.25 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 6.358e-05/0.3864, allocations: 29.7 kB / 1.053 GB, free: 14.22 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002652/0.3867, allocations: 293.3 kB / 1.053 GB, free: 13.93 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 5.785e-05/0.3868, allocations: 19.8 kB / 1.053 GB, free: 13.91 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003163/0.3871, allocations: 287.7 kB / 1.053 GB, free: 13.62 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001496/0.3873, allocations: 318 kB / 1.054 GB, free: 13.3 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001401/0.3887, allocations: 1.369 MB / 1.055 GB, free: 11.93 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001473/0.3902, allocations: 1.513 MB / 1.057 GB, free: 10.41 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007401/0.3976, allocations: 3.56 MB / 1.06 GB, free: 6.758 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.514e-06/0.3976, allocations: 0 / 1.06 GB, free: 6.758 MB / 0.8106 GB Notification: Performance of matching and sorting (n=319) (initialization): time 0.005084/0.4027, allocations: 4.018 MB / 1.064 GB, free: 2.703 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 2.404e-05/0.4028, allocations: 4 kB / 1.064 GB, free: 2.699 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.574e-05/0.4028, allocations: 4 kB / 1.064 GB, free: 2.695 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.803e-05/0.4028, allocations: 0 / 1.064 GB, free: 2.695 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001487/0.403, allocations: 19.98 kB / 1.064 GB, free: 2.676 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.506e-06/0.403, allocations: 0 / 1.064 GB, free: 2.676 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005861/0.4036, allocations: 232.3 kB / 1.064 GB, free: 2.445 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.682e-05/0.4036, allocations: 23.98 kB / 1.064 GB, free: 2.422 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.000371/0.404, allocations: 249.6 kB / 1.065 GB, free: 2.168 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.392e-05/0.4041, allocations: 78.61 kB / 1.065 GB, free: 2.09 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003251/0.4045, allocations: 79.77 kB / 1.065 GB, free: 2 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.258e-06/0.4045, allocations: 0 / 1.065 GB, free: 2 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.358e-06/0.4045, allocations: 3.984 kB / 1.065 GB, free: 1.996 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.773e-06/0.4045, allocations: 4 kB / 1.065 GB, free: 1.992 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005233/0.405, allocations: 0.5219 MB / 1.065 GB, free: 1.426 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.064e-06/0.405, allocations: 0 / 1.065 GB, free: 1.426 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.124e-05/0.4051, allocations: 11.94 kB / 1.065 GB, free: 1.414 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.176e-06/0.4051, allocations: 0 / 1.065 GB, free: 1.414 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.882e-05/0.4051, allocations: 7.984 kB / 1.065 GB, free: 1.406 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.267e-06/0.4052, allocations: 3.938 kB / 1.065 GB, free: 1.402 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.923e-06/0.4052, allocations: 0 / 1.065 GB, free: 1.402 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001002/0.4062, allocations: 0.9979 MB / 1.066 GB, free: 392 kB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001579/0.4063, allocations: 167.7 kB / 1.066 GB, free: 204 kB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001467/0.4065, allocations: 8 kB / 1.066 GB, free: 196 kB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001536/0.4067, allocations: 4 kB / 1.066 GB, free: 192 kB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.871e-05/0.4067, allocations: 7.984 kB / 1.066 GB, free: 184 kB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.104e-05/0.4068, allocations: 7.984 kB / 1.066 GB, free: 176 kB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.0009022/0.4077, allocations: 0.73 MB / 1.067 GB, free: 15.44 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.5e-07/0.4077, allocations: 0 / 1.067 GB, free: 15.44 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.001771/0.4094, allocations: 0.5896 MB / 1.068 GB, free: 14.85 MB / 0.8262 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.002539/0.412, allocations: 0.6933 MB / 1.068 GB, free: 14.17 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.002649/0.4147, allocations: 2.554 MB / 1.071 GB, free: 11.6 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 3.817e-06/0.4147, allocations: 0 / 1.071 GB, free: 11.6 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0003723/0.4151, allocations: 343.9 kB / 1.071 GB, free: 11.27 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005034/0.4156, allocations: 53.2 kB / 1.071 GB, free: 11.21 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002858/0.4184, allocations: 2.131 MB / 1.073 GB, free: 9.047 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006497/0.4191, allocations: 0.992 MB / 1.074 GB, free: 8.031 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001375/0.4193, allocations: 35.41 kB / 1.074 GB, free: 7.996 MB / 0.8262 GB Notification: Performance of SimCode: time 6.61e-07/0.4193, allocations: 0 / 1.074 GB, free: 7.996 MB / 0.8262 GB Notification: Performance of Templates: time 0.03125/0.4505, allocations: 14.42 MB / 1.088 GB, free: 9.586 MB / 0.8419 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/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) "" Variables in the reference:time,gFun_int Variables in the result:gFun_int,time