Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.ComparisonPolyphase.IMS_Start_Polyphase.conf.json 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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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) Running command: translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.ComparisonPolyphase.IMS_Start_Polyphase,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,variableFilter="time|aims3.rotor.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|aims3.rotor.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|// aims3.rotor.zeroInductor.i0|aims3.is.1.|aims3.is.2.|aims3.ir.1.|aims3.ir.2.|aims3.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|aims3.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|aimsM.rotor.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|aimsM.rotor.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|// aimsM.rotor.zeroInductor.i0|aimsM.is.1.|aimsM.is.2.|aimsM.is.3.|aimsM.is.4.|aimsM.ir.1.|aimsM.ir.2.|aimsM.ir.3.|aimsM.ir.4.|aimsM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|aimsM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|loadInertia3.phi|loadInertia3.w|loadInertiaM.phi|loadInertiaM.w",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.ComparisonPolyphase.IMS_Start_Polyphase") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.ComparisonPolyphase.IMS_Start_Polyphase,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,variableFilter="time|aims3.rotor.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|aims3.rotor.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|// aims3.rotor.zeroInductor.i0|aims3.is.1.|aims3.is.2.|aims3.ir.1.|aims3.ir.2.|aims3.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|aims3.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|aimsM.rotor.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|aimsM.rotor.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|// aimsM.rotor.zeroInductor.i0|aimsM.is.1.|aimsM.is.2.|aimsM.is.3.|aimsM.is.4.|aimsM.ir.1.|aimsM.ir.2.|aimsM.ir.3.|aimsM.ir.4.|aimsM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|aimsM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|loadInertia3.phi|loadInertia3.w|loadInertiaM.phi|loadInertiaM.w",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.ComparisonPolyphase.IMS_Start_Polyphase") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001116/0.001116, allocations: 182.3 kB / 8.134 MB, free: 2.207 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.155/1.155, allocations: 221.4 MB / 229.9 MB, free: 3.082 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009248/0.0009248, allocations: 89.55 kB / 280.8 MB, free: 1.266 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 5.691e-06/5.711e-06, allocations: 0 / 336.5 MB, free: 9.496 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1961/0.1961, allocations: 50.4 MB / 386.9 MB, free: 38.1 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1167/0.3128, allocations: 117.1 MB / 0.4923 GB, free: 1.656 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002407/0.3131, allocations: 103.8 kB / 0.4924 GB, free: 1.559 MB / 378.7 MB Notification: Performance of FrontEnd: time 0.7464/1.06, allocations: 219.1 MB / 0.7063 GB, free: 34.83 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0007079/1.06, allocations: 250 kB / 0.7066 GB, free: 34.81 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2681 * Number of variables: 2681 Notification: Performance of Generate backend data structure: time 0.02777/1.088, allocations: 9.61 MB / 0.716 GB, free: 31.45 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.469e-05/1.088, allocations: 11.16 kB / 0.716 GB, free: 31.45 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01182/1.1, allocations: 2.131 MB / 0.7181 GB, free: 30.84 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02048/1.12, allocations: 8.955 MB / 0.7268 GB, free: 29.55 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005785/1.121, allocations: 328.1 kB / 0.7271 GB, free: 29.55 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003545/1.125, allocations: 0.5902 MB / 0.7277 GB, free: 29.54 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02201/1.147, allocations: 11.02 MB / 0.7385 GB, free: 29.49 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03098/1.178, allocations: 12.47 MB / 0.7506 GB, free: 27.96 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000472/1.178, allocations: 12.66 kB / 0.7506 GB, free: 27.95 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003105/1.181, allocations: 7.469 kB / 0.7507 GB, free: 27.95 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003321/1.182, allocations: 468.1 kB / 0.7511 GB, free: 27.91 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08032/1.262, allocations: 42.86 MB / 0.793 GB, free: 14.56 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005473/1.268, allocations: 3.428 MB / 0.7963 GB, free: 11.45 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007656/1.275, allocations: 5.011 MB / 0.8012 GB, free: 6.875 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03096/1.306, allocations: 13.41 MB / 0.8143 GB, free: 13.37 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.584e-05/1.306, allocations: 97.56 kB / 0.8144 GB, free: 13.27 MB / 458.7 MB Notification: Performance of pre-optimization done (n=509): time 8.235e-06/1.306, allocations: 0 / 0.8144 GB, free: 13.27 MB / 458.7 MB Notification: Performance of matching and sorting (n=515): time 0.1814/1.488, allocations: 15.26 MB / 0.8293 GB, free: 88.14 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.281e-05/1.488, allocations: 111.2 kB / 0.8294 GB, free: 88.07 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005332/1.493, allocations: 3.84 MB / 0.8331 GB, free: 87.8 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007504/1.494, allocations: 25.7 kB / 0.8332 GB, free: 87.77 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001415/1.495, allocations: 3.434 MB / 0.8365 GB, free: 87.64 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001314/1.497, allocations: 1.639 MB / 0.8381 GB, free: 86.81 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002794/1.497, allocations: 0 / 0.8381 GB, free: 86.81 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0002207/1.497, allocations: 0.5214 MB / 0.8386 GB, free: 86.5 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00328/1.5, allocations: 2.596 MB / 0.8412 GB, free: 86.48 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004129/1.505, allocations: 3.751 MB / 0.8448 GB, free: 85.23 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005166/1.51, allocations: 3.312 MB / 0.8481 GB, free: 85.14 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.353e-05/1.51, allocations: 10.56 kB / 0.8481 GB, free: 85.14 MB / 458.7 MB Notification: Performance of matching and sorting (n=702) (initialization): time 0.01458/1.524, allocations: 8.378 MB / 0.8562 GB, free: 84.22 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.663e-05/1.524, allocations: 5.656 kB / 0.8563 GB, free: 84.22 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.994e-05/1.525, allocations: 34.66 kB / 0.8563 GB, free: 84.22 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003188/1.528, allocations: 1.477 MB / 0.8577 GB, free: 84.1 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004986/1.533, allocations: 1.115 MB / 0.8588 GB, free: 84.1 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0178/1.551, allocations: 25.27 MB / 0.8835 GB, free: 67.01 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004508/1.555, allocations: 134.2 kB / 0.8836 GB, free: 67 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006486/1.556, allocations: 209.6 kB / 0.8838 GB, free: 67 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 150 * Number of states: 0 () * Number of discrete variables: 16 (rheostatM.booleanStep[1].y,rheostatM.booleanStep[2].y,rheostatM.booleanStep[3].y,rheostatM.booleanStep[4].y,rheostatM.booleanStep[5].y,rheostat3.booleanStep[1].y,rheostat3.booleanStep[2].y,rheostat3.booleanStep[3].y,booleanStepM[1].y,booleanStepM[2].y,booleanStepM[3].y,booleanStepM[4].y,booleanStepM[5].y,booleanStep3[1].y,booleanStep3[2].y,booleanStep3[3].y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (614): * Single equations (assignments): 598 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 14 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 14 {(1,100.0%) 1,(1,100.0%) 5,(1,100.0%) 5,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 4,(1,100.0%) 1,(4,56.2%) 22,(2,100.0%) 6,(2,100.0%) 6,(1,100.0%) 5,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0008975/1.557, allocations: 233.8 kB / 0.884 GB, free: 66.88 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009026/1.558, allocations: 0.5479 MB / 0.8846 GB, free: 66.59 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01299/1.571, allocations: 8.347 MB / 0.8927 GB, free: 65.75 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.585e-05/1.571, allocations: 53.03 kB / 0.8928 GB, free: 65.75 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.341e-05/1.571, allocations: 26.44 kB / 0.8928 GB, free: 65.75 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.956e-05/1.571, allocations: 28.2 kB / 0.8928 GB, free: 65.75 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02447/1.595, allocations: 17.29 MB / 0.9097 GB, free: 63.88 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.377e-05/1.595, allocations: 3.656 kB / 0.9097 GB, free: 63.88 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002566/1.598, allocations: 0.5765 MB / 0.9103 GB, free: 63.88 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004638/1.602, allocations: 2.238 MB / 0.9125 GB, free: 63.76 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003256/1.603, allocations: 39 kB / 0.9125 GB, free: 63.76 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02777/1.631, allocations: 32.45 MB / 0.9442 GB, free: 43.11 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.969e-06/1.631, allocations: 3.625 kB / 0.9442 GB, free: 43.11 MB / 458.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01921/1.65, allocations: 12.64 MB / 0.9565 GB, free: 37.33 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003783/1.654, allocations: 1.238 MB / 0.9577 GB, free: 36.59 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001993/1.656, allocations: 19.12 kB / 0.9578 GB, free: 36.58 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004022/1.66, allocations: 183.7 kB / 0.9579 GB, free: 36.58 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001051/1.661, allocations: 335.2 kB / 0.9583 GB, free: 36.52 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004125/1.661, allocations: 135.6 kB / 0.9584 GB, free: 36.49 MB / 458.7 MB Notification: Performance of sort global known variables: time 0.004889/1.666, allocations: 2.874 MB / 0.9612 GB, free: 35.37 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.00814/1.674, allocations: 1.708 MB / 0.9629 GB, free: 35.35 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 14 (aimsM.stator.core.Phi.re,aimsM.stator.core.Phi.im,aimsM.rotor.core.Phi.re,aimsM.rotor.core.Phi.im,aimsM.rotor.zeroInductor.i0,aims3.stator.core.Phi.re,aims3.stator.core.Phi.im,aims3.rotor.core.Phi.re,aims3.rotor.core.Phi.im,aims3.rotor.zeroInductor.i0,loadInertiaM.w,loadInertia3.w,quadraticLoadTorqueM.phi,quadraticLoadTorque3.phi) * Number of discrete variables: 16 (rheostatM.booleanStep[1].y,rheostatM.booleanStep[2].y,rheostatM.booleanStep[3].y,rheostatM.booleanStep[4].y,rheostatM.booleanStep[5].y,rheostat3.booleanStep[1].y,rheostat3.booleanStep[2].y,rheostat3.booleanStep[3].y,booleanStepM[1].y,booleanStepM[2].y,booleanStepM[3].y,booleanStepM[4].y,booleanStepM[5].y,booleanStep3[1].y,booleanStep3[2].y,booleanStep3[3].y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (329): * Single equations (assignments): 316 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 13 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 13 {(1,100.0%) 5,(6,72.2%) 46,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 5,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 4,(11,54.5%) 56,(1,100.0%) 8,(1,100.0%) 8,(2,100.0%) 12,(2,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001262/1.676, allocations: 0.4886 MB / 0.9633 GB, free: 35.23 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.01126/1.687, allocations: 8.122 MB / 0.9713 GB, free: 31.29 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 9.809e-06/1.687, allocations: 0 / 0.9713 GB, free: 31.29 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.008138/1.695, allocations: 5.422 MB / 0.9766 GB, free: 28.52 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00687/1.702, allocations: 1.125 MB / 0.9777 GB, free: 28.26 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04136/1.743, allocations: 15.7 MB / 0.993 GB, free: 15.29 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01318/1.757, allocations: 6.866 MB / 0.9997 GB, free: 10.13 MB / 458.7 MB Notification: Performance of SimCode: time 1.493e-06/1.757, allocations: 4 kB / 0.9997 GB, free: 10.13 MB / 458.7 MB Notification: Performance of Templates: time 0.3365/2.093, allocations: 90.4 MB / 1.088 GB, free: 72.09 MB / 458.7 MB make -j1 -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.ComparisonPolyphase.IMS_Start_Polyphase.makefile (rm -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.ComparisonPolyphase.IMS_Start_Polyphase.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.ComparisonPolyphase.IMS_Start_Polyphase.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.ComparisonPolyphase.IMS_Start_Polyphase.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.ComparisonPolyphase.IMS_Start_Polyphase.sim & ./Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.ComparisonPolyphase.IMS_Start_Polyphase -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.ComparisonPolyphase.IMS_Start_Polyphase.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.ComparisonPolyphase.IMS_Start_Polyphase_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/InductionMachines/ComparisonPolyphase/IMS_Start_Polyphase/IMS_Start_Polyphase.csv","../files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.ComparisonPolyphase.IMS_Start_Polyphase.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches