Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Chillers.Examples.Carnot_TEva.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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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.Chillers.Examples.Carnot_TEva,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|chi.sta_a1.T|chi.sta_b1.T|chi.sta_a2.T|chi.sta_b2.T|chi.TSet|chi.QEva_flow|chi.QCon_flow|chi.P|chi.dp1|chi.dp2|chi.COP_nominal|chi.COP",fileNamePrefix="Buildings_9_Buildings.Fluid.Chillers.Examples.Carnot_TEva") translateModel(Buildings.Fluid.Chillers.Examples.Carnot_TEva,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|chi.sta_a1.T|chi.sta_b1.T|chi.sta_a2.T|chi.sta_b2.T|chi.TSet|chi.QEva_flow|chi.QCon_flow|chi.P|chi.dp1|chi.dp2|chi.COP_nominal|chi.COP",fileNamePrefix="Buildings_9_Buildings.Fluid.Chillers.Examples.Carnot_TEva") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001384/0.001384, allocations: 109.9 kB / 16.41 MB, free: 6.027 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.001314/0.001314, allocations: 186.6 kB / 17.34 MB, free: 5.633 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.357/1.357, allocations: 222.9 MB / 241 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.24/2.24, allocations: 390.3 MB / 0.6655 GB, free: 0.6445 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.00127/0.00127, allocations: 63.91 kB / 0.9515 GB, free: 7.664 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8424/0.8437, allocations: 140.4 MB / 1.089 GB, free: 5.789 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Chillers.Examples.Carnot_TEva): time 0.06642/0.9102, allocations: 61.2 MB / 1.148 GB, free: 9.902 MB / 0.9044 GB Notification: Performance of NFInst.instExpressions: time 0.0202/0.9304, allocations: 11.98 MB / 1.16 GB, free: 1.297 MB / 0.9044 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003558/0.934, allocations: 56.16 kB / 1.16 GB, free: 1.277 MB / 0.9044 GB Notification: Performance of NFTyping.typeComponents: time 0.002693/0.9367, allocations: 0.7001 MB / 1.161 GB, free: 0.8281 MB / 0.9044 GB Notification: Performance of NFTyping.typeBindings: time 0.007686/0.9445, allocations: 2.077 MB / 1.163 GB, free: 15.58 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.004282/0.9488, allocations: 1.2 MB / 1.164 GB, free: 14.92 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.008123/0.9569, allocations: 3.095 MB / 1.167 GB, free: 13.4 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002453/0.9594, allocations: 1.097 MB / 1.168 GB, free: 12.86 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004502/0.964, allocations: 1.367 MB / 1.169 GB, free: 12.19 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002683/0.9667, allocations: 0.8923 MB / 1.17 GB, free: 11.77 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 0.0002747/0.9669, allocations: 115 kB / 1.17 GB, free: 11.77 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004341/0.9713, allocations: 1.449 MB / 1.172 GB, free: 11.28 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 0.000422/0.9717, allocations: 297.6 kB / 1.172 GB, free: 11.09 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 0.001305/0.9731, allocations: 0.6925 MB / 1.173 GB, free: 10.65 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.006281/0.9793, allocations: 2.291 MB / 1.175 GB, free: 9.395 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 4.469e-06/0.9794, allocations: 1.125 kB / 1.175 GB, free: 9.395 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.983e-06/0.9794, allocations: 0 / 1.175 GB, free: 9.395 MB / 0.92 GB Notification: Performance of Transformations before backend: time 3.359e-05/0.9794, allocations: 0 / 1.175 GB, free: 9.395 MB / 0.92 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 192 * Number of variables: 192 Notification: Performance of Generate backend data structure: time 0.004603/0.984, allocations: 1.725 MB / 1.177 GB, free: 8.055 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 4.699e-05/0.9841, allocations: 10.44 kB / 1.177 GB, free: 8.055 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002431/0.9866, allocations: 410.2 kB / 1.177 GB, free: 7.867 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002752/0.9893, allocations: 1.16 MB / 1.178 GB, free: 6.941 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.326e-05/0.9894, allocations: 59.97 kB / 1.178 GB, free: 6.914 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001425/0.9896, allocations: 78.16 kB / 1.178 GB, free: 6.891 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00227/0.9919, allocations: 1.01 MB / 1.179 GB, free: 6.215 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.915e-05/0.9919, allocations: 1.188 kB / 1.179 GB, free: 6.215 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.077e-05/0.992, allocations: 33.22 kB / 1.179 GB, free: 6.191 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.593e-05/0.992, allocations: 19.12 kB / 1.179 GB, free: 6.191 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002357/0.9944, allocations: 0.8471 MB / 1.18 GB, free: 5.77 MB / 0.92 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.008129/1.003, allocations: 5.238 MB / 1.185 GB, free: 1.004 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003432/1.006, allocations: 0.7807 MB / 1.186 GB, free: 0.6133 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007314/1.007, allocations: 291.6 kB / 1.186 GB, free: 484 kB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008128/1.008, allocations: 0.91 MB / 1.187 GB, free: 15.4 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.178e-05/1.008, allocations: 37.44 kB / 1.187 GB, free: 15.36 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=43): time 2.465e-06/1.008, allocations: 0 / 1.187 GB, free: 15.36 MB / 0.9356 GB Notification: Performance of matching and sorting (n=43): time 0.00736/1.015, allocations: 1.692 MB / 1.189 GB, free: 14.48 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.025e-05/1.015, allocations: 56.06 kB / 1.189 GB, free: 14.41 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001923/1.017, allocations: 1.078 MB / 1.19 GB, free: 13.81 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 0.0001039/1.017, allocations: 37.73 kB / 1.19 GB, free: 13.77 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005244/1.018, allocations: 0.5365 MB / 1.191 GB, free: 13.3 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001755/1.018, allocations: 149.5 kB / 1.191 GB, free: 13.17 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002402/1.018, allocations: 131.1 kB / 1.191 GB, free: 13.09 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001244/1.018, allocations: 326.6 kB / 1.191 GB, free: 12.77 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009202/1.019, allocations: 309.6 kB / 1.192 GB, free: 12.61 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001153/1.02, allocations: 0.5242 MB / 1.192 GB, free: 12.18 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001732/1.022, allocations: 0.7083 MB / 1.193 GB, free: 11.7 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.863e-06/1.022, allocations: 2.406 kB / 1.193 GB, free: 11.7 MB / 0.9356 GB Notification: Performance of matching and sorting (n=71) (initialization): time 0.003043/1.025, allocations: 1.011 MB / 1.194 GB, free: 11.18 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 2.528e-05/1.025, allocations: 7.25 kB / 1.194 GB, free: 11.18 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.75e-05/1.025, allocations: 9.906 kB / 1.194 GB, free: 11.17 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001304/1.026, allocations: 312.3 kB / 1.194 GB, free: 11.02 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000563/1.027, allocations: 128.7 kB / 1.194 GB, free: 10.99 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001535/1.029, allocations: 0.9001 MB / 1.195 GB, free: 10.27 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001483/1.03, allocations: 160 kB / 1.195 GB, free: 10.18 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001537/1.03, allocations: 31.8 kB / 1.195 GB, free: 10.17 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.00132/1.032, allocations: 0.5077 MB / 1.196 GB, free: 9.863 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001102/1.033, allocations: 0.5297 MB / 1.196 GB, free: 9.426 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0016/1.034, allocations: 0.7062 MB / 1.197 GB, free: 8.941 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.499e-06/1.034, allocations: 1.438 kB / 1.197 GB, free: 8.941 MB / 0.9356 GB Notification: Performance of matching and sorting (n=71) (initialization_lambda0): time 0.002847/1.037, allocations: 1.005 MB / 1.198 GB, free: 8.426 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.844e-05/1.037, allocations: 10.91 kB / 1.198 GB, free: 8.422 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.848e-06/1.037, allocations: 5.75 kB / 1.198 GB, free: 8.422 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001067/1.038, allocations: 295.1 kB / 1.198 GB, free: 8.285 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005297/1.039, allocations: 128.7 kB / 1.198 GB, free: 8.25 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001395/1.04, allocations: 0.8961 MB / 1.199 GB, free: 7.531 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001379/1.042, allocations: 132.5 kB / 1.199 GB, free: 7.465 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.954e-05/1.042, allocations: 31.89 kB / 1.199 GB, free: 7.457 MB / 0.9356 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 23 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (57): * Single equations (assignments): 56 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,14)} Notification: Performance of prepare postOptimizeDAE: time 0.0002945/1.042, allocations: 220.8 kB / 1.2 GB, free: 7.246 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002269/1.042, allocations: 119.8 kB / 1.2 GB, free: 7.18 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002371/1.045, allocations: 0.9144 MB / 1.201 GB, free: 6.66 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.648e-05/1.045, allocations: 5.094 kB / 1.201 GB, free: 6.66 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.049e-06/1.045, allocations: 4 kB / 1.201 GB, free: 6.656 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.418e-06/1.045, allocations: 5.266 kB / 1.201 GB, free: 6.652 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005226/1.05, allocations: 2.14 MB / 1.203 GB, free: 5.188 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.055e-06/1.05, allocations: 1.969 kB / 1.203 GB, free: 5.188 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002828/1.05, allocations: 61.36 kB / 1.203 GB, free: 5.172 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001025/1.051, allocations: 295.4 kB / 1.203 GB, free: 5.031 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.457e-05/1.051, allocations: 18.03 kB / 1.203 GB, free: 5.02 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001481/1.053, allocations: 0.9214 MB / 1.204 GB, free: 4.289 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.218e-06/1.053, allocations: 2.469 kB / 1.204 GB, free: 4.289 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003778/1.057, allocations: 1.145 MB / 1.205 GB, free: 3.594 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000715/1.057, allocations: 268.3 kB / 1.205 GB, free: 3.355 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001691/1.058, allocations: 12.53 kB / 1.205 GB, free: 3.348 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000808/1.058, allocations: 65.73 kB / 1.205 GB, free: 3.32 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.913e-05/1.058, allocations: 47.88 kB / 1.205 GB, free: 3.289 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.808e-05/1.059, allocations: 27.33 kB / 1.205 GB, free: 3.277 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 0.001201/1.06, allocations: 0.7491 MB / 1.206 GB, free: 2.855 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.883e-06/1.06, allocations: 0 / 1.206 GB, free: 2.855 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.001731/1.062, allocations: 0.5713 MB / 1.207 GB, free: 2.73 MB / 0.9356 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (33): * Single equations (assignments): 28 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,16)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0009198/1.062, allocations: 389 kB / 1.207 GB, free: 2.508 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.003286/1.066, allocations: 1.123 MB / 1.208 GB, free: 1.992 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 4.499e-06/1.066, allocations: 0 / 1.208 GB, free: 1.992 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0008756/1.067, allocations: 344.7 kB / 1.209 GB, free: 1.84 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002373/1.069, allocations: 0.5082 MB / 1.209 GB, free: 1.426 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005436/1.074, allocations: 2.064 MB / 1.211 GB, free: 15.29 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006205/1.075, allocations: 1.057 MB / 1.212 GB, free: 14.2 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002708/1.075, allocations: 79.42 kB / 1.212 GB, free: 14.12 MB / 0.9512 GB Notification: Performance of SimCode: time 9.92e-07/1.075, allocations: 0 / 1.212 GB, free: 14.12 MB / 0.9512 GB Notification: Performance of Templates: time 0.03064/1.106, allocations: 24.08 MB / 1.236 GB, free: 6.207 MB / 0.9669 GB make -j1 -f Buildings_9_Buildings.Fluid.Chillers.Examples.Carnot_TEva.makefile (rm -f Buildings_9_Buildings.Fluid.Chillers.Examples.Carnot_TEva.pipe ; mkfifo Buildings_9_Buildings.Fluid.Chillers.Examples.Carnot_TEva.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Chillers.Examples.Carnot_TEva.pipe >> ../files/Buildings_9_Buildings.Fluid.Chillers.Examples.Carnot_TEva.sim & ./Buildings_9_Buildings.Fluid.Chillers.Examples.Carnot_TEva -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.Chillers.Examples.Carnot_TEva.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.Chillers.Examples.Carnot_TEva_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_Chillers_Examples_Carnot_TEva.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.Chillers.Examples.Carnot_TEva.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches