Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer.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.IMC_Transformer,tolerance=1e-06,outputFormat="mat",numberOfIntervals=50000,variableFilter="time|aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|aimc.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|aimc.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|// aimc.stator.zeroInductor.i0|aimc.is.1.|aimc.is.2.|loadInertia.phi|loadInertia.w|transformer.l2sigma.inductor.1..i|transformer.l2sigma.inductor.3..i",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer,tolerance=1e-06,outputFormat="mat",numberOfIntervals=50000,variableFilter="time|aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|aimc.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|aimc.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|// aimc.stator.zeroInductor.i0|aimc.is.1.|aimc.is.2.|loadInertia.phi|loadInertia.w|transformer.l2sigma.inductor.1..i|transformer.l2sigma.inductor.3..i",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001168/0.001168, allocations: 186.5 kB / 17.27 MB, free: 4.504 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.425/1.425, allocations: 222.9 MB / 240.9 MB, free: 10.97 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009837/0.0009837, allocations: 94.3 kB / 291.2 MB, free: 10.94 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0007503/0.0007503, allocations: 43.94 kB / 350.1 MB, free: 56 kB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1899/0.1906, allocations: 49.44 MB / 399.5 MB, free: 33.35 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer): time 0.01204/0.2027, allocations: 16.6 MB / 416.1 MB, free: 16.68 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.008216/0.2109, allocations: 5.626 MB / 421.7 MB, free: 11.04 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002824/0.2138, allocations: 107.6 kB / 421.8 MB, free: 10.94 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003313/0.2172, allocations: 1.174 MB / 423 MB, free: 9.758 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004544/0.2217, allocations: 1.632 MB / 424.6 MB, free: 8.117 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002254/0.224, allocations: 0.9476 MB / 425.6 MB, free: 7.172 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.006029/0.23, allocations: 6.978 MB / 432.6 MB, free: 168 kB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005237/0.2353, allocations: 4.512 MB / 437.1 MB, free: 11.57 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004516/0.2398, allocations: 2.39 MB / 439.5 MB, free: 9.18 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00559/0.2455, allocations: 3.109 MB / 442.6 MB, free: 6.059 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.00211/0.2476, allocations: 468 kB / 443 MB, free: 5.602 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003823/0.2514, allocations: 0.7417 MB / 443.8 MB, free: 4.859 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001952/0.2534, allocations: 1.515 MB / 445.3 MB, free: 3.34 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003861/0.2573, allocations: 2.974 MB / 448.3 MB, free: 360 kB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.009273/0.2666, allocations: 10.17 MB / 458.4 MB, free: 6.148 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.352e-06/0.2666, allocations: 0 / 458.4 MB, free: 6.148 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.854e-06/0.2666, allocations: 3.938 kB / 458.4 MB, free: 6.145 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0002682/0.2669, allocations: 0 / 458.4 MB, free: 6.145 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1287 * Number of variables: 1287 Notification: Performance of Generate backend data structure: time 0.01668/0.2836, allocations: 6.51 MB / 464.9 MB, free: 15.55 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.033e-05/0.2837, allocations: 12.03 kB / 464.9 MB, free: 15.54 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004717/0.2884, allocations: 1.06 MB / 466 MB, free: 14.47 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006742/0.2951, allocations: 3.501 MB / 469.5 MB, free: 10.89 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002586/0.2954, allocations: 365.7 kB / 469.9 MB, free: 10.53 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000931/0.2964, allocations: 479.9 kB / 470.3 MB, free: 10.06 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01228/0.3087, allocations: 6.881 MB / 477.2 MB, free: 3.102 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.588e-05/0.3088, allocations: 3.906 kB / 477.2 MB, free: 3.098 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004427/0.3092, allocations: 204 kB / 477.4 MB, free: 2.898 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001892/0.3094, allocations: 237.8 kB / 477.7 MB, free: 2.664 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009991/0.3194, allocations: 5.941 MB / 483.6 MB, free: 12.71 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03282/0.3523, allocations: 20.91 MB / 0.4927 GB, free: 7.363 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.1717/0.524, allocations: 9.944 MB / 0.5024 GB, free: 86.94 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004679/0.5287, allocations: 2.492 MB / 0.5048 GB, free: 86.61 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01049/0.5393, allocations: 6.505 MB / 0.5112 GB, free: 83.59 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.427e-05/0.5394, allocations: 61.31 kB / 0.5112 GB, free: 83.53 MB / 378.7 MB Notification: Performance of pre-optimization done (n=219): time 5.39e-06/0.5394, allocations: 0.5625 kB / 0.5112 GB, free: 83.53 MB / 378.7 MB Notification: Performance of matching and sorting (n=226): time 0.01651/0.5559, allocations: 9.677 MB / 0.5207 GB, free: 79.01 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.171e-05/0.556, allocations: 75.66 kB / 0.5208 GB, free: 78.95 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003712/0.5597, allocations: 2.984 MB / 0.5237 GB, free: 77.32 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003633/0.5601, allocations: 69.69 kB / 0.5237 GB, free: 77.25 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009955/0.5611, allocations: 2.156 MB / 0.5258 GB, free: 75.08 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005757/0.5617, allocations: 0.7608 MB / 0.5266 GB, free: 74.33 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006263/0.5623, allocations: 469 kB / 0.527 GB, free: 73.86 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 3.89e-05/0.5623, allocations: 301.1 kB / 0.5273 GB, free: 73.57 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001698/0.564, allocations: 1.289 MB / 0.5286 GB, free: 72.27 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001828/0.5659, allocations: 1.928 MB / 0.5305 GB, free: 70.09 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003454/0.5693, allocations: 3.332 MB / 0.5337 GB, free: 66.5 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.968e-06/0.5694, allocations: 4 kB / 0.5337 GB, free: 66.5 MB / 378.7 MB Notification: Performance of matching and sorting (n=328) (initialization): time 0.006132/0.5755, allocations: 4.244 MB / 0.5379 GB, free: 62.21 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.987e-05/0.5756, allocations: 15.94 kB / 0.5379 GB, free: 62.2 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.766e-05/0.5756, allocations: 23.69 kB / 0.5379 GB, free: 62.18 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002245/0.5779, allocations: 0.7734 MB / 0.5387 GB, free: 61.39 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002182/0.5801, allocations: 0.5557 MB / 0.5392 GB, free: 60.84 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007767/0.5878, allocations: 10.02 MB / 0.549 GB, free: 50.3 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002296/0.5902, allocations: 111.8 kB / 0.5491 GB, free: 50.19 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002553/0.5904, allocations: 111.9 kB / 0.5492 GB, free: 50.08 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 82 * Number of states: 0 () * Number of discrete variables: 6 (booleanStep2[3].y,booleanStep2[2].y,booleanStep2[1].y,idealCloser.control[3],idealCloser.control[2],idealCloser.control[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (278): * Single equations (assignments): 273 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(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): 4 systems {(3,25,77.8%), (1,8,100.0%), (1,1,100.0%), (1,13,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002265/0.5927, allocations: 1.606 MB / 0.5508 GB, free: 48.46 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007154/0.5934, allocations: 312.2 kB / 0.5511 GB, free: 48.16 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005638/0.5991, allocations: 3.916 MB / 0.5549 GB, free: 44.17 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.422e-05/0.5991, allocations: 20 kB / 0.5549 GB, free: 44.15 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.278e-05/0.5992, allocations: 15.94 kB / 0.5549 GB, free: 44.13 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.675e-05/0.5992, allocations: 11.95 kB / 0.5549 GB, free: 44.12 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01208/0.6113, allocations: 8.55 MB / 0.5633 GB, free: 35.47 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.003e-05/0.6113, allocations: 4 kB / 0.5633 GB, free: 35.47 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001389/0.6127, allocations: 347.2 kB / 0.5636 GB, free: 35.13 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002678/0.6154, allocations: 0.952 MB / 0.5646 GB, free: 34.17 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000151/0.6156, allocations: 55.98 kB / 0.5646 GB, free: 34.12 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01101/0.6266, allocations: 14.41 MB / 0.5787 GB, free: 18.94 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.258e-06/0.6266, allocations: 4.031 kB / 0.5787 GB, free: 18.93 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05532/0.6819, allocations: 41.52 MB / 0.6192 GB, free: 8.254 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001381/0.6834, allocations: 0.6925 MB / 0.6199 GB, free: 7.539 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003775/0.6837, allocations: 66.05 kB / 0.62 GB, free: 7.477 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001372/0.6851, allocations: 103.9 kB / 0.6201 GB, free: 7.375 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004789/0.6856, allocations: 189.6 kB / 0.6203 GB, free: 7.191 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001411/0.6858, allocations: 59.98 kB / 0.6203 GB, free: 7.133 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.003096/0.6889, allocations: 2.062 MB / 0.6223 GB, free: 5.07 MB / 410.7 MB Notification: Performance of sort global known variables: time 2.21e-07/0.6889, allocations: 0 / 0.6223 GB, free: 5.07 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.004328/0.6932, allocations: 1.322 MB / 0.6236 GB, free: 3.754 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 9 (aimc.inertiaRotor.w,aimc.stator.zeroInductor.i0,aimc.stator.core.Phi.re,aimc.stator.core.Phi.im,aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.re,aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.im,transformer.l1sigma.inductor[2].i,transformer.l1sigma.inductor[3].i,quadraticLoadTorque.phi) * Number of discrete variables: 6 (idealCloser.control[1],idealCloser.control[2],idealCloser.control[3],booleanStep2[1].y,booleanStep2[2].y,booleanStep2[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (156): * Single equations (assignments): 150 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 6 systems {(1,8,100.0%), (2,26,100.0%), (1,1,100.0%), (1,8,100.0%), (1,13,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.0006541/0.6939, allocations: 263.4 kB / 0.6239 GB, free: 3.5 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.006086/0.7, allocations: 3.893 MB / 0.6277 GB, free: 15.54 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 6.462e-06/0.7, allocations: 8.875 kB / 0.6277 GB, free: 15.53 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003786/0.7038, allocations: 2.62 MB / 0.6302 GB, free: 12.84 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004089/0.7079, allocations: 0.8652 MB / 0.6311 GB, free: 11.98 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02025/0.7282, allocations: 14.22 MB / 0.645 GB, free: 13.63 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003995/0.7322, allocations: 3.501 MB / 0.6484 GB, free: 10.1 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.002912/0.7352, allocations: 0.7799 MB / 0.6491 GB, free: 9.316 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006995/0.7359, allocations: 207.4 kB / 0.6493 GB, free: 9.113 MB / 442.7 MB Notification: Performance of SimCode: time 7.01e-07/0.7359, allocations: 0 / 0.6493 GB, free: 9.113 MB / 442.7 MB Notification: Performance of Templates: time 0.2677/1.004, allocations: 58.72 MB / 0.7067 GB, free: 133.7 MB / 458.7 MB make -j1 -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer.makefile (rm -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer.sim & ./Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/InductionMachines/IMC_Transformer/IMC_Transformer.csv","../files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches