Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics,tolerance=1e-06,outputFormat="mat",numberOfIntervals=12000,variableFilter="time|dcpm.ia|dcpm.tauElectrical|dcee.ia|dcee.tauElectrical|dcse.ia|dcse.tauElectrical|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w|loadInertia3.phi|loadInertia3.w",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics,tolerance=1e-06,outputFormat="mat",numberOfIntervals=12000,variableFilter="time|dcpm.ia|dcpm.tauElectrical|dcee.ia|dcee.tauElectrical|dcse.ia|dcse.tauElectrical|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w|loadInertia3.phi|loadInertia3.w",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001487/0.001487, allocations: 117.6 kB / 17.79 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00198/0.00198, allocations: 199.9 kB / 18.73 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.444/1.444, allocations: 227.4 MB / 246.9 MB, free: 10.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001074/0.001074, allocations: 63.91 kB / 358.7 MB, free: 12.89 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2665/0.2676, allocations: 50.53 MB / 409.3 MB, free: 1.562 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics): time 0.02098/0.2887, allocations: 18.86 MB / 428.1 MB, free: 14.62 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01179/0.3005, allocations: 5.715 MB / 433.8 MB, free: 8.891 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003597/0.3041, allocations: 71.81 kB / 433.9 MB, free: 8.82 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004663/0.3088, allocations: 1.355 MB / 435.2 MB, free: 7.457 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005848/0.3147, allocations: 1.307 MB / 436.6 MB, free: 6.141 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002675/0.3174, allocations: 0.6671 MB / 437.2 MB, free: 5.473 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.006542/0.324, allocations: 3.931 MB / 441.2 MB, free: 1.527 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003089/0.3271, allocations: 1.592 MB / 442.7 MB, free: 15.88 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002807/0.3299, allocations: 1.475 MB / 444.2 MB, free: 14.4 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001963/0.3319, allocations: 1.587 MB / 445.8 MB, free: 12.8 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004741/0.3324, allocations: 372 kB / 446.2 MB, free: 12.44 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000664/0.333, allocations: 411.9 kB / 446.6 MB, free: 12.04 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005479/0.3336, allocations: 0.7278 MB / 447.3 MB, free: 11.31 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001867/0.3355, allocations: 1.765 MB / 449.1 MB, free: 9.535 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004884/0.3404, allocations: 4.609 MB / 453.7 MB, free: 4.91 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.911e-06/0.3404, allocations: 0 / 453.7 MB, free: 4.91 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.793e-06/0.3404, allocations: 0 / 453.7 MB, free: 4.91 MB / 366.1 MB Notification: Performance of Transformations before backend: time 8.655e-05/0.3405, allocations: 0 / 453.7 MB, free: 4.91 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 666 * Number of variables: 666 Notification: Performance of Generate backend data structure: time 0.00586/0.3464, allocations: 3.332 MB / 457 MB, free: 1.512 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.818e-05/0.3464, allocations: 15.97 kB / 457 MB, free: 1.496 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00142/0.3478, allocations: 483.7 kB / 457.5 MB, free: 1.02 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002956/0.3508, allocations: 1.735 MB / 459.2 MB, free: 15.23 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001239/0.3509, allocations: 193.2 kB / 459.4 MB, free: 15.04 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003055/0.3513, allocations: 263.8 kB / 459.7 MB, free: 14.78 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003816/0.3551, allocations: 2.474 MB / 462.1 MB, free: 12.18 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.033e-05/0.3552, allocations: 7.906 kB / 462.2 MB, free: 12.17 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001808/0.3553, allocations: 108 kB / 462.3 MB, free: 12.06 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.233e-05/0.3554, allocations: 64 kB / 462.3 MB, free: 12 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002966/0.3584, allocations: 1.642 MB / 464 MB, free: 10.34 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0136/0.372, allocations: 10.55 MB / 474.5 MB, free: 15.23 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00125/0.3733, allocations: 1.05 MB / 475.6 MB, free: 14.08 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00056/0.3738, allocations: 367.4 kB / 475.9 MB, free: 13.72 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.132e-05/0.3739, allocations: 12.66 kB / 475.9 MB, free: 13.71 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.111e-05/0.3739, allocations: 43.22 kB / 476 MB, free: 13.66 MB / 398.1 MB Notification: Performance of pre-optimization done (n=81): time 2.615e-06/0.374, allocations: 0 / 476 MB, free: 13.66 MB / 398.1 MB Notification: Performance of matching and sorting (n=90): time 0.005183/0.3791, allocations: 2.921 MB / 478.9 MB, free: 10.6 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001002/0.3793, allocations: 167.2 kB / 479.1 MB, free: 10.4 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003057/0.3823, allocations: 2.202 MB / 481.3 MB, free: 8.18 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 5.803e-05/0.3824, allocations: 45.64 kB / 481.3 MB, free: 8.129 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001082/0.3835, allocations: 1.47 MB / 482.8 MB, free: 6.637 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002428/0.3837, allocations: 331.4 kB / 483.1 MB, free: 6.309 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003949/0.3841, allocations: 331.1 kB / 483.4 MB, free: 5.98 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001034/0.3842, allocations: 301.1 kB / 483.7 MB, free: 5.684 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006517/0.3849, allocations: 376.7 kB / 484.1 MB, free: 5.312 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001292/0.3862, allocations: 1.231 MB / 485.3 MB, free: 3.656 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00193/0.3881, allocations: 1.722 MB / 487 MB, free: 1.516 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.242e-05/0.3882, allocations: 12 kB / 487.1 MB, free: 1.504 MB / 398.1 MB Notification: Performance of matching and sorting (n=231) (initialization): time 0.00307/0.3912, allocations: 1.846 MB / 488.9 MB, free: 15.64 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.328e-05/0.3913, allocations: 16 kB / 488.9 MB, free: 15.62 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.464e-05/0.3913, allocations: 32 kB / 489 MB, free: 15.59 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005136/0.3919, allocations: 156.1 kB / 489.1 MB, free: 15.43 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001104/0.393, allocations: 411.2 kB / 489.5 MB, free: 15.02 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00408/0.3971, allocations: 5.754 MB / 495.3 MB, free: 8.707 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001669/0.3987, allocations: 87.95 kB / 495.3 MB, free: 8.621 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001122/0.3989, allocations: 99.98 kB / 495.4 MB, free: 8.523 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001432/0.4003, allocations: 0.7226 MB / 496.2 MB, free: 7.797 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.00138/0.4017, allocations: 1.231 MB / 497.4 MB, free: 6.148 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001973/0.4037, allocations: 1.703 MB / 499.1 MB, free: 4.031 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.294e-05/0.4037, allocations: 12 kB / 499.1 MB, free: 4.02 MB / 414.1 MB Notification: Performance of matching and sorting (n=231) (initialization_lambda0): time 0.002835/0.4066, allocations: 1.819 MB / 0.4892 GB, free: 2.18 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.231e-05/0.4066, allocations: 16.12 kB / 0.4892 GB, free: 2.164 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.33e-05/0.4066, allocations: 36 kB / 0.4892 GB, free: 2.129 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004311/0.4071, allocations: 151.4 kB / 0.4894 GB, free: 1.969 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001073/0.4081, allocations: 407.3 kB / 0.4898 GB, free: 1.57 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003777/0.4119, allocations: 5.765 MB / 0.4954 GB, free: 11.25 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00162/0.4136, allocations: 87.88 kB / 0.4955 GB, free: 11.16 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001113/0.4137, allocations: 92 kB / 0.4956 GB, free: 11.07 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 134 * 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 (223): * Single equations (assignments): 219 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(1,1,100.0%), (1,5,100.0%), (1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003574/0.4141, allocations: 323.7 kB / 0.4959 GB, free: 10.75 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002911/0.4144, allocations: 233.2 kB / 0.4961 GB, free: 10.52 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001697/0.4161, allocations: 0.9106 MB / 0.497 GB, free: 9.582 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.404e-06/0.4161, allocations: 8 kB / 0.497 GB, free: 9.574 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.636e-06/0.4161, allocations: 0 / 0.497 GB, free: 9.574 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.448e-06/0.4161, allocations: 11.92 kB / 0.497 GB, free: 9.562 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00449/0.4206, allocations: 3.117 MB / 0.5001 GB, free: 6.297 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.535e-06/0.4206, allocations: 4 kB / 0.5001 GB, free: 6.293 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000558/0.4212, allocations: 155.8 kB / 0.5002 GB, free: 6.141 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003864/0.4216, allocations: 127.9 kB / 0.5003 GB, free: 6.004 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.42e-05/0.4216, allocations: 24 kB / 0.5004 GB, free: 5.98 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003766/0.4254, allocations: 5.722 MB / 0.5059 GB, free: 15.7 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.992e-06/0.4254, allocations: 4 kB / 0.5059 GB, free: 15.7 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00227/0.4277, allocations: 1.488 MB / 0.5074 GB, free: 14.11 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007447/0.4285, allocations: 386.2 kB / 0.5078 GB, free: 13.71 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002102/0.4287, allocations: 20.12 kB / 0.5078 GB, free: 13.69 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009178/0.4296, allocations: 67.89 kB / 0.5079 GB, free: 13.62 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001286/0.4297, allocations: 80.3 kB / 0.5079 GB, free: 13.54 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.557e-05/0.4298, allocations: 31.98 kB / 0.508 GB, free: 13.51 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002112/0.4319, allocations: 1.454 MB / 0.5094 GB, free: 12.05 MB / 446.1 MB Notification: Performance of sort global known variables: time 3.91e-07/0.4319, allocations: 0 / 0.5094 GB, free: 12.05 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003068/0.435, allocations: 0.9414 MB / 0.5103 GB, free: 11.11 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 25 * Number of states: 6 (dcpm.inertiaRotor.w,loadInertia1.phi,dcee.inertiaRotor.w,loadInertia2.phi,dcse.inertiaRotor.w,loadInertia3.phi) * 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 (82): * Single equations (assignments): 78 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0002686/0.4353, allocations: 150.6 kB / 0.5104 GB, free: 10.95 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.003993/0.4393, allocations: 2.701 MB / 0.5131 GB, free: 8.16 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 7.063e-06/0.4393, allocations: 4.062 kB / 0.5131 GB, free: 8.156 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000981/0.4403, allocations: 0.8154 MB / 0.5139 GB, free: 7.289 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002468/0.4428, allocations: 0.5993 MB / 0.5145 GB, free: 6.703 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006342/0.4491, allocations: 4.148 MB / 0.5185 GB, free: 2.453 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001173/0.4503, allocations: 1.571 MB / 0.5201 GB, free: 0.8477 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001234/0.4516, allocations: 327.2 kB / 0.5204 GB, free: 0.5234 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002782/0.4519, allocations: 143.4 kB / 0.5205 GB, free: 392 kB / 446.1 MB Notification: Performance of SimCode: time 9.31e-07/0.4519, allocations: 0 / 0.5205 GB, free: 392 kB / 446.1 MB Notification: Performance of Templates: time 0.2541/0.706, allocations: 26.28 MB / 0.5462 GB, free: 119.8 MB / 462.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics.makefile (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics.sim & ./Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DC_CompareCharacteristics/DC_CompareCharacteristics.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches