Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestRandomNumbers.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/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/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(ModelicaTest.Math.Random.TestRandomNumbers,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestRandomNumbers") translateModel(ModelicaTest.Math.Random.TestRandomNumbers,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestRandomNumbers") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001332/0.001332, allocations: 107.5 kB / 16.41 MB, free: 6.488 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.001226/0.001226, allocations: 188.1 kB / 17.34 MB, free: 5.766 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.669/1.669, allocations: 205.1 MB / 223.2 MB, free: 12.1 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2367/0.2367, allocations: 43.53 MB / 314.1 MB, free: 440 kB / 254.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.001814/0.001814, allocations: 67.91 kB / 441.8 MB, free: 5.645 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1402/0.142, allocations: 57.79 MB / 499.6 MB, free: 11.79 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomNumbers): time 0.002124/0.1441, allocations: 0.5338 MB / 0.4884 GB, free: 11.25 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001403/0.1456, allocations: 0.5883 MB / 0.489 GB, free: 10.66 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.983e-05/0.1456, allocations: 0 / 0.489 GB, free: 10.66 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001263/0.1458, allocations: 11.92 kB / 0.489 GB, free: 10.65 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 7.484e-06/0.1458, allocations: 7.938 kB / 0.489 GB, free: 10.64 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001013/0.1469, allocations: 207.4 kB / 0.4892 GB, free: 10.44 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 8.525e-05/0.1469, allocations: 23.98 kB / 0.4892 GB, free: 10.41 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.149e-05/0.147, allocations: 7.984 kB / 0.4892 GB, free: 10.41 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.283e-05/0.147, allocations: 11.92 kB / 0.4892 GB, free: 10.39 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.031e-05/0.1471, allocations: 16.2 kB / 0.4893 GB, free: 10.38 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.23e-05/0.1471, allocations: 0 / 0.4893 GB, free: 10.38 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003459/0.1475, allocations: 167.8 kB / 0.4894 GB, free: 10.21 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 8.896e-05/0.1476, allocations: 52.17 kB / 0.4895 GB, free: 10.16 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 8.256e-05/0.1477, allocations: 55.61 kB / 0.4895 GB, free: 10.11 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003486/0.148, allocations: 211.4 kB / 0.4897 GB, free: 9.902 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.878e-06/0.148, allocations: 0 / 0.4897 GB, free: 9.902 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.148, allocations: 0 / 0.4897 GB, free: 9.902 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.694e-06/0.148, allocations: 0 / 0.4897 GB, free: 9.902 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 53 * Number of variables: 53 Notification: Performance of Generate backend data structure: time 0.0006071/0.1487, allocations: 0.4886 MB / 0.4902 GB, free: 9.367 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.614e-05/0.1487, allocations: 11.89 kB / 0.4902 GB, free: 9.355 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.31e-05/0.1488, allocations: 16.75 kB / 0.4902 GB, free: 9.34 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001182/0.1489, allocations: 176.2 kB / 0.4904 GB, free: 9.129 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.161e-05/0.1489, allocations: 12.38 kB / 0.4904 GB, free: 9.117 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.847e-05/0.149, allocations: 32.36 kB / 0.4904 GB, free: 9.086 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001969/0.1492, allocations: 136.3 kB / 0.4906 GB, free: 8.945 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.638e-06/0.1492, allocations: 0 / 0.4906 GB, free: 8.945 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.188e-05/0.1492, allocations: 0 / 0.4906 GB, free: 8.945 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.949e-06/0.1492, allocations: 0 / 0.4906 GB, free: 8.945 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.702e-05/0.1493, allocations: 96.41 kB / 0.4907 GB, free: 8.852 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002277/0.1495, allocations: 226.2 kB / 0.4909 GB, free: 8.582 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001579/0.1497, allocations: 163 kB / 0.491 GB, free: 8.414 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001305/0.1498, allocations: 157.7 kB / 0.4912 GB, free: 8.258 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.231e-05/0.1499, allocations: 0 / 0.4912 GB, free: 8.258 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002355/0.1501, allocations: 169.9 kB / 0.4913 GB, free: 8.082 MB / 382.1 MB Notification: Performance of pre-optimization done (n=54): time 1.232e-06/0.1501, allocations: 0 / 0.4913 GB, free: 8.082 MB / 382.1 MB Notification: Performance of matching and sorting (n=54): time 0.001153/0.1513, allocations: 0.7733 MB / 0.4921 GB, free: 7.301 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.286e-05/0.1514, allocations: 103.8 kB / 0.4922 GB, free: 7.188 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.99e-05/0.1515, allocations: 117.7 kB / 0.4923 GB, free: 7.062 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 7.31e-05/0.1515, allocations: 73.7 kB / 0.4924 GB, free: 6.984 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.523e-05/0.1516, allocations: 93.45 kB / 0.4925 GB, free: 6.887 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001318/0.1517, allocations: 138.5 kB / 0.4926 GB, free: 6.75 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000191/0.1519, allocations: 154.7 kB / 0.4927 GB, free: 6.59 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001426/0.1521, allocations: 346.8 kB / 0.4931 GB, free: 6.242 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002809/0.1524, allocations: 185.8 kB / 0.4933 GB, free: 6.062 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005118/0.1529, allocations: 0.537 MB / 0.4938 GB, free: 5.363 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009249/0.1538, allocations: 0.7788 MB / 0.4945 GB, free: 4.418 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.085e-06/0.1538, allocations: 7.938 kB / 0.4945 GB, free: 4.41 MB / 382.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.001116/0.155, allocations: 0.7507 MB / 0.4953 GB, free: 3.652 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.307e-05/0.155, allocations: 8 kB / 0.4953 GB, free: 3.645 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.09e-05/0.155, allocations: 16 kB / 0.4953 GB, free: 3.629 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.973e-05/0.155, allocations: 16 kB / 0.4953 GB, free: 3.613 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003576/0.1554, allocations: 112.4 kB / 0.4954 GB, free: 3.504 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.016e-05/0.1554, allocations: 31.84 kB / 0.4955 GB, free: 3.473 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002254/0.1557, allocations: 71.38 kB / 0.4955 GB, free: 3.402 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.008e-05/0.1557, allocations: 43.94 kB / 0.4956 GB, free: 3.359 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 54 * Number of states: 0 () * Number of discrete variables: 107 (state33[33],$PRE.state33[33],state33[32],$PRE.state33[32],state33[31],$PRE.state33[31],state33[30],$PRE.state33[30],state33[29],$PRE.state33[29],state33[28],$PRE.state33[28],state33[27],$PRE.state33[27],state33[26],$PRE.state33[26],state33[25],$PRE.state33[25],state33[24],$PRE.state33[24],state33[23],$PRE.state33[23],state33[22],$PRE.state33[22],state33[21],$PRE.state33[21],state33[20],$PRE.state33[20],state33[19],$PRE.state33[19],state33[18],$PRE.state33[18],state33[17],$PRE.state33[17],state33[16],$PRE.state33[16],state33[15],$PRE.state33[15],state33[14],$PRE.state33[14],state33[13],$PRE.state33[13],state33[12],$PRE.state33[12],state33[11],$PRE.state33[11],state33[10],$PRE.state33[10],state33[9],$PRE.state33[9],state33[8],$PRE.state33[8],state33[7],$PRE.state33[7],state33[6],$PRE.state33[6],state33[5],$PRE.state33[5],state33[4],$PRE.state33[4],state33[3],$PRE.state33[3],state33[2],$PRE.state33[2],state33[1],$PRE.state33[1],state4c[4],$PRE.state4c[4],state4c[3],$PRE.state4c[3],state4c[2],$PRE.state4c[2],state4c[1],$PRE.state4c[1],state4b[4],$PRE.state4b[4],state4b[3],$PRE.state4b[3],state4b[2],$PRE.state4b[2],state4b[1],$PRE.state4b[1],state4a[4],$PRE.state4a[4],state4a[3],$PRE.state4a[3],state4a[2],$PRE.state4a[2],state4a[1],$PRE.state4a[1],state2[2],$PRE.state2[2],state2[1],$PRE.state2[1],r33,$PRE.r33,r4c,$PRE.r4c,r4b,$PRE.r4b,r4a,$PRE.r4a,r2,$PRE.r2,result,$PRE.result,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (107): * Single equations (assignments): 107 * 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.0002482/0.156, allocations: 253.3 kB / 0.4958 GB, free: 3.102 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.888e-05/0.156, allocations: 11.75 kB / 0.4958 GB, free: 3.09 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.095e-05/0.156, allocations: 9.875 kB / 0.4958 GB, free: 3.074 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.324e-06/0.1561, allocations: 0 / 0.4958 GB, free: 3.074 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.11e-06/0.1561, allocations: 0 / 0.4958 GB, free: 3.074 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.745e-06/0.1561, allocations: 0 / 0.4958 GB, free: 3.074 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001697/0.1562, allocations: 189.8 kB / 0.496 GB, free: 2.836 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.162e-06/0.1563, allocations: 0 / 0.496 GB, free: 2.836 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.157e-06/0.1563, allocations: 7.938 kB / 0.496 GB, free: 2.828 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.723e-06/0.1563, allocations: 0 / 0.496 GB, free: 2.828 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.494e-06/0.1563, allocations: 4 kB / 0.496 GB, free: 2.824 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.122e-06/0.1563, allocations: 0 / 0.496 GB, free: 2.824 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/0.1563, allocations: 0 / 0.496 GB, free: 2.824 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008266/0.1571, allocations: 0.6148 MB / 0.4966 GB, free: 2.191 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.346e-05/0.1572, allocations: 104.7 kB / 0.4967 GB, free: 2.07 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.391e-05/0.1572, allocations: 4 kB / 0.4967 GB, free: 2.066 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.439e-05/0.1572, allocations: 0 / 0.4967 GB, free: 2.066 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.801e-05/0.1573, allocations: 4 kB / 0.4967 GB, free: 2.062 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.372e-06/0.1573, allocations: 4.031 kB / 0.4967 GB, free: 2.059 MB / 382.1 MB Notification: Performance of sorting global known variables: time 2.811e-05/0.1573, allocations: 75.28 kB / 0.4968 GB, free: 1.984 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1573, allocations: 4 kB / 0.4968 GB, free: 1.98 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0005527/0.1579, allocations: 91.98 kB / 0.4969 GB, free: 1.891 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 54 ($whenCondition1,result,r2,r4a,r4b,r4c,r33,state2[1],state2[2],state4a[1],state4a[2],state4a[3],state4a[4],state4b[1],state4b[2],state4b[3],state4b[4],state4c[1],state4c[2],state4c[3],state4c[4],state33[1],state33[2],state33[3],state33[4],state33[5],state33[6],state33[7],state33[8],state33[9],state33[10],state33[11],state33[12],state33[13],state33[14],state33[15],state33[16],state33[17],state33[18],state33[19],state33[20],state33[21],state33[22],state33[23],state33[24],state33[25],state33[26],state33[27],state33[28],state33[29],state33[30],state33[31],state33[32],state33[33]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0006501/0.1585, allocations: 264.9 kB / 0.4971 GB, free: 1.648 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0006743/0.1592, allocations: 473 kB / 0.4976 GB, free: 1.188 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.005e-06/0.1592, allocations: 0 / 0.4976 GB, free: 1.188 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001464/0.1594, allocations: 160.4 kB / 0.4978 GB, free: 1.031 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001598/0.1596, allocations: 11.69 kB / 0.4978 GB, free: 1.023 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000685/0.1602, allocations: 453.5 kB / 0.4982 GB, free: 0.5547 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003608/0.1606, allocations: 0.7334 MB / 0.4989 GB, free: 15.79 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001121/0.1607, allocations: 47.58 kB / 0.499 GB, free: 15.75 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.138e-05/0.1608, allocations: 23.38 kB / 0.499 GB, free: 15.72 MB / 398.1 MB Notification: Performance of SimCode: time 4.91e-07/0.1608, allocations: 0 / 0.499 GB, free: 15.72 MB / 398.1 MB Notification: Performance of Templates: time 0.007678/0.1685, allocations: 3.059 MB / 0.502 GB, free: 12.66 MB / 398.1 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestRandomNumbers.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestRandomNumbers.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestRandomNumbers.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestRandomNumbers.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestRandomNumbers.sim & ./ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestRandomNumbers -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestRandomNumbers.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestRandomNumbers_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Math/Random/TestRandomNumbers/TestRandomNumbers.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestRandomNumbers.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches