/sdf/group/fermi/u/kocevski/software/conda/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits PyFITSDeprecationWarning) # noqa Likelihood Analysis Tool Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov) Importing modules... This is make3FGLxml version 01r0. The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher. This is make4FGLDR3xml version 01r09. The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations. WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41). /sdf/group/fermi/u/kocevski/software/conda/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead. warnings.warn(message, mplDeprecation, stacklevel=1) WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41). number of points = 17405 number of fields = 31 RA_SUN column already exists. File will not be modified. Done. Performing analysis on: 4FGL_J1640.3+6850_weekly_bin899 RA = 250.082, Dec = 68.8483 tmin = 782697601, tmax = 783302401 emin = 100.0, emax = 100000.0 irfs = P8R3_SOURCE_V2 ROI = 12 zmax = 90 Fitting strategies: Fix sources to their catalog values = True Leave variable source normalizations free = True Perform pre-fit where ALL sources are frozen to catalog values = False Perform secondary fit with a free spectral index = True Remove all catalog sources = False Remove weak (TS < 2) catalog sources = False Freeze Galactic component = False Likelihood fit parameters: Statistic: UNBINNED Optimizer: MINUIT Catalog: 4FGL Repository job = True LAT data source: Data catalog Updating database... UPDATE lightcurve_data_v2 SET job_id='14461390', job_status='RUN', time_executed='2025-10-28 03:06:34.775460', time_epoch_executed='1761645994.78' WHERE source_name='4FGL J1640.3+6850' and cadence='weekly' and bin_id='899' Database successfully updated. Done. Creating custom output directory: /lscratch/kocevski/14461390 Creating custom pfile directory: /lscratch/kocevski/14461390/pfiles/ Retrieving the FT1 file... Issuing command: datacat find --group FT1 --filter 'nMetStop>=782697601.0 && nMetStart<783302401.0' /Data/Flight/Reprocess/P305 Issuing command: datacat find --group FT1 --filter 'nMetStart>564945418 && nMetStop>=782697601.0 && nMetStart<783302401.0' /Data/Flight/Level1/LPA Retrieving 108 files... Done. Merging files... Checksum keywords updated successfully. Merged file saved to: /lscratch/kocevski/14461390/ft1_4FGL_J1640.3+6850_weekly_bin899.fits Retrieving the FT1 file... Issuing command: datacat find --group FT2 --filter 'nMetStop>=782697601.0 && nMetStart<783302401.0' /Data/Flight/Level1/LPA Retrieving 108 files... Done. Merging files... Merged file saved to: /lscratch/kocevski/14461390/ft2_4FGL_J1640.3+6850_weekly_bin899.fits Selecting the photons: time -p gtselect infile=/lscratch/kocevski/14461390/ft1_4FGL_J1640.3+6850_weekly_bin899.fits outfile=/lscratch/kocevski/14461390/ft1_filteredMKT_4FGL_J1640.3+6850_weekly_bin899.fits ra=250.082 dec=68.8483 rad=12.0 tmin=782697601.0 tmax=783302401.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql" WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41). Done. real 6.34 user 5.58 sys 0.26 Adding sun position to ft2 file: /sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/14461390/ft2_4FGL_J1640.3+6850_weekly_bin899.fits Selecting the good time intervals: time -p gtmktime scfile=/lscratch/kocevski/14461390/ft2_4FGL_J1640.3+6850_weekly_bin899.fits sctable="SC_DATA" filter="IN_SAA!=T && LIVETIME>0 && gtifilter('/sdf/group/fermi/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/sdf/group/fermi/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))" roicut=no evfile=/lscratch/kocevski/14461390/ft1_filteredMKT_4FGL_J1640.3+6850_weekly_bin899.fits evtable="EVENTS" outfile="/lscratch/kocevski/14461390/ft1_filtered_4FGL_J1640.3+6850_weekly_bin899.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql" WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41). This is gtmktime version HEAD Applying GTI filter: IN_SAA!=T && LIVETIME>0 && gtifilter('/sdf/group/fermi/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/sdf/group/fermi/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2)) real 0.78 user 0.23 sys 0.13 Number of photons that the gtmktime cut: 1959 Generating the livetime cube: time -p gtltcube evfile="/lscratch/kocevski/14461390/ft1_filtered_4FGL_J1640.3+6850_weekly_bin899.fits" evtable="EVENTS" scfile=/lscratch/kocevski/14461390/ft2_4FGL_J1640.3+6850_weekly_bin899.fits sctable="SC_DATA" outfile=/lscratch/kocevski/14461390/ltcube_782697601_783302401_4FGL_J1640.3+6850_weekly_bin899.fits dcostheta=0.025 binsz=1.0 phibins=0 tmin=0.0 tmax=0.0 file_version="1" zmin=0.0 zmax=90.0 chatter=2 clobber=yes debug=no gui=no mode="ql" WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41). Working on file /lscratch/kocevski/14461390/ft2_4FGL_J1640.3+6850_weekly_bin899.fits .....................! real 20.89 user 20.18 sys 0.27 Generating the exposure map: time -p gtexpmap evfile=/lscratch/kocevski/14461390/ft1_filtered_4FGL_J1640.3+6850_weekly_bin899.fits evtable="EVENTS" scfile=/lscratch/kocevski/14461390/ft2_4FGL_J1640.3+6850_weekly_bin899.fits sctable="SC_DATA" expcube=/lscratch/kocevski/14461390/ltcube_782697601_783302401_4FGL_J1640.3+6850_weekly_bin899.fits outfile=/lscratch/kocevski/14461390/expmap_782697601_783302401_4FGL_J1640.3+6850_weekly_bin899.fits irfs="P8R3_SOURCE_V2" evtype="INDEF" srcrad=30.0 nlong=88 nlat=88 nenergies=10 submap=no nlongmin=0 nlongmax=0 nlatmin=0 nlatmax=0 chatter=2 clobber=yes debug=no gui=no mode="ql" WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41). The exposure maps generated by this tool are meant to be used for *unbinned* likelihood analysis only. Do not use them for binned analyses. Computing the ExposureMap using /lscratch/kocevski/14461390/ltcube_782697601_783302401_4FGL_J1640.3+6850_weekly_bin899.fits .....................! real 73.44 user 68.51 sys 4.12 Generating the xml model: radLim = 0.001 maxRad = 12 normsOnly = True freeVariableSources = True Fixing all sources to their catalog values, except variable sources Creating file and adding sources from 4FGL Added 209 point sources and 0 extended sources Setting source of interest to: 4FGL J1640.3+6850 @ 250.082 68.8483 Creating the counts map: time -p gtbin evfile=/lscratch/kocevski/14461390/ft1_filtered_4FGL_J1640.3+6850_weekly_bin899.fits scfile=/lscratch/kocevski/14461390/ft2_4FGL_J1640.3+6850_weekly_bin899.fits outfile=/lscratch/kocevski/14461390/cmap_782697601_783302401_4FGL_J1640.3+6850_weekly_bin899.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=250.082 yref=68.8483 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql" WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41). This is gtbin version HEAD real 0.52 user 0.24 sys 0.13 Creating the high resolution counts map: time -p gtbin evfile=/lscratch/kocevski/14461390/ft1_filtered_4FGL_J1640.3+6850_weekly_bin899.fits scfile=/lscratch/kocevski/14461390/ft2_4FGL_J1640.3+6850_weekly_bin899.fits outfile=/lscratch/kocevski/14461390/cmap_HighResolution_782697601_783302401_4FGL_J1640.3+6850_weekly_bin899.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=250.082 yref=68.8483 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql" WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41). This is gtbin version HEAD real 0.58 user 0.28 sys 0.14 Computing the diffuse response: time -p gtdiffrsp evfile=/lscratch/kocevski/14461390/ft1_filtered_4FGL_J1640.3+6850_weekly_bin899.fits evtable="EVENTS" scfile=/lscratch/kocevski/14461390/ft2_4FGL_J1640.3+6850_weekly_bin899.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/14461390/Model_4FGL_J1640.3+6850_weekly_bin899.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql" WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41). adding source EG_v02 adding source GAL_V02 Working on... /lscratch/kocevski/14461390/ft1_filtered_4FGL_J1640.3+6850_weekly_bin899.fits.....................! real 76.73 user 75.20 sys 0.84 Creating the likelihood object... obs = UnbinnedObs('/lscratch/kocevski/14461390/ft1_filtered_4FGL_J1640.3+6850_weekly_bin899.fits', '/lscratch/kocevski/14461390/ft2_4FGL_J1640.3+6850_weekly_bin899.fits', expMap='/lscratch/kocevski/14461390/expmap_782697601_783302401_4FGL_J1640.3+6850_weekly_bin899.fits', expCube='/lscratch/kocevski/14461390/ltcube_782697601_783302401_4FGL_J1640.3+6850_weekly_bin899.fits', irfs='P8R3_SOURCE_V2') like = UnbinnedAnalysis(obs, '/lscratch/kocevski/14461390/Model_4FGL_J1640.3+6850_weekly_bin899.xml', optimizer='MINUIT') Using source of interest name: '4FGL J1640.3+6850' 4FGL J1640.3+6850 Spectrum: PowerLaw 350 Prefactor: 3.992e+00 0.000e+00 0.000e+00 1.000e+06 ( 1.000e-14) 351 Index: 2.132e+00 0.000e+00 0.000e+00 1.000e+01 (-1.000e+00) fixed 352 Scale: 2.329e+03 0.000e+00 3.000e+01 5.000e+05 ( 1.000e+00) fixed Likelihood Fit Parameters: Event file(s): /lscratch/kocevski/14461390/ft1_filtered_4FGL_J1640.3+6850_weekly_bin899.fits Spacecraft file(s): /lscratch/kocevski/14461390/ft2_4FGL_J1640.3+6850_weekly_bin899.fits Exposure map: /lscratch/kocevski/14461390/expmap_782697601_783302401_4FGL_J1640.3+6850_weekly_bin899.fits Exposure cube: /lscratch/kocevski/14461390/ltcube_782697601_783302401_4FGL_J1640.3+6850_weekly_bin899.fits IRFs: P8R3_SOURCE_V2 Source model file: /lscratch/kocevski/14461390/Model_4FGL_J1640.3+6850_weekly_bin899.xml Optimizer: MINUIT Statistic: UNBINNED Performing an iterative likelihood fit... Fit tolerance = 1 Performing likelihood fit... Done. MINUIT Return Code (Fixed Index): 0 logL (Fixed Index) = 20637.8081956 Fit tolerance = 0.0001 Performing likelihood fit... Done. MINUIT Return Code (Fixed Index): 0 logL (Fixed Index) = 20637.7413679 Fit tolerance = 1e-08 Performing likelihood fit... ********** ** 14 **SET NOWARN ********** PARAMETER DEFINITIONS: NO. NAME VALUE STEP SIZE LIMITS 1 'Prefactor ' .88063E-03 1.0000 .0000 .10000E+07 2 'Prefactor ' .16091E-02 1.0000 .0000 .10000E+07 3 'Prefactor ' 3.5943 1.0000 .0000 .10000E+07 4 'Prefactor ' .21462E-02 1.0000 .0000 .10000E+07 5 'Prefactor ' .20128E-02 1.0000 .0000 .10000E+07 6 'norm ' 3.1303 1.0000 .0000 .10000E+07 7 'Prefactor ' 55.601 1.0000 .0000 .10000E+07 8 'Prefactor ' .21701E-02 1.0000 .0000 .10000E+07 9 'norm ' 14.068 1.0000 .0000 .10000E+07 10 'Prefactor ' .10513 1.0000 .0000 .10000E+07 11 'Prefactor ' 3.3528 1.0000 .0000 .10000E+07 12 'Prefactor ' .22131E-02 1.0000 .0000 .10000E+07 13 'norm ' 2.5233 1.0000 .0000 .10000E+07 14 'Prefactor ' .22238E-04 1.0000 .0000 .10000E+07 15 'norm ' 5.1678 1.0000 .0000 .10000E+07 16 'Prefactor ' .95800E-02 1.0000 .0000 .10000E+07 17 'Prefactor ' 1.3288 1.0000 .0000 .10000E+07 18 'Prefactor ' 4.6500 1.0000 .0000 .10000E+07 19 'Prefactor ' 7.3918 1.0000 .0000 .10000E+07 20 'Prefactor ' .53436E-02 1.0000 .0000 .10000E+07 21 'Prefactor ' 5.1587 1.0000 .0000 .10000E+07 22 'Prefactor ' .42268E-02 1.0000 .0000 .10000E+07 23 'norm ' 6.3174 1.0000 .0000 .10000E+07 24 'norm ' 3.3807 1.0000 .0000 .10000E+07 25 'norm ' 1.7153 1.0000 .0000 .10000E+07 26 'Prefactor ' 18.778 1.0000 .0000 .10000E+07 27 'Prefactor ' .30128 1.0000 .0000 .10000E+07 28 'Prefactor ' .12579E-06 1.0000 .0000 .10000E+07 29 'Prefactor ' .23879E-04 1.0000 .0000 .10000E+07 30 'Normalizat' .95731 1.0000 .10000E-01 10.000 31 'Prefactor ' 1.0148 1.0000 .0000 10.000 ********** ** 15 **SET ERR .5000 ********** ********** ** 16 **SET GRAD 1.000 ********** ********** ** 17 **MINIMIZE .6760E+05 .2000E-04 ********** MIGRAD MINIMIZATION HAS CONVERGED. FCN= 20637.74 FROM MIGRAD STATUS=CONVERGED 180 CALLS 2331 TOTAL EDM= .12E-08 STRATEGY=1 ERROR MATRIX UNCERTAINTY= 3.2% EXT PARAMETER STEP FIRST NO. NAME VALUE ERROR SIZE DERIVATIVE 1 Prefactor .22427E-07 12.936 .24249E-06** at limit ** 2 Prefactor .55511E-10 4.3244 .17761E-07** at limit ** 3 Prefactor 3.5551 2.8153 .61041E-07 -.37529E-01 4 Prefactor .71709E-06 6.1571 .50735E-07** at limit ** 5 Prefactor .49860E-06 6.9524 -.19067E-06** at limit ** 6 norm 3.1154 1.5019 -.39388E-08 -.38419E-03 7 Prefactor 58.595 41.962 .10920E-06 -.13521E-01 8 Prefactor .37997E-06 5.8329 .40725E-07** at limit ** 9 norm 14.114 9.2074 -.87467E-08 -.33245E-02 10 Prefactor .16409E-05 1.8874 .25350E-07** at limit ** 11 Prefactor 3.3432 3.9052 .68300E-07 .10078E-02 12 Prefactor .13147E-05 6.0102 -.11577E-06** at limit ** 13 norm 2.5241 2.8955 -.16016E-07 -.49831E-03 14 Prefactor .55511E-09 2.9081 .18828E-06** at limit ** 15 norm 5.1696 .72246 .17627E-07 .12729E-01 16 Prefactor .98366E-06 3.5770 .39042E-07** at limit ** 17 Prefactor 1.3298 1.3234 -.91369E-08 -.11321E-02 18 Prefactor 4.6463 6.7984 -.16319E-06 -.17917E-02 19 Prefactor 7.4023 4.2625 -.63785E-07 -.45133E-02 20 Prefactor .36082E-08 5.5513 .23196E-06** at limit ** 21 Prefactor 5.1734 4.5849 -.34054E-07 -.12685E-02 22 Prefactor .14268E-05 15.863 -.29286E-06** at limit ** 23 norm 6.3192 2.0713 -.21415E-07 -.38874E-02 24 norm 3.3813 .59316 -.65140E-08 -.68052E-02 25 norm 1.7163 2.1546 -.85023E-08 -.75877E-03 26 Prefactor 18.793 2.2031 -.59833E-08 .63846E-01 27 Prefactor .47188E-04 160.56 -.74783E-07** at limit ** 28 Prefactor .51625E-08 6.7169 -.21903E-06** at limit ** 29 Prefactor .10880E-07 4.7824 .45193E-09** at limit ** 30 Normalizat .95604 .12221 -.11510E-05 -.67289E-04 31 Prefactor 1.0153 .99181E-01 .93244E-06 -.14921E-04 ERR DEF= .500 Final values: Prefactor = 2.24265e-08 Prefactor = 5.55112e-11 Prefactor = 3.55511 Prefactor = 7.17093e-07 Prefactor = 4.98601e-07 norm = 3.11539 Prefactor = 58.5947 Prefactor = 3.79974e-07 norm = 14.1137 Prefactor = 1.64085e-06 Prefactor = 3.34317 Prefactor = 1.31467e-06 norm = 2.52412 Prefactor = 5.55112e-10 norm = 5.16959 Prefactor = 9.83658e-07 Prefactor = 1.32977 Prefactor = 4.64633 Prefactor = 7.40232 Prefactor = 3.60822e-09 Prefactor = 5.17336 Prefactor = 1.4268e-06 norm = 6.31919 norm = 3.38134 norm = 1.71632 Prefactor = 18.7925 Prefactor = 4.71883e-05 Prefactor = 5.16254e-09 Prefactor = 1.08802e-08 Normalizat = 0.956044 Prefactor = 1.01531 ********** ** 18 **HESSE ********** FCN= 20637.74 FROM HESSE STATUS=OK 692 CALLS 3023 TOTAL EDM= .75E-06 STRATEGY= 1 ERROR MATRIX ACCURATE EXT PARAMETER INTERNAL INTERNAL NO. NAME VALUE ERROR STEP SIZE VALUE 1 Prefactor .22427E-07 13.294 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 2 Prefactor .55511E-10 4.3360 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 3 Prefactor 3.5551 12.139 .53275E-03 -1.5670 4 Prefactor .71709E-06 15.416 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 5 Prefactor .49860E-06 20.250 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 6 norm 3.1154 1.5028 .57276E-03 -1.5673 7 Prefactor 58.595 42.035 .13412E-03 -1.5555 8 Prefactor .37997E-06 15.747 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 9 norm 14.114 9.2211 .26678E-03 -1.5633 10 Prefactor .16409E-05 53.047 .13793E-02 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 11 Prefactor 3.3432 3.9079 .55245E-03 -1.5671 12 Prefactor .13147E-05 17.624 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 13 norm 2.5241 2.9069 .64283E-03 -1.5676 14 Prefactor .55511E-09 2.9050 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 15 norm 5.1696 .73942 .44199E-03 -1.5662 16 Prefactor .98366E-06 2.2568 .61516E-02 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 17 Prefactor 1.3298 1.3460 .95262E-03 -1.5685 18 Prefactor 4.6463 6.8031 .46648E-03 -1.5665 19 Prefactor 7.4023 4.2741 .36866E-03 -1.5654 20 Prefactor .36082E-08 5.5840 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 21 Prefactor 5.1734 4.5979 .44238E-03 -1.5662 22 Prefactor .14268E-05 22.093 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 23 norm 6.3192 2.0831 .39912E-03 -1.5658 24 norm 3.3813 .59427 .55006E-03 -1.5671 25 norm 1.7163 2.1869 .80207E-03 -1.5682 26 Prefactor 18.793 13.403 .23085E-03 -1.5621 27 Prefactor .47188E-04 238.54 .10195E-02 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 28 Prefactor .51625E-08 6.6644 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 29 Prefactor .10880E-07 4.8261 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 30 Normalizat .95604 .10845 .45630E-01 -.94518 31 Prefactor 1.0153 .86873E-01 .42705E-01 -.92221 ERR DEF= .500 Minuit fit quality: 3 estimated distance: 7.46332e-07 Minuit parameter uncertainties: 1 0.00109254 2 2.41906e-05 3 12.1394 4 0.0066497 5 0.00635518 6 1.50279 7 42.0356 8 0.00489233 9 9.22108 10 0.0186595 11 3.90795 12 0.00962702 13 2.90694 14 8.0346e-05 15 0.739424 16 0.00297984 17 1.34596 18 6.80316 19 4.27414 20 0.000283173 21 4.59791 22 0.0112288 23 2.08306 24 0.594266 25 2.1869 26 13.4033 27 0.212202 28 0.000370104 29 0.000458825 30 0.108472 31 0.0868851 Done. MINUIT Return Code (Fixed Index): 0 logL (Fixed Index) = 20637.7358588 Extracting fit parameters... 4FGL J1640.3+6850 Spectrum: PowerLaw 350 Prefactor: 1.315e-06 9.627e-03 0.000e+00 1.000e+06 ( 1.000e-14) 351 Index: 2.132e+00 0.000e+00 0.000e+00 1.000e+01 (-1.000e+00) fixed 352 Scale: 2.329e+03 0.000e+00 3.000e+01 5.000e+05 ( 1.000e+00) fixed GAL_V02 Spectrum: PowerLaw 673 Prefactor: 1.015e+00 8.689e-02 0.000e+00 1.000e+01 ( 1.000e+00) 674 Index: 0.000e+00 0.000e+00 -1.000e+00 1.000e+00 ( 1.000e+00) fixed 675 Scale: 1.000e+02 0.000e+00 5.000e+01 2.000e+02 ( 1.000e+00) fixed EG_v02 Spectrum: FileFunction 672 Normalization: 9.560e-01 1.085e-01 1.000e-02 1.000e+01 ( 1.000e+00) TS (Fixed Index): -0.00 Ra Dec: 250.082 68.848 Photon Flux Upper Limit: 3.32435389464e-08 ph cm-2 s-1 Energy Flux Upper Limit: 0.00251990475528 MeV cm-2 s-1 Saving results to: /lscratch/kocevski/14461390/likelihoodResults_782697601_783302401_4FGL_J1640.3+6850_weekly_bin899.txt Performing a free index iterative likelihood fit... Freezing all point sources, except source of interest... Done. Freeing candidate source... Done. Fit tolerance = 1 Performing likelihood fit... Done. MINUIT Return Code (Free Index): 102 logL (Free Index) = 20637.763497 delta logL = -0.0276382367556 Fit tolerance = 0.0001 Performing likelihood fit... Done. MINUIT Return Code (Free Index): 102 logL (Free Index) = 20637.7223435 delta logL = 0.0135153052361 Fit tolerance = 1e-08 Performing likelihood fit... ********** ** 14 **SET NOWARN ********** PARAMETER DEFINITIONS: NO. NAME VALUE STEP SIZE LIMITS 1 'Prefactor ' .56868E-01 1.0000 .0000 .10000E+07 2 'Index ' 3.9522 1.0000 .0000 10.000 3 'Normalizat' .95155 1.0000 .10000E-01 10.000 4 'Prefactor ' 1.0171 1.0000 .0000 10.000 ********** ** 15 **SET ERR .5000 ********** ********** ** 16 **SET GRAD 1.000 ********** ********** ** 17 **MINIMIZE .6760E+05 .2000E-04 ********** MIGRAD MINIMIZATION HAS CONVERGED. MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX. FCN= 20637.72 FROM MIGRAD STATUS=CONVERGED 58 CALLS 250 TOTAL EDM= .16E-08 STRATEGY= 1 ERR MATRIX NOT POS-DEF EXT PARAMETER APPROXIMATE STEP FIRST NO. NAME VALUE ERROR SIZE DERIVATIVE 1 Prefactor .56798E-01 .17444 .18959E-02** at limit ** 2 Index 3.9521 .58484E-01 .50000 -.64509E-06 3 Normalizat .95156 .25945E-02 .45557E-01 .52337E-04 4 Prefactor 1.0171 .21587E-02 .42438E-01 .23862E-04 ERR DEF= .500 Final values: Prefactor = 0.0567976 Index = 3.95209 Normalizat = 0.951564 Prefactor = 1.01711 ********** ** 18 **HESSE ********** FCN= 20637.72 FROM HESSE STATUS=NOT POSDEF 35 CALLS 285 TOTAL EDM= .31E-07 STRATEGY= 1 ERR MATRIX NOT POS-DEF EXT PARAMETER APPROXIMATE INTERNAL INTERNAL NO. NAME VALUE ERROR STEP SIZE VALUE 1 Prefactor .56798E-01 88.835 .10352E-03 -1.5703 WARNING - - ABOVE PARAMETER IS AT LIMIT. 2 Index 3.9521 7.0285 .16918E-02 -.21115 3 Normalizat .95156 .59209E-01 .28103E-03 -.94671 4 Prefactor 1.0171 .47498E-01 .22579E-03 -.92161 ERR DEF= .500 Minuit fit quality: 2 estimated distance: 3.14229e-08 Minuit parameter uncertainties: 1 4.49256 2 26.5288 3 0.0592128 4 0.0474998 shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory Done. MINUIT Return Code (Free Index): 102 logL (Free Index) = 20637.7223434 delta logL = 0.0135153857555 Extracting fit parameters... 4FGL J1640.3+6850 Spectrum: PowerLaw 350 Prefactor: 5.680e-02 4.493e+00 0.000e+00 1.000e+06 ( 1.000e-14) 351 Index: 3.952e+00 2.653e+01 0.000e+00 1.000e+01 (-1.000e+00) 352 Scale: 2.329e+03 0.000e+00 3.000e+01 5.000e+05 ( 1.000e+00) fixed GAL_V02 Spectrum: PowerLaw 673 Prefactor: 1.017e+00 4.750e-02 0.000e+00 1.000e+01 ( 1.000e+00) 674 Index: 0.000e+00 0.000e+00 -1.000e+00 1.000e+00 ( 1.000e+00) fixed 675 Scale: 1.000e+02 0.000e+00 5.000e+01 2.000e+02 ( 1.000e+00) fixed EG_v02 Spectrum: FileFunction 672 Normalization: 9.516e-01 5.921e-02 1.000e-02 1.000e+01 ( 1.000e+00) TS (Free Index): -0.00 Ra Dec: 250.082 68.848 Creating a high resolution counts map... INFO: Auto-setting vmin to -1.000e-01 [aplpy.core] INFO: Auto-setting vmax to 1.110e+00 [aplpy.core] Saving /lscratch/kocevski/14461390/cmap_HighResolution_782697601_783302401_4FGL_J1640.3+6850_weekly_bin899.png Cleaning up... ** Nuclear option initiated! ** Updating database... UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.52e-03', job_status='DONE', photon_flux_upper_limit='3.32e-08', time_completed='2025-10-28 03:23:45.564232', job_id='14461390', GAL2='1.02', fit_tolerance='1e-08', EG2='0.95', EG='0.96', time_epoch_completed='1761647025.56', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.02', dlogl='1.35e-02', ts2='0.03', photon_index_error='0.00', photon_index='2.13' WHERE bin_id='899' AND source_name='4FGL J1640.3+6850' AND cadence='weekly'; Database successfully updated. Analysis Complete. Tue Oct 28 03:23:45 PDT 2025