/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 = 17364 number of fields = 31 RA_SUN column already exists. File will not be modified. Done. Performing analysis on: 4FGL_J1640.3+6850_weekly_bin888 RA = 250.082, Dec = 68.8483 tmin = 776044801, tmax = 776649601 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='14090007', job_status='RUN', time_executed='2025-10-20 11:20:47.552637', time_epoch_executed='1760984447.55' WHERE source_name='4FGL J1640.3+6850' and cadence='weekly' and bin_id='888' Database successfully updated. Done. Creating custom output directory: /lscratch/kocevski/14090007 Creating custom pfile directory: /lscratch/kocevski/14090007/pfiles/ Retrieving the FT1 file... Issuing command: datacat find --group FT1 --filter 'nMetStop>=776044801.0 && nMetStart<776649601.0' /Data/Flight/Reprocess/P305 Issuing command: datacat find --group FT1 --filter 'nMetStart>564945418 && nMetStop>=776044801.0 && nMetStart<776649601.0' /Data/Flight/Level1/LPA Retrieving 107 files... Done. Merging files... Checksum keywords updated successfully. Merged file saved to: /lscratch/kocevski/14090007/ft1_4FGL_J1640.3+6850_weekly_bin888.fits Retrieving the FT1 file... Issuing command: datacat find --group FT2 --filter 'nMetStop>=776044801.0 && nMetStart<776649601.0' /Data/Flight/Level1/LPA Retrieving 107 files... Done. Merging files... Merged file saved to: /lscratch/kocevski/14090007/ft2_4FGL_J1640.3+6850_weekly_bin888.fits Selecting the photons: time -p gtselect infile=/lscratch/kocevski/14090007/ft1_4FGL_J1640.3+6850_weekly_bin888.fits outfile=/lscratch/kocevski/14090007/ft1_filteredMKT_4FGL_J1640.3+6850_weekly_bin888.fits ra=250.082 dec=68.8483 rad=12.0 tmin=776044801.0 tmax=776649601.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 4.26 user 3.15 sys 0.20 Adding sun position to ft2 file: /sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/14090007/ft2_4FGL_J1640.3+6850_weekly_bin888.fits Selecting the good time intervals: time -p gtmktime scfile=/lscratch/kocevski/14090007/ft2_4FGL_J1640.3+6850_weekly_bin888.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/14090007/ft1_filteredMKT_4FGL_J1640.3+6850_weekly_bin888.fits evtable="EVENTS" outfile="/lscratch/kocevski/14090007/ft1_filtered_4FGL_J1640.3+6850_weekly_bin888.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 1.27 user 0.20 sys 0.14 Number of photons that the gtmktime cut: 3145 Generating the livetime cube: time -p gtltcube evfile="/lscratch/kocevski/14090007/ft1_filtered_4FGL_J1640.3+6850_weekly_bin888.fits" evtable="EVENTS" scfile=/lscratch/kocevski/14090007/ft2_4FGL_J1640.3+6850_weekly_bin888.fits sctable="SC_DATA" outfile=/lscratch/kocevski/14090007/ltcube_776044801_776649601_4FGL_J1640.3+6850_weekly_bin888.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/14090007/ft2_4FGL_J1640.3+6850_weekly_bin888.fits .....................! real 18.96 user 17.76 sys 0.25 Generating the exposure map: time -p gtexpmap evfile=/lscratch/kocevski/14090007/ft1_filtered_4FGL_J1640.3+6850_weekly_bin888.fits evtable="EVENTS" scfile=/lscratch/kocevski/14090007/ft2_4FGL_J1640.3+6850_weekly_bin888.fits sctable="SC_DATA" expcube=/lscratch/kocevski/14090007/ltcube_776044801_776649601_4FGL_J1640.3+6850_weekly_bin888.fits outfile=/lscratch/kocevski/14090007/expmap_776044801_776649601_4FGL_J1640.3+6850_weekly_bin888.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/14090007/ltcube_776044801_776649601_4FGL_J1640.3+6850_weekly_bin888.fits .....................! real 65.48 user 60.78 sys 3.57 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/14090007/ft1_filtered_4FGL_J1640.3+6850_weekly_bin888.fits scfile=/lscratch/kocevski/14090007/ft2_4FGL_J1640.3+6850_weekly_bin888.fits outfile=/lscratch/kocevski/14090007/cmap_776044801_776649601_4FGL_J1640.3+6850_weekly_bin888.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 1.22 user 0.23 sys 0.14 Creating the high resolution counts map: time -p gtbin evfile=/lscratch/kocevski/14090007/ft1_filtered_4FGL_J1640.3+6850_weekly_bin888.fits scfile=/lscratch/kocevski/14090007/ft2_4FGL_J1640.3+6850_weekly_bin888.fits outfile=/lscratch/kocevski/14090007/cmap_HighResolution_776044801_776649601_4FGL_J1640.3+6850_weekly_bin888.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 1.17 user 0.22 sys 0.15 Computing the diffuse response: time -p gtdiffrsp evfile=/lscratch/kocevski/14090007/ft1_filtered_4FGL_J1640.3+6850_weekly_bin888.fits evtable="EVENTS" scfile=/lscratch/kocevski/14090007/ft2_4FGL_J1640.3+6850_weekly_bin888.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/14090007/Model_4FGL_J1640.3+6850_weekly_bin888.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/14090007/ft1_filtered_4FGL_J1640.3+6850_weekly_bin888.fits.....................! real 99.90 user 97.55 sys 0.98 Creating the likelihood object... obs = UnbinnedObs('/lscratch/kocevski/14090007/ft1_filtered_4FGL_J1640.3+6850_weekly_bin888.fits', '/lscratch/kocevski/14090007/ft2_4FGL_J1640.3+6850_weekly_bin888.fits', expMap='/lscratch/kocevski/14090007/expmap_776044801_776649601_4FGL_J1640.3+6850_weekly_bin888.fits', expCube='/lscratch/kocevski/14090007/ltcube_776044801_776649601_4FGL_J1640.3+6850_weekly_bin888.fits', irfs='P8R3_SOURCE_V2') like = UnbinnedAnalysis(obs, '/lscratch/kocevski/14090007/Model_4FGL_J1640.3+6850_weekly_bin888.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/14090007/ft1_filtered_4FGL_J1640.3+6850_weekly_bin888.fits Spacecraft file(s): /lscratch/kocevski/14090007/ft2_4FGL_J1640.3+6850_weekly_bin888.fits Exposure map: /lscratch/kocevski/14090007/expmap_776044801_776649601_4FGL_J1640.3+6850_weekly_bin888.fits Exposure cube: /lscratch/kocevski/14090007/ltcube_776044801_776649601_4FGL_J1640.3+6850_weekly_bin888.fits IRFs: P8R3_SOURCE_V2 Source model file: /lscratch/kocevski/14090007/Model_4FGL_J1640.3+6850_weekly_bin888.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) = 33349.2640524 Fit tolerance = 0.0001 Performing likelihood fit... Done. MINUIT Return Code (Fixed Index): 0 logL (Fixed Index) = 33349.06609 Fit tolerance = 1e-08 Performing likelihood fit... ********** ** 14 **SET NOWARN ********** PARAMETER DEFINITIONS: NO. NAME VALUE STEP SIZE LIMITS 1 'Prefactor ' .37183E-03 1.0000 .0000 .10000E+07 2 'Prefactor ' 11.964 1.0000 .0000 .10000E+07 3 'Prefactor ' .70120E-02 1.0000 .0000 .10000E+07 4 'Prefactor ' .21984E-04 1.0000 .0000 .10000E+07 5 'Prefactor ' 13.212 1.0000 .0000 .10000E+07 6 'norm ' 8.3699 1.0000 .0000 .10000E+07 7 'Prefactor ' 13.812 1.0000 .0000 .10000E+07 8 'Prefactor ' 10.830 1.0000 .0000 .10000E+07 9 'norm ' .33153E-05 1.0000 .0000 .10000E+07 10 'Prefactor ' .43288E-02 1.0000 .0000 .10000E+07 11 'Prefactor ' .38440 1.0000 .0000 .10000E+07 12 'Prefactor ' .71281E-05 1.0000 .0000 .10000E+07 13 'norm ' 1.1343 1.0000 .0000 .10000E+07 14 'Prefactor ' .22452E-02 1.0000 .0000 .10000E+07 15 'norm ' 2.6417 1.0000 .0000 .10000E+07 16 'Prefactor ' 5.6470 1.0000 .0000 .10000E+07 17 'Prefactor ' .10547E-08 1.0000 .0000 .10000E+07 18 'Prefactor ' .15057E-03 1.0000 .0000 .10000E+07 19 'Prefactor ' 8.9999 1.0000 .0000 .10000E+07 20 'Prefactor ' .48295E-08 1.0000 .0000 .10000E+07 21 'Prefactor ' .53709 1.0000 .0000 .10000E+07 22 'Prefactor ' .13596E-02 1.0000 .0000 .10000E+07 23 'norm ' 5.6435 1.0000 .0000 .10000E+07 24 'norm ' 2.0967 1.0000 .0000 .10000E+07 25 'norm ' 6.7599 1.0000 .0000 .10000E+07 26 'Prefactor ' .31073 1.0000 .0000 .10000E+07 27 'Prefactor ' .24954E-02 1.0000 .0000 .10000E+07 28 'Prefactor ' 4.9411 1.0000 .0000 .10000E+07 29 'Prefactor ' .27200E-08 1.0000 .0000 .10000E+07 30 'Normalizat' .96191 1.0000 .10000E-01 10.000 31 'Prefactor ' .92748 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= 33349.06 FROM MIGRAD STATUS=CONVERGED 208 CALLS 2375 TOTAL EDM= .21E-09 STRATEGY=1 ERROR MATRIX UNCERTAINTY= 2.3% EXT PARAMETER STEP FIRST NO. NAME VALUE ERROR SIZE DERIVATIVE 1 Prefactor .24425E-08 8.7778 .21361E-09** at limit ** 2 Prefactor 11.906 8.0774 -.63823E-08 -.15174E-03 3 Prefactor .89095E-06 35.087 .12252E-05** at limit ** 4 Prefactor .55511E-10 3.9848 -.49792E-07** at limit ** 5 Prefactor 13.222 8.7447 .66472E-08 .15760E-02 6 norm 8.3775 1.6353 -.28848E-07 -.13119E-02 7 Prefactor 12.874 9.4161 .15286E-06 .18535E-01 8 Prefactor 11.095 12.858 .29541E-07 .18186E-01 9 norm .55511E-10 4.5847 .35425E-07** at limit ** 10 Prefactor .13101E-07 13.126 .13267E-06** at limit ** 11 Prefactor .36673 5.1432 -.36687E-06 -.30002E-03 12 Prefactor .46907E-07 10.025 -.25174E-07** at limit ** 13 norm 1.1304 3.2606 .64898E-07 .51558E-04 14 Prefactor .23784E-05 9.1902 .16223E-06** at limit ** 15 norm 2.6408 .43912 .11965E-07 .71832E-03 16 Prefactor 5.6682 3.4889 .51202E-08 -.20902E-04 17 Prefactor .0000 .30760 -.42387E-07** at limit ** 18 Prefactor .19619E-05 56.186 .91108E-06** at limit ** 19 Prefactor 9.0048 3.1850 .10156E-08 -.36190E-04 20 Prefactor .0000 3.4734 -.59811E-07** at limit ** 21 Prefactor .51072 3.2504 .69484E-07 .52552E-04 22 Prefactor .84904E-06 9.4978 .19907E-06** at limit ** 23 norm 5.6428 1.3247 -.12377E-08 -.19183E-03 24 norm 2.0965 .35744 .65855E-09 -.60321E-03 25 norm 6.7600 2.0613 .47173E-08 -.88712E-04 26 Prefactor .32058 .80136 .19288E-07 .33735E-03 27 Prefactor .81046E-08 8.8013 .20338E-06** at limit ** 28 Prefactor 4.9382 2.7898 .66504E-08 -.10165E-04 29 Prefactor .0000 1.5744 -.95008E-07** at limit ** 30 Normalizat .96215 .93474E-01 -.11421E-05 -.51508E-04 31 Prefactor .92743 .73362E-01 -.83127E-08 -.51992E-04 ERR DEF= .500 Final values: Prefactor = 2.44249e-09 Prefactor = 11.9064 Prefactor = 8.90954e-07 Prefactor = 5.55112e-11 Prefactor = 13.2219 norm = 8.37755 Prefactor = 12.874 Prefactor = 11.0946 norm = 5.55112e-11 Prefactor = 1.31006e-08 Prefactor = 0.366726 Prefactor = 4.69069e-08 norm = 1.13043 Prefactor = 2.37838e-06 norm = 2.64082 Prefactor = 5.66819 Prefactor = 0 Prefactor = 1.96188e-06 Prefactor = 9.00483 Prefactor = 0 Prefactor = 0.510722 Prefactor = 8.49043e-07 norm = 5.64276 norm = 2.0965 norm = 6.76001 Prefactor = 0.320581 Prefactor = 8.10463e-09 Prefactor = 4.93821 Prefactor = 0 Normalizat = 0.962148 Prefactor = 0.927431 ********** ** 18 **HESSE ********** FCN= 33349.06 FROM HESSE STATUS=OK 700 CALLS 3075 TOTAL EDM= .16E-04 STRATEGY= 1 ERROR MATRIX ACCURATE EXT PARAMETER INTERNAL INTERNAL NO. NAME VALUE ERROR STEP SIZE VALUE 1 Prefactor .24425E-08 8.8099 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 2 Prefactor 11.906 8.0768 .28936E-03 -1.5639 3 Prefactor .89095E-06 40.385 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 4 Prefactor .55511E-10 3.9896 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 5 Prefactor 13.222 8.7447 .27532E-03 -1.5635 6 norm 8.3775 1.6505 .34628E-03 -1.5650 7 Prefactor 12.874 26.438 .26925E-03 -1.5636 8 Prefactor 11.095 13.058 .30420E-03 -1.5641 9 norm .55511E-10 4.5795 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 10 Prefactor .13101E-07 13.214 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 11 Prefactor .36673 1.2380 .69927E-02 -1.5696 12 Prefactor .46907E-07 10.247 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 13 norm 1.1304 3.2621 .10944E-02 -1.5687 14 Prefactor .23784E-05 25.848 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 15 norm 2.6408 .45676 .62704E-03 -1.5675 16 Prefactor 5.6682 3.5156 .42249E-03 -1.5660 17 Prefactor .0000 .30512 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 18 Prefactor .19619E-05 3.3831 .76897E-02 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 19 Prefactor 9.0048 3.1998 .33385E-03 -1.5648 20 Prefactor .0000 3.4689 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 21 Prefactor .51072 3.2515 .75063E-03 -1.5694 22 Prefactor .84904E-06 20.801 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 23 norm 5.6428 1.3318 .42262E-03 -1.5660 24 norm 2.0965 .35937 .71251E-03 -1.5679 25 norm 6.7600 2.0693 .38568E-03 -1.5656 26 Prefactor .32058 2.4203 .15392E-01 -1.5697 27 Prefactor .81046E-08 21.523 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 28 Prefactor 4.9382 2.8015 .45222E-03 -1.5664 29 Prefactor .0000 1.5777 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 30 Normalizat .96215 .81680E-01 .45688E-01 -.94310 31 Prefactor .92743 .63679E-01 .45354E-01 -.95189 ERR DEF= .500 Minuit fit quality: 3 estimated distance: 1.55529e-05 Minuit parameter uncertainties: 1 0.000293335 2 8.07679 3 0.0119969 4 3.00645e-05 5 8.7447 6 1.65055 7 26.4378 8 13.0583 9 3.14914e-05 10 0.000831271 11 1.238 12 0.00138673 13 3.26213 14 0.0156815 15 0.456762 16 3.51561 17 2.03703e-07 18 0.00515256 19 3.19983 20 1.13612e-05 21 2.57728 22 0.00840498 23 1.33183 24 0.359366 25 2.06933 26 1.76169 27 0.000834065 28 2.80149 29 1.37318e-06 30 0.0816906 31 0.063684 Done. MINUIT Return Code (Fixed Index): 0 logL (Fixed Index) = 33349.0647385 Extracting fit parameters... 4FGL J1640.3+6850 Spectrum: PowerLaw 350 Prefactor: 4.691e-08 1.387e-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: 9.274e-01 6.368e-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.621e-01 8.169e-02 1.000e-02 1.000e+01 ( 1.000e+00) TS (Fixed Index): -0.00 Ra Dec: 250.082 68.848 Photon Flux Upper Limit: 2.14241870109e-08 ph cm-2 s-1 Energy Flux Upper Limit: 0.00162398205599 MeV cm-2 s-1 Saving results to: /lscratch/kocevski/14090007/likelihoodResults_776044801_776649601_4FGL_J1640.3+6850_weekly_bin888.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) = 33349.1125094 delta logL = -0.0477708947074 Fit tolerance = 0.0001 Performing likelihood fit... Done. MINUIT Return Code (Free Index): 102 logL (Free Index) = 33348.7797647 delta logL = 0.284973795424 Fit tolerance = 1e-08 Performing likelihood fit... ********** ** 14 **SET NOWARN ********** PARAMETER DEFINITIONS: NO. NAME VALUE STEP SIZE LIMITS 1 'Prefactor ' .22850E-01 1.0000 .0000 .10000E+07 2 'Index ' 4.6798 1.0000 .0000 10.000 3 'Normalizat' .94497 1.0000 .10000E-01 10.000 4 'Prefactor ' .93511 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= 33348.78 FROM MIGRAD STATUS=CONVERGED 65 CALLS 282 TOTAL EDM= .21E-09 STRATEGY= 1 ERR MATRIX NOT POS-DEF EXT PARAMETER APPROXIMATE STEP FIRST NO. NAME VALUE ERROR SIZE DERIVATIVE 1 Prefactor .21744E-01 .10479 .77784E-03** at limit ** 2 Index 4.6977 1.1667 .11073 .81937E-03 3 Normalizat .94471 .84208E-02 .45474E-01 .38013E-04 4 Prefactor .93533 .68522E-02 .45451E-01 .93311E-04 ERR DEF= .500 Final values: Prefactor = 0.0217436 Index = 4.6977 Normalizat = 0.944708 Prefactor = 0.935329 ********** ** 18 **HESSE ********** FCN= 33348.78 FROM HESSE STATUS=NOT POSDEF 35 CALLS 317 TOTAL EDM= .11E-05 STRATEGY= 1 ERR MATRIX NOT POS-DEF EXT PARAMETER APPROXIMATE INTERNAL INTERNAL NO. NAME VALUE ERROR STEP SIZE VALUE 1 Prefactor .21744E-01 1.7583 .27466E-04 -1.5705 WARNING - - ABOVE PARAMETER IS AT LIMIT. 2 Index 4.6977 7.2500 .10010E-01 -.60498E-01 3 Normalizat .94471 .45433E-01 .26970E-03 -.94907 4 Prefactor .93533 .36632E-01 .21927E-03 -.94917 ERR DEF= .500 Minuit fit quality: 2 estimated distance: 1.14781e-06 Minuit parameter uncertainties: 1 0.391057 2 6.12943 3 0.0454351 4 0.0366326 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) = 33348.7797563 delta logL = 0.284982232319 Extracting fit parameters... 4FGL J1640.3+6850 Spectrum: PowerLaw 350 Prefactor: 2.174e-02 3.911e-01 0.000e+00 1.000e+06 ( 1.000e-14) 351 Index: 4.698e+00 6.129e+00 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: 9.353e-01 3.663e-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.447e-01 4.544e-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/14090007/cmap_HighResolution_776044801_776649601_4FGL_J1640.3+6850_weekly_bin888.png Cleaning up... ** Nuclear option initiated! ** Updating database... UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.62e-03', job_status='DONE', photon_flux_upper_limit='2.14e-08', time_completed='2025-10-20 11:52:32.437120', job_id='14090007', GAL2='0.94', fit_tolerance='1e-08', EG2='0.94', EG='0.96', time_epoch_completed='1760986352.44', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.93', dlogl='2.85e-01', ts2='0.62', photon_index_error='0.00', photon_index='2.13' WHERE bin_id='888' AND source_name='4FGL J1640.3+6850' AND cadence='weekly'; Database successfully updated. Analysis Complete. Mon Oct 20 11:52:32 PDT 2025