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.001801/0.001801, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.002196/0.002196, allocations: 189 kB / 16.25 MB, free: 6.633 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.432/1.432, allocations: 222.9 MB / 239.9 MB, free: 4.52 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.695/2.695, allocations: 437 MB / 0.7101 GB, free: 5.246 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.002774/0.002774, allocations: 67.89 kB / 0.8688 GB, free: 5.027 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6273/0.6301, allocations: 151.6 MB / 1.017 GB, free: 2.859 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation): time 0.003657/0.6338, allocations: 1.814 MB / 1.019 GB, free: 1.031 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.008625/0.6425, allocations: 5.405 MB / 1.024 GB, free: 11.61 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001927/0.6427, allocations: 7.938 kB / 1.024 GB, free: 11.6 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.001772/0.6446, allocations: 354.6 kB / 1.024 GB, free: 11.25 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.000215/0.6448, allocations: 59.72 kB / 1.024 GB, free: 11.19 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.00454/0.6493, allocations: 1.338 MB / 1.026 GB, free: 9.855 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0003556/0.6497, allocations: 155.3 kB / 1.026 GB, free: 9.703 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 7.63e-05/0.6498, allocations: 17.48 kB / 1.026 GB, free: 9.684 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001086/0.6499, allocations: 63.7 kB / 1.026 GB, free: 9.621 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002964/0.6502, allocations: 176.8 kB / 1.026 GB, free: 9.449 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 5.122e-05/0.6503, allocations: 20 kB / 1.026 GB, free: 9.43 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00376/0.654, allocations: 2.192 MB / 1.028 GB, free: 7.234 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0002712/0.6543, allocations: 279.8 kB / 1.028 GB, free: 6.961 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0003002/0.6546, allocations: 306.1 kB / 1.029 GB, free: 6.66 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.003224/0.6579, allocations: 2.186 MB / 1.031 GB, free: 4.465 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.847e-06/0.6579, allocations: 0 / 1.031 GB, free: 4.465 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.753e-06/0.6579, allocations: 4 kB / 1.031 GB, free: 4.461 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 1.413e-05/0.6579, allocations: 0 / 1.031 GB, free: 4.461 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.01/0.6679, allocations: 1.363 MB / 1.032 GB, free: 3.047 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 5.325e-05/0.668, allocations: 8.031 kB / 1.032 GB, free: 3.039 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004454/0.6685, allocations: 99.5 kB / 1.032 GB, free: 2.941 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005261/0.669, allocations: 414.1 kB / 1.033 GB, free: 2.488 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.353e-05/0.669, allocations: 8.375 kB / 1.033 GB, free: 2.48 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.387e-05/0.6691, allocations: 8.359 kB / 1.033 GB, free: 2.473 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004814/0.6696, allocations: 391.4 kB / 1.033 GB, free: 2.078 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.647e-06/0.6696, allocations: 0 / 1.033 GB, free: 2.078 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.536e-05/0.6696, allocations: 4 kB / 1.033 GB, free: 2.074 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.729e-06/0.6696, allocations: 4 kB / 1.033 GB, free: 2.07 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004835/0.6701, allocations: 435.7 kB / 1.033 GB, free: 1.645 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007348/0.6708, allocations: 0.6654 MB / 1.034 GB, free: 0.9297 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005838/0.6714, allocations: 0.5594 MB / 1.035 GB, free: 360 kB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003388/0.6718, allocations: 337.7 kB / 1.035 GB, free: 16 kB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001219/0.673, allocations: 1.028 MB / 1.036 GB, free: 14.77 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004655/0.6735, allocations: 412.7 kB / 1.036 GB, free: 14.34 MB / 0.795 GB Notification: Performance of pre-optimization done (n=8): time 1.443e-06/0.6735, allocations: 0 / 1.036 GB, free: 14.34 MB / 0.795 GB Notification: Performance of matching and sorting (n=8): time 0.001525/0.675, allocations: 1.296 MB / 1.038 GB, free: 13.04 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.969e-05/0.6751, allocations: 85.11 kB / 1.038 GB, free: 12.94 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001391/0.6765, allocations: 1.286 MB / 1.039 GB, free: 11.64 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 4.688e-05/0.6766, allocations: 33.7 kB / 1.039 GB, free: 11.6 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002372/0.6768, allocations: 285.5 kB / 1.039 GB, free: 11.32 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 4.038e-05/0.6769, allocations: 23.7 kB / 1.039 GB, free: 11.29 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003719/0.6772, allocations: 351.6 kB / 1.04 GB, free: 10.95 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001408/0.6774, allocations: 318 kB / 1.04 GB, free: 10.63 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001369/0.6788, allocations: 1.369 MB / 1.041 GB, free: 9.258 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00151/0.6803, allocations: 1.509 MB / 1.043 GB, free: 7.738 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007523/0.6878, allocations: 3.56 MB / 1.046 GB, free: 4.086 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.018e-06/0.6878, allocations: 0 / 1.046 GB, free: 4.086 MB / 0.795 GB Notification: Performance of matching and sorting (n=319) (initialization): time 0.005266/0.6931, allocations: 4.022 MB / 1.05 GB, free: 28 kB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 2.38e-05/0.6932, allocations: 4 kB / 1.05 GB, free: 24 kB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.995e-05/0.6932, allocations: 12.28 kB / 1.05 GB, free: 12 kB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.507e-05/0.6932, allocations: 0 / 1.05 GB, free: 12 kB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001553/0.6934, allocations: 16.05 kB / 1.05 GB, free: 15.99 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.444e-06/0.6934, allocations: 0 / 1.05 GB, free: 15.99 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005204/0.6939, allocations: 228.3 kB / 1.05 GB, free: 15.77 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.783e-05/0.694, allocations: 31.91 kB / 1.05 GB, free: 15.74 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.0003399/0.6943, allocations: 245.6 kB / 1.051 GB, free: 15.49 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.053e-05/0.6944, allocations: 82.55 kB / 1.051 GB, free: 15.41 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002994/0.6947, allocations: 83.81 kB / 1.051 GB, free: 15.31 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.506e-06/0.6947, allocations: 0 / 1.051 GB, free: 15.31 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.809e-06/0.6947, allocations: 0 / 1.051 GB, free: 15.31 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.507e-06/0.6948, allocations: 0 / 1.051 GB, free: 15.31 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005082/0.6953, allocations: 0.514 MB / 1.051 GB, free: 14.75 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.413e-06/0.6953, allocations: 0 / 1.051 GB, free: 14.75 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.347e-05/0.6954, allocations: 11.94 kB / 1.051 GB, free: 14.74 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.274e-06/0.6954, allocations: 4.031 kB / 1.051 GB, free: 14.74 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.629e-05/0.6954, allocations: 3.984 kB / 1.051 GB, free: 14.73 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.703e-06/0.6954, allocations: 11.94 kB / 1.051 GB, free: 14.72 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.723e-06/0.6954, allocations: 0 / 1.051 GB, free: 14.72 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001037/0.6964, allocations: 1.002 MB / 1.052 GB, free: 13.7 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001462/0.6966, allocations: 167.7 kB / 1.053 GB, free: 13.52 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.924e-05/0.6967, allocations: 4 kB / 1.053 GB, free: 13.51 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001544/0.6968, allocations: 4 kB / 1.053 GB, free: 13.51 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.106e-05/0.6969, allocations: 7.984 kB / 1.053 GB, free: 13.5 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.921e-05/0.6969, allocations: 11.98 kB / 1.053 GB, free: 13.49 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.0008711/0.6978, allocations: 0.7261 MB / 1.053 GB, free: 12.76 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.4e-07/0.6978, allocations: 0 / 1.053 GB, free: 12.76 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.001579/0.6994, allocations: 0.5779 MB / 1.054 GB, free: 12.18 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.002049/0.7015, allocations: 0.7078 MB / 1.055 GB, free: 11.49 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.002681/0.7042, allocations: 2.552 MB / 1.057 GB, free: 8.922 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 3.236e-06/0.7042, allocations: 0 / 1.057 GB, free: 8.922 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0003601/0.7045, allocations: 331.8 kB / 1.057 GB, free: 8.598 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004582/0.705, allocations: 68.77 kB / 1.057 GB, free: 8.531 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002522/0.7075, allocations: 2.058 MB / 1.059 GB, free: 6.441 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006579/0.7082, allocations: 0.9917 MB / 1.06 GB, free: 5.422 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 0.0002022/0.7084, allocations: 41.42 kB / 1.06 GB, free: 5.383 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001124/0.7085, allocations: 27.42 kB / 1.06 GB, free: 5.355 MB / 0.8106 GB Notification: Performance of SimCode: time 4.51e-07/0.7086, allocations: 0 / 1.06 GB, free: 5.355 MB / 0.8106 GB Notification: Performance of Templates: time 0.02619/0.7347, allocations: 14.17 MB / 1.074 GB, free: 7.246 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