Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.PIDWithReset.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.Controls.OBC.CDL.Reals.Validation.PIDWithReset,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|limPIDPar.u_s|limPIDPar.u_m|limPIDPar.y|limPIDInp.u_s|limPIDInp.u_m|limPIDInp.y|limPIPar.u_s|limPIPar.u_m|limPIPar.y|limPIInp.u_s|limPIInp.u_m|limPIInp.y",fileNamePrefix="Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.PIDWithReset") translateModel(Buildings.Controls.OBC.CDL.Reals.Validation.PIDWithReset,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|limPIDPar.u_s|limPIDPar.u_m|limPIDPar.y|limPIDInp.u_s|limPIDInp.u_m|limPIDInp.y|limPIPar.u_s|limPIPar.u_m|limPIPar.y|limPIInp.u_s|limPIInp.u_m|limPIInp.y",fileNamePrefix="Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.PIDWithReset") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001618/0.001618, allocations: 105.3 kB / 16.41 MB, free: 6.414 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.001718/0.001718, allocations: 191.6 kB / 17.34 MB, free: 5.691 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.415/1.415, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.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.467/2.467, allocations: 437 MB / 0.7112 GB, free: 4.379 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001381/0.001381, allocations: 71.88 kB / 1.019 GB, free: 9.371 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8189/0.8203, allocations: 151.6 MB / 1.167 GB, free: 3.84 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.PIDWithReset): time 0.004753/0.8251, allocations: 3.324 MB / 1.171 GB, free: 0.5078 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.003083/0.8282, allocations: 1.727 MB / 1.172 GB, free: 14.77 MB / 0.9044 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000758/0.829, allocations: 19.94 kB / 1.172 GB, free: 14.75 MB / 0.9044 GB Notification: Performance of NFTyping.typeComponents: time 0.0005622/0.8296, allocations: 166.2 kB / 1.172 GB, free: 14.58 MB / 0.9044 GB Notification: Performance of NFTyping.typeBindings: time 0.0006344/0.8303, allocations: 122.8 kB / 1.173 GB, free: 14.46 MB / 0.9044 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009503/0.8312, allocations: 363.4 kB / 1.173 GB, free: 14.11 MB / 0.9044 GB Notification: Performance of NFFlatten.flatten: time 0.001413/0.8327, allocations: 1.065 MB / 1.174 GB, free: 13.04 MB / 0.9044 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001166/0.8338, allocations: 0.6272 MB / 1.175 GB, free: 12.39 MB / 0.9044 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005443/0.8344, allocations: 410.2 kB / 1.175 GB, free: 11.98 MB / 0.9044 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00055/0.835, allocations: 445.7 kB / 1.175 GB, free: 11.55 MB / 0.9044 GB Notification: Performance of NFPackage.collectConstants: time 0.0002559/0.8352, allocations: 120 kB / 1.176 GB, free: 11.43 MB / 0.9044 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002131/0.8354, allocations: 124 kB / 1.176 GB, free: 11.31 MB / 0.9044 GB Notification: Performance of NFScalarize.scalarize: time 0.0002449/0.8357, allocations: 251.1 kB / 1.176 GB, free: 11.06 MB / 0.9044 GB Notification: Performance of NFVerifyModel.verify: time 0.0004968/0.8362, allocations: 485.3 kB / 1.176 GB, free: 10.59 MB / 0.9044 GB Notification: Performance of NFConvertDAE.convert: time 0.001412/0.8376, allocations: 1.311 MB / 1.178 GB, free: 9.273 MB / 0.9044 GB Notification: Performance of FrontEnd - DAE generated: time 7.955e-06/0.8376, allocations: 4 kB / 1.178 GB, free: 9.27 MB / 0.9044 GB Notification: Performance of FrontEnd: time 1.904e-06/0.8377, allocations: 3.938 kB / 1.178 GB, free: 9.266 MB / 0.9044 GB Notification: Performance of Transformations before backend: time 4.24e-05/0.8377, allocations: 0 / 1.178 GB, free: 9.266 MB / 0.9044 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 229 * Number of variables: 229 Notification: Performance of Generate backend data structure: time 0.00284/0.8405, allocations: 1.312 MB / 1.179 GB, free: 7.898 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 3.938e-05/0.8406, allocations: 8.922 kB / 1.179 GB, free: 7.891 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002387/0.8408, allocations: 128.2 kB / 1.179 GB, free: 7.766 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008687/0.8417, allocations: 0.5563 MB / 1.18 GB, free: 7.164 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.965e-05/0.8418, allocations: 78.38 kB / 1.18 GB, free: 7.09 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001588/0.842, allocations: 100.3 kB / 1.18 GB, free: 6.992 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001633/0.8436, allocations: 0.8711 MB / 1.181 GB, free: 6.098 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.196e-05/0.8436, allocations: 192 / 1.181 GB, free: 6.098 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.072e-05/0.8437, allocations: 51.86 kB / 1.181 GB, free: 6.047 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.292e-05/0.8437, allocations: 24 kB / 1.181 GB, free: 6.023 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001306/0.8451, allocations: 0.6207 MB / 1.181 GB, free: 5.406 MB / 0.9044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004207/0.8493, allocations: 2.791 MB / 1.184 GB, free: 2.531 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001532/0.8508, allocations: 1.31 MB / 1.185 GB, free: 1.07 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006261/0.8515, allocations: 403.6 kB / 1.186 GB, free: 0.6719 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 4.441e-05/0.8515, allocations: 12.64 kB / 1.186 GB, free: 0.6602 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006331/0.8522, allocations: 348.4 kB / 1.186 GB, free: 316 kB / 0.9044 GB Notification: Performance of pre-optimization done (n=74): time 2.484e-06/0.8522, allocations: 0 / 1.186 GB, free: 316 kB / 0.9044 GB Notification: Performance of matching and sorting (n=74): time 0.001624/0.8538, allocations: 0.8215 MB / 1.187 GB, free: 15.48 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.32e-05/0.8539, allocations: 162.9 kB / 1.187 GB, free: 15.28 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006905/0.8546, allocations: 0.5693 MB / 1.188 GB, free: 14.7 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 6.112e-05/0.8547, allocations: 41.7 kB / 1.188 GB, free: 14.66 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002785/0.855, allocations: 400.9 kB / 1.188 GB, free: 14.26 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001827/0.8552, allocations: 257.7 kB / 1.188 GB, free: 14.01 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001826/0.8554, allocations: 138.6 kB / 1.188 GB, free: 13.86 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001527/0.8555, allocations: 382.8 kB / 1.189 GB, free: 13.48 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005253/0.856, allocations: 240.7 kB / 1.189 GB, free: 13.24 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006168/0.8567, allocations: 373.1 kB / 1.189 GB, free: 12.84 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001022/0.8577, allocations: 0.537 MB / 1.19 GB, free: 12.3 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.456e-06/0.8577, allocations: 0 / 1.19 GB, free: 12.3 MB / 0.92 GB Notification: Performance of matching and sorting (n=87) (initialization): time 0.001362/0.8591, allocations: 0.7079 MB / 1.191 GB, free: 11.58 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 1.709e-05/0.8591, allocations: 4 kB / 1.191 GB, free: 11.57 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.352e-06/0.8591, allocations: 0 / 1.191 GB, free: 11.57 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.577e-05/0.8591, allocations: 4 kB / 1.191 GB, free: 11.57 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005951/0.8597, allocations: 155.8 kB / 1.191 GB, free: 11.42 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.326e-05/0.8598, allocations: 12.03 kB / 1.191 GB, free: 11.41 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004196/0.8602, allocations: 95.47 kB / 1.191 GB, free: 11.31 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.041e-05/0.8602, allocations: 24 kB / 1.191 GB, free: 11.29 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005572/0.8608, allocations: 350.1 kB / 1.191 GB, free: 10.95 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004331/0.8613, allocations: 313.1 kB / 1.191 GB, free: 10.6 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0006718/0.8619, allocations: 462 kB / 1.192 GB, free: 10.14 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.923e-06/0.862, allocations: 0 / 1.192 GB, free: 10.14 MB / 0.92 GB Notification: Performance of matching and sorting (n=87) (initialization_lambda0): time 0.000958/0.8629, allocations: 0.626 MB / 1.192 GB, free: 9.508 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 1.006e-05/0.8629, allocations: 4 kB / 1.192 GB, free: 9.504 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.506e-06/0.8629, allocations: 0 / 1.192 GB, free: 9.504 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.672e-06/0.863, allocations: 4 kB / 1.192 GB, free: 9.5 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004804/0.8634, allocations: 131.8 kB / 1.193 GB, free: 9.371 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.923e-06/0.8635, allocations: 4 kB / 1.193 GB, free: 9.367 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003524/0.8638, allocations: 87.61 kB / 1.193 GB, free: 9.281 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.162e-05/0.8639, allocations: 24 kB / 1.193 GB, free: 9.258 MB / 0.92 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 3 (limPIDInp.trigger,$whenCondition1,con.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (87): * Single equations (assignments): 87 * 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.0001936/0.8641, allocations: 224.1 kB / 1.193 GB, free: 9.031 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.773e-05/0.8641, allocations: 71.53 kB / 1.193 GB, free: 8.961 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001223/0.8654, allocations: 0.6456 MB / 1.194 GB, free: 8.309 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.015e-06/0.8654, allocations: 11.94 kB / 1.194 GB, free: 8.297 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.485e-06/0.8654, allocations: 3.938 kB / 1.194 GB, free: 8.293 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.855e-06/0.8654, allocations: 3.984 kB / 1.194 GB, free: 8.289 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00245/0.8679, allocations: 1.686 MB / 1.195 GB, free: 6.527 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.24e-06/0.8679, allocations: 8.188 kB / 1.195 GB, free: 6.52 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005757/0.8685, allocations: 139.8 kB / 1.195 GB, free: 6.383 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.544e-06/0.8685, allocations: 4 kB / 1.195 GB, free: 6.379 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.828e-05/0.8685, allocations: 23.92 kB / 1.195 GB, free: 6.355 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.781e-06/0.8685, allocations: 4 kB / 1.195 GB, free: 6.352 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.327e-06/0.8686, allocations: 4 kB / 1.195 GB, free: 6.348 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00167/0.8702, allocations: 1.071 MB / 1.197 GB, free: 5.246 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001292/0.8704, allocations: 168.4 kB / 1.197 GB, free: 5.062 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.793e-05/0.8704, allocations: 12 kB / 1.197 GB, free: 5.051 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003423/0.8708, allocations: 47.95 kB / 1.197 GB, free: 5.004 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.76e-05/0.8709, allocations: 52.47 kB / 1.197 GB, free: 4.953 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.512e-05/0.8709, allocations: 20 kB / 1.197 GB, free: 4.934 MB / 0.92 GB Notification: Performance of sorting global known variables: time 0.0004204/0.8714, allocations: 398.8 kB / 1.197 GB, free: 4.547 MB / 0.92 GB Notification: Performance of sort global known variables: time 1.41e-07/0.8714, allocations: 0 / 1.197 GB, free: 4.547 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.0006906/0.8721, allocations: 310.9 kB / 1.197 GB, free: 4.242 MB / 0.92 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 10 (limPIDPar.I.y,limPIDPar.D.x,intWitRes1.y,limPIDInp.I.y,limPIDInp.D.x,intWitRes2.y,limPIPar.I.y,intWitRes3.y,limPIInp.I.y,intWitRes4.y) * Number of discrete variables: 2 (limPIDInp.trigger,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (74): * Single equations (assignments): 74 * 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.000187/0.8723, allocations: 131 kB / 1.198 GB, free: 4.102 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.001571/0.8738, allocations: 0.891 MB / 1.198 GB, free: 3.207 MB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 4.409e-06/0.8738, allocations: 4 kB / 1.198 GB, free: 3.203 MB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 0.0005218/0.8744, allocations: 311.4 kB / 1.199 GB, free: 2.898 MB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007801/0.8752, allocations: 154.4 kB / 1.199 GB, free: 2.758 MB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002478/0.8777, allocations: 1.578 MB / 1.2 GB, free: 1.125 MB / 0.92 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005669/0.8782, allocations: 0.9778 MB / 1.201 GB, free: 124 kB / 0.92 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001831/0.8784, allocations: 63.42 kB / 1.201 GB, free: 60 kB / 0.92 GB Notification: Performance of SimCode: time 3.31e-07/0.8784, allocations: 0 / 1.201 GB, free: 60 kB / 0.92 GB Notification: Performance of Templates: time 0.01302/0.8915, allocations: 9.177 MB / 1.21 GB, free: 6.871 MB / 0.9356 GB make -j1 -f Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.PIDWithReset.makefile (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.PIDWithReset.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.PIDWithReset.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.PIDWithReset.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.PIDWithReset.sim & ./Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.PIDWithReset -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.PIDWithReset.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.PIDWithReset_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Reals_Validation_PIDWithReset.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.PIDWithReset.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches