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


Performing analysis on: 4FGL_J1707.5+1649_weekly_bin938
RA = 256.881, Dec = 16.8206
tmin = 806284801, tmax = 806889601
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='33458703', job_status='RUN', time_executed='2026-07-28 14:17:22.700282', time_epoch_executed='1785273442.7' WHERE source_name='4FGL J1707.5+1649' and cadence='weekly' and bin_id='938'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/33458703

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/33458703/ft1_4FGL_J1707.5+1649_weekly_bin938.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/33458703/ft2_4FGL_J1707.5+1649_weekly_bin938.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/33458703/ft1_4FGL_J1707.5+1649_weekly_bin938.fits outfile=/lscratch/kocevski/33458703/ft1_filteredMKT_4FGL_J1707.5+1649_weekly_bin938.fits ra=256.881 dec=16.8206 rad=12.0 tmin=806284801.0 tmax=806889601.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 5.54
user 4.61
sys 0.28

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

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

Number of photons that the gtmktime cut: 2546

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/33458703/ft1_filtered_4FGL_J1707.5+1649_weekly_bin938.fits" evtable="EVENTS" scfile=/lscratch/kocevski/33458703/ft2_4FGL_J1707.5+1649_weekly_bin938.fits sctable="SC_DATA" /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)
e GAL_V02
Working on...
/lscratch/kocevski/33458169/ft1_filtered_4FGL_J1707.5+1649_weekly_bin938.fits.....................!
real 69.84
user 67.44
sys 1.27

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/33458169/ft1_filtered_4FGL_J1707.5+1649_weekly_bin938.fits', '/lscratch/kocevski/33458169/ft2_4FGL_J1707.5+1649_weekly_bin938.fits', expMap='/lscratch/kocevski/33458169/expmap_806284801_806889601_4FGL_J1707.5+1649_weekly_bin938.fits', expCube='/lscratch/kocevski/33458169/ltcube_806284801_806889601_4FGL_J1707.5+1649_weekly_bin938.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/33458169/Model_4FGL_J1707.5+1649_weekly_bin938.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/33458169/ft1_filtered_4FGL_J1707.5+1649_weekly_bin938.fits
Spacecraft file(s): /lscratch/kocevski/33458169/ft2_4FGL_J1707.5+1649_weekly_bin938.fits
Exposure map: /lscratch/kocevski/33458169/expmap_806284801_806889601_4FGL_J1707.5+1649_weekly_bin938.fits
Exposure cube: /lscratch/kocevski/33458169/ltcube_806284801_806889601_4FGL_J1707.5+1649_weekly_bin938.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/33458169/Model_4FGL_J1707.5+1649_weekly_bin938.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) = 26360.0048742

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    42.344       1.0000          .0000       .10000E+07
     2 'Prefactor '    .11930E-04   1.0000          .0000       .10000E+07
     3 'Prefactor '    .42229       1.0000          .0000       .10000E+07
     4 'Prefactor '    2.8824       1.0000          .0000       .10000E+07
     5 'Prefactor '    .30628E-04   1.0000          .0000       .10000E+07
     6 'Prefactor '    .22098E-02   1.0000          .0000       .10000E+07
     7 'Prefactor '    .34786E-04   1.0000          .0000       .10000E+07
     8 'Prefactor '    .50464E-01   1.0000          .0000       .10000E+07
     9 'Prefactor '    2.2711       1.0000          .0000       .10000E+07
    10 'Prefactor '    .65562E-04   1.0000          .0000       .10000E+07
    11 'norm      '    .35037       1.0000          .0000       .10000E+07
    12 'Prefactor '    9.7186       1.0000          .0000       .10000E+07
    13 'norm      '    13.642       1.0000          .0000       .10000E+07
    14 'Prefactor '    2.4114       1.0000          .0000       .10000E+07
    15 'Prefactor '    29.483       1.0000          .0000       .10000E+07
    16 'norm      '    .13703E-01   1.0000          .0000       .10000E+07
    17 'Normalizat'    1.2670       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .90823       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   26359.93     FROM MIGRAD    STATUS=CONVERGED    485 CALLS     1435 TOTAL
                     EDM=   .21E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     41.699        19.722         .0000       -.61278E-03
   2  Prefactor      .0000        3.0843         .0000    ** at limit **
   3  Prefactor     .44542        3.3227         .0000        .92006E-02
   4  Prefactor     2.8764        2.6631         .0000        .39151    
   5  Prefactor      .0000        10.416         .0000    ** at limit **
   6  Prefactor      .0000        13.508         .0000    ** at limit **
   7  Prefactor      .0000        37.548         .0000    ** at limit **
   8  Prefactor      .0000        71.322         .0000    ** at limit **
   9  Prefactor     2.2877        4.1385         .0000        .13668E-01
  10  Prefactor      .0000        2.3740         .0000    ** at limit **
  11  norm          .34951        1.1027         .0000        .84943E-01
  12  Prefactor     9.8108        9.4056         .0000        .27053E-01
  13  norm          13.619        7.9345         .0000        .10188E-01
  14  Prefactor     .81507E-01    32.300         .0000    ** at limit **
  15  Prefactor     29.481        3.1695         .0000        .23331E-01
  16  norm           .0000        20.446         .0000    ** at limit **
  17  Normalizat    1.2676        .14149         .0000       -.25083E-05
  18  Prefactor     .90844        .53100E-01     .0000       -.12489E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 41.6991
  Prefactor  = 0
  Prefactor  = 0.445418
  Prefactor  = 2.87636
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 2.28766
  Prefactor  = 0
  norm       = 0.34951
  Prefactor  = 9.81083
  norm       = 13.6192
  Prefactor  = 0.0815073
  Prefactor  = 29.4815
  norm       = 0
  Normalizat = 1.26756
  Prefactor  = 0.908437
 **********
 **   18 **HESSE 
 **********

 FCN=   26359.93     FROM HESSE     STATUS=OK           258 CALLS     1693 TOTAL
                     EDM=   .18E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     41.699        19.730        .61476E-05   -1.5579    
   2  Prefactor      .0000        3.0874        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .44542        32.114        .55838E-03   -1.5695    
   4  Prefactor     2.8764        2.6612        .11967E-03   -1.5674    
   5  Prefactor      .0000        10.766        .16847E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor      .0000        13.550        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor      .0000        37.756        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor      .0000        73.326        .62088E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.2877        4.1221        .27248E-04   -1.5678    
  10  Prefactor      .0000        2.3768        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .34951        1.1088        .29278E-04   -1.5696    
  12  Prefactor     9.8108        9.3983        .64240E-04   -1.5645    
  13  norm          13.619        7.9365        .54186E-04   -1.5634    
  14  Prefactor     .81507E-01    22.072        .22606E-01   -1.5702    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     29.481        3.1691        .36840E-04   -1.5599    
  16  norm           .0000        20.455        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    1.2676        .17047        .38145E-03   -.84540    
  18  Prefactor     .90844        .64187E-01    .16864E-03   -.95847    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.76333e-07
Minuit parameter uncertainties:
  1  19.7297
  2  7.0241e-07
  3  7.5642
  4  2.66122
  5  9.56556e-06
  6  3.14571e-07
  7  9.619e-06
  8  1.21603e-05
  9  4.12213
  10  7.9208e-07
  11  1.10878
  12  9.39834
  13  7.93651
  14  2.68256
  15  3.1691
  16  6.42951e-06
  17  0.170542
  18  0.0641922
number of points = 17264
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1707.5+1649_weekly_bin938
RA = 256.881, Dec = 16.8206
tmin = 806284801, tmax = 806889601
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='33458734', job_status='RUN', time_executed='2026-07-28 14:17:25.993471', time_epoch_executed='1785273445.99' WHERE source_name='4FGL J1707.5+1649' and cadence='weekly' and bin_id='938'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/33458734

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/33458734/ft1_4FGL_J1707.5+1649_weekly_bin938.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/33458734/ft2_4FGL_J1707.5+1649_weekly_bin938.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/33458734/ft1_4FGL_J1707.5+1649_weekly_bin938.fits outfile=/lscratch/kocevski/33458734/ft1_filteredMKT_4FGL_J1707.5+1649_weekly_bin938.fits ra=256.881 dec=16.8206 rad=12.0 tmin=806284801.0 tmax=806889601.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.01
user 5.16
sys 0.28

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

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/33458734/ft2_4FGL_J1707.5+1649_weekly_bin938.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/33458734/ft1_filteredMKT_4FGL_J1707.5+1649_weekly_bin938.fits evtable="EVENTS" outfile="/lscratch/kocevski/33458734/ft1_filtered_4FGL_J1707.5+1649_weekly_bin938.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.98
user 0.22
sys 0.13

Number of photons that the gtmktime cut: 2546

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/33458734/ft1_filtered_4FGL_J1707.5+1649_weekly_bin938.fits" evtable="EVENTS" scfile=/lscratch/kocevski/33458734/ft2_4FGL_J1707.5+1649_weekly_bin938.fits sctable="SC_DATA"
WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

e GAL_V02
Working on...
/lscratch/kocevski/33458284/ft1_filtered_4FGL_J1707.5+1649_weekly_bin938.fits.....................!
real 69.94
user 67.53
sys 1.11

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/33458284/ft1_filtered_4FGL_J1707.5+1649_weekly_bin938.fits', '/lscratch/kocevski/33458284/ft2_4FGL_J1707.5+1649_weekly_bin938.fits', expMap='/lscratch/kocevski/33458284/expmap_806284801_806889601_4FGL_J1707.5+1649_weekly_bin938.fits', expCube='/lscratch/kocevski/33458284/ltcube_806284801_806889601_4FGL_J1707.5+1649_weekly_bin938.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/33458284/Model_4FGL_J1707.5+1649_weekly_bin938.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/33458284/ft1_filtered_4FGL_J1707.5+1649_weekly_bin938.fits
Spacecraft file(s): /lscratch/kocevski/33458284/ft2_4FGL_J1707.5+1649_weekly_bin938.fits
Exposure map: /lscratch/kocevski/33458284/expmap_806284801_806889601_4FGL_J1707.5+1649_weekly_bin938.fits
Exposure cube: /lscratch/kocevski/33458284/ltcube_806284801_806889601_4FGL_J1707.5+1649_weekly_bin938.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/33458284/Model_4FGL_J1707.5+1649_weekly_bin938.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) = 26360.0048742

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    42.344       1.0000          .0000       .10000E+07
     2 'Prefactor '    .11930E-04   1.0000          .0000       .10000E+07
     3 'Prefactor '    .42229       1.0000          .0000       .10000E+07
     4 'Prefactor '    2.8824       1.0000          .0000       .10000E+07
     5 'Prefactor '    .30628E-04   1.0000          .0000       .10000E+07
     6 'Prefactor '    .22098E-02   1.0000          .0000       .10000E+07
     7 'Prefactor '    .34786E-04   1.0000          .0000       .10000E+07
     8 'Prefactor '    .50464E-01   1.0000          .0000       .10000E+07
     9 'Prefactor '    2.2711       1.0000          .0000       .10000E+07
    10 'Prefactor '    .65562E-04   1.0000          .0000       .10000E+07
    11 'norm      '    .35037       1.0000          .0000       .10000E+07
    12 'Prefactor '    9.7186       1.0000          .0000       .10000E+07
    13 'norm      '    13.642       1.0000          .0000       .10000E+07
    14 'Prefactor '    2.4114       1.0000          .0000       .10000E+07
    15 'Prefactor '    29.483       1.0000          .0000       .10000E+07
    16 'norm      '    .13703E-01   1.0000          .0000       .10000E+07
    17 'Normalizat'    1.2670       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .90823       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   26359.93     FROM MIGRAD    STATUS=CONVERGED    485 CALLS     1435 TOTAL
                     EDM=   .21E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     41.699        19.722         .0000       -.61278E-03
   2  Prefactor      .0000        3.0843         .0000    ** at limit **
   3  Prefactor     .44542        3.3227         .0000        .92006E-02
   4  Prefactor     2.8764        2.6631         .0000        .39151    
   5  Prefactor      .0000        10.416         .0000    ** at limit **
   6  Prefactor      .0000        13.508         .0000    ** at limit **
   7  Prefactor      .0000        37.548         .0000    ** at limit **
   8  Prefactor      .0000        71.322         .0000    ** at limit **
   9  Prefactor     2.2877        4.1385         .0000        .13668E-01
  10  Prefactor      .0000        2.3740         .0000    ** at limit **
  11  norm          .34951        1.1027         .0000        .84943E-01
  12  Prefactor     9.8108        9.4056         .0000        .27053E-01
  13  norm          13.619        7.9345         .0000        .10188E-01
  14  Prefactor     .81507E-01    32.300         .0000    ** at limit **
  15  Prefactor     29.481        3.1695         .0000        .23331E-01
  16  norm           .0000        20.446         .0000    ** at limit **
  17  Normalizat    1.2676        .14149         .0000       -.25083E-05
  18  Prefactor     .90844        .53100E-01     .0000       -.12489E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 41.6991
  Prefactor  = 0
  Prefactor  = 0.445418
  Prefactor  = 2.87636
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 2.28766
  Prefactor  = 0
  norm       = 0.34951
  Prefactor  = 9.81083
  norm       = 13.6192
  Prefactor  = 0.0815073
  Prefactor  = 29.4815
  norm       = 0
  Normalizat = 1.26756
  Prefactor  = 0.908437
 **********
 **   18 **HESSE 
 **********

 FCN=   26359.93     FROM HESSE     STATUS=OK           258 CALLS     1693 TOTAL
                     EDM=   .18E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     41.699        19.730        .61476E-05   -1.5579    
   2  Prefactor      .0000        3.0874        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .44542        32.114        .55838E-03   -1.5695    
   4  Prefactor     2.8764        2.6612        .11967E-03   -1.5674    
   5  Prefactor      .0000        10.766        .16847E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor      .0000        13.550        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor      .0000        37.756        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor      .0000        73.326        .62088E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.2877        4.1221        .27248E-04   -1.5678    
  10  Prefactor      .0000        2.3768        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .34951        1.1088        .29278E-04   -1.5696    
  12  Prefactor     9.8108        9.3983        .64240E-04   -1.5645    
  13  norm          13.619        7.9365        .54186E-04   -1.5634    
  14  Prefactor     .81507E-01    22.072        .22606E-01   -1.5702    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     29.481        3.1691        .36840E-04   -1.5599    
  16  norm           .0000        20.455        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    1.2676        .17047        .38145E-03   -.84540    
  18  Prefactor     .90844        .64187E-01    .16864E-03   -.95847    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.76333e-07
Minuit parameter uncertainties:
  1  19.7297
  2  7.0241e-07
  3  7.5642
  4  2.66122
  5  9.56556e-06
  6  3.14571e-07
  7  9.619e-06
  8  1.21603e-05
  9  4.12213
  10  7.9208e-07
  11  1.10878
  12  9.39834
  13  7.93651
  14  2.68256
  15  3.1691
  16  6.42951e-06
  17  0.170542
  18  0.0641922
 **********
 **   18 **HESSE 
 **********

 FCN=   26359.93     FROM HESSE     STATUS=OK           258 CALLS     1693 TOTAL
                     EDM=   .18E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     41.699        19.730        .61476E-05   -1.5579    
   2  Prefactor      .0000        3.0874        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .44542        32.114        .55838E-03   -1.5695    
   4  Prefactor     2.8764        2.6612        .11967E-03   -1.5674    
   5  Prefactor      .0000        10.766        .16847E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor      .0000        13.550        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor      .0000        37.756        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor      .0000        73.326        .62088E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.2877        4.1221        .27248E-04   -1.5678    
  10  Prefactor      .0000        2.3768        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .34951        1.1088        .29278E-04   -1.5696    
  12  Prefactor     9.8108        9.3983        .64240E-04   -1.5645    
  13  norm          13.619        7.9365        .54186E-04   -1.5634    
  14  Prefactor     .81507E-01    22.072        .22606E-01   -1.5702    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     29.481        3.1691        .36840E-04   -1.5599    
  16  norm           .0000        20.455        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    1.2676        .17047        .38145E-03   -.84540    
  18  Prefactor     .90844        .64187E-01    .16864E-03   -.95847    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.76333e-07
Minuit parameter uncertainties:
  1  19.7297
  2  7.0241e-07
  3  7.5642
  4  2.66122
  5  9.56556e-06
  6  3.14571e-07
  7  9.619e-06
  8  1.21603e-05
  9  4.12213
  10  7.9208e-07
  11  1.10878
  12  9.39834
  13  7.93651
  14  2.68256
  15  3.1691
  16  6.42951e-06
  17  0.170542
  18  0.0641922
number of points = 17264
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1707.5+1649_weekly_bin938
RA = 256.881, Dec = 16.8206
tmin = 806284801, tmax = 806889601
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='33458768', job_status='RUN', time_executed='2026-07-28 14:19:21.586794', time_epoch_executed='1785273561.59' WHERE source_name='4FGL J1707.5+1649' and cadence='weekly' and bin_id='938'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/33458768

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/33458768/ft1_4FGL_J1707.5+1649_weekly_bin938.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/33458768/ft2_4FGL_J1707.5+1649_weekly_bin938.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/33458768/ft1_4FGL_J1707.5+1649_weekly_bin938.fits outfile=/lscratch/kocevski/33458768/ft1_filteredMKT_4FGL_J1707.5+1649_weekly_bin938.fits ra=256.881 dec=16.8206 rad=12.0 tmin=806284801.0 tmax=806889601.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 5.20
user 4.43
sys 0.26

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

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/33458768/ft2_4FGL_J1707.5+1649_weekly_bin938.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/33458768/ft1_filteredMKT_4FGL_J1707.5+1649_weekly_bin938.fits evtable="EVENTS" outfile="/lscratch/kocevski/33458768/ft1_filtered_4FGL_J1707.5+1649_weekly_bin938.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.79
user 0.19
sys 0.14

Number of photons that the gtmktime cut: 2546

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/33458768/ft1_filtered_4FGL_J1707.5+1649_weekly_bin938.fits" evtable="EVENTS" scfile=/lscratch/kocevski/33458768/ft2_4FGL_J1707.5+1649_weekly_bin938.fits sctable="SC_DATA"Done.

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

Extracting fit parameters...

4FGL J1707.5+1649
   Spectrum: PowerLaw
271    Prefactor:  0.000e+00  7.921e-07  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:  9.084e-01  6.419e-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.268e+00  1.705e-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: 3.26163427096e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00249487648519 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/33458299/likelihoodResults_806284801_806889601_4FGL_J1707.5+1649_weekly_bin938.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) = 26359.934697
delta logL = -0.000387715273973

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 26359.9343093
delta logL = -1.13614078145e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11102E-09   1.0000          .0000       .10000E+07
     2 'Index     '    1.2510       1.0000          .0000       10.000    
     3 'Normalizat'    1.2676       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90843       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=   26359.93     FROM MIGRAD    STATUS=CONVERGED     30 CALLS      223 TOTAL
                     EDM=   .16E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        1.6821       -.32405E-06** at limit **
   2  Index         2.7662        2.0180        .28972E-04     .0000    
   3  Normalizat    1.2676        .16267       -.38892E-05   -.25970E-04
   4  Prefactor     .90844        .62543E-01    .20841E-05   -.21709E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 2.76621
  Normalizat = 1.26756
  Prefactor  = 0.908437
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   26359.93     FROM HESSE     STATUS=FAILED        11 CALLS      234 TOTAL
                     EDM=   .16E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        1.6712        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .86672        2.0238        .28972E-04   -.46314    
   3  Normalizat    1.2676        1.0868       -.38892E-05   -.84540    
   4  Prefactor     .90844        1.2529        .20841E-05   -.95847    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.6237e-11
Minuit parameter uncertainties:
  1  1.35353e-05
  2  1.49962
  3  1.10724
  4  1.29647
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) = 26359.9343093
delta logL = -3.63797880709e-12

Extracting fit parameters...

4FGL J1707.5+1649
   Spectrum: PowerLaw
271    Prefactor:  0.000e+00  1.354e-05  0.000e+00  1.000e+06 ( 1.000e-13)
272        Index:  2.766e+00  1.500e+00  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:  9.084e-01  1.296e+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.268e+00  1.107e+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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /lscratch/kocevski/33458299/cmap_HighResolution_806284801_806889601_4FGL_J1707.5+1649_weekly_bin938.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.49e-03', job_status='DONE', photon_flux_upper_limit='3.26e-08', time_completed='2026-07-28 14:24:42.157808', job_id='33458299', GAL2='0.91', fit_tolerance='1e-08', EG2='1.27', EG='1.27', time_epoch_completed='1785273882.16', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.91', dlogl='-3.64e-12', ts2='0.00', photon_index_error='0.00', photon_index='2.25' WHERE bin_id='938' AND source_name='4FGL J1707.5+1649' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 28 14:24:42 PDT 2026

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


Performing analysis on: 4FGL_J1707.5+1649_weekly_bin938
RA = 256.881, Dec = 16.8206
tmin = 806284801, tmax = 806889601
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='33458854', job_status='RUN', time_executed='2026-07-28 14:20:20.569327', time_epoch_executed='1785273620.57' WHERE source_name='4FGL J1707.5+1649' and cadence='weekly' and bin_id='938'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/33458854

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/33458854/ft1_4FGL_J1707.5+1649_weekly_bin938.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/33458854/ft2_4FGL_J1707.5+1649_weekly_bin938.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/33458854/ft1_4FGL_J1707.5+1649_weekly_bin938.fits outfile=/lscratch/kocevski/33458854/ft1_filteredMKT_4FGL_J1707.5+1649_weekly_bin938.fits ra=256.881 dec=16.8206 rad=12.0 tmin=806284801.0 tmax=806889601.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 5.89
user 5.06
sys 0.25

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

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/33458854/ft2_4FGL_J1707.5+1649_weekly_bin938.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/33458854/ft1_filteredMKT_4FGL_J1707.5+1649_weekly_bin938.fits evtable="EVENTS" outfile="/lscratch/kocevski/33458854/ft1_filtered_4FGL_J1707.5+1649_weekly_bin938.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.97
user 0.22
sys 0.13

Number of photons that the gtmktime cut: 2546

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/33458854/ft1_filtered_4FGL_J1707.5+1649_weekly_bin938.fits" evtable="EVENTS" scfile=/lscratch/kocevski/33458854/ft2_4FGL_J1707.5+1649_weekly_bin938.fits sctable="SC_DATA"number of points = 17264
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1707.5+1649_weekly_bin938
RA = 256.881, Dec = 16.8206
tmin = 806284801, tmax = 806889601
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='33458822', job_status='RUN', time_executed='2026-07-28 14:20:23.259692', time_epoch_executed='1785273623.26' WHERE source_name='4FGL J1707.5+1649' and cadence='weekly' and bin_id='938'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/33458822

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/33458822/ft1_4FGL_J1707.5+1649_weekly_bin938.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/33458822/ft2_4FGL_J1707.5+1649_weekly_bin938.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/33458822/ft1_4FGL_J1707.5+1649_weekly_bin938.fits outfile=/lscratch/kocevski/33458822/ft1_filteredMKT_4FGL_J1707.5+1649_weekly_bin938.fits ra=256.881 dec=16.8206 rad=12.0 tmin=806284801.0 tmax=806889601.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 5.92
user 5.13
sys 0.25

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

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/33458822/ft2_4FGL_J1707.5+1649_weekly_bin938.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/33458822/ft1_filteredMKT_4FGL_J1707.5+1649_weekly_bin938.fits evtable="EVENTS" outfile="/lscratch/kocevski/33458822/ft1_filtered_4FGL_J1707.5+1649_weekly_bin938.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.91
user 0.22
sys 0.13

Number of photons that the gtmktime cut: 2546

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/33458822/ft1_filtered_4FGL_J1707.5+1649_weekly_bin938.fits" evtable="EVENTS" scfile=/lscratch/kocevski/33458822/ft2_4FGL_J1707.5+1649_weekly_bin938.fits sctable="SC_DATA"number of points = 17264
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1707.5+1649_weekly_bin938
RA = 256.881, Dec = 16.8206
tmin = 806284801, tmax = 806889601
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='33458823', job_status='RUN', time_executed='2026-07-28 14:20:23.295976', time_epoch_executed='1785273623.3' WHERE source_name='4FGL J1707.5+1649' and cadence='weekly' and bin_id='938'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/33458823

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/33458823/ft1_4FGL_J1707.5+1649_weekly_bin938.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/33458823/ft2_4FGL_J1707.5+1649_weekly_bin938.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/33458823/ft1_4FGL_J1707.5+1649_weekly_bin938.fits outfile=/lscratch/kocevski/33458823/ft1_filteredMKT_4FGL_J1707.5+1649_weekly_bin938.fits ra=256.881 dec=16.8206 rad=12.0 tmin=806284801.0 tmax=806889601.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.22
user 5.27
sys 0.25

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

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/33458823/ft2_4FGL_J1707.5+1649_weekly_bin938.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/33458823/ft1_filteredMKT_4FGL_J1707.5+1649_weekly_bin938.fits evtable="EVENTS" outfile="/lscratch/kocevski/33458823/ft1_filtered_4FGL_J1707.5+1649_weekly_bin938.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.07
user 0.22
sys 0.13

Number of photons that the gtmktime cut: 2546

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/33458823/ft1_filtered_4FGL_J1707.5+1649_weekly_bin938.fits" evtable="EVENTS" scfile=/lscratch/kocevski/33458823/ft2_4FGL_J1707.5+1649_weekly_bin938.fits sctable="SC_DATA" Done.

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

Extracting fit parameters...

4FGL J1707.5+1649
   Spectrum: PowerLaw
271    Prefactor:  0.000e+00  7.921e-07  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:  9.084e-01  6.419e-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.268e+00  1.705e-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: 3.26163427096e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00249487648519 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/33458169/likelihoodResults_806284801_806889601_4FGL_J1707.5+1649_weekly_bin938.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) = 26359.934697
delta logL = -0.000387715273973

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 26359.9343093
delta logL = -1.13614078145e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11102E-09   1.0000          .0000       .10000E+07
     2 'Index     '    1.2510       1.0000          .0000       10.000    
     3 'Normalizat'    1.2676       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90843       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=   26359.93     FROM MIGRAD    STATUS=CONVERGED     30 CALLS      223 TOTAL
                     EDM=   .16E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        1.6821       -.32405E-06** at limit **
   2  Index         2.7662        2.0180        .28972E-04     .0000    
   3  Normalizat    1.2676        .16267       -.38892E-05   -.25970E-04
   4  Prefactor     .90844        .62543E-01    .20841E-05   -.21709E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 2.76621
  Normalizat = 1.26756
  Prefactor  = 0.908437
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   26359.93     FROM HESSE     STATUS=FAILED        11 CALLS      234 TOTAL
                     EDM=   .16E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        1.6712        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .86672        2.0238        .28972E-04   -.46314    
   3  Normalizat    1.2676        1.0868       -.38892E-05   -.84540    
   4  Prefactor     .90844        1.2529        .20841E-05   -.95847    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.6237e-11
Minuit parameter uncertainties:
  1  1.35353e-05
  2  1.49962
  3  1.10724
  4  1.29647
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) = 26359.9343093
delta logL = -3.63797880709e-12

Extracting fit parameters...

4FGL J1707.5+1649
   Spectrum: PowerLaw
271    Prefactor:  0.000e+00  1.354e-05  0.000e+00  1.000e+06 ( 1.000e-13)
272        Index:  2.766e+00  1.500e+00  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:  9.084e-01  1.296e+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.268e+00  1.107e+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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /lscratch/kocevski/33458169/cmap_HighResolution_806284801_806889601_4FGL_J1707.5+1649_weekly_bin938.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.49e-03', job_status='DONE', photon_flux_upper_limit='3.26e-08', time_completed='2026-07-28 14:25:21.378850', job_id='33458169', GAL2='0.91', fit_tolerance='1e-08', EG2='1.27', EG='1.27', time_epoch_completed='1785273921.38', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.91', dlogl='-3.64e-12', ts2='0.00', photon_index_error='0.00', photon_index='2.25' WHERE bin_id='938' AND source_name='4FGL J1707.5+1649' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 28 14:25:21 PDT 2026

Done.

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

Extracting fit parameters...

4FGL J1707.5+1649
   Spectrum: PowerLaw
271    Prefactor:  0.000e+00  7.921e-07  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:  9.084e-01  6.419e-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.268e+00  1.705e-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: 3.26163427096e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00249487648519 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/33458284/likelihoodResults_806284801_806889601_4FGL_J1707.5+1649_weekly_bin938.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) = 26359.934697
delta logL = -0.000387715273973

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 26359.9343093
delta logL = -1.13614078145e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11102E-09   1.0000          .0000       .10000E+07
     2 'Index     '    1.2510       1.0000          .0000       10.000    
     3 'Normalizat'    1.2676       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90843       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=   26359.93     FROM MIGRAD    STATUS=CONVERGED     30 CALLS      223 TOTAL
                     EDM=   .16E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        1.6821       -.32405E-06** at limit **
   2  Index         2.7662        2.0180        .28972E-04     .0000    
   3  Normalizat    1.2676        .16267       -.38892E-05   -.25970E-04
   4  Prefactor     .90844        .62543E-01    .20841E-05   -.21709E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 2.76621
  Normalizat = 1.26756
  Prefactor  = 0.908437
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   26359.93     FROM HESSE     STATUS=FAILED        11 CALLS      234 TOTAL
                     EDM=   .16E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        1.6712        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .86672        2.0238        .28972E-04   -.46314    
   3  Normalizat    1.2676        1.0868       -.38892E-05   -.84540    
   4  Prefactor     .90844        1.2529        .20841E-05   -.95847    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.6237e-11
Minuit parameter uncertainties:
  1  1.35353e-05
  2  1.49962
  3  1.10724
  4  1.29647
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) = 26359.9343093
delta logL = -3.63797880709e-12

Extracting fit parameters...

4FGL J1707.5+1649
   Spectrum: PowerLaw
271    Prefactor:  0.000e+00  1.354e-05  0.000e+00  1.000e+06 ( 1.000e-13)
272        Index:  2.766e+00  1.500e+00  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:  9.084e-01  1.296e+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.268e+00  1.107e+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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /lscratch/kocevski/33458284/cmap_HighResolution_806284801_806889601_4FGL_J1707.5+1649_weekly_bin938.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.49e-03', job_status='DONE', photon_flux_upper_limit='3.26e-08', time_completed='2026-07-28 14:25:33.052864', job_id='33458284', GAL2='0.91', fit_tolerance='1e-08', EG2='1.27', EG='1.27', time_epoch_completed='1785273933.05', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.91', dlogl='-3.64e-12', ts2='0.00', photon_index_error='0.00', photon_index='2.25' WHERE bin_id='938' AND source_name='4FGL J1707.5+1649' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 28 14:25:33 PDT 2026

outfile=/lscratch/kocevski/33458703/ltcube_806284801_806889601_4FGL_J1707.5+1649_weekly_bin938.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/33458703/ft2_4FGL_J1707.5+1649_weekly_bin938.fits
.....................!
real 19.30
user 18.44
sys 0.27

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/33458703/ft1_filtered_4FGL_J1707.5+1649_weekly_bin938.fits evtable="EVENTS" scfile=/lscratch/kocevski/33458703/ft2_4FGL_J1707.5+1649_weekly_bin938.fits sctable="SC_DATA" expcube=/lscratch/kocevski/33458703/ltcube_806284801_806889601_4FGL_J1707.5+1649_weekly_bin938.fits outfile=/lscratch/kocevski/33458703/expmap_806284801_806889601_4FGL_J1707.5+1649_weekly_bin938.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/33458703/ltcube_806284801_806889601_4FGL_J1707.5+1649_weekly_bin938.fits
.....................!
real 66.56
user 61.79
sys 3.87

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/33458703/ft1_filtered_4FGL_J1707.5+1649_weekly_bin938.fits scfile=/lscratch/kocevski/33458703/ft2_4FGL_J1707.5+1649_weekly_bin938.fits outfile=/lscratch/kocevski/33458703/cmap_806284801_806889601_4FGL_J1707.5+1649_weekly_bin938.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.83
user 0.21
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/33458703/ft1_filtered_4FGL_J1707.5+1649_weekly_bin938.fits scfile=/lscratch/kocevski/33458703/ft2_4FGL_J1707.5+1649_weekly_bin938.fits outfile=/lscratch/kocevski/33458703/cmap_HighResolution_806284801_806889601_4FGL_J1707.5+1649_weekly_bin938.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.89
user 0.24
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/33458703/ft1_filtered_4FGL_J1707.5+1649_weekly_bin938.fits evtable="EVENTS" scfile=/lscratch/kocevski/33458703/ft2_4FGL_J1707.5+1649_weekly_bin938.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/33458703/Model_4FGL_J1707.5+1649_weekly_bin938.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 sourcee GAL_V02
Working on...
/lscratch/kocevski/33458369/ft1_filtered_4FGL_J1707.5+1649_weekly_bin938.fits.....................!
real 72.43
user 70.05
sys 1.12

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/33458369/ft1_filtered_4FGL_J1707.5+1649_weekly_bin938.fits', '/lscratch/kocevski/33458369/ft2_4FGL_J1707.5+1649_weekly_bin938.fits', expMap='/lscratch/kocevski/33458369/expmap_806284801_806889601_4FGL_J1707.5+1649_weekly_bin938.fits', expCube='/lscratch/kocevski/33458369/ltcube_806284801_806889601_4FGL_J1707.5+1649_weekly_bin938.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/33458369/Model_4FGL_J1707.5+1649_weekly_bin938.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/33458369/ft1_filtered_4FGL_J1707.5+1649_weekly_bin938.fits
Spacecraft file(s): /lscratch/kocevski/33458369/ft2_4FGL_J1707.5+1649_weekly_bin938.fits
Exposure map: /lscratch/kocevski/33458369/expmap_806284801_806889601_4FGL_J1707.5+1649_weekly_bin938.fits
Exposure cube: /lscratch/kocevski/33458369/ltcube_806284801_806889601_4FGL_J1707.5+1649_weekly_bin938.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/33458369/Model_4FGL_J1707.5+1649_weekly_bin938.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) = 26360.0048742

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    42.344       1.0000          .0000       .10000E+07
     2 'Prefactor '    .11930E-04   1.0000          .0000       .10000E+07
     3 'Prefactor '    .42229       1.0000          .0000       .10000E+07
     4 'Prefactor '    2.8824       1.0000          .0000       .10000E+07
     5 'Prefactor '    .30628E-04   1.0000          .0000       .10000E+07
     6 'Prefactor '    .22098E-02   1.0000          .0000       .10000E+07
     7 'Prefactor '    .34786E-04   1.0000          .0000       .10000E+07
     8 'Prefactor '    .50464E-01   1.0000          .0000       .10000E+07
     9 'Prefactor '    2.2711       1.0000          .0000       .10000E+07
    10 'Prefactor '    .65562E-04   1.0000          .0000       .10000E+07
    11 'norm      '    .35037       1.0000          .0000       .10000E+07
    12 'Prefactor '    9.7186       1.0000          .0000       .10000E+07
    13 'norm      '    13.642       1.0000          .0000       .10000E+07
    14 'Prefactor '    2.4114       1.0000          .0000       .10000E+07
    15 'Prefactor '    29.483       1.0000          .0000       .10000E+07
    16 'norm      '    .13703E-01   1.0000          .0000       .10000E+07
    17 'Normalizat'    1.2670       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .90823       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   26359.93     FROM MIGRAD    STATUS=CONVERGED    485 CALLS     1435 TOTAL
                     EDM=   .21E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     41.699        19.722         .0000       -.61278E-03
   2  Prefactor      .0000        3.0843         .0000    ** at limit **
   3  Prefactor     .44542        3.3227         .0000        .92006E-02
   4  Prefactor     2.8764        2.6631         .0000        .39151    
   5  Prefactor      .0000        10.416         .0000    ** at limit **
   6  Prefactor      .0000        13.508         .0000    ** at limit **
   7  Prefactor      .0000        37.548         .0000    ** at limit **
   8  Prefactor      .0000        71.322         .0000    ** at limit **
   9  Prefactor     2.2877        4.1385         .0000        .13668E-01
  10  Prefactor      .0000        2.3740         .0000    ** at limit **
  11  norm          .34951        1.1027         .0000        .84943E-01
  12  Prefactor     9.8108        9.4056         .0000        .27053E-01
  13  norm          13.619        7.9345         .0000        .10188E-01
  14  Prefactor     .81507E-01    32.300         .0000    ** at limit **
  15  Prefactor     29.481        3.1695         .0000        .23331E-01
  16  norm           .0000        20.446         .0000    ** at limit **
  17  Normalizat    1.2676        .14149         .0000       -.25083E-05
  18  Prefactor     .90844        .53100E-01     .0000       -.12489E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 41.6991
  Prefactor  = 0
  Prefactor  = 0.445418
  Prefactor  = 2.87636
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 2.28766
  Prefactor  = 0
  norm       = 0.34951
  Prefactor  = 9.81083
  norm       = 13.6192
  Prefactor  = 0.0815073
  Prefactor  = 29.4815
  norm       = 0
  Normalizat = 1.26756
  Prefactor  = 0.908437
 outfile=/lscratch/kocevski/33458734/ltcube_806284801_806889601_4FGL_J1707.5+1649_weekly_bin938.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/33458734/ft2_4FGL_J1707.5+1649_weekly_bin938.fits
.....................!
real 19.11
user 18.08
sys 0.25

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/33458734/ft1_filtered_4FGL_J1707.5+1649_weekly_bin938.fits evtable="EVENTS" scfile=/lscratch/kocevski/33458734/ft2_4FGL_J1707.5+1649_weekly_bin938.fits sctable="SC_DATA" expcube=/lscratch/kocevski/33458734/ltcube_806284801_806889601_4FGL_J1707.5+1649_weekly_bin938.fits outfile=/lscratch/kocevski/33458734/expmap_806284801_806889601_4FGL_J1707.5+1649_weekly_bin938.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/33458734/ltcube_806284801_806889601_4FGL_J1707.5+1649_weekly_bin938.fits
.....................!
real 71.52
user 66.20
sys 4.19

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/33458734/ft1_filtered_4FGL_J1707.5+1649_weekly_bin938.fits scfile=/lscratch/kocevski/33458734/ft2_4FGL_J1707.5+1649_weekly_bin938.fits outfile=/lscratch/kocevski/33458734/cmap_806284801_806889601_4FGL_J1707.5+1649_weekly_bin938.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.79
user 0.23
sys 0.10

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/33458734/ft1_filtered_4FGL_J1707.5+1649_weekly_bin938.fits scfile=/lscratch/kocevski/33458734/ft2_4FGL_J1707.5+1649_weekly_bin938.fits outfile=/lscratch/kocevski/33458734/cmap_HighResolution_806284801_806889601_4FGL_J1707.5+1649_weekly_bin938.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.89
user 0.24
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/33458734/ft1_filtered_4FGL_J1707.5+1649_weekly_bin938.fits evtable="EVENTS" scfile=/lscratch/kocevski/33458734/ft2_4FGL_J1707.5+1649_weekly_bin938.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/33458734/Model_4FGL_J1707.5+1649_weekly_bin938.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 sourc **********
 **   18 **HESSE 
 **********

 FCN=   26359.93     FROM HESSE     STATUS=OK           258 CALLS     1693 TOTAL
                     EDM=   .18E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     41.699        19.730        .61476E-05   -1.5579    
   2  Prefactor      .0000        3.0874        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .44542        32.114        .55838E-03   -1.5695    
   4  Prefactor     2.8764        2.6612        .11967E-03   -1.5674    
   5  Prefactor      .0000        10.766        .16847E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor      .0000        13.550        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor      .0000        37.756        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor      .0000        73.326        .62088E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.2877        4.1221        .27248E-04   -1.5678    
  10  Prefactor      .0000        2.3768        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .34951        1.1088        .29278E-04   -1.5696    
  12  Prefactor     9.8108        9.3983        .64240E-04   -1.5645    
  13  norm          13.619        7.9365        .54186E-04   -1.5634    
  14  Prefactor     .81507E-01    22.072        .22606E-01   -1.5702    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     29.481        3.1691        .36840E-04   -1.5599    
  16  norm           .0000        20.455        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    1.2676        .17047        .38145E-03   -.84540    
  18  Prefactor     .90844        .64187E-01    .16864E-03   -.95847    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.76333e-07
Minuit parameter uncertainties:
  1  19.7297
  2  7.0241e-07
  3  7.5642
  4  2.66122
  5  9.56556e-06
  6  3.14571e-07
  7  9.619e-06
  8  1.21603e-05
  9  4.12213
  10  7.9208e-07
  11  1.10878
  12  9.39834
  13  7.93651
  14  2.68256
  15  3.1691
  16  6.42951e-06
  17  0.170542
  18  0.0641922
number of points = 17264
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1707.5+1649_weekly_bin938
RA = 256.881, Dec = 16.8206
tmin = 806284801, tmax = 806889601
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='33459183', job_status='RUN', time_executed='2026-07-28 14:23:16.447470', time_epoch_executed='1785273796.45' WHERE source_name='4FGL J1707.5+1649' and cadence='weekly' and bin_id='938'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/33459183

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/33459183/ft1_4FGL_J1707.5+1649_weekly_bin938.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/33459183/ft2_4FGL_J1707.5+1649_weekly_bin938.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/33459183/ft1_4FGL_J1707.5+1649_weekly_bin938.fits outfile=/lscratch/kocevski/33459183/ft1_filteredMKT_4FGL_J1707.5+1649_weekly_bin938.fits ra=256.881 dec=16.8206 rad=12.0 tmin=806284801.0 tmax=806889601.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 5.36
user 4.59
sys 0.22

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

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

Number of photons that the gtmktime cut: 2546

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/33459183/ft1_filtered_4FGL_J1707.5+1649_weekly_bin938.fits" evtable="EVENTS" scfile=/lscratch/kocevski/33459183/ft2_4FGL_J1707.5+1649_weekly_bin938.fits sctable="SC_DATA" outfile=/lscratch/kocevski/33458768/ltcube_806284801_806889601_4FGL_J1707.5+1649_weekly_bin938.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/33458768/ft2_4FGL_J1707.5+1649_weekly_bin938.fits
.....................!
real 16.44
user 15.63
sys 0.23

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/33458768/ft1_filtered_4FGL_J1707.5+1649_weekly_bin938.fits evtable="EVENTS" scfile=/lscratch/kocevski/33458768/ft2_4FGL_J1707.5+1649_weekly_bin938.fits sctable="SC_DATA" expcube=/lscratch/kocevski/33458768/ltcube_806284801_806889601_4FGL_J1707.5+1649_weekly_bin938.fits outfile=/lscratch/kocevski/33458768/expmap_806284801_806889601_4FGL_J1707.5+1649_weekly_bin938.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/33458768/ltcube_806284801_806889601_4FGL_J1707.5+1649_weekly_bin938.fits
.....................!
real 60.84
user 56.49
sys 3.41

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/33458768/ft1_filtered_4FGL_J1707.5+1649_weekly_bin938.fits scfile=/lscratch/kocevski/33458768/ft2_4FGL_J1707.5+1649_weekly_bin938.fits outfile=/lscratch/kocevski/33458768/cmap_806284801_806889601_4FGL_J1707.5+1649_weekly_bin938.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.76
user 0.21
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/33458768/ft1_filtered_4FGL_J1707.5+1649_weekly_bin938.fits scfile=/lscratch/kocevski/33458768/ft2_4FGL_J1707.5+1649_weekly_bin938.fits outfile=/lscratch/kocevski/33458768/cmap_HighResolution_806284801_806889601_4FGL_J1707.5+1649_weekly_bin938.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.23
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/33458768/ft1_filtered_4FGL_J1707.5+1649_weekly_bin938.fits evtable="EVENTS" scfile=/lscratch/kocevski/33458768/ft2_4FGL_J1707.5+1649_weekly_bin938.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/33458768/Model_4FGL_J1707.5+1649_weekly_bin938.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 sourcnumber of points = 17264
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1707.5+1649_weekly_bin938
RA = 256.881, Dec = 16.8206
tmin = 806284801, tmax = 806889601
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='33459054', job_status='RUN', time_executed='2026-07-28 14:21:36.957576', time_epoch_executed='1785273696.96' WHERE source_name='4FGL J1707.5+1649' and cadence='weekly' and bin_id='938'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/33459054

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/33459054/ft1_4FGL_J1707.5+1649_weekly_bin938.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/33459054/ft2_4FGL_J1707.5+1649_weekly_bin938.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/33459054/ft1_4FGL_J1707.5+1649_weekly_bin938.fits outfile=/lscratch/kocevski/33459054/ft1_filteredMKT_4FGL_J1707.5+1649_weekly_bin938.fits ra=256.881 dec=16.8206 rad=12.0 tmin=806284801.0 tmax=806889601.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.84
user 4.99
sys 0.23

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

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

Number of photons that the gtmktime cut: 2546

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/33459054/ft1_filtered_4FGL_J1707.5+1649_weekly_bin938.fits" evtable="EVENTS" scfile=/lscratch/kocevski/33459054/ft2_4FGL_J1707.5+1649_weekly_bin938.fits sctable="SC_DATA" outfile=/lscratch/kocevski/33458854/ltcube_806284801_806889601_4FGL_J1707.5+1649_weekly_bin938.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/33458854/ft2_4FGL_J1707.5+1649_weekly_bin938.fits
.....................!
real 19.40
user 18.57
sys 0.23

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/33458854/ft1_filtered_4FGL_J1707.5+1649_weekly_bin938.fits evtable="EVENTS" scfile=/lscratch/kocevski/33458854/ft2_4FGL_J1707.5+1649_weekly_bin938.fits sctable="SC_DATA" expcube=/lscratch/kocevski/33458854/ltcube_806284801_806889601_4FGL_J1707.5+1649_weekly_bin938.fits outfile=/lscratch/kocevski/33458854/expmap_806284801_806889601_4FGL_J1707.5+1649_weekly_bin938.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/33458854/ltcube_806284801_806889601_4FGL_J1707.5+1649_weekly_bin938.fits
.....................!
real 71.47
user 66.29
sys 4.23

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/33458854/ft1_filtered_4FGL_J1707.5+1649_weekly_bin938.fits scfile=/lscratch/kocevski/33458854/ft2_4FGL_J1707.5+1649_weekly_bin938.fits outfile=/lscratch/kocevski/33458854/cmap_806284801_806889601_4FGL_J1707.5+1649_weekly_bin938.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.72
user 0.24
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/33458854/ft1_filtered_4FGL_J1707.5+1649_weekly_bin938.fits scfile=/lscratch/kocevski/33458854/ft2_4FGL_J1707.5+1649_weekly_bin938.fits outfile=/lscratch/kocevski/33458854/cmap_HighResolution_806284801_806889601_4FGL_J1707.5+1649_weekly_bin938.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.79
user 0.25
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/33458854/ft1_filtered_4FGL_J1707.5+1649_weekly_bin938.fits evtable="EVENTS" scfile=/lscratch/kocevski/33458854/ft2_4FGL_J1707.5+1649_weekly_bin938.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/33458854/Model_4FGL_J1707.5+1649_weekly_bin938.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 sourc outfile=/lscratch/kocevski/33458822/ltcube_806284801_806889601_4FGL_J1707.5+1649_weekly_bin938.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/33458822/ft2_4FGL_J1707.5+1649_weekly_bin938.fits
.....................!
real 19.43
user 18.62
sys 0.22

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/33458822/ft1_filtered_4FGL_J1707.5+1649_weekly_bin938.fits evtable="EVENTS" scfile=/lscratch/kocevski/33458822/ft2_4FGL_J1707.5+1649_weekly_bin938.fits sctable="SC_DATA" expcube=/lscratch/kocevski/33458822/ltcube_806284801_806889601_4FGL_J1707.5+1649_weekly_bin938.fits outfile=/lscratch/kocevski/33458822/expmap_806284801_806889601_4FGL_J1707.5+1649_weekly_bin938.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/33458822/ltcube_806284801_806889601_4FGL_J1707.5+1649_weekly_bin938.fits
.....................!
real 73.59
user 68.26
sys 4.28

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/33458822/ft1_filtered_4FGL_J1707.5+1649_weekly_bin938.fits scfile=/lscratch/kocevski/33458822/ft2_4FGL_J1707.5+1649_weekly_bin938.fits outfile=/lscratch/kocevski/33458822/cmap_806284801_806889601_4FGL_J1707.5+1649_weekly_bin938.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.84
user 0.25
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/33458822/ft1_filtered_4FGL_J1707.5+1649_weekly_bin938.fits scfile=/lscratch/kocevski/33458822/ft2_4FGL_J1707.5+1649_weekly_bin938.fits outfile=/lscratch/kocevski/33458822/cmap_HighResolution_806284801_806889601_4FGL_J1707.5+1649_weekly_bin938.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.90
user 0.25
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/33458822/ft1_filtered_4FGL_J1707.5+1649_weekly_bin938.fits evtable="EVENTS" scfile=/lscratch/kocevski/33458822/ft2_4FGL_J1707.5+1649_weekly_bin938.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/33458822/Model_4FGL_J1707.5+1649_weekly_bin938.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 sourcoutfile=/lscratch/kocevski/33458823/ltcube_806284801_806889601_4FGL_J1707.5+1649_weekly_bin938.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/33458823/ft2_4FGL_J1707.5+1649_weekly_bin938.fits
.....................!
real 19.53
user 18.50
sys 0.27

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/33458823/ft1_filtered_4FGL_J1707.5+1649_weekly_bin938.fits evtable="EVENTS" scfile=/lscratch/kocevski/33458823/ft2_4FGL_J1707.5+1649_weekly_bin938.fits sctable="SC_DATA" expcube=/lscratch/kocevski/33458823/ltcube_806284801_806889601_4FGL_J1707.5+1649_weekly_bin938.fits outfile=/lscratch/kocevski/33458823/expmap_806284801_806889601_4FGL_J1707.5+1649_weekly_bin938.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/33458823/ltcube_806284801_806889601_4FGL_J1707.5+1649_weekly_bin938.fits
.....................!
real 73.92
user 68.67
sys 4.30

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/33458823/ft1_filtered_4FGL_J1707.5+1649_weekly_bin938.fits scfile=/lscratch/kocevski/33458823/ft2_4FGL_J1707.5+1649_weekly_bin938.fits outfile=/lscratch/kocevski/33458823/cmap_806284801_806889601_4FGL_J1707.5+1649_weekly_bin938.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.99
user 0.23
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/33458823/ft1_filtered_4FGL_J1707.5+1649_weekly_bin938.fits scfile=/lscratch/kocevski/33458823/ft2_4FGL_J1707.5+1649_weekly_bin938.fits outfile=/lscratch/kocevski/33458823/cmap_HighResolution_806284801_806889601_4FGL_J1707.5+1649_weekly_bin938.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 1.15
user 0.26
sys 0.12

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/33458823/ft1_filtered_4FGL_J1707.5+1649_weekly_bin938.fits evtable="EVENTS" scfile=/lscratch/kocevski/33458823/ft2_4FGL_J1707.5+1649_weekly_bin938.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/33458823/Model_4FGL_J1707.5+1649_weekly_bin938.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 sourceDone.

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

Extracting fit parameters...

4FGL J1707.5+1649
   Spectrum: PowerLaw
271    Prefactor:  0.000e+00  7.921e-07  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:  9.084e-01  6.419e-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.268e+00  1.705e-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: 3.26163427096e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00249487648519 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/33458369/likelihoodResults_806284801_806889601_4FGL_J1707.5+1649_weekly_bin938.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) = 26359.934697
delta logL = -0.000387715273973

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 26359.9343093
delta logL = -1.13614078145e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11102E-09   1.0000          .0000       .10000E+07
     2 'Index     '    1.2510       1.0000          .0000       10.000    
     3 'Normalizat'    1.2676       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90843       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=   26359.93     FROM MIGRAD    STATUS=CONVERGED     30 CALLS      223 TOTAL
                     EDM=   .16E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        1.6821       -.32405E-06** at limit **
   2  Index         2.7662        2.0180        .28972E-04     .0000    
   3  Normalizat    1.2676        .16267       -.38892E-05   -.25970E-04
   4  Prefactor     .90844        .62543E-01    .20841E-05   -.21709E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 2.76621
  Normalizat = 1.26756
  Prefactor  = 0.908437
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   26359.93     FROM HESSE     STATUS=FAILED        11 CALLS      234 TOTAL
                     EDM=   .16E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        1.6712        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .86672        2.0238        .28972E-04   -.46314    
   3  Normalizat    1.2676        1.0868       -.38892E-05   -.84540    
   4  Prefactor     .90844        1.2529        .20841E-05   -.95847    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.6237e-11
Minuit parameter uncertainties:
  1  1.35353e-05
  2  1.49962
  3  1.10724
  4  1.29647
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) = 26359.9343093
delta logL = -3.63797880709e-12

Extracting fit parameters...

4FGL J1707.5+1649
   Spectrum: PowerLaw
271    Prefactor:  0.000e+00  1.354e-05  0.000e+00  1.000e+06 ( 1.000e-13)
272        Index:  2.766e+00  1.500e+00  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:  9.084e-01  1.296e+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.268e+00  1.107e+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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /lscratch/kocevski/33458369/cmap_HighResolution_806284801_806889601_4FGL_J1707.5+1649_weekly_bin938.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.49e-03', job_status='DONE', photon_flux_upper_limit='3.26e-08', time_completed='2026-07-28 14:28:20.591985', job_id='33458369', GAL2='0.91', fit_tolerance='1e-08', EG2='1.27', EG='1.27', time_epoch_completed='1785274100.59', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.91', dlogl='-3.64e-12', ts2='0.00', photon_index_error='0.00', photon_index='2.25' WHERE bin_id='938' AND source_name='4FGL J1707.5+1649' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 28 14:28:20 PDT 2026

 outfile=/lscratch/kocevski/33459183/ltcube_806284801_806889601_4FGL_J1707.5+1649_weekly_bin938.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/33459183/ft2_4FGL_J1707.5+1649_weekly_bin938.fits
.....................!
real 16.78
user 16.16
sys 0.20

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/33459183/ft1_filtered_4FGL_J1707.5+1649_weekly_bin938.fits evtable="EVENTS" scfile=/lscratch/kocevski/33459183/ft2_4FGL_J1707.5+1649_weekly_bin938.fits sctable="SC_DATA" expcube=/lscratch/kocevski/33459183/ltcube_806284801_806889601_4FGL_J1707.5+1649_weekly_bin938.fits outfile=/lscratch/kocevski/33459183/expmap_806284801_806889601_4FGL_J1707.5+1649_weekly_bin938.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/33459183/ltcube_806284801_806889601_4FGL_J1707.5+1649_weekly_bin938.fits
.....................!
real 63.62
user 59.33
sys 3.52

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/33459183/ft1_filtered_4FGL_J1707.5+1649_weekly_bin938.fits scfile=/lscratch/kocevski/33459183/ft2_4FGL_J1707.5+1649_weekly_bin938.fits outfile=/lscratch/kocevski/33459183/cmap_806284801_806889601_4FGL_J1707.5+1649_weekly_bin938.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.70
user 0.22
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/33459183/ft1_filtered_4FGL_J1707.5+1649_weekly_bin938.fits scfile=/lscratch/kocevski/33459183/ft2_4FGL_J1707.5+1649_weekly_bin938.fits outfile=/lscratch/kocevski/33459183/cmap_HighResolution_806284801_806889601_4FGL_J1707.5+1649_weekly_bin938.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.57
user 0.23
sys 0.12

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/33459183/ft1_filtered_4FGL_J1707.5+1649_weekly_bin938.fits evtable="EVENTS" scfile=/lscratch/kocevski/33459183/ft2_4FGL_J1707.5+1649_weekly_bin938.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/33459183/Model_4FGL_J1707.5+1649_weekly_bin938.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 sourc GAL_V02
Working on...
/lscratch/kocevski/33458703/ft1_filtered_4FGL_J1707.5+1649_weekly_bin938.fits.....................!
real 72.41
user 69.99
sys 1.51

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/33458703/ft1_filtered_4FGL_J1707.5+1649_weekly_bin938.fits', '/lscratch/kocevski/33458703/ft2_4FGL_J1707.5+1649_weekly_bin938.fits', expMap='/lscratch/kocevski/33458703/expmap_806284801_806889601_4FGL_J1707.5+1649_weekly_bin938.fits', expCube='/lscratch/kocevski/33458703/ltcube_806284801_806889601_4FGL_J1707.5+1649_weekly_bin938.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/33458703/Model_4FGL_J1707.5+1649_weekly_bin938.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/33458703/ft1_filtered_4FGL_J1707.5+1649_weekly_bin938.fits
Spacecraft file(s): /lscratch/kocevski/33458703/ft2_4FGL_J1707.5+1649_weekly_bin938.fits
Exposure map: /lscratch/kocevski/33458703/expmap_806284801_806889601_4FGL_J1707.5+1649_weekly_bin938.fits
Exposure cube: /lscratch/kocevski/33458703/ltcube_806284801_806889601_4FGL_J1707.5+1649_weekly_bin938.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/33458703/Model_4FGL_J1707.5+1649_weekly_bin938.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) = 26360.0048742

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    42.344       1.0000          .0000       .10000E+07
     2 'Prefactor '    .11930E-04   1.0000          .0000       .10000E+07
     3 'Prefactor '    .42229       1.0000          .0000       .10000E+07
     4 'Prefactor '    2.8824       1.0000          .0000       .10000E+07
     5 'Prefactor '    .30628E-04   1.0000          .0000       .10000E+07
     6 'Prefactor '    .22098E-02   1.0000          .0000       .10000E+07
     7 'Prefactor '    .34786E-04   1.0000          .0000       .10000E+07
     8 'Prefactor '    .50464E-01   1.0000          .0000       .10000E+07
     9 'Prefactor '    2.2711       1.0000          .0000       .10000E+07
    10 'Prefactor '    .65562E-04   1.0000          .0000       .10000E+07
    11 'norm      '    .35037       1.0000          .0000       .10000E+07
    12 'Prefactor '    9.7186       1.0000          .0000       .10000E+07
    13 'norm      '    13.642       1.0000          .0000       .10000E+07
    14 'Prefactor '    2.4114       1.0000          .0000       .10000E+07
    15 'Prefactor '    29.483       1.0000          .0000       .10000E+07
    16 'norm      '    .13703E-01   1.0000          .0000       .10000E+07
    17 'Normalizat'    1.2670       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .90823       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   26359.93     FROM MIGRAD    STATUS=CONVERGED    485 CALLS     1435 TOTAL
                     EDM=   .21E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     41.699        19.722         .0000       -.61278E-03
   2  Prefactor      .0000        3.0843         .0000    ** at limit **
   3  Prefactor     .44542        3.3227         .0000        .92006E-02
   4  Prefactor     2.8764        2.6631         .0000        .39151    
   5  Prefactor      .0000        10.416         .0000    ** at limit **
   6  Prefactor      .0000        13.508         .0000    ** at limit **
   7  Prefactor      .0000        37.548         .0000    ** at limit **
   8  Prefactor      .0000        71.322         .0000    ** at limit **
   9  Prefactor     2.2877        4.1385         .0000        .13668E-01
  10  Prefactor      .0000        2.3740         .0000    ** at limit **
  11  norm          .34951        1.1027         .0000        .84943E-01
  12  Prefactor     9.8108        9.4056         .0000        .27053E-01
  13  norm          13.619        7.9345         .0000        .10188E-01
  14  Prefactor     .81507E-01    32.300         .0000    ** at limit **
  15  Prefactor     29.481        3.1695         .0000        .23331E-01
  16  norm           .0000        20.446         .0000    ** at limit **
  17  Normalizat    1.2676        .14149         .0000       -.25083E-05
  18  Prefactor     .90844        .53100E-01     .0000       -.12489E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 41.6991
  Prefactor  = 0
  Prefactor  = 0.445418
  Prefactor  = 2.87636
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 2.28766
  Prefactor  = 0
  norm       = 0.34951
  Prefactor  = 9.81083
  norm       = 13.6192
  Prefactor  = 0.0815073
  Prefactor  = 29.4815
  norm       = 0
  Normalizat = 1.26756
  Prefactor  = 0.908437
 outfile=/lscratch/kocevski/33459054/ltcube_806284801_806889601_4FGL_J1707.5+1649_weekly_bin938.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/33459054/ft2_4FGL_J1707.5+1649_weekly_bin938.fits
.....................!
real 21.67
user 20.08
sys 0.27

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/33459054/ft1_filtered_4FGL_J1707.5+1649_weekly_bin938.fits evtable="EVENTS" scfile=/lscratch/kocevski/33459054/ft2_4FGL_J1707.5+1649_weekly_bin938.fits sctable="SC_DATA" expcube=/lscratch/kocevski/33459054/ltcube_806284801_806889601_4FGL_J1707.5+1649_weekly_bin938.fits outfile=/lscratch/kocevski/33459054/expmap_806284801_806889601_4FGL_J1707.5+1649_weekly_bin938.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/33459054/ltcube_806284801_806889601_4FGL_J1707.5+1649_weekly_bin938.fits
.....................!
real 76.12
user 69.82
sys 4.42

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/33459054/ft1_filtered_4FGL_J1707.5+1649_weekly_bin938.fits scfile=/lscratch/kocevski/33459054/ft2_4FGL_J1707.5+1649_weekly_bin938.fits outfile=/lscratch/kocevski/33459054/cmap_806284801_806889601_4FGL_J1707.5+1649_weekly_bin938.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.83
user 0.30
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/33459054/ft1_filtered_4FGL_J1707.5+1649_weekly_bin938.fits scfile=/lscratch/kocevski/33459054/ft2_4FGL_J1707.5+1649_weekly_bin938.fits outfile=/lscratch/kocevski/33459054/cmap_HighResolution_806284801_806889601_4FGL_J1707.5+1649_weekly_bin938.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 1.49
user 0.33
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/33459054/ft1_filtered_4FGL_J1707.5+1649_weekly_bin938.fits evtable="EVENTS" scfile=/lscratch/kocevski/33459054/ft2_4FGL_J1707.5+1649_weekly_bin938.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/33459054/Model_4FGL_J1707.5+1649_weekly_bin938.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/33458734/ft1_filtered_4FGL_J1707.5+1649_weekly_bin938.fits.....................!
real 77.14
user 74.88
sys 1.12

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/33458734/ft1_filtered_4FGL_J1707.5+1649_weekly_bin938.fits', '/lscratch/kocevski/33458734/ft2_4FGL_J1707.5+1649_weekly_bin938.fits', expMap='/lscratch/kocevski/33458734/expmap_806284801_806889601_4FGL_J1707.5+1649_weekly_bin938.fits', expCube='/lscratch/kocevski/33458734/ltcube_806284801_806889601_4FGL_J1707.5+1649_weekly_bin938.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/33458734/Model_4FGL_J1707.5+1649_weekly_bin938.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/33458734/ft1_filtered_4FGL_J1707.5+1649_weekly_bin938.fits
Spacecraft file(s): /lscratch/kocevski/33458734/ft2_4FGL_J1707.5+1649_weekly_bin938.fits
Exposure map: /lscratch/kocevski/33458734/expmap_806284801_806889601_4FGL_J1707.5+1649_weekly_bin938.fits
Exposure cube: /lscratch/kocevski/33458734/ltcube_806284801_806889601_4FGL_J1707.5+1649_weekly_bin938.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/33458734/Model_4FGL_J1707.5+1649_weekly_bin938.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) = 26360.0048742

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    42.344       1.0000          .0000       .10000E+07
     2 'Prefactor '    .11930E-04   1.0000          .0000       .10000E+07
     3 'Prefactor '    .42229       1.0000          .0000       .10000E+07
     4 'Prefactor '    2.8824       1.0000          .0000       .10000E+07
     5 'Prefactor '    .30628E-04   1.0000          .0000       .10000E+07
     6 'Prefactor '    .22098E-02   1.0000          .0000       .10000E+07
     7 'Prefactor '    .34786E-04   1.0000          .0000       .10000E+07
     8 'Prefactor '    .50464E-01   1.0000          .0000       .10000E+07
     9 'Prefactor '    2.2711       1.0000          .0000       .10000E+07
    10 'Prefactor '    .65562E-04   1.0000          .0000       .10000E+07
    11 'norm      '    .35037       1.0000          .0000       .10000E+07
    12 'Prefactor '    9.7186       1.0000          .0000       .10000E+07
    13 'norm      '    13.642       1.0000          .0000       .10000E+07
    14 'Prefactor '    2.4114       1.0000          .0000       .10000E+07
    15 'Prefactor '    29.483       1.0000          .0000       .10000E+07
    16 'norm      '    .13703E-01   1.0000          .0000       .10000E+07
    17 'Normalizat'    1.2670       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .90823       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   26359.93     FROM MIGRAD    STATUS=CONVERGED    485 CALLS     1435 TOTAL
                     EDM=   .21E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     41.699        19.722         .0000       -.61278E-03
   2  Prefactor      .0000        3.0843         .0000    ** at limit **
   3  Prefactor     .44542        3.3227         .0000        .92006E-02
   4  Prefactor     2.8764        2.6631         .0000        .39151    
   5  Prefactor      .0000        10.416         .0000    ** at limit **
   6  Prefactor      .0000        13.508         .0000    ** at limit **
   7  Prefactor      .0000        37.548         .0000    ** at limit **
   8  Prefactor      .0000        71.322         .0000    ** at limit **
   9  Prefactor     2.2877        4.1385         .0000        .13668E-01
  10  Prefactor      .0000        2.3740         .0000    ** at limit **
  11  norm          .34951        1.1027         .0000        .84943E-01
  12  Prefactor     9.8108        9.4056         .0000        .27053E-01
  13  norm          13.619        7.9345         .0000        .10188E-01
  14  Prefactor     .81507E-01    32.300         .0000    ** at limit **
  15  Prefactor     29.481        3.1695         .0000        .23331E-01
  16  norm           .0000        20.446         .0000    ** at limit **
  17  Normalizat    1.2676        .14149         .0000       -.25083E-05
  18  Prefactor     .90844        .53100E-01     .0000       -.12489E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 41.6991
  Prefactor  = 0
  Prefactor  = 0.445418
  Prefactor  = 2.87636
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 2.28766
  Prefactor  = 0
  norm       = 0.34951
  Prefactor  = 9.81083
  norm       = 13.6192
  Prefactor  = 0.0815073
  Prefactor  = 29.4815
  norm       = 0
  Normalizat = 1.26756
  Prefactor  = 0.908437
 **********
 **   18 **HESSE 
 **********

 FCN=   26359.93     FROM HESSE     STATUS=OK           258 CALLS     1693 TOTAL
                     EDM=   .18E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     41.699        19.730        .61476E-05   -1.5579    
   2  Prefactor      .0000        3.0874        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .44542        32.114        .55838E-03   -1.5695    
   4  Prefactor     2.8764        2.6612        .11967E-03   -1.5674    
   5  Prefactor      .0000        10.766        .16847E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor      .0000        13.550        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor      .0000        37.756        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor      .0000        73.326        .62088E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.2877        4.1221        .27248E-04   -1.5678    
  10  Prefactor      .0000        2.3768        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .34951        1.1088        .29278E-04   -1.5696    
  12  Prefactor     9.8108        9.3983        .64240E-04   -1.5645    
  13  norm          13.619        7.9365        .54186E-04   -1.5634    
  14  Prefactor     .81507E-01    22.072        .22606E-01   -1.5702    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     29.481        3.1691        .36840E-04   -1.5599    
  16  norm           .0000        20.455        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    1.2676        .17047        .38145E-03   -.84540    
  18  Prefactor     .90844        .64187E-01    .16864E-03   -.95847    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.76333e-07
Minuit parameter uncertainties:
  1  19.7297
  2  7.0241e-07
  3  7.5642
  4  2.66122
  5  9.56556e-06
  6  3.14571e-07
  7  9.619e-06
  8  1.21603e-05
  9  4.12213
  10  7.9208e-07
  11  1.10878
  12  9.39834
  13  7.93651
  14  2.68256
  15  3.1691
  16  6.42951e-06
  17  0.170542
  18  0.0641922
e GAL_V02
Working on...
/lscratch/kocevski/33458768/ft1_filtered_4FGL_J1707.5+1649_weekly_bin938.fits.....................!
real 67.67
user 65.44
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/33458768/ft1_filtered_4FGL_J1707.5+1649_weekly_bin938.fits', '/lscratch/kocevski/33458768/ft2_4FGL_J1707.5+1649_weekly_bin938.fits', expMap='/lscratch/kocevski/33458768/expmap_806284801_806889601_4FGL_J1707.5+1649_weekly_bin938.fits', expCube='/lscratch/kocevski/33458768/ltcube_806284801_806889601_4FGL_J1707.5+1649_weekly_bin938.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/33458768/Model_4FGL_J1707.5+1649_weekly_bin938.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/33458768/ft1_filtered_4FGL_J1707.5+1649_weekly_bin938.fits
Spacecraft file(s): /lscratch/kocevski/33458768/ft2_4FGL_J1707.5+1649_weekly_bin938.fits
Exposure map: /lscratch/kocevski/33458768/expmap_806284801_806889601_4FGL_J1707.5+1649_weekly_bin938.fits
Exposure cube: /lscratch/kocevski/33458768/ltcube_806284801_806889601_4FGL_J1707.5+1649_weekly_bin938.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/33458768/Model_4FGL_J1707.5+1649_weekly_bin938.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) = 26360.0048742

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    42.344       1.0000          .0000       .10000E+07
     2 'Prefactor '    .11930E-04   1.0000          .0000       .10000E+07
     3 'Prefactor '    .42229       1.0000          .0000       .10000E+07
     4 'Prefactor '    2.8824       1.0000          .0000       .10000E+07
     5 'Prefactor '    .30628E-04   1.0000          .0000       .10000E+07
     6 'Prefactor '    .22098E-02   1.0000          .0000       .10000E+07
     7 'Prefactor '    .34786E-04   1.0000          .0000       .10000E+07
     8 'Prefactor '    .50464E-01   1.0000          .0000       .10000E+07
     9 'Prefactor '    2.2711       1.0000          .0000       .10000E+07
    10 'Prefactor '    .65562E-04   1.0000          .0000       .10000E+07
    11 'norm      '    .35037       1.0000          .0000       .10000E+07
    12 'Prefactor '    9.7186       1.0000          .0000       .10000E+07
    13 'norm      '    13.642       1.0000          .0000       .10000E+07
    14 'Prefactor '    2.4114       1.0000          .0000       .10000E+07
    15 'Prefactor '    29.483       1.0000          .0000       .10000E+07
    16 'norm      '    .13703E-01   1.0000          .0000       .10000E+07
    17 'Normalizat'    1.2670       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .90823       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   26359.93     FROM MIGRAD    STATUS=CONVERGED    485 CALLS     1435 TOTAL
                     EDM=   .21E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     41.699        19.722         .0000       -.61278E-03
   2  Prefactor      .0000        3.0843         .0000    ** at limit **
   3  Prefactor     .44542        3.3227         .0000        .92006E-02
   4  Prefactor     2.8764        2.6631         .0000        .39151    
   5  Prefactor      .0000        10.416         .0000    ** at limit **
   6  Prefactor      .0000        13.508         .0000    ** at limit **
   7  Prefactor      .0000        37.548         .0000    ** at limit **
   8  Prefactor      .0000        71.322         .0000    ** at limit **
   9  Prefactor     2.2877        4.1385         .0000        .13668E-01
  10  Prefactor      .0000        2.3740         .0000    ** at limit **
  11  norm          .34951        1.1027         .0000        .84943E-01
  12  Prefactor     9.8108        9.4056         .0000        .27053E-01
  13  norm          13.619        7.9345         .0000        .10188E-01
  14  Prefactor     .81507E-01    32.300         .0000    ** at limit **
  15  Prefactor     29.481        3.1695         .0000        .23331E-01
  16  norm           .0000        20.446         .0000    ** at limit **
  17  Normalizat    1.2676        .14149         .0000       -.25083E-05
  18  Prefactor     .90844        .53100E-01     .0000       -.12489E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 41.6991
  Prefactor  = 0
  Prefactor  = 0.445418
  Prefactor  = 2.87636
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 2.28766
  Prefactor  = 0
  norm       = 0.34951
  Prefactor  = 9.81083
  norm       = 13.6192
  Prefactor  = 0.0815073
  Prefactor  = 29.4815
  norm       = 0
  Normalizat = 1.26756
  Prefactor  = 0.908437
 **********
 **   18 **HESSE 
 **********

 FCN=   26359.93     FROM HESSE     STATUS=OK           258 CALLS     1693 TOTAL
                     EDM=   .18E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     41.699        19.730        .61476E-05   -1.5579    
   2  Prefactor      .0000        3.0874        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .44542        32.114        .55838E-03   -1.5695    
   4  Prefactor     2.8764        2.6612        .11967E-03   -1.5674    
   5  Prefactor      .0000        10.766        .16847E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor      .0000        13.550        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor      .0000        37.756        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor      .0000        73.326        .62088E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.2877        4.1221        .27248E-04   -1.5678    
  10  Prefactor      .0000        2.3768        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .34951        1.1088        .29278E-04   -1.5696    
  12  Prefactor     9.8108        9.3983        .64240E-04   -1.5645    
  13  norm          13.619        7.9365        .54186E-04   -1.5634    
  14  Prefactor     .81507E-01    22.072        .22606E-01   -1.5702    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     29.481        3.1691        .36840E-04   -1.5599    
  16  norm           .0000        20.455        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    1.2676        .17047        .38145E-03   -.84540    
  18  Prefactor     .90844        .64187E-01    .16864E-03   -.95847    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.76333e-07
Minuit parameter uncertainties:
  1  19.7297
  2  7.0241e-07
  3  7.5642
  4  2.66122
  5  9.56556e-06
  6  3.14571e-07
  7  9.619e-06
  8  1.21603e-05
  9  4.12213
  10  7.9208e-07
  11  1.10878
  12  9.39834
  13  7.93651
  14  2.68256
  15  3.1691
  16  6.42951e-06
  17  0.170542
  18  0.0641922
 **********
 **   18 **HESSE 
 **********

 FCN=   26359.93     FROM HESSE     STATUS=OK           258 CALLS     1693 TOTAL
                     EDM=   .18E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     41.699        19.730        .61476E-05   -1.5579    
   2  Prefactor      .0000        3.0874        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .44542        32.114        .55838E-03   -1.5695    
   4  Prefactor     2.8764        2.6612        .11967E-03   -1.5674    
   5  Prefactor      .0000        10.766        .16847E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor      .0000        13.550        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor      .0000        37.756        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor      .0000        73.326        .62088E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.2877        4.1221        .27248E-04   -1.5678    
  10  Prefactor      .0000        2.3768        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .34951        1.1088        .29278E-04   -1.5696    
  12  Prefactor     9.8108        9.3983        .64240E-04   -1.5645    
  13  norm          13.619        7.9365        .54186E-04   -1.5634    
  14  Prefactor     .81507E-01    22.072        .22606E-01   -1.5702    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     29.481        3.1691        .36840E-04   -1.5599    
  16  norm           .0000        20.455        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    1.2676        .17047        .38145E-03   -.84540    
  18  Prefactor     .90844        .64187E-01    .16864E-03   -.95847    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.76333e-07
Minuit parameter uncertainties:
  1  19.7297
  2  7.0241e-07
  3  7.5642
  4  2.66122
  5  9.56556e-06
  6  3.14571e-07
  7  9.619e-06
  8  1.21603e-05
  9  4.12213
  10  7.9208e-07
  11  1.10878
  12  9.39834
  13  7.93651
  14  2.68256
  15  3.1691
  16  6.42951e-06
  17  0.170542
  18  0.0641922
Done.

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

Extracting fit parameters...

4FGL J1707.5+1649
   Spectrum: PowerLaw
271    Prefactor:  0.000e+00  7.921e-07  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:  9.084e-01  6.419e-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.268e+00  1.705e-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: 3.26163427096e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00249487648519 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/33458703/likelihoodResults_806284801_806889601_4FGL_J1707.5+1649_weekly_bin938.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) = 26359.934697
delta logL = -0.000387715273973

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 26359.9343093
delta logL = -1.13614078145e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11102E-09   1.0000          .0000       .10000E+07
     2 'Index     '    1.2510       1.0000          .0000       10.000    
     3 'Normalizat'    1.2676       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90843       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=   26359.93     FROM MIGRAD    STATUS=CONVERGED     30 CALLS      223 TOTAL
                     EDM=   .16E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        1.6821       -.32405E-06** at limit **
   2  Index         2.7662        2.0180        .28972E-04     .0000    
   3  Normalizat    1.2676        .16267       -.38892E-05   -.25970E-04
   4  Prefactor     .90844        .62543E-01    .20841E-05   -.21709E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 2.76621
  Normalizat = 1.26756
  Prefactor  = 0.908437
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   26359.93     FROM HESSE     STATUS=FAILED        11 CALLS      234 TOTAL
                     EDM=   .16E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        1.6712        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .86672        2.0238        .28972E-04   -.46314    
   3  Normalizat    1.2676        1.0868       -.38892E-05   -.84540    
   4  Prefactor     .90844        1.2529        .20841E-05   -.95847    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.6237e-11
Minuit parameter uncertainties:
  1  1.35353e-05
  2  1.49962
  3  1.10724
  4  1.29647
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) = 26359.9343093
delta logL = -3.63797880709e-12

Extracting fit parameters...

4FGL J1707.5+1649
   Spectrum: PowerLaw
271    Prefactor:  0.000e+00  1.354e-05  0.000e+00  1.000e+06 ( 1.000e-13)
272        Index:  2.766e+00  1.500e+00  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:  9.084e-01  1.296e+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.268e+00  1.107e+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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /lscratch/kocevski/33458703/cmap_HighResolution_806284801_806889601_4FGL_J1707.5+1649_weekly_bin938.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.49e-03', job_status='DONE', photon_flux_upper_limit='3.26e-08', time_completed='2026-07-28 14:32:18.634650', job_id='33458703', GAL2='0.91', fit_tolerance='1e-08', EG2='1.27', EG='1.27', time_epoch_completed='1785274338.63', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.91', dlogl='-3.64e-12', ts2='0.00', photon_index_error='0.00', photon_index='2.25' WHERE bin_id='938' AND source_name='4FGL J1707.5+1649' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 28 14:32:18 PDT 2026

e GAL_V02
Working on...
/lscratch/kocevski/33458854/ft1_filtered_4FGL_J1707.5+1649_weekly_bin938.fits.....................!
real 78.09
user 75.97
sys 1.04

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/33458854/ft1_filtered_4FGL_J1707.5+1649_weekly_bin938.fits', '/lscratch/kocevski/33458854/ft2_4FGL_J1707.5+1649_weekly_bin938.fits', expMap='/lscratch/kocevski/33458854/expmap_806284801_806889601_4FGL_J1707.5+1649_weekly_bin938.fits', expCube='/lscratch/kocevski/33458854/ltcube_806284801_806889601_4FGL_J1707.5+1649_weekly_bin938.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/33458854/Model_4FGL_J1707.5+1649_weekly_bin938.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/33458854/ft1_filtered_4FGL_J1707.5+1649_weekly_bin938.fits
Spacecraft file(s): /lscratch/kocevski/33458854/ft2_4FGL_J1707.5+1649_weekly_bin938.fits
Exposure map: /lscratch/kocevski/33458854/expmap_806284801_806889601_4FGL_J1707.5+1649_weekly_bin938.fits
Exposure cube: /lscratch/kocevski/33458854/ltcube_806284801_806889601_4FGL_J1707.5+1649_weekly_bin938.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/33458854/Model_4FGL_J1707.5+1649_weekly_bin938.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) = 26360.0048742

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    42.344       1.0000          .0000       .10000E+07
     2 'Prefactor '    .11930E-04   1.0000          .0000       .10000E+07
     3 'Prefactor '    .42229       1.0000          .0000       .10000E+07
     4 'Prefactor '    2.8824       1.0000          .0000       .10000E+07
     5 'Prefactor '    .30628E-04   1.0000          .0000       .10000E+07
     6 'Prefactor '    .22098E-02   1.0000          .0000       .10000E+07
     7 'Prefactor '    .34786E-04   1.0000          .0000       .10000E+07
     8 'Prefactor '    .50464E-01   1.0000          .0000       .10000E+07
     9 'Prefactor '    2.2711       1.0000          .0000       .10000E+07
    10 'Prefactor '    .65562E-04   1.0000          .0000       .10000E+07
    11 'norm      '    .35037       1.0000          .0000       .10000E+07
    12 'Prefactor '    9.7186       1.0000          .0000       .10000E+07
    13 'norm      '    13.642       1.0000          .0000       .10000E+07
    14 'Prefactor '    2.4114       1.0000          .0000       .10000E+07
    15 'Prefactor '    29.483       1.0000          .0000       .10000E+07
    16 'norm      '    .13703E-01   1.0000          .0000       .10000E+07
    17 'Normalizat'    1.2670       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .90823       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   26359.93     FROM MIGRAD    STATUS=CONVERGED    485 CALLS     1435 TOTAL
                     EDM=   .21E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     41.699        19.722         .0000       -.61278E-03
   2  Prefactor      .0000        3.0843         .0000    ** at limit **
   3  Prefactor     .44542        3.3227         .0000        .92006E-02
   4  Prefactor     2.8764        2.6631         .0000        .39151    
   5  Prefactor      .0000        10.416         .0000    ** at limit **
   6  Prefactor      .0000        13.508         .0000    ** at limit **
   7  Prefactor      .0000        37.548         .0000    ** at limit **
   8  Prefactor      .0000        71.322         .0000    ** at limit **
   9  Prefactor     2.2877        4.1385         .0000        .13668E-01
  10  Prefactor      .0000        2.3740         .0000    ** at limit **
  11  norm          .34951        1.1027         .0000        .84943E-01
  12  Prefactor     9.8108        9.4056         .0000        .27053E-01
  13  norm          13.619        7.9345         .0000        .10188E-01
  14  Prefactor     .81507E-01    32.300         .0000    ** at limit **
  15  Prefactor     29.481        3.1695         .0000        .23331E-01
  16  norm           .0000        20.446         .0000    ** at limit **
  17  Normalizat    1.2676        .14149         .0000       -.25083E-05
  18  Prefactor     .90844        .53100E-01     .0000       -.12489E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 41.6991
  Prefactor  = 0
  Prefactor  = 0.445418
  Prefactor  = 2.87636
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 2.28766
  Prefactor  = 0
  norm       = 0.34951
  Prefactor  = 9.81083
  norm       = 13.6192
  Prefactor  = 0.0815073
  Prefactor  = 29.4815
  norm       = 0
  Normalizat = 1.26756
  Prefactor  = 0.908437
e GAL_V02
Working on...
/lscratch/kocevski/33458822/ft1_filtered_4FGL_J1707.5+1649_weekly_bin938.fits.....................!
real 79.78
user 77.02
sys 1.48

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/33458822/ft1_filtered_4FGL_J1707.5+1649_weekly_bin938.fits', '/lscratch/kocevski/33458822/ft2_4FGL_J1707.5+1649_weekly_bin938.fits', expMap='/lscratch/kocevski/33458822/expmap_806284801_806889601_4FGL_J1707.5+1649_weekly_bin938.fits', expCube='/lscratch/kocevski/33458822/ltcube_806284801_806889601_4FGL_J1707.5+1649_weekly_bin938.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/33458822/Model_4FGL_J1707.5+1649_weekly_bin938.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/33458822/ft1_filtered_4FGL_J1707.5+1649_weekly_bin938.fits
Spacecraft file(s): /lscratch/kocevski/33458822/ft2_4FGL_J1707.5+1649_weekly_bin938.fits
Exposure map: /lscratch/kocevski/33458822/expmap_806284801_806889601_4FGL_J1707.5+1649_weekly_bin938.fits
Exposure cube: /lscratch/kocevski/33458822/ltcube_806284801_806889601_4FGL_J1707.5+1649_weekly_bin938.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/33458822/Model_4FGL_J1707.5+1649_weekly_bin938.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) = 26360.0048742

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    42.344       1.0000          .0000       .10000E+07
     2 'Prefactor '    .11930E-04   1.0000          .0000       .10000E+07
     3 'Prefactor '    .42229       1.0000          .0000       .10000E+07
     4 'Prefactor '    2.8824       1.0000          .0000       .10000E+07
     5 'Prefactor '    .30628E-04   1.0000          .0000       .10000E+07
     6 'Prefactor '    .22098E-02   1.0000          .0000       .10000E+07
     7 'Prefactor '    .34786E-04   1.0000          .0000       .10000E+07
     8 'Prefactor '    .50464E-01   1.0000          .0000       .10000E+07
     9 'Prefactor '    2.2711       1.0000          .0000       .10000E+07
    10 'Prefactor '    .65562E-04   1.0000          .0000       .10000E+07
    11 'norm      '    .35037       1.0000          .0000       .10000E+07
    12 'Prefactor '    9.7186       1.0000          .0000       .10000E+07
    13 'norm      '    13.642       1.0000          .0000       .10000E+07
    14 'Prefactor '    2.4114       1.0000          .0000       .10000E+07
    15 'Prefactor '    29.483       1.0000          .0000       .10000E+07
    16 'norm      '    .13703E-01   1.0000          .0000       .10000E+07
    17 'Normalizat'    1.2670       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .90823       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   26359.93     FROM MIGRAD    STATUS=CONVERGED    485 CALLS     1435 TOTAL
                     EDM=   .21E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     41.699        19.722         .0000       -.61278E-03
   2  Prefactor      .0000        3.0843         .0000    ** at limit **
   3  Prefactor     .44542        3.3227         .0000        .92006E-02
   4  Prefactor     2.8764        2.6631         .0000        .39151    
   5  Prefactor      .0000        10.416         .0000    ** at limit **
   6  Prefactor      .0000        13.508         .0000    ** at limit **
   7  Prefactor      .0000        37.548         .0000    ** at limit **
   8  Prefactor      .0000        71.322         .0000    ** at limit **
   9  Prefactor     2.2877        4.1385         .0000        .13668E-01
  10  Prefactor      .0000        2.3740         .0000    ** at limit **
  11  norm          .34951        1.1027         .0000        .84943E-01
  12  Prefactor     9.8108        9.4056         .0000        .27053E-01
  13  norm          13.619        7.9345         .0000        .10188E-01
  14  Prefactor     .81507E-01    32.300         .0000    ** at limit **
  15  Prefactor     29.481        3.1695         .0000        .23331E-01
  16  norm           .0000        20.446         .0000    ** at limit **
  17  Normalizat    1.2676        .14149         .0000       -.25083E-05
  18  Prefactor     .90844        .53100E-01     .0000       -.12489E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 41.6991
  Prefactor  = 0
  Prefactor  = 0.445418
  Prefactor  = 2.87636
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 2.28766
  Prefactor  = 0
  norm       = 0.34951
  Prefactor  = 9.81083
  norm       = 13.6192
  Prefactor  = 0.0815073
  Prefactor  = 29.4815
  norm       = 0
  Normalizat = 1.26756
  Prefactor  = 0.908437
 GAL_V02
Working on...
/lscratch/kocevski/33458823/ft1_filtered_4FGL_J1707.5+1649_weekly_bin938.fits.....................!
real 80.05
user 77.08
sys 1.55

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/33458823/ft1_filtered_4FGL_J1707.5+1649_weekly_bin938.fits', '/lscratch/kocevski/33458823/ft2_4FGL_J1707.5+1649_weekly_bin938.fits', expMap='/lscratch/kocevski/33458823/expmap_806284801_806889601_4FGL_J1707.5+1649_weekly_bin938.fits', expCube='/lscratch/kocevski/33458823/ltcube_806284801_806889601_4FGL_J1707.5+1649_weekly_bin938.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/33458823/Model_4FGL_J1707.5+1649_weekly_bin938.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/33458823/ft1_filtered_4FGL_J1707.5+1649_weekly_bin938.fits
Spacecraft file(s): /lscratch/kocevski/33458823/ft2_4FGL_J1707.5+1649_weekly_bin938.fits
Exposure map: /lscratch/kocevski/33458823/expmap_806284801_806889601_4FGL_J1707.5+1649_weekly_bin938.fits
Exposure cube: /lscratch/kocevski/33458823/ltcube_806284801_806889601_4FGL_J1707.5+1649_weekly_bin938.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/33458823/Model_4FGL_J1707.5+1649_weekly_bin938.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) = 26360.0048742

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    42.344       1.0000          .0000       .10000E+07
     2 'Prefactor '    .11930E-04   1.0000          .0000       .10000E+07
     3 'Prefactor '    .42229       1.0000          .0000       .10000E+07
     4 'Prefactor '    2.8824       1.0000          .0000       .10000E+07
     5 'Prefactor '    .30628E-04   1.0000          .0000       .10000E+07
     6 'Prefactor '    .22098E-02   1.0000          .0000       .10000E+07
     7 'Prefactor '    .34786E-04   1.0000          .0000       .10000E+07
     8 'Prefactor '    .50464E-01   1.0000          .0000       .10000E+07
     9 'Prefactor '    2.2711       1.0000          .0000       .10000E+07
    10 'Prefactor '    .65562E-04   1.0000          .0000       .10000E+07
    11 'norm      '    .35037       1.0000          .0000       .10000E+07
    12 'Prefactor '    9.7186       1.0000          .0000       .10000E+07
    13 'norm      '    13.642       1.0000          .0000       .10000E+07
    14 'Prefactor '    2.4114       1.0000          .0000       .10000E+07
    15 'Prefactor '    29.483       1.0000          .0000       .10000E+07
    16 'norm      '    .13703E-01   1.0000          .0000       .10000E+07
    17 'Normalizat'    1.2670       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .90823       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   26359.93     FROM MIGRAD    STATUS=CONVERGED    485 CALLS     1435 TOTAL
                     EDM=   .21E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     41.699        19.722         .0000       -.61278E-03
   2  Prefactor      .0000        3.0843         .0000    ** at limit **
   3  Prefactor     .44542        3.3227         .0000        .92006E-02
   4  Prefactor     2.8764        2.6631         .0000        .39151    
   5  Prefactor      .0000        10.416         .0000    ** at limit **
   6  Prefactor      .0000        13.508         .0000    ** at limit **
   7  Prefactor      .0000        37.548         .0000    ** at limit **
   8  Prefactor      .0000        71.322         .0000    ** at limit **
   9  Prefactor     2.2877        4.1385         .0000        .13668E-01
  10  Prefactor      .0000        2.3740         .0000    ** at limit **
  11  norm          .34951        1.1027         .0000        .84943E-01
  12  Prefactor     9.8108        9.4056         .0000        .27053E-01
  13  norm          13.619        7.9345         .0000        .10188E-01
  14  Prefactor     .81507E-01    32.300         .0000    ** at limit **
  15  Prefactor     29.481        3.1695         .0000        .23331E-01
  16  norm           .0000        20.446         .0000    ** at limit **
  17  Normalizat    1.2676        .14149         .0000       -.25083E-05
  18  Prefactor     .90844        .53100E-01     .0000       -.12489E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 41.6991
  Prefactor  = 0
  Prefactor  = 0.445418
  Prefactor  = 2.87636
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 2.28766
  Prefactor  = 0
  norm       = 0.34951
  Prefactor  = 9.81083
  norm       = 13.6192
  Prefactor  = 0.0815073
  Prefactor  = 29.4815
  norm       = 0
  Normalizat = 1.26756
  Prefactor  = 0.908437
Done.

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

Extracting fit parameters...

4FGL J1707.5+1649
   Spectrum: PowerLaw
271    Prefactor:  0.000e+00  7.921e-07  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:  9.084e-01  6.419e-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.268e+00  1.705e-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: 3.26163427096e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00249487648519 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/33458734/likelihoodResults_806284801_806889601_4FGL_J1707.5+1649_weekly_bin938.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) = 26359.934697
delta logL = -0.000387715273973

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 26359.9343093
delta logL = -1.13614078145e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11102E-09   1.0000          .0000       .10000E+07
     2 'Index     '    1.2510       1.0000          .0000       10.000    
     3 'Normalizat'    1.2676       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90843       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=   26359.93     FROM MIGRAD    STATUS=CONVERGED     30 CALLS      223 TOTAL
                     EDM=   .16E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        1.6821       -.32405E-06** at limit **
   2  Index         2.7662        2.0180        .28972E-04     .0000    
   3  Normalizat    1.2676        .16267       -.38892E-05   -.25970E-04
   4  Prefactor     .90844        .62543E-01    .20841E-05   -.21709E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 2.76621
  Normalizat = 1.26756
  Prefactor  = 0.908437
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   26359.93     FROM HESSE     STATUS=FAILED        11 CALLS      234 TOTAL
                     EDM=   .16E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        1.6712        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .86672        2.0238        .28972E-04   -.46314    
   3  Normalizat    1.2676        1.0868       -.38892E-05   -.84540    
   4  Prefactor     .90844        1.2529        .20841E-05   -.95847    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.6237e-11
Minuit parameter uncertainties:
  1  1.35353e-05
  2  1.49962
  3  1.10724
  4  1.29647
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) = 26359.9343093
delta logL = -3.63797880709e-12

Extracting fit parameters...

4FGL J1707.5+1649
   Spectrum: PowerLaw
271    Prefactor:  0.000e+00  1.354e-05  0.000e+00  1.000e+06 ( 1.000e-13)
272        Index:  2.766e+00  1.500e+00  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:  9.084e-01  1.296e+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.268e+00  1.107e+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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /lscratch/kocevski/33458734/cmap_HighResolution_806284801_806889601_4FGL_J1707.5+1649_weekly_bin938.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.49e-03', job_status='DONE', photon_flux_upper_limit='3.26e-08', time_completed='2026-07-28 14:32:46.855006', job_id='33458734', GAL2='0.91', fit_tolerance='1e-08', EG2='1.27', EG='1.27', time_epoch_completed='1785274366.86', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.91', dlogl='-3.64e-12', ts2='0.00', photon_index_error='0.00', photon_index='2.25' WHERE bin_id='938' AND source_name='4FGL J1707.5+1649' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 28 14:32:46 PDT 2026

Done.

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

Extracting fit parameters...

4FGL J1707.5+1649
   Spectrum: PowerLaw
271    Prefactor:  0.000e+00  7.921e-07  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:  9.084e-01  6.419e-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.268e+00  1.705e-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: 3.26163427096e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00249487648519 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/33458768/likelihoodResults_806284801_806889601_4FGL_J1707.5+1649_weekly_bin938.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) = 26359.934697
delta logL = -0.000387715273973

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 26359.9343093
delta logL = -1.13614078145e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11102E-09   1.0000          .0000       .10000E+07
     2 'Index     '    1.2510       1.0000          .0000       10.000    
     3 'Normalizat'    1.2676       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90843       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=   26359.93     FROM MIGRAD    STATUS=CONVERGED     30 CALLS      223 TOTAL
                     EDM=   .16E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        1.6821       -.32405E-06** at limit **
   2  Index         2.7662        2.0180        .28972E-04     .0000    
   3  Normalizat    1.2676        .16267       -.38892E-05   -.25970E-04
   4  Prefactor     .90844        .62543E-01    .20841E-05   -.21709E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 2.76621
  Normalizat = 1.26756
  Prefactor  = 0.908437
e GAL_V02
Working on...
/lscratch/kocevski/33459183/ft1_filtered_4FGL_J1707.5+1649_weekly_bin938.fits.....................!
real 67.51
user 65.46
sys 1.17

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/33459183/ft1_filtered_4FGL_J1707.5+1649_weekly_bin938.fits', '/lscratch/kocevski/33459183/ft2_4FGL_J1707.5+1649_weekly_bin938.fits', expMap='/lscratch/kocevski/33459183/expmap_806284801_806889601_4FGL_J1707.5+1649_weekly_bin938.fits', expCube='/lscratch/kocevski/33459183/ltcube_806284801_806889601_4FGL_J1707.5+1649_weekly_bin938.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/33459183/Model_4FGL_J1707.5+1649_weekly_bin938.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/33459183/ft1_filtered_4FGL_J1707.5+1649_weekly_bin938.fits
Spacecraft file(s): /lscratch/kocevski/33459183/ft2_4FGL_J1707.5+1649_weekly_bin938.fits
Exposure map: /lscratch/kocevski/33459183/expmap_806284801_806889601_4FGL_J1707.5+1649_weekly_bin938.fits
Exposure cube: /lscratch/kocevski/33459183/ltcube_806284801_806889601_4FGL_J1707.5+1649_weekly_bin938.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/33459183/Model_4FGL_J1707.5+1649_weekly_bin938.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) = 26360.0048742

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    42.344       1.0000          .0000       .10000E+07
     2 'Prefactor '    .11930E-04   1.0000          .0000       .10000E+07
     3 'Prefactor '    .42229       1.0000          .0000       .10000E+07
     4 'Prefactor '    2.8824       1.0000          .0000       .10000E+07
     5 'Prefactor '    .30628E-04   1.0000          .0000       .10000E+07
     6 'Prefactor '    .22098E-02   1.0000          .0000       .10000E+07
     7 'Prefactor '    .34786E-04   1.0000          .0000       .10000E+07
     8 'Prefactor '    .50464E-01   1.0000          .0000       .10000E+07
     9 'Prefactor '    2.2711       1.0000          .0000       .10000E+07
    10 'Prefactor '    .65562E-04   1.0000          .0000       .10000E+07
    11 'norm      '    .35037       1.0000          .0000       .10000E+07
    12 'Prefactor '    9.7186       1.0000          .0000       .10000E+07
    13 'norm      '    13.642       1.0000          .0000       .10000E+07
    14 'Prefactor '    2.4114       1.0000          .0000       .10000E+07
    15 'Prefactor '    29.483       1.0000          .0000       .10000E+07
    16 'norm      '    .13703E-01   1.0000          .0000       .10000E+07
    17 'Normalizat'    1.2670       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .90823       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   26359.93     FROM MIGRAD    STATUS=CONVERGED    485 CALLS     1435 TOTAL
                     EDM=   .21E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     41.699        19.722         .0000       -.61278E-03
   2  Prefactor      .0000        3.0843         .0000    ** at limit **
   3  Prefactor     .44542        3.3227         .0000        .92006E-02
   4  Prefactor     2.8764        2.6631         .0000        .39151    
   5  Prefactor      .0000        10.416         .0000    ** at limit **
   6  Prefactor      .0000        13.508         .0000    ** at limit **
   7  Prefactor      .0000        37.548         .0000    ** at limit **
   8  Prefactor      .0000        71.322         .0000    ** at limit **
   9  Prefactor     2.2877        4.1385         .0000        .13668E-01
  10  Prefactor      .0000        2.3740         .0000    ** at limit **
  11  norm          .34951        1.1027         .0000        .84943E-01
  12  Prefactor     9.8108        9.4056         .0000        .27053E-01
  13  norm          13.619        7.9345         .0000        .10188E-01
  14  Prefactor     .81507E-01    32.300         .0000    ** at limit **
  15  Prefactor     29.481        3.1695         .0000        .23331E-01
  16  norm           .0000        20.446         .0000    ** at limit **
  17  Normalizat    1.2676        .14149         .0000       -.25083E-05
  18  Prefactor     .90844        .53100E-01     .0000       -.12489E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 41.6991
  Prefactor  = 0
  Prefactor  = 0.445418
  Prefactor  = 2.87636
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 2.28766
  Prefactor  = 0
  norm       = 0.34951
  Prefactor  = 9.81083
  norm       = 13.6192
  Prefactor  = 0.0815073
  Prefactor  = 29.4815
  norm       = 0
  Normalizat = 1.26756
  Prefactor  = 0.908437
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   26359.93     FROM HESSE     STATUS=FAILED        11 CALLS      234 TOTAL
                     EDM=   .16E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        1.6712        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .86672        2.0238        .28972E-04   -.46314    
   3  Normalizat    1.2676        1.0868       -.38892E-05   -.84540    
   4  Prefactor     .90844        1.2529        .20841E-05   -.95847    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.6237e-11
Minuit parameter uncertainties:
  1  1.35353e-05
  2  1.49962
  3  1.10724
  4  1.29647
 **********
 **   18 **HESSE 
 **********

 FCN=   26359.93     FROM HESSE     STATUS=OK           258 CALLS     1693 TOTAL
                     EDM=   .18E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     41.699        19.730        .61476E-05   -1.5579    
   2  Prefactor      .0000        3.0874        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .44542        32.114        .55838E-03   -1.5695    
   4  Prefactor     2.8764        2.6612        .11967E-03   -1.5674    
   5  Prefactor      .0000        10.766        .16847E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor      .0000        13.550        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor      .0000        37.756        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor      .0000        73.326        .62088E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.2877        4.1221        .27248E-04   -1.5678    
  10  Prefactor      .0000        2.3768        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .34951        1.1088        .29278E-04   -1.5696    
  12  Prefactor     9.8108        9.3983        .64240E-04   -1.5645    
  13  norm          13.619        7.9365        .54186E-04   -1.5634    
  14  Prefactor     .81507E-01    22.072        .22606E-01   -1.5702    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     29.481        3.1691        .36840E-04   -1.5599    
  16  norm           .0000        20.455        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    1.2676        .17047        .38145E-03   -.84540    
  18  Prefactor     .90844        .64187E-01    .16864E-03   -.95847    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.76333e-07
Minuit parameter uncertainties:
  1  19.7297
  2  7.0241e-07
  3  7.5642
  4  2.66122
  5  9.56556e-06
  6  3.14571e-07
  7  9.619e-06
  8  1.21603e-05
  9  4.12213
  10  7.9208e-07
  11  1.10878
  12  9.39834
  13  7.93651
  14  2.68256
  15  3.1691
  16  6.42951e-06
  17  0.170542
  18  0.0641922
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) = 26359.9343093
delta logL = -3.63797880709e-12

Extracting fit parameters...

4FGL J1707.5+1649
   Spectrum: PowerLaw
271    Prefactor:  0.000e+00  1.354e-05  0.000e+00  1.000e+06 ( 1.000e-13)
272        Index:  2.766e+00  1.500e+00  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:  9.084e-01  1.296e+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.268e+00  1.107e+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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /lscratch/kocevski/33458768/cmap_HighResolution_806284801_806889601_4FGL_J1707.5+1649_weekly_bin938.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.49e-03', job_status='DONE', photon_flux_upper_limit='3.26e-08', time_completed='2026-07-28 14:33:05.538267', job_id='33458768', GAL2='0.91', fit_tolerance='1e-08', EG2='1.27', EG='1.27', time_epoch_completed='1785274385.54', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.91', dlogl='-3.64e-12', ts2='0.00', photon_index_error='0.00', photon_index='2.25' WHERE bin_id='938' AND source_name='4FGL J1707.5+1649' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 28 14:33:05 PDT 2026

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

 FCN=   26359.93     FROM HESSE     STATUS=OK           258 CALLS     1693 TOTAL
                     EDM=   .18E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     41.699        19.730        .61476E-05   -1.5579    
   2  Prefactor      .0000        3.0874        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .44542        32.114        .55838E-03   -1.5695    
   4  Prefactor     2.8764        2.6612        .11967E-03   -1.5674    
   5  Prefactor      .0000        10.766        .16847E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor      .0000        13.550        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor      .0000        37.756        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor      .0000        73.326        .62088E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.2877        4.1221        .27248E-04   -1.5678    
  10  Prefactor      .0000        2.3768        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .34951        1.1088        .29278E-04   -1.5696    
  12  Prefactor     9.8108        9.3983        .64240E-04   -1.5645    
  13  norm          13.619        7.9365        .54186E-04   -1.5634    
  14  Prefactor     .81507E-01    22.072        .22606E-01   -1.5702    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     29.481        3.1691        .36840E-04   -1.5599    
  16  norm           .0000        20.455        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    1.2676        .17047        .38145E-03   -.84540    
  18  Prefactor     .90844        .64187E-01    .16864E-03   -.95847    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.76333e-07
Minuit parameter uncertainties:
  1  19.7297
  2  7.0241e-07
  3  7.5642
  4  2.66122
  5  9.56556e-06
  6  3.14571e-07
  7  9.619e-06
  8  1.21603e-05
  9  4.12213
  10  7.9208e-07
  11  1.10878
  12  9.39834
  13  7.93651
  14  2.68256
  15  3.1691
  16  6.42951e-06
  17  0.170542
  18  0.0641922
 **********
 **   18 **HESSE 
 **********

 FCN=   26359.93     FROM HESSE     STATUS=OK           258 CALLS     1693 TOTAL
                     EDM=   .18E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     41.699        19.730        .61476E-05   -1.5579    
   2  Prefactor      .0000        3.0874        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .44542        32.114        .55838E-03   -1.5695    
   4  Prefactor     2.8764        2.6612        .11967E-03   -1.5674    
   5  Prefactor      .0000        10.766        .16847E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor      .0000        13.550        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor      .0000        37.756        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor      .0000        73.326        .62088E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.2877        4.1221        .27248E-04   -1.5678    
  10  Prefactor      .0000        2.3768        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .34951        1.1088        .29278E-04   -1.5696    
  12  Prefactor     9.8108        9.3983        .64240E-04   -1.5645    
  13  norm          13.619        7.9365        .54186E-04   -1.5634    
  14  Prefactor     .81507E-01    22.072        .22606E-01   -1.5702    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     29.481        3.1691        .36840E-04   -1.5599    
  16  norm           .0000        20.455        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    1.2676        .17047        .38145E-03   -.84540    
  18  Prefactor     .90844        .64187E-01    .16864E-03   -.95847    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.76333e-07
Minuit parameter uncertainties:
  1  19.7297
  2  7.0241e-07
  3  7.5642
  4  2.66122
  5  9.56556e-06
  6  3.14571e-07
  7  9.619e-06
  8  1.21603e-05
  9  4.12213
  10  7.9208e-07
  11  1.10878
  12  9.39834
  13  7.93651
  14  2.68256
  15  3.1691
  16  6.42951e-06
  17  0.170542
  18  0.0641922
 **********
 **   18 **HESSE 
 **********

 FCN=   26359.93     FROM HESSE     STATUS=OK           258 CALLS     1693 TOTAL
                     EDM=   .18E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     41.699        19.730        .61476E-05   -1.5579    
   2  Prefactor      .0000        3.0874        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .44542        32.114        .55838E-03   -1.5695    
   4  Prefactor     2.8764        2.6612        .11967E-03   -1.5674    
   5  Prefactor      .0000        10.766        .16847E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor      .0000        13.550        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor      .0000        37.756        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor      .0000        73.326        .62088E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.2877        4.1221        .27248E-04   -1.5678    
  10  Prefactor      .0000        2.3768        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .34951        1.1088        .29278E-04   -1.5696    
  12  Prefactor     9.8108        9.3983        .64240E-04   -1.5645    
  13  norm          13.619        7.9365        .54186E-04   -1.5634    
  14  Prefactor     .81507E-01    22.072        .22606E-01   -1.5702    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     29.481        3.1691        .36840E-04   -1.5599    
  16  norm           .0000        20.455        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    1.2676        .17047        .38145E-03   -.84540    
  18  Prefactor     .90844        .64187E-01    .16864E-03   -.95847    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.76333e-07
Minuit parameter uncertainties:
  1  19.7297
  2  7.0241e-07
  3  7.5642
  4  2.66122
  5  9.56556e-06
  6  3.14571e-07
  7  9.619e-06
  8  1.21603e-05
  9  4.12213
  10  7.9208e-07
  11  1.10878
  12  9.39834
  13  7.93651
  14  2.68256
  15  3.1691
  16  6.42951e-06
  17  0.170542
  18  0.0641922
Done.

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

Extracting fit parameters...

4FGL J1707.5+1649
   Spectrum: PowerLaw
271    Prefactor:  0.000e+00  7.921e-07  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:  9.084e-01  6.419e-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.268e+00  1.705e-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: 3.26163427096e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00249487648519 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/33458854/likelihoodResults_806284801_806889601_4FGL_J1707.5+1649_weekly_bin938.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) = 26359.934697
delta logL = -0.000387715273973

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 26359.9343093
delta logL = -1.13614078145e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11102E-09   1.0000          .0000       .10000E+07
     2 'Index     '    1.2510       1.0000          .0000       10.000    
     3 'Normalizat'    1.2676       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90843       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=   26359.93     FROM MIGRAD    STATUS=CONVERGED     30 CALLS      223 TOTAL
                     EDM=   .16E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        1.6821       -.32405E-06** at limit **
   2  Index         2.7662        2.0180        .28972E-04     .0000    
   3  Normalizat    1.2676        .16267       -.38892E-05   -.25970E-04
   4  Prefactor     .90844        .62543E-01    .20841E-05   -.21709E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 2.76621
  Normalizat = 1.26756
  Prefactor  = 0.908437
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   26359.93     FROM HESSE     STATUS=FAILED        11 CALLS      234 TOTAL
                     EDM=   .16E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        1.6712        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .86672        2.0238        .28972E-04   -.46314    
   3  Normalizat    1.2676        1.0868       -.38892E-05   -.84540    
   4  Prefactor     .90844        1.2529        .20841E-05   -.95847    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.6237e-11
Minuit parameter uncertainties:
  1  1.35353e-05
  2  1.49962
  3  1.10724
  4  1.29647
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) = 26359.9343093
delta logL = -3.63797880709e-12

Extracting fit parameters...

4FGL J1707.5+1649
   Spectrum: PowerLaw
271    Prefactor:  0.000e+00  1.354e-05  0.000e+00  1.000e+06 ( 1.000e-13)
272        Index:  2.766e+00  1.500e+00  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:  9.084e-01  1.296e+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.268e+00  1.107e+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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /lscratch/kocevski/33458854/cmap_HighResolution_806284801_806889601_4FGL_J1707.5+1649_weekly_bin938.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.49e-03', job_status='DONE', photon_flux_upper_limit='3.26e-08', time_completed='2026-07-28 14:34:44.726870', job_id='33458854', GAL2='0.91', fit_tolerance='1e-08', EG2='1.27', EG='1.27', time_epoch_completed='1785274484.73', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.91', dlogl='-3.64e-12', ts2='0.00', photon_index_error='0.00', photon_index='2.25' WHERE bin_id='938' AND source_name='4FGL J1707.5+1649' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 28 14:34:44 PDT 2026

e GAL_V02
Working on...
/lscratch/kocevski/33459054/ft1_filtered_4FGL_J1707.5+1649_weekly_bin938.fits.....................!
real 80.95
user 78.15
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/33459054/ft1_filtered_4FGL_J1707.5+1649_weekly_bin938.fits', '/lscratch/kocevski/33459054/ft2_4FGL_J1707.5+1649_weekly_bin938.fits', expMap='/lscratch/kocevski/33459054/expmap_806284801_806889601_4FGL_J1707.5+1649_weekly_bin938.fits', expCube='/lscratch/kocevski/33459054/ltcube_806284801_806889601_4FGL_J1707.5+1649_weekly_bin938.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/33459054/Model_4FGL_J1707.5+1649_weekly_bin938.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/33459054/ft1_filtered_4FGL_J1707.5+1649_weekly_bin938.fits
Spacecraft file(s): /lscratch/kocevski/33459054/ft2_4FGL_J1707.5+1649_weekly_bin938.fits
Exposure map: /lscratch/kocevski/33459054/expmap_806284801_806889601_4FGL_J1707.5+1649_weekly_bin938.fits
Exposure cube: /lscratch/kocevski/33459054/ltcube_806284801_806889601_4FGL_J1707.5+1649_weekly_bin938.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/33459054/Model_4FGL_J1707.5+1649_weekly_bin938.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) = 26360.0048742

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    42.344       1.0000          .0000       .10000E+07
     2 'Prefactor '    .11930E-04   1.0000          .0000       .10000E+07
     3 'Prefactor '    .42229       1.0000          .0000       .10000E+07
     4 'Prefactor '    2.8824       1.0000          .0000       .10000E+07
     5 'Prefactor '    .30628E-04   1.0000          .0000       .10000E+07
     6 'Prefactor '    .22098E-02   1.0000          .0000       .10000E+07
     7 'Prefactor '    .34786E-04   1.0000          .0000       .10000E+07
     8 'Prefactor '    .50464E-01   1.0000          .0000       .10000E+07
     9 'Prefactor '    2.2711       1.0000          .0000       .10000E+07
    10 'Prefactor '    .65562E-04   1.0000          .0000       .10000E+07
    11 'norm      '    .35037       1.0000          .0000       .10000E+07
    12 'Prefactor '    9.7186       1.0000          .0000       .10000E+07
    13 'norm      '    13.642       1.0000          .0000       .10000E+07
    14 'Prefactor '    2.4114       1.0000          .0000       .10000E+07
    15 'Prefactor '    29.483       1.0000          .0000       .10000E+07
    16 'norm      '    .13703E-01   1.0000          .0000       .10000E+07
    17 'Normalizat'    1.2670       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .90823       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   26359.93     FROM MIGRAD    STATUS=CONVERGED    485 CALLS     1435 TOTAL
                     EDM=   .21E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     41.699        19.722         .0000       -.61278E-03
   2  Prefactor      .0000        3.0843         .0000    ** at limit **
   3  Prefactor     .44542        3.3227         .0000        .92006E-02
   4  Prefactor     2.8764        2.6631         .0000        .39151    
   5  Prefactor      .0000        10.416         .0000    ** at limit **
   6  Prefactor      .0000        13.508         .0000    ** at limit **
   7  Prefactor      .0000        37.548         .0000    ** at limit **
   8  Prefactor      .0000        71.322         .0000    ** at limit **
   9  Prefactor     2.2877        4.1385         .0000        .13668E-01
  10  Prefactor      .0000        2.3740         .0000    ** at limit **
  11  norm          .34951        1.1027         .0000        .84943E-01
  12  Prefactor     9.8108        9.4056         .0000        .27053E-01
  13  norm          13.619        7.9345         .0000        .10188E-01
  14  Prefactor     .81507E-01    32.300         .0000    ** at limit **
  15  Prefactor     29.481        3.1695         .0000        .23331E-01
  16  norm           .0000        20.446         .0000    ** at limit **
  17  Normalizat    1.2676        .14149         .0000       -.25083E-05
  18  Prefactor     .90844        .53100E-01     .0000       -.12489E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 41.6991
  Prefactor  = 0
  Prefactor  = 0.445418
  Prefactor  = 2.87636
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 2.28766
  Prefactor  = 0
  norm       = 0.34951
  Prefactor  = 9.81083
  norm       = 13.6192
  Prefactor  = 0.0815073
  Prefactor  = 29.4815
  norm       = 0
  Normalizat = 1.26756
  Prefactor  = 0.908437
Done.

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

Extracting fit parameters...

4FGL J1707.5+1649
   Spectrum: PowerLaw
271    Prefactor:  0.000e+00  7.921e-07  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:  9.084e-01  6.419e-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.268e+00  1.705e-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: 3.26163427096e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00249487648519 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/33458822/likelihoodResults_806284801_806889601_4FGL_J1707.5+1649_weekly_bin938.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) = 26359.934697
delta logL = -0.000387715273973

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 26359.9343093
delta logL = -1.13614078145e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11102E-09   1.0000          .0000       .10000E+07
     2 'Index     '    1.2510       1.0000          .0000       10.000    
     3 'Normalizat'    1.2676       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90843       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=   26359.93     FROM MIGRAD    STATUS=CONVERGED     30 CALLS      223 TOTAL
                     EDM=   .16E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        1.6821       -.32405E-06** at limit **
   2  Index         2.7662        2.0180        .28972E-04     .0000    
   3  Normalizat    1.2676        .16267       -.38892E-05   -.25970E-04
   4  Prefactor     .90844        .62543E-01    .20841E-05   -.21709E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 2.76621
  Normalizat = 1.26756
  Prefactor  = 0.908437
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   26359.93     FROM HESSE     STATUS=FAILED        11 CALLS      234 TOTAL
                     EDM=   .16E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        1.6712        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .86672        2.0238        .28972E-04   -.46314    
   3  Normalizat    1.2676        1.0868       -.38892E-05   -.84540    
   4  Prefactor     .90844        1.2529        .20841E-05   -.95847    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.6237e-11
Minuit parameter uncertainties:
  1  1.35353e-05
  2  1.49962
  3  1.10724
  4  1.29647
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) = 26359.9343093
delta logL = -3.63797880709e-12

Extracting fit parameters...

4FGL J1707.5+1649
   Spectrum: PowerLaw
271    Prefactor:  0.000e+00  1.354e-05  0.000e+00  1.000e+06 ( 1.000e-13)
272        Index:  2.766e+00  1.500e+00  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:  9.084e-01  1.296e+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.268e+00  1.107e+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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /lscratch/kocevski/33458822/cmap_HighResolution_806284801_806889601_4FGL_J1707.5+1649_weekly_bin938.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.49e-03', job_status='DONE', photon_flux_upper_limit='3.26e-08', time_completed='2026-07-28 14:34:53.887914', job_id='33458822', GAL2='0.91', fit_tolerance='1e-08', EG2='1.27', EG='1.27', time_epoch_completed='1785274493.89', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.91', dlogl='-3.64e-12', ts2='0.00', photon_index_error='0.00', photon_index='2.25' WHERE bin_id='938' AND source_name='4FGL J1707.5+1649' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 28 14:34:53 PDT 2026

Done.

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

Extracting fit parameters...

4FGL J1707.5+1649
   Spectrum: PowerLaw
271    Prefactor:  0.000e+00  7.921e-07  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:  9.084e-01  6.419e-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.268e+00  1.705e-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: 3.26163427096e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00249487648519 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/33458823/likelihoodResults_806284801_806889601_4FGL_J1707.5+1649_weekly_bin938.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) = 26359.934697
delta logL = -0.000387715273973

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 26359.9343093
delta logL = -1.13614078145e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11102E-09   1.0000          .0000       .10000E+07
     2 'Index     '    1.2510       1.0000          .0000       10.000    
     3 'Normalizat'    1.2676       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90843       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=   26359.93     FROM MIGRAD    STATUS=CONVERGED     30 CALLS      223 TOTAL
                     EDM=   .16E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        1.6821       -.32405E-06** at limit **
   2  Index         2.7662        2.0180        .28972E-04     .0000    
   3  Normalizat    1.2676        .16267       -.38892E-05   -.25970E-04
   4  Prefactor     .90844        .62543E-01    .20841E-05   -.21709E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 2.76621
  Normalizat = 1.26756
  Prefactor  = 0.908437
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   26359.93     FROM HESSE     STATUS=FAILED        11 CALLS      234 TOTAL
                     EDM=   .16E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        1.6712        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .86672        2.0238        .28972E-04   -.46314    
   3  Normalizat    1.2676        1.0868       -.38892E-05   -.84540    
   4  Prefactor     .90844        1.2529        .20841E-05   -.95847    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.6237e-11
Minuit parameter uncertainties:
  1  1.35353e-05
  2  1.49962
  3  1.10724
  4  1.29647
Done.

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

Extracting fit parameters...

4FGL J1707.5+1649
   Spectrum: PowerLaw
271    Prefactor:  0.000e+00  7.921e-07  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:  9.084e-01  6.419e-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.268e+00  1.705e-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: 3.26163427096e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00249487648519 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/33459183/likelihoodResults_806284801_806889601_4FGL_J1707.5+1649_weekly_bin938.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) = 26359.934697
delta logL = -0.000387715273973

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 26359.9343093
delta logL = -1.13614078145e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11102E-09   1.0000          .0000       .10000E+07
     2 'Index     '    1.2510       1.0000          .0000       10.000    
     3 'Normalizat'    1.2676       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90843       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=   26359.93     FROM MIGRAD    STATUS=CONVERGED     30 CALLS      223 TOTAL
                     EDM=   .16E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        1.6821       -.32405E-06** at limit **
   2  Index         2.7662        2.0180        .28972E-04     .0000    
   3  Normalizat    1.2676        .16267       -.38892E-05   -.25970E-04
   4  Prefactor     .90844        .62543E-01    .20841E-05   -.21709E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 2.76621
  Normalizat = 1.26756
  Prefactor  = 0.908437
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) = 26359.9343093
delta logL = -3.63797880709e-12

Extracting fit parameters...

4FGL J1707.5+1649
   Spectrum: PowerLaw
271    Prefactor:  0.000e+00  1.354e-05  0.000e+00  1.000e+06 ( 1.000e-13)
272        Index:  2.766e+00  1.500e+00  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:  9.084e-01  1.296e+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.268e+00  1.107e+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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /lscratch/kocevski/33458823/cmap_HighResolution_806284801_806889601_4FGL_J1707.5+1649_weekly_bin938.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.49e-03', job_status='DONE', photon_flux_upper_limit='3.26e-08', time_completed='2026-07-28 14:34:59.980020', job_id='33458823', GAL2='0.91', fit_tolerance='1e-08', EG2='1.27', EG='1.27', time_epoch_completed='1785274499.98', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.91', dlogl='-3.64e-12', ts2='0.00', photon_index_error='0.00', photon_index='2.25' WHERE bin_id='938' AND source_name='4FGL J1707.5+1649' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 28 14:35:00 PDT 2026

 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   26359.93     FROM HESSE     STATUS=FAILED        11 CALLS      234 TOTAL
                     EDM=   .16E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        1.6712        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .86672        2.0238        .28972E-04   -.46314    
   3  Normalizat    1.2676        1.0868       -.38892E-05   -.84540    
   4  Prefactor     .90844        1.2529        .20841E-05   -.95847    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.6237e-11
Minuit parameter uncertainties:
  1  1.35353e-05
  2  1.49962
  3  1.10724
  4  1.29647
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) = 26359.9343093
delta logL = -3.63797880709e-12

Extracting fit parameters...

4FGL J1707.5+1649
   Spectrum: PowerLaw
271    Prefactor:  0.000e+00  1.354e-05  0.000e+00  1.000e+06 ( 1.000e-13)
272        Index:  2.766e+00  1.500e+00  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:  9.084e-01  1.296e+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.268e+00  1.107e+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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /lscratch/kocevski/33459183/cmap_HighResolution_806284801_806889601_4FGL_J1707.5+1649_weekly_bin938.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.49e-03', job_status='DONE', photon_flux_upper_limit='3.26e-08', time_completed='2026-07-28 14:35:02.964614', job_id='33459183', GAL2='0.91', fit_tolerance='1e-08', EG2='1.27', EG='1.27', time_epoch_completed='1785274502.96', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.91', dlogl='-3.64e-12', ts2='0.00', photon_index_error='0.00', photon_index='2.25' WHERE bin_id='938' AND source_name='4FGL J1707.5+1649' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 28 14:35:03 PDT 2026

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

 FCN=   26359.93     FROM HESSE     STATUS=OK           258 CALLS     1693 TOTAL
                     EDM=   .18E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     41.699        19.730        .61476E-05   -1.5579    
   2  Prefactor      .0000        3.0874        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .44542        32.114        .55838E-03   -1.5695    
   4  Prefactor     2.8764        2.6612        .11967E-03   -1.5674    
   5  Prefactor      .0000        10.766        .16847E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor      .0000        13.550        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor      .0000        37.756        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor      .0000        73.326        .62088E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.2877        4.1221        .27248E-04   -1.5678    
  10  Prefactor      .0000        2.3768        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .34951        1.1088        .29278E-04   -1.5696    
  12  Prefactor     9.8108        9.3983        .64240E-04   -1.5645    
  13  norm          13.619        7.9365        .54186E-04   -1.5634    
  14  Prefactor     .81507E-01    22.072        .22606E-01   -1.5702    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     29.481        3.1691        .36840E-04   -1.5599    
  16  norm           .0000        20.455        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    1.2676        .17047        .38145E-03   -.84540    
  18  Prefactor     .90844        .64187E-01    .16864E-03   -.95847    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.76333e-07
Minuit parameter uncertainties:
  1  19.7297
  2  7.0241e-07
  3  7.5642
  4  2.66122
  5  9.56556e-06
  6  3.14571e-07
  7  9.619e-06
  8  1.21603e-05
  9  4.12213
  10  7.9208e-07
  11  1.10878
  12  9.39834
  13  7.93651
  14  2.68256
  15  3.1691
  16  6.42951e-06
  17  0.170542
  18  0.0641922
Done.

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

Extracting fit parameters...

4FGL J1707.5+1649
   Spectrum: PowerLaw
271    Prefactor:  0.000e+00  7.921e-07  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:  9.084e-01  6.419e-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.268e+00  1.705e-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: 3.26163427096e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00249487648519 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/33459054/likelihoodResults_806284801_806889601_4FGL_J1707.5+1649_weekly_bin938.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) = 26359.934697
delta logL = -0.000387715273973

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 26359.9343093
delta logL = -1.13614078145e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11102E-09   1.0000          .0000       .10000E+07
     2 'Index     '    1.2510       1.0000          .0000       10.000    
     3 'Normalizat'    1.2676       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90843       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=   26359.93     FROM MIGRAD    STATUS=CONVERGED     30 CALLS      223 TOTAL
                     EDM=   .16E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        1.6821       -.32405E-06** at limit **
   2  Index         2.7662        2.0180        .28972E-04     .0000    
   3  Normalizat    1.2676        .16267       -.38892E-05   -.25970E-04
   4  Prefactor     .90844        .62543E-01    .20841E-05   -.21709E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 2.76621
  Normalizat = 1.26756
  Prefactor  = 0.908437
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   26359.93     FROM HESSE     STATUS=FAILED        11 CALLS      234 TOTAL
                     EDM=   .16E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        1.6712        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .86672        2.0238        .28972E-04   -.46314    
   3  Normalizat    1.2676        1.0868       -.38892E-05   -.84540    
   4  Prefactor     .90844        1.2529        .20841E-05   -.95847    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.6237e-11
Minuit parameter uncertainties:
  1  1.35353e-05
  2  1.49962
  3  1.10724
  4  1.29647
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) = 26359.9343093
delta logL = -3.63797880709e-12

Extracting fit parameters...

4FGL J1707.5+1649
   Spectrum: PowerLaw
271    Prefactor:  0.000e+00  1.354e-05  0.000e+00  1.000e+06 ( 1.000e-13)
272        Index:  2.766e+00  1.500e+00  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:  9.084e-01  1.296e+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.268e+00  1.107e+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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /lscratch/kocevski/33459054/cmap_HighResolution_806284801_806889601_4FGL_J1707.5+1649_weekly_bin938.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.49e-03', job_status='DONE', photon_flux_upper_limit='3.26e-08', time_completed='2026-07-28 14:37:16.528163', job_id='33459054', GAL2='0.91', fit_tolerance='1e-08', EG2='1.27', EG='1.27', time_epoch_completed='1785274636.53', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.91', dlogl='-3.64e-12', ts2='0.00', photon_index_error='0.00', photon_index='2.25' WHERE bin_id='938' AND source_name='4FGL J1707.5+1649' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 28 14:37:16 PDT 2026

