Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.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/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/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(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Media_TestsWithFluid_MediaTestModels_IdealGases_SimpleNaturalGas",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Media_TestsWithFluid_MediaTestModels_IdealGases_SimpleNaturalGas",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.0007164/0.0007164, allocations: 92.72 kB / 17.35 MB, free: 6.375 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.0008128/0.0008129, allocations: 180.2 kB / 18.26 MB, free: 5.52 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.324/1.324, allocations: 223.3 MB / 242.3 MB, free: 212 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2064/0.2064, allocations: 44.24 MB / 337.7 MB, free: 2.668 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003236/0.0003236, allocations: 8.5 kB / 410.4 MB, free: 27.21 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1249/0.1252, allocations: 61.92 MB / 472.4 MB, free: 13.25 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas): time 0.4643/0.5896, allocations: 173.2 MB / 0.6304 GB, free: 5.406 MB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.009108/0.5987, allocations: 6.614 MB / 0.6369 GB, free: 14.77 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001561/0.6003, allocations: 27.75 kB / 0.6369 GB, free: 14.75 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00155/0.6019, allocations: 382.2 kB / 0.6373 GB, free: 14.37 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005415/0.6074, allocations: 1.622 MB / 0.6388 GB, free: 12.75 MB / 478.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004411/0.6118, allocations: 1.392 MB / 0.6402 GB, free: 11.36 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.003662/0.6155, allocations: 3.23 MB / 0.6434 GB, free: 8.125 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001341/0.6168, allocations: 0.664 MB / 0.644 GB, free: 7.453 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00357/0.6204, allocations: 1.647 MB / 0.6456 GB, free: 5.801 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002911/0.6233, allocations: 1.659 MB / 0.6472 GB, free: 4.137 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003122/0.6237, allocations: 56 kB / 0.6473 GB, free: 4.082 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003292/0.627, allocations: 1.828 MB / 0.6491 GB, free: 2.25 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007799/0.6277, allocations: 0.6429 MB / 0.6497 GB, free: 1.605 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001283/0.629, allocations: 0.7291 MB / 0.6504 GB, free: 0.8672 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003867/0.6329, allocations: 2.711 MB / 0.6531 GB, free: 14.15 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.426e-06/0.6329, allocations: 0 / 0.6531 GB, free: 14.15 MB / 494.1 MB Notification: Performance of FrontEnd: time 3.377e-06/0.6329, allocations: 0 / 0.6531 GB, free: 14.15 MB / 494.1 MB Notification: Performance of Transformations before backend: time 6.321e-05/0.633, allocations: 3.938 kB / 0.6531 GB, free: 14.14 MB / 494.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 276 * Number of variables: 276 Notification: Performance of Generate backend data structure: time 0.003649/0.6367, allocations: 1.44 MB / 0.6545 GB, free: 12.66 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.216e-05/0.6367, allocations: 8.031 kB / 0.6545 GB, free: 12.65 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004395/0.6372, allocations: 180.8 kB / 0.6547 GB, free: 12.46 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001623/0.6388, allocations: 318.2 kB / 0.655 GB, free: 12.15 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001249/0.6401, allocations: 0.7454 MB / 0.6557 GB, free: 11.36 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001252/0.6402, allocations: 141.4 kB / 0.6558 GB, free: 11.21 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000176/0.6404, allocations: 103.9 kB / 0.6559 GB, free: 11.11 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002616/0.643, allocations: 1.849 MB / 0.6577 GB, free: 9.191 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.984e-05/0.643, allocations: 4 kB / 0.6577 GB, free: 9.188 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001351/0.6432, allocations: 44 kB / 0.6578 GB, free: 9.145 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.918e-05/0.6433, allocations: 93.95 kB / 0.6579 GB, free: 9.055 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002396/0.6457, allocations: 1.698 MB / 0.6595 GB, free: 7.355 MB / 494.1 MB 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.008509/0.6542, allocations: 6.962 MB / 0.6663 GB, free: 15.91 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001224/0.6554, allocations: 0.8695 MB / 0.6672 GB, free: 15.04 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006065/0.6561, allocations: 454.3 kB / 0.6676 GB, free: 14.59 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001071/0.6562, allocations: 101.7 kB / 0.6677 GB, free: 14.47 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.989e-05/0.6562, allocations: 63 kB / 0.6678 GB, free: 14.4 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=60): time 3.006e-06/0.6562, allocations: 7.922 kB / 0.6678 GB, free: 14.39 MB / 0.4981 GB Notification: Performance of matching and sorting (n=72): time 0.01005/0.6663, allocations: 4.16 MB / 0.6718 GB, free: 10.17 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.053e-05/0.6664, allocations: 111.5 kB / 0.6719 GB, free: 10.04 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001385/0.6678, allocations: 1.116 MB / 0.673 GB, free: 8.898 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.0001036/0.6679, allocations: 45.7 kB / 0.6731 GB, free: 8.848 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003881/0.6683, allocations: 0.5184 MB / 0.6736 GB, free: 8.32 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002299/0.6685, allocations: 260.3 kB / 0.6738 GB, free: 8.062 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001515/0.6687, allocations: 93.67 kB / 0.6739 GB, free: 7.965 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001332/0.6688, allocations: 345.9 kB / 0.6742 GB, free: 7.621 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009309/0.6698, allocations: 0.5797 MB / 0.6748 GB, free: 7.039 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001077/0.6708, allocations: 0.8721 MB / 0.6757 GB, free: 6.047 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001901/0.6727, allocations: 1.451 MB / 0.6771 GB, free: 4.484 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.434e-06/0.6728, allocations: 4 kB / 0.6771 GB, free: 4.48 MB / 0.4981 GB Notification: Performance of matching and sorting (n=125) (initialization): time 0.003052/0.6758, allocations: 2 MB / 0.679 GB, free: 2.473 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.949e-05/0.6759, allocations: 8.938 kB / 0.679 GB, free: 2.465 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.327e-05/0.6759, allocations: 8 kB / 0.679 GB, free: 2.457 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004741/0.6806, allocations: 1.421 MB / 0.6804 GB, free: 1.039 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000576/0.6812, allocations: 143.8 kB / 0.6806 GB, free: 0.8984 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002649/0.6839, allocations: 1.928 MB / 0.6825 GB, free: 14.94 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001073/0.685, allocations: 115.8 kB / 0.6826 GB, free: 14.83 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001148/0.6851, allocations: 71.92 kB / 0.6826 GB, free: 14.76 MB / 0.5138 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 37 * Number of states: 0 () * Number of discrete variables: 4 (volume.regularFlow[1],volume.regularFlow[2],volume.inFlow[2],volume.inFlow[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (82): * Single equations (assignments): 81 * 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 {(9,35)} Notification: Performance of prepare postOptimizeDAE: time 0.0006301/0.6857, allocations: 393.5 kB / 0.683 GB, free: 14.36 MB / 0.5138 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002273/0.686, allocations: 114.7 kB / 0.6831 GB, free: 14.25 MB / 0.5138 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002554/0.6885, allocations: 1.496 MB / 0.6846 GB, free: 12.74 MB / 0.5138 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.516e-06/0.6885, allocations: 8 kB / 0.6846 GB, free: 12.73 MB / 0.5138 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.144e-06/0.6885, allocations: 3.984 kB / 0.6846 GB, free: 12.73 MB / 0.5138 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.352e-06/0.6886, allocations: 0 / 0.6846 GB, free: 12.73 MB / 0.5138 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003927/0.6925, allocations: 2.692 MB / 0.6872 GB, free: 9.965 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.607e-06/0.6925, allocations: 0 / 0.6872 GB, free: 9.965 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001765/0.6943, allocations: 331.6 kB / 0.6875 GB, free: 9.641 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001726/0.6945, allocations: 64.8 kB / 0.6876 GB, free: 9.574 MB / 0.5138 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.504e-05/0.6946, allocations: 31.97 kB / 0.6876 GB, free: 9.543 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002076/0.6966, allocations: 2.848 MB / 0.6904 GB, free: 6.438 MB / 0.5138 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.085e-06/0.6967, allocations: 4.031 kB / 0.6904 GB, free: 6.434 MB / 0.5138 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00269/0.6993, allocations: 1.899 MB / 0.6923 GB, free: 4.508 MB / 0.5138 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006089/0.7, allocations: 347.5 kB / 0.6926 GB, free: 4.148 MB / 0.5138 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002254/0.7002, allocations: 32.17 kB / 0.6926 GB, free: 4.117 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001056/0.7013, allocations: 87.84 kB / 0.6927 GB, free: 4.031 MB / 0.5138 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001552/0.7014, allocations: 60.52 kB / 0.6928 GB, free: 3.973 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001186/0.7016, allocations: 63.94 kB / 0.6928 GB, free: 3.91 MB / 0.5138 GB Notification: Performance of sorting global known variables: time 0.001005/0.7026, allocations: 0.8009 MB / 0.6936 GB, free: 3.098 MB / 0.5138 GB Notification: Performance of sort global known variables: time 2.4e-07/0.7026, allocations: 0 / 0.6936 GB, free: 3.098 MB / 0.5138 GB Notification: Performance of remove unused functions: time 0.001463/0.7041, allocations: 491.8 kB / 0.6941 GB, free: 2.617 MB / 0.5138 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 8 (volume.medium.p,volume.medium.Xi[1],volume.medium.Xi[2],volume.medium.Xi[3],volume.medium.Xi[4],volume.medium.Xi[5],volume.medium.Xi[6],volume.medium.T) * 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 (78): * Single equations (assignments): 76 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * 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): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.005325/0.7094, allocations: 3.125 MB / 0.6971 GB, free: 15.47 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.002635/0.712, allocations: 1.463 MB / 0.6986 GB, free: 14.01 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 7.514e-06/0.7121, allocations: 0.6562 kB / 0.6986 GB, free: 14.01 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.001695/0.7138, allocations: 0.8614 MB / 0.6994 GB, free: 13.13 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003854/0.7176, allocations: 0.7259 MB / 0.7001 GB, free: 12.42 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2301/0.9478, allocations: 14.2 MB / 0.714 GB, free: 201.9 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007544/0.9485, allocations: 1.177 MB / 0.7151 GB, free: 201.2 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.001742/0.9503, allocations: 488 kB / 0.7156 GB, free: 201.1 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007907/0.9511, allocations: 444.4 kB / 0.716 GB, free: 201.1 MB / 0.5294 GB Notification: Performance of SimCode: time 9.62e-07/0.9511, allocations: 4.562 kB / 0.716 GB, free: 201.1 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07212/1.023, allocations: 47.83 MB / 0.7627 GB, free: 168 MB / 0.5294 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001972/1.023, allocations: 315.2 kB / 0.763 GB, free: 167.6 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.006/4.03, allocations: 3.938 kB / 0.763 GB, free: 167.6 MB / 0.5294 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Media_TestsWithFluid_MediaTestModels_IdealGases_SimpleNaturalGas_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Media_TestsWithFluid_MediaTestModels_IdealGases_SimpleNaturalGas.fmu > ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Media/TestsWithFluid/MediaTestModels/IdealGases/SimpleNaturalGas/SimpleNaturalGas.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches