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.001455/0.001455, allocations: 103.7 kB / 16.62 MB, free: 6.812 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.001716/0.001716, allocations: 193.8 kB / 17.55 MB, free: 5.953 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.407/1.407, allocations: 222.9 MB / 241.2 MB, free: 15.4 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1729/0.1729, allocations: 38.04 MB / 329.4 MB, free: 8.945 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002267/0.002267, allocations: 64.89 kB / 398.3 MB, free: 34.41 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1348/0.1371, allocations: 58.06 MB / 456.4 MB, free: 8.414 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASM): time 0.01086/0.148, allocations: 8.659 MB / 465 MB, free: 15.71 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01024/0.1583, allocations: 5.621 MB / 470.6 MB, free: 10.07 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001035/0.1594, allocations: 51.69 kB / 470.7 MB, free: 10.02 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01071/0.1701, allocations: 5.832 MB / 476.5 MB, free: 4.176 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002354/0.1725, allocations: 0.6499 MB / 477.2 MB, free: 3.523 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001736/0.1742, allocations: 486.1 kB / 477.6 MB, free: 3.051 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004037/0.1783, allocations: 2.69 MB / 480.3 MB, free: 364 kB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002327/0.1806, allocations: 1.384 MB / 481.7 MB, free: 14.95 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001611/0.1822, allocations: 0.7786 MB / 482.5 MB, free: 14.17 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001579/0.1838, allocations: 0.9892 MB / 483.5 MB, free: 13.18 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004675/0.1843, allocations: 144 kB / 483.6 MB, free: 13.04 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001854/0.1862, allocations: 0.706 MB / 484.3 MB, free: 12.33 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001067/0.1872, allocations: 0.6547 MB / 485 MB, free: 11.67 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001439/0.1887, allocations: 0.7622 MB / 485.7 MB, free: 10.91 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00237/0.1911, allocations: 2.181 MB / 487.9 MB, free: 8.719 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.841e-06/0.1911, allocations: 0 / 487.9 MB, free: 8.719 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.1911, allocations: 4 kB / 487.9 MB, free: 8.715 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.791e-05/0.1911, allocations: 4 kB / 487.9 MB, free: 8.711 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.00399/0.1951, allocations: 1.948 MB / 489.9 MB, free: 6.68 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.3e-05/0.1952, allocations: 11.89 kB / 489.9 MB, free: 6.668 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006673/0.1959, allocations: 179.2 kB / 490.1 MB, free: 6.492 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001745/0.1976, allocations: 1.007 MB / 491.1 MB, free: 5.445 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001765/0.1978, allocations: 187.1 kB / 491.3 MB, free: 5.242 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000221/0.198, allocations: 115.9 kB / 491.4 MB, free: 5.129 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003207/0.2013, allocations: 1.859 MB / 493.2 MB, free: 3.195 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.281e-05/0.2013, allocations: 7.938 kB / 493.2 MB, free: 3.188 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001286/0.2014, allocations: 39.98 kB / 493.3 MB, free: 3.148 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003002/0.2017, allocations: 129.8 kB / 493.4 MB, free: 3.023 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002858/0.2046, allocations: 1.604 MB / 495 MB, free: 1.418 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0106/0.2152, allocations: 5.759 MB / 0.489 GB, free: 11.49 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003747/0.219, allocations: 1.195 MB / 0.4902 GB, free: 10.25 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002262/0.2213, allocations: 0.7386 MB / 0.4909 GB, free: 9.504 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001016/0.2214, allocations: 13.14 kB / 0.4909 GB, free: 9.492 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002746/0.2242, allocations: 0.9806 MB / 0.4919 GB, free: 8.492 MB / 382.1 MB Notification: Performance of pre-optimization done (n=116): time 4.879e-06/0.2242, allocations: 4 kB / 0.4919 GB, free: 8.488 MB / 382.1 MB Notification: Performance of matching and sorting (n=119): time 0.01564/0.2399, allocations: 4.665 MB / 0.4965 GB, free: 3.684 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000158/0.2401, allocations: 123.8 kB / 0.4966 GB, free: 3.539 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00175/0.2418, allocations: 0.782 MB / 0.4973 GB, free: 2.746 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001787/0.242, allocations: 57.69 kB / 0.4974 GB, free: 2.684 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006752/0.2427, allocations: 0.5114 MB / 0.4979 GB, free: 2.164 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005992/0.2433, allocations: 406.3 kB / 0.4983 GB, free: 1.762 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006571/0.244, allocations: 246.8 kB / 0.4985 GB, free: 1.516 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0003185/0.2444, allocations: 422.7 kB / 0.4989 GB, free: 1.094 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001868/0.2462, allocations: 0.6904 MB / 0.4996 GB, free: 408 kB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2222/0.4685, allocations: 0.9659 MB / 0.5005 GB, free: 56.61 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00233/0.4709, allocations: 1.678 MB / 0.5022 GB, free: 56.26 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.222e-06/0.4709, allocations: 3 kB / 0.5022 GB, free: 56.26 MB / 382.1 MB Notification: Performance of matching and sorting (n=177) (initialization): time 0.00404/0.4749, allocations: 2.321 MB / 0.5044 GB, free: 55.35 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.184e-05/0.475, allocations: 62.11 kB / 0.5045 GB, free: 55.31 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.806e-05/0.4751, allocations: 8.594 kB / 0.5045 GB, free: 55.31 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001345/0.4764, allocations: 420.8 kB / 0.5049 GB, free: 55.21 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008316/0.4773, allocations: 215.5 kB / 0.5051 GB, free: 55.19 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00752/0.4848, allocations: 6.238 MB / 0.5112 GB, free: 50.91 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001175/0.486, allocations: 100.7 kB / 0.5113 GB, free: 50.89 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001954/0.4862, allocations: 91.45 kB / 0.5114 GB, free: 50.88 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.0007922/0.487, allocations: 447.4 kB / 0.5118 GB, free: 50.63 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002295/0.4872, allocations: 108.7 kB / 0.5119 GB, free: 50.63 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004172/0.4914, allocations: 1.965 MB / 0.5138 GB, free: 49.79 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.901e-05/0.4915, allocations: 29.38 kB / 0.5139 GB, free: 49.79 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.244e-06/0.4915, allocations: 1.797 kB / 0.5139 GB, free: 49.79 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.467e-05/0.4915, allocations: 6.391 kB / 0.5139 GB, free: 49.79 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006274/0.4978, allocations: 3.423 MB / 0.5172 GB, free: 48.33 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.424e-06/0.4978, allocations: 1.375 kB / 0.5172 GB, free: 48.33 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009317/0.4988, allocations: 170.2 kB / 0.5174 GB, free: 48.32 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005314/0.4993, allocations: 168.5 kB / 0.5175 GB, free: 48.26 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001163/0.4994, allocations: 40.95 kB / 0.5176 GB, free: 48.24 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003138/0.5026, allocations: 4.809 MB / 0.5223 GB, free: 43.79 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.495e-06/0.5026, allocations: 1.469 kB / 0.5223 GB, free: 43.79 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004943/0.5075, allocations: 2.885 MB / 0.5251 GB, free: 42.58 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005517/0.5081, allocations: 307.2 kB / 0.5254 GB, free: 42.38 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002488/0.5084, allocations: 85.95 kB / 0.5255 GB, free: 42.34 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000895/0.5093, allocations: 111.5 kB / 0.5256 GB, free: 42.33 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002385/0.5095, allocations: 82.23 kB / 0.5257 GB, free: 42.31 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.563e-05/0.5096, allocations: 39.89 kB / 0.5257 GB, free: 42.3 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0006622/0.5103, allocations: 0.5394 MB / 0.5262 GB, free: 42.06 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.5103, allocations: 0 / 0.5262 GB, free: 42.06 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001311/0.5116, allocations: 358.8 kB / 0.5266 GB, free: 42.02 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.001092/0.5127, allocations: 0.5182 MB / 0.5271 GB, free: 41.81 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.004799/0.5176, allocations: 2.974 MB / 0.53 GB, free: 40.5 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.859e-06/0.5176, allocations: 3.906 kB / 0.53 GB, free: 40.5 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001881/0.5195, allocations: 1.223 MB / 0.5312 GB, free: 39.31 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001182/0.5207, allocations: 237.2 kB / 0.5314 GB, free: 39.08 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00494/0.5256, allocations: 3.904 MB / 0.5352 GB, free: 35.2 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006058/0.5263, allocations: 1.283 MB / 0.5365 GB, free: 33.88 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.000833/0.5271, allocations: 297.8 kB / 0.5367 GB, free: 33.59 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002706/0.5274, allocations: 87.41 kB / 0.5368 GB, free: 33.5 MB / 382.1 MB Notification: Performance of SimCode: time 8.72e-07/0.5274, allocations: 0 / 0.5368 GB, free: 33.5 MB / 382.1 MB Notification: Performance of Templates: time 0.028/0.5554, allocations: 18.93 MB / 0.5553 GB, free: 14.76 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 -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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC3ph.Drives.ASM.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASM.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches