Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.NewFittings.Orifices.ThickEdgedOrifice.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(ModelicaTest.Fluid.TestComponents.NewFittings.Orifices.ThickEdgedOrifice,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|ramp.y|boundary.ports.1..m_flow|boundary.ports.1..p|boundary.ports.1..h_outflow|sensor.port_b.m_flow|sensor.port_b.p|sensor.port_b.h_outflow|fitting1.port_b.m_flow|fitting1.port_b.p|fitting1.port_b.h_outflow|fitting2.port_b.m_flow|fitting2.port_b.p|fitting2.port_b.h_outflow",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.NewFittings.Orifices.ThickEdgedOrifice") translateModel(ModelicaTest.Fluid.TestComponents.NewFittings.Orifices.ThickEdgedOrifice,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|ramp.y|boundary.ports.1..m_flow|boundary.ports.1..p|boundary.ports.1..h_outflow|sensor.port_b.m_flow|sensor.port_b.p|sensor.port_b.h_outflow|fitting1.port_b.m_flow|fitting1.port_b.p|fitting1.port_b.h_outflow|fitting2.port_b.m_flow|fitting2.port_b.p|fitting2.port_b.h_outflow",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.NewFittings.Orifices.ThickEdgedOrifice") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001473/0.001473, allocations: 193.9 kB / 16.09 MB, free: 5.547 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.277/1.277, allocations: 226.6 MB / 243.4 MB, free: 8.207 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009433/0.0009434, allocations: 106.3 kB / 295.5 MB, free: 6.879 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3104/0.3104, allocations: 44.81 MB / 392.3 MB, free: 35.73 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003639/0.000364, allocations: 8 kB / 465.3 MB, free: 12.66 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.346/0.3463, allocations: 62.96 MB / 0.5159 GB, free: 36.95 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.NewFittings.Orifices.ThickEdgedOrifice): time 0.1788/0.5252, allocations: 167 MB / 0.679 GB, free: 2.012 MB / 490.7 MB Notification: Performance of NFInst.instExpressions: time 0.2936/0.8189, allocations: 3.12 MB / 0.682 GB, free: 5.195 MB / 490.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000608/0.8195, allocations: 18.06 kB / 0.682 GB, free: 5.195 MB / 490.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00083/0.8204, allocations: 251.1 kB / 0.6823 GB, free: 5.191 MB / 490.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Sources.mo:730:36-731:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Sources.mo:728:36-729:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Sources.mo:730:36-731:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Sources.mo:728:36-729:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Sources.mo:784:36-785:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Sources.mo:782:36-783:54:writable] Warning: 'each' used when modifying non-array element m_flow. Notification: Performance of NFTyping.typeBindings: time 0.003337/0.8237, allocations: 1.221 MB / 0.6835 GB, free: 5.148 MB / 490.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001679/0.8254, allocations: 0.5987 MB / 0.6841 GB, free: 5.129 MB / 490.7 MB Notification: Performance of NFFlatten.flatten: time 0.002231/0.8277, allocations: 1.766 MB / 0.6858 GB, free: 5.125 MB / 490.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000551/0.8282, allocations: 368 kB / 0.6861 GB, free: 5.09 MB / 490.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009228/0.8292, allocations: 0.5109 MB / 0.6866 GB, free: 5.09 MB / 490.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004764/0.8296, allocations: 449.4 kB / 0.6871 GB, free: 5.09 MB / 490.7 MB Notification: Performance of NFPackage.collectConstants: time 7.335e-05/0.8297, allocations: 31.33 kB / 0.6871 GB, free: 5.09 MB / 490.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002093/0.8318, allocations: 1.057 MB / 0.6881 GB, free: 5.07 MB / 490.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001449/0.832, allocations: 140.2 kB / 0.6883 GB, free: 5.07 MB / 490.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003342/0.8323, allocations: 335.8 kB / 0.6886 GB, free: 5.039 MB / 490.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001293/0.8336, allocations: 1.056 MB / 0.6896 GB, free: 4.965 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.029e-06/0.8336, allocations: 0 / 0.6896 GB, free: 4.965 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.214e-06/0.8336, allocations: 2.344 kB / 0.6896 GB, free: 4.965 MB / 490.7 MB Notification: Performance of Transformations before backend: time 8.617e-06/0.8337, allocations: 0 / 0.6896 GB, free: 4.965 MB / 490.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 105 * Number of variables: 105 Notification: Performance of Generate backend data structure: time 0.001909/0.8356, allocations: 0.9212 MB / 0.6905 GB, free: 20.35 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 3.944e-05/0.8356, allocations: 9.188 kB / 0.6905 GB, free: 20.35 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008756/0.8365, allocations: 136.8 kB / 0.6906 GB, free: 20.32 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006106/0.8371, allocations: 479.2 kB / 0.6911 GB, free: 20.07 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.832e-05/0.8372, allocations: 31.41 kB / 0.6911 GB, free: 20.07 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.081e-05/0.8372, allocations: 43.38 kB / 0.6912 GB, free: 20.06 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009689/0.8382, allocations: 0.5965 MB / 0.6918 GB, free: 19.94 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.345e-05/0.8382, allocations: 0 / 0.6918 GB, free: 19.94 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.064e-05/0.8383, allocations: 23.56 kB / 0.6918 GB, free: 19.94 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.28e-05/0.8383, allocations: 15.59 kB / 0.6918 GB, free: 19.94 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008573/0.8392, allocations: 487.9 kB / 0.6923 GB, free: 19.94 MB / 0.4948 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.00286/0.8421, allocations: 2.676 MB / 0.6949 GB, free: 18.14 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007255/0.8428, allocations: 357.2 kB / 0.6952 GB, free: 18.1 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003137/0.8431, allocations: 182.1 kB / 0.6954 GB, free: 18.09 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000453/0.8436, allocations: 436 kB / 0.6958 GB, free: 17.62 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.055e-05/0.8436, allocations: 35.77 kB / 0.6958 GB, free: 17.58 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=33): time 2.435e-06/0.8436, allocations: 0 / 0.6958 GB, free: 17.58 MB / 0.4948 GB Notification: Performance of matching and sorting (n=33): time 0.001742/0.8454, allocations: 0.7463 MB / 0.6966 GB, free: 17.41 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.675e-05/0.8455, allocations: 132 kB / 0.6967 GB, free: 17.25 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006227/0.8461, allocations: 0.4895 MB / 0.6972 GB, free: 17.13 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 4.966e-05/0.8462, allocations: 30.98 kB / 0.6972 GB, free: 17.1 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001911/0.8464, allocations: 282.1 kB / 0.6975 GB, free: 16.96 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 9.131e-05/0.8465, allocations: 119.8 kB / 0.6976 GB, free: 16.89 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.045e-05/0.8465, allocations: 6.75 kB / 0.6976 GB, free: 16.89 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0001547/0.8466, allocations: 364.3 kB / 0.6979 GB, free: 16.57 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003083/0.847, allocations: 161.3 kB / 0.6981 GB, free: 16.57 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003742/0.8473, allocations: 281.2 kB / 0.6984 GB, free: 16.41 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006758/0.848, allocations: 449.4 kB / 0.6988 GB, free: 16.29 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.896e-06/0.848, allocations: 1.875 kB / 0.6988 GB, free: 16.29 MB / 0.4948 GB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0009899/0.849, allocations: 0.5531 MB / 0.6993 GB, free: 16.21 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 2.092e-05/0.8491, allocations: 6.781 kB / 0.6993 GB, free: 16.21 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.222e-05/0.8491, allocations: 7.797 kB / 0.6993 GB, free: 16.2 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001554/0.8507, allocations: 289.5 kB / 0.6996 GB, free: 16.19 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000363/0.851, allocations: 109 kB / 0.6997 GB, free: 16.18 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004697/0.8515, allocations: 0.6032 MB / 0.7003 GB, free: 15.66 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004453/0.852, allocations: 63.27 kB / 0.7004 GB, free: 15.63 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.161e-05/0.8521, allocations: 49.58 kB / 0.7004 GB, free: 15.63 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * 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 (44): * Single equations (assignments): 43 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0002939/0.8524, allocations: 179.2 kB / 0.7006 GB, free: 15.52 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.489e-05/0.8525, allocations: 55.97 kB / 0.7006 GB, free: 15.49 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002207/0.8547, allocations: 1.108 MB / 0.7017 GB, free: 15.3 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.116e-06/0.8547, allocations: 4.109 kB / 0.7017 GB, free: 15.3 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.092e-06/0.8547, allocations: 0.6875 kB / 0.7017 GB, free: 15.3 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.634e-06/0.8547, allocations: 11.61 kB / 0.7017 GB, free: 15.29 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001663/0.8564, allocations: 1.029 MB / 0.7027 GB, free: 14.92 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.687e-06/0.8564, allocations: 0.9375 kB / 0.7027 GB, free: 14.92 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002179/0.8566, allocations: 55.89 kB / 0.7028 GB, free: 14.92 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003347/0.86, allocations: 0.5405 MB / 0.7033 GB, free: 14.89 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.94e-05/0.8601, allocations: 9.75 kB / 0.7033 GB, free: 14.89 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005229/0.8606, allocations: 0.6093 MB / 0.7039 GB, free: 14.37 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.755e-06/0.8606, allocations: 8.5 kB / 0.7039 GB, free: 14.37 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0011/0.8617, allocations: 0.5121 MB / 0.7044 GB, free: 14.16 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003795/0.8621, allocations: 158.3 kB / 0.7046 GB, free: 14.03 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001934/0.8623, allocations: 7.219 kB / 0.7046 GB, free: 14.03 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005099/0.8628, allocations: 34.52 kB / 0.7046 GB, free: 14.02 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.705e-05/0.8629, allocations: 27.61 kB / 0.7047 GB, free: 14.02 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.802e-05/0.863, allocations: 18.36 kB / 0.7047 GB, free: 14.02 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.0007363/0.8638, allocations: 393.1 kB / 0.705 GB, free: 13.93 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.743e-06/0.8638, allocations: 0 / 0.705 GB, free: 13.93 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.001345/0.8651, allocations: 291.2 kB / 0.7053 GB, free: 13.89 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * 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 (27): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.001262/0.8664, allocations: 379.5 kB / 0.7057 GB, free: 13.75 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.001054/0.8675, allocations: 380.2 kB / 0.7061 GB, free: 13.75 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 4.799e-06/0.8675, allocations: 1.859 kB / 0.7061 GB, free: 13.75 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.0003985/0.8679, allocations: 168.8 kB / 0.7062 GB, free: 13.75 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001665/0.8696, allocations: 297.2 kB / 0.7065 GB, free: 13.72 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001874/0.8714, allocations: 1.114 MB / 0.7076 GB, free: 13.12 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004895/0.872, allocations: 0.861 MB / 0.7084 GB, free: 12.41 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004838/0.8724, allocations: 121.5 kB / 0.7085 GB, free: 12.39 MB / 0.4948 GB Notification: Performance of SimCode: time 1.022e-06/0.8725, allocations: 0 / 0.7085 GB, free: 12.39 MB / 0.4948 GB Notification: Performance of Templates: time 0.02449/0.8969, allocations: 14.01 MB / 0.7222 GB, free: 8.109 MB / 0.4948 GB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.NewFittings.Orifices.ThickEdgedOrifice.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.NewFittings.Orifices.ThickEdgedOrifice.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.NewFittings.Orifices.ThickEdgedOrifice.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.NewFittings.Orifices.ThickEdgedOrifice.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.NewFittings.Orifices.ThickEdgedOrifice.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.NewFittings.Orifices.ThickEdgedOrifice --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.NewFittings.Orifices.ThickEdgedOrifice.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.NewFittings.Orifices.ThickEdgedOrifice_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestComponents/NewFittings/Orifices/ThickEdgedOrifice/ThickEdgedOrifice.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.NewFittings.Orifices.ThickEdgedOrifice.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches