Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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: "" <> buildModelFMU(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves,fileNamePrefix="Buildings_9_Buildings_Fluid_Actuators_Valves_Examples_TwoWayValves",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves,fileNamePrefix="Buildings_9_Buildings_Fluid_Actuators_Valves_Examples_TwoWayValves",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008859/0.000886, allocations: 90.52 kB / 15.36 MB, free: 0.7383 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.005427/0.005428, allocations: 171 kB / 16.26 MB, free: 6.613 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.229/1.229, allocations: 223.3 MB / 240.3 MB, free: 5.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.125/2.125, allocations: 390.9 MB / 0.6664 GB, free: 2.383 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0004227/0.0004227, allocations: 8 kB / 0.8161 GB, free: 13.16 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5585/0.5589, allocations: 142.4 MB / 0.9552 GB, free: 7.676 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves): time 0.02433/0.5833, allocations: 28.92 MB / 0.9834 GB, free: 472 kB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.01124/0.5946, allocations: 8.117 MB / 0.9913 GB, free: 9.879 MB / 0.7481 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001723/0.5963, allocations: 25.41 kB / 0.9914 GB, free: 9.867 MB / 0.7481 GB Notification: Performance of NFTyping.typeComponents: time 0.00153/0.5979, allocations: 349.8 kB / 0.9917 GB, free: 9.578 MB / 0.7481 GB Notification: Performance of NFTyping.typeBindings: time 0.00515/0.6031, allocations: 1.24 MB / 0.9929 GB, free: 8.594 MB / 0.7481 GB Notification: Performance of NFTyping.typeClassSections: time 0.002985/0.6061, allocations: 1.036 MB / 0.9939 GB, free: 7.57 MB / 0.7481 GB Notification: Performance of NFFlatten.flatten: time 0.004309/0.6104, allocations: 4.203 MB / 0.998 GB, free: 3.359 MB / 0.7481 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00139/0.6118, allocations: 1.161 MB / 0.9992 GB, free: 2.184 MB / 0.7481 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002191/0.614, allocations: 1.487 MB / 1.001 GB, free: 0.6914 MB / 0.7481 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002205/0.6162, allocations: 1.6 MB / 1.002 GB, free: 15.09 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 0.0002518/0.6165, allocations: 64 kB / 1.002 GB, free: 15.02 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001807/0.6183, allocations: 0.9357 MB / 1.003 GB, free: 14.09 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 0.0003649/0.6187, allocations: 334.7 kB / 1.003 GB, free: 13.76 MB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 0.0007414/0.6194, allocations: 0.7054 MB / 1.004 GB, free: 13.04 MB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.002143/0.6216, allocations: 2.103 MB / 1.006 GB, free: 10.93 MB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 2.905e-06/0.6216, allocations: 4 kB / 1.006 GB, free: 10.93 MB / 0.7637 GB Notification: Performance of FrontEnd: time 1.002e-06/0.6216, allocations: 0 / 1.006 GB, free: 10.93 MB / 0.7637 GB Notification: Performance of Transformations before backend: time 1.307e-05/0.6216, allocations: 0 / 1.006 GB, free: 10.93 MB / 0.7637 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 145 * Number of variables: 145 Notification: Performance of Generate backend data structure: time 0.002088/0.6237, allocations: 1.321 MB / 1.008 GB, free: 9.555 MB / 0.7637 GB Notification: Performance of prepare preOptimizeDAE: time 3.765e-05/0.6237, allocations: 8.031 kB / 1.008 GB, free: 9.547 MB / 0.7637 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001008/0.6238, allocations: 102.7 kB / 1.008 GB, free: 9.438 MB / 0.7637 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002822/0.6241, allocations: 163.1 kB / 1.008 GB, free: 9.277 MB / 0.7637 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001384/0.6255, allocations: 0.8987 MB / 1.009 GB, free: 8.32 MB / 0.7637 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.432e-05/0.6256, allocations: 77.31 kB / 1.009 GB, free: 8.246 MB / 0.7637 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002086/0.6258, allocations: 116 kB / 1.009 GB, free: 8.133 MB / 0.7637 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009798/0.6268, allocations: 0.6474 MB / 1.009 GB, free: 7.457 MB / 0.7637 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.39e-05/0.6268, allocations: 0 / 1.009 GB, free: 7.457 MB / 0.7637 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.057e-05/0.6269, allocations: 27.98 kB / 1.009 GB, free: 7.43 MB / 0.7637 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.452e-05/0.6269, allocations: 12 kB / 1.01 GB, free: 7.418 MB / 0.7637 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008639/0.6278, allocations: 488.8 kB / 1.01 GB, free: 6.938 MB / 0.7637 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.003897/0.6317, allocations: 2.879 MB / 1.013 GB, free: 3.906 MB / 0.7637 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005668/0.6323, allocations: 319.2 kB / 1.013 GB, free: 3.586 MB / 0.7637 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002928/0.6326, allocations: 153.3 kB / 1.013 GB, free: 3.434 MB / 0.7637 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00026/0.6328, allocations: 344.7 kB / 1.014 GB, free: 3.023 MB / 0.7637 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.198e-05/0.6329, allocations: 34.84 kB / 1.014 GB, free: 2.98 MB / 0.7637 GB Notification: Performance of pre-optimization done (n=33): time 1.463e-06/0.6329, allocations: 0 / 1.014 GB, free: 2.98 MB / 0.7637 GB Notification: Performance of matching and sorting (n=33): time 0.001181/0.6341, allocations: 0.5439 MB / 1.014 GB, free: 2.43 MB / 0.7637 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.209e-05/0.6341, allocations: 55.41 kB / 1.014 GB, free: 2.363 MB / 0.7637 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009395/0.6351, allocations: 0.9114 MB / 1.015 GB, free: 1.434 MB / 0.7637 GB Notification: Performance of collectPreVariables (initialization): time 0.0001209/0.6352, allocations: 57.7 kB / 1.015 GB, free: 1.371 MB / 0.7637 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004205/0.6356, allocations: 0.5263 MB / 1.016 GB, free: 0.8359 MB / 0.7637 GB Notification: Performance of collectInitialBindings (initialization): time 8.032e-05/0.6357, allocations: 118.3 kB / 1.016 GB, free: 0.7188 MB / 0.7637 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.809e-05/0.6358, allocations: 61.62 kB / 1.016 GB, free: 0.6523 MB / 0.7637 GB Notification: Performance of setup shared object (initialization): time 9.756e-05/0.6359, allocations: 334.1 kB / 1.016 GB, free: 328 kB / 0.7637 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003835/0.6363, allocations: 193.2 kB / 1.016 GB, free: 136 kB / 0.7637 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001199/0.6375, allocations: 1.159 MB / 1.017 GB, free: 14.61 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008071/0.6383, allocations: 467.4 kB / 1.018 GB, free: 14.13 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.459e-06/0.6383, allocations: 0 / 1.018 GB, free: 14.13 MB / 0.7794 GB Notification: Performance of matching and sorting (n=73) (initialization): time 0.001202/0.6395, allocations: 0.6694 MB / 1.019 GB, free: 13.45 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 7.754e-05/0.6396, allocations: 148.4 kB / 1.019 GB, free: 13.27 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.917e-06/0.6396, allocations: 7.984 kB / 1.019 GB, free: 13.27 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.583e-05/0.6396, allocations: 4 kB / 1.019 GB, free: 13.26 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001371/0.641, allocations: 243.6 kB / 1.019 GB, free: 13.02 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001405/0.6424, allocations: 2.961 MB / 1.022 GB, free: 9.945 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00329/0.6457, allocations: 0.7533 MB / 1.023 GB, free: 9.191 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.994e-05/0.6458, allocations: 23.98 kB / 1.023 GB, free: 9.168 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 8.866e-06/0.6458, allocations: 4 kB / 1.023 GB, free: 9.164 MB / 0.7794 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009471/0.6468, allocations: 0.5011 MB / 1.023 GB, free: 8.664 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.406e-06/0.6468, allocations: 0 / 1.023 GB, free: 8.664 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.092e-06/0.6468, allocations: 4.188 kB / 1.023 GB, free: 8.66 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006453/0.6475, allocations: 171.8 kB / 1.023 GB, free: 8.492 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.424e-06/0.6475, allocations: 7.938 kB / 1.023 GB, free: 8.484 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003115/0.6506, allocations: 0.73 MB / 1.024 GB, free: 7.754 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.17e-05/0.6507, allocations: 20 kB / 1.024 GB, free: 7.734 MB / 0.7794 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * 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 (73): * Single equations (assignments): 68 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 5 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 5 systems {1, 1, 1, 1, 1} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0004627/0.6511, allocations: 343.8 kB / 1.024 GB, free: 7.387 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001227/0.6512, allocations: 94.78 kB / 1.024 GB, free: 7.293 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001045/0.6523, allocations: 0.5242 MB / 1.025 GB, free: 6.766 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.032e-05/0.6523, allocations: 8 kB / 1.025 GB, free: 6.758 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.338e-06/0.6523, allocations: 0 / 1.025 GB, free: 6.758 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.901e-06/0.6523, allocations: 0 / 1.025 GB, free: 6.758 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001848/0.6542, allocations: 1.279 MB / 1.026 GB, free: 5.41 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.678e-06/0.6542, allocations: 0 / 1.026 GB, free: 5.41 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005037/0.6547, allocations: 119.8 kB / 1.026 GB, free: 5.293 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.462e-06/0.6547, allocations: 4 kB / 1.026 GB, free: 5.289 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.454e-05/0.6548, allocations: 12 kB / 1.026 GB, free: 5.277 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001183/0.656, allocations: 2.946 MB / 1.029 GB, free: 2.215 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.744e-06/0.656, allocations: 0 / 1.029 GB, free: 2.215 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008057/0.6568, allocations: 0.5815 MB / 1.03 GB, free: 1.605 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002657/0.6571, allocations: 227.7 kB / 1.03 GB, free: 1.363 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.501e-05/0.6572, allocations: 8 kB / 1.03 GB, free: 1.355 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005573/0.6577, allocations: 63.78 kB / 1.03 GB, free: 1.293 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.52e-05/0.6578, allocations: 39.83 kB / 1.03 GB, free: 1.254 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.685e-05/0.6578, allocations: 12 kB / 1.03 GB, free: 1.242 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.0006739/0.6585, allocations: 0.6045 MB / 1.031 GB, free: 0.6289 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.7e-07/0.6585, allocations: 7.938 kB / 1.031 GB, free: 0.6211 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.001285/0.6598, allocations: 0.5306 MB / 1.031 GB, free: 92 kB / 0.7794 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * 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 (39): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 5 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 5 systems {1, 1, 1, 1, 1} * Without analytic Jacobian (size): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001608/0.6614, allocations: 1.352 MB / 1.033 GB, free: 14.71 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.002455/0.6639, allocations: 0.8583 MB / 1.033 GB, free: 13.85 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 3.266e-06/0.6639, allocations: 0 / 1.033 GB, free: 13.85 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0005594/0.6645, allocations: 240.3 kB / 1.034 GB, free: 13.62 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002648/0.6671, allocations: 478 kB / 1.034 GB, free: 13.15 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009477/0.6766, allocations: 7.28 MB / 1.041 GB, free: 5.574 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005107/0.6772, allocations: 1.029 MB / 1.042 GB, free: 4.516 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 0.0008738/0.678, allocations: 210.9 kB / 1.042 GB, free: 4.305 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004052/0.6785, allocations: 363.3 kB / 1.043 GB, free: 3.949 MB / 0.795 GB Notification: Performance of SimCode: time 6.51e-07/0.6785, allocations: 4 kB / 1.043 GB, free: 3.945 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08847/0.7669, allocations: 32.52 MB / 1.074 GB, free: 4.066 MB / 0.8262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002819/0.7673, allocations: 274.5 kB / 1.075 GB, free: 3.688 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.658/3.425, allocations: 0 / 1.075 GB, free: 3.688 MB / 0.8262 GB (rm -f Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe ; mkfifo Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe >> ../files/Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_Actuators_Valves_Examples_TwoWayValves_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_Actuators_Valves_Examples_TwoWayValves.fmu > Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_Actuators_Valves_Examples_TwoWayValves.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches