Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.AirHeater_T.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.HeatExchangers.Examples.AirHeater_T,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|TSet.y|TOut.y|TVol.T|THeaOut.T|hea.TSet|hea.Q_flow",fileNamePrefix="Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.AirHeater_T") translateModel(Buildings.Fluid.HeatExchangers.Examples.AirHeater_T,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|TSet.y|TOut.y|TVol.T|THeaOut.T|hea.TSet|hea.Q_flow",fileNamePrefix="Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.AirHeater_T") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.006767/0.006768, allocations: 103.4 kB / 15.73 MB, free: 5.992 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.001459/0.001459, allocations: 197.1 kB / 16.67 MB, free: 5.914 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.406/1.406, allocations: 222.9 MB / 240.4 MB, free: 15.13 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.596/2.596, allocations: 461.9 MB / 0.7348 GB, free: 11.05 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001348/0.001348, allocations: 63.91 kB / 1.054 GB, free: 7.641 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9636/0.965, allocations: 157.4 MB / 1.208 GB, free: 13.61 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.Examples.AirHeater_T): time 0.2448/1.21, allocations: 236.4 MB / 1.439 GB, free: 316 kB / 1.154 GB Notification: Performance of NFInst.instExpressions: time 0.0292/1.239, allocations: 17.54 MB / 1.456 GB, free: 14.72 MB / 1.186 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004796/1.244, allocations: 95.5 kB / 1.456 GB, free: 14.62 MB / 1.186 GB Notification: Performance of NFTyping.typeComponents: time 0.006788/1.251, allocations: 2.115 MB / 1.458 GB, free: 12.5 MB / 1.186 GB Notification: Performance of NFTyping.typeBindings: time 0.01147/1.262, allocations: 3.577 MB / 1.461 GB, free: 8.914 MB / 1.186 GB Notification: Performance of NFTyping.typeClassSections: time 0.007398/1.27, allocations: 2.585 MB / 1.464 GB, free: 6.34 MB / 1.186 GB Notification: Performance of NFFlatten.flatten: time 0.01328/1.283, allocations: 7.878 MB / 1.472 GB, free: 14.45 MB / 1.201 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003663/1.287, allocations: 1.938 MB / 1.474 GB, free: 12.46 MB / 1.201 GB Notification: Performance of NFEvalConstants.evaluate: time 0.009138/1.296, allocations: 2.732 MB / 1.476 GB, free: 9.715 MB / 1.201 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004663/1.3, allocations: 1.634 MB / 1.478 GB, free: 8.078 MB / 1.201 GB Notification: Performance of NFPackage.collectConstants: time 0.0006459/1.301, allocations: 208 kB / 1.478 GB, free: 7.875 MB / 1.201 GB Notification: Performance of NFFlatten.collectFunctions: time 0.009869/1.311, allocations: 3.602 MB / 1.482 GB, free: 4.266 MB / 1.201 GB Notification: Performance of NFScalarize.scalarize: time 0.00158/1.313, allocations: 0.8958 MB / 1.482 GB, free: 3.367 MB / 1.201 GB Notification: Performance of NFVerifyModel.verify: time 0.002515/1.315, allocations: 1.384 MB / 1.484 GB, free: 1.977 MB / 1.201 GB Notification: Performance of NFConvertDAE.convert: time 0.01306/1.328, allocations: 4.908 MB / 1.489 GB, free: 13.05 MB / 1.217 GB Notification: Performance of FrontEnd - DAE generated: time 7.514e-06/1.328, allocations: 0 / 1.489 GB, free: 13.05 MB / 1.217 GB Notification: Performance of FrontEnd: time 4.047e-06/1.328, allocations: 0 / 1.489 GB, free: 13.05 MB / 1.217 GB Notification: Performance of Transformations before backend: time 8.73e-05/1.328, allocations: 3.938 kB / 1.489 GB, free: 13.05 MB / 1.217 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 337 * Number of variables: 337 Notification: Performance of Generate backend data structure: time 0.009091/1.337, allocations: 3.249 MB / 1.492 GB, free: 9.723 MB / 1.217 GB Notification: Performance of prepare preOptimizeDAE: time 5.356e-05/1.338, allocations: 12.03 kB / 1.492 GB, free: 9.711 MB / 1.217 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007376/1.345, allocations: 0.8746 MB / 1.493 GB, free: 8.832 MB / 1.217 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006473/1.351, allocations: 2.802 MB / 1.495 GB, free: 5.957 MB / 1.217 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001248/1.352, allocations: 106.6 kB / 1.495 GB, free: 5.852 MB / 1.217 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002525/1.352, allocations: 140 kB / 1.496 GB, free: 5.715 MB / 1.217 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00352/1.355, allocations: 1.66 MB / 1.497 GB, free: 3.977 MB / 1.217 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.74e-05/1.355, allocations: 11.92 kB / 1.497 GB, free: 3.965 MB / 1.217 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001306/1.356, allocations: 52 kB / 1.497 GB, free: 3.914 MB / 1.217 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.842e-05/1.356, allocations: 54.5 kB / 1.497 GB, free: 3.859 MB / 1.217 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003549/1.359, allocations: 1.45 MB / 1.499 GB, free: 2.402 MB / 1.217 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.0124/1.372, allocations: 8.12 MB / 1.507 GB, free: 9.699 MB / 1.232 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002743/1.374, allocations: 1.551 MB / 1.508 GB, free: 8.02 MB / 1.232 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001124/1.375, allocations: 0.5219 MB / 1.509 GB, free: 7.496 MB / 1.232 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001322/1.377, allocations: 0.7746 MB / 1.509 GB, free: 6.574 MB / 1.232 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001252/1.378, allocations: 0.5353 MB / 1.51 GB, free: 6.023 MB / 1.232 GB Notification: Performance of pre-optimization done (n=82): time 3.165e-06/1.378, allocations: 0 / 1.51 GB, free: 6.023 MB / 1.232 GB Notification: Performance of matching and sorting (n=82): time 0.004418/1.383, allocations: 1.606 MB / 1.511 GB, free: 4.387 MB / 1.232 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.72e-05/1.383, allocations: 60.06 kB / 1.512 GB, free: 4.316 MB / 1.232 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003047/1.386, allocations: 2.163 MB / 1.514 GB, free: 2.129 MB / 1.232 GB Notification: Performance of collectPreVariables (initialization): time 0.0001357/1.386, allocations: 45.7 kB / 1.514 GB, free: 2.078 MB / 1.232 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009444/1.387, allocations: 1.058 MB / 1.515 GB, free: 1.004 MB / 1.232 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002909/1.387, allocations: 299.8 kB / 1.515 GB, free: 0.707 MB / 1.232 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004634/1.388, allocations: 314.6 kB / 1.515 GB, free: 404 kB / 1.232 GB Notification: Performance of setup shared object (initialization): time 0.000104/1.388, allocations: 305.1 kB / 1.516 GB, free: 96 kB / 1.232 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001282/1.389, allocations: 0.6235 MB / 1.516 GB, free: 15.46 MB / 1.248 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001567/1.39, allocations: 1.014 MB / 1.517 GB, free: 14.29 MB / 1.248 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002659/1.393, allocations: 1.547 MB / 1.519 GB, free: 12.61 MB / 1.248 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.644e-06/1.393, allocations: 4 kB / 1.519 GB, free: 12.61 MB / 1.248 GB Notification: Performance of matching and sorting (n=199) (initialization): time 0.003851/1.397, allocations: 1.902 MB / 1.521 GB, free: 10.7 MB / 1.248 GB Notification: Performance of prepare postOptimizeDAE: time 4.942e-05/1.397, allocations: 37.7 kB / 1.521 GB, free: 10.65 MB / 1.248 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.701e-05/1.397, allocations: 8 kB / 1.521 GB, free: 10.64 MB / 1.248 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.317e-05/1.397, allocations: 16 kB / 1.521 GB, free: 10.63 MB / 1.248 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0013/1.398, allocations: 327.6 kB / 1.521 GB, free: 10.31 MB / 1.248 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.59e-05/1.399, allocations: 19.94 kB / 1.521 GB, free: 10.29 MB / 1.248 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001653/1.4, allocations: 182.6 kB / 1.521 GB, free: 10.11 MB / 1.248 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001218/1.4, allocations: 63.92 kB / 1.521 GB, free: 10.05 MB / 1.248 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.00219/1.402, allocations: 1.104 MB / 1.522 GB, free: 8.941 MB / 1.248 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001573/1.404, allocations: 1.007 MB / 1.523 GB, free: 7.781 MB / 1.248 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.00261/1.407, allocations: 1.555 MB / 1.525 GB, free: 6.09 MB / 1.248 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 7.183e-06/1.407, allocations: 4 kB / 1.525 GB, free: 6.086 MB / 1.248 GB Notification: Performance of matching and sorting (n=199) (initialization_lambda0): time 0.003658/1.41, allocations: 1.9 MB / 1.527 GB, free: 4.172 MB / 1.248 GB Notification: Performance of prepare postOptimizeDAE: time 4.782e-05/1.41, allocations: 35.42 kB / 1.527 GB, free: 4.133 MB / 1.248 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.338e-05/1.41, allocations: 8 kB / 1.527 GB, free: 4.125 MB / 1.248 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.54e-05/1.41, allocations: 16 kB / 1.527 GB, free: 4.109 MB / 1.248 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001251/1.412, allocations: 332.1 kB / 1.527 GB, free: 3.785 MB / 1.248 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.121e-05/1.412, allocations: 19.94 kB / 1.527 GB, free: 3.766 MB / 1.248 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001695/1.413, allocations: 166.9 kB / 1.527 GB, free: 3.602 MB / 1.248 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001053/1.414, allocations: 59.98 kB / 1.527 GB, free: 3.543 MB / 1.248 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 42 * 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 (165): * Single equations (assignments): 162 * 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.0004081/1.414, allocations: 267.8 kB / 1.528 GB, free: 3.273 MB / 1.248 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003119/1.414, allocations: 213.3 kB / 1.528 GB, free: 3.062 MB / 1.248 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002907/1.417, allocations: 1.188 MB / 1.529 GB, free: 1.855 MB / 1.248 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.996e-06/1.417, allocations: 8 kB / 1.529 GB, free: 1.848 MB / 1.248 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.644e-06/1.417, allocations: 0 / 1.529 GB, free: 1.848 MB / 1.248 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002324/1.42, allocations: 1.235 MB / 1.53 GB, free: 0.5234 MB / 1.248 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 postOpt removeSimpleEquations (simulation): time 0.006206/1.426, allocations: 3.1 MB / 1.533 GB, free: 13.32 MB / 1.264 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.1e-06/1.426, allocations: 0 / 1.533 GB, free: 13.32 MB / 1.264 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009782/1.427, allocations: 195.9 kB / 1.533 GB, free: 13.13 MB / 1.264 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002237/1.427, allocations: 40.83 kB / 1.533 GB, free: 13.09 MB / 1.264 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.949e-05/1.427, allocations: 24.17 kB / 1.533 GB, free: 13.06 MB / 1.264 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001312/1.428, allocations: 1.531 MB / 1.535 GB, free: 11.39 MB / 1.264 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.984e-06/1.428, allocations: 3.938 kB / 1.535 GB, free: 11.39 MB / 1.264 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003813/1.432, allocations: 1.755 MB / 1.537 GB, free: 9.598 MB / 1.264 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009143/1.433, allocations: 406 kB / 1.537 GB, free: 9.18 MB / 1.264 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002149/1.433, allocations: 23.98 kB / 1.537 GB, free: 9.156 MB / 1.264 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001092/1.435, allocations: 71.88 kB / 1.537 GB, free: 9.086 MB / 1.264 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001587/1.435, allocations: 64.56 kB / 1.537 GB, free: 9.023 MB / 1.264 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.044e-05/1.435, allocations: 31.98 kB / 1.537 GB, free: 8.992 MB / 1.264 GB Notification: Performance of sorting global known variables: time 0.002122/1.437, allocations: 1.433 MB / 1.539 GB, free: 7.547 MB / 1.264 GB Notification: Performance of sort global known variables: time 1.9e-07/1.437, allocations: 3.938 kB / 1.539 GB, free: 7.543 MB / 1.264 GB Notification: Performance of remove unused functions: time 0.002572/1.44, allocations: 1.095 MB / 1.54 GB, free: 6.445 MB / 1.264 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 8 (vol.dynBal.medium.Xi[1],vol.dynBal.U,vol.dynBal.m,mov.filter.s[1],mov.filter.s[2],conPI.I.y,THeaOut.T,hea.outCon.T) * 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 (82): * Single equations (assignments): 79 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.00172/1.441, allocations: 0.7418 MB / 1.54 GB, free: 5.836 MB / 1.264 GB Notification: Performance of simCode: created initialization part: time 0.004735/1.446, allocations: 2.297 MB / 1.543 GB, free: 3.52 MB / 1.264 GB Notification: Performance of simCode: created event and clocks part: time 4.158e-06/1.446, allocations: 0 / 1.543 GB, free: 3.52 MB / 1.264 GB Notification: Performance of simCode: created simulation system equations: time 0.001363/1.447, allocations: 0.6122 MB / 1.543 GB, free: 2.891 MB / 1.264 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004188/1.452, allocations: 1.027 MB / 1.544 GB, free: 1.891 MB / 1.264 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008342/1.46, allocations: 4.184 MB / 1.548 GB, free: 13.67 MB / 1.279 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00129/1.461, allocations: 1.66 MB / 1.55 GB, free: 11.98 MB / 1.279 GB Notification: Performance of simCode: alias equations: time 0.002033/1.463, allocations: 0.5597 MB / 1.55 GB, free: 11.41 MB / 1.279 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004834/1.464, allocations: 163.3 kB / 1.551 GB, free: 11.25 MB / 1.279 GB Notification: Performance of SimCode: time 9.52e-07/1.464, allocations: 0 / 1.551 GB, free: 11.25 MB / 1.279 GB Notification: Performance of Templates: time 0.7174/2.181, allocations: 39.94 MB / 1.59 GB, free: 336 MB / 1.279 GB make -j1 -f Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.AirHeater_T.makefile (rm -f Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.AirHeater_T.pipe ; mkfifo Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.AirHeater_T.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.AirHeater_T.pipe >> ../files/Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.AirHeater_T.sim & ./Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.AirHeater_T -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.AirHeater_T.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.AirHeater_T_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_HeatExchangers_Examples_AirHeater_T.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.AirHeater_T.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches