Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMovingMean.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: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMovingMean,fileNamePrefix="Buildings_11_Buildings_Controls_OBC_CDL_Discrete_Validation_TriggeredMovingMean",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMovingMean,fileNamePrefix="Buildings_11_Buildings_Controls_OBC_CDL_Discrete_Validation_TriggeredMovingMean",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007339/0.00734, allocations: 98.81 kB / 15.73 MB, free: 6.055 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.001902/0.001902, allocations: 192.7 kB / 16.67 MB, free: 5.977 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.431/1.431, allocations: 222.9 MB / 240.4 MB, free: 4.309 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.871/2.871, allocations: 469.8 MB / 0.7425 GB, free: 7.289 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.002499/0.002499, allocations: 71.83 kB / 1.065 GB, free: 13.57 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2992/0.3017, allocations: 159.1 MB / 1.22 GB, free: 14.32 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMovingMean): time 0.002144/0.3039, allocations: 0.8763 MB / 1.221 GB, free: 13.44 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.001956/0.3059, allocations: 1.307 MB / 1.222 GB, free: 12.12 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.431e-05/0.3059, allocations: 0 / 1.222 GB, free: 12.12 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 9.832e-05/0.3061, allocations: 15.8 kB / 1.222 GB, free: 12.11 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.0001332/0.3062, allocations: 27.77 kB / 1.222 GB, free: 12.08 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007171/0.3069, allocations: 267.3 kB / 1.223 GB, free: 11.82 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0003753/0.3073, allocations: 291.5 kB / 1.223 GB, free: 11.54 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001101/0.3074, allocations: 37.09 kB / 1.223 GB, free: 11.5 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002525/0.3077, allocations: 127.7 kB / 1.223 GB, free: 11.38 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002451/0.3079, allocations: 131.6 kB / 1.223 GB, free: 11.25 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 5.451e-05/0.308, allocations: 24 kB / 1.223 GB, free: 11.22 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001011/0.3081, allocations: 28 kB / 1.223 GB, free: 11.2 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 8.276e-05/0.3082, allocations: 47.88 kB / 1.223 GB, free: 11.15 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.000142/0.3084, allocations: 115.5 kB / 1.223 GB, free: 11.04 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.000367/0.3087, allocations: 259.1 kB / 1.224 GB, free: 10.78 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 3.247e-06/0.3087, allocations: 0 / 1.224 GB, free: 10.78 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.302e-06/0.3087, allocations: 0 / 1.224 GB, free: 10.78 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 7.424e-06/0.3088, allocations: 4 kB / 1.224 GB, free: 10.78 MB / 0.9825 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 28 * Number of variables: 28 Notification: Performance of Generate backend data structure: time 0.001018/0.3098, allocations: 0.5415 MB / 1.224 GB, free: 10.17 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.882e-05/0.3098, allocations: 8.031 kB / 1.224 GB, free: 10.16 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.342e-05/0.3099, allocations: 46.73 kB / 1.224 GB, free: 10.11 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.439e-05/0.31, allocations: 28.83 kB / 1.224 GB, free: 10.08 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002802/0.3103, allocations: 232 kB / 1.224 GB, free: 9.812 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.879e-05/0.3103, allocations: 16.31 kB / 1.224 GB, free: 9.797 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.801e-05/0.3104, allocations: 24.36 kB / 1.224 GB, free: 9.773 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003879/0.3108, allocations: 175.5 kB / 1.225 GB, free: 9.594 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.083e-05/0.3108, allocations: 7.938 kB / 1.225 GB, free: 9.586 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.476e-05/0.3108, allocations: 7.984 kB / 1.225 GB, free: 9.578 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.663e-06/0.3108, allocations: 4 kB / 1.225 GB, free: 9.574 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002317/0.3111, allocations: 86.61 kB / 1.225 GB, free: 9.492 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007163/0.3118, allocations: 476.8 kB / 1.225 GB, free: 8.977 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003763/0.3122, allocations: 142.5 kB / 1.225 GB, free: 8.828 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001853/0.3124, allocations: 92.81 kB / 1.225 GB, free: 8.734 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 1.85e-05/0.3124, allocations: 4 kB / 1.225 GB, free: 8.73 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004097/0.3128, allocations: 223.7 kB / 1.226 GB, free: 8.5 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=28): time 1.803e-06/0.3128, allocations: 0 / 1.226 GB, free: 8.5 MB / 0.9825 GB Notification: Performance of matching and sorting (n=28): time 0.0009502/0.3138, allocations: 455.5 kB / 1.226 GB, free: 8.051 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.149e-05/0.3138, allocations: 55.41 kB / 1.226 GB, free: 7.984 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001355/0.314, allocations: 143.8 kB / 1.226 GB, free: 7.836 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 6.037e-05/0.314, allocations: 45.69 kB / 1.226 GB, free: 7.785 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 8.669e-05/0.3141, allocations: 112.5 kB / 1.226 GB, free: 7.672 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 7.428e-05/0.3142, allocations: 71.5 kB / 1.226 GB, free: 7.602 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001678/0.3144, allocations: 89.98 kB / 1.227 GB, free: 7.504 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001559/0.3146, allocations: 326.8 kB / 1.227 GB, free: 7.176 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003205/0.3149, allocations: 144.7 kB / 1.227 GB, free: 7.035 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003687/0.3153, allocations: 209.2 kB / 1.227 GB, free: 6.809 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006149/0.3159, allocations: 358.3 kB / 1.228 GB, free: 6.422 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.74e-06/0.3159, allocations: 4 kB / 1.228 GB, free: 6.418 MB / 0.9825 GB Notification: Performance of matching and sorting (n=47) (initialization): time 0.001022/0.3169, allocations: 0.4955 MB / 1.228 GB, free: 5.906 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 9.842e-05/0.317, allocations: 71.39 kB / 1.228 GB, free: 5.824 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.695e-06/0.3171, allocations: 0 / 1.228 GB, free: 5.824 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.732e-05/0.3171, allocations: 4 kB / 1.228 GB, free: 5.82 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002394/0.3173, allocations: 51.91 kB / 1.228 GB, free: 5.77 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.584e-06/0.3173, allocations: 0 / 1.228 GB, free: 5.77 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004085/0.3177, allocations: 87.77 kB / 1.228 GB, free: 5.684 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.383e-05/0.3178, allocations: 19.98 kB / 1.228 GB, free: 5.664 MB / 0.9825 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 42 ($whenCondition5,$whenCondition6,booPul1.y,$PRE.booPul1.y,$whenCondition4,booPul.y,$PRE.booPul.y,$whenCondition3,$whenCondition1,$whenCondition2,triMovMea2.ySample[3],$PRE.triMovMea2.ySample[3],triMovMea2.ySample[2],$PRE.triMovMea2.ySample[2],triMovMea2.ySample[1],$PRE.triMovMea2.ySample[1],triMovMea2.index,triMovMea2.counter,$PRE.triMovMea2.counter,triMovMea2.iSample,$PRE.triMovMea2.iSample,triMovMea2.y,triMovMea1.ySample[1],$PRE.triMovMea1.ySample[1],triMovMea1.index,triMovMea1.counter,$PRE.triMovMea1.counter,triMovMea1.iSample,$PRE.triMovMea1.iSample,triMovMea1.y,triMovMea.ySample[3],$PRE.triMovMea.ySample[3],triMovMea.ySample[2],$PRE.triMovMea.ySample[2],triMovMea.ySample[1],$PRE.triMovMea.ySample[1],triMovMea.index,triMovMea.counter,$PRE.triMovMea.counter,triMovMea.iSample,$PRE.triMovMea.iSample,triMovMea.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (39): * Single equations (assignments): 35 * Array equations: 2 * Algorithm blocks: 2 * 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.0002314/0.3181, allocations: 165.8 kB / 1.228 GB, free: 5.496 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.049e-05/0.3181, allocations: 19.89 kB / 1.228 GB, free: 5.477 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.257e-05/0.3181, allocations: 13.88 kB / 1.228 GB, free: 5.461 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.414e-06/0.3181, allocations: 0 / 1.228 GB, free: 5.461 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.432e-06/0.3182, allocations: 8 kB / 1.228 GB, free: 5.453 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.55e-06/0.3182, allocations: 3.938 kB / 1.228 GB, free: 5.449 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009097/0.3191, allocations: 0.6584 MB / 1.229 GB, free: 4.734 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.138e-06/0.3191, allocations: 3.984 kB / 1.229 GB, free: 4.73 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.496e-05/0.3191, allocations: 4 kB / 1.229 GB, free: 4.727 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.224e-06/0.3192, allocations: 0 / 1.229 GB, free: 4.727 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.223e-05/0.3192, allocations: 15.92 kB / 1.229 GB, free: 4.711 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.893e-06/0.3192, allocations: 0 / 1.229 GB, free: 4.711 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.099e-06/0.3192, allocations: 7.984 kB / 1.229 GB, free: 4.703 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006919/0.3199, allocations: 459.8 kB / 1.23 GB, free: 4.238 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 6.018e-05/0.32, allocations: 96.89 kB / 1.23 GB, free: 4.125 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.801e-05/0.32, allocations: 19.92 kB / 1.23 GB, free: 4.105 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001249/0.3202, allocations: 15.92 kB / 1.23 GB, free: 4.09 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.548e-05/0.3202, allocations: 11.98 kB / 1.23 GB, free: 4.078 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.781e-05/0.3203, allocations: 19.98 kB / 1.23 GB, free: 4.059 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 8.165e-05/0.3204, allocations: 113.6 kB / 1.23 GB, free: 3.949 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.21e-07/0.3204, allocations: 0 / 1.23 GB, free: 3.949 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0003588/0.3207, allocations: 60 kB / 1.23 GB, free: 3.891 MB / 0.9825 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 27 ($whenCondition5,$whenCondition6,$whenCondition4,$whenCondition3,$whenCondition1,$whenCondition2,booPul.y,triMovMea.y,triMovMea.iSample,triMovMea.counter,triMovMea.index,triMovMea.ySample[1],triMovMea.ySample[2],triMovMea.ySample[3],triMovMea1.y,triMovMea1.iSample,triMovMea1.counter,triMovMea1.index,triMovMea1.ySample[1],triMovMea2.y,triMovMea2.iSample,triMovMea2.counter,triMovMea2.index,triMovMea2.ySample[1],triMovMea2.ySample[2],triMovMea2.ySample[3],booPul1.y) * Number of discrete states: 13 (triMovMea2.iSample,triMovMea2.ySample[1],triMovMea2.ySample[2],triMovMea2.ySample[3],triMovMea2.counter,triMovMea.iSample,triMovMea.counter,triMovMea.ySample[1],triMovMea.ySample[2],triMovMea.ySample[3],triMovMea1.iSample,triMovMea1.counter,triMovMea1.ySample[1]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 17 * 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.001136/0.3219, allocations: 1.024 MB / 1.231 GB, free: 2.844 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0007956/0.3227, allocations: 463.1 kB / 1.231 GB, free: 2.367 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.3227, allocations: 0 / 1.231 GB, free: 2.367 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0002325/0.323, allocations: 115.9 kB / 1.231 GB, free: 2.254 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003837/0.3233, allocations: 35.91 kB / 1.231 GB, free: 2.219 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003796/0.3272, allocations: 2.654 MB / 1.234 GB, free: 15.44 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003632/0.3275, allocations: 0.7204 MB / 1.235 GB, free: 14.69 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 7.423e-05/0.3276, allocations: 25.53 kB / 1.235 GB, free: 14.67 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001015/0.3277, allocations: 47.42 kB / 1.235 GB, free: 14.62 MB / 0.9981 GB Notification: Performance of SimCode: time 3.51e-07/0.3277, allocations: 0 / 1.235 GB, free: 14.62 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02751/0.3552, allocations: 5.162 MB / 1.24 GB, free: 9.625 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.034/8.389, allocations: 18.89 kB / 1.24 GB, free: 9.609 MB / 0.9981 GB (rm -f Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMovingMean.pipe ; mkfifo Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMovingMean.pipe ; head -c 1048576 < Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMovingMean.pipe >> ../files/Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMovingMean.sim & python3 -m fmpy simulate --output-file Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMovingMean_res.csv --start-time -0.5 --stop-time 15 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0062 Buildings_11_Buildings_Controls_OBC_CDL_Discrete_Validation_TriggeredMovingMean.fmu > Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMovingMean.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMovingMean_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Controls_OBC_CDL_Discrete_Validation_TriggeredMovingMean.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMovingMean.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches