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.001476/0.001476, allocations: 102.2 kB / 16.35 MB, free: 5.875 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.001691/0.001691, allocations: 194.3 kB / 17.3 MB, free: 5.516 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.312/1.312, allocations: 222.9 MB / 241 MB, free: 14.99 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.44/2.44, allocations: 442.6 MB / 0.7165 GB, free: 14.65 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001153/0.001153, allocations: 65 kB / 0.8774 GB, free: 10.91 MB / 0.6544 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2688/0.27, allocations: 153 MB / 1.027 GB, free: 1.988 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation): time 0.002794/0.2728, allocations: 1.777 MB / 1.028 GB, free: 208 kB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.007209/0.28, allocations: 5.386 MB / 1.034 GB, free: 10.79 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001103/0.2801, allocations: 4 kB / 1.034 GB, free: 10.79 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.001091/0.2813, allocations: 366 kB / 1.034 GB, free: 10.43 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0001202/0.2814, allocations: 67.66 kB / 1.034 GB, free: 10.37 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.003701/0.2852, allocations: 1.489 MB / 1.036 GB, free: 8.879 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0002533/0.2854, allocations: 163.3 kB / 1.036 GB, free: 8.719 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 4.948e-05/0.2855, allocations: 21.53 kB / 1.036 GB, free: 8.695 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 8.168e-05/0.2856, allocations: 63.7 kB / 1.036 GB, free: 8.633 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002023/0.2858, allocations: 159.5 kB / 1.036 GB, free: 8.477 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 3.979e-05/0.2858, allocations: 16 kB / 1.036 GB, free: 8.461 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003278/0.2891, allocations: 2.208 MB / 1.038 GB, free: 6.25 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 0.0002198/0.2893, allocations: 275.8 kB / 1.038 GB, free: 5.98 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.000275/0.2896, allocations: 314.1 kB / 1.039 GB, free: 5.672 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.002894/0.2925, allocations: 2.182 MB / 1.041 GB, free: 3.484 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 2.735e-06/0.2926, allocations: 0 / 1.041 GB, free: 3.484 MB / 0.8106 GB Notification: Performance of FrontEnd: time 9.42e-07/0.2926, allocations: 0 / 1.041 GB, free: 3.484 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 1.105e-05/0.2926, allocations: 0 / 1.041 GB, free: 3.484 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.008248/0.3008, allocations: 1.367 MB / 1.042 GB, free: 2.066 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.564e-05/0.3009, allocations: 8.031 kB / 1.042 GB, free: 2.059 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000383/0.3013, allocations: 103.5 kB / 1.042 GB, free: 1.957 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000528/0.3018, allocations: 402.3 kB / 1.043 GB, free: 1.516 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.347e-05/0.3018, allocations: 8.375 kB / 1.043 GB, free: 1.508 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.023e-05/0.3019, allocations: 12.34 kB / 1.043 GB, free: 1.496 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004077/0.3023, allocations: 391.3 kB / 1.043 GB, free: 1.102 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.115e-06/0.3023, allocations: 0 / 1.043 GB, free: 1.102 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.109e-05/0.3023, allocations: 7.938 kB / 1.043 GB, free: 1.094 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.286e-06/0.3023, allocations: 0 / 1.043 GB, free: 1.094 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004084/0.3027, allocations: 431.8 kB / 1.044 GB, free: 0.6719 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005893/0.3033, allocations: 0.6693 MB / 1.044 GB, free: 15.95 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004907/0.3038, allocations: 0.5594 MB / 1.045 GB, free: 15.37 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002944/0.3042, allocations: 349.6 kB / 1.045 GB, free: 15.02 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009196/0.3051, allocations: 1.021 MB / 1.046 GB, free: 13.78 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003874/0.3055, allocations: 412.8 kB / 1.046 GB, free: 13.36 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=8): time 1.924e-06/0.3055, allocations: 0 / 1.046 GB, free: 13.36 MB / 0.8262 GB Notification: Performance of matching and sorting (n=8): time 0.001304/0.3068, allocations: 1.293 MB / 1.048 GB, free: 12.06 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.552e-05/0.3069, allocations: 85.17 kB / 1.048 GB, free: 11.96 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001192/0.3081, allocations: 1.293 MB / 1.049 GB, free: 10.66 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 5.327e-05/0.3081, allocations: 29.7 kB / 1.049 GB, free: 10.62 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001906/0.3083, allocations: 289.3 kB / 1.049 GB, free: 10.33 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 4.389e-05/0.3084, allocations: 19.75 kB / 1.049 GB, free: 10.31 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003054/0.3087, allocations: 359.5 kB / 1.05 GB, free: 9.957 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 9.642e-05/0.3088, allocations: 322 kB / 1.05 GB, free: 9.637 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001154/0.3099, allocations: 1.369 MB / 1.051 GB, free: 8.266 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001285/0.3112, allocations: 1.509 MB / 1.053 GB, free: 6.746 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007351/0.3186, allocations: 3.553 MB / 1.056 GB, free: 3.102 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.945e-06/0.3186, allocations: 0 / 1.056 GB, free: 3.102 MB / 0.8262 GB Notification: Performance of matching and sorting (n=319) (initialization): time 0.004397/0.323, allocations: 4.014 MB / 1.06 GB, free: 15.05 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 2.096e-05/0.3231, allocations: 8 kB / 1.06 GB, free: 15.04 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.856e-05/0.3231, allocations: 0 / 1.06 GB, free: 15.04 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.342e-05/0.3231, allocations: 4 kB / 1.06 GB, free: 15.04 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001294/0.3233, allocations: 23.92 kB / 1.06 GB, free: 15.01 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.751e-06/0.3233, allocations: 0 / 1.06 GB, free: 15.01 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005587/0.3239, allocations: 228.4 kB / 1.06 GB, free: 14.79 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.275e-05/0.3239, allocations: 19.98 kB / 1.06 GB, free: 14.77 MB / 0.8419 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.0003399/0.3243, allocations: 253.6 kB / 1.061 GB, free: 14.51 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.351e-05/0.3243, allocations: 78.53 kB / 1.061 GB, free: 14.43 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000284/0.3246, allocations: 83.75 kB / 1.061 GB, free: 14.34 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.993e-06/0.3247, allocations: 4 kB / 1.061 GB, free: 14.34 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.881e-06/0.3247, allocations: 0 / 1.061 GB, free: 14.34 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.206e-06/0.3247, allocations: 0 / 1.061 GB, free: 14.34 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000527/0.3252, allocations: 0.518 MB / 1.061 GB, free: 13.77 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.479e-06/0.3252, allocations: 3.938 kB / 1.061 GB, free: 13.77 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.142e-05/0.3253, allocations: 7.984 kB / 1.061 GB, free: 13.76 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.511e-06/0.3253, allocations: 4 kB / 1.061 GB, free: 13.76 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.162e-05/0.3253, allocations: 0 / 1.061 GB, free: 13.76 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.833e-06/0.3253, allocations: 0 / 1.061 GB, free: 13.76 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.277e-06/0.3253, allocations: 4 kB / 1.061 GB, free: 13.75 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008866/0.3262, allocations: 1.013 MB / 1.062 GB, free: 12.72 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001183/0.3264, allocations: 159.7 kB / 1.063 GB, free: 12.55 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.887e-05/0.3264, allocations: 0 / 1.063 GB, free: 12.55 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001502/0.3266, allocations: 7.984 kB / 1.063 GB, free: 12.54 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.854e-05/0.3266, allocations: 15.86 kB / 1.063 GB, free: 12.52 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.598e-05/0.3267, allocations: 15.98 kB / 1.063 GB, free: 12.51 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0007689/0.3275, allocations: 0.7222 MB / 1.063 GB, free: 11.78 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.31e-07/0.3275, allocations: 0 / 1.063 GB, free: 11.78 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.001713/0.3292, allocations: 0.5818 MB / 1.064 GB, free: 11.2 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.001853/0.3311, allocations: 0.6855 MB / 1.065 GB, free: 10.52 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.002256/0.3333, allocations: 2.544 MB / 1.067 GB, free: 7.965 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 3.407e-06/0.3333, allocations: 4.062 kB / 1.067 GB, free: 7.961 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0003143/0.3337, allocations: 347.7 kB / 1.067 GB, free: 7.621 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004201/0.3341, allocations: 60.14 kB / 1.067 GB, free: 7.566 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002054/0.3362, allocations: 1.874 MB / 1.069 GB, free: 5.66 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004924/0.3367, allocations: 0.9879 MB / 1.07 GB, free: 4.645 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.0001563/0.3368, allocations: 41.42 kB / 1.07 GB, free: 4.598 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001032/0.3369, allocations: 27.41 kB / 1.07 GB, free: 4.574 MB / 0.8419 GB Notification: Performance of SimCode: time 5.71e-07/0.3369, allocations: 0 / 1.07 GB, free: 4.574 MB / 0.8419 GB Notification: Performance of Templates: time 0.4442/0.7812, allocations: 14.17 MB / 1.084 GB, free: 53.75 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 -s gbode -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) Reference file matches