/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 = 17275 number of fields = 31 RA_SUN column already exists. File will not be modified. Done. Performing analysis on: 4FGL_J1640.3+6850_weekly_bin885 RA = 250.082, Dec = 68.8483 tmin = 774230401, tmax = 774835201 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='14089982', job_status='RUN', time_executed='2025-10-20 11:19:42.171287', time_epoch_executed='1760984382.17' WHERE source_name='4FGL J1640.3+6850' and cadence='weekly' and bin_id='885' Database successfully updated. Done. Creating custom output directory: /lscratch/kocevski/14089982 Creating custom pfile directory: /lscratch/kocevski/14089982/pfiles/ Retrieving the FT1 file... Issuing command: datacat find --group FT1 --filter 'nMetStop>=774230401.0 && nMetStart<774835201.0' /Data/Flight/Reprocess/P305 Issuing command: datacat find --group FT1 --filter 'nMetStart>564945418 && nMetStop>=774230401.0 && nMetStart<774835201.0' /Data/Flight/Level1/LPA Retrieving 107 files... Done. Merging files... Checksum keywords updated successfully. Merged file saved to: /lscratch/kocevski/14089982/ft1_4FGL_J1640.3+6850_weekly_bin885.fits Retrieving the FT1 file... Issuing command: datacat find --group FT2 --filter 'nMetStop>=774230401.0 && nMetStart<774835201.0' /Data/Flight/Level1/LPA Retrieving 107 files... Done. Merging files... Merged file saved to: /lscratch/kocevski/14089982/ft2_4FGL_J1640.3+6850_weekly_bin885.fits Selecting the photons: time -p gtselect infile=/lscratch/kocevski/14089982/ft1_4FGL_J1640.3+6850_weekly_bin885.fits outfile=/lscratch/kocevski/14089982/ft1_filteredMKT_4FGL_J1640.3+6850_weekly_bin885.fits ra=250.082 dec=68.8483 rad=12.0 tmin=774230401.0 tmax=774835201.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.92 user 3.82 sys 0.21 Adding sun position to ft2 file: /sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/14089982/ft2_4FGL_J1640.3+6850_weekly_bin885.fits Selecting the good time intervals: time -p gtmktime scfile=/lscratch/kocevski/14089982/ft2_4FGL_J1640.3+6850_weekly_bin885.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/14089982/ft1_filteredMKT_4FGL_J1640.3+6850_weekly_bin885.fits evtable="EVENTS" outfile="/lscratch/kocevski/14089982/ft1_filtered_4FGL_J1640.3+6850_weekly_bin885.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.60 user 0.21 sys 0.15 Number of photons that the gtmktime cut: 1735 Generating the livetime cube: time -p gtltcube evfile="/lscratch/kocevski/14089982/ft1_filtered_4FGL_J1640.3+6850_weekly_bin885.fits" evtable="EVENTS" scfile=/lscratch/kocevski/14089982/ft2_4FGL_J1640.3+6850_weekly_bin885.fits sctable="SC_DATA" outfile=/lscratch/kocevski/14089982/ltcube_774230401_774835201_4FGL_J1640.3+6850_weekly_bin885.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/14089982/ft2_4FGL_J1640.3+6850_weekly_bin885.fits .....................! real 19.61 user 18.39 sys 0.24 Generating the exposure map: time -p gtexpmap evfile=/lscratch/kocevski/14089982/ft1_filtered_4FGL_J1640.3+6850_weekly_bin885.fits evtable="EVENTS" scfile=/lscratch/kocevski/14089982/ft2_4FGL_J1640.3+6850_weekly_bin885.fits sctable="SC_DATA" expcube=/lscratch/kocevski/14089982/ltcube_774230401_774835201_4FGL_J1640.3+6850_weekly_bin885.fits outfile=/lscratch/kocevski/14089982/expmap_774230401_774835201_4FGL_J1640.3+6850_weekly_bin885.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/14089982/ltcube_774230401_774835201_4FGL_J1640.3+6850_weekly_bin885.fits .....................! real 71.17 user 65.80 sys 4.05 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/14089982/ft1_filtered_4FGL_J1640.3+6850_weekly_bin885.fits scfile=/lscratch/kocevski/14089982/ft2_4FGL_J1640.3+6850_weekly_bin885.fits outfile=/lscratch/kocevski/14089982/cmap_774230401_774835201_4FGL_J1640.3+6850_weekly_bin885.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.14 user 0.26 sys 0.13 Creating the high resolution counts map: time -p gtbin evfile=/lscratch/kocevski/14089982/ft1_filtered_4FGL_J1640.3+6850_weekly_bin885.fits scfile=/lscratch/kocevski/14089982/ft2_4FGL_J1640.3+6850_weekly_bin885.fits outfile=/lscratch/kocevski/14089982/cmap_HighResolution_774230401_774835201_4FGL_J1640.3+6850_weekly_bin885.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.43 user 0.26 sys 0.15 Computing the diffuse response: time -p gtdiffrsp evfile=/lscratch/kocevski/14089982/ft1_filtered_4FGL_J1640.3+6850_weekly_bin885.fits evtable="EVENTS" scfile=/lscratch/kocevski/14089982/ft2_4FGL_J1640.3+6850_weekly_bin885.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/14089982/Model_4FGL_J1640.3+6850_weekly_bin885.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/14089982/ft1_filtered_4FGL_J1640.3+6850_weekly_bin885.fits.....................! real 63.14 user 61.14 sys 0.73 Creating the likelihood object... obs = UnbinnedObs('/lscratch/kocevski/14089982/ft1_filtered_4FGL_J1640.3+6850_weekly_bin885.fits', '/lscratch/kocevski/14089982/ft2_4FGL_J1640.3+6850_weekly_bin885.fits', expMap='/lscratch/kocevski/14089982/expmap_774230401_774835201_4FGL_J1640.3+6850_weekly_bin885.fits', expCube='/lscratch/kocevski/14089982/ltcube_774230401_774835201_4FGL_J1640.3+6850_weekly_bin885.fits', irfs='P8R3_SOURCE_V2') like = UnbinnedAnalysis(obs, '/lscratch/kocevski/14089982/Model_4FGL_J1640.3+6850_weekly_bin885.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/14089982/ft1_filtered_4FGL_J1640.3+6850_weekly_bin885.fits Spacecraft file(s): /lscratch/kocevski/14089982/ft2_4FGL_J1640.3+6850_weekly_bin885.fits Exposure map: /lscratch/kocevski/14089982/expmap_774230401_774835201_4FGL_J1640.3+6850_weekly_bin885.fits Exposure cube: /lscratch/kocevski/14089982/ltcube_774230401_774835201_4FGL_J1640.3+6850_weekly_bin885.fits IRFs: P8R3_SOURCE_V2 Source model file: /lscratch/kocevski/14089982/Model_4FGL_J1640.3+6850_weekly_bin885.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) = 18567.1982192 Fit tolerance = 0.0001 Performing likelihood fit... Done. MINUIT Return Code (Fixed Index): 0 logL (Fixed Index) = 18567.1667867 Fit tolerance = 1e-08 Performing likelihood fit... ********** ** 14 **SET NOWARN ********** PARAMETER DEFINITIONS: NO. NAME VALUE STEP SIZE LIMITS 1 'Prefactor ' .29706E-02 1.0000 .0000 .10000E+07 2 'Prefactor ' 3.0310 1.0000 .0000 .10000E+07 3 'Prefactor ' .27261E-02 1.0000 .0000 .10000E+07 4 'Prefactor ' .13321E-02 1.0000 .0000 .10000E+07 5 'Prefactor ' .21021E-01 1.0000 .0000 .10000E+07 6 'norm ' 4.9673 1.0000 .0000 .10000E+07 7 'Prefactor ' .17341E-02 1.0000 .0000 .10000E+07 8 'Prefactor ' 11.631 1.0000 .0000 .10000E+07 9 'norm ' .17657E-04 1.0000 .0000 .10000E+07 10 'Prefactor ' .20013E-01 1.0000 .0000 .10000E+07 11 'Prefactor ' 5.7184 1.0000 .0000 .10000E+07 12 'Prefactor ' .28688E-06 1.0000 .0000 .10000E+07 13 'norm ' 6.7402 1.0000 .0000 .10000E+07 14 'Prefactor ' .16692E-02 1.0000 .0000 .10000E+07 15 'norm ' .80032 1.0000 .0000 .10000E+07 16 'Prefactor ' 8.4040 1.0000 .0000 .10000E+07 17 'Prefactor ' .17059 1.0000 .0000 .10000E+07 18 'Prefactor ' 3.8948 1.0000 .0000 .10000E+07 19 'Prefactor ' .55511E-09 1.0000 .0000 .10000E+07 20 'Prefactor ' 8.7022 1.0000 .0000 .10000E+07 21 'Prefactor ' 3.1819 1.0000 .0000 .10000E+07 22 'Prefactor ' 40.677 1.0000 .0000 .10000E+07 23 'norm ' 8.1778 1.0000 .0000 .10000E+07 24 'norm ' .87385 1.0000 .0000 .10000E+07 25 'norm ' 7.3592 1.0000 .0000 .10000E+07 26 'Prefactor ' .72759E-04 1.0000 .0000 .10000E+07 27 'Prefactor ' 25.018 1.0000 .0000 .10000E+07 28 'Prefactor ' .17502E-03 1.0000 .0000 .10000E+07 29 'Prefactor ' .45973E-02 1.0000 .0000 .10000E+07 30 'Normalizat' .82949 1.0000 .10000E-01 10.000 31 'Prefactor ' 1.0648 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= 18567.16 FROM MIGRAD STATUS=CONVERGED 240 CALLS 3067 TOTAL EDM= .21E-09 STRATEGY=1 ERROR MATRIX UNCERTAINTY= 1.2% EXT PARAMETER STEP FIRST NO. NAME VALUE ERROR SIZE DERIVATIVE 1 Prefactor .29493E-06 7.8312 -.66688E-07** at limit ** 2 Prefactor 3.0378 9.9039 -.12067E-06 -.13116E-03 3 Prefactor .11102E-09 6.9237 .27404E-07** at limit ** 4 Prefactor .44409E-09 4.7817 .26288E-07** at limit ** 5 Prefactor .32196E-08 71.665 .27577E-06** at limit ** 6 norm 4.9697 1.6416 -.21820E-09 -.31592E-03 7 Prefactor .38303E-07 16.069 -.12444E-06** at limit ** 8 Prefactor 11.645 1.4464 .73935E-08 .92431E-02 9 norm .46740E-07 7.4843 .78118E-07** at limit ** 10 Prefactor .0000 35.326 -.13883E-06** at limit ** 11 Prefactor 5.7228 4.6397 .81366E-08 -.16315E-03 12 Prefactor .46962E-07 7.9783 -.13826E-06** at limit ** 13 norm 6.7542 5.8325 -.21802E-07 -.51672E-03 14 Prefactor .77716E-09 5.9371 -.25716E-07** at limit ** 15 norm .79974 .39946 .48104E-08 .14021E-02 16 Prefactor 8.4412 5.6308 .75199E-09 -.19011E-03 17 Prefactor .17128 1.7997 .33577E-07** at limit ** 18 Prefactor 3.9258 6.7818 .20930E-07 .12096E-03 19 Prefactor .16653E-09 2.3926 .10662E-07** at limit ** 20 Prefactor 8.8049 4.2339 -.36822E-07 -.13433E-01 21 Prefactor 3.1979 4.7090 .45633E-08 -.75295E-04 22 Prefactor 40.782 41.165 -.38142E-08 .37513E-02 23 norm 8.1790 2.1137 .58537E-08 .46934E-03 24 norm .87448 .38527 .13329E-07 .46318E-02 25 norm 7.3457 3.1271 -.16059E-07 .75373E-03 26 Prefactor .12823E-07 24.468 .92362E-07** at limit ** 27 Prefactor 35.204 96.397 .72149E-06 .10476E-03 28 Prefactor .64371E-06 13.089 .12163E-06** at limit ** 29 Prefactor .25874E-06 9.1010 -.52741E-07** at limit ** 30 Normalizat .82999 .12048 -.21651E-06 -.33480E-04 31 Prefactor 1.0633 .98343E-01 -.10297E-06 -.31030E-04 ERR DEF= .500 Final values: Prefactor = 2.94931e-07 Prefactor = 3.03777 Prefactor = 1.11022e-10 Prefactor = 4.44089e-10 Prefactor = 3.21965e-09 norm = 4.96971 Prefactor = 3.83027e-08 Prefactor = 11.6454 norm = 4.67404e-08 Prefactor = 0 Prefactor = 5.7228 Prefactor = 4.69624e-08 norm = 6.75421 Prefactor = 7.77156e-10 norm = 0.799742 Prefactor = 8.44125 Prefactor = 0.171282 Prefactor = 3.92581 Prefactor = 1.66533e-10 Prefactor = 8.80486 Prefactor = 3.19788 Prefactor = 40.7821 norm = 8.17897 norm = 0.874477 norm = 7.34572 Prefactor = 1.28231e-08 Prefactor = 35.2039 Prefactor = 6.43707e-07 Prefactor = 2.58737e-07 Normalizat = 0.82999 Prefactor = 1.0633 ********** ** 18 **HESSE ********** FCN= 18567.16 FROM HESSE STATUS=OK 704 CALLS 3771 TOTAL EDM= .39E-06 STRATEGY= 1 ERROR MATRIX ACCURATE EXT PARAMETER INTERNAL INTERNAL NO. NAME VALUE ERROR STEP SIZE VALUE 1 Prefactor .29493E-06 10.786 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 2 Prefactor 3.0378 9.9621 .58260E-03 -1.5673 3 Prefactor .11102E-09 6.9226 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 4 Prefactor .44409E-09 4.7918 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 5 Prefactor .32196E-08 6.2784 .16970E-01 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 6 norm 4.9697 1.6421 .45100E-03 -1.5663 7 Prefactor .38303E-07 16.422 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 8 Prefactor 11.645 12.807 .29349E-03 -1.5640 9 norm .46740E-07 8.5240 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 10 Prefactor .0000 35.247 .17036E-02 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 11 Prefactor 5.7228 4.6351 .41980E-03 -1.5660 12 Prefactor .46962E-07 8.9274 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 13 norm 6.7542 5.8450 .38625E-03 -1.5656 14 Prefactor .77716E-09 5.9399 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 15 norm .79974 .40533 .52911E-03 -1.5690 16 Prefactor 8.4412 5.6523 .34557E-03 -1.5650 17 Prefactor .17128 .62884 .48242E-02 -1.5700 WARNING - - ABOVE PARAMETER IS AT LIMIT. 18 Prefactor 3.9258 6.8088 .51101E-03 -1.5668 19 Prefactor .16653E-09 2.3832 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 20 Prefactor 8.8049 14.316 .33955E-03 -1.5649 21 Prefactor 3.1979 4.7206 .56784E-03 -1.5672 22 Prefactor 40.782 41.424 .15681E-03 -1.5580 23 norm 8.1790 2.1140 .35035E-03 -1.5651 24 norm .87448 .39152 .47585E-03 -1.5689 25 norm 7.3457 3.2344 .36949E-03 -1.5654 26 Prefactor .12823E-07 24.538 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 27 Prefactor 35.204 99.252 .19997E-03 -1.5589 28 Prefactor .64371E-06 2.5576 .55595E-02 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 29 Prefactor .25874E-06 11.665 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 30 Normalizat .82999 .10567 .63170E-01 -.98966 31 Prefactor 1.0633 .84939E-01 .39111E-01 -.90648 ERR DEF= .500 Minuit fit quality: 3 estimated distance: 3.94706e-07 Minuit parameter uncertainties: 1 0.00356719 2 9.96214 3 5.94616e-05 4 9.46605e-05 5 0.000283448 6 1.64213 7 0.00158647 8 12.8073 9 0.00126203 10 3.10829e-05 11 4.63509 12 0.00129534 13 5.84497 14 0.000136814 15 0.40533 16 5.65227 17 0.628841 18 6.80883 19 3.84136e-05 20 14.3163 21 4.72058 22 41.4244 23 2.11399 24 0.391524 25 3.23439 26 0.00112161 27 99.2569 28 0.00256615 29 0.00347459 30 0.105693 31 0.0849495 Done. MINUIT Return Code (Fixed Index): 0 logL (Fixed Index) = 18567.1597091 Extracting fit parameters... 4FGL J1640.3+6850 Spectrum: PowerLaw 350 Prefactor: 4.696e-08 1.295e-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.063e+00 8.495e-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: 8.300e-01 1.057e-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: 2.56532753913e-08 ph cm-2 s-1 Energy Flux Upper Limit: 0.00194455261671 MeV cm-2 s-1 Saving results to: /lscratch/kocevski/14089982/likelihoodResults_774230401_774835201_4FGL_J1640.3+6850_weekly_bin885.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): 0 logL (Free Index) = 18567.2136486 delta logL = -0.0539395137966 Fit tolerance = 0.0001 Performing likelihood fit... Done. MINUIT Return Code (Free Index): 102 logL (Free Index) = 18567.1597127 delta logL = -3.61662387149e-06 Fit tolerance = 1e-08 Performing likelihood fit... ********** ** 14 **SET NOWARN ********** PARAMETER DEFINITIONS: NO. NAME VALUE STEP SIZE LIMITS 1 'Prefactor ' .11540E-05 1.0000 .0000 .10000E+07 2 'Index ' .52427 1.0000 .0000 10.000 3 'Normalizat' .82991 1.0000 .10000E-01 10.000 4 'Prefactor ' 1.0632 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= 18567.16 FROM MIGRAD STATUS=CONVERGED 38 CALLS 210 TOTAL EDM= .18E-11 STRATEGY=1 ERROR MATRIX UNCERTAINTY= 2.2% EXT PARAMETER STEP FIRST NO. NAME VALUE ERROR SIZE DERIVATIVE 1 Prefactor .0000 6.5542 -.29844E-06** at limit ** 2 Index 2.6996 6.3484 .32716E-04 .0000 3 Normalizat .82999 .11473 .26476E-05 -.16718E-04 4 Prefactor 1.0633 .95967E-01 -.17514E-05 .23643E-04 ERR DEF= .500 Final values: Prefactor = 0 Index = 2.69962 Normalizat = 0.82999 Prefactor = 1.0633 ********** ** 18 **HESSE ********** MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. FCN= 18567.16 FROM HESSE STATUS=FAILED 11 CALLS 221 TOTAL EDM= .18E-11 STRATEGY=1 ERROR MATRIX UNCERTAINTY=100.0% EXT PARAMETER APPROXIMATE INTERNAL INTERNAL NO. NAME VALUE ERROR STEP SIZE VALUE 1 Prefactor .0000 6.5187 .42118E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 2 Index .82515 2.0562 .32716E-04 -.47808 3 Normalizat .82999 1.1680 .26476E-05 -.98966 4 Prefactor 1.0633 1.1774 -.17514E-05 -.90648 ERR DEF= .500 Minuit fit quality: 1 estimated distance: 1.76443e-12 Minuit parameter uncertainties: 1 1.47932e-05 2 1.77625 3 1.20652 4 1.20808 shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory Done. MINUIT Return Code (Free Index): 101 logL (Free Index) = 18567.1597091 delta logL = 2.63025867753e-09 Extracting fit parameters... 4FGL J1640.3+6850 Spectrum: PowerLaw 350 Prefactor: 0.000e+00 1.479e-05 0.000e+00 1.000e+06 ( 1.000e-14) 351 Index: 2.700e+00 1.776e+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: 1.063e+00 1.208e+00 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: 8.300e-01 1.207e+00 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/14089982/cmap_HighResolution_774230401_774835201_4FGL_J1640.3+6850_weekly_bin885.png Cleaning up... ** Nuclear option initiated! ** Updating database... UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.94e-03', job_status='DONE', photon_flux_upper_limit='2.57e-08', time_completed='2025-10-20 11:45:04.588642', job_id='14089982', GAL2='1.06', fit_tolerance='1e-08', EG2='0.83', EG='0.83', time_epoch_completed='1760985904.59', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.06', dlogl='2.63e-09', ts2='0.00', photon_index_error='0.00', photon_index='2.13' WHERE bin_id='885' AND source_name='4FGL J1640.3+6850' AND cadence='weekly'; Database successfully updated. Analysis Complete. Mon Oct 20 11:45:05 PDT 2025