 **********
 **   18 **HESSE 
 **********

 FCN=   6856.490     FROM HESSE     STATUS=OK           292 CALLS     2139 TOTAL
                     EDM=   .41E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     53.905        73.977        .13543E-03   -1.5561    
   2  Prefactor     .23903E-06    9.5987        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     13.558        16.880        .26906E-03   -1.5634    
   4  Prefactor     1.4217        10.318        .89558E-03   -1.5684    
   5  Prefactor     13.661        17.688        .27075E-03   -1.5634    
   6  Prefactor     20.622        41.241        .22127E-03   -1.5617    
   7  Prefactor     .22204E-08    39.838        .16573E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     69.904        80.107        .12142E-03   -1.5541    
   9  Prefactor     2.9865        32.856        .57049E-03   -1.5673    
  10  Prefactor     .25813E-06    9.4884        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .41172        2.0932        .64225E-02   -1.5695    
  12  Prefactor     6.3128        25.068        .39858E-03   -1.5658    
  13  norm          2.7755        11.299        .59686E-03   -1.5675    
  14  Prefactor     163.86        268.81        .78138E-04   -1.5452    
  15  Prefactor     15.269        6.6984        .25603E-03   -1.5630    
  16  norm          .20539E-08    72.089        .14431E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    1.5902        .27409        .75835E-01   -.75273    
  18  Prefactor     .70122        .99466E-01    .42422E-01   -1.0348    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.10468e-06
Minuit parameter uncertainties:
  1  73.9779
  2  0.00302962
  3  16.8803
  4  7.66005
  5  17.6878
  6  41.2413
  7  0.000593543
  8  80.1084
  9  19.8117
  10  0.00313012
  11  1.85666
  12  25.0681
  13  11.2
  14  268.832
  15  6.69843
  16  0.000765122
  17  0.274349
  18  0.0994908
/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).

Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 6856.48996828

Extracting fit parameters...

4FGL J1707.5+1649
   Spectrum: PowerLaw
271    Prefactor:  2.581e-07  3.130e-03  0.000e+00  1.000e+06 ( 1.000e-13)
272        Index:  2.254e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
273        Scale:  1.429e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
621    Prefactor:  7.012e-01  9.949e-02  0.000e+00  1.000e+01 ( 1.000e+00)
622        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
623        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
620   Normalization:  1.590e+00  2.743e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 256.881 16.821
Photon Flux Upper Limit: 1.05769765771e-07 ph cm-2 s-1
Energy Flux Upper Limit: 0.0080904994105 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/31570932/likelihoodResults_803347201_803606401_4FGL_J1707.5+1649_daily_bin2176.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) = 6856.54098933
delta logL = -0.0510210408374

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6856.4899738
delta logL = -5.51347329747e-06

Fit tolerance = 1e-08

Performing likelihood fit...
 **********
 **   14 **SET NOWARN 
 **********

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .24958E-04   1.0000          .0000       .10000E+07
     2 'Index     '    3.4829       1.0000          .0000       10.000    
     3 'Normalizat'    1.5908       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .70116       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6240E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   6856.490     FROM MIGRAD    STATUS=CONVERGED     63 CALLS      238 TOTAL
                     EDM=   .11E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        .57343        .42118E-03** at limit **
   2  Index         .34421        .38356        .45132E-04     .0000    
   3  Normalizat    1.5902        1.0412       -.26796E-05    .98058E-05
   4  Prefactor     .70122        1.0509       -.25515E-06    .40158E-07
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 0.344214
  Normalizat = 1.59024
  Prefactor  = 0.701217
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   6856.490     FROM HESSE     STATUS=FAILED         9 CALLS      247 TOTAL
                     EDM=   .11E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        .57343        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .46697E-01    .40172        .45132E-04   -1.1976    
   3  Normalizat    1.5902        1.0412       -.26796E-05   -.75273    
   4  Prefactor     .70122        1.0509       -.25515E-06   -1.0348    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.06952e-11
Minuit parameter uncertainties:
  1  1.71066e-06
  2  0.386447
  3  1.05593
  4  1.08312
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) = 6856.48996827
delta logL = 1.36433300213e-08

Extracting fit parameters...

4FGL J1707.5+1649
   Spectrum: PowerLaw
271    Prefactor:  0.000e+00  1.711e-06  0.000e+00  1.000e+06 ( 1.000e-13)
272        Index:  3.442e-01  3.864e-01  0.000e+00  1.000e+01 (-1.000e+00)
273        Scale:  1.429e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
621    Prefactor:  7.012e-01  1.083e+00  0.000e+00  1.000e+01 ( 1.000e+00)
622        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
623        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
620   Normalization:  1.590e+00  1.056e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 256.881 16.821

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /lscratch/kocevski/31570932/cmap_HighResolution_803347201_803606401_4FGL_J1707.5+1649_daily_bin2176.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.09e-03', job_status='DONE', photon_flux_upper_limit='1.06e-07', time_completed='2026-07-13 15:46:35.763568', job_id='31570932', GAL2='0.70', fit_tolerance='1e-08', EG2='1.59', EG='1.59', time_epoch_completed='1783982795.76', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.70', dlogl='1.36e-08', ts2='0.00', photon_index_error='0.00', photon_index='2.25' WHERE bin_id='2176' AND source_name='4FGL J1707.5+1649' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Jul 13 15:46:36 PDT 2026

number of points = 7643
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1707.5+1649_daily_bin2176
RA = 256.881, Dec = 16.8206
tmin = 803347201, tmax = 803606401
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='31571312', job_status='RUN', time_executed='2026-07-13 15:46:20.769307', time_epoch_executed='1783982780.77' WHERE source_name='4FGL J1707.5+1649' and cadence='daily' and bin_id='2176'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/31571312

Creating custom pfile directory:
/lscratch/kocevski/31571312/pfiles/

Retrieving the FT1 file...

Issuing command:
datacat find --group FT1 --filter 'nMetStop>=803347201.0 && nMetStart<803606401.0' /Data/Flight/Reprocess/P305

Issuing command:
datacat find --group FT1 --filter 'nMetStart>564945418 && nMetStop>=803347201.0 && nMetStart<803606401.0' /Data/Flight/Level1/LPA

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/31571312/ft1_4FGL_J1707.5+1649_daily_bin2176.fits


Retrieving the FT1 file...

Issuing command:
datacat find --group FT2 --filter 'nMetStop>=803347201.0 && nMetStart<803606401.0' /Data/Flight/Level1/LPA

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/31571312/ft2_4FGL_J1707.5+1649_daily_bin2176.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/31571312/ft1_4FGL_J1707.5+1649_daily_bin2176.fits outfile=/lscratch/kocevski/31571312/ft1_filteredMKT_4FGL_J1707.5+1649_daily_bin2176.fits ra=256.881 dec=16.8206 rad=12.0 tmin=803347201.0 tmax=803606401.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 2.00
user 1.65
sys 0.16

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/31571312/ft2_4FGL_J1707.5+1649_daily_bin2176.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/31571312/ft2_4FGL_J1707.5+1649_daily_bin2176.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/31571312/ft1_filteredMKT_4FGL_J1707.5+1649_daily_bin2176.fits evtable="EVENTS" outfile="/lscratch/kocevski/31571312/ft1_filtered_4FGL_J1707.5+1649_daily_bin2176.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.59
user 0.20
sys 0.12

Number of photons that the gtmktime cut: 608

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/31571312/ft1_filtered_4FGL_J1707.5+1649_daily_bin2176.fits" evtable="EVENTS" scfile=/lscratch/kocevski/31571312/ft2_4FGL_J1707.5+1649_daily_bin2176.fits sctable="SC_DATA" outfile=/lscratch/kocevski/31571312/ltcube_803347201_803606401_4FGL_J1707.5+1649_daily_bin2176.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/31571312/ft2_4FGL_J1707.5+1649_daily_bin2176.fits
.....................!
real 8.84
user 8.31
sys 0.25

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/31571312/ft1_filtered_4FGL_J1707.5+1649_daily_bin2176.fits evtable="EVENTS" scfile=/lscratch/kocevski/31571312/ft2_4FGL_J1707.5+1649_daily_bin2176.fits sctable="SC_DATA" expcube=/lscratch/kocevski/31571312/ltcube_803347201_803606401_4FGL_J1707.5+1649_daily_bin2176.fits outfile=/lscratch/kocevski/31571312/expmap_803347201_803606401_4FGL_J1707.5+1649_daily_bin2176.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/31571312/ltcube_803347201_803606401_4FGL_J1707.5+1649_daily_bin2176.fits
.....................!
real 69.93
user 65.30
sys 4.16

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 185 point sources and 0 extended sources

Setting source of interest to:
4FGL J1707.5+1649 @ 256.881 16.8206

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/31571312/ft1_filtered_4FGL_J1707.5+1649_daily_bin2176.fits scfile=/lscratch/kocevski/31571312/ft2_4FGL_J1707.5+1649_daily_bin2176.fits outfile=/lscratch/kocevski/31571312/cmap_803347201_803606401_4FGL_J1707.5+1649_daily_bin2176.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=256.881 yref=16.8206 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.22
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/31571312/ft1_filtered_4FGL_J1707.5+1649_daily_bin2176.fits scfile=/lscratch/kocevski/31571312/ft2_4FGL_J1707.5+1649_daily_bin2176.fits outfile=/lscratch/kocevski/31571312/cmap_HighResolution_803347201_803606401_4FGL_J1707.5+1649_daily_bin2176.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=256.881 yref=16.8206 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.72
user 0.21
sys 0.12

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/31571312/ft1_filtered_4FGL_J1707.5+1649_daily_bin2176.fits evtable="EVENTS" scfile=/lscratch/kocevski/31571312/ft2_4FGL_J1707.5+1649_daily_bin2176.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/31571312/Model_4FGL_J1707.5+1649_daily_bin2176.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/31571312/ft1_filtered_4FGL_J1707.5+1649_daily_bin2176.fits.....................!
real 24.65
user 23.14
sys 1.06

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/31571312/ft1_filtered_4FGL_J1707.5+1649_daily_bin2176.fits', '/lscratch/kocevski/31571312/ft2_4FGL_J1707.5+1649_daily_bin2176.fits', expMap='/lscratch/kocevski/31571312/expmap_803347201_803606401_4FGL_J1707.5+1649_daily_bin2176.fits', expCube='/lscratch/kocevski/31571312/ltcube_803347201_803606401_4FGL_J1707.5+1649_daily_bin2176.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/31571312/Model_4FGL_J1707.5+1649_daily_bin2176.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1707.5+1649'

4FGL J1707.5+1649
   Spectrum: PowerLaw
271    Prefactor:  2.274e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
272        Index:  2.254e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
273        Scale:  1.429e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/31571312/ft1_filtered_4FGL_J1707.5+1649_daily_bin2176.fits
Spacecraft file(s): /lscratch/kocevski/31571312/ft2_4FGL_J1707.5+1649_daily_bin2176.fits
Exposure map: /lscratch/kocevski/31571312/expmap_803347201_803606401_4FGL_J1707.5+1649_daily_bin2176.fits
Exposure cube: /lscratch/kocevski/31571312/ltcube_803347201_803606401_4FGL_J1707.5+1649_daily_bin2176.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/31571312/Model_4FGL_J1707.5+1649_daily_bin2176.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) = 6856.49646498

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 6856.49157305

Fit tolerance = 1e-08

Performing likelihood fit...
 **********
 **   14 **SET NOWARN 
 **********

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    54.531       1.0000          .0000       .10000E+07
     2 'Prefactor '    .44655E-03   1.0000          .0000       .10000E+07
     3 'Prefactor '    13.832       1.0000          .0000       .10000E+07
     4 'Prefactor '    1.4473       1.0000          .0000       .10000E+07
     5 'Prefactor '    13.660       1.0000          .0000       .10000E+07
     6 'Prefactor '    20.438       1.0000          .0000       .10000E+07
     7 'Prefactor '    .27728E-01   1.0000          .0000       .10000E+07
     8 'Prefactor '    67.834       1.0000          .0000       .10000E+07
     9 'Prefactor '    3.1539       1.0000          .0000       .10000E+07
    10 'Prefactor '    .82011E-04   1.0000          .0000       .10000E+07
    11 'norm      '    .37248       1.0000          .0000       .10000E+07
    12 'Prefactor '    6.3345       1.0000          .0000       .10000E+07
    13 'norm      '    2.8961       1.0000          .0000       .10000E+07
    14 'Prefactor '    163.81       1.0000          .0000       .10000E+07
    15 'Prefactor '    15.272       1.0000          .0000       .10000E+07
    16 'norm      '    .82312E-01   1.0000          .0000       .10000E+07
    17 'Normalizat'    1.5888       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .70154       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6240E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6856.490     FROM MIGRAD    STATUS=CONVERGED    126 CALLS     1847 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     53.905        21.154       -.10559E-05   -.61979E-01
   2  Prefactor     .23903E-06    8.8977       -.30788E-05** at limit **
   3  Prefactor     13.558        16.841        .12042E-05   -.73780E-02
   4  Prefactor     1.4217        9.4856        .33798E-06   -.41294E-02
   5  Prefactor     13.661        9.2327        .32533E-05   -.10737    
   6  Prefactor     20.622        39.283       -.10010E-04    .92993E-02
   7  Prefactor     .22204E-08    40.426        .54768E-06** at limit **
   8  Prefactor     69.904        76.661        .70091E-05   -.25090E-01
   9  Prefactor     2.9865        25.377       -.21613E-04   -.28126E-01
  10  Prefactor     .25813E-06    8.7614        .13604E-05** at limit **
  11  norm          .41172        8.2448        .14753E-05   -.25903E-02
  12  Prefactor     6.3128        8.6707       -.55745E-05    .25690E-01
  13  norm          2.7755        11.182        .11396E-05   -.95111E-04
  14  Prefactor     163.86        2.7793        .32132E-06   -.64291E-01
  15  Prefactor     15.269        6.5977       -.25638E-06    .35106E-02
  16  norm          .20539E-08    72.318       -.28604E-05** at limit **
  17  Normalizat    1.5902        .32566       -.20046E-04   -.87615E-04
  18  Prefactor     .70122        .11838        .22237E-04   -.35172E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 53.9051
  Prefactor  = 2.39031e-07
  Prefactor  = 13.5581
  Prefactor  = 1.42174
  Prefactor  = 13.6614
  Prefactor  = 20.622
  Prefactor  = 2.22045e-09
  Prefactor  = 69.9041
  Prefactor  = 2.9865
  Prefactor  = 2.58127e-07
  norm       = 0.411721
  Prefactor  = 6.31277
  norm       = 2.77549
  Prefactor  = 163.858
  Prefactor  = 15.269
  norm       = 2.05391e-09
  Normalizat = 1.59024
  Prefactor  = 0.701216
 **********
 **   18 **HESSE 
 **********

 FCN=   6856.490     FROM HESSE     STATUS=OK           292 CALLS     2139 TOTAL
                     EDM=   .41E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     53.905        73.977        .13543E-03   -1.5561    
   2  Prefactor     .23903E-06    9.5987        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     13.558        16.880        .26906E-03   -1.5634    
   4  Prefactor     1.4217        10.318        .89558E-03   -1.5684    
   5  Prefactor     13.661        17.688        .27075E-03   -1.5634    
   6  Prefactor     20.622        41.241        .22127E-03   -1.5617    
   7  Prefactor     .22204E-08    39.838        .16573E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     69.904        80.107        .12142E-03   -1.5541    
   9  Prefactor     2.9865        32.856        .57049E-03   -1.5673    
  10  Prefactor     .25813E-06    9.4884        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .41172        2.0932        .64225E-02   -1.5695    
  12  Prefactor     6.3128        25.068        .39858E-03   -1.5658    
  13  norm          2.7755        11.299        .59686E-03   -1.5675    
  14  Prefactor     163.86        268.81        .78138E-04   -1.5452    
  15  Prefactor     15.269        6.6984        .25603E-03   -1.5630    
  16  norm          .20539E-08    72.089        .14431E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    1.5902        .27409        .75835E-01   -.75273    
  18  Prefactor     .70122        .99466E-01    .42422E-01   -1.0348    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.10468e-06
Minuit parameter uncertainties:
  1  73.9779
  2  0.00302962
  3  16.8803
  4  7.66005
  5  17.6878
  6  41.2413
  7  0.000593543
  8  80.1084
  9  19.8117
  10  0.00313012
  11  1.85666
  12  25.0681
  13  11.2
  14  268.832
  15  6.69843
  16  0.000765122
  17  0.274349
  18  0.0994908
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 6856.48996828

Extracting fit parameters...

4FGL J1707.5+1649
   Spectrum: PowerLaw
271    Prefactor:  2.581e-07  3.130e-03  0.000e+00  1.000e+06 ( 1.000e-13)
272        Index:  2.254e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
273        Scale:  1.429e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
621    Prefactor:  7.012e-01  9.949e-02  0.000e+00  1.000e+01 ( 1.000e+00)
622        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
623        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
620   Normalization:  1.590e+00  2.743e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 256.881 16.821
Photon Flux Upper Limit: 1.05769765771e-07 ph cm-2 s-1
Energy Flux Upper Limit: 0.0080904994105 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/31571312/likelihoodResults_803347201_803606401_4FGL_J1707.5+1649_daily_bin2176.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) = 6856.54098933
delta logL = -0.0510210408374

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6856.4899738
delta logL = -5.51347329747e-06

Fit tolerance = 1e-08

Performing likelihood fit...
 **********
 **   14 **SET NOWARN 
 **********

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .24958E-04   1.0000          .0000       .10000E+07
     2 'Index     '    3.4829       1.0000          .0000       10.000    
     3 'Normalizat'    1.5908       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .70116       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6240E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   6856.490     FROM MIGRAD    STATUS=CONVERGED     63 CALLS      238 TOTAL
                     EDM=   .11E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        .57343        .42118E-03** at limit **
   2  Index         .34421        .38356        .45132E-04     .0000    
   3  Normalizat    1.5902        1.0412       -.26796E-05    .98058E-05
   4  Prefactor     .70122        1.0509       -.25515E-06    .40158E-07
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 0.344214
  Normalizat = 1.59024
  Prefactor  = 0.701217
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   6856.490     FROM HESSE     STATUS=FAILED         9 CALLS      247 TOTAL
                     EDM=   .11E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        .57343        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .46697E-01    .40172        .45132E-04   -1.1976    
   3  Normalizat    1.5902        1.0412       -.26796E-05   -.75273    
   4  Prefactor     .70122        1.0509       -.25515E-06   -1.0348    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.06952e-11
Minuit parameter uncertainties:
  1  1.71066e-06
  2  0.386447
  3  1.05593
  4  1.08312
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) = 6856.48996827
delta logL = 1.36433300213e-08

Extracting fit parameters...

4FGL J1707.5+1649
   Spectrum: PowerLaw
271    Prefactor:  0.000e+00  1.711e-06  0.000e+00  1.000e+06 ( 1.000e-13)
272        Index:  3.442e-01  3.864e-01  0.000e+00  1.000e+01 (-1.000e+00)
273        Scale:  1.429e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
621    Prefactor:  7.012e-01  1.083e+00  0.000e+00  1.000e+01 ( 1.000e+00)
622        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
623        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
620   Normalization:  1.590e+00  1.056e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 256.881 16.821

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /lscratch/kocevski/31571312/cmap_HighResolution_803347201_803606401_4FGL_J1707.5+1649_daily_bin2176.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.09e-03', job_status='DONE', photon_flux_upper_limit='1.06e-07', time_completed='2026-07-13 15:51:52.109358', job_id='31571312', GAL2='0.70', fit_tolerance='1e-08', EG2='1.59', EG='1.59', time_epoch_completed='1783983112.11', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.70', dlogl='1.36e-08', ts2='0.00', photon_index_error='0.00', photon_index='2.25' WHERE bin_id='2176' AND source_name='4FGL J1707.5+1649' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Jul 13 15:51:52 PDT 2026

