Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute.phi|revolute.w|rotor1D.phi|rotor1D.w",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2") translateModel(ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute.phi|revolute.w|rotor1D.phi|rotor1D.w",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001053/0.001053, allocations: 198.7 kB / 17.43 MB, free: 4.27 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.273/1.273, allocations: 229.5 MB / 247.7 MB, free: 6.332 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007053/0.0007053, allocations: 90.62 kB / 299.8 MB, free: 5.348 MB / 234.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.325/0.325, allocations: 45 MB / 397 MB, free: 31.49 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002702/0.0002704, allocations: 8 kB / 470.8 MB, free: 7.098 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2809/0.2811, allocations: 63.1 MB / 0.5214 GB, free: 38.41 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2): time 0.0351/0.3163, allocations: 45.15 MB / 0.5655 GB, free: 6.461 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.02507/0.3414, allocations: 13.19 MB / 0.5783 GB, free: 11.89 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.009102/0.3505, allocations: 208.5 kB / 0.5785 GB, free: 11.72 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001625/0.3522, allocations: 410 kB / 0.5789 GB, free: 11.32 MB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005271/0.3575, allocations: 1.693 MB / 0.5806 GB, free: 9.621 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001661/0.3591, allocations: 0.5226 MB / 0.5811 GB, free: 9.098 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.007027/0.3662, allocations: 5.322 MB / 0.5863 GB, free: 3.762 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008517/0.3748, allocations: 6.161 MB / 0.5923 GB, free: 13.25 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002846/0.3777, allocations: 1.19 MB / 0.5935 GB, free: 12.06 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003369/0.3811, allocations: 1.829 MB / 0.5953 GB, free: 10.22 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001144/0.3822, allocations: 132 kB / 0.5954 GB, free: 10.09 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002634/0.3849, allocations: 0.9007 MB / 0.5963 GB, free: 9.191 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002324/0.3873, allocations: 1.605 MB / 0.5978 GB, free: 7.582 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003322/0.3906, allocations: 1.896 MB / 0.5997 GB, free: 5.668 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.008294/0.3989, allocations: 6.329 MB / 0.6059 GB, free: 15.32 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.921e-06/0.399, allocations: 4 kB / 0.6059 GB, free: 15.31 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.034e-06/0.399, allocations: 0 / 0.6059 GB, free: 15.31 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0002621/0.3992, allocations: 3.938 kB / 0.6059 GB, free: 15.31 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: 1442 * Number of variables: 1442 Notification: Performance of Generate backend data structure: time 0.01517/0.4144, allocations: 4.252 MB / 0.61 GB, free: 10.99 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.247e-05/0.4145, allocations: 8.031 kB / 0.61 GB, free: 10.98 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00676/0.4213, allocations: 1.941 MB / 0.6119 GB, free: 9.035 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005306/0.4266, allocations: 2.221 MB / 0.6141 GB, free: 6.754 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002258/0.4269, allocations: 229.8 kB / 0.6143 GB, free: 6.527 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001213/0.4281, allocations: 311.8 kB / 0.6146 GB, free: 6.223 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02026/0.4484, allocations: 10.22 MB / 0.6246 GB, free: 11.36 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001882/0.4486, allocations: 43.59 kB / 0.6246 GB, free: 11.31 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009224/0.4495, allocations: 143.9 kB / 0.6248 GB, free: 11.17 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0031/0.4527, allocations: 1.868 MB / 0.6266 GB, free: 9.301 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01863/0.4713, allocations: 9.168 MB / 0.6356 GB, free: 112 kB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04555/0.5169, allocations: 37.6 MB / 0.6723 GB, free: 9.426 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01221/0.5292, allocations: 3.717 MB / 0.6759 GB, free: 5.559 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002461/0.5317, allocations: 1.708 MB / 0.6776 GB, free: 3.84 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0009801/0.5327, allocations: 0.6824 MB / 0.6782 GB, free: 3.047 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.058e-05/0.5328, allocations: 51.06 kB / 0.6783 GB, free: 2.988 MB / 490.7 MB Notification: Performance of pre-optimization done (n=130): time 5.24e-06/0.5328, allocations: 0 / 0.6783 GB, free: 2.988 MB / 490.7 MB Notification: Performance of matching and sorting (n=136): time 0.2587/0.7915, allocations: 12.93 MB / 0.6909 GB, free: 130.2 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.252e-05/0.7916, allocations: 150.3 kB / 0.6911 GB, free: 130.1 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004148/0.7958, allocations: 3.948 MB / 0.6949 GB, free: 128.7 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001503/0.7959, allocations: 48.39 kB / 0.695 GB, free: 128.6 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001695/0.7976, allocations: 3.006 MB / 0.6979 GB, free: 126.3 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004412/0.7981, allocations: 0.5447 MB / 0.6984 GB, free: 125.9 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001761/0.7983, allocations: 113.4 kB / 0.6985 GB, free: 125.8 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0002472/0.7985, allocations: 0.5382 MB / 0.6991 GB, free: 125.4 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002553/0.8011, allocations: 1.919 MB / 0.7009 GB, free: 124.8 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00425/0.8053, allocations: 5.521 MB / 0.7063 GB, free: 119.4 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007366/0.8127, allocations: 8.07 MB / 0.7142 GB, free: 112.5 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.664e-05/0.8128, allocations: 36.31 kB / 0.7142 GB, free: 112.5 MB / 490.7 MB Notification: Performance of matching and sorting (n=723) (initialization): time 0.01252/0.8254, allocations: 7.917 MB / 0.722 GB, free: 109.6 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.745e-05/0.8254, allocations: 57.62 kB / 0.722 GB, free: 109.6 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001073/0.8256, allocations: 131.5 kB / 0.7221 GB, free: 109.6 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002002/0.8276, allocations: 0.9083 MB / 0.723 GB, free: 109.5 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003097/0.8307, allocations: 1.297 MB / 0.7243 GB, free: 109.3 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004874/0.8356, allocations: 4.852 MB / 0.729 GB, free: 106.7 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003712/0.8393, allocations: 310.1 kB / 0.7293 GB, free: 106.6 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004616/0.8398, allocations: 357.9 kB / 0.7297 GB, free: 106.5 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 582 * Number of states: 0 () * Number of discrete variables: 38 (torque.torqueArrow.arrowLine.twoHeadedArrow,torque.torqueArrow.headAtOrigin,rotor1D.cylinderColor[3],rotor1D.cylinderColor[2],rotor1D.cylinderColor[1],fixed.color[3],fixed.color[2],fixed.color[1],torque.connectionLineColor[3],torque.connectionLineColor[2],torque.connectionLineColor[1],torque.torqueColor[3],torque.torqueColor[2],torque.torqueColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],bodyCylinder.color[3],bodyCylinder.color[2],bodyCylinder.color[1],bodyCylinder.body.sphereColor[3],bodyCylinder.body.sphereColor[2],bodyCylinder.body.sphereColor[1],bodyCylinder.frameTranslation.color[3],bodyCylinder.frameTranslation.color[2],bodyCylinder.frameTranslation.color[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (684): * Single equations (assignments): 680 * Array equations: 3 * 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): 1 system {(3,13,77.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002551/0.8423, allocations: 1.987 MB / 0.7316 GB, free: 104.9 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004614/0.8428, allocations: 327.7 kB / 0.7319 GB, free: 104.5 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004113/0.8469, allocations: 2.8 MB / 0.7347 GB, free: 102 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.43e-05/0.8469, allocations: 17.25 kB / 0.7347 GB, free: 102 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.485e-05/0.847, allocations: 8.609 kB / 0.7347 GB, free: 102 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.174e-05/0.847, allocations: 7.984 kB / 0.7347 GB, free: 102 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01001/0.857, allocations: 7.265 MB / 0.7418 GB, free: 94.71 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.202e-05/0.857, allocations: 0 / 0.7418 GB, free: 94.71 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001063/0.8581, allocations: 259.8 kB / 0.742 GB, free: 94.46 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001931/0.8601, allocations: 0.7146 MB / 0.7427 GB, free: 93.74 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.848e-05/0.8602, allocations: 35.97 kB / 0.7428 GB, free: 93.71 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004299/0.8645, allocations: 4.422 MB / 0.7471 GB, free: 89.16 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.907e-06/0.8645, allocations: 7.938 kB / 0.7471 GB, free: 89.15 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005686/0.8702, allocations: 5.124 MB / 0.7521 GB, free: 84 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009222/0.8711, allocations: 396.7 kB / 0.7525 GB, free: 83.59 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003026/0.8714, allocations: 27.94 kB / 0.7525 GB, free: 83.56 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001063/0.8725, allocations: 84.5 kB / 0.7526 GB, free: 83.48 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002402/0.8728, allocations: 88.53 kB / 0.7527 GB, free: 83.39 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.902e-05/0.8729, allocations: 53.53 kB / 0.7527 GB, free: 83.34 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.003074/0.8759, allocations: 2.454 MB / 0.7551 GB, free: 80.91 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.876, allocations: 0 / 0.7551 GB, free: 80.91 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.004041/0.88, allocations: 0.9021 MB / 0.756 GB, free: 80.01 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 4 (revolute.phi,revolute.w,rotor1D.phi,rotor1D.w) * 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 (104): * Single equations (assignments): 100 * Array equations: 3 * 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): 1 system {(1,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.0003061/0.8803, allocations: 159.8 kB / 0.7562 GB, free: 79.86 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.005657/0.886, allocations: 4.608 MB / 0.7607 GB, free: 75.26 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 4.138e-06/0.886, allocations: 0 / 0.7607 GB, free: 75.26 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001405/0.8874, allocations: 1.367 MB / 0.762 GB, free: 73.88 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002788/0.8902, allocations: 406.3 kB / 0.7624 GB, free: 73.49 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01252/0.9028, allocations: 10.44 MB / 0.7726 GB, free: 63.01 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002506/0.9053, allocations: 3.106 MB / 0.7756 GB, free: 59.87 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.003942/0.9093, allocations: 1.798 MB / 0.7774 GB, free: 58.06 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005429/0.9098, allocations: 251.3 kB / 0.7776 GB, free: 57.81 MB / 490.7 MB Notification: Performance of SimCode: time 1.163e-06/0.9098, allocations: 0 / 0.7776 GB, free: 57.81 MB / 490.7 MB Notification: Performance of Templates: time 0.05219/0.962, allocations: 33.57 MB / 0.8104 GB, free: 24.44 MB / 490.7 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2.makefile (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2.sim & ./ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Parts/Rotor1D/Rotor1D_2/Rotor1D_2.csv","../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches