Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Fluid.FixedResistances.Examples.FlowJunction.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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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: translateModel(Buildings.Fluid.FixedResistances.Examples.FlowJunction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|spl.port_1.m_flow|spl.port_2.m_flow|spl.port_3.m_flow|spl.port_1.p|spl.port_2.p|spl.port_3.p|spl.res1.dp|spl.res2.dp|spl.res3.dp|senTem1.T|senTem2.T|senTem3.T",fileNamePrefix="Buildings_10_Buildings.Fluid.FixedResistances.Examples.FlowJunction") translateModel(Buildings.Fluid.FixedResistances.Examples.FlowJunction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|spl.port_1.m_flow|spl.port_2.m_flow|spl.port_3.m_flow|spl.port_1.p|spl.port_2.p|spl.port_3.p|spl.res1.dp|spl.res2.dp|spl.res3.dp|senTem1.T|senTem2.T|senTem3.T",fileNamePrefix="Buildings_10_Buildings.Fluid.FixedResistances.Examples.FlowJunction") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001709/0.001709, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001878/0.001878, allocations: 196 kB / 16.53 MB, free: 6.699 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.566/1.566, allocations: 222.9 MB / 240.2 MB, free: 4.41 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.836/2.836, allocations: 437 MB / 0.7104 GB, free: 5.062 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001965/0.001965, allocations: 67.89 kB / 0.8692 GB, free: 4.652 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8672/0.8692, allocations: 151.6 MB / 1.017 GB, free: 2.477 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.FixedResistances.Examples.FlowJunction): time 0.3143/1.184, allocations: 239.9 MB / 1.252 GB, free: 1.695 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.7316/1.915, allocations: 7.189 MB / 1.259 GB, free: 19.92 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001894/1.917, allocations: 54.22 kB / 1.259 GB, free: 19.92 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.002083/1.919, allocations: 0.6976 MB / 1.259 GB, free: 19.91 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.006069/1.925, allocations: 2.075 MB / 1.261 GB, free: 19.84 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.005944/1.931, allocations: 2.015 MB / 1.263 GB, free: 19.78 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.005646/1.937, allocations: 3.269 MB / 1.266 GB, free: 19.78 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00255/1.94, allocations: 1.133 MB / 1.268 GB, free: 19.68 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.006213/1.946, allocations: 1.778 MB / 1.269 GB, free: 19.66 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003295/1.949, allocations: 0.9662 MB / 1.27 GB, free: 19.66 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 0.0007554/1.95, allocations: 122.3 kB / 1.27 GB, free: 19.66 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.008218/1.958, allocations: 2.489 MB / 1.273 GB, free: 19.63 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 0.001605/1.96, allocations: 464.1 kB / 1.273 GB, free: 19.63 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.002991/1.963, allocations: 0.7202 MB / 1.274 GB, free: 19.63 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.01051/1.973, allocations: 2.649 MB / 1.277 GB, free: 19.49 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 8.846e-06/1.973, allocations: 2.281 kB / 1.277 GB, free: 19.49 MB / 0.9981 GB Notification: Performance of FrontEnd: time 2.345e-06/1.973, allocations: 0 / 1.277 GB, free: 19.49 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 5.612e-05/1.974, allocations: 0 / 1.277 GB, free: 19.49 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: 197 * Number of variables: 197 Notification: Performance of Generate backend data structure: time 0.005008/1.979, allocations: 1.715 MB / 1.278 GB, free: 18.59 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 5.292e-05/1.979, allocations: 9.844 kB / 1.278 GB, free: 18.59 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003134/1.982, allocations: 423.9 kB / 1.279 GB, free: 18.52 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001621/1.983, allocations: 0.9662 MB / 1.28 GB, free: 18.16 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.922e-05/1.983, allocations: 65.38 kB / 1.28 GB, free: 18.16 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001555/1.984, allocations: 79.69 kB / 1.28 GB, free: 18.16 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001586/1.985, allocations: 0.8665 MB / 1.281 GB, free: 18.1 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.271e-05/1.985, allocations: 2.094 kB / 1.281 GB, free: 18.1 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.238e-05/1.985, allocations: 34.78 kB / 1.281 GB, free: 18.1 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.023e-05/1.985, allocations: 28.66 kB / 1.281 GB, free: 18.1 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001391/1.987, allocations: 0.8077 MB / 1.281 GB, free: 18.09 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.006129/1.993, allocations: 3.68 MB / 1.285 GB, free: 16.48 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001985/1.995, allocations: 1.094 MB / 1.286 GB, free: 15.89 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000961/1.996, allocations: 369.2 kB / 1.286 GB, free: 15.88 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009743/1.997, allocations: 410.9 kB / 1.287 GB, free: 15.51 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.126e-05/1.997, allocations: 37.56 kB / 1.287 GB, free: 15.47 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=60): time 3.918e-06/1.997, allocations: 1.094 kB / 1.287 GB, free: 15.47 MB / 0.9981 GB Notification: Performance of matching and sorting (n=60): time 0.00359/2.001, allocations: 0.9584 MB / 1.288 GB, free: 15.37 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.541e-05/2.001, allocations: 65.31 kB / 1.288 GB, free: 15.3 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001659/2.002, allocations: 0.8393 MB / 1.289 GB, free: 15.16 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 9.341e-05/2.002, allocations: 38.11 kB / 1.289 GB, free: 15.12 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004477/2.003, allocations: 476.9 kB / 1.289 GB, free: 14.95 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002605/2.003, allocations: 213.1 kB / 1.289 GB, free: 14.81 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002628/2.003, allocations: 115.5 kB / 1.289 GB, free: 14.79 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001022/2.004, allocations: 329.5 kB / 1.29 GB, free: 14.49 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006748/2.004, allocations: 252.9 kB / 1.29 GB, free: 14.48 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007794/2.005, allocations: 371.4 kB / 1.29 GB, free: 14.39 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001474/2.007, allocations: 0.5886 MB / 1.291 GB, free: 14.34 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.499e-06/2.007, allocations: 0.9375 kB / 1.291 GB, free: 14.34 MB / 0.9981 GB Notification: Performance of matching and sorting (n=69) (initialization): time 0.002142/2.009, allocations: 0.7297 MB / 1.292 GB, free: 14.24 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 2.195e-05/2.009, allocations: 5.219 kB / 1.292 GB, free: 14.24 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.142e-05/2.009, allocations: 4.266 kB / 1.292 GB, free: 14.24 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.026e-05/2.009, allocations: 10.03 kB / 1.292 GB, free: 14.24 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008207/2.01, allocations: 133.6 kB / 1.292 GB, free: 14.23 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.476e-05/2.01, allocations: 3.844 kB / 1.292 GB, free: 14.23 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00127/2.011, allocations: 67.64 kB / 1.292 GB, free: 14.21 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.742e-05/2.011, allocations: 23.47 kB / 1.292 GB, free: 14.21 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001194/2.012, allocations: 498.8 kB / 1.292 GB, free: 14.13 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0007307/2.013, allocations: 362.8 kB / 1.293 GB, free: 14.04 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001214/2.014, allocations: 0.5775 MB / 1.293 GB, free: 13.99 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.114e-06/2.014, allocations: 0.9375 kB / 1.293 GB, free: 13.99 MB / 0.9981 GB Notification: Performance of matching and sorting (n=69) (initialization_lambda0): time 0.001827/2.016, allocations: 0.7237 MB / 1.294 GB, free: 13.89 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.452e-05/2.016, allocations: 7.172 kB / 1.294 GB, free: 13.89 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.293e-06/2.016, allocations: 2.406 kB / 1.294 GB, free: 13.89 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.787e-06/2.016, allocations: 2.406 kB / 1.294 GB, free: 13.89 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007673/2.017, allocations: 133.8 kB / 1.294 GB, free: 13.89 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.177e-06/2.017, allocations: 3.406 kB / 1.294 GB, free: 13.89 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001186/2.018, allocations: 63.95 kB / 1.294 GB, free: 13.87 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.309e-05/2.018, allocations: 20.03 kB / 1.294 GB, free: 13.87 MB / 0.9981 GB Notification: Model statistics after passing the back-end for initialization: * 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 initialization (69): * Single equations (assignments): 69 * 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.0002331/2.018, allocations: 216.4 kB / 1.294 GB, free: 13.69 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002161/2.019, allocations: 102 kB / 1.295 GB, free: 13.64 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001898/2.021, allocations: 0.7445 MB / 1.295 GB, free: 13.57 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.835e-06/2.021, allocations: 5.969 kB / 1.295 GB, free: 13.57 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.062e-05/2.021, allocations: 6.047 kB / 1.295 GB, free: 13.57 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001422/2.022, allocations: 0.9016 MB / 1.296 GB, free: 13.12 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003414/2.025, allocations: 2.254 MB / 1.298 GB, free: 12.46 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.993e-06/2.025, allocations: 8.312 kB / 1.298 GB, free: 12.46 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006274/2.026, allocations: 135 kB / 1.299 GB, free: 12.46 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.528e-06/2.026, allocations: 5.75 kB / 1.299 GB, free: 12.46 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.797e-05/2.026, allocations: 22.78 kB / 1.299 GB, free: 12.45 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.001e-06/2.026, allocations: 8.844 kB / 1.299 GB, free: 12.45 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.33e-06/2.026, allocations: 9.812 kB / 1.299 GB, free: 12.45 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001898/2.028, allocations: 1.223 MB / 1.3 GB, free: 12.14 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000443/2.029, allocations: 255.5 kB / 1.3 GB, free: 11.99 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000134/2.029, allocations: 18.91 kB / 1.3 GB, free: 11.99 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006736/2.029, allocations: 46.72 kB / 1.3 GB, free: 11.98 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001141/2.029, allocations: 46.72 kB / 1.3 GB, free: 11.98 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.535e-05/2.03, allocations: 24.86 kB / 1.3 GB, free: 11.98 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.0007984/2.03, allocations: 0.5871 MB / 1.301 GB, free: 11.88 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.6e-07/2.03, allocations: 0 / 1.301 GB, free: 11.88 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.001409/2.032, allocations: 0.535 MB / 1.301 GB, free: 11.8 MB / 0.9981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * Number of states: 6 (spl.vol.dynBal.medium.Xi[1],spl.vol.dynBal.U,spl.vol.dynBal.m,senTem1.T,senTem2.T,senTem3.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 (60): * Single equations (assignments): 60 * 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 Backend phase and start with SimCode phase: time 0.0005452/2.032, allocations: 251.5 kB / 1.301 GB, free: 11.7 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.001852/2.034, allocations: 1.008 MB / 1.302 GB, free: 11.68 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 5.601e-06/2.034, allocations: 0 / 1.302 GB, free: 11.68 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.000534/2.035, allocations: 345.9 kB / 1.303 GB, free: 11.67 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002552/2.037, allocations: 0.5976 MB / 1.303 GB, free: 11.59 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002939/2.04, allocations: 2.167 MB / 1.305 GB, free: 10.6 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005202/2.041, allocations: 1.126 MB / 1.307 GB, free: 9.887 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.001053/2.042, allocations: 297 kB / 1.307 GB, free: 9.824 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002023/2.042, allocations: 78.55 kB / 1.307 GB, free: 9.816 MB / 0.9981 GB Notification: Performance of SimCode: time 1.142e-06/2.042, allocations: 2.094 kB / 1.307 GB, free: 9.816 MB / 0.9981 GB Notification: Performance of Templates: time 0.03629/2.078, allocations: 20.37 MB / 1.327 GB, free: 6.59 MB / 0.9981 GB make -j1 -f Buildings_10_Buildings.Fluid.FixedResistances.Examples.FlowJunction.makefile (rm -f Buildings_10_Buildings.Fluid.FixedResistances.Examples.FlowJunction.pipe ; mkfifo Buildings_10_Buildings.Fluid.FixedResistances.Examples.FlowJunction.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.FixedResistances.Examples.FlowJunction.pipe >> ../files/Buildings_10_Buildings.Fluid.FixedResistances.Examples.FlowJunction.sim & ./Buildings_10_Buildings.Fluid.FixedResistances.Examples.FlowJunction -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Fluid.FixedResistances.Examples.FlowJunction.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Fluid.FixedResistances.Examples.FlowJunction_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Fluid_FixedResistances_Examples_FlowJunction.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Fluid.FixedResistances.Examples.FlowJunction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches