Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerGrids_PowerGrids.Controls.Test.TestDiscontinuousDeadBand.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/PowerGrids 1.0.3/package.mo", uses=false) Using package PowerGrids with version 1.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/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(PowerGrids.Controls.Test.TestDiscontinuousDeadBand,tolerance=1e-06,outputFormat="mat",numberOfIntervals=160,variableFilter="discontinuousDeadBand.smoothed|discontinuousDeadBand.u|discontinuousDeadBand.uMax|discontinuousDeadBand.uMin|discontinuousDeadBand.y|discontinuousDeadBandAnalyticSolution.y|inputSignal.y|time",fileNamePrefix="PowerGrids_PowerGrids.Controls.Test.TestDiscontinuousDeadBand") translateModel(PowerGrids.Controls.Test.TestDiscontinuousDeadBand,tolerance=1e-06,outputFormat="mat",numberOfIntervals=160,variableFilter="discontinuousDeadBand.smoothed|discontinuousDeadBand.u|discontinuousDeadBand.uMax|discontinuousDeadBand.uMin|discontinuousDeadBand.y|discontinuousDeadBandAnalyticSolution.y|inputSignal.y|time",fileNamePrefix="PowerGrids_PowerGrids.Controls.Test.TestDiscontinuousDeadBand") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001203/0.001203, allocations: 103.5 kB / 16.35 MB, free: 6.285 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.00116/0.00116, allocations: 193.5 kB / 17.29 MB, free: 5.863 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.445/1.445, allocations: 205.1 MB / 223.2 MB, free: 12.24 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.06157/0.06157, allocations: 14.18 MB / 284.7 MB, free: 13.88 MB / 238.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.001476/0.001476, allocations: 67.94 kB / 346.5 MB, free: 15.93 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2135/0.215, allocations: 50.12 MB / 396.6 MB, free: 47.99 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestDiscontinuousDeadBand): time 0.00183/0.2169, allocations: 0.6822 MB / 397.3 MB, free: 47.48 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001895/0.2171, allocations: 50.84 kB / 397.4 MB, free: 47.44 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.333e-05/0.2171, allocations: 1.156 kB / 397.4 MB, free: 47.44 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 2.449e-05/0.2172, allocations: 3.938 kB / 397.4 MB, free: 47.44 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 7.014e-05/0.2173, allocations: 7.922 kB / 397.4 MB, free: 47.43 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001321/0.2174, allocations: 19.92 kB / 397.4 MB, free: 47.41 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 8.194e-05/0.2175, allocations: 26.64 kB / 397.4 MB, free: 47.4 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.451e-05/0.2176, allocations: 5.828 kB / 397.4 MB, free: 47.39 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.582e-05/0.2176, allocations: 11.72 kB / 397.4 MB, free: 47.39 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.344e-05/0.2177, allocations: 11.55 kB / 397.5 MB, free: 47.38 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.448e-05/0.2177, allocations: 1.812 kB / 397.5 MB, free: 47.38 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.544e-06/0.2177, allocations: 1.906 kB / 397.5 MB, free: 47.38 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 1.58e-05/0.2177, allocations: 5.75 kB / 397.5 MB, free: 47.38 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 2.639e-05/0.2177, allocations: 13.66 kB / 397.5 MB, free: 47.36 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 6.392e-05/0.2178, allocations: 19.55 kB / 397.5 MB, free: 47.35 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.847e-06/0.2178, allocations: 3.938 kB / 397.5 MB, free: 47.34 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.2178, allocations: 4 kB / 397.5 MB, free: 47.34 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.428e-06/0.2178, allocations: 0 / 397.5 MB, free: 47.34 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 4 * Number of variables: 4 Notification: Performance of Generate backend data structure: time 0.0003081/0.2181, allocations: 333.7 kB / 397.8 MB, free: 46.98 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.174e-05/0.2182, allocations: 10.75 kB / 397.8 MB, free: 46.98 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.074e-05/0.2182, allocations: 6.656 kB / 397.8 MB, free: 46.97 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001128/0.2183, allocations: 166.2 kB / 398 MB, free: 46.77 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.237e-06/0.2184, allocations: 2.438 kB / 398 MB, free: 46.77 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.201e-05/0.2184, allocations: 384 / 398 MB, free: 46.77 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001658/0.2185, allocations: 76.5 kB / 398.1 MB, free: 46.7 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.045e-06/0.2186, allocations: 192 / 398.1 MB, free: 46.7 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.253e-05/0.2186, allocations: 9.047 kB / 398.1 MB, free: 46.69 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.92e-06/0.2186, allocations: 3.938 kB / 398.1 MB, free: 46.69 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000155/0.2187, allocations: 33.56 kB / 398.1 MB, free: 46.68 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002914/0.219, allocations: 268.3 kB / 398.4 MB, free: 46.38 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001527/0.2192, allocations: 70.81 kB / 398.5 MB, free: 46.31 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.799e-05/0.2193, allocations: 33.17 kB / 398.5 MB, free: 46.28 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.737e-05/0.2193, allocations: 1.094 kB / 398.5 MB, free: 46.28 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.575e-05/0.2194, allocations: 40.66 kB / 398.5 MB, free: 46.23 MB / 318.1 MB Notification: Performance of pre-optimization done (n=3): time 1.152e-06/0.2194, allocations: 0 / 398.5 MB, free: 46.23 MB / 318.1 MB Notification: Performance of matching and sorting (n=3): time 0.0003333/0.2197, allocations: 94.61 kB / 398.6 MB, free: 46.17 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.804e-05/0.2197, allocations: 104.1 kB / 398.7 MB, free: 46.05 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.356e-05/0.2198, allocations: 101.5 kB / 398.8 MB, free: 45.94 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 9.648e-06/0.2198, allocations: 25.7 kB / 398.9 MB, free: 45.91 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.439e-05/0.2199, allocations: 85.42 kB / 398.9 MB, free: 45.82 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.785e-05/0.2199, allocations: 13.06 kB / 399 MB, free: 45.82 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.586e-05/0.2199, allocations: 21.25 kB / 399 MB, free: 45.79 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 4.807e-05/0.22, allocations: 320.1 kB / 399.3 MB, free: 45.47 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.433e-05/0.2201, allocations: 22.84 kB / 399.3 MB, free: 45.46 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.653e-05/0.2202, allocations: 34.56 kB / 399.3 MB, free: 45.43 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001342/0.2203, allocations: 51.47 kB / 399.4 MB, free: 45.39 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.904e-06/0.2203, allocations: 0 / 399.4 MB, free: 45.39 MB / 318.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.000179/0.2205, allocations: 76.5 kB / 399.5 MB, free: 45.34 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.219e-05/0.2205, allocations: 5.906 kB / 399.5 MB, free: 45.34 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.308e-06/0.2205, allocations: 0 / 399.5 MB, free: 45.34 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.47e-05/0.2205, allocations: 1.188 kB / 399.5 MB, free: 45.34 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.067e-05/0.2206, allocations: 15.58 kB / 399.5 MB, free: 45.33 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.009e-06/0.2206, allocations: 0.9688 kB / 399.5 MB, free: 45.33 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.965e-05/0.2207, allocations: 9.078 kB / 399.5 MB, free: 45.32 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.682e-06/0.2207, allocations: 1.688 kB / 399.5 MB, free: 45.32 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 5.435e-05/0.2208, allocations: 88.3 kB / 399.6 MB, free: 45.24 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 4.083e-05/0.2208, allocations: 28.88 kB / 399.6 MB, free: 45.21 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 6.955e-05/0.2209, allocations: 33.45 kB / 399.6 MB, free: 45.18 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 6.81e-07/0.2209, allocations: 0 / 399.6 MB, free: 45.18 MB / 318.1 MB Notification: Performance of matching and sorting (n=3) (initialization_lambda0): time 0.0001078/0.221, allocations: 60.53 kB / 399.7 MB, free: 45.13 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.103e-06/0.221, allocations: 5.719 kB / 399.7 MB, free: 45.13 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.222e-06/0.221, allocations: 0 / 399.7 MB, free: 45.13 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.553e-06/0.221, allocations: 1.156 kB / 399.7 MB, free: 45.13 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.344e-05/0.2211, allocations: 5.562 kB / 399.7 MB, free: 45.13 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.944e-06/0.2211, allocations: 5.156 kB / 399.7 MB, free: 45.12 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.628e-05/0.2211, allocations: 7.047 kB / 399.7 MB, free: 45.12 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.006e-06/0.2211, allocations: 1.125 kB / 399.7 MB, free: 45.12 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * 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 (3): * Single equations (assignments): 3 * 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 4.841e-05/0.2212, allocations: 190.3 kB / 399.9 MB, free: 44.93 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.605e-05/0.2212, allocations: 2.031 kB / 399.9 MB, free: 44.93 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.795e-05/0.2212, allocations: 12.11 kB / 399.9 MB, free: 44.92 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.575e-06/0.2212, allocations: 5.125 kB / 399.9 MB, free: 44.91 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.406e-06/0.2213, allocations: 0 / 399.9 MB, free: 44.91 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.224e-06/0.2213, allocations: 5.125 kB / 399.9 MB, free: 44.91 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001186/0.2214, allocations: 167 kB / 400.1 MB, free: 44.7 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.543e-06/0.2214, allocations: 0.875 kB / 400.1 MB, free: 44.7 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.541e-05/0.2214, allocations: 12.45 kB / 400.1 MB, free: 44.7 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.094e-06/0.2215, allocations: 0 / 400.1 MB, free: 44.7 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.494e-06/0.2215, allocations: 5.406 kB / 400.1 MB, free: 44.7 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.102e-06/0.2215, allocations: 0 / 400.1 MB, free: 44.7 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.633e-06/0.2215, allocations: 1.75 kB / 400.1 MB, free: 44.7 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001876/0.2217, allocations: 178 kB / 400.3 MB, free: 44.53 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.944e-05/0.2217, allocations: 79.39 kB / 400.4 MB, free: 44.43 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.315e-05/0.2217, allocations: 1.156 kB / 400.4 MB, free: 44.43 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.576e-05/0.2218, allocations: 9.328 kB / 400.4 MB, free: 44.43 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.703e-05/0.2218, allocations: 2 kB / 400.4 MB, free: 44.43 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.948e-06/0.2219, allocations: 1.375 kB / 400.4 MB, free: 44.43 MB / 318.1 MB Notification: Performance of sorting global known variables: time 2.173e-05/0.2219, allocations: 90.02 kB / 400.5 MB, free: 44.34 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2219, allocations: 3.938 kB / 400.5 MB, free: 44.34 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002769/0.2222, allocations: 10.94 kB / 400.5 MB, free: 44.34 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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 simulation (3): * Single equations (assignments): 3 * 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 7.493e-05/0.2222, allocations: 96.25 kB / 400.6 MB, free: 44.25 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0002415/0.2225, allocations: 53.2 kB / 400.6 MB, free: 44.23 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.873e-06/0.2225, allocations: 8 kB / 400.6 MB, free: 44.22 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 7.851e-05/0.2226, allocations: 22.42 kB / 400.7 MB, free: 44.21 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002166/0.2228, allocations: 10 kB / 400.7 MB, free: 44.2 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002739/0.2231, allocations: 116.1 kB / 400.8 MB, free: 44.08 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.364e-05/0.2232, allocations: 0.6774 MB / 401.5 MB, free: 43.38 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 3.601e-05/0.2232, allocations: 6.719 kB / 401.5 MB, free: 43.38 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.532e-05/0.2233, allocations: 8.719 kB / 401.5 MB, free: 43.37 MB / 318.1 MB Notification: Performance of SimCode: time 2.4e-07/0.2233, allocations: 1.375 kB / 401.5 MB, free: 43.37 MB / 318.1 MB Notification: Performance of Templates: time 0.002507/0.2258, allocations: 0.6108 MB / 402.1 MB, free: 43.07 MB / 318.1 MB make -j1 -f PowerGrids_PowerGrids.Controls.Test.TestDiscontinuousDeadBand.makefile (rm -f PowerGrids_PowerGrids.Controls.Test.TestDiscontinuousDeadBand.pipe ; mkfifo PowerGrids_PowerGrids.Controls.Test.TestDiscontinuousDeadBand.pipe ; head -c 1048576 < PowerGrids_PowerGrids.Controls.Test.TestDiscontinuousDeadBand.pipe >> ../files/PowerGrids_PowerGrids.Controls.Test.TestDiscontinuousDeadBand.sim & ./PowerGrids_PowerGrids.Controls.Test.TestDiscontinuousDeadBand -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > PowerGrids_PowerGrids.Controls.Test.TestDiscontinuousDeadBand.pipe 2>&1) diffSimulationResults("PowerGrids_PowerGrids.Controls.Test.TestDiscontinuousDeadBand_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerGrids/PowerGrids.Controls.Test.TestDiscontinuousDeadBand_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerGrids_PowerGrids.Controls.Test.TestDiscontinuousDeadBand.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches