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_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 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_1borehole_5meters,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|gFun_int",fileNamePrefix="Buildings_latest_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_latest_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.001125/0.001125, allocations: 104 kB / 16.35 MB, free: 5.824 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.00112/0.00112, allocations: 192.3 kB / 17.29 MB, free: 5.48 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.329/1.329, allocations: 222.9 MB / 241 MB, free: 15.13 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.467/2.467, allocations: 442.6 MB / 0.7165 GB, free: 14.66 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001293/0.001293, allocations: 61.94 kB / 0.8774 GB, free: 10.94 MB / 0.6544 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2741/0.2754, allocations: 153 MB / 1.027 GB, free: 2.016 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters): time 0.002422/0.2778, allocations: 1.436 MB / 1.028 GB, free: 0.5703 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.005995/0.2839, allocations: 4.207 MB / 1.032 GB, free: 12.34 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.079e-05/0.2839, allocations: 0 / 1.032 GB, free: 12.34 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0001137/0.2841, allocations: 11.88 kB / 1.032 GB, free: 12.33 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.000218/0.2843, allocations: 35.7 kB / 1.032 GB, free: 12.29 MB / 0.8106 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.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.003896/0.2882, allocations: 1.496 MB / 1.034 GB, free: 10.8 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0001751/0.2884, allocations: 99.66 kB / 1.034 GB, free: 10.7 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 4.278e-05/0.2885, allocations: 4 kB / 1.034 GB, free: 10.7 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 7.265e-05/0.2886, allocations: 51.77 kB / 1.034 GB, free: 10.64 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002354/0.2888, allocations: 143.6 kB / 1.034 GB, free: 10.5 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 3.975e-05/0.2888, allocations: 16 kB / 1.034 GB, free: 10.49 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003516/0.2924, allocations: 2.204 MB / 1.036 GB, free: 8.281 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 0.0002437/0.2926, allocations: 275.8 kB / 1.036 GB, free: 8.012 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0002562/0.2929, allocations: 282.3 kB / 1.037 GB, free: 7.734 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.003116/0.296, allocations: 2.108 MB / 1.039 GB, free: 5.621 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.897e-06/0.296, allocations: 0 / 1.039 GB, free: 5.621 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.512e-06/0.2961, allocations: 4 kB / 1.039 GB, free: 5.617 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 7.824e-06/0.2961, allocations: 0 / 1.039 GB, free: 5.617 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.008199/0.3043, allocations: 1.289 MB / 1.04 GB, free: 4.277 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.362e-05/0.3043, allocations: 16.03 kB / 1.04 GB, free: 4.262 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003964/0.3047, allocations: 87.69 kB / 1.04 GB, free: 4.176 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004251/0.3052, allocations: 361 kB / 1.041 GB, free: 3.773 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.415e-05/0.3052, allocations: 8.359 kB / 1.041 GB, free: 3.766 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.956e-05/0.3052, allocations: 4.375 kB / 1.041 GB, free: 3.762 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004549/0.3057, allocations: 399.4 kB / 1.041 GB, free: 3.359 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.346e-06/0.3057, allocations: 0 / 1.041 GB, free: 3.359 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.767e-05/0.3057, allocations: 7.984 kB / 1.041 GB, free: 3.352 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.312e-06/0.3058, allocations: 0 / 1.041 GB, free: 3.352 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004604/0.3062, allocations: 431.8 kB / 1.041 GB, free: 2.93 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006781/0.3069, allocations: 0.6404 MB / 1.042 GB, free: 2.238 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005384/0.3075, allocations: 0.5633 MB / 1.043 GB, free: 1.656 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003161/0.3078, allocations: 337.7 kB / 1.043 GB, free: 1.32 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001059/0.3089, allocations: 1.028 MB / 1.044 GB, free: 72 kB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004163/0.3093, allocations: 408.8 kB / 1.044 GB, free: 15.65 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=8): time 2.364e-06/0.3093, allocations: 0 / 1.044 GB, free: 15.65 MB / 0.8262 GB Notification: Performance of matching and sorting (n=8): time 0.001355/0.3107, allocations: 1.297 MB / 1.045 GB, free: 14.35 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.697e-05/0.3107, allocations: 81.11 kB / 1.046 GB, free: 14.25 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001134/0.3119, allocations: 1.21 MB / 1.047 GB, free: 13.02 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 4.583e-05/0.3119, allocations: 29.7 kB / 1.047 GB, free: 12.99 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001748/0.3121, allocations: 261.4 kB / 1.047 GB, free: 12.73 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 3.142e-05/0.3121, allocations: 19.75 kB / 1.047 GB, free: 12.71 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003235/0.3125, allocations: 355.6 kB / 1.047 GB, free: 12.36 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.000124/0.3126, allocations: 318 kB / 1.048 GB, free: 12.04 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001215/0.3138, allocations: 1.373 MB / 1.049 GB, free: 10.66 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001312/0.3151, allocations: 1.501 MB / 1.05 GB, free: 9.152 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007095/0.3223, allocations: 3.56 MB / 1.054 GB, free: 5.5 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.724e-06/0.3223, allocations: 8 kB / 1.054 GB, free: 5.492 MB / 0.8262 GB Notification: Performance of matching and sorting (n=319) (initialization): time 0.004382/0.3267, allocations: 4.003 MB / 1.058 GB, free: 1.453 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 2.649e-05/0.3267, allocations: 11.98 kB / 1.058 GB, free: 1.441 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.132e-05/0.3268, allocations: 0 / 1.058 GB, free: 1.441 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.863e-05/0.3268, allocations: 3.938 kB / 1.058 GB, free: 1.438 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001355/0.3269, allocations: 12 kB / 1.058 GB, free: 1.426 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.05e-05/0.3269, allocations: 7.984 kB / 1.058 GB, free: 1.418 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000536/0.3275, allocations: 228.3 kB / 1.058 GB, free: 1.191 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.224e-05/0.3276, allocations: 27.98 kB / 1.058 GB, free: 1.164 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.0003175/0.3279, allocations: 241.6 kB / 1.058 GB, free: 0.918 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.289e-05/0.328, allocations: 70.66 kB / 1.058 GB, free: 0.8477 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000281/0.3283, allocations: 75.06 kB / 1.059 GB, free: 0.7656 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.469e-06/0.3283, allocations: 4.031 kB / 1.059 GB, free: 0.7617 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.261e-06/0.3283, allocations: 0 / 1.059 GB, free: 0.7617 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.797e-06/0.3283, allocations: 0 / 1.059 GB, free: 0.7617 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004632/0.3288, allocations: 0.4968 MB / 1.059 GB, free: 224 kB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.883e-06/0.3288, allocations: 0 / 1.059 GB, free: 224 kB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.313e-05/0.3288, allocations: 11.92 kB / 1.059 GB, free: 212 kB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.33e-06/0.3289, allocations: 4 kB / 1.059 GB, free: 208 kB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.329e-05/0.3289, allocations: 0 / 1.059 GB, free: 208 kB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.943e-06/0.3289, allocations: 0 / 1.059 GB, free: 208 kB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.789e-06/0.3289, allocations: 7.984 kB / 1.059 GB, free: 200 kB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009624/0.3299, allocations: 0.9974 MB / 1.06 GB, free: 15.18 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001253/0.33, allocations: 159.8 kB / 1.06 GB, free: 15 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.679e-05/0.3301, allocations: 0 / 1.06 GB, free: 15 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001415/0.3302, allocations: 7.984 kB / 1.06 GB, free: 14.99 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.92e-05/0.3303, allocations: 4 kB / 1.06 GB, free: 14.99 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.076e-05/0.3303, allocations: 15.97 kB / 1.06 GB, free: 14.97 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0007441/0.3311, allocations: 0.6689 MB / 1.061 GB, free: 14.3 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.31e-07/0.3311, allocations: 0 / 1.061 GB, free: 14.3 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.001543/0.3326, allocations: 0.5818 MB / 1.061 GB, free: 13.71 MB / 0.8419 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.00173/0.3344, allocations: 0.6907 MB / 1.062 GB, free: 13.04 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.002398/0.3368, allocations: 2.559 MB / 1.065 GB, free: 10.47 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 3.026e-06/0.3368, allocations: 3.938 kB / 1.065 GB, free: 10.46 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0003216/0.3371, allocations: 343.8 kB / 1.065 GB, free: 10.13 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003207/0.3374, allocations: 37.23 kB / 1.065 GB, free: 10.09 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002136/0.3396, allocations: 1.752 MB / 1.067 GB, free: 8.305 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005784/0.3402, allocations: 0.964 MB / 1.068 GB, free: 7.312 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.0001354/0.3403, allocations: 36.56 kB / 1.068 GB, free: 7.277 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000101/0.3404, allocations: 27.41 kB / 1.068 GB, free: 7.25 MB / 0.8419 GB Notification: Performance of SimCode: time 6.41e-07/0.3404, allocations: 0 / 1.068 GB, free: 7.25 MB / 0.8419 GB Notification: Performance of Templates: time 0.4786/0.819, allocations: 13.54 MB / 1.081 GB, free: 54.3 MB / 0.8419 GB make -j1 -f Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.makefile (rm -f Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe >> ../files/Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.sim & ./Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_1borehole_5meters.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches