Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|volume.medium.h|volume.medium.p",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph") translateModel(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|volume.medium.h|volume.medium.p",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001802/0.001802, allocations: 108.3 kB / 16.41 MB, free: 6.473 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.001947/0.001947, allocations: 188.1 kB / 17.34 MB, free: 5.754 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.5/1.5, allocations: 205.1 MB / 223.2 MB, free: 12.25 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2391/0.2391, allocations: 43.53 MB / 314.1 MB, free: 472 kB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001347/0.001347, allocations: 63.91 kB / 441.8 MB, free: 5.664 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1677/0.169, allocations: 57.81 MB / 499.6 MB, free: 11.79 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph): time 0.05771/0.2268, allocations: 39.03 MB / 0.526 GB, free: 4.605 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.4216/0.6485, allocations: 20.15 MB / 0.5457 GB, free: 3.371 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001105/0.6496, allocations: 18.53 kB / 0.5457 GB, free: 3.371 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001616/0.6513, allocations: 443.8 kB / 0.5461 GB, free: 3.363 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.02498/0.6763, allocations: 5.13 MB / 0.5511 GB, free: 3.016 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01153/0.6879, allocations: 2.563 MB / 0.5536 GB, free: 2.531 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.004817/0.6927, allocations: 1.988 MB / 0.5556 GB, free: 2.18 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001464/0.6942, allocations: 0.4911 MB / 0.5561 GB, free: 2.113 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01311/0.7073, allocations: 4.162 MB / 0.5601 GB, free: 0.9648 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01283/0.7202, allocations: 5.435 MB / 0.5654 GB, free: 15.02 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003148/0.7206, allocations: 70.97 kB / 0.5655 GB, free: 15.02 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02106/0.7416, allocations: 7.373 MB / 0.5727 GB, free: 11.75 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007785/0.7425, allocations: 290.7 kB / 0.573 GB, free: 11.55 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001066/0.7436, allocations: 456.4 kB / 0.5734 GB, free: 11.28 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02161/0.7652, allocations: 5.105 MB / 0.5784 GB, free: 8.25 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.113e-05/0.7653, allocations: 3.938 kB / 0.5784 GB, free: 8.246 MB / 430.1 MB Notification: Performance of FrontEnd: time 3.787e-06/0.7653, allocations: 0 / 0.5784 GB, free: 8.246 MB / 430.1 MB Notification: Performance of Transformations before backend: time 2.027e-05/0.7654, allocations: 0 / 0.5784 GB, free: 8.246 MB / 430.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 160 * Number of variables: 160 Notification: Performance of Generate backend data structure: time 0.006402/0.7718, allocations: 1.675 MB / 0.58 GB, free: 7.09 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.81e-05/0.7719, allocations: 8.5 kB / 0.5801 GB, free: 7.09 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002512/0.7744, allocations: 311 kB / 0.5804 GB, free: 6.922 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001276/0.7757, allocations: 0.5787 MB / 0.5809 GB, free: 6.312 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001623/0.7759, allocations: 115.1 kB / 0.581 GB, free: 6.191 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001317/0.776, allocations: 59.89 kB / 0.5811 GB, free: 6.137 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002896/0.7789, allocations: 1.194 MB / 0.5822 GB, free: 4.859 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.254e-05/0.779, allocations: 7.938 kB / 0.5823 GB, free: 4.852 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001121/0.7791, allocations: 28 kB / 0.5823 GB, free: 4.824 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.116e-05/0.7792, allocations: 50.84 kB / 0.5823 GB, free: 4.777 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002908/0.7821, allocations: 1.02 MB / 0.5833 GB, free: 3.758 MB / 430.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.007939/0.79, allocations: 5.608 MB / 0.5888 GB, free: 13.82 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002352/0.7924, allocations: 0.7596 MB / 0.5895 GB, free: 13.05 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005874/0.793, allocations: 290.2 kB / 0.5898 GB, free: 12.76 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03357/0.8266, allocations: 15.93 MB / 0.6054 GB, free: 10.97 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.33e-05/0.8267, allocations: 46.5 kB / 0.6054 GB, free: 10.91 MB / 462.1 MB Notification: Performance of pre-optimization done (n=45): time 3.366e-06/0.8267, allocations: 0 / 0.6054 GB, free: 10.91 MB / 462.1 MB Notification: Performance of matching and sorting (n=49): time 0.00769/0.8344, allocations: 2.283 MB / 0.6077 GB, free: 8.574 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000117/0.8345, allocations: 158.7 kB / 0.6078 GB, free: 8.383 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001017/0.8356, allocations: 0.6133 MB / 0.6084 GB, free: 7.77 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 6.707e-05/0.8357, allocations: 33.7 kB / 0.6084 GB, free: 7.73 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003369/0.836, allocations: 388.6 kB / 0.6088 GB, free: 7.352 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001739/0.8362, allocations: 172.7 kB / 0.609 GB, free: 7.184 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002558/0.8364, allocations: 162.5 kB / 0.6091 GB, free: 7.02 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.000171/0.8366, allocations: 378.8 kB / 0.6095 GB, free: 6.641 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005979/0.8372, allocations: 277.8 kB / 0.6098 GB, free: 6.371 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008456/0.8381, allocations: 0.6083 MB / 0.6103 GB, free: 5.617 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001515/0.8396, allocations: 0.8948 MB / 0.6112 GB, free: 4.578 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.143e-05/0.8396, allocations: 4 kB / 0.6112 GB, free: 4.574 MB / 462.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001924/0.8416, allocations: 0.9605 MB / 0.6122 GB, free: 3.605 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.717e-05/0.8416, allocations: 12 kB / 0.6122 GB, free: 3.594 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.854e-05/0.8416, allocations: 8 kB / 0.6122 GB, free: 3.586 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002881/0.8419, allocations: 69.44 kB / 0.6122 GB, free: 3.516 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001254/0.8432, allocations: 307.5 kB / 0.6125 GB, free: 3.215 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001626/0.8448, allocations: 2.071 MB / 0.6146 GB, free: 0.9844 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006292/0.8455, allocations: 48.16 kB / 0.6146 GB, free: 0.9375 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.59e-05/0.8456, allocations: 43.98 kB / 0.6146 GB, free: 0.8945 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 47 * Number of states: 0 () * Number of discrete variables: 10 (ambient.medium.phase,fixedMassFlowRate.medium.phase,volume.heatTransfer.states[1].phase,volume.regularFlow[1],volume.regularFlow[2],volume.inFlow[2],volume.inFlow[1],shortPipe.flowModel.states[2].phase,shortPipe.flowModel.states[1].phase,ambient.state.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (95): * Single equations (assignments): 93 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0004008/0.846, allocations: 281.1 kB / 0.6149 GB, free: 0.6094 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001757/0.8462, allocations: 83.03 kB / 0.615 GB, free: 0.5273 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003224/0.8494, allocations: 2.544 MB / 0.6175 GB, free: 13.98 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.974e-05/0.8494, allocations: 27.95 kB / 0.6175 GB, free: 13.95 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.228e-06/0.8494, allocations: 4 kB / 0.6175 GB, free: 13.95 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.726e-06/0.8495, allocations: 3.984 kB / 0.6175 GB, free: 13.94 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005168/0.8546, allocations: 3.758 MB / 0.6212 GB, free: 10.12 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.093e-06/0.8547, allocations: 4 kB / 0.6212 GB, free: 10.12 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00109/0.8558, allocations: 227.7 kB / 0.6214 GB, free: 9.898 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004071/0.8562, allocations: 80.83 kB / 0.6215 GB, free: 9.816 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.498e-05/0.8562, allocations: 15.98 kB / 0.6215 GB, free: 9.801 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001656/0.8579, allocations: 2.093 MB / 0.6235 GB, free: 7.539 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.435e-06/0.8579, allocations: 4.031 kB / 0.6235 GB, free: 7.535 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003312/0.8613, allocations: 2.346 MB / 0.6258 GB, free: 5.176 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005679/0.8618, allocations: 259.3 kB / 0.6261 GB, free: 4.902 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002577/0.8621, allocations: 35.69 kB / 0.6261 GB, free: 4.867 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006294/0.8627, allocations: 32.03 kB / 0.6261 GB, free: 4.836 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001916/0.863, allocations: 44.5 kB / 0.6262 GB, free: 4.793 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.84e-05/0.863, allocations: 19.98 kB / 0.6262 GB, free: 4.773 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.0008994/0.8639, allocations: 0.5576 MB / 0.6268 GB, free: 4.211 MB / 478.1 MB Notification: Performance of sort global known variables: time 5.21e-07/0.8639, allocations: 0 / 0.6268 GB, free: 4.211 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.005319/0.8693, allocations: 1.093 MB / 0.6278 GB, free: 3.117 MB / 478.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (volume.medium.p,volume.medium.h) * Number of discrete variables: 21 ($cse2.region3boundary,$cse3.region3boundary,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse6.phase,$cse6.region,$cse7.phase,$cse7.region,$cse8.phase,$cse8.region,$cse11.phase,$cse11.region,$cse13.phase,$cse13.region,$cse14.phase,$cse14.region,volume.heatTransfer.states[1].phase,fixedMassFlowRate.medium.phase,ambient.medium.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (58): * Single equations (assignments): 46 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 10 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.007593/0.8769, allocations: 1.22 MB / 0.629 GB, free: 1.992 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.003351/0.8803, allocations: 1.104 MB / 0.6301 GB, free: 0.8906 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 7.464e-06/0.8803, allocations: 0 / 0.6301 GB, free: 0.8906 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002023/0.8823, allocations: 0.8207 MB / 0.6309 GB, free: 72 kB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002646/0.885, allocations: 407.2 kB / 0.6313 GB, free: 15.68 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005002/0.89, allocations: 2.466 MB / 0.6337 GB, free: 13.19 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001228/0.8913, allocations: 1.161 MB / 0.6348 GB, free: 11.99 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.001185/0.8925, allocations: 436.9 kB / 0.6352 GB, free: 11.56 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002611/0.8928, allocations: 67.42 kB / 0.6353 GB, free: 11.5 MB / 494.1 MB Notification: Performance of SimCode: time 1.833e-06/0.8928, allocations: 0 / 0.6353 GB, free: 11.5 MB / 494.1 MB Notification: Performance of Templates: time 0.08249/0.9753, allocations: 47.04 MB / 0.6812 GB, free: 12.47 MB / 0.5294 GB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph.sim & ./ModelicaTest_3.2.3_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Media/TestsWithFluid/MediaTestModels/Water/WaterIF97_ph/WaterIF97_ph.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches