Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank1.medium.T|tank1.aboveLevel.1.|tank1.aboveLevel.2.",fileNamePrefix="Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2") translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank1.medium.T|tank1.aboveLevel.1.|tank1.aboveLevel.2.",fileNamePrefix="Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0018/0.0018, allocations: 103.7 kB / 17.63 MB, free: 5.52 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002098/0.002098, allocations: 208.6 kB / 18.58 MB, free: 4.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.468/1.468, allocations: 227.4 MB / 246.8 MB, free: 10.61 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001872/0.001872, allocations: 64.3 kB / 307 MB, free: 0.6289 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1012/0.1031, allocations: 50.54 MB / 357.5 MB, free: 14.09 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2): time 0.176/0.2792, allocations: 21.91 MB / 379.4 MB, free: 9.035 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01205/0.2912, allocations: 10 MB / 389.5 MB, free: 3.355 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001187/0.2925, allocations: 31.91 kB / 389.5 MB, free: 3.34 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001286/0.2938, allocations: 401.6 kB / 389.9 MB, free: 3.102 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003971/0.2978, allocations: 1.436 MB / 391.3 MB, free: 2.312 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007389/0.3052, allocations: 2.622 MB / 393.9 MB, free: 1.152 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003533/0.3087, allocations: 2.57 MB / 396.5 MB, free: 15.94 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001083/0.3099, allocations: 0.662 MB / 397.2 MB, free: 15.49 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001907/0.3118, allocations: 0.9846 MB / 398.1 MB, free: 14.95 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001584/0.3134, allocations: 0.976 MB / 399.1 MB, free: 14.39 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001878/0.3136, allocations: 91.19 kB / 399.2 MB, free: 14.39 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004066/0.3176, allocations: 1.746 MB / 401 MB, free: 13.44 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004716/0.3181, allocations: 363.7 kB / 401.3 MB, free: 13.19 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007065/0.3189, allocations: 0.5379 MB / 401.9 MB, free: 12.84 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003983/0.3228, allocations: 2.489 MB / 404.3 MB, free: 11.26 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.687e-06/0.3229, allocations: 3.938 kB / 404.3 MB, free: 11.26 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.3229, allocations: 0 / 404.3 MB, free: 11.26 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.18e-05/0.3229, allocations: 0 / 404.3 MB, free: 11.26 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: 164 * Number of variables: 164 Notification: Performance of Generate backend data structure: time 0.003085/0.326, allocations: 1.499 MB / 405.8 MB, free: 10.12 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.486e-05/0.326, allocations: 10.88 kB / 405.9 MB, free: 10.12 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004174/0.3264, allocations: 120.3 kB / 406 MB, free: 10.06 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001129/0.3276, allocations: 0.6758 MB / 406.6 MB, free: 9.5 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.147e-05/0.3276, allocations: 51.89 kB / 406.7 MB, free: 9.477 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001093/0.3278, allocations: 60.42 kB / 406.8 MB, free: 9.457 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001707/0.3295, allocations: 1.067 MB / 407.8 MB, free: 8.77 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.026e-05/0.3295, allocations: 5.438 kB / 407.8 MB, free: 8.766 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.137e-05/0.3296, allocations: 27.83 kB / 407.9 MB, free: 8.746 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.292e-05/0.3297, allocations: 74.92 kB / 407.9 MB, free: 8.719 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001668/0.3314, allocations: 1.03 MB / 409 MB, free: 8.09 MB / 318.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006979/0.3384, allocations: 4.438 MB / 413.4 MB, free: 3.379 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001056/0.3395, allocations: 0.5755 MB / 414 MB, free: 2.793 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005177/0.34, allocations: 318 kB / 414.3 MB, free: 2.48 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002607/0.3426, allocations: 1.977 MB / 416.3 MB, free: 300 kB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.36e-05/0.3426, allocations: 38.89 kB / 416.3 MB, free: 252 kB / 318.1 MB Notification: Performance of pre-optimization done (n=40): time 2.094e-06/0.3427, allocations: 0 / 416.3 MB, free: 252 kB / 318.1 MB Notification: Performance of matching and sorting (n=45): time 0.004781/0.3474, allocations: 1.955 MB / 418.3 MB, free: 14.2 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000146/0.3476, allocations: 158.2 kB / 418.4 MB, free: 14 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001295/0.3489, allocations: 0.9273 MB / 419.3 MB, free: 13.05 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 6.246e-05/0.349, allocations: 37.7 kB / 419.4 MB, free: 13.01 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004402/0.3494, allocations: 490.8 kB / 419.9 MB, free: 12.52 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001675/0.3496, allocations: 161.8 kB / 420 MB, free: 12.36 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003121/0.3499, allocations: 186.5 kB / 420.2 MB, free: 12.18 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001739/0.3501, allocations: 342 kB / 420.5 MB, free: 11.84 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005816/0.3507, allocations: 336.7 kB / 420.9 MB, free: 11.5 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008638/0.3516, allocations: 0.6212 MB / 421.5 MB, free: 10.75 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001298/0.3529, allocations: 0.8903 MB / 422.4 MB, free: 9.734 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.166e-06/0.3529, allocations: 0 / 422.4 MB, free: 9.734 MB / 334.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.001978/0.3549, allocations: 1.121 MB / 423.5 MB, free: 8.602 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.242e-05/0.3549, allocations: 11.94 kB / 423.5 MB, free: 8.59 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.372e-05/0.3549, allocations: 8 kB / 423.5 MB, free: 8.582 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002491/0.3574, allocations: 381.5 kB / 423.9 MB, free: 8.203 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007092/0.3581, allocations: 187.7 kB / 424.1 MB, free: 8.02 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001388/0.3595, allocations: 1.347 MB / 425.4 MB, free: 6.621 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007168/0.3603, allocations: 39.98 kB / 425.4 MB, free: 6.582 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.584e-05/0.3604, allocations: 43.98 kB / 425.5 MB, free: 6.539 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0009008/0.3613, allocations: 0.518 MB / 426 MB, free: 6.016 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0008609/0.3621, allocations: 0.6233 MB / 426.6 MB, free: 5.254 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001315/0.3635, allocations: 0.8753 MB / 427.5 MB, free: 4.25 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.49e-06/0.3635, allocations: 4 kB / 427.5 MB, free: 4.246 MB / 334.1 MB Notification: Performance of matching and sorting (n=110) (initialization_lambda0): time 0.001951/0.3654, allocations: 1.093 MB / 428.6 MB, free: 3.137 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.81e-05/0.3655, allocations: 12 kB / 428.6 MB, free: 3.125 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.011e-05/0.3655, allocations: 8 kB / 428.6 MB, free: 3.117 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002255/0.3677, allocations: 338 kB / 429 MB, free: 2.781 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006352/0.3684, allocations: 180.4 kB / 429.1 MB, free: 2.605 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001278/0.3697, allocations: 1.315 MB / 430.4 MB, free: 1.238 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00069/0.3704, allocations: 39.98 kB / 430.5 MB, free: 1.199 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.816e-05/0.3705, allocations: 43.98 kB / 430.5 MB, free: 1.156 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 40 * Number of states: 0 () * Number of discrete variables: 6 (tank1.aboveLevel[2],$PRE.tank1.aboveLevel[2],tank1.aboveLevel[1],$PRE.tank1.aboveLevel[1],tank1.ports_m_flow_out[2],tank1.ports_m_flow_out[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (104): * Single equations (assignments): 102 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,3), (1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.0003153/0.3708, allocations: 244.4 kB / 430.8 MB, free: 0.9102 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000178/0.371, allocations: 95.92 kB / 430.9 MB, free: 0.8164 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001766/0.3728, allocations: 0.8071 MB / 431.7 MB, free: 4 kB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.173e-06/0.3728, allocations: 4 kB / 431.7 MB, free: 0 / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.594e-06/0.3728, allocations: 0 / 431.7 MB, free: 0 / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.388e-05/0.3728, allocations: 4.047 kB / 431.7 MB, free: 15.99 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002725/0.3756, allocations: 1.598 MB / 433.3 MB, free: 14.33 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.256e-06/0.3756, allocations: 0 / 433.3 MB, free: 14.33 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003725/0.3759, allocations: 71.91 kB / 433.3 MB, free: 14.26 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001405/0.3774, allocations: 273.5 kB / 433.6 MB, free: 13.98 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.892e-05/0.3774, allocations: 12 kB / 433.6 MB, free: 13.97 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001203/0.3786, allocations: 1.308 MB / 434.9 MB, free: 12.61 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/0.3786, allocations: 0 / 434.9 MB, free: 12.61 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0018/0.3804, allocations: 1.083 MB / 436 MB, free: 11.5 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002253/0.3807, allocations: 168 kB / 436.2 MB, free: 11.31 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001357/0.3808, allocations: 12 kB / 436.2 MB, free: 11.3 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005057/0.3813, allocations: 24.05 kB / 436.2 MB, free: 11.28 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001203/0.3815, allocations: 52.36 kB / 436.3 MB, free: 11.23 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.572e-05/0.3815, allocations: 23.98 kB / 436.3 MB, free: 11.2 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0009373/0.3825, allocations: 0.6481 MB / 436.9 MB, free: 10.54 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3825, allocations: 0 / 436.9 MB, free: 10.54 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.002005/0.3845, allocations: 0.7613 MB / 437.7 MB, free: 9.781 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (tank1.level,tank1.medium.T) * Number of discrete variables: 2 (tank1.aboveLevel[1],tank1.aboveLevel[2]) * Number of discrete states: 2 (tank1.aboveLevel[1],tank1.aboveLevel[2]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (43): * Single equations (assignments): 41 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,6), (1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001545/0.3861, allocations: 0.6098 MB / 438.3 MB, free: 9.168 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002914/0.389, allocations: 1.353 MB / 439.7 MB, free: 7.82 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.469e-06/0.389, allocations: 0 / 439.7 MB, free: 7.82 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007063/0.3897, allocations: 330.3 kB / 440 MB, free: 7.5 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001899/0.3916, allocations: 418.9 kB / 440.4 MB, free: 7.105 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002867/0.3945, allocations: 1.731 MB / 442.1 MB, free: 5.34 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007491/0.3953, allocations: 1.041 MB / 443.2 MB, free: 4.266 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.001161/0.3964, allocations: 370.4 kB / 443.5 MB, free: 3.914 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001975/0.3966, allocations: 75.42 kB / 443.6 MB, free: 3.844 MB / 350.1 MB Notification: Performance of SimCode: time 5.01e-07/0.3966, allocations: 0 / 443.6 MB, free: 3.844 MB / 350.1 MB Notification: Performance of Templates: time 0.04386/0.4405, allocations: 25.1 MB / 468.7 MB, free: 10.89 MB / 382.1 MB make -j1 -f Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.makefile (rm -f Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.pipe ; mkfifo Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.pipe >> ../files/Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.sim & ./Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Fluid/Examples/AST_BatchPlant/Test/TankWithEmptyingPipe2/TankWithEmptyingPipe2.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches