Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Electrical.DC.Loads.Examples.VariableLoad.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/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) 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(Buildings.Electrical.DC.Loads.Examples.VariableLoad,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|loa1.i.1.|loa2.i.1.|loa3.i.1.",fileNamePrefix="Buildings_9_Buildings.Electrical.DC.Loads.Examples.VariableLoad") translateModel(Buildings.Electrical.DC.Loads.Examples.VariableLoad,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|loa1.i.1.|loa2.i.1.|loa3.i.1.",fileNamePrefix="Buildings_9_Buildings.Electrical.DC.Loads.Examples.VariableLoad") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00113/0.001129, allocations: 106.5 kB / 16.35 MB, free: 5.824 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.001197/0.001197, allocations: 189.4 kB / 17.29 MB, free: 5.48 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.418/1.418, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.189/2.189, allocations: 390.3 MB / 0.6655 GB, free: 0.5938 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001468/0.001468, allocations: 61.89 kB / 0.814 GB, free: 32.64 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2603/0.2618, allocations: 140.4 MB / 0.9511 GB, free: 8.062 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Loads.Examples.VariableLoad): time 0.006148/0.268, allocations: 3.875 MB / 0.9549 GB, free: 4.176 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.002944/0.271, allocations: 1.769 MB / 0.9566 GB, free: 2.398 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003059/0.2713, allocations: 8 kB / 0.9566 GB, free: 2.391 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.001441/0.2728, allocations: 446.1 kB / 0.957 GB, free: 1.953 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.0006795/0.2735, allocations: 246.8 kB / 0.9573 GB, free: 1.711 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006998/0.2742, allocations: 251.5 kB / 0.9575 GB, free: 1.465 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0007134/0.2749, allocations: 0.4945 MB / 0.958 GB, free: 0.9688 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006239/0.2756, allocations: 360.8 kB / 0.9584 GB, free: 0.6133 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003175/0.2759, allocations: 199.3 kB / 0.9585 GB, free: 428 kB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004711/0.2764, allocations: 231.2 kB / 0.9588 GB, free: 196 kB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 5.776e-05/0.2764, allocations: 28 kB / 0.9588 GB, free: 168 kB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003764/0.2768, allocations: 187.6 kB / 0.959 GB, free: 15.98 MB / 0.7481 GB Notification: Performance of NFScalarize.scalarize: time 0.0001523/0.277, allocations: 131.7 kB / 0.9591 GB, free: 15.85 MB / 0.7481 GB Notification: Performance of NFVerifyModel.verify: time 0.0001983/0.2772, allocations: 179.1 kB / 0.9593 GB, free: 15.68 MB / 0.7481 GB Notification: Performance of NFConvertDAE.convert: time 0.0006207/0.2778, allocations: 498.4 kB / 0.9597 GB, free: 15.19 MB / 0.7481 GB Notification: Performance of FrontEnd - DAE generated: time 5.45e-06/0.2778, allocations: 0 / 0.9597 GB, free: 15.19 MB / 0.7481 GB Notification: Performance of FrontEnd: time 1.423e-06/0.2778, allocations: 0 / 0.9597 GB, free: 15.19 MB / 0.7481 GB Notification: Performance of Transformations before backend: time 1.567e-05/0.2779, allocations: 4 kB / 0.9597 GB, free: 15.18 MB / 0.7481 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 82 * Number of variables: 82 Notification: Performance of Generate backend data structure: time 0.00125/0.2791, allocations: 0.651 MB / 0.9604 GB, free: 14.48 MB / 0.7481 GB Notification: Performance of prepare preOptimizeDAE: time 3.947e-05/0.2792, allocations: 8.031 kB / 0.9604 GB, free: 14.48 MB / 0.7481 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006/0.2798, allocations: 92.41 kB / 0.9605 GB, free: 14.39 MB / 0.7481 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005055/0.2803, allocations: 295.6 kB / 0.9608 GB, free: 14.06 MB / 0.7481 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.17e-05/0.2803, allocations: 25.02 kB / 0.9608 GB, free: 14.04 MB / 0.7481 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.96e-05/0.2804, allocations: 28.38 kB / 0.9608 GB, free: 14.01 MB / 0.7481 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008439/0.2812, allocations: 494 kB / 0.9613 GB, free: 13.5 MB / 0.7481 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.665e-05/0.2813, allocations: 7.922 kB / 0.9613 GB, free: 13.49 MB / 0.7481 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.783e-05/0.2813, allocations: 15.98 kB / 0.9613 GB, free: 13.47 MB / 0.7481 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.438e-05/0.2814, allocations: 36.64 kB / 0.9613 GB, free: 13.44 MB / 0.7481 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007808/0.2822, allocations: 366.3 kB / 0.9617 GB, free: 13.08 MB / 0.7481 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002366/0.2846, allocations: 2.037 MB / 0.9637 GB, free: 10.84 MB / 0.7481 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005592/0.2851, allocations: 206.8 kB / 0.9639 GB, free: 10.63 MB / 0.7481 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003792/0.2855, allocations: 156.8 kB / 0.964 GB, free: 10.47 MB / 0.7481 GB Notification: Performance of preOpt evalFunc (simulation): time 3.092e-05/0.2856, allocations: 7.984 kB / 0.964 GB, free: 10.46 MB / 0.7481 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.405e-05/0.2856, allocations: 34.56 kB / 0.9641 GB, free: 10.42 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=18): time 2.194e-06/0.2856, allocations: 3.938 kB / 0.9641 GB, free: 10.42 MB / 0.7481 GB Notification: Performance of matching and sorting (n=18): time 0.001082/0.2867, allocations: 417.1 kB / 0.9645 GB, free: 9.984 MB / 0.7481 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.645e-05/0.2867, allocations: 55.41 kB / 0.9645 GB, free: 9.918 MB / 0.7481 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002827/0.287, allocations: 270.5 kB / 0.9648 GB, free: 9.641 MB / 0.7481 GB Notification: Performance of collectPreVariables (initialization): time 2.525e-05/0.2871, allocations: 29.7 kB / 0.9648 GB, free: 9.605 MB / 0.7481 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001369/0.2872, allocations: 203.8 kB / 0.965 GB, free: 9.402 MB / 0.7481 GB Notification: Performance of collectInitialBindings (initialization): time 5.213e-05/0.2873, allocations: 67.05 kB / 0.9651 GB, free: 9.336 MB / 0.7481 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.653e-05/0.2874, allocations: 57.89 kB / 0.9651 GB, free: 9.27 MB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 0.0001329/0.2875, allocations: 338.8 kB / 0.9654 GB, free: 8.93 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002493/0.2878, allocations: 101.8 kB / 0.9655 GB, free: 8.828 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003412/0.2881, allocations: 203.6 kB / 0.9657 GB, free: 8.578 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005677/0.2887, allocations: 311.6 kB / 0.966 GB, free: 8.227 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.983e-06/0.2887, allocations: 11.88 kB / 0.966 GB, free: 8.215 MB / 0.7481 GB Notification: Performance of matching and sorting (n=33) (initialization): time 0.000802/0.2895, allocations: 349.8 kB / 0.9664 GB, free: 7.863 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 2.14e-05/0.2896, allocations: 10.34 kB / 0.9664 GB, free: 7.855 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.356e-05/0.2896, allocations: 4 kB / 0.9664 GB, free: 7.852 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002368/0.2898, allocations: 37.3 kB / 0.9664 GB, free: 7.812 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000278/0.2901, allocations: 67.89 kB / 0.9665 GB, free: 7.746 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001328/0.2914, allocations: 1.437 MB / 0.9679 GB, free: 6.168 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002627/0.2917, allocations: 43.75 kB / 0.9679 GB, free: 6.125 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.6e-05/0.2918, allocations: 20 kB / 0.968 GB, free: 6.105 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0003673/0.2921, allocations: 216.1 kB / 0.9682 GB, free: 5.895 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0002999/0.2924, allocations: 217 kB / 0.9684 GB, free: 5.625 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0005145/0.293, allocations: 322.6 kB / 0.9687 GB, free: 5.258 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.525e-06/0.293, allocations: 4 kB / 0.9687 GB, free: 5.254 MB / 0.7481 GB Notification: Performance of matching and sorting (n=33) (initialization_lambda0): time 0.000664/0.2937, allocations: 337.1 kB / 0.969 GB, free: 4.918 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 1.21e-05/0.2937, allocations: 8 kB / 0.969 GB, free: 4.91 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.413e-06/0.2937, allocations: 4 kB / 0.969 GB, free: 4.906 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.342e-06/0.2937, allocations: 4 kB / 0.969 GB, free: 4.902 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002729/0.294, allocations: 75.89 kB / 0.9691 GB, free: 4.828 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.806e-06/0.294, allocations: 7.938 kB / 0.9691 GB, free: 4.82 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002605/0.2943, allocations: 39.72 kB / 0.9691 GB, free: 4.781 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.214e-05/0.2943, allocations: 20.16 kB / 0.9691 GB, free: 4.762 MB / 0.7481 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * 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 (32): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * 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): 1 system {(1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0001475/0.2945, allocations: 201.2 kB / 0.9693 GB, free: 4.559 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.638e-05/0.2945, allocations: 23.72 kB / 0.9694 GB, free: 4.535 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.43e-05/0.2946, allocations: 30.17 kB / 0.9694 GB, free: 4.512 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.365e-06/0.2946, allocations: 0 / 0.9694 GB, free: 4.512 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.031e-06/0.2946, allocations: 4 kB / 0.9694 GB, free: 4.508 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.957e-06/0.2946, allocations: 0 / 0.9694 GB, free: 4.508 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001257/0.2959, allocations: 0.7499 MB / 0.9701 GB, free: 3.68 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.346e-06/0.2959, allocations: 0 / 0.9701 GB, free: 3.68 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002098/0.2961, allocations: 39.97 kB / 0.9702 GB, free: 3.641 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001237/0.2963, allocations: 36.84 kB / 0.9702 GB, free: 3.602 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.68e-05/0.2963, allocations: 0 / 0.9702 GB, free: 3.602 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001044/0.2973, allocations: 1.414 MB / 0.9716 GB, free: 2.043 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.45e-06/0.2973, allocations: 7.969 kB / 0.9716 GB, free: 2.035 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006374/0.298, allocations: 362.7 kB / 0.9719 GB, free: 1.656 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000136/0.2981, allocations: 120.8 kB / 0.9721 GB, free: 1.52 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.503e-05/0.2982, allocations: 11.94 kB / 0.9721 GB, free: 1.508 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001969/0.2984, allocations: 19.98 kB / 0.9721 GB, free: 1.488 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.524e-05/0.2985, allocations: 23.91 kB / 0.9721 GB, free: 1.465 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.666e-05/0.2985, allocations: 7.938 kB / 0.9721 GB, free: 1.457 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 0.0001743/0.2987, allocations: 182 kB / 0.9723 GB, free: 1.277 MB / 0.7481 GB Notification: Performance of sort global known variables: time 1.6e-07/0.2987, allocations: 0 / 0.9723 GB, free: 1.277 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.0006209/0.2993, allocations: 147.5 kB / 0.9724 GB, free: 1.133 MB / 0.7481 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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 simulation (18): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * 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): 1 system {(1,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001178/0.2994, allocations: 99.25 kB / 0.9725 GB, free: 1.027 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.001267/0.3007, allocations: 0.4887 MB / 0.973 GB, free: 0.5312 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 4.268e-06/0.3007, allocations: 0 / 0.973 GB, free: 0.5312 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.0004036/0.3011, allocations: 214.6 kB / 0.9732 GB, free: 316 kB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005107/0.3016, allocations: 74.95 kB / 0.9733 GB, free: 244 kB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001047/0.3027, allocations: 0.5449 MB / 0.9738 GB, free: 15.66 MB / 0.7637 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004005/0.3031, allocations: 0.8035 MB / 0.9746 GB, free: 14.82 MB / 0.7637 GB Notification: Performance of simCode: alias equations: time 0.0002235/0.3033, allocations: 70.22 kB / 0.9747 GB, free: 14.75 MB / 0.7637 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.524e-05/0.3034, allocations: 23.42 kB / 0.9747 GB, free: 14.73 MB / 0.7637 GB Notification: Performance of SimCode: time 6.31e-07/0.3034, allocations: 0 / 0.9747 GB, free: 14.73 MB / 0.7637 GB Notification: Performance of Templates: time 0.00791/0.3113, allocations: 3.51 MB / 0.9781 GB, free: 11.26 MB / 0.7637 GB make -j1 -f Buildings_9_Buildings.Electrical.DC.Loads.Examples.VariableLoad.makefile (rm -f Buildings_9_Buildings.Electrical.DC.Loads.Examples.VariableLoad.pipe ; mkfifo Buildings_9_Buildings.Electrical.DC.Loads.Examples.VariableLoad.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.DC.Loads.Examples.VariableLoad.pipe >> ../files/Buildings_9_Buildings.Electrical.DC.Loads.Examples.VariableLoad.sim & ./Buildings_9_Buildings.Electrical.DC.Loads.Examples.VariableLoad -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.DC.Loads.Examples.VariableLoad.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.DC.Loads.Examples.VariableLoad_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_DC_Loads_Examples_VariableLoad.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Electrical.DC.Loads.Examples.VariableLoad.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches