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.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-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.001055/0.001055, allocations: 92.39 kB / 16.02 MB, free: 80 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00141/0.00141, allocations: 178.8 kB / 16.92 MB, free: 6.629 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.501/1.501, allocations: 223.3 MB / 241 MB, free: 5.262 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.776/2.776, allocations: 437.8 MB / 0.7128 GB, free: 6.887 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003989/0.0003991, allocations: 12 kB / 0.8735 GB, free: 3.184 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8312/0.8317, allocations: 153.8 MB / 1.024 GB, free: 15.78 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters): time 0.001788/0.8335, allocations: 1.156 MB / 1.025 GB, free: 14.62 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.007149/0.8407, allocations: 4.404 MB / 1.029 GB, free: 10.19 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.339e-05/0.8408, allocations: 0 / 1.029 GB, free: 10.19 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0001354/0.8409, allocations: 11.94 kB / 1.029 GB, free: 10.18 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0002681/0.8412, allocations: 31.83 kB / 1.029 GB, free: 10.15 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‘. Notification: Performance of NFTyping.typeClassSections: time 0.003753/0.845, allocations: 1.173 MB / 1.03 GB, free: 8.977 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0001692/0.8452, allocations: 123.6 kB / 1.03 GB, free: 8.855 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 6.095e-05/0.8452, allocations: 11.97 kB / 1.03 GB, free: 8.844 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 9.649e-05/0.8453, allocations: 43.84 kB / 1.031 GB, free: 8.801 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002641/0.8456, allocations: 160.9 kB / 1.031 GB, free: 8.645 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 4.733e-05/0.8457, allocations: 12 kB / 1.031 GB, free: 8.633 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003771/0.8494, allocations: 2.18 MB / 1.033 GB, free: 6.449 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0002376/0.8497, allocations: 267.8 kB / 1.033 GB, free: 6.188 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0003098/0.85, allocations: 308 kB / 1.033 GB, free: 5.879 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.00235/0.8524, allocations: 1.503 MB / 1.035 GB, free: 4.375 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.757e-06/0.8524, allocations: 0 / 1.035 GB, free: 4.375 MB / 0.7794 GB Notification: Performance of FrontEnd: time 2.214e-06/0.8524, allocations: 0 / 1.035 GB, free: 4.375 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 1.528e-05/0.8524, allocations: 4 kB / 1.035 GB, free: 4.371 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.0109/0.8633, allocations: 1.234 MB / 1.036 GB, free: 3.086 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 5.419e-05/0.8634, allocations: 15.97 kB / 1.036 GB, free: 3.07 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004341/0.8638, allocations: 87.69 kB / 1.036 GB, free: 2.984 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004622/0.8643, allocations: 364.9 kB / 1.036 GB, free: 2.578 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.544e-05/0.8643, allocations: 4.375 kB / 1.036 GB, free: 2.574 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.846e-05/0.8644, allocations: 8.359 kB / 1.036 GB, free: 2.566 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004474/0.8648, allocations: 395.5 kB / 1.037 GB, free: 2.168 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.638e-06/0.8649, allocations: 0 / 1.037 GB, free: 2.168 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.9e-05/0.8649, allocations: 7.984 kB / 1.037 GB, free: 2.16 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.179e-06/0.8649, allocations: 0 / 1.037 GB, free: 2.16 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004349/0.8653, allocations: 443.6 kB / 1.037 GB, free: 1.727 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006759/0.866, allocations: 0.6404 MB / 1.038 GB, free: 1.035 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005235/0.8666, allocations: 0.5595 MB / 1.038 GB, free: 468 kB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002965/0.8669, allocations: 337.6 kB / 1.039 GB, free: 124 kB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001113/0.868, allocations: 1.032 MB / 1.04 GB, free: 14.87 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000418/0.8684, allocations: 416.8 kB / 1.04 GB, free: 14.44 MB / 0.795 GB Notification: Performance of pre-optimization done (n=8): time 1.553e-06/0.8684, allocations: 0 / 1.04 GB, free: 14.44 MB / 0.795 GB Notification: Performance of matching and sorting (n=8): time 0.001345/0.8698, allocations: 1.289 MB / 1.041 GB, free: 13.14 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.265e-05/0.8699, allocations: 81.22 kB / 1.042 GB, free: 13.05 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001248/0.8711, allocations: 1.222 MB / 1.043 GB, free: 11.81 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 4.891e-05/0.8712, allocations: 33.69 kB / 1.043 GB, free: 11.77 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 0.000198/0.8714, allocations: 265.4 kB / 1.043 GB, free: 11.5 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 4.542e-05/0.8714, allocations: 19.8 kB / 1.043 GB, free: 11.48 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002611/0.8717, allocations: 287.7 kB / 1.043 GB, free: 11.2 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 9.527e-05/0.8718, allocations: 306 kB / 1.044 GB, free: 10.89 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001225/0.873, allocations: 1.373 MB / 1.045 GB, free: 9.52 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001353/0.8744, allocations: 1.505 MB / 1.046 GB, free: 8.004 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007019/0.8814, allocations: 3.557 MB / 1.05 GB, free: 4.355 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.703e-06/0.8815, allocations: 3.938 kB / 1.05 GB, free: 4.352 MB / 0.795 GB Notification: Performance of matching and sorting (n=319) (initialization): time 0.004463/0.8859, allocations: 4.01 MB / 1.054 GB, free: 312 kB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 2.471e-05/0.886, allocations: 8 kB / 1.054 GB, free: 304 kB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.951e-05/0.886, allocations: 0 / 1.054 GB, free: 304 kB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.026e-05/0.886, allocations: 4 kB / 1.054 GB, free: 300 kB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001318/0.8862, allocations: 15.98 kB / 1.054 GB, free: 284 kB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.137e-05/0.8862, allocations: 3.938 kB / 1.054 GB, free: 280 kB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005112/0.8867, allocations: 240.2 kB / 1.054 GB, free: 36 kB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.716e-05/0.8868, allocations: 19.98 kB / 1.054 GB, free: 16 kB / 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.0003757/0.8872, allocations: 246.2 kB / 1.054 GB, free: 15.77 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.256e-05/0.8873, allocations: 66.72 kB / 1.054 GB, free: 15.7 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003179/0.8876, allocations: 75.02 kB / 1.054 GB, free: 15.61 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.138e-06/0.8876, allocations: 0 / 1.054 GB, free: 15.61 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.286e-06/0.8876, allocations: 4 kB / 1.054 GB, free: 15.61 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.922e-06/0.8876, allocations: 3.984 kB / 1.054 GB, free: 15.61 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004676/0.8881, allocations: 496.9 kB / 1.055 GB, free: 15.07 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.515e-06/0.8881, allocations: 0 / 1.055 GB, free: 15.07 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.207e-05/0.8882, allocations: 11.94 kB / 1.055 GB, free: 15.06 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.397e-06/0.8882, allocations: 0 / 1.055 GB, free: 15.06 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.57e-05/0.8882, allocations: 3.984 kB / 1.055 GB, free: 15.06 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.346e-06/0.8882, allocations: 4 kB / 1.055 GB, free: 15.05 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.583e-06/0.8882, allocations: 0 / 1.055 GB, free: 15.05 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009347/0.8892, allocations: 0.9975 MB / 1.056 GB, free: 14.04 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001463/0.8893, allocations: 167.7 kB / 1.056 GB, free: 13.85 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.224e-05/0.8894, allocations: 0 / 1.056 GB, free: 13.85 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001348/0.8895, allocations: 4 kB / 1.056 GB, free: 13.85 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.792e-05/0.8896, allocations: 7.984 kB / 1.056 GB, free: 13.84 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.292e-05/0.8896, allocations: 15.98 kB / 1.056 GB, free: 13.82 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.000806/0.8904, allocations: 0.6767 MB / 1.057 GB, free: 13.14 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.2e-07/0.8905, allocations: 0 / 1.057 GB, free: 13.14 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.001776/0.8922, allocations: 0.5856 MB / 1.057 GB, free: 12.55 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.002806/0.895, allocations: 0.6904 MB / 1.058 GB, free: 11.88 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.002585/0.8976, allocations: 2.544 MB / 1.061 GB, free: 9.32 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 4.127e-06/0.8977, allocations: 3.938 kB / 1.061 GB, free: 9.316 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0003598/0.898, allocations: 348.2 kB / 1.061 GB, free: 8.977 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003878/0.8984, allocations: 40.55 kB / 1.061 GB, free: 8.938 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002594/0.901, allocations: 1.975 MB / 1.063 GB, free: 6.926 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005899/0.9016, allocations: 0.9643 MB / 1.064 GB, free: 5.934 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001139/0.9018, allocations: 31.41 kB / 1.064 GB, free: 5.902 MB / 0.8106 GB Notification: Performance of SimCode: time 5.61e-07/0.9018, allocations: 0 / 1.064 GB, free: 5.902 MB / 0.8106 GB Notification: Performance of Templates: time 0.02612/0.9279, allocations: 13.78 MB / 1.077 GB, free: 8.121 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/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