Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesDpOptimised.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 11.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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.Examples.Performance.PressureDrop.SeriesDpOptimised,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sin.ports.1..m_flow",fileNamePrefix="Buildings_11_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesDpOptimised") translateModel(Buildings.Fluid.Examples.Performance.PressureDrop.SeriesDpOptimised,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sin.ports.1..m_flow",fileNamePrefix="Buildings_11_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesDpOptimised") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001446/0.001446, allocations: 107.5 kB / 15.99 MB, free: 6.355 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.001376/0.001376, allocations: 193.1 kB / 16.91 MB, free: 6.195 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.399/1.399, allocations: 222.9 MB / 240.6 MB, free: 15.43 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.675/2.675, allocations: 469.8 MB / 0.7427 GB, free: 3.617 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001924/0.001925, allocations: 68.89 kB / 0.9087 GB, free: 14.27 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3119/0.3139, allocations: 159.1 MB / 1.064 GB, free: 15.14 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Examples.Performance.PressureDrop.SeriesDpOptimised): time 0.7399/1.054, allocations: 159.4 MB / 1.22 GB, free: 6.609 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.005812/1.06, allocations: 3.592 MB / 1.223 GB, free: 3.711 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004525/1.06, allocations: 9.562 kB / 1.223 GB, free: 3.707 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 0.000636/1.061, allocations: 140.3 kB / 1.223 GB, free: 3.594 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 0.001542/1.062, allocations: 0.4946 MB / 1.224 GB, free: 3.227 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.001363/1.064, allocations: 399.6 kB / 1.224 GB, free: 2.965 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.002983/1.067, allocations: 2.56 MB / 1.227 GB, free: 1.562 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001301/1.068, allocations: 0.9026 MB / 1.228 GB, free: 1.055 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002073/1.07, allocations: 1.072 MB / 1.229 GB, free: 0.4922 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000963/1.071, allocations: 0.7449 MB / 1.229 GB, free: 15.93 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 0.0001027/1.071, allocations: 56 kB / 1.23 GB, free: 15.88 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001651/1.073, allocations: 0.7561 MB / 1.23 GB, free: 15.12 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 0.0003886/1.073, allocations: 310.9 kB / 1.231 GB, free: 14.82 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 0.0007621/1.074, allocations: 0.544 MB / 1.231 GB, free: 14.27 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.001516/1.076, allocations: 1.049 MB / 1.232 GB, free: 13.22 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 4.669e-06/1.076, allocations: 4 kB / 1.232 GB, free: 13.21 MB / 0.9512 GB Notification: Performance of FrontEnd: time 2.835e-06/1.076, allocations: 0 / 1.232 GB, free: 13.21 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 2.238e-05/1.076, allocations: 0 / 1.232 GB, free: 13.21 MB / 0.9512 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 125 * Number of variables: 125 Notification: Performance of Generate backend data structure: time 0.002628/1.078, allocations: 1.447 MB / 1.234 GB, free: 11.71 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 4.563e-05/1.078, allocations: 12.62 kB / 1.234 GB, free: 11.7 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007854/1.079, allocations: 182.5 kB / 1.234 GB, free: 11.52 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001316/1.08, allocations: 0.8023 MB / 1.235 GB, free: 10.66 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.37e-05/1.081, allocations: 45 kB / 1.235 GB, free: 10.61 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001159/1.081, allocations: 60 kB / 1.235 GB, free: 10.55 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001269/1.082, allocations: 0.7964 MB / 1.235 GB, free: 9.68 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.74e-05/1.082, allocations: 0 / 1.235 GB, free: 9.68 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.339e-05/1.082, allocations: 20 kB / 1.235 GB, free: 9.66 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.738e-05/1.082, allocations: 12 kB / 1.235 GB, free: 9.648 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009269/1.083, allocations: 0.5499 MB / 1.236 GB, free: 9.102 MB / 0.9512 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.00483/1.088, allocations: 4.587 MB / 1.24 GB, free: 4.129 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00077/1.089, allocations: 414.3 kB / 1.241 GB, free: 3.715 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004024/1.089, allocations: 244.7 kB / 1.241 GB, free: 3.473 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003324/1.089, allocations: 198.2 kB / 1.241 GB, free: 3.242 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005364/1.09, allocations: 297.2 kB / 1.242 GB, free: 2.934 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=31): time 1.783e-06/1.09, allocations: 0 / 1.242 GB, free: 2.934 MB / 0.9512 GB Notification: Performance of matching and sorting (n=31): time 0.00415/1.094, allocations: 1.316 MB / 1.243 GB, free: 1.59 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.354e-05/1.094, allocations: 85.05 kB / 1.243 GB, free: 1.488 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001642/1.096, allocations: 1.122 MB / 1.244 GB, free: 356 kB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 6.788e-05/1.096, allocations: 37.69 kB / 1.244 GB, free: 312 kB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004697/1.096, allocations: 484.3 kB / 1.244 GB, free: 15.82 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001161/1.097, allocations: 114.4 kB / 1.245 GB, free: 15.71 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001761/1.097, allocations: 106 kB / 1.245 GB, free: 15.61 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001501/1.097, allocations: 330 kB / 1.245 GB, free: 15.28 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003955/1.097, allocations: 217.5 kB / 1.245 GB, free: 15.07 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006939/1.098, allocations: 0.5175 MB / 1.246 GB, free: 14.41 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009459/1.099, allocations: 0.6275 MB / 1.246 GB, free: 13.71 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.09e-06/1.099, allocations: 0 / 1.246 GB, free: 13.71 MB / 0.9669 GB Notification: Performance of matching and sorting (n=54) (initialization): time 0.002552/1.101, allocations: 1.048 MB / 1.247 GB, free: 12.64 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 4.943e-05/1.102, allocations: 33.7 kB / 1.247 GB, free: 12.6 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.455e-05/1.102, allocations: 8 kB / 1.247 GB, free: 12.59 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00148/1.103, allocations: 370.6 kB / 1.248 GB, free: 12.23 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002302/1.103, allocations: 55.91 kB / 1.248 GB, free: 12.18 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001163/1.104, allocations: 1.013 MB / 1.249 GB, free: 11.14 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008328/1.105, allocations: 95.44 kB / 1.249 GB, free: 11.04 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.712e-05/1.105, allocations: 27.98 kB / 1.249 GB, free: 11.02 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0007654/1.106, allocations: 0.4967 MB / 1.249 GB, free: 10.52 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005947/1.107, allocations: 489.9 kB / 1.25 GB, free: 9.902 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0007922/1.108, allocations: 0.5567 MB / 1.25 GB, free: 9.266 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.541e-06/1.108, allocations: 7.938 kB / 1.25 GB, free: 9.258 MB / 0.9669 GB Notification: Performance of matching and sorting (n=54) (initialization_lambda0): time 0.001658/1.109, allocations: 0.8275 MB / 1.251 GB, free: 8.414 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 4.425e-05/1.109, allocations: 37.64 kB / 1.251 GB, free: 8.371 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.007e-06/1.109, allocations: 8 kB / 1.251 GB, free: 8.363 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005457/1.11, allocations: 210.5 kB / 1.251 GB, free: 8.156 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002121/1.11, allocations: 71.89 kB / 1.252 GB, free: 8.086 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004056/1.114, allocations: 3.331 MB / 1.255 GB, free: 4.598 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008586/1.115, allocations: 92 kB / 1.255 GB, free: 4.508 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.064e-05/1.115, allocations: 20 kB / 1.255 GB, free: 4.488 MB / 0.9669 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 24 * Number of states: 0 () * Number of discrete variables: 5 (pulse_p.count,$PRE.pulse_p.count,pulse_p.T_start,$PRE.pulse_p.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (34): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 1 * 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 {(1,19)} Notification: Performance of prepare postOptimizeDAE: time 0.0002454/1.115, allocations: 224.1 kB / 1.255 GB, free: 4.262 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001557/1.116, allocations: 102.8 kB / 1.255 GB, free: 4.16 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001378/1.117, allocations: 0.7062 MB / 1.256 GB, free: 3.445 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.081e-06/1.117, allocations: 4 kB / 1.256 GB, free: 3.441 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.084e-06/1.117, allocations: 0 / 1.256 GB, free: 3.441 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.493e-06/1.117, allocations: 3.984 kB / 1.256 GB, free: 3.438 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002489/1.119, allocations: 1.605 MB / 1.257 GB, free: 1.754 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.968e-06/1.119, allocations: 0 / 1.257 GB, free: 1.754 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000115/1.12, allocations: 27.86 kB / 1.258 GB, free: 1.727 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004944/1.12, allocations: 229 kB / 1.258 GB, free: 1.5 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.274e-05/1.12, allocations: 4 kB / 1.258 GB, free: 1.496 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009856/1.121, allocations: 0.9911 MB / 1.259 GB, free: 492 kB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.336e-06/1.121, allocations: 0.75 kB / 1.259 GB, free: 492 kB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001284/1.122, allocations: 0.8212 MB / 1.259 GB, free: 15.62 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003289/1.123, allocations: 219.8 kB / 1.26 GB, free: 15.38 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001071/1.123, allocations: 11.98 kB / 1.26 GB, free: 15.37 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004677/1.123, allocations: 47.89 kB / 1.26 GB, free: 15.32 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.833e-05/1.123, allocations: 27.91 kB / 1.26 GB, free: 15.3 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.692e-05/1.123, allocations: 13 kB / 1.26 GB, free: 15.29 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.001044/1.125, allocations: 0.7955 MB / 1.261 GB, free: 14.48 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.1e-07/1.125, allocations: 0 / 1.261 GB, free: 14.48 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.00131/1.126, allocations: 443.4 kB / 1.261 GB, free: 14.05 MB / 0.9825 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,pulse_p.T_start,pulse_p.count) * Number of discrete states: 1 (pulse_p.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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 {(1,19)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0004966/1.126, allocations: 181.9 kB / 1.261 GB, free: 13.88 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.002097/1.128, allocations: 1.09 MB / 1.262 GB, free: 12.75 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 3.777e-06/1.128, allocations: 3.938 kB / 1.262 GB, free: 12.75 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0004966/1.129, allocations: 217.6 kB / 1.262 GB, free: 12.54 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00192/1.131, allocations: 459.9 kB / 1.263 GB, free: 12.09 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003238/1.134, allocations: 2.121 MB / 1.265 GB, free: 9.91 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008577/1.135, allocations: 1.181 MB / 1.266 GB, free: 8.699 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001473/1.135, allocations: 63.42 kB / 1.266 GB, free: 8.637 MB / 0.9825 GB Notification: Performance of SimCode: time 4.3e-07/1.135, allocations: 0 / 1.266 GB, free: 8.637 MB / 0.9825 GB Notification: Performance of Templates: time 0.03166/1.167, allocations: 20.32 MB / 1.286 GB, free: 4.406 MB / 0.9981 GB make -j1 -f Buildings_11_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesDpOptimised.makefile (rm -f Buildings_11_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesDpOptimised.pipe ; mkfifo Buildings_11_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesDpOptimised.pipe ; head -c 1048576 < Buildings_11_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesDpOptimised.pipe >> ../files/Buildings_11_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesDpOptimised.sim & ./Buildings_11_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesDpOptimised -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesDpOptimised.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesDpOptimised_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Fluid_Examples_Performance_PressureDrop_SeriesDpOptimised.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesDpOptimised.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches