/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).

00       .10000E+07
    28 'norm      '    4.1526       1.0000          .0000       .10000E+07
    29 'Prefactor '    48.534       1.0000          .0000       .10000E+07
    30 'Prefactor '    .95578E-03   1.0000          .0000       .10000E+07
    31 'Prefactor '    .35140       1.0000          .0000       .10000E+07
    32 'Normalizat'    1.0025       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .98067       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6940E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6510.881     FROM MIGRAD    STATUS=CONVERGED    231 CALLS     3396 TOTAL
                     EDM=   .79E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .27756E-09    9.4974       -.36622E-07** at limit **
   2  Prefactor     3.3295        4.9299       -.20488E-07   -.42249E-04
   3  norm           .0000        2.9065       -.23242E-07** at limit **
   4  Prefactor     .41742E-05    16.158        .83909E-07** at limit **
   5  Prefactor     1.0928        8.9677       -.63060E-07    .24850E-03
   6  Prefactor     .44797E-07    63.546       -.73035E-06** at limit **
   7  Prefactor     .11102E-09    6.5908       -.10784E-06** at limit **
   8  Prefactor      .0000        .93295        .54794E-07** at limit **
   9  norm          .68279E-08    19.052        .92690E-07** at limit **
  10  norm          .87584E-01    .78927E-01    .45777E-08** at limit **
  11  norm          .15382E-06    2.4212        .34352E-09** at limit **
  12  Prefactor     6.0456        9.9222       -.34743E-07    .33251E-02
  13  Prefactor     5.5009        4.3490        .31415E-07    .17834E-02
  14  Prefactor     .33823E-06    3.9271       -.19553E-07** at limit **
  15  norm          43.801        1.3074       -.19816E-08    .22094E-02
  16  Prefactor      .0000        .34335        .22109E-07** at limit **
  17  Prefactor      .0000        .34157        .50327E-07** at limit **
  18  Prefactor     4.7064        3.5132       -.43582E-08    .11551E-02
  19  Prefactor     .59047        2.8129        .19540E-07    .88240E-03
  20  Prefactor     .27711E-06    2.5386       -.99114E-07** at limit **
  21  norm          7.0847        2.1875       -.24878E-08    .12407E-02
  22  norm           .0000        .38585       -.17999E-07** at limit **
  23  Prefactor     .32507E-06    28.804        .47427E-07** at limit **
  24  norm           .0000        .29426        .91918E-08** at limit **
  25  norm          .27645E-06    2.5942       -.72274E-07** at limit **
  26  norm          .26835        1.8134        .69738E-08    .32071E-03
  27  Prefactor     .90526        5.7105        .49449E-07    .80802E-02
  28  norm          4.1900        6.4769       -.50674E-07   -.22244E-02
  29  Prefactor     47.583        47.982       -.29036E-06    .11676E-01
  30  Prefactor     .32752E-08    15.864       -.12296E-06** at limit **
  31  Prefactor     .23809E-06    65.379        .13055E-06** at limit **
  32  Normalizat    1.0024        .21251        .25540E-05    .22834E-03
  33  Prefactor     .98101        .19743        .25917E-06    .21467E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.77556e-10
  Prefactor  = 3.32948
  norm       = 0
  Prefactor  = 4.17422e-06
  Prefactor  = 1.09281
  Prefactor  = 4.47975e-08
  Prefactor  = 1.11022e-10
  Prefactor  = 0
  norm       = 6.82787e-09
  norm       = 0.0875837
  norm       = 1.53821e-07
  Prefactor  = 6.04563
  Prefactor  = 5.5009
  Prefactor  = 3.38229e-07
  norm       = 43.8008
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 4.70636
  Prefactor  = 0.590467
  Prefactor  = 2.77112e-07
  norm       = 7.08473
  norm       = 0
  Prefactor  = 3.25073e-07
  norm       = 0
  norm       = 2.76446e-07
  norm       = 0.268348
  Prefactor  = 0.905265
  norm       = 4.19004
  Prefactor  = 47.5834
  Prefactor  = 3.27516e-09
  Prefactor  = 2.38087e-07
  Normalizat = 1.00235
  Prefactor  = 0.981013
/sdf/group/fermi/u/kocevski/software/conda/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

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

 FCN=   6510.881     FROM HESSE     STATUS=OK           775 CALLS     4171 TOTAL
                     EDM=   .28E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .27756E-09    9.5090        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     3.3295        4.9348        .55402E-03   -1.5671    
   3  norm           .0000        2.9107        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .41742E-05    92.040        .83778E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.0928        8.9963        .11055E-02   -1.5687    
   6  Prefactor     .44797E-07    63.860        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .11102E-09    6.5712        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor      .0000        .94178        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .68279E-08    20.276        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .87584E-01    .80831E-01    .46762E-03   -1.5702    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .15382E-06    15.081        .10936E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     6.0456        9.9671        .40819E-03   -1.5659    
  13  Prefactor     5.5009        4.3621        .43044E-03   -1.5661    
  14  Prefactor     .33823E-06    2.5935        .96718E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          43.801        44.116        .15115E-03   -1.5576    
  16  Prefactor      .0000        .33985        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor      .0000        .34066        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     4.7064        3.5219        .46258E-03   -1.5665    
  19  Prefactor     .59047        3.0351        .72245E-03   -1.5693    
  20  Prefactor     .27711E-06    4.4695        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          7.0847        2.1904        .37655E-03   -1.5655    
  22  norm           .0000        .38311        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .32507E-06    30.272        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm           .0000        .29177        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .27645E-06    4.4925        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .26835        1.0649        .27785E-02   -1.5698    
  27  Prefactor     .90526        5.9684        .45649E-03   -1.5689    
  28  norm          4.1900        6.6453        .49438E-03   -1.5667    
  29  Prefactor     47.583        49.344        .14355E-03   -1.5570    
  30  Prefactor     .32752E-08    16.215        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .23809E-06    70.483        .95348E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    1.0024        .18023        .46198E-01   -.92952    
  33  Prefactor     .98101        .16502        .46025E-01   -.93365    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.79265e-07
Minuit parameter uncertainties:
  1  0.000100523
  2  4.93476
  3  1.58039e-05
  4  0.0392025
  5  6.27096
  6  0.00338267
  7  5.58402e-05
  8  2.08336e-06
  9  0.000743456
  10  0.0808314
  11  0.00304636
  12  9.9671
  13  4.3621
  14  0.00187319
  15  44.1166
  16  8.77332e-07
  17  2.32385e-06
  18  3.52191
  19  2.67739
  20  0.00222586
  21  2.19036
  22  1.07027e-06
  23  0.006274
  24  3.67203e-07
  25  0.00222888
  26  1.0649
  27  4.64887
  28  6.64534
  29  49.3445
  30  0.000460315
  31  0.00819263
  32  0.180338
  33  0.165104
number of points = 7607
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1637.7+4717_daily_bin2204
RA = 249.434, Dec = 47.2913
tmin = 810604801, tmax = 810864001
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='38051127', job_status='RUN', time_executed='2026-09-12 12:58:09.560498', time_epoch_executed='1789243089.56' WHERE source_name='4FGL J1637.7+4717' and cadence='daily' and bin_id='2204'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/38051127

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/38051127/ft1_4FGL_J1637.7+4717_daily_bin2204.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/38051127/ft2_4FGL_J1637.7+4717_daily_bin2204.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/38051127/ft1_4FGL_J1637.7+4717_daily_bin2204.fits outfile=/lscratch/kocevski/38051127/ft1_filteredMKT_4FGL_J1637.7+4717_daily_bin2204.fits ra=249.434 dec=47.2913 rad=12.0 tmin=810604801.0 tmax=810864001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 2.59
user 2.16
sys 0.18

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/38051127/ft2_4FGL_J1637.7+4717_daily_bin2204.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/38051127/ft2_4FGL_J1637.7+4717_daily_bin2204.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/38051127/ft1_filteredMKT_4FGL_J1637.7+4717_daily_bin2204.fits evtable="EVENTS" outfile="/lscratch/kocevski/38051127/ft1_filtered_4FGL_J1637.7+4717_daily_bin2204.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.50
user 0.18
sys 0.13

Number of photons that the gtmktime cut: 610

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/38051127/ft1_filtered_4FGL_J1637.7+4717_daily_bin2204.fits" evtable="EVENTS" scfile=/lscratch/kocevski/38051127/ft2_4FGL_J1637.7+4717_daily_bin2204.fits sctable="SC_DATA" ou_V02
Working on...
/lscratch/kocevski/38050484/ft1_filtered_4FGL_J1637.7+4717_daily_bin2204.fits.....................!
real 23.18
user 21.60
sys 1.10

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/38050484/ft1_filtered_4FGL_J1637.7+4717_daily_bin2204.fits', '/lscratch/kocevski/38050484/ft2_4FGL_J1637.7+4717_daily_bin2204.fits', expMap='/lscratch/kocevski/38050484/expmap_810604801_810864001_4FGL_J1637.7+4717_daily_bin2204.fits', expCube='/lscratch/kocevski/38050484/ltcube_810604801_810864001_4FGL_J1637.7+4717_daily_bin2204.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/38050484/Model_4FGL_J1637.7+4717_daily_bin2204.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1637.7+4717'

4FGL J1637.7+4717
   Spectrum: PowerLaw
335    Prefactor:  3.736e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
336        Index:  2.428e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
337        Scale:  7.167e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/38050484/ft1_filtered_4FGL_J1637.7+4717_daily_bin2204.fits
Spacecraft file(s): /lscratch/kocevski/38050484/ft2_4FGL_J1637.7+4717_daily_bin2204.fits
Exposure map: /lscratch/kocevski/38050484/expmap_810604801_810864001_4FGL_J1637.7+4717_daily_bin2204.fits
Exposure cube: /lscratch/kocevski/38050484/ltcube_810604801_810864001_4FGL_J1637.7+4717_daily_bin2204.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/38050484/Model_4FGL_J1637.7+4717_daily_bin2204.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) = 6510.90535005

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .65891E-02   1.0000          .0000       .10000E+07
     2 'Prefactor '    3.3347       1.0000          .0000       .10000E+07
     3 'norm      '    .30492E-03   1.0000          .0000       .10000E+07
     4 'Prefactor '    .45121       1.0000          .0000       .10000E+07
     5 'Prefactor '    1.1237       1.0000          .0000       .10000E+07
     6 'Prefactor '    .14741E-04   1.0000          .0000       .10000E+07
     7 'Prefactor '    .23708E-03   1.0000          .0000       .10000E+07
     8 'Prefactor '    .19217E-05   1.0000          .0000       .10000E+07
     9 'norm      '    .61841E-03   1.0000          .0000       .10000E+07
    10 'norm      '    .87655E-01   1.0000          .0000       .10000E+07
    11 'norm      '    .59694E-01   1.0000          .0000       .10000E+07
    12 'Prefactor '    6.0434       1.0000          .0000       .10000E+07
    13 'Prefactor '    5.4436       1.0000          .0000       .10000E+07
    14 'Prefactor '    .20332E-01   1.0000          .0000       .10000E+07
    15 'norm      '    43.779       1.0000          .0000       .10000E+07
    16 'Prefactor '    .83267E-09   1.0000          .0000       .10000E+07
    17 'Prefactor '    .16270E-06   1.0000          .0000       .10000E+07
    18 'Prefactor '    4.7269       1.0000          .0000       .10000E+07
    19 'Prefactor '    .56692       1.0000          .0000       .10000E+07
    20 'Prefactor '    .66236E-03   1.0000          .0000       .10000E+07
    21 'norm      '    7.0881       1.0000          .0000       .10000E+07
    22 'norm      '    .11369E-06   1.0000          .0000       .10000E+07
    23 'Prefactor '    .17051E-05   1.0000          .0000       .10000E+07
    24 'norm      '    .97700E-08   1.0000          .0000       .10000E+07
    25 'norm      '    .64354E-03   1.0000          .0000       .10000E+07
    26 'norm      '    .26308       1.0000          .0000       .10000E+07
    27 'Prefactor '    .90160       1.0000          .00_V02
Working on...
/lscratch/kocevski/38050441/ft1_filtered_4FGL_J1637.7+4717_daily_bin2204.fits.....................!
real 25.00
user 22.59
sys 1.04

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/38050441/ft1_filtered_4FGL_J1637.7+4717_daily_bin2204.fits', '/lscratch/kocevski/38050441/ft2_4FGL_J1637.7+4717_daily_bin2204.fits', expMap='/lscratch/kocevski/38050441/expmap_810604801_810864001_4FGL_J1637.7+4717_daily_bin2204.fits', expCube='/lscratch/kocevski/38050441/ltcube_810604801_810864001_4FGL_J1637.7+4717_daily_bin2204.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/38050441/Model_4FGL_J1637.7+4717_daily_bin2204.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1637.7+4717'

4FGL J1637.7+4717
   Spectrum: PowerLaw
335    Prefactor:  3.736e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
336        Index:  2.428e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
337        Scale:  7.167e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/38050441/ft1_filtered_4FGL_J1637.7+4717_daily_bin2204.fits
Spacecraft file(s): /lscratch/kocevski/38050441/ft2_4FGL_J1637.7+4717_daily_bin2204.fits
Exposure map: /lscratch/kocevski/38050441/expmap_810604801_810864001_4FGL_J1637.7+4717_daily_bin2204.fits
Exposure cube: /lscratch/kocevski/38050441/ltcube_810604801_810864001_4FGL_J1637.7+4717_daily_bin2204.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/38050441/Model_4FGL_J1637.7+4717_daily_bin2204.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) = 6510.90535005

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .65891E-02   1.0000          .0000       .10000E+07
     2 'Prefactor '    3.3347       1.0000          .0000       .10000E+07
     3 'norm      '    .30492E-03   1.0000          .0000       .10000E+07
     4 'Prefactor '    .45121       1.0000          .0000       .10000E+07
     5 'Prefactor '    1.1237       1.0000          .0000       .10000E+07
     6 'Prefactor '    .14741E-04   1.0000          .0000       .10000E+07
     7 'Prefactor '    .23708E-03   1.0000          .0000       .10000E+07
     8 'Prefactor '    .19217E-05   1.0000          .0000       .10000E+07
     9 'norm      '    .61841E-03   1.0000          .0000       .10000E+07
    10 'norm      '    .87655E-01   1.0000          .0000       .10000E+07
    11 'norm      '    .59694E-01   1.0000          .0000       .10000E+07
    12 'Prefactor '    6.0434       1.0000          .0000       .10000E+07
    13 'Prefactor '    5.4436       1.0000          .0000       .10000E+07
    14 'Prefactor '    .20332E-01   1.0000          .0000       .10000E+07
    15 'norm      '    43.779       1.0000          .0000       .10000E+07
    16 'Prefactor '    .83267E-09   1.0000          .0000       .10000E+07
    17 'Prefactor '    .16270E-06   1.0000          .0000       .10000E+07
    18 'Prefactor '    4.7269       1.0000          .0000       .10000E+07
    19 'Prefactor '    .56692       1.0000          .0000       .10000E+07
    20 'Prefactor '    .66236E-03   1.0000          .0000       .10000E+07
    21 'norm      '    7.0881       1.0000          .0000       .10000E+07
    22 'norm      '    .11369E-06   1.0000          .0000       .10000E+07
    23 'Prefactor '    .17051E-05   1.0000          .0000       .10000E+07
    24 'norm      '    .97700E-08   1.0000          .0000       .10000E+07
    25 'norm      '    .64354E-03   1.0000          .0000       .10000E+07
    26 'norm      '    .26308       1.0000          .0000       .10000E+07
    27 'Prefactor '    .90160       1.0000          .0000       .10000E+07
    28 'norm      '    4.1526       1.0000          .0000       .10000E+07
    29 'Prefactor '    48.534       1.0000          .0000       .10000E+07
    30 'Prefactor '    .95578E-03   1.0000          .0000       .10000E+07
    31 'Prefactor '    .35140       1.0000          .0000       .10000E+07
    32 'Normalizat'    1.0025       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .98067       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6940E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6510.881     FROM MIGRAD    STATUS=CONVERGED    231 CALLS     3396 TOTAL
                     EDM=   .79E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .27756E-09    9.4974       -.36622E-07** at limit **
   2  Prefactor     3.3295        4.9299       -.20488E-07   -.42249E-04
   3  norm           .0000        2.9065       -.23242E-07** at limit **
   4  Prefactor     .41742E-05    16.158        .83909E-07** at limit **
   5  Prefactor     1.0928        8.9677       -.63060E-07    .24850E-03
   6  Prefactor     .44797E-07    63.546       -.73035E-06** at limit **
   7  Prefactor     .11102E-09    6.5908       -.10784E-06** at limit **
   8  Prefactor      .0000        .93295        .54794E-07** at limit **
   9  norm          .68279E-08    19.052        .92690E-07** at limit **
  10  norm          .87584E-01    .78927E-01    .45777E-08** at limit **
  11  norm          .15382E-06    2.4212        .34352E-09** at limit **
  12  Prefactor     6.0456        9.9222       -.34743E-07    .33251E-02
  13  Prefactor     5.5009        4.3490        .31415E-07    .17834E-02
  14  Prefactor     .33823E-06    3.9271       -.19553E-07** at limit **
  15  norm          43.801        1.3074       -.19816E-08    .22094E-02
  16  Prefactor      .0000        .34335        .22109E-07** at limit **
  17  Prefactor      .0000        .34157        .50327E-07** at limit **
  18  Prefactor     4.7064        3.5132       -.43582E-08    .11551E-02
  19  Prefactor     .59047        2.8129        .19540E-07    .88240E-03
  20  Prefactor     .27711E-06    2.5386       -.99114E-07** at limit **
  21  norm          7.0847        2.1875       -.24878E-08    .12407E-02
  22  norm           .0000        .38585       -.17999E-07** at limit **
  23  Prefactor     .32507E-06    28.804        .47427E-07** at limit **
  24  norm           .0000        .29426        .91918E-08** at limit **
  25  norm          .27645E-06    2.5942       -.72274E-07** at limit **
  26  norm          .26835        1.8134        .69738E-08    .32071E-03
  27  Prefactor     .90526        5.7105        .49449E-07    .80802E-02
  28  norm          4.1900        6.4769       -.50674E-07   -.22244E-02
  29  Prefactor     47.583        47.982       -.29036E-06    .11676E-01
  30  Prefactor     .32752E-08    15.864       -.12296E-06** at limit **
  31  Prefactor     .23809E-06    65.379        .13055E-06** at limit **
  32  Normalizat    1.0024        .21251        .25540E-05    .22834E-03
  33  Prefactor     .98101        .19743        .25917E-06    .21467E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.77556e-10
  Prefactor  = 3.32948
  norm       = 0
  Prefactor  = 4.17422e-06
  Prefactor  = 1.09281
  Prefactor  = 4.47975e-08
  Prefactor  = 1.11022e-10
  Prefactor  = 0
  norm       = 6.82787e-09
  norm       = 0.0875837
  norm       = 1.53821e-07
  Prefactor  = 6.04563
  Prefactor  = 5.5009
  Prefactor  = 3.38229e-07
  norm       = 43.8008
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 4.70636
  Prefactor  = 0.590467
  Prefactor  = 2.77112e-07
  norm       = 7.08473
  norm       = 0
  Prefactor  = 3.25073e-07
  norm       = 0
  norm       = 2.76446e-07
  norm       = 0.268348
  Prefactor  = 0.905265
  norm       = 4.19004
  Prefactor  = 47.5834
  Prefactor  = 3.27516e-09
  Prefactor  = 2.38087e-07
  Normalizat = 1.00235
  Prefactor  = 0.981013
Done.

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

Extracting fit parameters...

4FGL J1637.7+4717
   Spectrum: PowerLaw
335    Prefactor:  5.501e+00  4.362e+00  0.000e+00  1.000e+06 ( 1.000e-12)
336        Index:  2.428e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
337        Scale:  7.167e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
691    Prefactor:  9.810e-01  1.651e-01  0.000e+00  1.000e+01 ( 1.000e+00)
692        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
693        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
690   Normalization:  1.002e+00  1.803e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.30
Ra Dec: 249.434 47.291
Photon Index (Fixed Index): 2.43 +/- 0.00
Photon Flux (Fixed Index): 4.60e-08 +/- 3.64e-08
Energy Flux (Fixed Index): 1.45e-05 +/- 1.15e-05

TS (Fixed Index): 3.30
Ra Dec: 249.434 47.291
Photon Flux Upper Limit: 1.24730354845e-07 ph cm-2 s-1
Energy Flux Upper Limit: 0.00965614196693 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/38050171/likelihoodResults_810604801_810864001_4FGL_J1637.7+4717_daily_bin2204.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6510.8778751
delta logL = 0.00265889608272

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6510.87696213
delta logL = 0.0035718656236

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6510.877     FROM MIGRAD    STATUS=CONVERGED     79 CALLS      229 TOTAL
                     EDM=   .86E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.6667        4.8691        .14420E-04    .82782E-02
   2  Index         2.3587        .82392        .86708E-02    .13762E-03
   3  Normalizat    1.0063        .21127        .24488E-03   -.29238E-03
   4  Prefactor     .97850        .19453        .23201E-03   -.36663E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.66673
  Index      = 2.35867
  Normalizat = 1.0063
  Prefactor  = 0.978495
 **********
 **   18 **HESSE 
 **********

 FCN=   6510.877     FROM HESSE     STATUS=OK            23 CALLS      252 TOTAL
                     EDM=   .83E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.6667        4.7691        .57680E-06   -1.5660    
   2  Index         2.3587        .80583        .34683E-03   -.55656    
   3  Normalizat    1.0063        .21121        .48977E-04   -.92820    
   4  Prefactor     .97850        .19455        .46403E-04   -.93450    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.30212e-10
Minuit parameter uncertainties:
  1  4.76906
  2  0.810752
  3  0.211383
  4  0.194691
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6510.87696209
delta logL = 0.00357189913029

Extracting fit parameters...

4FGL J1637.7+4717
   Spectrum: PowerLaw
335    Prefactor:  5.667e+00  4.769e+00  0.000e+00  1.000e+06 ( 1.000e-12)
336        Index:  2.359e+00  8.108e-01  0.000e+00  1.000e+01 (-1.000e+00)
337        Scale:  7.167e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
691    Prefactor:  9.785e-01  1.947e-01  0.000e+00  1.000e+01 ( 1.000e+00)
692        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
693        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
690   Normalization:  1.006e+00  2.114e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.30
Ra Dec: 249.434 47.291
Photon Index (Free Index): 2.36 +/- 0.81
Photon Flux (Free Index): 4.34e-08 +/- 4.58e-08
Energy Flux (Free Index): 1.51e-05 +/- 1.37e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /lscratch/kocevski/38050171/cmap_HighResolution_810604801_810864001_4FGL_J1637.7+4717_daily_bin2204.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.66e-03', comment='SUCCESS', photon_flux='4.60e-08', energy_flux2='1.51e-05', photon_flux_error='3.64e-08', dlogl='3.57e-03', energy_flux='1.45e-05', photon_flux2='4.34e-08', job_status='DONE', time_completed='2026-09-12 12:59:44.212866', photon_index_error2='0.81', photon_index2='2.36', ts='3.30', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', photon_flux_upper_limit='1.25e-07', energy_flux_error2='1.37e-05', EG='1.00', time_epoch_completed='1789243184.21', return_code='0', job_id='38050171', GAL2='0.98', EG2='1.01', return_code2='0', energy_flux_error='1.15e-05', photon_flux_error2='4.58e-08', ts2='3.30', photon_index='2.43' WHERE bin_id='2204' AND source_name='4FGL J1637.7+4717' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 12 12:59:44 PDT 2026

00       .10000E+07
    28 'norm      '    4.1526       1.0000          .0000       .10000E+07
    29 'Prefactor '    48.534       1.0000          .0000       .10000E+07
    30 'Prefactor '    .95578E-03   1.0000          .0000       .10000E+07
    31 'Prefactor '    .35140       1.0000          .0000       .10000E+07
    32 'Normalizat'    1.0025       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .98067       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6940E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6510.881     FROM MIGRAD    STATUS=CONVERGED    231 CALLS     3396 TOTAL
                     EDM=   .79E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .27756E-09    9.4974       -.36622E-07** at limit **
   2  Prefactor     3.3295        4.9299       -.20488E-07   -.42249E-04
   3  norm           .0000        2.9065       -.23242E-07** at limit **
   4  Prefactor     .41742E-05    16.158        .83909E-07** at limit **
   5  Prefactor     1.0928        8.9677       -.63060E-07    .24850E-03
   6  Prefactor     .44797E-07    63.546       -.73035E-06** at limit **
   7  Prefactor     .11102E-09    6.5908       -.10784E-06** at limit **
   8  Prefactor      .0000        .93295        .54794E-07** at limit **
   9  norm          .68279E-08    19.052        .92690E-07** at limit **
  10  norm          .87584E-01    .78927E-01    .45777E-08** at limit **
  11  norm          .15382E-06    2.4212        .34352E-09** at limit **
  12  Prefactor     6.0456        9.9222       -.34743E-07    .33251E-02
  13  Prefactor     5.5009        4.3490        .31415E-07    .17834E-02
  14  Prefactor     .33823E-06    3.9271       -.19553E-07** at limit **
  15  norm          43.801        1.3074       -.19816E-08    .22094E-02
  16  Prefactor      .0000        .34335        .22109E-07** at limit **
  17  Prefactor      .0000        .34157        .50327E-07** at limit **
  18  Prefactor     4.7064        3.5132       -.43582E-08    .11551E-02
  19  Prefactor     .59047        2.8129        .19540E-07    .88240E-03
  20  Prefactor     .27711E-06    2.5386       -.99114E-07** at limit **
  21  norm          7.0847        2.1875       -.24878E-08    .12407E-02
  22  norm           .0000        .38585       -.17999E-07** at limit **
  23  Prefactor     .32507E-06    28.804        .47427E-07** at limit **
  24  norm           .0000        .29426        .91918E-08** at limit **
  25  norm          .27645E-06    2.5942       -.72274E-07** at limit **
  26  norm          .26835        1.8134        .69738E-08    .32071E-03
  27  Prefactor     .90526        5.7105        .49449E-07    .80802E-02
  28  norm          4.1900        6.4769       -.50674E-07   -.22244E-02
  29  Prefactor     47.583        47.982       -.29036E-06    .11676E-01
  30  Prefactor     .32752E-08    15.864       -.12296E-06** at limit **
  31  Prefactor     .23809E-06    65.379        .13055E-06** at limit **
  32  Normalizat    1.0024        .21251        .25540E-05    .22834E-03
  33  Prefactor     .98101        .19743        .25917E-06    .21467E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.77556e-10
  Prefactor  = 3.32948
  norm       = 0
  Prefactor  = 4.17422e-06
  Prefactor  = 1.09281
  Prefactor  = 4.47975e-08
  Prefactor  = 1.11022e-10
  Prefactor  = 0
  norm       = 6.82787e-09
  norm       = 0.0875837
  norm       = 1.53821e-07
  Prefactor  = 6.04563
  Prefactor  = 5.5009
  Prefactor  = 3.38229e-07
  norm       = 43.8008
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 4.70636
  Prefactor  = 0.590467
  Prefactor  = 2.77112e-07
  norm       = 7.08473
  norm       = 0
  Prefactor  = 3.25073e-07
  norm       = 0
  norm       = 2.76446e-07
  norm       = 0.268348
  Prefactor  = 0.905265
  norm       = 4.19004
  Prefactor  = 47.5834
  Prefactor  = 3.27516e-09
  Prefactor  = 2.38087e-07
  Normalizat = 1.00235
  Prefactor  = 0.981013
 **********
 **   18 **HESSE 
 **********

 FCN=   6510.881     FROM HESSE     STATUS=OK           775 CALLS     4171 TOTAL
                     EDM=   .28E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .27756E-09    9.5090        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     3.3295        4.9348        .55402E-03   -1.5671    
   3  norm           .0000        2.9107        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .41742E-05    92.040        .83778E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.0928        8.9963        .11055E-02   -1.5687    
   6  Prefactor     .44797E-07    63.860        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .11102E-09    6.5712        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor      .0000        .94178        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .68279E-08    20.276        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .87584E-01    .80831E-01    .46762E-03   -1.5702    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .15382E-06    15.081        .10936E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     6.0456        9.9671        .40819E-03   -1.5659    
  13  Prefactor     5.5009        4.3621        .43044E-03   -1.5661    
  14  Prefactor     .33823E-06    2.5935        .96718E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          43.801        44.116        .15115E-03   -1.5576    
  16  Prefactor      .0000        .33985        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor      .0000        .34066        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     4.7064        3.5219        .46258E-03   -1.5665    
  19  Prefactor     .59047        3.0351        .72245E-03   -1.5693    
  20  Prefactor     .27711E-06    4.4695        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          7.0847        2.1904        .37655E-03   -1.5655    
  22  norm           .0000        .38311        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .32507E-06    30.272        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm           .0000        .29177        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .27645E-06    4.4925        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .26835        1.0649        .27785E-02   -1.5698    
  27  Prefactor     .90526        5.9684        .45649E-03   -1.5689    
  28  norm          4.1900        6.6453        .49438E-03   -1.5667    
  29  Prefactor     47.583        49.344        .14355E-03   -1.5570    
  30  Prefactor     .32752E-08    16.215        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .23809E-06    70.483        .95348E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    1.0024        .18023        .46198E-01   -.92952    
  33  Prefactor     .98101        .16502        .46025E-01   -.93365    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.79265e-07
Minuit parameter uncertainties:
  1  0.000100523
  2  4.93476
  3  1.58039e-05
  4  0.0392025
  5  6.27096
  6  0.00338267
  7  5.58402e-05
  8  2.08336e-06
  9  0.000743456
  10  0.0808314
  11  0.00304636
  12  9.9671
  13  4.3621
  14  0.00187319
  15  44.1166
  16  8.77332e-07
  17  2.32385e-06
  18  3.52191
  19  2.67739
  20  0.00222586
  21  2.19036
  22  1.07027e-06
  23  0.006274
  24  3.67203e-07
  25  0.00222888
  26  1.0649
  27  4.64887
  28  6.64534
  29  49.3445
  30  0.000460315
  31  0.00819263
  32  0.180338
  33  0.165104
 **********
 **   18 **HESSE 
 **********

 FCN=   6510.881     FROM HESSE     STATUS=OK           775 CALLS     4171 TOTAL
                     EDM=   .28E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .27756E-09    9.5090        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     3.3295        4.9348        .55402E-03   -1.5671    
   3  norm           .0000        2.9107        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .41742E-05    92.040        .83778E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.0928        8.9963        .11055E-02   -1.5687    
   6  Prefactor     .44797E-07    63.860        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .11102E-09    6.5712        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor      .0000        .94178        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .68279E-08    20.276        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .87584E-01    .80831E-01    .46762E-03   -1.5702    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .15382E-06    15.081        .10936E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     6.0456        9.9671        .40819E-03   -1.5659    
  13  Prefactor     5.5009        4.3621        .43044E-03   -1.5661    
  14  Prefactor     .33823E-06    2.5935        .96718E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          43.801        44.116        .15115E-03   -1.5576    
  16  Prefactor      .0000        .33985        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor      .0000        .34066        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     4.7064        3.5219        .46258E-03   -1.5665    
  19  Prefactor     .59047        3.0351        .72245E-03   -1.5693    
  20  Prefactor     .27711E-06    4.4695        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          7.0847        2.1904        .37655E-03   -1.5655    
  22  norm           .0000        .38311        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .32507E-06    30.272        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm           .0000        .29177        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .27645E-06    4.4925        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .26835        1.0649        .27785E-02   -1.5698    
  27  Prefactor     .90526        5.9684        .45649E-03   -1.5689    
  28  norm          4.1900        6.6453        .49438E-03   -1.5667    
  29  Prefactor     47.583        49.344        .14355E-03   -1.5570    
  30  Prefactor     .32752E-08    16.215        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .23809E-06    70.483        .95348E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    1.0024        .18023        .46198E-01   -.92952    
  33  Prefactor     .98101        .16502        .46025E-01   -.93365    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.79265e-07
Minuit parameter uncertainties:
  1  0.000100523
  2  4.93476
  3  1.58039e-05
  4  0.0392025
  5  6.27096
  6  0.00338267
  7  5.58402e-05
  8  2.08336e-06
  9  0.000743456
  10  0.0808314
  11  0.00304636
  12  9.9671
  13  4.3621
  14  0.00187319
  15  44.1166
  16  8.77332e-07
  17  2.32385e-06
  18  3.52191
  19  2.67739
  20  0.00222586
  21  2.19036
  22  1.07027e-06
  23  0.006274
  24  3.67203e-07
  25  0.00222888
  26  1.0649
  27  4.64887
  28  6.64534
  29  49.3445
  30  0.000460315
  31  0.00819263
  32  0.180338
  33  0.165104
tfile=/lscratch/kocevski/38051127/ltcube_810604801_810864001_4FGL_J1637.7+4717_daily_bin2204.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/38051127/ft2_4FGL_J1637.7+4717_daily_bin2204.fits
.....................!
real 8.41
user 7.87
sys 0.22

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/38051127/ft1_filtered_4FGL_J1637.7+4717_daily_bin2204.fits evtable="EVENTS" scfile=/lscratch/kocevski/38051127/ft2_4FGL_J1637.7+4717_daily_bin2204.fits sctable="SC_DATA" expcube=/lscratch/kocevski/38051127/ltcube_810604801_810864001_4FGL_J1637.7+4717_daily_bin2204.fits outfile=/lscratch/kocevski/38051127/expmap_810604801_810864001_4FGL_J1637.7+4717_daily_bin2204.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/38051127/ltcube_810604801_810864001_4FGL_J1637.7+4717_daily_bin2204.fits
.....................!
real 69.13
user 64.40
sys 3.93

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

Setting source of interest to:
4FGL J1637.7+4717 @ 249.434 47.2913

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/38051127/ft1_filtered_4FGL_J1637.7+4717_daily_bin2204.fits scfile=/lscratch/kocevski/38051127/ft2_4FGL_J1637.7+4717_daily_bin2204.fits outfile=/lscratch/kocevski/38051127/cmap_810604801_810864001_4FGL_J1637.7+4717_daily_bin2204.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=249.434 yref=47.2913 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.62
user 0.22
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/38051127/ft1_filtered_4FGL_J1637.7+4717_daily_bin2204.fits scfile=/lscratch/kocevski/38051127/ft2_4FGL_J1637.7+4717_daily_bin2204.fits outfile=/lscratch/kocevski/38051127/cmap_HighResolution_810604801_810864001_4FGL_J1637.7+4717_daily_bin2204.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=249.434 yref=47.2913 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.58
user 0.23
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/38051127/ft1_filtered_4FGL_J1637.7+4717_daily_bin2204.fits evtable="EVENTS" scfile=/lscratch/kocevski/38051127/ft2_4FGL_J1637.7+4717_daily_bin2204.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/38051127/Model_4FGL_J1637.7+4717_daily_bin2204.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 GALDone.

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

Extracting fit parameters...

4FGL J1637.7+4717
   Spectrum: PowerLaw
335    Prefactor:  5.501e+00  4.362e+00  0.000e+00  1.000e+06 ( 1.000e-12)
336        Index:  2.428e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
337        Scale:  7.167e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
691    Prefactor:  9.810e-01  1.651e-01  0.000e+00  1.000e+01 ( 1.000e+00)
692        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
693        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
690   Normalization:  1.002e+00  1.803e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.30
Ra Dec: 249.434 47.291
Photon Index (Fixed Index): 2.43 +/- 0.00
Photon Flux (Fixed Index): 4.60e-08 +/- 3.64e-08
Energy Flux (Fixed Index): 1.45e-05 +/- 1.15e-05

TS (Fixed Index): 3.30
Ra Dec: 249.434 47.291
Photon Flux Upper Limit: 1.24730354845e-07 ph cm-2 s-1
Energy Flux Upper Limit: 0.00965614196693 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/38050484/likelihoodResults_810604801_810864001_4FGL_J1637.7+4717_daily_bin2204.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6510.8778751
delta logL = 0.00265889608272

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6510.87696213
delta logL = 0.0035718656236

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6510.877     FROM MIGRAD    STATUS=CONVERGED     79 CALLS      229 TOTAL
                     EDM=   .86E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.6667        4.8691        .14420E-04    .82782E-02
   2  Index         2.3587        .82392        .86708E-02    .13762E-03
   3  Normalizat    1.0063        .21127        .24488E-03   -.29238E-03
   4  Prefactor     .97850        .19453        .23201E-03   -.36663E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.66673
  Index      = 2.35867
  Normalizat = 1.0063
  Prefactor  = 0.978495
 **********
 **   18 **HESSE 
 **********

 FCN=   6510.877     FROM HESSE     STATUS=OK            23 CALLS      252 TOTAL
                     EDM=   .83E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.6667        4.7691        .57680E-06   -1.5660    
   2  Index         2.3587        .80583        .34683E-03   -.55656    
   3  Normalizat    1.0063        .21121        .48977E-04   -.92820    
   4  Prefactor     .97850        .19455        .46403E-04   -.93450    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.30212e-10
Minuit parameter uncertainties:
  1  4.76906
  2  0.810752
  3  0.211383
  4  0.194691
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6510.87696209
delta logL = 0.00357189913029

Extracting fit parameters...

4FGL J1637.7+4717
   Spectrum: PowerLaw
335    Prefactor:  5.667e+00  4.769e+00  0.000e+00  1.000e+06 ( 1.000e-12)
336        Index:  2.359e+00  8.108e-01  0.000e+00  1.000e+01 (-1.000e+00)
337        Scale:  7.167e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
691    Prefactor:  9.785e-01  1.947e-01  0.000e+00  1.000e+01 ( 1.000e+00)
692        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
693        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
690   Normalization:  1.006e+00  2.114e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.30
Ra Dec: 249.434 47.291
Photon Index (Free Index): 2.36 +/- 0.81
Photon Flux (Free Index): 4.34e-08 +/- 4.58e-08
Energy Flux (Free Index): 1.51e-05 +/- 1.37e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /lscratch/kocevski/38050484/cmap_HighResolution_810604801_810864001_4FGL_J1637.7+4717_daily_bin2204.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.66e-03', comment='SUCCESS', photon_flux='4.60e-08', energy_flux2='1.51e-05', photon_flux_error='3.64e-08', dlogl='3.57e-03', energy_flux='1.45e-05', photon_flux2='4.34e-08', job_status='DONE', time_completed='2026-09-12 13:01:07.180752', photon_index_error2='0.81', photon_index2='2.36', ts='3.30', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', photon_flux_upper_limit='1.25e-07', energy_flux_error2='1.37e-05', EG='1.00', time_epoch_completed='1789243267.18', return_code='0', job_id='38050484', GAL2='0.98', EG2='1.01', return_code2='0', energy_flux_error='1.15e-05', photon_flux_error2='4.58e-08', ts2='3.30', photon_index='2.43' WHERE bin_id='2204' AND source_name='4FGL J1637.7+4717' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 12 13:01:07 PDT 2026

Done.

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

Extracting fit parameters...

4FGL J1637.7+4717
   Spectrum: PowerLaw
335    Prefactor:  5.501e+00  4.362e+00  0.000e+00  1.000e+06 ( 1.000e-12)
336        Index:  2.428e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
337        Scale:  7.167e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
691    Prefactor:  9.810e-01  1.651e-01  0.000e+00  1.000e+01 ( 1.000e+00)
692        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
693        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
690   Normalization:  1.002e+00  1.803e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.30
Ra Dec: 249.434 47.291
Photon Index (Fixed Index): 2.43 +/- 0.00
Photon Flux (Fixed Index): 4.60e-08 +/- 3.64e-08
Energy Flux (Fixed Index): 1.45e-05 +/- 1.15e-05

TS (Fixed Index): 3.30
Ra Dec: 249.434 47.291
Photon Flux Upper Limit: 1.24730354845e-07 ph cm-2 s-1
Energy Flux Upper Limit: 0.00965614196693 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/38050441/likelihoodResults_810604801_810864001_4FGL_J1637.7+4717_daily_bin2204.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6510.8778751
delta logL = 0.00265889608272

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6510.87696213
delta logL = 0.0035718656236

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6510.877     FROM MIGRAD    STATUS=CONVERGED     79 CALLS      229 TOTAL
                     EDM=   .86E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.6667        4.8691        .14420E-04    .82782E-02
   2  Index         2.3587        .82392        .86708E-02    .13762E-03
   3  Normalizat    1.0063        .21127        .24488E-03   -.29238E-03
   4  Prefactor     .97850        .19453        .23201E-03   -.36663E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.66673
  Index      = 2.35867
  Normalizat = 1.0063
  Prefactor  = 0.978495
 **********
 **   18 **HESSE 
 **********

 FCN=   6510.877     FROM HESSE     STATUS=OK            23 CALLS      252 TOTAL
                     EDM=   .83E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.6667        4.7691        .57680E-06   -1.5660    
   2  Index         2.3587        .80583        .34683E-03   -.55656    
   3  Normalizat    1.0063        .21121        .48977E-04   -.92820    
   4  Prefactor     .97850        .19455        .46403E-04   -.93450    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.30212e-10
Minuit parameter uncertainties:
  1  4.76906
  2  0.810752
  3  0.211383
  4  0.194691
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6510.87696209
delta logL = 0.00357189913029

Extracting fit parameters...

4FGL J1637.7+4717
   Spectrum: PowerLaw
335    Prefactor:  5.667e+00  4.769e+00  0.000e+00  1.000e+06 ( 1.000e-12)
336        Index:  2.359e+00  8.108e-01  0.000e+00  1.000e+01 (-1.000e+00)
337        Scale:  7.167e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
691    Prefactor:  9.785e-01  1.947e-01  0.000e+00  1.000e+01 ( 1.000e+00)
692        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
693        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
690   Normalization:  1.006e+00  2.114e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.30
Ra Dec: 249.434 47.291
Photon Index (Free Index): 2.36 +/- 0.81
Photon Flux (Free Index): 4.34e-08 +/- 4.58e-08
Energy Flux (Free Index): 1.51e-05 +/- 1.37e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /lscratch/kocevski/38050441/cmap_HighResolution_810604801_810864001_4FGL_J1637.7+4717_daily_bin2204.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.66e-03', comment='SUCCESS', photon_flux='4.60e-08', energy_flux2='1.51e-05', photon_flux_error='3.64e-08', dlogl='3.57e-03', energy_flux='1.45e-05', photon_flux2='4.34e-08', job_status='DONE', time_completed='2026-09-12 13:01:27.924514', photon_index_error2='0.81', photon_index2='2.36', ts='3.30', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', photon_flux_upper_limit='1.25e-07', energy_flux_error2='1.37e-05', EG='1.00', time_epoch_completed='1789243287.92', return_code='0', job_id='38050441', GAL2='0.98', EG2='1.01', return_code2='0', energy_flux_error='1.15e-05', photon_flux_error2='4.58e-08', ts2='3.30', photon_index='2.43' WHERE bin_id='2204' AND source_name='4FGL J1637.7+4717' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 12 13:01:28 PDT 2026

_V02
Working on...
/lscratch/kocevski/38051127/ft1_filtered_4FGL_J1637.7+4717_daily_bin2204.fits.....................!
real 21.56
user 20.38
sys 0.67

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/38051127/ft1_filtered_4FGL_J1637.7+4717_daily_bin2204.fits', '/lscratch/kocevski/38051127/ft2_4FGL_J1637.7+4717_daily_bin2204.fits', expMap='/lscratch/kocevski/38051127/expmap_810604801_810864001_4FGL_J1637.7+4717_daily_bin2204.fits', expCube='/lscratch/kocevski/38051127/ltcube_810604801_810864001_4FGL_J1637.7+4717_daily_bin2204.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/38051127/Model_4FGL_J1637.7+4717_daily_bin2204.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1637.7+4717'

4FGL J1637.7+4717
   Spectrum: PowerLaw
335    Prefactor:  3.736e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
336        Index:  2.428e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
337        Scale:  7.167e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/38051127/ft1_filtered_4FGL_J1637.7+4717_daily_bin2204.fits
Spacecraft file(s): /lscratch/kocevski/38051127/ft2_4FGL_J1637.7+4717_daily_bin2204.fits
Exposure map: /lscratch/kocevski/38051127/expmap_810604801_810864001_4FGL_J1637.7+4717_daily_bin2204.fits
Exposure cube: /lscratch/kocevski/38051127/ltcube_810604801_810864001_4FGL_J1637.7+4717_daily_bin2204.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/38051127/Model_4FGL_J1637.7+4717_daily_bin2204.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) = 6510.90535005

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .65891E-02   1.0000          .0000       .10000E+07
     2 'Prefactor '    3.3347       1.0000          .0000       .10000E+07
     3 'norm      '    .30492E-03   1.0000          .0000       .10000E+07
     4 'Prefactor '    .45121       1.0000          .0000       .10000E+07
     5 'Prefactor '    1.1237       1.0000          .0000       .10000E+07
     6 'Prefactor '    .14741E-04   1.0000          .0000       .10000E+07
     7 'Prefactor '    .23708E-03   1.0000          .0000       .10000E+07
     8 'Prefactor '    .19217E-05   1.0000          .0000       .10000E+07
     9 'norm      '    .61841E-03   1.0000          .0000       .10000E+07
    10 'norm      '    .87655E-01   1.0000          .0000       .10000E+07
    11 'norm      '    .59694E-01   1.0000          .0000       .10000E+07
    12 'Prefactor '    6.0434       1.0000          .0000       .10000E+07
    13 'Prefactor '    5.4436       1.0000          .0000       .10000E+07
    14 'Prefactor '    .20332E-01   1.0000          .0000       .10000E+07
    15 'norm      '    43.779       1.0000          .0000       .10000E+07
    16 'Prefactor '    .83267E-09   1.0000          .0000       .10000E+07
    17 'Prefactor '    .16270E-06   1.0000          .0000       .10000E+07
    18 'Prefactor '    4.7269       1.0000          .0000       .10000E+07
    19 'Prefactor '    .56692       1.0000          .0000       .10000E+07
    20 'Prefactor '    .66236E-03   1.0000          .0000       .10000E+07
    21 'norm      '    7.0881       1.0000          .0000       .10000E+07
    22 'norm      '    .11369E-06   1.0000          .0000       .10000E+07
    23 'Prefactor '    .17051E-05   1.0000          .0000       .10000E+07
    24 'norm      '    .97700E-08   1.0000          .0000       .10000E+07
    25 'norm      '    .64354E-03   1.0000          .0000       .10000E+07
    26 'norm      '    .26308       1.0000          .0000       .10000E+07
    27 'Prefactor '    .90160       1.0000          .0000       .10000E+07
    28 'norm      '    4.1526       1.0000          .0000       .10000E+07
    29 'Prefactor '    48.534       1.0000          .0000       .10000E+07
    30 'Prefactor '    .95578E-03   1.0000          .0000       .10000E+07
    31 'Prefactor '    .35140       1.0000          .0000       .10000E+07
    32 'Normalizat'    1.0025       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .98067       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6940E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6510.881     FROM MIGRAD    STATUS=CONVERGED    231 CALLS     3396 TOTAL
                     EDM=   .79E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .27756E-09    9.4974       -.36622E-07** at limit **
   2  Prefactor     3.3295        4.9299       -.20488E-07   -.42249E-04
   3  norm           .0000        2.9065       -.23242E-07** at limit **
   4  Prefactor     .41742E-05    16.158        .83909E-07** at limit **
   5  Prefactor     1.0928        8.9677       -.63060E-07    .24850E-03
   6  Prefactor     .44797E-07    63.546       -.73035E-06** at limit **
   7  Prefactor     .11102E-09    6.5908       -.10784E-06** at limit **
   8  Prefactor      .0000        .93295        .54794E-07** at limit **
   9  norm          .68279E-08    19.052        .92690E-07** at limit **
  10  norm          .87584E-01    .78927E-01    .45777E-08** at limit **
  11  norm          .15382E-06    2.4212        .34352E-09** at limit **
  12  Prefactor     6.0456        9.9222       -.34743E-07    .33251E-02
  13  Prefactor     5.5009        4.3490        .31415E-07    .17834E-02
  14  Prefactor     .33823E-06    3.9271       -.19553E-07** at limit **
  15  norm          43.801        1.3074       -.19816E-08    .22094E-02
  16  Prefactor      .0000        .34335        .22109E-07** at limit **
  17  Prefactor      .0000        .34157        .50327E-07** at limit **
  18  Prefactor     4.7064        3.5132       -.43582E-08    .11551E-02
  19  Prefactor     .59047        2.8129        .19540E-07    .88240E-03
  20  Prefactor     .27711E-06    2.5386       -.99114E-07** at limit **
  21  norm          7.0847        2.1875       -.24878E-08    .12407E-02
  22  norm           .0000        .38585       -.17999E-07** at limit **
  23  Prefactor     .32507E-06    28.804        .47427E-07** at limit **
  24  norm           .0000        .29426        .91918E-08** at limit **
  25  norm          .27645E-06    2.5942       -.72274E-07** at limit **
  26  norm          .26835        1.8134        .69738E-08    .32071E-03
  27  Prefactor     .90526        5.7105        .49449E-07    .80802E-02
  28  norm          4.1900        6.4769       -.50674E-07   -.22244E-02
  29  Prefactor     47.583        47.982       -.29036E-06    .11676E-01
  30  Prefactor     .32752E-08    15.864       -.12296E-06** at limit **
  31  Prefactor     .23809E-06    65.379        .13055E-06** at limit **
  32  Normalizat    1.0024        .21251        .25540E-05    .22834E-03
  33  Prefactor     .98101        .19743        .25917E-06    .21467E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.77556e-10
  Prefactor  = 3.32948
  norm       = 0
  Prefactor  = 4.17422e-06
  Prefactor  = 1.09281
  Prefactor  = 4.47975e-08
  Prefactor  = 1.11022e-10
  Prefactor  = 0
  norm       = 6.82787e-09
  norm       = 0.0875837
  norm       = 1.53821e-07
  Prefactor  = 6.04563
  Prefactor  = 5.5009
  Prefactor  = 3.38229e-07
  norm       = 43.8008
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 4.70636
  Prefactor  = 0.590467
  Prefactor  = 2.77112e-07
  norm       = 7.08473
  norm       = 0
  Prefactor  = 3.25073e-07
  norm       = 0
  norm       = 2.76446e-07
  norm       = 0.268348
  Prefactor  = 0.905265
  norm       = 4.19004
  Prefactor  = 47.5834
  Prefactor  = 3.27516e-09
  Prefactor  = 2.38087e-07
  Normalizat = 1.00235
  Prefactor  = 0.981013
 **********
 **   18 **HESSE 
 **********

 FCN=   6510.881     FROM HESSE     STATUS=OK           775 CALLS     4171 TOTAL
                     EDM=   .28E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .27756E-09    9.5090        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     3.3295        4.9348        .55402E-03   -1.5671    
   3  norm           .0000        2.9107        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .41742E-05    92.040        .83778E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.0928        8.9963        .11055E-02   -1.5687    
   6  Prefactor     .44797E-07    63.860        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .11102E-09    6.5712        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor      .0000        .94178        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .68279E-08    20.276        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .87584E-01    .80831E-01    .46762E-03   -1.5702    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .15382E-06    15.081        .10936E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     6.0456        9.9671        .40819E-03   -1.5659    
  13  Prefactor     5.5009        4.3621        .43044E-03   -1.5661    
  14  Prefactor     .33823E-06    2.5935        .96718E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          43.801        44.116        .15115E-03   -1.5576    
  16  Prefactor      .0000        .33985        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor      .0000        .34066        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     4.7064        3.5219        .46258E-03   -1.5665    
  19  Prefactor     .59047        3.0351        .72245E-03   -1.5693    
  20  Prefactor     .27711E-06    4.4695        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          7.0847        2.1904        .37655E-03   -1.5655    
  22  norm           .0000        .38311        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .32507E-06    30.272        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm           .0000        .29177        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .27645E-06    4.4925        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .26835        1.0649        .27785E-02   -1.5698    
  27  Prefactor     .90526        5.9684        .45649E-03   -1.5689    
  28  norm          4.1900        6.6453        .49438E-03   -1.5667    
  29  Prefactor     47.583        49.344        .14355E-03   -1.5570    
  30  Prefactor     .32752E-08    16.215        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .23809E-06    70.483        .95348E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    1.0024        .18023        .46198E-01   -.92952    
  33  Prefactor     .98101        .16502        .46025E-01   -.93365    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.79265e-07
Minuit parameter uncertainties:
  1  0.000100523
  2  4.93476
  3  1.58039e-05
  4  0.0392025
  5  6.27096
  6  0.00338267
  7  5.58402e-05
  8  2.08336e-06
  9  0.000743456
  10  0.0808314
  11  0.00304636
  12  9.9671
  13  4.3621
  14  0.00187319
  15  44.1166
  16  8.77332e-07
  17  2.32385e-06
  18  3.52191
  19  2.67739
  20  0.00222586
  21  2.19036
  22  1.07027e-06
  23  0.006274
  24  3.67203e-07
  25  0.00222888
  26  1.0649
  27  4.64887
  28  6.64534
  29  49.3445
  30  0.000460315
  31  0.00819263
  32  0.180338
  33  0.165104
Done.

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

Extracting fit parameters...

4FGL J1637.7+4717
   Spectrum: PowerLaw
335    Prefactor:  5.501e+00  4.362e+00  0.000e+00  1.000e+06 ( 1.000e-12)
336        Index:  2.428e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
337        Scale:  7.167e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
691    Prefactor:  9.810e-01  1.651e-01  0.000e+00  1.000e+01 ( 1.000e+00)
692        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
693        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
690   Normalization:  1.002e+00  1.803e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.30
Ra Dec: 249.434 47.291
Photon Index (Fixed Index): 2.43 +/- 0.00
Photon Flux (Fixed Index): 4.60e-08 +/- 3.64e-08
Energy Flux (Fixed Index): 1.45e-05 +/- 1.15e-05

TS (Fixed Index): 3.30
Ra Dec: 249.434 47.291
Photon Flux Upper Limit: 1.24730354845e-07 ph cm-2 s-1
Energy Flux Upper Limit: 0.00965614196693 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/38051127/likelihoodResults_810604801_810864001_4FGL_J1637.7+4717_daily_bin2204.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6510.8778751
delta logL = 0.00265889608272

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6510.87696213
delta logL = 0.0035718656236

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6510.877     FROM MIGRAD    STATUS=CONVERGED     79 CALLS      229 TOTAL
                     EDM=   .86E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.6667        4.8691        .14420E-04    .82782E-02
   2  Index         2.3587        .82392        .86708E-02    .13762E-03
   3  Normalizat    1.0063        .21127        .24488E-03   -.29238E-03
   4  Prefactor     .97850        .19453        .23201E-03   -.36663E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.66673
  Index      = 2.35867
  Normalizat = 1.0063
  Prefactor  = 0.978495
 **********
 **   18 **HESSE 
 **********

 FCN=   6510.877     FROM HESSE     STATUS=OK            23 CALLS      252 TOTAL
                     EDM=   .83E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.6667        4.7691        .57680E-06   -1.5660    
   2  Index         2.3587        .80583        .34683E-03   -.55656    
   3  Normalizat    1.0063        .21121        .48977E-04   -.92820    
   4  Prefactor     .97850        .19455        .46403E-04   -.93450    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.30212e-10
Minuit parameter uncertainties:
  1  4.76906
  2  0.810752
  3  0.211383
  4  0.194691
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6510.87696209
delta logL = 0.00357189913029

Extracting fit parameters...

4FGL J1637.7+4717
   Spectrum: PowerLaw
335    Prefactor:  5.667e+00  4.769e+00  0.000e+00  1.000e+06 ( 1.000e-12)
336        Index:  2.359e+00  8.108e-01  0.000e+00  1.000e+01 (-1.000e+00)
337        Scale:  7.167e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
691    Prefactor:  9.785e-01  1.947e-01  0.000e+00  1.000e+01 ( 1.000e+00)
692        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
693        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
690   Normalization:  1.006e+00  2.114e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.30
Ra Dec: 249.434 47.291
Photon Index (Free Index): 2.36 +/- 0.81
Photon Flux (Free Index): 4.34e-08 +/- 4.58e-08
Energy Flux (Free Index): 1.51e-05 +/- 1.37e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /lscratch/kocevski/38051127/cmap_HighResolution_810604801_810864001_4FGL_J1637.7+4717_daily_bin2204.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.66e-03', comment='SUCCESS', photon_flux='4.60e-08', energy_flux2='1.51e-05', photon_flux_error='3.64e-08', dlogl='3.57e-03', energy_flux='1.45e-05', photon_flux2='4.34e-08', job_status='DONE', time_completed='2026-09-12 13:04:57.810961', photon_index_error2='0.81', photon_index2='2.36', ts='3.30', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', photon_flux_upper_limit='1.25e-07', energy_flux_error2='1.37e-05', EG='1.00', time_epoch_completed='1789243497.81', return_code='0', job_id='38051127', GAL2='0.98', EG2='1.01', return_code2='0', energy_flux_error='1.15e-05', photon_flux_error2='4.58e-08', ts2='3.30', photon_index='2.43' WHERE bin_id='2204' AND source_name='4FGL J1637.7+4717' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 12 13:04:57 PDT 2026

