Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASM.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/PowerSystems 2.0.0-master/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-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(PowerSystems.Examples.AC3ph.Drives.ASM,tolerance=1e-05,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|asm.motor.tau_el|asm.rotor.w|power.i.1.|power.i.2.|power.i.3.|power.p_av.1.|power.p_av.2.|power.p_av.3.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASM") translateModel(PowerSystems.Examples.AC3ph.Drives.ASM,tolerance=1e-05,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|asm.motor.tau_el|asm.rotor.w|power.i.1.|power.i.2.|power.i.3.|power.p_av.1.|power.p_av.2.|power.p_av.3.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASM") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001126/0.001126, allocations: 111.4 kB / 17.68 MB, free: 5.496 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.001204/0.001204, allocations: 192 kB / 18.62 MB, free: 4.562 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.521/1.521, allocations: 222.9 MB / 242.3 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1904/0.1904, allocations: 38.04 MB / 330.5 MB, free: 8.777 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001261/0.001261, allocations: 55.31 kB / 400.2 MB, free: 33.37 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1339/0.1352, allocations: 58.07 MB / 458.3 MB, free: 7.324 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASM): time 0.009782/0.145, allocations: 7.423 MB / 465.7 MB, free: 15.86 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01046/0.1555, allocations: 5.231 MB / 471 MB, free: 10.61 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00102/0.1566, allocations: 35.81 kB / 471 MB, free: 10.58 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01117/0.1678, allocations: 5.729 MB / 476.7 MB, free: 4.84 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002744/0.1705, allocations: 0.6884 MB / 477.4 MB, free: 4.148 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001727/0.1723, allocations: 0.5178 MB / 477.9 MB, free: 3.633 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00434/0.1766, allocations: 2.635 MB / 480.6 MB, free: 0.9883 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002058/0.1787, allocations: 1.349 MB / 481.9 MB, free: 15.62 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001488/0.1802, allocations: 0.7826 MB / 482.7 MB, free: 14.83 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001298/0.1815, allocations: 0.919 MB / 483.6 MB, free: 13.91 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002083/0.1817, allocations: 144 kB / 483.8 MB, free: 13.77 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0014/0.1831, allocations: 0.6671 MB / 484.4 MB, free: 13.1 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006932/0.1839, allocations: 0.6508 MB / 485.1 MB, free: 12.45 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009089/0.1848, allocations: 0.7583 MB / 485.8 MB, free: 11.69 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00259/0.1874, allocations: 2.212 MB / 488.1 MB, free: 9.469 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.07e-06/0.1874, allocations: 0 / 488.1 MB, free: 9.469 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.494e-06/0.1874, allocations: 0 / 488.1 MB, free: 9.469 MB / 366.1 MB Notification: Performance of Transformations before backend: time 3.435e-05/0.1874, allocations: 4 kB / 488.1 MB, free: 9.465 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: 293 * Number of variables: 293 Notification: Performance of Generate backend data structure: time 0.004481/0.1919, allocations: 1.952 MB / 490 MB, free: 7.43 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.82e-05/0.192, allocations: 15.89 kB / 490 MB, free: 7.414 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007617/0.1928, allocations: 171.2 kB / 490.2 MB, free: 7.246 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002201/0.195, allocations: 1.046 MB / 491.2 MB, free: 6.156 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001921/0.1952, allocations: 179.1 kB / 491.4 MB, free: 5.961 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002191/0.1954, allocations: 112 kB / 491.5 MB, free: 5.852 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003174/0.1986, allocations: 1.859 MB / 493.4 MB, free: 3.918 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.939e-05/0.1987, allocations: 7.844 kB / 493.4 MB, free: 3.91 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001282/0.1988, allocations: 47.97 kB / 493.4 MB, free: 3.863 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002836/0.1991, allocations: 117.9 kB / 493.6 MB, free: 3.75 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002795/0.2019, allocations: 1.604 MB / 495.2 MB, free: 2.145 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008562/0.2105, allocations: 5.728 MB / 0.4891 GB, free: 12.25 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002341/0.2129, allocations: 1.191 MB / 0.4903 GB, free: 11.02 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001405/0.2143, allocations: 0.7386 MB / 0.491 GB, free: 10.27 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.39e-05/0.2144, allocations: 13 kB / 0.491 GB, free: 10.26 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001704/0.2161, allocations: 0.9845 MB / 0.492 GB, free: 9.254 MB / 382.1 MB Notification: Performance of pre-optimization done (n=116): time 3.797e-06/0.2161, allocations: 0 / 0.492 GB, free: 9.254 MB / 382.1 MB Notification: Performance of matching and sorting (n=119): time 0.009458/0.2256, allocations: 4.665 MB / 0.4966 GB, free: 4.457 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.777e-05/0.2257, allocations: 131.8 kB / 0.4967 GB, free: 4.305 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001035/0.2268, allocations: 0.7781 MB / 0.4974 GB, free: 3.516 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001/0.2269, allocations: 57.7 kB / 0.4975 GB, free: 3.453 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004666/0.2273, allocations: 0.5037 MB / 0.498 GB, free: 2.941 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003778/0.2277, allocations: 410.3 kB / 0.4984 GB, free: 2.535 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004378/0.2282, allocations: 242.8 kB / 0.4986 GB, free: 2.293 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002128/0.2284, allocations: 426.6 kB / 0.499 GB, free: 1.867 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001029/0.2294, allocations: 0.6865 MB / 0.4997 GB, free: 1.176 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001241/0.2307, allocations: 0.9686 MB / 0.5006 GB, free: 116 kB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.2551/0.4858, allocations: 1.679 MB / 0.5023 GB, free: 56.05 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.693e-05/0.4859, allocations: 2.938 kB / 0.5023 GB, free: 56.05 MB / 382.1 MB Notification: Performance of matching and sorting (n=177) (initialization): time 0.005267/0.4911, allocations: 2.324 MB / 0.5045 GB, free: 55.29 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.096e-05/0.4913, allocations: 59.19 kB / 0.5046 GB, free: 55.25 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.677e-05/0.4913, allocations: 7.875 kB / 0.5046 GB, free: 55.25 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001471/0.4928, allocations: 421.3 kB / 0.505 GB, free: 55.15 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009829/0.4938, allocations: 218.3 kB / 0.5052 GB, free: 55.12 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008663/0.5025, allocations: 6.243 MB / 0.5113 GB, free: 50.85 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001643/0.5041, allocations: 94.45 kB / 0.5114 GB, free: 50.83 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000499/0.5046, allocations: 82.52 kB / 0.5115 GB, free: 50.82 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 33 * Number of states: 0 () * Number of discrete variables: 29 (system.initime,inverter.modulator.t0[3],$PRE.inverter.modulator.t0[3],inverter.modulator.t0[2],$PRE.inverter.modulator.t0[2],inverter.modulator.t0[1],$PRE.inverter.modulator.t0[1],inverter.modulator.sigdel_t[3],$PRE.inverter.modulator.sigdel_t[3],inverter.modulator.sigdel_t[2],$PRE.inverter.modulator.sigdel_t[2],inverter.modulator.sigdel_t[1],$PRE.inverter.modulator.sigdel_t[1],inverter.modulator.gates[6],$PRE.inverter.modulator.gates[6],inverter.modulator.gates[5],$PRE.inverter.modulator.gates[5],inverter.modulator.gates[4],$PRE.inverter.modulator.gates[4],inverter.modulator.gates[3],$PRE.inverter.modulator.gates[3],inverter.modulator.gates[2],$PRE.inverter.modulator.gates[2],inverter.modulator.gates[1],$PRE.inverter.modulator.gates[1],$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (121): * Single equations (assignments): 115 * Array equations: 3 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(4,21)} Notification: Performance of prepare postOptimizeDAE: time 0.001665/0.5063, allocations: 458.2 kB / 0.5119 GB, free: 50.56 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006712/0.507, allocations: 106.2 kB / 0.512 GB, free: 50.56 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005348/0.5124, allocations: 1.967 MB / 0.5139 GB, free: 49.72 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.14e-05/0.5124, allocations: 24.45 kB / 0.514 GB, free: 49.72 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.698e-06/0.5124, allocations: 2.984 kB / 0.514 GB, free: 49.72 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.91e-05/0.5125, allocations: 8.062 kB / 0.514 GB, free: 49.72 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007048/0.5195, allocations: 3.416 MB / 0.5173 GB, free: 48.27 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.506e-06/0.5196, allocations: 1.25 kB / 0.5173 GB, free: 48.27 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009989/0.5206, allocations: 174.1 kB / 0.5175 GB, free: 48.25 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005359/0.5211, allocations: 162.1 kB / 0.5176 GB, free: 48.2 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001139/0.5212, allocations: 48.2 kB / 0.5177 GB, free: 48.18 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003254/0.5245, allocations: 4.798 MB / 0.5224 GB, free: 43.74 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.246e-06/0.5245, allocations: 2.719 kB / 0.5224 GB, free: 43.74 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004933/0.5295, allocations: 2.885 MB / 0.5252 GB, free: 42.55 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007389/0.5302, allocations: 309.3 kB / 0.5255 GB, free: 42.35 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002354/0.5305, allocations: 86.8 kB / 0.5256 GB, free: 42.31 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008521/0.5313, allocations: 108.7 kB / 0.5257 GB, free: 42.3 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002485/0.5316, allocations: 85.5 kB / 0.5258 GB, free: 42.28 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001008/0.5317, allocations: 40.22 kB / 0.5258 GB, free: 42.27 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0008698/0.5326, allocations: 0.5369 MB / 0.5263 GB, free: 42.04 MB / 382.1 MB Notification: Performance of sort global known variables: time 3e-07/0.5326, allocations: 1.312 kB / 0.5263 GB, free: 42.04 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001458/0.534, allocations: 359.4 kB / 0.5267 GB, free: 42.01 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 13 (power.pav[1],power.pav[2],power.pav[3],asm.rotor.phi,asm.rotor.w,asm.motor.i[3],asm.motor.psi_s[1],asm.motor.psi_s[2],asm.motor.psi_rd[1],asm.motor.psi_rd[2],asm.motor.psi_rq[1],asm.motor.psi_rq[2],tabLoad.s) * Number of discrete variables: 17 ($whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,inverter.modulator.gates[1],inverter.modulator.gates[2],inverter.modulator.gates[3],inverter.modulator.gates[4],inverter.modulator.gates[5],inverter.modulator.gates[6],inverter.modulator.sigdel_t[1],inverter.modulator.sigdel_t[2],inverter.modulator.sigdel_t[3],inverter.modulator.t0[1],inverter.modulator.t0[2],inverter.modulator.t0[3],system.initime) * Number of discrete states: 12 (inverter.modulator.t0[3],inverter.modulator.sigdel_t[3],inverter.modulator.gates[5],inverter.modulator.gates[6],inverter.modulator.t0[2],inverter.modulator.sigdel_t[2],inverter.modulator.gates[3],inverter.modulator.gates[4],inverter.modulator.t0[1],inverter.modulator.sigdel_t[1],inverter.modulator.gates[1],inverter.modulator.gates[2]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (98): * Single equations (assignments): 79 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 13 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,3,100.0%), (2,1,100.0%), (2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001113/0.5352, allocations: 0.5057 MB / 0.5272 GB, free: 41.82 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003581/0.5388, allocations: 2.33 MB / 0.5294 GB, free: 40.53 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.909e-06/0.5388, allocations: 448 / 0.5294 GB, free: 40.53 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001845/0.5406, allocations: 1.216 MB / 0.5306 GB, free: 39.77 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001057/0.5417, allocations: 248.5 kB / 0.5309 GB, free: 39.64 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004521/0.5462, allocations: 3.398 MB / 0.5342 GB, free: 36.56 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006112/0.5469, allocations: 1.282 MB / 0.5354 GB, free: 35.24 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0006768/0.5475, allocations: 296.5 kB / 0.5357 GB, free: 34.95 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002616/0.5478, allocations: 91.41 kB / 0.5358 GB, free: 34.86 MB / 382.1 MB Notification: Performance of SimCode: time 9.71e-07/0.5478, allocations: 0 / 0.5358 GB, free: 34.86 MB / 382.1 MB Notification: Performance of Templates: time 0.0254/0.5732, allocations: 19.17 MB / 0.5545 GB, free: 15.87 MB / 382.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASM.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASM.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASM.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASM.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASM.sim & ./PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASM -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASM.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASM_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC3ph.Drives.ASM.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASM.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches