Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-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.HeatExchangers.Examples.WaterHeater_u,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|TSet.y|TOut.y|TVol.T|THeaOut.T|hea.Q_flow",fileNamePrefix="Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u") translateModel(Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|TSet.y|TOut.y|TVol.T|THeaOut.T|hea.Q_flow",fileNamePrefix="Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001404/0.001404, allocations: 104.9 kB / 16.37 MB, free: 6.469 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.001471/0.001471, allocations: 191.8 kB / 17.31 MB, free: 5.824 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.372/1.372, allocations: 222.9 MB / 241 MB, free: 15.19 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.449/2.449, allocations: 442.6 MB / 0.7165 GB, free: 14.67 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001322/0.001322, allocations: 77.31 kB / 0.8773 GB, free: 10.98 MB / 0.6544 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3205/0.3219, allocations: 153 MB / 1.027 GB, free: 2.062 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u): time 0.6346/0.9565, allocations: 67.45 MB / 1.093 GB, free: 11.75 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.02793/0.9845, allocations: 18.59 MB / 1.111 GB, free: 9.609 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004968/0.9895, allocations: 98.31 kB / 1.111 GB, free: 9.574 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.01178/1.001, allocations: 4.412 MB / 1.115 GB, free: 8.066 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.01089/1.012, allocations: 2.717 MB / 1.118 GB, free: 6.465 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.007832/1.02, allocations: 2.39 MB / 1.12 GB, free: 5.188 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.01399/1.034, allocations: 8.157 MB / 1.128 GB, free: 1.93 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003455/1.038, allocations: 1.917 MB / 1.13 GB, free: 1.016 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005606/1.043, allocations: 2.074 MB / 1.132 GB, free: 32 kB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003319/1.047, allocations: 1.536 MB / 1.134 GB, free: 15.3 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 0.0005764/1.047, allocations: 193.4 kB / 1.134 GB, free: 15.3 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005681/1.053, allocations: 2.145 MB / 1.136 GB, free: 14.58 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.001143/1.054, allocations: 0.6968 MB / 1.136 GB, free: 14.22 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.002572/1.057, allocations: 1.312 MB / 1.138 GB, free: 13.39 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.008675/1.065, allocations: 4.203 MB / 1.142 GB, free: 11.8 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 5.701e-06/1.065, allocations: 1.25 kB / 1.142 GB, free: 11.8 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.623e-06/1.065, allocations: 0 / 1.142 GB, free: 11.8 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 0.0001076/1.065, allocations: 4 kB / 1.142 GB, free: 11.8 MB / 0.8575 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 314 * Number of variables: 314 Notification: Performance of Generate backend data structure: time 0.008152/1.074, allocations: 3.076 MB / 1.145 GB, free: 9.562 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.745e-05/1.074, allocations: 9.281 kB / 1.145 GB, free: 9.562 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002464/1.076, allocations: 488.6 kB / 1.145 GB, free: 9.336 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006633/1.083, allocations: 2.822 MB / 1.148 GB, free: 7.395 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000129/1.083, allocations: 109.8 kB / 1.148 GB, free: 7.34 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002756/1.083, allocations: 137.8 kB / 1.148 GB, free: 7.293 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003274/1.087, allocations: 1.439 MB / 1.15 GB, free: 6.355 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.823e-05/1.087, allocations: 18.09 kB / 1.15 GB, free: 6.34 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001247/1.087, allocations: 52.95 kB / 1.15 GB, free: 6.301 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.352e-05/1.087, allocations: 48.53 kB / 1.15 GB, free: 6.293 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002682/1.09, allocations: 1.118 MB / 1.151 GB, free: 5.742 MB / 0.8575 GB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0117/1.101, allocations: 7.726 MB / 1.158 GB, free: 14.87 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002474/1.104, allocations: 1.279 MB / 1.16 GB, free: 13.88 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001204/1.105, allocations: 451 kB / 1.16 GB, free: 13.67 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 0.007132/1.112, allocations: 2.713 MB / 1.163 GB, free: 11.27 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001205/1.113, allocations: 473 kB / 1.163 GB, free: 10.98 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=62): time 3.015e-06/1.113, allocations: 0 / 1.163 GB, free: 10.98 MB / 0.8731 GB Notification: Performance of matching and sorting (n=62): time 0.003492/1.117, allocations: 1.244 MB / 1.164 GB, free: 10.3 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.435e-05/1.117, allocations: 115.2 kB / 1.165 GB, free: 10.18 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002974/1.12, allocations: 2.059 MB / 1.167 GB, free: 9.043 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 0.0001126/1.12, allocations: 45.58 kB / 1.167 GB, free: 9 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008842/1.121, allocations: 1.03 MB / 1.168 GB, free: 8.094 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002347/1.121, allocations: 226.4 kB / 1.168 GB, free: 7.902 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004392/1.122, allocations: 310.2 kB / 1.168 GB, free: 7.723 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.0001/1.122, allocations: 305.1 kB / 1.168 GB, free: 7.422 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001035/1.123, allocations: 0.5507 MB / 1.169 GB, free: 7.145 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001372/1.124, allocations: 0.9638 MB / 1.17 GB, free: 6.344 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002197/1.126, allocations: 1.429 MB / 1.171 GB, free: 5.336 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.875e-06/1.126, allocations: 5.125 kB / 1.171 GB, free: 5.336 MB / 0.8731 GB Notification: Performance of matching and sorting (n=188) (initialization): time 0.003337/1.13, allocations: 1.742 MB / 1.173 GB, free: 4.461 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 4.581e-05/1.13, allocations: 37.77 kB / 1.173 GB, free: 4.426 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.954e-05/1.13, allocations: 13.09 kB / 1.173 GB, free: 4.426 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.344e-05/1.13, allocations: 23.11 kB / 1.173 GB, free: 4.418 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001031/1.131, allocations: 297 kB / 1.173 GB, free: 4.352 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.604e-05/1.131, allocations: 24.83 kB / 1.173 GB, free: 4.344 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001713/1.133, allocations: 180.4 kB / 1.174 GB, free: 4.23 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001095/1.133, allocations: 61.83 kB / 1.174 GB, free: 4.215 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001882/1.135, allocations: 0.9748 MB / 1.175 GB, free: 3.656 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001352/1.136, allocations: 0.9618 MB / 1.176 GB, free: 2.871 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002288/1.138, allocations: 1.429 MB / 1.177 GB, free: 1.863 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 7.003e-06/1.138, allocations: 2.438 kB / 1.177 GB, free: 1.863 MB / 0.8731 GB Notification: Performance of matching and sorting (n=188) (initialization_lambda0): time 0.00372/1.142, allocations: 1.746 MB / 1.179 GB, free: 292 kB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 4.144e-05/1.142, allocations: 41.7 kB / 1.179 GB, free: 244 kB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.576e-05/1.142, allocations: 15.94 kB / 1.179 GB, free: 228 kB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.897e-05/1.142, allocations: 19.98 kB / 1.179 GB, free: 208 kB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001094/1.143, allocations: 299.7 kB / 1.179 GB, free: 15.91 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.455e-05/1.143, allocations: 28.05 kB / 1.179 GB, free: 15.88 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001843/1.145, allocations: 147.6 kB / 1.179 GB, free: 15.74 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001114/1.145, allocations: 63.92 kB / 1.179 GB, free: 15.68 MB / 0.8887 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 49 * Number of states: 0 () * Number of discrete variables: 6 (TSet.count,$PRE.TSet.count,TSet.T_start,$PRE.TSet.T_start,$whenCondition1,conPI.I.trigger_internal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (154): * Single equations (assignments): 151 * Array equations: 1 * Algorithm blocks: 1 * Record equations: 1 * 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.0004208/1.146, allocations: 263.8 kB / 1.179 GB, free: 15.41 MB / 0.8887 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003838/1.146, allocations: 201.4 kB / 1.18 GB, free: 15.21 MB / 0.8887 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002617/1.149, allocations: 1.076 MB / 1.181 GB, free: 14.11 MB / 0.8887 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.645e-05/1.149, allocations: 8 kB / 1.181 GB, free: 14.11 MB / 0.8887 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.995e-06/1.149, allocations: 3.938 kB / 1.181 GB, free: 14.1 MB / 0.8887 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001734/1.151, allocations: 0.7764 MB / 1.181 GB, free: 13.31 MB / 0.8887 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005885/1.157, allocations: 2.885 MB / 1.184 GB, free: 10.34 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.685e-06/1.157, allocations: 0 / 1.184 GB, free: 10.34 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007556/1.157, allocations: 163.9 kB / 1.184 GB, free: 10.18 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001727/1.158, allocations: 24.94 kB / 1.184 GB, free: 10.15 MB / 0.8887 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.167e-05/1.158, allocations: 27.98 kB / 1.185 GB, free: 10.12 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001191/1.159, allocations: 1.429 MB / 1.186 GB, free: 8.555 MB / 0.8887 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.737e-06/1.159, allocations: 4 kB / 1.186 GB, free: 8.551 MB / 0.8887 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003392/1.162, allocations: 1.596 MB / 1.187 GB, free: 6.918 MB / 0.8887 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001062/1.163, allocations: 410 kB / 1.188 GB, free: 6.496 MB / 0.8887 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002887/1.164, allocations: 19.94 kB / 1.188 GB, free: 6.477 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001007/1.165, allocations: 71.88 kB / 1.188 GB, free: 6.406 MB / 0.8887 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001439/1.165, allocations: 60.48 kB / 1.188 GB, free: 6.348 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.201e-05/1.165, allocations: 40.09 kB / 1.188 GB, free: 6.309 MB / 0.8887 GB Notification: Performance of sorting global known variables: time 0.002254/1.167, allocations: 1.446 MB / 1.189 GB, free: 4.852 MB / 0.8887 GB Notification: Performance of sort global known variables: time 1.4e-07/1.167, allocations: 0 / 1.189 GB, free: 4.852 MB / 0.8887 GB Notification: Performance of remove unused functions: time 0.00321/1.17, allocations: 1.095 MB / 1.191 GB, free: 3.754 MB / 0.8887 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 6 (vol.dynBal.U,mov.filter.s[1],mov.filter.s[2],conPI.I.y,THeaOut.T,hea.vol.dynBal.U) * Number of discrete variables: 3 ($whenCondition1,TSet.T_start,TSet.count) * Number of discrete states: 1 (TSet.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (74): * Single equations (assignments): 66 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 5 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001539/1.172, allocations: 0.6662 MB / 1.191 GB, free: 3.086 MB / 0.8887 GB Notification: Performance of simCode: created initialization part: time 0.004076/1.176, allocations: 2.088 MB / 1.193 GB, free: 0.9766 MB / 0.8887 GB Notification: Performance of simCode: created event and clocks part: time 4.849e-06/1.176, allocations: 8 kB / 1.193 GB, free: 0.9688 MB / 0.8887 GB Notification: Performance of simCode: created simulation system equations: time 0.001213/1.177, allocations: 0.5411 MB / 1.194 GB, free: 424 kB / 0.8887 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004373/1.182, allocations: 1.103 MB / 1.195 GB, free: 15.34 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006215/1.188, allocations: 3.69 MB / 1.198 GB, free: 11.59 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001276/1.189, allocations: 1.578 MB / 1.2 GB, free: 9.984 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 0.001933/1.191, allocations: 0.5284 MB / 1.2 GB, free: 9.453 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004291/1.191, allocations: 175.4 kB / 1.201 GB, free: 9.281 MB / 0.9044 GB Notification: Performance of SimCode: time 9.32e-07/1.192, allocations: 0 / 1.201 GB, free: 9.281 MB / 0.9044 GB Notification: Performance of Templates: time 0.07013/1.262, allocations: 42.32 MB / 1.242 GB, free: 15.5 MB / 0.9512 GB make -j1 -f Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.makefile (rm -f Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe ; mkfifo Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe >> ../files/Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.sim & ./Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_HeatExchangers_Examples_WaterHeater_u.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches