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_1borehole_5meters.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.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-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_1borehole_5meters,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|gFun_int",fileNamePrefix="Buildings_10_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters") translateModel(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|gFun_int",fileNamePrefix="Buildings_10_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001673/0.001674, allocations: 107.9 kB / 16.37 MB, free: 5.516 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.002054/0.002054, allocations: 193.3 kB / 17.31 MB, free: 5.16 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.317/1.317, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.396/2.396, allocations: 437.1 MB / 0.7112 GB, free: 4.297 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001309/0.001309, allocations: 64.19 kB / 0.8707 GB, free: 1.328 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2673/0.2686, allocations: 151.6 MB / 1.019 GB, free: 9.742 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters): time 0.002398/0.2711, allocations: 1.44 MB / 1.02 GB, free: 8.285 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.005945/0.277, allocations: 4.201 MB / 1.024 GB, free: 4.062 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.879e-05/0.2771, allocations: 0 / 1.024 GB, free: 4.062 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 0.0001031/0.2773, allocations: 15.86 kB / 1.024 GB, free: 4.047 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 0.0002118/0.2775, allocations: 31.77 kB / 1.024 GB, free: 4.016 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'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-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.0035/0.281, allocations: 1.503 MB / 1.026 GB, free: 2.508 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.0001541/0.2812, allocations: 91.78 kB / 1.026 GB, free: 2.418 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 4.205e-05/0.2812, allocations: 7.938 kB / 1.026 GB, free: 2.41 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 6.615e-05/0.2813, allocations: 43.84 kB / 1.026 GB, free: 2.367 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002112/0.2815, allocations: 143.6 kB / 1.026 GB, free: 2.227 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 4.125e-05/0.2816, allocations: 16 kB / 1.026 GB, free: 2.211 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00289/0.2845, allocations: 2.207 MB / 1.028 GB, free: 0 / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 0.0002335/0.2847, allocations: 271.8 kB / 1.029 GB, free: 15.73 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0002386/0.285, allocations: 282.3 kB / 1.029 GB, free: 15.46 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.002597/0.2876, allocations: 2.108 MB / 1.031 GB, free: 13.34 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.797e-06/0.2876, allocations: 0 / 1.031 GB, free: 13.34 MB / 0.8106 GB Notification: Performance of FrontEnd: time 2.725e-06/0.2876, allocations: 4 kB / 1.031 GB, free: 13.34 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 7.374e-06/0.2876, allocations: 0 / 1.031 GB, free: 13.34 MB / 0.8106 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.008425/0.296, allocations: 1.292 MB / 1.032 GB, free: 12 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.03e-05/0.2961, allocations: 16.92 kB / 1.032 GB, free: 11.98 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003747/0.2965, allocations: 87.69 kB / 1.032 GB, free: 11.89 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004085/0.2969, allocations: 357 kB / 1.033 GB, free: 11.5 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.359e-05/0.2969, allocations: 8.359 kB / 1.033 GB, free: 11.49 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.914e-05/0.297, allocations: 4.375 kB / 1.033 GB, free: 11.48 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004247/0.2974, allocations: 395.4 kB / 1.033 GB, free: 11.09 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.125e-06/0.2974, allocations: 0 / 1.033 GB, free: 11.09 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.691e-05/0.2974, allocations: 4 kB / 1.033 GB, free: 11.08 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.152e-06/0.2974, allocations: 7.922 kB / 1.033 GB, free: 11.07 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004053/0.2979, allocations: 435.7 kB / 1.033 GB, free: 10.65 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005441/0.2984, allocations: 0.6404 MB / 1.034 GB, free: 9.957 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004783/0.2989, allocations: 0.5633 MB / 1.035 GB, free: 9.375 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002884/0.2992, allocations: 337.7 kB / 1.035 GB, free: 9.039 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009777/0.3002, allocations: 1.032 MB / 1.036 GB, free: 7.785 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003804/0.3006, allocations: 408.8 kB / 1.036 GB, free: 7.367 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=8): time 1.343e-06/0.3006, allocations: 0 / 1.036 GB, free: 7.367 MB / 0.8106 GB Notification: Performance of matching and sorting (n=8): time 0.001239/0.3018, allocations: 1.293 MB / 1.038 GB, free: 6.066 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.441e-05/0.3019, allocations: 81.11 kB / 1.038 GB, free: 5.969 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001067/0.303, allocations: 1.207 MB / 1.039 GB, free: 4.746 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 3.557e-05/0.303, allocations: 29.7 kB / 1.039 GB, free: 4.711 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001768/0.3032, allocations: 265.3 kB / 1.039 GB, free: 4.445 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 3.392e-05/0.3032, allocations: 23.73 kB / 1.039 GB, free: 4.422 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003012/0.3035, allocations: 351.6 kB / 1.039 GB, free: 4.074 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 9.14e-05/0.3036, allocations: 310 kB / 1.04 GB, free: 3.766 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001151/0.3048, allocations: 1.377 MB / 1.041 GB, free: 2.387 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00126/0.3061, allocations: 1.501 MB / 1.043 GB, free: 0.875 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007111/0.3132, allocations: 3.557 MB / 1.046 GB, free: 13.22 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.947e-06/0.3132, allocations: 4 kB / 1.046 GB, free: 13.22 MB / 0.8262 GB Notification: Performance of matching and sorting (n=319) (initialization): time 0.004105/0.3173, allocations: 4.01 MB / 1.05 GB, free: 9.172 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.758e-05/0.3173, allocations: 4 kB / 1.05 GB, free: 9.168 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.779e-05/0.3174, allocations: 7.984 kB / 1.05 GB, free: 9.16 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.62e-05/0.3174, allocations: 0 / 1.05 GB, free: 9.16 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001292/0.3175, allocations: 12 kB / 1.05 GB, free: 9.148 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.342e-06/0.3175, allocations: 4 kB / 1.05 GB, free: 9.145 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004546/0.318, allocations: 232.3 kB / 1.05 GB, free: 8.914 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.524e-05/0.3181, allocations: 23.98 kB / 1.05 GB, free: 8.891 MB / 0.8262 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.0002984/0.3184, allocations: 246.7 kB / 1.05 GB, free: 8.641 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.934e-05/0.3184, allocations: 70.62 kB / 1.051 GB, free: 8.57 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002519/0.3187, allocations: 75.06 kB / 1.051 GB, free: 8.488 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.729e-06/0.3187, allocations: 4 kB / 1.051 GB, free: 8.484 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.518e-06/0.3187, allocations: 4.031 kB / 1.051 GB, free: 8.48 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.775e-06/0.3187, allocations: 0 / 1.051 GB, free: 8.48 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003974/0.3191, allocations: 0.4929 MB / 1.051 GB, free: 7.945 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.393e-06/0.3191, allocations: 0 / 1.051 GB, free: 7.945 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.152e-05/0.3192, allocations: 11.92 kB / 1.051 GB, free: 7.934 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.779e-06/0.3192, allocations: 4 kB / 1.051 GB, free: 7.93 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.15e-05/0.3192, allocations: 0 / 1.051 GB, free: 7.93 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.547e-06/0.3192, allocations: 3.938 kB / 1.051 GB, free: 7.926 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.504e-06/0.3193, allocations: 4 kB / 1.051 GB, free: 7.922 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008439/0.3201, allocations: 0.9978 MB / 1.052 GB, free: 6.902 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 9.966e-05/0.3202, allocations: 159.8 kB / 1.052 GB, free: 6.727 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.903e-05/0.3203, allocations: 4 kB / 1.052 GB, free: 6.723 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001504/0.3204, allocations: 7.984 kB / 1.052 GB, free: 6.715 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.245e-05/0.3205, allocations: 4 kB / 1.052 GB, free: 6.711 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.007e-05/0.3205, allocations: 15.97 kB / 1.052 GB, free: 6.695 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0006862/0.3212, allocations: 0.6689 MB / 1.053 GB, free: 6.02 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3212, allocations: 0 / 1.053 GB, free: 6.02 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.001325/0.3226, allocations: 0.5818 MB / 1.053 GB, free: 5.438 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.001597/0.3242, allocations: 0.6802 MB / 1.054 GB, free: 4.773 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.002155/0.3263, allocations: 2.565 MB / 1.057 GB, free: 2.195 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.414e-06/0.3263, allocations: 3.938 kB / 1.057 GB, free: 2.191 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0003017/0.3266, allocations: 335.8 kB / 1.057 GB, free: 1.863 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002971/0.327, allocations: 41.47 kB / 1.057 GB, free: 1.824 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001857/0.3288, allocations: 1.748 MB / 1.059 GB, free: 40 kB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004858/0.3293, allocations: 0.9717 MB / 1.06 GB, free: 15.04 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.0001238/0.3295, allocations: 32.56 kB / 1.06 GB, free: 15.01 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.767e-05/0.3296, allocations: 31.41 kB / 1.06 GB, free: 14.98 MB / 0.8419 GB Notification: Performance of SimCode: time 3.21e-07/0.3296, allocations: 0 / 1.06 GB, free: 14.98 MB / 0.8419 GB Notification: Performance of Templates: time 0.02074/0.3503, allocations: 13.55 MB / 1.073 GB, free: 1.465 MB / 0.8419 GB make -j1 -f Buildings_10_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.makefile (rm -f Buildings_10_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe ; mkfifo Buildings_10_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe >> ../files/Buildings_10_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.sim & ./Buildings_10_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_1borehole_5meters.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches