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.001636/0.001637, allocations: 107.5 kB / 15.99 MB, free: 6.355 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.001395/0.001395, allocations: 198.5 kB / 16.91 MB, free: 6.195 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.483/1.483, allocations: 222.9 MB / 240.6 MB, free: 13.74 MB / 206.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.816/2.816, allocations: 437.1 MB / 0.7107 GB, free: 4.711 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.00196/0.00196, allocations: 68.22 kB / 0.8694 GB, free: 2.539 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3609/0.3628, allocations: 151.6 MB / 1.018 GB, free: 10.98 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters): time 0.00359/0.3665, allocations: 1.491 MB / 1.019 GB, free: 9.473 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.007562/0.3741, allocations: 4.239 MB / 1.023 GB, free: 5.215 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.34e-05/0.3742, allocations: 0 / 1.023 GB, free: 5.215 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 0.0001342/0.3744, allocations: 3.938 kB / 1.023 GB, free: 5.211 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 0.0002794/0.3747, allocations: 35.83 kB / 1.023 GB, free: 5.176 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.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.004459/0.3792, allocations: 1.334 MB / 1.024 GB, free: 3.844 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.0001716/0.3794, allocations: 91.67 kB / 1.025 GB, free: 3.754 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 6.735e-05/0.3794, allocations: 15.98 kB / 1.025 GB, free: 3.738 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 8.644e-05/0.3795, allocations: 55.77 kB / 1.025 GB, free: 3.684 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000269/0.3798, allocations: 153 kB / 1.025 GB, free: 3.535 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 3.769e-05/0.3798, allocations: 16 kB / 1.025 GB, free: 3.52 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003548/0.3834, allocations: 2.196 MB / 1.027 GB, free: 1.32 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 0.0002542/0.3837, allocations: 263.8 kB / 1.027 GB, free: 1.062 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 0.0002681/0.3839, allocations: 278.3 kB / 1.027 GB, free: 0.7891 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.002306/0.3863, allocations: 1.462 MB / 1.029 GB, free: 15.32 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 5.33e-06/0.3863, allocations: 0 / 1.029 GB, free: 15.32 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.783e-06/0.3863, allocations: 0 / 1.029 GB, free: 15.32 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 7.093e-06/0.3863, allocations: 0 / 1.029 GB, free: 15.32 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.00907/0.3954, allocations: 1.296 MB / 1.03 GB, free: 13.98 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 5.256e-05/0.3955, allocations: 8.922 kB / 1.03 GB, free: 13.97 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004498/0.3959, allocations: 91.69 kB / 1.03 GB, free: 13.88 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004652/0.3964, allocations: 364.9 kB / 1.031 GB, free: 13.47 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.42e-05/0.3964, allocations: 4.375 kB / 1.031 GB, free: 13.47 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.502e-05/0.3965, allocations: 12.36 kB / 1.031 GB, free: 13.46 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005223/0.397, allocations: 391.5 kB / 1.031 GB, free: 13.06 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.053e-05/0.397, allocations: 0 / 1.031 GB, free: 13.06 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.367e-05/0.397, allocations: 4 kB / 1.031 GB, free: 13.06 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.414e-06/0.3971, allocations: 4 kB / 1.031 GB, free: 13.05 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005012/0.3976, allocations: 435.7 kB / 1.031 GB, free: 12.63 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007646/0.3983, allocations: 0.6404 MB / 1.032 GB, free: 11.94 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006144/0.399, allocations: 0.5711 MB / 1.033 GB, free: 11.35 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000368/0.3993, allocations: 337.7 kB / 1.033 GB, free: 11.01 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001311/0.4007, allocations: 1.028 MB / 1.034 GB, free: 9.762 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004766/0.4011, allocations: 408.8 kB / 1.034 GB, free: 9.344 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=8): time 1.573e-06/0.4012, allocations: 0 / 1.034 GB, free: 9.344 MB / 0.8106 GB Notification: Performance of matching and sorting (n=8): time 0.001607/0.4028, allocations: 1.285 MB / 1.036 GB, free: 8.051 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.316e-05/0.4029, allocations: 89.22 kB / 1.036 GB, free: 7.945 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001385/0.4042, allocations: 1.207 MB / 1.037 GB, free: 6.723 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 6.058e-05/0.4043, allocations: 33.69 kB / 1.037 GB, free: 6.684 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002409/0.4046, allocations: 261.3 kB / 1.037 GB, free: 6.422 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 4.615e-05/0.4046, allocations: 23.73 kB / 1.037 GB, free: 6.398 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003784/0.405, allocations: 355.6 kB / 1.037 GB, free: 6.047 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001659/0.4052, allocations: 310 kB / 1.038 GB, free: 5.738 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001478/0.4067, allocations: 1.373 MB / 1.039 GB, free: 4.363 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001607/0.4083, allocations: 1.509 MB / 1.041 GB, free: 2.844 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00748/0.4158, allocations: 3.553 MB / 1.044 GB, free: 15.2 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.4e-06/0.4158, allocations: 0 / 1.044 GB, free: 15.2 MB / 0.8262 GB Notification: Performance of matching and sorting (n=319) (initialization): time 0.00509/0.4209, allocations: 4.014 MB / 1.048 GB, free: 11.15 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 2.642e-05/0.421, allocations: 4 kB / 1.048 GB, free: 11.14 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.236e-05/0.421, allocations: 4 kB / 1.048 GB, free: 11.14 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.842e-05/0.421, allocations: 0 / 1.048 GB, free: 11.14 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001502/0.4212, allocations: 19.98 kB / 1.048 GB, free: 11.12 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.232e-05/0.4212, allocations: 0 / 1.048 GB, free: 11.12 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005484/0.4217, allocations: 232.3 kB / 1.048 GB, free: 10.89 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.703e-05/0.4218, allocations: 23.98 kB / 1.048 GB, free: 10.87 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.0003641/0.4222, allocations: 238.4 kB / 1.048 GB, free: 10.62 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.305e-05/0.4223, allocations: 74.62 kB / 1.049 GB, free: 10.55 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002944/0.4226, allocations: 75 kB / 1.049 GB, free: 10.46 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.823e-06/0.4226, allocations: 4 kB / 1.049 GB, free: 10.46 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.811e-06/0.4226, allocations: 0 / 1.049 GB, free: 10.46 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.958e-06/0.4226, allocations: 0 / 1.049 GB, free: 10.46 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005253/0.4231, allocations: 0.4969 MB / 1.049 GB, free: 9.918 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.684e-06/0.4231, allocations: 0 / 1.049 GB, free: 9.918 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.154e-05/0.4232, allocations: 11.94 kB / 1.049 GB, free: 9.906 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.224e-06/0.4232, allocations: 0 / 1.049 GB, free: 9.906 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.944e-05/0.4232, allocations: 7.984 kB / 1.049 GB, free: 9.898 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.994e-06/0.4233, allocations: 0 / 1.049 GB, free: 9.898 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.222e-06/0.4233, allocations: 0 / 1.049 GB, free: 9.898 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001083/0.4243, allocations: 1.001 MB / 1.05 GB, free: 8.875 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001444/0.4245, allocations: 151.8 kB / 1.05 GB, free: 8.707 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.231e-05/0.4246, allocations: 4 kB / 1.05 GB, free: 8.703 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001286/0.4247, allocations: 11.88 kB / 1.05 GB, free: 8.691 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.991e-05/0.4248, allocations: 7.984 kB / 1.05 GB, free: 8.684 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.926e-05/0.4248, allocations: 11.98 kB / 1.05 GB, free: 8.672 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0008494/0.4257, allocations: 0.6805 MB / 1.051 GB, free: 7.984 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.11e-07/0.4257, allocations: 0 / 1.051 GB, free: 7.984 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.001789/0.4275, allocations: 0.5779 MB / 1.051 GB, free: 7.406 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.002093/0.4296, allocations: 0.6861 MB / 1.052 GB, free: 6.738 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.002866/0.4324, allocations: 2.564 MB / 1.055 GB, free: 4.16 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 3.146e-06/0.4325, allocations: 0 / 1.055 GB, free: 4.16 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0003839/0.4328, allocations: 343.8 kB / 1.055 GB, free: 3.824 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003773/0.4332, allocations: 42.45 kB / 1.055 GB, free: 3.785 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00261/0.4358, allocations: 1.965 MB / 1.057 GB, free: 1.777 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006286/0.4365, allocations: 0.9717 MB / 1.058 GB, free: 0.7773 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001215/0.4366, allocations: 27.41 kB / 1.058 GB, free: 0.75 MB / 0.8262 GB Notification: Performance of SimCode: time 8.82e-07/0.4366, allocations: 0 / 1.058 GB, free: 0.75 MB / 0.8262 GB Notification: Performance of Templates: time 0.02417/0.4608, allocations: 13.82 MB / 1.071 GB, free: 2.938 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=400 -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