Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition.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.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|TBouSte.port.T|TBouCon.port.T|TBouPul.port.T",fileNamePrefix="Buildings_latest_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition") translateModel(Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|TBouSte.port.T|TBouCon.port.T|TBouPul.port.T",fileNamePrefix="Buildings_latest_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.006447/0.006447, allocations: 98.66 kB / 15.73 MB, free: 5.984 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.001499/0.001499, allocations: 196.1 kB / 16.68 MB, free: 5.918 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.377/1.377, allocations: 222.9 MB / 240.4 MB, free: 4.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.658/2.658, allocations: 461.9 MB / 0.7348 GB, free: 14.64 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.00131/0.00131, allocations: 64.09 kB / 1.054 GB, free: 7.152 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2616/0.263, allocations: 157.4 MB / 1.208 GB, free: 9.645 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition): time 0.003464/0.2665, allocations: 2.346 MB / 1.21 GB, free: 7.285 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.001521/0.268, allocations: 1.005 MB / 1.211 GB, free: 6.273 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001283/0.2681, allocations: 11.94 kB / 1.211 GB, free: 6.262 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.0002145/0.2684, allocations: 51.62 kB / 1.211 GB, free: 6.211 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.0001827/0.2686, allocations: 79.28 kB / 1.211 GB, free: 6.133 MB / 0.9669 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/Fluid/Geothermal/Boreholes/BaseClasses/temperatureDrop.mo:2:1-109:20:writable] Warning: Pure function 'Buildings.Fluid.Geothermal.Boreholes.BaseClasses.temperatureDrop' contains a call to impure function 'Buildings.Fluid.Geothermal.Boreholes.BaseClasses.exchangeValues'. Notification: Performance of NFTyping.typeClassSections: time 0.0004827/0.2691, allocations: 167.5 kB / 1.211 GB, free: 5.969 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0003169/0.2694, allocations: 286.8 kB / 1.212 GB, free: 5.688 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001092/0.2695, allocations: 40.31 kB / 1.212 GB, free: 5.645 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001688/0.2697, allocations: 107.6 kB / 1.212 GB, free: 5.539 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001392/0.2698, allocations: 119.4 kB / 1.212 GB, free: 5.422 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 3.25e-05/0.2699, allocations: 16 kB / 1.212 GB, free: 5.406 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002691/0.2702, allocations: 115.9 kB / 1.212 GB, free: 5.293 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 4.71e-05/0.2702, allocations: 47.78 kB / 1.212 GB, free: 5.246 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 0.0001123/0.2703, allocations: 119.4 kB / 1.212 GB, free: 5.129 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0003645/0.2707, allocations: 315.1 kB / 1.212 GB, free: 4.82 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 3.507e-06/0.2707, allocations: 0 / 1.212 GB, free: 4.82 MB / 0.9669 GB Notification: Performance of FrontEnd: time 2.625e-06/0.2707, allocations: 0 / 1.212 GB, free: 4.82 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 6.593e-06/0.2707, allocations: 3.938 kB / 1.212 GB, free: 4.816 MB / 0.9669 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 27 * Number of variables: 27 Notification: Performance of Generate backend data structure: time 0.0009444/0.2717, allocations: 0.5981 MB / 1.213 GB, free: 4.164 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 3.055e-05/0.2717, allocations: 8.625 kB / 1.213 GB, free: 4.156 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.015e-05/0.2718, allocations: 28.66 kB / 1.213 GB, free: 4.129 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004336/0.2722, allocations: 291 kB / 1.213 GB, free: 3.809 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.876e-05/0.2723, allocations: 12.61 kB / 1.213 GB, free: 3.797 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.199e-05/0.2723, allocations: 28.36 kB / 1.213 GB, free: 3.77 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003892/0.2727, allocations: 204.6 kB / 1.214 GB, free: 3.547 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.139e-05/0.2728, allocations: 7.906 kB / 1.214 GB, free: 3.539 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.026e-05/0.2728, allocations: 3.984 kB / 1.214 GB, free: 3.535 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.725e-06/0.2728, allocations: 7.984 kB / 1.214 GB, free: 3.527 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000367/0.2732, allocations: 111.8 kB / 1.214 GB, free: 3.418 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009541/0.2741, allocations: 0.8645 MB / 1.215 GB, free: 2.484 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004866/0.2746, allocations: 203.8 kB / 1.215 GB, free: 2.258 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002082/0.2748, allocations: 82.61 kB / 1.215 GB, free: 2.168 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 1.267e-05/0.2749, allocations: 7.938 kB / 1.215 GB, free: 2.16 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003876/0.2753, allocations: 200.7 kB / 1.215 GB, free: 1.945 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=23): time 1.834e-06/0.2753, allocations: 3.938 kB / 1.215 GB, free: 1.941 MB / 0.9669 GB Notification: Performance of matching and sorting (n=23): time 0.0008688/0.2761, allocations: 357.1 kB / 1.215 GB, free: 1.586 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.691e-05/0.2762, allocations: 118.8 kB / 1.215 GB, free: 1.445 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002129/0.2764, allocations: 250.4 kB / 1.216 GB, free: 1.191 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 3.101e-05/0.2765, allocations: 37.7 kB / 1.216 GB, free: 1.148 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 8.306e-05/0.2766, allocations: 136.6 kB / 1.216 GB, free: 1.012 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 5.687e-05/0.2766, allocations: 63.23 kB / 1.216 GB, free: 0.9492 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.661e-05/0.2767, allocations: 77.97 kB / 1.216 GB, free: 0.8633 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001147/0.2769, allocations: 338.8 kB / 1.216 GB, free: 0.5234 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002292/0.2771, allocations: 80.75 kB / 1.216 GB, free: 456 kB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003191/0.2774, allocations: 255.1 kB / 1.217 GB, free: 112 kB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005707/0.278, allocations: 388.5 kB / 1.217 GB, free: 15.64 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.098e-06/0.278, allocations: 0 / 1.217 GB, free: 15.64 MB / 0.9825 GB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0007402/0.2788, allocations: 407 kB / 1.217 GB, free: 15.23 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 3.356e-05/0.2788, allocations: 33.7 kB / 1.217 GB, free: 15.19 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.626e-06/0.2788, allocations: 4 kB / 1.217 GB, free: 15.19 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.735e-05/0.2788, allocations: 8 kB / 1.217 GB, free: 15.18 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000218/0.2791, allocations: 68.34 kB / 1.218 GB, free: 15.11 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.577e-05/0.2791, allocations: 15.92 kB / 1.218 GB, free: 15.1 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002359/0.2793, allocations: 47.58 kB / 1.218 GB, free: 15.05 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.746e-05/0.2794, allocations: 20 kB / 1.218 GB, free: 15.03 MB / 0.9825 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 27 * Number of states: 0 () * Number of discrete variables: 32 (TBouSte.QAve_flow,$PRE.TBouSte.QAve_flow,TBouSte.UOld,$PRE.TBouSte.UOld,TBouSte.port.T,$PRE.TBouSte.port.T,TBouSte.iSam,$PRE.TBouSte.iSam,$whenCondition4,TBouCon.QAve_flow,$PRE.TBouCon.QAve_flow,TBouCon.UOld,$PRE.TBouCon.UOld,TBouCon.port.T,$PRE.TBouCon.port.T,TBouCon.iSam,$PRE.TBouCon.iSam,$whenCondition3,TBouPul.QAve_flow,$PRE.TBouPul.QAve_flow,TBouPul.UOld,$PRE.TBouPul.UOld,TBouPul.port.T,$PRE.TBouPul.port.T,TBouPul.iSam,$PRE.TBouPul.iSam,$whenCondition1,pulse.count,$PRE.pulse.count,pulse.T_start,$PRE.pulse.T_start,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (46): * Single equations (assignments): 45 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * 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.0001379/0.2795, allocations: 163.9 kB / 1.218 GB, free: 14.86 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.347e-05/0.2796, allocations: 31.64 kB / 1.218 GB, free: 14.83 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.937e-05/0.2796, allocations: 17.72 kB / 1.218 GB, free: 14.82 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.791e-06/0.2796, allocations: 11.98 kB / 1.218 GB, free: 14.8 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.482e-06/0.2796, allocations: 3.938 kB / 1.218 GB, free: 14.8 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.921e-06/0.2797, allocations: 4 kB / 1.218 GB, free: 14.8 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002602/0.2799, allocations: 265.4 kB / 1.218 GB, free: 14.49 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.964e-06/0.2799, allocations: 0 / 1.218 GB, free: 14.49 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001226/0.2801, allocations: 19.92 kB / 1.218 GB, free: 14.47 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.949e-06/0.2801, allocations: 4 kB / 1.218 GB, free: 14.46 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.591e-05/0.2801, allocations: 11.98 kB / 1.218 GB, free: 14.45 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.094e-06/0.2801, allocations: 0 / 1.218 GB, free: 14.45 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.756e-06/0.2801, allocations: 4.312 kB / 1.218 GB, free: 14.45 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008291/0.281, allocations: 410.2 kB / 1.218 GB, free: 14.02 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 6.127e-05/0.281, allocations: 100.8 kB / 1.219 GB, free: 13.91 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.35e-05/0.2811, allocations: 12.03 kB / 1.219 GB, free: 13.89 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000171/0.2813, allocations: 19.98 kB / 1.219 GB, free: 13.88 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.717e-05/0.2813, allocations: 31.84 kB / 1.219 GB, free: 13.84 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.728e-05/0.2814, allocations: 4.25 kB / 1.219 GB, free: 13.84 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0001359/0.2815, allocations: 174 kB / 1.219 GB, free: 13.67 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.61e-07/0.2815, allocations: 0 / 1.219 GB, free: 13.67 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0003853/0.2819, allocations: 87.94 kB / 1.219 GB, free: 13.59 MB / 0.9825 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 3 (TBouSte.U,TBouCon.U,TBouPul.U) * Number of discrete variables: 18 ($whenCondition4,TBouSte.QAve_flow,TBouSte.port.T,TBouSte.UOld,TBouSte.iSam,$whenCondition3,TBouCon.QAve_flow,TBouCon.port.T,TBouCon.UOld,TBouCon.iSam,$whenCondition2,$whenCondition1,TBouPul.QAve_flow,TBouPul.port.T,TBouPul.UOld,TBouPul.iSam,pulse.T_start,pulse.count) * Number of discrete states: 7 (TBouPul.iSam,TBouPul.UOld,pulse.count,TBouCon.iSam,TBouCon.UOld,TBouSte.iSam,TBouSte.UOld) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (23): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 14 * 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.0003087/0.2822, allocations: 167.9 kB / 1.219 GB, free: 13.42 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0005911/0.2828, allocations: 291.8 kB / 1.219 GB, free: 13.12 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 1.874e-06/0.2828, allocations: 4 kB / 1.219 GB, free: 13.12 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0002698/0.2831, allocations: 107.9 kB / 1.219 GB, free: 13.01 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003476/0.2835, allocations: 63.77 kB / 1.22 GB, free: 12.95 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001139/0.2846, allocations: 0.6017 MB / 1.22 GB, free: 12.32 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002849/0.2849, allocations: 0.7407 MB / 1.221 GB, free: 11.54 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 0.000134/0.2851, allocations: 58.92 kB / 1.221 GB, free: 11.49 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.044e-05/0.2851, allocations: 23.44 kB / 1.221 GB, free: 11.46 MB / 0.9825 GB Notification: Performance of SimCode: time 2.31e-07/0.2851, allocations: 0 / 1.221 GB, free: 11.46 MB / 0.9825 GB Notification: Performance of Templates: time 0.008111/0.2932, allocations: 4.1 MB / 1.225 GB, free: 7.445 MB / 0.9825 GB make -j1 -f Buildings_latest_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition.makefile (rm -f Buildings_latest_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition.pipe >> ../files/Buildings_latest_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition.sim & ./Buildings_latest_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_SingleUTubeBoundaryCondition.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches