Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor.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.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/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.Electrical.AC.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sen.I|sen.V|loa.S.1.|loa.S.2.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor") translateModel(Buildings.Electrical.AC.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sen.I|sen.V|loa.S.1.|loa.S.2.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001775/0.001775, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001654/0.001654, allocations: 195.8 kB / 16.14 MB, free: 6.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.477/1.477, allocations: 222.9 MB / 239.8 MB, free: 4.613 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.821/2.821, allocations: 461.9 MB / 0.7342 GB, free: 14.98 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001348/0.001348, allocations: 61.12 kB / 0.8984 GB, free: 37.23 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4013/0.4027, allocations: 157.4 MB / 1.052 GB, free: 8.824 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor): time 0.004417/0.4071, allocations: 2.674 MB / 1.055 GB, free: 6.133 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.002464/0.4096, allocations: 1.496 MB / 1.056 GB, free: 4.629 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001254/0.4098, allocations: 3.938 kB / 1.056 GB, free: 4.625 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0008175/0.4106, allocations: 217.1 kB / 1.056 GB, free: 4.414 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0004749/0.4111, allocations: 171.4 kB / 1.057 GB, free: 4.246 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004306/0.4115, allocations: 143.7 kB / 1.057 GB, free: 4.105 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0003694/0.4119, allocations: 339.1 kB / 1.057 GB, free: 3.773 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004099/0.4123, allocations: 177.8 kB / 1.057 GB, free: 3.598 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001533/0.4125, allocations: 87.69 kB / 1.057 GB, free: 3.512 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002757/0.4128, allocations: 115.6 kB / 1.057 GB, free: 3.398 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 2.87e-05/0.4128, allocations: 12 kB / 1.057 GB, free: 3.387 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004218/0.4132, allocations: 275.4 kB / 1.058 GB, free: 3.117 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 9.35e-05/0.4133, allocations: 67.86 kB / 1.058 GB, free: 3.051 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 9.539e-05/0.4134, allocations: 83.53 kB / 1.058 GB, free: 2.969 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0004076/0.4139, allocations: 339.2 kB / 1.058 GB, free: 2.637 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 6.833e-06/0.4139, allocations: 0 / 1.058 GB, free: 2.637 MB / 0.8106 GB Notification: Performance of FrontEnd: time 9.92e-07/0.4139, allocations: 0 / 1.058 GB, free: 2.637 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 1.249e-05/0.4139, allocations: 0 / 1.058 GB, free: 2.637 MB / 0.8106 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 46 * Number of variables: 46 Notification: Performance of Generate backend data structure: time 0.0007811/0.4147, allocations: 492.1 kB / 1.059 GB, free: 2.109 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.698e-05/0.4147, allocations: 8.031 kB / 1.059 GB, free: 2.102 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005986/0.4154, allocations: 84.64 kB / 1.059 GB, free: 2.02 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002618/0.4156, allocations: 228.1 kB / 1.059 GB, free: 1.758 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.561e-05/0.4156, allocations: 12.7 kB / 1.059 GB, free: 1.746 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.404e-05/0.4157, allocations: 24.34 kB / 1.059 GB, free: 1.723 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004899/0.4162, allocations: 320.4 kB / 1.059 GB, free: 1.375 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.541e-05/0.4162, allocations: 0 / 1.059 GB, free: 1.375 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.018e-05/0.4163, allocations: 12 kB / 1.059 GB, free: 1.363 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.264e-05/0.4163, allocations: 20.27 kB / 1.059 GB, free: 1.34 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000385/0.4167, allocations: 252.6 kB / 1.059 GB, free: 1.094 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001623/0.4183, allocations: 1.63 MB / 1.061 GB, free: 15.32 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005973/0.4189, allocations: 415.2 kB / 1.061 GB, free: 14.86 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001297/0.4191, allocations: 89.66 kB / 1.062 GB, free: 14.76 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001491/0.4192, allocations: 93.08 kB / 1.062 GB, free: 14.65 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.216e-05/0.4193, allocations: 34.56 kB / 1.062 GB, free: 14.61 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=13): time 1.232e-06/0.4193, allocations: 0 / 1.062 GB, free: 14.61 MB / 0.8262 GB Notification: Performance of matching and sorting (n=14): time 0.0006834/0.42, allocations: 308.6 kB / 1.062 GB, free: 14.3 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.916e-05/0.42, allocations: 81.28 kB / 1.062 GB, free: 14.2 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001602/0.4202, allocations: 177.4 kB / 1.062 GB, free: 14.02 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.9e-05/0.4202, allocations: 25.7 kB / 1.062 GB, free: 13.99 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 9.172e-05/0.4203, allocations: 147.9 kB / 1.062 GB, free: 13.84 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 4.404e-05/0.4204, allocations: 51.2 kB / 1.062 GB, free: 13.79 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.295e-05/0.4205, allocations: 53.62 kB / 1.063 GB, free: 13.73 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001173/0.4206, allocations: 326.8 kB / 1.063 GB, free: 13.41 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001219/0.4207, allocations: 80.81 kB / 1.063 GB, free: 13.32 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000164/0.4209, allocations: 151.1 kB / 1.063 GB, free: 13.14 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002948/0.4212, allocations: 248.2 kB / 1.063 GB, free: 12.87 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.343e-06/0.4212, allocations: 7.938 kB / 1.063 GB, free: 12.86 MB / 0.8262 GB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0003964/0.4216, allocations: 273.2 kB / 1.064 GB, free: 12.59 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.603e-05/0.4216, allocations: 4 kB / 1.064 GB, free: 12.59 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.494e-06/0.4216, allocations: 4 kB / 1.064 GB, free: 12.58 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.89e-05/0.4216, allocations: 7.938 kB / 1.064 GB, free: 12.57 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002591/0.4219, allocations: 56.2 kB / 1.064 GB, free: 12.52 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.578e-06/0.4219, allocations: 8 kB / 1.064 GB, free: 12.51 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001356/0.4221, allocations: 15.98 kB / 1.064 GB, free: 12.5 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.858e-05/0.4221, allocations: 12 kB / 1.064 GB, free: 12.48 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0001722/0.4223, allocations: 172 kB / 1.064 GB, free: 12.31 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001543/0.4224, allocations: 156.5 kB / 1.064 GB, free: 12.12 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0002537/0.4227, allocations: 230.1 kB / 1.064 GB, free: 11.86 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.292e-06/0.4227, allocations: 0 / 1.064 GB, free: 11.86 MB / 0.8262 GB Notification: Performance of matching and sorting (n=25) (initialization_lambda0): time 0.0003526/0.4231, allocations: 261.1 kB / 1.064 GB, free: 11.61 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 9.107e-06/0.4231, allocations: 8 kB / 1.064 GB, free: 11.6 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.506e-06/0.4231, allocations: 0 / 1.064 GB, free: 11.6 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.118e-06/0.4231, allocations: 11.94 kB / 1.064 GB, free: 11.59 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001701/0.4233, allocations: 47.91 kB / 1.064 GB, free: 11.54 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.093e-06/0.4233, allocations: 7.938 kB / 1.064 GB, free: 11.53 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001273/0.4234, allocations: 19.97 kB / 1.065 GB, free: 11.51 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.985e-05/0.4235, allocations: 11.98 kB / 1.065 GB, free: 11.5 MB / 0.8262 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * 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 (25): * Single equations (assignments): 25 * 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.0001134/0.4236, allocations: 196.4 kB / 1.065 GB, free: 11.3 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.012e-05/0.4236, allocations: 11.81 kB / 1.065 GB, free: 11.29 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003774/0.424, allocations: 200.2 kB / 1.065 GB, free: 11.09 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.02e-06/0.424, allocations: 3.938 kB / 1.065 GB, free: 11.08 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.36e-06/0.4241, allocations: 4 kB / 1.065 GB, free: 11.08 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.578e-06/0.4241, allocations: 7.984 kB / 1.065 GB, free: 11.07 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00118/0.4253, allocations: 0.969 MB / 1.066 GB, free: 9.988 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.926e-06/0.4253, allocations: 0 / 1.066 GB, free: 9.988 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001335/0.4254, allocations: 35.97 kB / 1.066 GB, free: 9.953 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.169e-06/0.4254, allocations: 4 kB / 1.066 GB, free: 9.949 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.767e-05/0.4254, allocations: 8 kB / 1.066 GB, free: 9.941 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.791e-06/0.4255, allocations: 7.938 kB / 1.066 GB, free: 9.934 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.839e-06/0.4255, allocations: 7.938 kB / 1.066 GB, free: 9.926 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003672/0.4258, allocations: 433.2 kB / 1.066 GB, free: 9.449 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 9.561e-05/0.4259, allocations: 105 kB / 1.066 GB, free: 9.328 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.252e-05/0.426, allocations: 7.906 kB / 1.066 GB, free: 9.32 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000186/0.4262, allocations: 15.98 kB / 1.066 GB, free: 9.305 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.529e-05/0.4262, allocations: 23.86 kB / 1.066 GB, free: 9.281 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.261e-05/0.4262, allocations: 12 kB / 1.067 GB, free: 9.27 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.000103/0.4263, allocations: 135.7 kB / 1.067 GB, free: 9.137 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.6e-07/0.4264, allocations: 0 / 1.067 GB, free: 9.137 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0004963/0.4269, allocations: 75.94 kB / 1.067 GB, free: 9.062 MB / 0.8262 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * 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 (14): * Single equations (assignments): 14 * 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.0001555/0.427, allocations: 111.1 kB / 1.067 GB, free: 8.945 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0004448/0.4275, allocations: 303.5 kB / 1.067 GB, free: 8.648 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.4275, allocations: 1.312 kB / 1.067 GB, free: 8.648 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001118/0.4276, allocations: 80.64 kB / 1.067 GB, free: 8.57 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005036/0.4281, allocations: 41.97 kB / 1.067 GB, free: 8.531 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008153/0.4289, allocations: 0.5488 MB / 1.068 GB, free: 7.918 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003275/0.4293, allocations: 0.7441 MB / 1.068 GB, free: 7.148 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.0002041/0.4295, allocations: 77.45 kB / 1.069 GB, free: 7.074 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.627e-05/0.4295, allocations: 19.44 kB / 1.069 GB, free: 7.055 MB / 0.8262 GB Notification: Performance of SimCode: time 2e-07/0.4295, allocations: 0 / 1.069 GB, free: 7.055 MB / 0.8262 GB Notification: Performance of Templates: time 0.004478/0.434, allocations: 1.748 MB / 1.07 GB, free: 5.324 MB / 0.8262 GB make -j1 -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor.makefile (rm -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor.sim & ./Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_ThreePhasesBalanced_Sensors_Examples_GeneralizedSensor.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches