Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_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 3.2.3+maint.om/package.mo", uses=false) 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(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,variableFilter="time|loadInertiaE.phi|loadInertiaE.w|loadInertiaM.phi|loadInertiaM.w|smpmE.is.1.|smpmE.is.2.|smpmE.idq_dr.1.|smpmE.idq_rr.2.|smpmE.idq_sr.1.|smpmE.idq_sr.2.|smpmM.is.1.|smpmM.is.2.|smpmM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smpmM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smpmM.stator.strayReluctance.port_p.Phi.im|smpmM.stator.strayReluctance.port_p.Phi.re|vfController.x",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,variableFilter="time|loadInertiaE.phi|loadInertiaE.w|loadInertiaM.phi|loadInertiaM.w|smpmE.is.1.|smpmE.is.2.|smpmE.idq_dr.1.|smpmE.idq_rr.2.|smpmE.idq_sr.1.|smpmE.idq_sr.2.|smpmM.is.1.|smpmM.is.2.|smpmM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smpmM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smpmM.stator.strayReluctance.port_p.Phi.im|smpmM.stator.strayReluctance.port_p.Phi.re|vfController.x",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001145/0.001145, allocations: 114.5 kB / 17.73 MB, free: 5.34 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.001273/0.001273, allocations: 187 kB / 18.67 MB, free: 4.414 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.317/1.317, allocations: 205.1 MB / 224.5 MB, free: 12.24 MB / 190.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.001246/0.001246, allocations: 47.94 kB / 328.6 MB, free: 3.266 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1038/0.1051, allocations: 46.61 MB / 375.2 MB, free: 4.551 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter): time 0.2262/0.3313, allocations: 21.68 MB / 396.8 MB, free: 15.79 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01567/0.347, allocations: 6.437 MB / 403.3 MB, free: 11.08 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004564/0.3517, allocations: 121.2 kB / 403.4 MB, free: 11.05 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003921/0.3557, allocations: 1.485 MB / 404.9 MB, free: 10.23 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008861/0.3645, allocations: 2.039 MB / 406.9 MB, free: 8.883 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004785/0.3693, allocations: 1.309 MB / 408.2 MB, free: 8.047 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01225/0.3816, allocations: 6.527 MB / 414.8 MB, free: 4.293 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01351/0.3951, allocations: 5.507 MB / 420.3 MB, free: 1.57 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007057/0.4022, allocations: 3.003 MB / 423.3 MB, free: 15.39 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00542/0.4077, allocations: 3.565 MB / 426.8 MB, free: 11.81 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001494/0.4092, allocations: 0.8164 MB / 427.6 MB, free: 11 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002947/0.4122, allocations: 1.097 MB / 428.7 MB, free: 9.898 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001913/0.4141, allocations: 2.022 MB / 430.8 MB, free: 7.871 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004374/0.4185, allocations: 3.539 MB / 434.3 MB, free: 4.316 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01035/0.4288, allocations: 10.79 MB / 445.1 MB, free: 9.496 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.071e-06/0.4288, allocations: 0 / 445.1 MB, free: 9.496 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.004e-06/0.4289, allocations: 3.938 kB / 445.1 MB, free: 9.492 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001418/0.429, allocations: 0 / 445.1 MB, free: 9.492 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: 1413 * Number of variables: 1413 Notification: Performance of Generate backend data structure: time 0.0172/0.4462, allocations: 6.914 MB / 452 MB, free: 2.496 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.571e-05/0.4463, allocations: 15.97 kB / 452 MB, free: 2.48 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004738/0.451, allocations: 1.055 MB / 453.1 MB, free: 1.418 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006343/0.4574, allocations: 3.527 MB / 456.6 MB, free: 13.82 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003055/0.4577, allocations: 403.3 kB / 457 MB, free: 13.42 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009202/0.4586, allocations: 0.5271 MB / 457.5 MB, free: 12.89 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01371/0.4724, allocations: 7.052 MB / 464.6 MB, free: 5.77 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001119/0.4725, allocations: 15.89 kB / 464.6 MB, free: 5.754 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004953/0.473, allocations: 228 kB / 464.8 MB, free: 5.531 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002356/0.4733, allocations: 258.6 kB / 465.1 MB, free: 5.277 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009835/0.4831, allocations: 5.933 MB / 471 MB, free: 15.34 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04242/0.5255, allocations: 22.15 MB / 493.2 MB, free: 8.605 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009249/0.5348, allocations: 8.285 MB / 0.4897 GB, free: 15.43 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003847/0.5387, allocations: 2.167 MB / 0.4918 GB, free: 13.26 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0123/0.5511, allocations: 6.168 MB / 0.4978 GB, free: 6.957 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.919e-05/0.5512, allocations: 56.56 kB / 0.4979 GB, free: 6.891 MB / 430.1 MB Notification: Performance of pre-optimization done (n=220): time 3.556e-06/0.5512, allocations: 0 / 0.4979 GB, free: 6.891 MB / 430.1 MB Notification: Performance of matching and sorting (n=240): time 0.02578/0.577, allocations: 11.15 MB / 0.5088 GB, free: 11.48 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.208e-05/0.5771, allocations: 73.41 kB / 0.5088 GB, free: 11.4 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008511/0.5856, allocations: 3.156 MB / 0.5119 GB, free: 8.242 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007101/0.5864, allocations: 65.7 kB / 0.512 GB, free: 8.172 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002645/0.5891, allocations: 2.498 MB / 0.5144 GB, free: 5.645 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001403/0.5905, allocations: 0.8318 MB / 0.5152 GB, free: 4.801 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001259/0.5918, allocations: 0.5614 MB / 0.5158 GB, free: 4.23 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.000106/0.5919, allocations: 301.1 kB / 0.5161 GB, free: 3.934 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002467/0.5944, allocations: 1.334 MB / 0.5174 GB, free: 2.598 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003148/0.5975, allocations: 2.342 MB / 0.5197 GB, free: 15.81 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005996/0.6035, allocations: 3.928 MB / 0.5235 GB, free: 11.41 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.593e-05/0.6036, allocations: 8 kB / 0.5235 GB, free: 11.4 MB / 462.1 MB Notification: Performance of matching and sorting (n=406) (initialization): time 0.009025/0.6126, allocations: 4.702 MB / 0.5281 GB, free: 6.586 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.261e-05/0.6127, allocations: 20 kB / 0.5281 GB, free: 6.566 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.894e-05/0.6128, allocations: 28 kB / 0.5281 GB, free: 6.539 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001376/0.6142, allocations: 0.5256 MB / 0.5287 GB, free: 5.992 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002882/0.6171, allocations: 0.7527 MB / 0.5294 GB, free: 5.238 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009791/0.6269, allocations: 10.28 MB / 0.5394 GB, free: 10.26 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003058/0.63, allocations: 183.8 kB / 0.5396 GB, free: 10.08 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003635/0.6304, allocations: 140 kB / 0.5397 GB, free: 9.941 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 144 * 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 (380): * Single equations (assignments): 373 * 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,12,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.003831/0.6342, allocations: 1.578 MB / 0.5413 GB, free: 8.352 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001373/0.6356, allocations: 347.8 kB / 0.5416 GB, free: 8.008 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00798/0.6436, allocations: 4.042 MB / 0.5456 GB, free: 3.867 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.051e-05/0.6436, allocations: 27.94 kB / 0.5456 GB, free: 3.84 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.841e-05/0.6437, allocations: 8 kB / 0.5456 GB, free: 3.832 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.637e-05/0.6437, allocations: 11.95 kB / 0.5456 GB, free: 3.82 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3272/0.9709, allocations: 8.962 MB / 0.5544 GB, free: 145.2 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.412e-05/0.9709, allocations: 5.203 kB / 0.5544 GB, free: 145.2 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001852/0.9728, allocations: 409.3 kB / 0.5548 GB, free: 145.1 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002095/0.9749, allocations: 0.7315 MB / 0.5555 GB, free: 145 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002177/0.9752, allocations: 66.94 kB / 0.5555 GB, free: 144.9 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01441/0.9896, allocations: 16.73 MB / 0.5719 GB, free: 131 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.783e-06/0.9896, allocations: 7.188 kB / 0.5719 GB, free: 131 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01161/1.001, allocations: 5.844 MB / 0.5776 GB, free: 128.4 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002578/1.004, allocations: 0.6934 MB / 0.5783 GB, free: 128.1 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007898/1.005, allocations: 59.61 kB / 0.5783 GB, free: 128.1 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001825/1.007, allocations: 140 kB / 0.5785 GB, free: 128 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005612/1.007, allocations: 190.2 kB / 0.5786 GB, free: 128 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001618/1.007, allocations: 71.97 kB / 0.5787 GB, free: 128 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.003679/1.011, allocations: 2.124 MB / 0.5808 GB, free: 127.2 MB / 478.1 MB Notification: Performance of sort global known variables: time 2.91e-07/1.011, allocations: 0 / 0.5808 GB, free: 127.2 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.004867/1.016, allocations: 0.9978 MB / 0.5818 GB, free: 127.1 MB / 478.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 20 * Number of states: 13 (vfController.x,smpmM.inertiaRotor.w,smpmM.stator.core.Phi.re,smpmM.stator.core.Phi.im,smpmM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smpmM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,smpmE.inertiaRotor.w,smpmE.idq_sr[1],smpmE.idq_sr[2],smpmE.idq_rr[2],smpmE.idq_dr[1],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 (201): * Single equations (assignments): 193 * 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,12,100.0%), (1,3,100.0%), (1,1,100.0%), (2,1,100.0%), (1,1,100.0%), (1,8,100.0%), (2,13,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0009927/1.017, allocations: 248.8 kB / 0.582 GB, free: 126.9 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.00727/1.024, allocations: 4.142 MB / 0.586 GB, free: 125 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.135e-05/1.024, allocations: 1.469 kB / 0.586 GB, free: 125 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003977/1.028, allocations: 2.742 MB / 0.5887 GB, free: 123.4 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004867/1.033, allocations: 0.9609 MB / 0.5897 GB, free: 123.1 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01483/1.048, allocations: 9.929 MB / 0.5993 GB, free: 117.1 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002411/1.05, allocations: 3.404 MB / 0.6027 GB, free: 114.4 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.002506/1.053, allocations: 0.809 MB / 0.6035 GB, free: 113.8 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006749/1.054, allocations: 243.9 kB / 0.6037 GB, free: 113.6 MB / 478.1 MB Notification: Performance of SimCode: time 1.052e-06/1.054, allocations: 4 kB / 0.6037 GB, free: 113.6 MB / 478.1 MB Notification: Performance of Templates: time 0.07929/1.133, allocations: 49.12 MB / 0.6517 GB, free: 64.94 MB / 478.1 MB make -j1 -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.makefile (rm -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.sim & ./Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SMPM_Inverter/SMPM_Inverter.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches