Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 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.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_10_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_10_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.001783/0.001784, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.002755/0.002755, allocations: 190.7 kB / 16.14 MB, free: 6.719 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.502/1.502, 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 10.1.1-maint.10.0.x/package.mo): time 2.878/2.878, allocations: 437 MB / 0.7099 GB, free: 5.328 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001916/0.001916, allocations: 59.91 kB / 0.8686 GB, free: 5.16 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8243/0.8263, allocations: 151.6 MB / 1.017 GB, free: 2.719 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor): time 0.00511/0.8314, allocations: 2.666 MB / 1.019 GB, free: 44 kB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.002691/0.8341, allocations: 1.504 MB / 1.021 GB, free: 14.53 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000115/0.8343, allocations: 7.938 kB / 1.021 GB, free: 14.52 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.000882/0.8352, allocations: 215.3 kB / 1.021 GB, free: 14.31 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0004794/0.8357, allocations: 171.4 kB / 1.021 GB, free: 14.14 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004128/0.8361, allocations: 135.6 kB / 1.021 GB, free: 14.02 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0004197/0.8365, allocations: 347.1 kB / 1.022 GB, free: 13.68 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000411/0.8369, allocations: 173.9 kB / 1.022 GB, free: 13.5 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001768/0.8371, allocations: 87.62 kB / 1.022 GB, free: 13.41 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002916/0.8374, allocations: 119.6 kB / 1.022 GB, free: 13.3 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 3.388e-05/0.8375, allocations: 12 kB / 1.022 GB, free: 13.29 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004704/0.838, allocations: 271.5 kB / 1.022 GB, free: 13.02 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0001094/0.8381, allocations: 67.81 kB / 1.022 GB, free: 12.95 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0001066/0.8382, allocations: 83.58 kB / 1.022 GB, free: 12.87 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.000472/0.8387, allocations: 332.9 kB / 1.023 GB, free: 12.55 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 7.203e-06/0.8387, allocations: 4 kB / 1.023 GB, free: 12.54 MB / 0.7794 GB Notification: Performance of FrontEnd: time 9.92e-07/0.8387, allocations: 4 kB / 1.023 GB, free: 12.54 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 6.893e-06/0.8387, allocations: 0 / 1.023 GB, free: 12.54 MB / 0.7794 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.0009073/0.8396, allocations: 495.1 kB / 1.023 GB, free: 12.01 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.205e-05/0.8397, allocations: 8.031 kB / 1.023 GB, free: 12 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006222/0.8403, allocations: 80.64 kB / 1.023 GB, free: 11.92 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003068/0.8406, allocations: 228 kB / 1.023 GB, free: 11.66 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.096e-05/0.8406, allocations: 12.7 kB / 1.023 GB, free: 11.65 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.679e-05/0.8407, allocations: 20.38 kB / 1.023 GB, free: 11.63 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005524/0.8413, allocations: 324.1 kB / 1.024 GB, free: 11.28 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.989e-05/0.8413, allocations: 7.922 kB / 1.024 GB, free: 11.27 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.062e-05/0.8413, allocations: 8 kB / 1.024 GB, free: 11.26 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.125e-05/0.8414, allocations: 16.27 kB / 1.024 GB, free: 11.24 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000415/0.8418, allocations: 252.6 kB / 1.024 GB, free: 11 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001884/0.8437, allocations: 1.634 MB / 1.026 GB, free: 9.215 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007083/0.8444, allocations: 407.2 kB / 1.026 GB, free: 8.762 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001478/0.8446, allocations: 93.64 kB / 1.026 GB, free: 8.664 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001579/0.8447, allocations: 85.11 kB / 1.026 GB, free: 8.562 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.763e-05/0.8448, allocations: 38.55 kB / 1.026 GB, free: 8.516 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=13): time 1.724e-06/0.8448, allocations: 192 / 1.026 GB, free: 8.516 MB / 0.7794 GB Notification: Performance of matching and sorting (n=14): time 0.0007381/0.8455, allocations: 308.6 kB / 1.027 GB, free: 8.207 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.631e-05/0.8456, allocations: 88.98 kB / 1.027 GB, free: 8.102 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001803/0.8458, allocations: 169.2 kB / 1.027 GB, free: 7.93 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.679e-05/0.8459, allocations: 29.7 kB / 1.027 GB, free: 7.895 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001171/0.846, allocations: 151.8 kB / 1.027 GB, free: 7.742 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 5.017e-05/0.846, allocations: 55.38 kB / 1.027 GB, free: 7.688 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.462e-05/0.8461, allocations: 53.69 kB / 1.027 GB, free: 7.629 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001591/0.8463, allocations: 322.8 kB / 1.027 GB, free: 7.305 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001378/0.8464, allocations: 80.81 kB / 1.027 GB, free: 7.223 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002043/0.8467, allocations: 155.1 kB / 1.028 GB, free: 7.039 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003557/0.847, allocations: 245.2 kB / 1.028 GB, free: 6.766 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.372e-06/0.847, allocations: 0 / 1.028 GB, free: 6.766 MB / 0.7794 GB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0004491/0.8475, allocations: 277.4 kB / 1.028 GB, free: 6.488 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.703e-05/0.8475, allocations: 4 kB / 1.028 GB, free: 6.484 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.448e-06/0.8475, allocations: 4 kB / 1.028 GB, free: 6.48 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.253e-05/0.8476, allocations: 7.938 kB / 1.028 GB, free: 6.473 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002617/0.8478, allocations: 55.83 kB / 1.028 GB, free: 6.418 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.989e-06/0.8478, allocations: 7.938 kB / 1.028 GB, free: 6.41 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001466/0.848, allocations: 19.98 kB / 1.028 GB, free: 6.391 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.072e-05/0.848, allocations: 12 kB / 1.028 GB, free: 6.379 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0002101/0.8482, allocations: 172.1 kB / 1.028 GB, free: 6.207 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001769/0.8484, allocations: 150.9 kB / 1.029 GB, free: 6.023 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0003223/0.8488, allocations: 241.2 kB / 1.029 GB, free: 5.754 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.313e-06/0.8488, allocations: 0 / 1.029 GB, free: 5.754 MB / 0.7794 GB Notification: Performance of matching and sorting (n=25) (initialization_lambda0): time 0.000391/0.8492, allocations: 249.2 kB / 1.029 GB, free: 5.504 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.096e-05/0.8492, allocations: 8 kB / 1.029 GB, free: 5.496 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.047e-06/0.8492, allocations: 3.984 kB / 1.029 GB, free: 5.492 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.079e-06/0.8492, allocations: 4.344 kB / 1.029 GB, free: 5.488 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001866/0.8494, allocations: 63.84 kB / 1.029 GB, free: 5.426 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.44e-06/0.8494, allocations: 4 kB / 1.029 GB, free: 5.422 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001141/0.8495, allocations: 7.984 kB / 1.029 GB, free: 5.414 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.021e-05/0.8495, allocations: 12 kB / 1.029 GB, free: 5.402 MB / 0.7794 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.0001376/0.8497, allocations: 192.1 kB / 1.029 GB, free: 5.207 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.607e-05/0.8498, allocations: 15.81 kB / 1.029 GB, free: 5.191 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000395/0.8502, allocations: 216.1 kB / 1.029 GB, free: 4.973 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.456e-06/0.8502, allocations: 0 / 1.029 GB, free: 4.973 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.398e-06/0.8502, allocations: 0 / 1.029 GB, free: 4.973 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.851e-06/0.8502, allocations: 4 kB / 1.029 GB, free: 4.969 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001365/0.8516, allocations: 0.9612 MB / 1.03 GB, free: 3.895 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.949e-06/0.8516, allocations: 4 kB / 1.03 GB, free: 3.891 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001434/0.8517, allocations: 36.34 kB / 1.03 GB, free: 3.855 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.35e-06/0.8517, allocations: 8 kB / 1.03 GB, free: 3.848 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.769e-05/0.8518, allocations: 8 kB / 1.03 GB, free: 3.84 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.24e-06/0.8518, allocations: 7.938 kB / 1.03 GB, free: 3.832 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.452e-06/0.8518, allocations: 7.938 kB / 1.03 GB, free: 3.824 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000439/0.8522, allocations: 432.8 kB / 1.031 GB, free: 3.348 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000107/0.8523, allocations: 108.9 kB / 1.031 GB, free: 3.223 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.609e-05/0.8524, allocations: 11.91 kB / 1.031 GB, free: 3.211 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001887/0.8526, allocations: 11.98 kB / 1.031 GB, free: 3.199 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.747e-05/0.8526, allocations: 23.86 kB / 1.031 GB, free: 3.176 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.251e-05/0.8526, allocations: 8 kB / 1.031 GB, free: 3.168 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.000121/0.8528, allocations: 131.2 kB / 1.031 GB, free: 3.039 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.3e-07/0.8528, allocations: 0 / 1.031 GB, free: 3.039 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0005194/0.8533, allocations: 75.98 kB / 1.031 GB, free: 2.965 MB / 0.7794 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.0001648/0.8535, allocations: 107.7 kB / 1.031 GB, free: 2.848 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0005088/0.854, allocations: 304.5 kB / 1.032 GB, free: 2.551 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/0.854, allocations: 0 / 1.032 GB, free: 2.551 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001301/0.8541, allocations: 79.83 kB / 1.032 GB, free: 2.473 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005138/0.8547, allocations: 37.16 kB / 1.032 GB, free: 2.438 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009471/0.8556, allocations: 0.5449 MB / 1.032 GB, free: 1.828 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004455/0.8561, allocations: 0.7441 MB / 1.033 GB, free: 1.059 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 0.0002303/0.8563, allocations: 85.5 kB / 1.033 GB, free: 0.9766 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.529e-05/0.8564, allocations: 19.42 kB / 1.033 GB, free: 0.9609 MB / 0.7794 GB Notification: Performance of SimCode: time 2.314e-06/0.8564, allocations: 4 kB / 1.033 GB, free: 0.957 MB / 0.7794 GB Notification: Performance of Templates: time 0.005016/0.8614, allocations: 1.736 MB / 1.035 GB, free: 15.23 MB / 0.795 GB make -j1 -f Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor.makefile (rm -f Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor.pipe ; mkfifo Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor.pipe ; head -c 1048576 < Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor.pipe >> ../files/Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor.sim & ./Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Electrical_AC_ThreePhasesBalanced_Sensors_Examples_GeneralizedSensor.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches