Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.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) 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(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,variableFilter="time|loadInertiaE.phi|loadInertiaE.w|loadInertiaM.phi|loadInertiaM.w|smrE.is.1.|smrE.is.2.|smrE.idq_rr.1.|smrE.idq_rr.2.|smrE.idq_sr.1.|smrE.idq_sr.2.|smrM.is.1.|smrM.is.2.|smrM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smrM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smrM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smrM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|vfController.x",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,variableFilter="time|loadInertiaE.phi|loadInertiaE.w|loadInertiaM.phi|loadInertiaM.w|smrE.is.1.|smrE.is.2.|smrE.idq_rr.1.|smrE.idq_rr.2.|smrE.idq_sr.1.|smrE.idq_sr.2.|smrM.is.1.|smrM.is.2.|smrM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smrM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smrM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smrM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|vfController.x",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001342/0.001342, allocations: 104.2 kB / 17.59 MB, free: 5.559 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.001299/0.001299, allocations: 191.4 kB / 18.51 MB, free: 4.641 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.332/1.332, allocations: 222.9 MB / 242.2 MB, free: 15.21 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009881/0.0009888, allocations: 59.19 kB / 301.3 MB, free: 5.855 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09904/0.1, allocations: 49.45 MB / 350.8 MB, free: 4.406 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter): time 0.02158/0.1217, allocations: 20.28 MB / 371 MB, free: 24 kB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1982/0.3199, allocations: 5.901 MB / 376.9 MB, free: 10.91 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004826/0.3248, allocations: 131.2 kB / 377.1 MB, free: 10.91 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005293/0.3301, allocations: 1.356 MB / 378.4 MB, free: 10.5 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007898/0.3381, allocations: 1.921 MB / 380.3 MB, free: 9.609 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004407/0.3425, allocations: 1.226 MB / 381.6 MB, free: 8.949 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.009818/0.3524, allocations: 6.073 MB / 387.6 MB, free: 6.035 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008575/0.361, allocations: 5.44 MB / 393.1 MB, free: 3.809 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005928/0.367, allocations: 2.822 MB / 395.9 MB, free: 2.465 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006101/0.3731, allocations: 3.388 MB / 399.3 MB, free: 0.5859 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002553/0.3757, allocations: 0.781 MB / 400.1 MB, free: 0.5859 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004668/0.3804, allocations: 1.077 MB / 401.1 MB, free: 28 kB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003017/0.3834, allocations: 1.944 MB / 403.1 MB, free: 14.1 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007203/0.3907, allocations: 3.354 MB / 406.4 MB, free: 10.75 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01291/0.4036, allocations: 10.22 MB / 416.7 MB, free: 0.7227 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.694e-06/0.4037, allocations: 0 / 416.7 MB, free: 0.7227 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.417e-06/0.4037, allocations: 0 / 416.7 MB, free: 0.7227 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0003638/0.404, allocations: 0 / 416.7 MB, free: 0.7227 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1347 * Number of variables: 1347 Notification: Performance of Generate backend data structure: time 0.01875/0.4228, allocations: 6.582 MB / 423.2 MB, free: 10.09 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.728e-05/0.4229, allocations: 8.031 kB / 423.3 MB, free: 10.08 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005362/0.4282, allocations: 1.007 MB / 424.3 MB, free: 9.066 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007265/0.4355, allocations: 3.469 MB / 427.7 MB, free: 5.57 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004421/0.436, allocations: 393.3 kB / 428.1 MB, free: 5.188 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001815/0.4378, allocations: 0.5106 MB / 428.6 MB, free: 4.68 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01626/0.4541, allocations: 6.775 MB / 435.4 MB, free: 13.84 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000152/0.4543, allocations: 7.906 kB / 435.4 MB, free: 13.84 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008081/0.4551, allocations: 215.3 kB / 435.6 MB, free: 13.63 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000248/0.4554, allocations: 246.2 kB / 435.9 MB, free: 13.39 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0131/0.4685, allocations: 5.755 MB / 441.6 MB, free: 7.621 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03748/0.506, allocations: 21.08 MB / 462.7 MB, free: 2.215 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008442/0.5145, allocations: 8.534 MB / 471.2 MB, free: 8.727 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003667/0.5182, allocations: 2.128 MB / 473.4 MB, free: 6.594 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01105/0.5293, allocations: 5.939 MB / 479.3 MB, free: 0.5859 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.014e-05/0.5294, allocations: 56.56 kB / 479.3 MB, free: 0.5234 MB / 382.1 MB Notification: Performance of pre-optimization done (n=205): time 5.651e-06/0.5294, allocations: 0 / 479.3 MB, free: 0.5234 MB / 382.1 MB Notification: Performance of matching and sorting (n=222): time 0.02146/0.5509, allocations: 10.37 MB / 489.7 MB, free: 5.914 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.833e-05/0.5509, allocations: 77.34 kB / 489.8 MB, free: 5.824 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004147/0.5551, allocations: 2.908 MB / 492.7 MB, free: 2.906 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003597/0.5555, allocations: 61.7 kB / 492.8 MB, free: 2.84 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001537/0.557, allocations: 2.352 MB / 495.1 MB, free: 484 kB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007822/0.5578, allocations: 0.7631 MB / 495.9 MB, free: 15.71 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007913/0.5586, allocations: 0.5177 MB / 496.4 MB, free: 15.19 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 8.697e-05/0.5587, allocations: 305.1 kB / 496.7 MB, free: 14.89 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002082/0.5608, allocations: 1.271 MB / 498 MB, free: 13.61 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002553/0.5634, allocations: 2.175 MB / 0.4884 GB, free: 11.04 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004937/0.5683, allocations: 3.664 MB / 0.492 GB, free: 6.977 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.849e-05/0.5684, allocations: 12 kB / 0.492 GB, free: 6.965 MB / 414.1 MB Notification: Performance of matching and sorting (n=373) (initialization): time 0.007511/0.5759, allocations: 4.442 MB / 0.4963 GB, free: 2.453 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.438e-05/0.5759, allocations: 16 kB / 0.4964 GB, free: 2.438 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.137e-05/0.576, allocations: 28 kB / 0.4964 GB, free: 2.41 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001205/0.5772, allocations: 0.5251 MB / 0.4969 GB, free: 1.867 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00276/0.58, allocations: 0.6864 MB / 0.4976 GB, free: 1.18 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008888/0.5889, allocations: 10.19 MB / 0.5075 GB, free: 6.285 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002835/0.5918, allocations: 171.8 kB / 0.5077 GB, free: 6.117 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004425/0.5922, allocations: 128 kB / 0.5078 GB, free: 5.992 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 129 * 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 (348): * Single equations (assignments): 341 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 5 systems {(3,11,100.0%), (1,3,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 prepare postOptimizeDAE: time 0.003122/0.5954, allocations: 1.524 MB / 0.5093 GB, free: 4.457 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008534/0.5962, allocations: 316.2 kB / 0.5096 GB, free: 4.145 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006857/0.6031, allocations: 3.883 MB / 0.5134 GB, free: 172 kB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.162e-05/0.6031, allocations: 24 kB / 0.5134 GB, free: 148 kB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.848e-05/0.6032, allocations: 8 kB / 0.5134 GB, free: 140 kB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.959e-05/0.6032, allocations: 15.89 kB / 0.5134 GB, free: 124 kB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0152/0.6184, allocations: 8.485 MB / 0.5217 GB, free: 7.492 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.516e-05/0.6185, allocations: 4 kB / 0.5217 GB, free: 7.488 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001746/0.6202, allocations: 379.4 kB / 0.5221 GB, free: 7.117 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001994/0.6222, allocations: 0.7208 MB / 0.5228 GB, free: 6.375 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003166/0.6226, allocations: 63.91 kB / 0.5229 GB, free: 6.312 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1929/0.8155, allocations: 16.64 MB / 0.5391 GB, free: 134.7 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.031e-06/0.8156, allocations: 8.438 kB / 0.5391 GB, free: 134.7 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00889/0.8245, allocations: 5.55 MB / 0.5445 GB, free: 132.3 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00166/0.8262, allocations: 0.6462 MB / 0.5452 GB, free: 132.1 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005531/0.8267, allocations: 57.45 kB / 0.5452 GB, free: 132 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001568/0.8283, allocations: 131.8 kB / 0.5453 GB, free: 132 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004412/0.8288, allocations: 172.7 kB / 0.5455 GB, free: 132 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001501/0.8289, allocations: 72.53 kB / 0.5456 GB, free: 131.9 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003419/0.8323, allocations: 1.958 MB / 0.5475 GB, free: 131.2 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.91e-07/0.8324, allocations: 1.219 kB / 0.5475 GB, free: 131.2 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.00406/0.8364, allocations: 0.9357 MB / 0.5484 GB, free: 131.1 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 13 (vfController.x,smrM.inertiaRotor.w,smrM.stator.core.Phi.re,smrM.stator.core.Phi.im,smrM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smrM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,smrE.inertiaRotor.w,smrE.idq_sr[1],smrE.idq_sr[2],smrE.idq_dr[1],smrE.idq_dr[2],loadInertiaM.phi,loadInertiaE.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 (185): * Single equations (assignments): 177 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 8 systems {(1,5,100.0%), (3,11,100.0%), (1,3,100.0%), (1,1,100.0%), (2,1,100.0%), (1,1,100.0%), (1,8,100.0%), (2,12,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.000687/0.8371, allocations: 252.1 kB / 0.5486 GB, free: 131 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.01036/0.8475, allocations: 5.406 MB / 0.5539 GB, free: 129.1 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.048e-05/0.8475, allocations: 3.969 kB / 0.5539 GB, free: 129.1 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003476/0.851, allocations: 2.662 MB / 0.5565 GB, free: 127.5 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003818/0.8549, allocations: 0.844 MB / 0.5574 GB, free: 127.3 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01429/0.8692, allocations: 9.568 MB / 0.5667 GB, free: 122.6 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00251/0.8717, allocations: 3.223 MB / 0.5698 GB, free: 121.3 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001003/0.8728, allocations: 240.7 kB / 0.5701 GB, free: 121.3 MB / 446.1 MB Notification: Performance of SimCode: time 1.573e-06/0.8728, allocations: 0 / 0.5701 GB, free: 121.3 MB / 446.1 MB Notification: Performance of Templates: time 0.363/1.236, allocations: 250.5 MB / 0.8147 GB, free: 50.55 MB / 462.1 MB make -j1 -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.makefile (rm -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.sim & ./Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMR_Inverter/SMR_Inverter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches