Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize.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.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize,tolerance=1e-06,outputFormat="mat",numberOfIntervals=300000,variableFilter="time|imc.airGap.V_mrr.im|imc.airGap.V_mrr.re|imc.airGap.V_msr.im|imc.airGap.V_msr.re|imc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|imc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|imc.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|imc.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|imc.stator.port_p.V_m.im|imc.stator.port_p.V_m.re|imc.stator.zeroInductor.i0|imcQS.rotorCage.port_p.reference.gamma|loadInertia.phi|loadInertia.w|loadInertiaQS.phi|loadInertiaQS.w",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize") translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize,tolerance=1e-06,outputFormat="mat",numberOfIntervals=300000,variableFilter="time|imc.airGap.V_mrr.im|imc.airGap.V_mrr.re|imc.airGap.V_msr.im|imc.airGap.V_msr.re|imc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|imc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|imc.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|imc.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|imc.stator.port_p.V_m.im|imc.stator.port_p.V_m.re|imc.stator.zeroInductor.i0|imcQS.rotorCage.port_p.reference.gamma|loadInertia.phi|loadInertia.w|loadInertiaQS.phi|loadInertiaQS.w",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001268/0.001268, allocations: 112.5 kB / 17.69 MB, free: 5.438 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.001265/0.001265, allocations: 191 kB / 18.63 MB, free: 4.508 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.337/1.337, allocations: 222.9 MB / 242.3 MB, free: 15.18 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000974/0.0009741, allocations: 47.8 kB / 302.1 MB, free: 5.16 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09064/0.09163, allocations: 49.45 MB / 351.5 MB, free: 3.68 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize): time 0.201/0.2927, allocations: 32.83 MB / 384.4 MB, free: 9.93 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01837/0.3111, allocations: 8.992 MB / 393.4 MB, free: 4.207 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007131/0.3182, allocations: 239.5 kB / 393.6 MB, free: 4.156 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01644/0.3347, allocations: 7.935 MB / 401.5 MB, free: 15.2 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01243/0.3471, allocations: 3.659 MB / 405.2 MB, free: 12.25 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006132/0.3533, allocations: 2.088 MB / 407.3 MB, free: 10.55 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01805/0.3713, allocations: 13 MB / 420.3 MB, free: 0.7852 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03155/0.4029, allocations: 22.47 MB / 442.8 MB, free: 10.14 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0122/0.4152, allocations: 6.541 MB / 449.3 MB, free: 3.586 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01325/0.4284, allocations: 7.21 MB / 456.5 MB, free: 12.35 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.005208/0.4337, allocations: 1.887 MB / 458.4 MB, free: 10.46 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00781/0.4415, allocations: 2.246 MB / 460.6 MB, free: 8.219 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005643/0.4472, allocations: 3.745 MB / 464.4 MB, free: 4.465 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01286/0.4601, allocations: 7.101 MB / 471.5 MB, free: 13.34 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03051/0.4906, allocations: 24.99 MB / 496.5 MB, free: 4.277 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.764e-06/0.4907, allocations: 4 kB / 496.5 MB, free: 4.273 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.435e-06/0.4907, allocations: 0 / 496.5 MB, free: 4.273 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0007908/0.4915, allocations: 0 / 496.5 MB, free: 4.273 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2952 * Number of variables: 2952 Notification: Performance of Generate backend data structure: time 0.04877/0.5403, allocations: 14.57 MB / 0.4991 GB, free: 5.59 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.841e-05/0.5403, allocations: 8.031 kB / 0.4991 GB, free: 5.582 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03866/0.579, allocations: 6.796 MB / 0.5057 GB, free: 14.77 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01966/0.5987, allocations: 8.083 MB / 0.5136 GB, free: 6.602 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001044/0.5998, allocations: 0.7907 MB / 0.5144 GB, free: 5.809 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004822/0.6046, allocations: 1.043 MB / 0.5154 GB, free: 4.766 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.3833/0.9879, allocations: 17.21 MB / 0.5322 GB, free: 111.3 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006613/0.9886, allocations: 19.72 kB / 0.5322 GB, free: 111.3 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005441/0.9941, allocations: 441 kB / 0.5326 GB, free: 111 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001692/0.9958, allocations: 0.6346 MB / 0.5333 GB, free: 110.9 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03471/1.031, allocations: 16.3 MB / 0.5492 GB, free: 104.5 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09234/1.123, allocations: 55.15 MB / 0.603 GB, free: 53.81 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02208/1.145, allocations: 31.08 MB / 0.6334 GB, free: 19.07 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006449/1.152, allocations: 4.336 MB / 0.6376 GB, free: 14.75 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02044/1.172, allocations: 10.42 MB / 0.6478 GB, free: 4.355 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.181e-05/1.172, allocations: 77.81 kB / 0.6479 GB, free: 4.27 MB / 430.1 MB Notification: Performance of pre-optimization done (n=398): time 4.939e-06/1.172, allocations: 0 / 0.6479 GB, free: 4.27 MB / 430.1 MB Notification: Performance of matching and sorting (n=423): time 0.04969/1.222, allocations: 21.56 MB / 0.6689 GB, free: 14.34 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.549e-05/1.222, allocations: 128.7 kB / 0.6691 GB, free: 14.19 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01203/1.234, allocations: 4.673 MB / 0.6736 GB, free: 9.508 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001116/1.235, allocations: 97.7 kB / 0.6737 GB, free: 9.406 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003887/1.239, allocations: 4.66 MB / 0.6783 GB, free: 4.715 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00221/1.241, allocations: 1.447 MB / 0.6797 GB, free: 3.281 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003657/1.245, allocations: 1.128 MB / 0.6808 GB, free: 2.141 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001316/1.245, allocations: 309.1 kB / 0.6811 GB, free: 1.836 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004473/1.25, allocations: 2.905 MB / 0.6839 GB, free: 14.93 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005664/1.255, allocations: 4.945 MB / 0.6887 GB, free: 9.051 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.2194/1.475, allocations: 8.334 MB / 0.6969 GB, free: 143.5 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.357e-05/1.475, allocations: 18.5 kB / 0.6969 GB, free: 143.5 MB / 478.1 MB Notification: Performance of matching and sorting (n=764) (initialization): time 0.01947/1.494, allocations: 9.732 MB / 0.7064 GB, free: 141.7 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.383e-05/1.494, allocations: 33.34 kB / 0.7064 GB, free: 141.7 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001178/1.494, allocations: 65.94 kB / 0.7065 GB, free: 141.7 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00463/1.499, allocations: 1.646 MB / 0.7081 GB, free: 141.3 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005432/1.505, allocations: 1.319 MB / 0.7094 GB, free: 141.2 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02092/1.525, allocations: 17.75 MB / 0.7267 GB, free: 129.9 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004772/1.53, allocations: 334.3 kB / 0.727 GB, free: 129.8 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000627/1.531, allocations: 284.2 kB / 0.7273 GB, free: 129.7 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 296 * 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 (671): * Single equations (assignments): 667 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(1,1,100.0%), (7,28,61.2%), (1,1,100.0%), (14,44,39.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.005925/1.537, allocations: 3.884 MB / 0.7311 GB, free: 127.8 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001055/1.538, allocations: 0.4942 MB / 0.7316 GB, free: 127.8 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01152/1.549, allocations: 7.78 MB / 0.7392 GB, free: 124.4 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.877e-05/1.549, allocations: 42.56 kB / 0.7392 GB, free: 124.4 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.039e-05/1.55, allocations: 15.19 kB / 0.7392 GB, free: 124.4 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.814e-05/1.55, allocations: 22.03 kB / 0.7393 GB, free: 124.4 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02521/1.575, allocations: 17.45 MB / 0.7563 GB, free: 116.9 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.859e-05/1.575, allocations: 13.56 kB / 0.7563 GB, free: 116.9 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002796/1.578, allocations: 0.7261 MB / 0.757 GB, free: 116.9 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00367/1.581, allocations: 1.546 MB / 0.7585 GB, free: 116.4 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004009/1.582, allocations: 107.4 kB / 0.7586 GB, free: 116.3 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01791/1.6, allocations: 21.21 MB / 0.7794 GB, free: 95.05 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.43e-06/1.6, allocations: 8 kB / 0.7794 GB, free: 95.04 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01428/1.614, allocations: 11.44 MB / 0.7905 GB, free: 83.55 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003044/1.617, allocations: 1.143 MB / 0.7917 GB, free: 82.39 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006911/1.618, allocations: 95.92 kB / 0.7917 GB, free: 82.29 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002227/1.62, allocations: 227.8 kB / 0.792 GB, free: 82.07 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007106/1.621, allocations: 331.3 kB / 0.7923 GB, free: 81.75 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002427/1.621, allocations: 128 kB / 0.7924 GB, free: 81.62 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.003889/1.625, allocations: 3.169 MB / 0.7955 GB, free: 78.45 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.4e-07/1.625, allocations: 0 / 0.7955 GB, free: 78.45 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.005628/1.63, allocations: 1.862 MB / 0.7973 GB, free: 76.59 MB / 478.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 27 * Number of states: 10 (imcQS.inertiaRotor.w,imcQS.rotorCage.port_p.reference.gamma,loadInertiaQS.phi,imc.inertiaRotor.w,imc.stator.zeroInductor.i0,imc.stator.core.Phi.re,imc.stator.core.Phi.im,imc.stator.stray.Phi.re,imc.stator.stray.Phi.im,loadInertia.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 (364): * Single equations (assignments): 357 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 7 systems {(1,1,100.0%), (14,44,41.3%), (2,12,100.0%), (1,1,100.0%), (1,12,100.0%), (1,5,100.0%), (1,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.000544/1.631, allocations: 295.3 kB / 0.7976 GB, free: 76.32 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.01061/1.642, allocations: 8.143 MB / 0.8055 GB, free: 68.12 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 7.424e-06/1.642, allocations: 4 kB / 0.8055 GB, free: 68.12 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005718/1.647, allocations: 4.634 MB / 0.8101 GB, free: 63.4 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004975/1.652, allocations: 1.302 MB / 0.8113 GB, free: 62.13 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.028/1.68, allocations: 19.11 MB / 0.83 GB, free: 42.93 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005887/1.686, allocations: 6.768 MB / 0.8366 GB, free: 36.12 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.004799/1.691, allocations: 1.861 MB / 0.8384 GB, free: 34.25 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009665/1.692, allocations: 375.4 kB / 0.8388 GB, free: 33.89 MB / 478.1 MB Notification: Performance of SimCode: time 1.112e-06/1.692, allocations: 3.938 kB / 0.8388 GB, free: 33.88 MB / 478.1 MB Notification: Performance of Templates: time 0.3914/2.084, allocations: 78.51 MB / 0.9155 GB, free: 119.2 MB / 478.1 MB make -j1 -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize.makefile (rm -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize.sim & ./Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/QuasiStatic/FundamentalWave/Examples/BasicMachines/InductionMachines/IMC_Initialize/IMC_Initialize.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches