Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Actuators.Valves.Validation.ThreeWayValveParameterization.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.Actuators.Valves.Validation.ThreeWayValveParameterization,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|senM_flowOpPoi.m_flow|senM_flowKv.m_flow|senM_flowCv.m_flow|senM_flowAv.m_flow",fileNamePrefix="Buildings_latest_Buildings.Fluid.Actuators.Valves.Validation.ThreeWayValveParameterization") translateModel(Buildings.Fluid.Actuators.Valves.Validation.ThreeWayValveParameterization,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|senM_flowOpPoi.m_flow|senM_flowKv.m_flow|senM_flowCv.m_flow|senM_flowAv.m_flow",fileNamePrefix="Buildings_latest_Buildings.Fluid.Actuators.Valves.Validation.ThreeWayValveParameterization") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001124/0.001124, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001389/0.001389, allocations: 192.5 kB / 16.25 MB, free: 6.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.379/1.379, allocations: 222.9 MB / 239.9 MB, free: 4.539 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.705/2.705, allocations: 461.9 MB / 0.7343 GB, free: 14.96 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001334/0.001334, allocations: 63.66 kB / 0.8986 GB, free: 37.24 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3725/0.3739, allocations: 157.4 MB / 1.052 GB, free: 8.742 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Valves.Validation.ThreeWayValveParameterization): time 0.1387/0.5127, allocations: 153 MB / 1.202 GB, free: 15.27 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.03964/0.5524, allocations: 30.2 MB / 1.231 GB, free: 1.004 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.006716/0.5591, allocations: 127.2 kB / 1.231 GB, free: 0.8789 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.003399/0.5626, allocations: 0.8701 MB / 1.232 GB, free: 4 kB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.009194/0.5718, allocations: 2.927 MB / 1.235 GB, free: 13.07 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.006102/0.5779, allocations: 2.303 MB / 1.237 GB, free: 10.8 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.01025/0.5882, allocations: 5.398 MB / 1.243 GB, free: 5.379 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00412/0.5924, allocations: 2.189 MB / 1.245 GB, free: 3.137 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.006348/0.5987, allocations: 2.712 MB / 1.247 GB, free: 424 kB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.7022/1.301, allocations: 2.009 MB / 1.249 GB, free: 46.64 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 0.001079/1.302, allocations: 216.7 kB / 1.249 GB, free: 46.64 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003917/1.306, allocations: 1.098 MB / 1.251 GB, free: 46.64 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 0.0009507/1.307, allocations: 0.5633 MB / 1.251 GB, free: 46.64 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.002518/1.31, allocations: 1.265 MB / 1.252 GB, free: 46.64 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.005712/1.315, allocations: 3.281 MB / 1.256 GB, free: 46.44 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 8.025e-06/1.315, allocations: 0 / 1.256 GB, free: 46.44 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.873e-06/1.315, allocations: 0 / 1.256 GB, free: 46.44 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 0.0001282/1.315, allocations: 1.859 kB / 1.256 GB, free: 46.44 MB / 0.9981 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 297 * Number of variables: 297 Notification: Performance of Generate backend data structure: time 0.006655/1.322, allocations: 2.795 MB / 1.258 GB, free: 45.28 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 5.325e-05/1.322, allocations: 11.19 kB / 1.258 GB, free: 45.28 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006092/1.323, allocations: 263.3 kB / 1.259 GB, free: 45.14 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002546/1.325, allocations: 1.443 MB / 1.26 GB, free: 44.62 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.237e-05/1.325, allocations: 108.8 kB / 1.26 GB, free: 44.62 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001865/1.326, allocations: 135.1 kB / 1.26 GB, free: 44.62 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002232/1.328, allocations: 1.163 MB / 1.261 GB, free: 44.54 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.817e-05/1.328, allocations: 2.391 kB / 1.261 GB, free: 44.54 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000107/1.328, allocations: 48.88 kB / 1.261 GB, free: 44.54 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.11e-05/1.328, allocations: 28.47 kB / 1.261 GB, free: 44.54 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001702/1.33, allocations: 1.013 MB / 1.262 GB, free: 44.52 MB / 0.9981 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.01214/1.342, allocations: 6.311 MB / 1.269 GB, free: 41.91 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001123/1.343, allocations: 0.5653 MB / 1.269 GB, free: 41.88 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000623/1.344, allocations: 389.3 kB / 1.269 GB, free: 41.87 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003648/1.344, allocations: 0.5012 MB / 1.27 GB, free: 41.3 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.16e-05/1.344, allocations: 42.48 kB / 1.27 GB, free: 41.27 MB / 0.9981 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.002186/1.346, allocations: 304.2 kB / 1.27 GB, free: 41.2 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=58): time 5.631e-06/1.346, allocations: 4 kB / 1.27 GB, free: 41.2 MB / 0.9981 GB Notification: Performance of matching and sorting (n=58): time 0.002949/1.349, allocations: 1.163 MB / 1.271 GB, free: 41.05 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.8e-05/1.349, allocations: 58.09 kB / 1.271 GB, free: 40.98 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004006/1.353, allocations: 1.894 MB / 1.273 GB, free: 40.75 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 0.0003466/1.354, allocations: 48.84 kB / 1.273 GB, free: 40.72 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008086/1.355, allocations: 0.9273 MB / 1.274 GB, free: 40.45 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002382/1.355, allocations: 205.6 kB / 1.274 GB, free: 40.32 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005223/1.355, allocations: 295.7 kB / 1.275 GB, free: 40.29 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001037/1.355, allocations: 349.9 kB / 1.275 GB, free: 39.98 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008864/1.356, allocations: 449.5 kB / 1.276 GB, free: 39.98 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001088/1.357, allocations: 0.6859 MB / 1.276 GB, free: 39.76 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001549/1.359, allocations: 0.973 MB / 1.277 GB, free: 39.63 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.512e-06/1.359, allocations: 1.375 kB / 1.277 GB, free: 39.63 MB / 0.9981 GB Notification: Performance of matching and sorting (n=144) (initialization): time 0.003035/1.362, allocations: 1.411 MB / 1.279 GB, free: 39.48 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 2.443e-05/1.362, allocations: 5.375 kB / 1.279 GB, free: 39.48 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.565e-05/1.362, allocations: 3.969 kB / 1.279 GB, free: 39.48 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.35e-05/1.362, allocations: 7.844 kB / 1.279 GB, free: 39.48 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001385/1.364, allocations: 283.7 kB / 1.279 GB, free: 39.48 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.041e-05/1.364, allocations: 8.281 kB / 1.279 GB, free: 39.48 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002711/1.366, allocations: 142.5 kB / 1.279 GB, free: 39.46 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002765/1.367, allocations: 64.67 kB / 1.279 GB, free: 39.46 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.002239/1.369, allocations: 0.7055 MB / 1.28 GB, free: 39.38 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001171/1.37, allocations: 0.6687 MB / 1.28 GB, free: 39.15 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001535/1.372, allocations: 0.9158 MB / 1.281 GB, free: 39.01 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.7e-06/1.372, allocations: 1.219 kB / 1.281 GB, free: 39.01 MB / 0.9981 GB Notification: Performance of matching and sorting (n=144) (initialization_lambda0): time 0.002875/1.374, allocations: 1.348 MB / 1.283 GB, free: 38.84 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.896e-05/1.374, allocations: 6.906 kB / 1.283 GB, free: 38.84 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.938e-06/1.374, allocations: 7.531 kB / 1.283 GB, free: 38.84 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.499e-05/1.375, allocations: 8.625 kB / 1.283 GB, free: 38.84 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001233/1.376, allocations: 273.1 kB / 1.283 GB, free: 38.84 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.552e-05/1.376, allocations: 11.19 kB / 1.283 GB, free: 38.84 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002332/1.378, allocations: 151.7 kB / 1.283 GB, free: 38.82 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001189/1.378, allocations: 57.88 kB / 1.283 GB, free: 38.82 MB / 0.9981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * 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 (144): * Single equations (assignments): 144 * Array equations: 0 * Algorithm blocks: 0 * 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.0004177/1.379, allocations: 239.3 kB / 1.283 GB, free: 38.63 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004641/1.379, allocations: 204 kB / 1.283 GB, free: 38.52 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002292/1.381, allocations: 1.095 MB / 1.285 GB, free: 38.43 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.867e-05/1.381, allocations: 7.594 kB / 1.285 GB, free: 38.43 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.236e-06/1.381, allocations: 0 / 1.285 GB, free: 38.43 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.938e-06/1.382, allocations: 8.891 kB / 1.285 GB, free: 38.43 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004177/1.386, allocations: 2.44 MB / 1.287 GB, free: 38.04 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.394e-06/1.386, allocations: 1.312 kB / 1.287 GB, free: 38.04 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006476/1.386, allocations: 145.9 kB / 1.287 GB, free: 38.03 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.428e-06/1.386, allocations: 4.375 kB / 1.287 GB, free: 38.03 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.932e-05/1.386, allocations: 19.58 kB / 1.287 GB, free: 38.03 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.793e-06/1.386, allocations: 4.375 kB / 1.287 GB, free: 38.03 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.811e-06/1.386, allocations: 6.75 kB / 1.287 GB, free: 38.03 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001961/1.388, allocations: 1.064 MB / 1.288 GB, free: 37.73 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009791/1.389, allocations: 360.4 kB / 1.288 GB, free: 37.52 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002508/1.39, allocations: 13.41 kB / 1.289 GB, free: 37.52 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001075/1.391, allocations: 99.25 kB / 1.289 GB, free: 37.5 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000166/1.391, allocations: 55.28 kB / 1.289 GB, free: 37.5 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.437e-05/1.391, allocations: 29.2 kB / 1.289 GB, free: 37.5 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.002247/1.393, allocations: 1.252 MB / 1.29 GB, free: 37.35 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.71e-07/1.393, allocations: 0 / 1.29 GB, free: 37.35 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.002836/1.396, allocations: 0.8911 MB / 1.291 GB, free: 37.24 MB / 0.9981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * 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 (77): * Single equations (assignments): 74 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * When equations: 0 * 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.0008499/1.397, allocations: 351.3 kB / 1.291 GB, free: 37.11 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.003413/1.4, allocations: 1.663 MB / 1.293 GB, free: 37.08 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 5.51e-06/1.4, allocations: 0 / 1.293 GB, free: 37.08 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0006934/1.401, allocations: 414.6 kB / 1.293 GB, free: 37.08 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004856/1.406, allocations: 1.077 MB / 1.294 GB, free: 36.95 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004842/1.411, allocations: 3.726 MB / 1.298 GB, free: 34.95 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007694/1.412, allocations: 1.406 MB / 1.299 GB, free: 34.2 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.002223/1.414, allocations: 406 kB / 1.3 GB, free: 34.11 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004338/1.414, allocations: 160.3 kB / 1.3 GB, free: 34.11 MB / 0.9981 GB Notification: Performance of SimCode: time 5.91e-07/1.414, allocations: 2.906 kB / 1.3 GB, free: 34.11 MB / 0.9981 GB Notification: Performance of Templates: time 0.06475/1.479, allocations: 38.1 MB / 1.337 GB, free: 21.38 MB / 0.9981 GB make -j1 -f Buildings_latest_Buildings.Fluid.Actuators.Valves.Validation.ThreeWayValveParameterization.makefile (rm -f Buildings_latest_Buildings.Fluid.Actuators.Valves.Validation.ThreeWayValveParameterization.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Actuators.Valves.Validation.ThreeWayValveParameterization.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Actuators.Valves.Validation.ThreeWayValveParameterization.pipe >> ../files/Buildings_latest_Buildings.Fluid.Actuators.Valves.Validation.ThreeWayValveParameterization.sim & ./Buildings_latest_Buildings.Fluid.Actuators.Valves.Validation.ThreeWayValveParameterization -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Actuators.Valves.Validation.ThreeWayValveParameterization.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.Actuators.Valves.Validation.ThreeWayValveParameterization_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Actuators_Valves_Validation_ThreeWayValveParameterization.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.Actuators.Valves.Validation.ThreeWayValveParameterization.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches