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.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_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.001538/0.001537, 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.001887/0.001887, allocations: 192.4 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.33/1.33, allocations: 222.9 MB / 239.9 MB, free: 4.5 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.531/2.531, allocations: 437 MB / 0.71 GB, free: 5.234 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001273/0.001273, allocations: 63.91 kB / 0.8688 GB, free: 5.023 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6119/0.6132, allocations: 151.6 MB / 1.017 GB, free: 2.711 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters): time 0.002503/0.6158, allocations: 1.493 MB / 1.018 GB, free: 1.207 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.006077/0.6219, allocations: 4.231 MB / 1.022 GB, free: 12.96 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.207e-05/0.622, allocations: 3.938 kB / 1.022 GB, free: 12.95 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0001198/0.6221, allocations: 11.92 kB / 1.022 GB, free: 12.94 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0002306/0.6224, allocations: 27.91 kB / 1.022 GB, free: 12.91 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.004018/0.6264, allocations: 1.343 MB / 1.024 GB, free: 11.57 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.000138/0.6266, allocations: 99.67 kB / 1.024 GB, free: 11.48 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 5.185e-05/0.6266, allocations: 7.984 kB / 1.024 GB, free: 11.47 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 7.761e-05/0.6267, allocations: 39.84 kB / 1.024 GB, free: 11.43 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002517/0.627, allocations: 164.9 kB / 1.024 GB, free: 11.27 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 3.436e-05/0.627, allocations: 12 kB / 1.024 GB, free: 11.26 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003093/0.6301, allocations: 2.203 MB / 1.026 GB, free: 9.051 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0002025/0.6303, allocations: 267.8 kB / 1.026 GB, free: 8.789 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0002216/0.6306, allocations: 278.3 kB / 1.027 GB, free: 8.516 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.002638/0.6332, allocations: 2.12 MB / 1.029 GB, free: 6.387 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 6.893e-06/0.6332, allocations: 0 / 1.029 GB, free: 6.387 MB / 0.7794 GB Notification: Performance of FrontEnd: time 2.465e-06/0.6332, allocations: 0 / 1.029 GB, free: 6.387 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 1.227e-05/0.6333, allocations: 0 / 1.029 GB, free: 6.387 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.009362/0.6426, allocations: 1.304 MB / 1.03 GB, free: 5.031 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.116e-05/0.6427, allocations: 8.031 kB / 1.03 GB, free: 5.023 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004049/0.6431, allocations: 87.69 kB / 1.03 GB, free: 4.938 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003638/0.6435, allocations: 361 kB / 1.031 GB, free: 4.535 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.208e-05/0.6435, allocations: 4.375 kB / 1.031 GB, free: 4.531 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.903e-05/0.6435, allocations: 8.375 kB / 1.031 GB, free: 4.523 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004179/0.6439, allocations: 399.4 kB / 1.031 GB, free: 4.121 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.622e-06/0.644, allocations: 0 / 1.031 GB, free: 4.121 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.497e-05/0.644, allocations: 3.984 kB / 1.031 GB, free: 4.117 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.593e-06/0.644, allocations: 4 kB / 1.031 GB, free: 4.113 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004191/0.6444, allocations: 427.8 kB / 1.031 GB, free: 3.695 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005466/0.645, allocations: 0.6404 MB / 1.032 GB, free: 3.004 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000491/0.6455, allocations: 0.5633 MB / 1.033 GB, free: 2.422 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002987/0.6458, allocations: 333.7 kB / 1.033 GB, free: 2.09 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001026/0.6468, allocations: 1.036 MB / 1.034 GB, free: 0.832 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003915/0.6472, allocations: 404.8 kB / 1.034 GB, free: 428 kB / 0.7794 GB Notification: Performance of pre-optimization done (n=8): time 1.723e-06/0.6472, allocations: 0 / 1.034 GB, free: 428 kB / 0.7794 GB Notification: Performance of matching and sorting (n=8): time 0.001294/0.6485, allocations: 1.289 MB / 1.035 GB, free: 15.12 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.38e-05/0.6486, allocations: 89.05 kB / 1.036 GB, free: 15.02 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001084/0.6497, allocations: 1.214 MB / 1.037 GB, free: 13.79 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 4.314e-05/0.6497, allocations: 29.7 kB / 1.037 GB, free: 13.75 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001819/0.6499, allocations: 269.3 kB / 1.037 GB, free: 13.48 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 3.353e-05/0.65, allocations: 19.75 kB / 1.037 GB, free: 13.46 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003081/0.6503, allocations: 351.6 kB / 1.037 GB, free: 13.11 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 9.262e-05/0.6504, allocations: 318.1 kB / 1.038 GB, free: 12.8 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001185/0.6516, allocations: 1.369 MB / 1.039 GB, free: 11.43 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001254/0.6528, allocations: 1.501 MB / 1.041 GB, free: 9.914 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007003/0.6599, allocations: 3.564 MB / 1.044 GB, free: 6.258 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.009e-06/0.6599, allocations: 0 / 1.044 GB, free: 6.258 MB / 0.795 GB Notification: Performance of matching and sorting (n=319) (initialization): time 0.004172/0.6641, allocations: 3.999 MB / 1.048 GB, free: 2.223 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 2.687e-05/0.6641, allocations: 4 kB / 1.048 GB, free: 2.219 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.467e-05/0.6642, allocations: 4 kB / 1.048 GB, free: 2.215 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.067e-05/0.6642, allocations: 0 / 1.048 GB, free: 2.215 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001457/0.6643, allocations: 23.92 kB / 1.048 GB, free: 2.191 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.113e-05/0.6644, allocations: 0 / 1.048 GB, free: 2.191 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005189/0.6649, allocations: 232.3 kB / 1.048 GB, free: 1.961 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.483e-05/0.6649, allocations: 23.98 kB / 1.048 GB, free: 1.938 MB / 0.795 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.0003369/0.6653, allocations: 234.2 kB / 1.048 GB, free: 1.699 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.617e-05/0.6654, allocations: 70.72 kB / 1.048 GB, free: 1.629 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003067/0.6657, allocations: 83 kB / 1.049 GB, free: 1.539 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.191e-06/0.6657, allocations: 4 kB / 1.049 GB, free: 1.535 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.043e-06/0.6657, allocations: 0 / 1.049 GB, free: 1.535 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.957e-06/0.6657, allocations: 0 / 1.049 GB, free: 1.535 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000483/0.6662, allocations: 0.4969 MB / 1.049 GB, free: 0.9922 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.623e-06/0.6662, allocations: 0 / 1.049 GB, free: 0.9922 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.598e-05/0.6663, allocations: 15.91 kB / 1.049 GB, free: 0.9766 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.695e-06/0.6663, allocations: 0 / 1.049 GB, free: 0.9766 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.829e-05/0.6663, allocations: 4 kB / 1.049 GB, free: 0.9727 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.864e-06/0.6663, allocations: 0 / 1.049 GB, free: 0.9727 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.716e-06/0.6663, allocations: 0 / 1.049 GB, free: 0.9727 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009976/0.6673, allocations: 1.009 MB / 1.05 GB, free: 15.94 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000103/0.6675, allocations: 155.8 kB / 1.05 GB, free: 15.77 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.214e-05/0.6675, allocations: 4 kB / 1.05 GB, free: 15.77 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000136/0.6677, allocations: 7.984 kB / 1.05 GB, free: 15.76 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.823e-05/0.6677, allocations: 11.98 kB / 1.05 GB, free: 15.75 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.885e-05/0.6678, allocations: 11.98 kB / 1.05 GB, free: 15.73 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.0006939/0.6685, allocations: 0.6689 MB / 1.051 GB, free: 15.06 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.6e-07/0.6685, allocations: 0 / 1.051 GB, free: 15.06 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.00145/0.6699, allocations: 0.5779 MB / 1.051 GB, free: 14.48 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.001975/0.6719, allocations: 0.6846 MB / 1.052 GB, free: 13.81 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.002574/0.6745, allocations: 2.56 MB / 1.055 GB, free: 11.23 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 4.058e-06/0.6745, allocations: 0 / 1.055 GB, free: 11.23 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0003404/0.6749, allocations: 339.8 kB / 1.055 GB, free: 10.9 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003577/0.6752, allocations: 38.92 kB / 1.055 GB, free: 10.87 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002221/0.6775, allocations: 1.924 MB / 1.057 GB, free: 8.906 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004701/0.678, allocations: 0.964 MB / 1.058 GB, free: 7.914 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 0.0001768/0.6781, allocations: 48.48 kB / 1.058 GB, free: 7.867 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001/0.6782, allocations: 23.42 kB / 1.058 GB, free: 7.844 MB / 0.8106 GB Notification: Performance of SimCode: time 1.132e-06/0.6782, allocations: 0 / 1.058 GB, free: 7.844 MB / 0.8106 GB Notification: Performance of Templates: time 0.02118/0.6994, allocations: 13.52 MB / 1.071 GB, free: 10.36 MB / 0.8262 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 -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/jenkins/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