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.001685/0.001685, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.002039/0.002039, allocations: 191.4 kB / 16.25 MB, free: 6.621 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.576/1.576, allocations: 222.9 MB / 239.9 MB, free: 4.508 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 3.017/3.017, allocations: 437 MB / 0.7101 GB, free: 5.273 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.002056/0.002056, allocations: 63.91 kB / 0.8687 GB, free: 5.027 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9221/0.9242, allocations: 151.6 MB / 1.017 GB, free: 2.699 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.FixedResistances.Examples.FlowJunction): time 0.3095/1.234, allocations: 237 MB / 1.248 GB, free: 4.852 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.6644/1.898, allocations: 7.153 MB / 1.255 GB, free: 19.73 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002505/1.901, allocations: 48.88 kB / 1.255 GB, free: 19.73 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.002616/1.903, allocations: 0.6057 MB / 1.256 GB, free: 19.73 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.006111/1.909, allocations: 1.952 MB / 1.258 GB, free: 19.66 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.005974/1.915, allocations: 1.875 MB / 1.26 GB, free: 19.61 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.006327/1.922, allocations: 3.282 MB / 1.263 GB, free: 19.61 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002505/1.924, allocations: 1.097 MB / 1.264 GB, free: 19.51 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005807/1.93, allocations: 1.78 MB / 1.266 GB, free: 19.5 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003958/1.934, allocations: 1.022 MB / 1.267 GB, free: 19.5 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 0.0006613/1.935, allocations: 121.3 kB / 1.267 GB, free: 19.5 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.007719/1.943, allocations: 2.592 MB / 1.269 GB, free: 19.47 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 0.001169/1.944, allocations: 461.5 kB / 1.27 GB, free: 19.47 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.001784/1.946, allocations: 0.7223 MB / 1.27 GB, free: 19.47 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.007521/1.953, allocations: 2.82 MB / 1.273 GB, free: 19.32 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 7.164e-06/1.953, allocations: 1.062 kB / 1.273 GB, free: 19.32 MB / 0.9981 GB Notification: Performance of FrontEnd: time 3.156e-06/1.953, allocations: 0.9688 kB / 1.273 GB, free: 19.32 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 4.074e-05/1.953, allocations: 1.531 kB / 1.273 GB, free: 19.32 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.004076/1.957, allocations: 1.711 MB / 1.275 GB, free: 18.42 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 4.44e-05/1.957, allocations: 9 kB / 1.275 GB, free: 18.42 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003034/1.96, allocations: 426.9 kB / 1.275 GB, free: 18.35 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001978/1.962, allocations: 0.9624 MB / 1.276 GB, free: 18 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.693e-05/1.963, allocations: 60.59 kB / 1.276 GB, free: 18 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001563/1.963, allocations: 83.69 kB / 1.276 GB, free: 18 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001748/1.964, allocations: 0.8632 MB / 1.277 GB, free: 17.94 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.862e-05/1.965, allocations: 0 / 1.277 GB, free: 17.94 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000105/1.965, allocations: 35.69 kB / 1.277 GB, free: 17.94 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.485e-05/1.965, allocations: 33.56 kB / 1.277 GB, free: 17.94 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00152/1.966, allocations: 0.8044 MB / 1.278 GB, free: 17.93 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.005401/1.972, allocations: 3.633 MB / 1.282 GB, free: 16.32 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001553/1.973, allocations: 1.099 MB / 1.283 GB, free: 15.73 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006352/1.974, allocations: 368.6 kB / 1.283 GB, free: 15.72 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007134/1.975, allocations: 405.9 kB / 1.283 GB, free: 15.34 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.666e-05/1.975, allocations: 41.72 kB / 1.283 GB, free: 15.3 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=60): time 2.945e-06/1.975, allocations: 1.062 kB / 1.283 GB, free: 15.3 MB / 0.9981 GB Notification: Performance of matching and sorting (n=60): time 0.002268/1.977, allocations: 0.9603 MB / 1.284 GB, free: 15.2 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.817e-05/1.977, allocations: 61.05 kB / 1.284 GB, free: 15.14 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001128/1.978, allocations: 0.8345 MB / 1.285 GB, free: 14.99 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 7.432e-05/1.978, allocations: 46.8 kB / 1.285 GB, free: 14.96 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003018/1.978, allocations: 478.4 kB / 1.286 GB, free: 14.79 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002202/1.979, allocations: 212.5 kB / 1.286 GB, free: 14.65 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001975/1.979, allocations: 116.4 kB / 1.286 GB, free: 14.63 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 9.818e-05/1.979, allocations: 330.4 kB / 1.286 GB, free: 14.32 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004664/1.979, allocations: 253.3 kB / 1.287 GB, free: 14.32 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005446/1.98, allocations: 367.7 kB / 1.287 GB, free: 14.22 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009426/1.981, allocations: 0.5897 MB / 1.288 GB, free: 14.18 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.168e-06/1.981, allocations: 0.9688 kB / 1.288 GB, free: 14.18 MB / 0.9981 GB Notification: Performance of matching and sorting (n=69) (initialization): time 0.001313/1.982, allocations: 0.7347 MB / 1.288 GB, free: 14.07 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.918e-05/1.982, allocations: 5.5 kB / 1.288 GB, free: 14.07 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.566e-06/1.982, allocations: 3.844 kB / 1.288 GB, free: 14.07 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.334e-05/1.982, allocations: 6.125 kB / 1.288 GB, free: 14.07 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005638/1.983, allocations: 131.9 kB / 1.288 GB, free: 14.07 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.268e-05/1.983, allocations: 2.125 kB / 1.288 GB, free: 14.07 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001191/1.984, allocations: 128.3 kB / 1.289 GB, free: 14.05 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.885e-05/1.984, allocations: 21.06 kB / 1.289 GB, free: 14.05 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001015/1.985, allocations: 500 kB / 1.289 GB, free: 13.96 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005115/1.986, allocations: 361.9 kB / 1.289 GB, free: 13.88 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0009122/1.987, allocations: 0.5832 MB / 1.29 GB, free: 13.82 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.665e-06/1.987, allocations: 0.75 kB / 1.29 GB, free: 13.82 MB / 0.9981 GB Notification: Performance of matching and sorting (n=69) (initialization_lambda0): time 0.00125/1.988, allocations: 0.7202 MB / 1.291 GB, free: 13.73 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.521e-05/1.988, allocations: 7.75 kB / 1.291 GB, free: 13.73 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.29e-06/1.988, allocations: 0 / 1.291 GB, free: 13.73 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.241e-06/1.988, allocations: 4.344 kB / 1.291 GB, free: 13.73 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005384/1.989, allocations: 129.3 kB / 1.291 GB, free: 13.73 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.264e-05/1.989, allocations: 8.406 kB / 1.291 GB, free: 13.73 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001219/1.99, allocations: 128.2 kB / 1.291 GB, free: 13.7 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.879e-05/1.99, allocations: 22.36 kB / 1.291 GB, free: 13.7 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.0002135/1.99, allocations: 214.7 kB / 1.291 GB, free: 13.52 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001693/1.99, allocations: 102.6 kB / 1.291 GB, free: 13.47 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001376/1.992, allocations: 0.7351 MB / 1.292 GB, free: 13.41 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.657e-06/1.992, allocations: 11.47 kB / 1.292 GB, free: 13.41 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.923e-06/1.992, allocations: 5.031 kB / 1.292 GB, free: 13.4 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00105/1.993, allocations: 0.9036 MB / 1.293 GB, free: 12.95 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00397/1.997, allocations: 2.252 MB / 1.295 GB, free: 12.29 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.241e-06/1.997, allocations: 3.594 kB / 1.295 GB, free: 12.29 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006459/1.997, allocations: 132.7 kB / 1.295 GB, free: 12.29 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.151e-05/1.997, allocations: 9.375 kB / 1.295 GB, free: 12.29 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.336e-05/1.998, allocations: 17.47 kB / 1.295 GB, free: 12.29 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.102e-05/1.998, allocations: 13.38 kB / 1.295 GB, free: 12.29 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.048e-06/1.998, allocations: 7.094 kB / 1.295 GB, free: 12.29 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001947/2, allocations: 1.23 MB / 1.296 GB, free: 11.97 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006694/2, allocations: 257.8 kB / 1.297 GB, free: 11.82 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001489/2, allocations: 18.36 kB / 1.297 GB, free: 11.82 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008679/2.001, allocations: 97.58 kB / 1.297 GB, free: 11.82 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001203/2.001, allocations: 42.66 kB / 1.297 GB, free: 11.82 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.8e-05/2.001, allocations: 25.39 kB / 1.297 GB, free: 11.82 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.0008283/2.002, allocations: 0.5826 MB / 1.297 GB, free: 11.71 MB / 0.9981 GB Notification: Performance of sort global known variables: time 4.61e-07/2.002, allocations: 0 / 1.297 GB, free: 11.71 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.001556/2.004, allocations: 0.5392 MB / 1.298 GB, free: 11.63 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.0006174/2.004, allocations: 253.4 kB / 1.298 GB, free: 11.52 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.002041/2.007, allocations: 1.008 MB / 1.299 GB, free: 11.5 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 6.953e-06/2.007, allocations: 4.625 kB / 1.299 GB, free: 11.5 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0005503/2.007, allocations: 340.4 kB / 1.299 GB, free: 11.5 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002791/2.01, allocations: 0.6036 MB / 1.3 GB, free: 11.41 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003865/2.014, allocations: 2.553 MB / 1.303 GB, free: 10.04 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006813/2.014, allocations: 1.125 MB / 1.304 GB, free: 9.324 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.00155/2.016, allocations: 296.4 kB / 1.304 GB, free: 9.266 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002694/2.016, allocations: 81.05 kB / 1.304 GB, free: 9.258 MB / 0.9981 GB Notification: Performance of SimCode: time 2.645e-06/2.016, allocations: 0 / 1.304 GB, free: 9.258 MB / 0.9981 GB Notification: Performance of Templates: time 0.03629/2.053, allocations: 20.17 MB / 1.324 GB, free: 6.625 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