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

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


Performing analysis on: 4FGL_J1508.4+7717_daily_bin2210
RA = 227.102, Dec = 77.2929
tmin = 812160001, tmax = 812419201
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='39549655', job_status='RUN', time_executed='2026-09-30 14:39:51.712569', time_epoch_executed='1790804391.71' WHERE source_name='4FGL J1508.4+7717' and cadence='daily' and bin_id='2210'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/39549655

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/39549655/ft1_4FGL_J1508.4+7717_daily_bin2210.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/39549655/ft2_4FGL_J1508.4+7717_daily_bin2210.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/39549655/ft1_4FGL_J1508.4+7717_daily_bin2210.fits outfile=/lscratch/kocevski/39549655/ft1_filteredMKT_4FGL_J1508.4+7717_daily_bin2210.fits ra=227.102 dec=77.2929 rad=12.0 tmin=812160001.0 tmax=812419201.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.94
user 2.21
sys 0.21

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/39549655/ft2_4FGL_J1508.4+7717_daily_bin2210.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/39549655/ft2_4FGL_J1508.4+7717_daily_bin2210.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/39549655/ft1_filteredMKT_4FGL_J1508.4+7717_daily_bin2210.fits evtable="EVENTS" outfile="/lscratch/kocevski/39549655/ft1_filtered_4FGL_J1508.4+7717_daily_bin2210.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.72
user 0.23
sys 0.13

Number of photons that the gtmktime cut: 880

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/39549655/ft1_filtered_4FGL_J1508.4+7717_daily_bin2210.fits" evtable="EVENTS" scfile=/lscratch/kocevski/39549655/ft2_4FGL_J1508.4+7717_daily_bin2210.fits sctable="SC_DATA" ou/sdf/group/fermi/u/kocevski/software/conda/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

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

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


Performing analysis on: 4FGL_J1508.4+7717_daily_bin2210
RA = 227.102, Dec = 77.2929
tmin = 812160001, tmax = 812419201
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='39549877', job_status='RUN', time_executed='2026-09-30 14:41:27.175851', time_epoch_executed='1790804487.18' WHERE source_name='4FGL J1508.4+7717' and cadence='daily' and bin_id='2210'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/39549877

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/39549877/ft1_4FGL_J1508.4+7717_daily_bin2210.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/39549877/ft2_4FGL_J1508.4+7717_daily_bin2210.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/39549877/ft1_4FGL_J1508.4+7717_daily_bin2210.fits outfile=/lscratch/kocevski/39549877/ft1_filteredMKT_4FGL_J1508.4+7717_daily_bin2210.fits ra=227.102 dec=77.2929 rad=12.0 tmin=812160001.0 tmax=812419201.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.92
user 2.26
sys 0.17

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/39549877/ft2_4FGL_J1508.4+7717_daily_bin2210.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/39549877/ft2_4FGL_J1508.4+7717_daily_bin2210.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/39549877/ft1_filteredMKT_4FGL_J1508.4+7717_daily_bin2210.fits evtable="EVENTS" outfile="/lscratch/kocevski/39549877/ft1_filtered_4FGL_J1508.4+7717_daily_bin2210.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.83
user 0.22
sys 0.15

Number of photons that the gtmktime cut: 880

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/39549877/ft1_filtered_4FGL_J1508.4+7717_daily_bin2210.fits" evtable="EVENTS" scfile=/lscratch/kocevski/39549877/ft2_4FGL_J1508.4+7717_daily_bin2210.fits sctable="SC_DATA" ou_V02
Working on...
/lscratch/kocevski/39549482/ft1_filtered_4FGL_J1508.4+7717_daily_bin2210.fits....................!
real 47.42
user 45.48
sys 1.29

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/39549482/ft1_filtered_4FGL_J1508.4+7717_daily_bin2210.fits', '/lscratch/kocevski/39549482/ft2_4FGL_J1508.4+7717_daily_bin2210.fits', expMap='/lscratch/kocevski/39549482/expmap_812160001_812419201_4FGL_J1508.4+7717_daily_bin2210.fits', expCube='/lscratch/kocevski/39549482/ltcube_812160001_812419201_4FGL_J1508.4+7717_daily_bin2210.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/39549482/Model_4FGL_J1508.4+7717_daily_bin2210.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1508.4+7717'

4FGL J1508.4+7717
   Spectrum: PowerLaw
355    Prefactor:  4.602e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-14)
356        Index:  2.179e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
357        Scale:  1.992e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/39549482/ft1_filtered_4FGL_J1508.4+7717_daily_bin2210.fits
Spacecraft file(s): /lscratch/kocevski/39549482/ft2_4FGL_J1508.4+7717_daily_bin2210.fits
Exposure map: /lscratch/kocevski/39549482/expmap_812160001_812419201_4FGL_J1508.4+7717_daily_bin2210.fits
Exposure cube: /lscratch/kocevski/39549482/ltcube_812160001_812419201_4FGL_J1508.4+7717_daily_bin2210.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/39549482/Model_4FGL_J1508.4+7717_daily_bin2210.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) = 9358.46482734

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .27450E-04   1.0000          .0000       .10000E+07
     2 'Prefactor '    7.5351       1.0000          .0000       .10000E+07
     3 'Prefactor '    34.364       1.0000          .0000       .10000E+07
     4 'norm      '    2.8378       1.0000          .0000       .10000E+07
     5 'Prefactor '    7.1925       1.0000          .0000       .10000E+07
     6 'Prefactor '    .79531E-04   1.0000          .0000       .10000E+07
     7 'Prefactor '    .19992E-01   1.0000          .0000       .10000E+07
     8 'Prefactor '    .35913E-04   1.0000          .0000       .10000E+07
     9 'Prefactor '    12.950       1.0000          .0000       .10000E+07
    10 'Prefactor '    .54165E-02   1.0000          .0000       .10000E+07
    11 'Prefactor '    .15789E-02   1.0000          .0000       .10000E+07
    12 'Prefactor '    51.421       1.0000          .0000       .10000E+07
    13 'Prefactor '    5.2112       1.0000          .0000       .10000E+07
    14 'Prefactor '    27.006       1.0000          .0000       .10000E+07
    15 'norm      '    19.675       1.0000          .0000       .10000E+07
    16 'Prefactor '    .15529       1.0000          .0000       .10000E+07
    17 'Prefactor '    5.3064       1.0000          .0000       .10000E+07
    18 'norm      '    1.2744       1.0000          .0000       .10000E+07
    19 'Prefactor '    3.3744       1.0000          .0000       .10000E+07
    20 'Prefactor '    .57678E-02   1.0000          .0000       .10000E+07
    21 'Prefactor '    .54568E-02   1.0000          .0000       .10000E+07
    22 'norm      '    5.5336       1.0000          .0000       .10000E+07
    23 'Normalizat'    .58096       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.1600       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6850E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9358.422     FROM MIGRAD    STATUS=CONVERGED    132 CALLS     1525 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .23981E-07    15.747        .15579E-06** at limit **
   2  Prefactor     7.5005        8.7668       -.11223E-05   -.13722E-03
   3  Prefactor     33.325        6.5277        .12519E-05   -.10200    
   4  norm          2.8406        2.5573        .40445E-06   -.74436E-02
   5  Prefactor     7.1497        4.6083       -.24466E-05    .10177E-01
   6  Prefactor      .0000        3.1706        .50962E-06** at limit **
   7  Prefactor     .38858E-09    9.6763       -.11197E-05** at limit **
   8  Prefactor      .0000        5.0975        .12030E-05** at limit **
   9  Prefactor     12.617        13.000       -.50915E-05    .42713E-01
  10  Prefactor     .92149E-08    17.632       -.59051E-05** at limit **
  11  Prefactor     .55511E-10    4.5768        .45230E-06** at limit **
  12  Prefactor     51.132        3.2561       -.24030E-06    .26509E-01
  13  Prefactor     5.2473        1.0205        .27061E-07   -.17885E-02
  14  Prefactor     27.790        5.0826       -.42728E-07   -.46491E-01
  15  norm          19.623        7.7319       -.28095E-05   -.13209    
  16  Prefactor     .77716E-09    34.815       -.14934E-05** at limit **
  17  Prefactor     5.3274        1.1019        .30145E-06   -.26869E-03
  18  norm          1.2736        .76500       -.28549E-06    .85209E-02
  19  Prefactor     3.3732        2.9627        .82886E-06    .99431E-02
  20  Prefactor     .12101E-07    32.774        .84248E-05** at limit **
  21  Prefactor     .46374E-06    62.509       -.11872E-06** at limit **
  22  norm          5.5318        .97485       -.67641E-07    .21740E-01
  23  Normalizat    .58187        .16173        .30128E-04    .39616E-03
  24  Prefactor     1.1599        .12366       -.89412E-05    .39129E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.39808e-08
  Prefactor  = 7.50053
  Prefactor  = 33.3246
  norm       = 2.8406
  Prefactor  = 7.14975
  Prefactor  = 0
  Prefactor  = 3.88578e-10
  Prefactor  = 0
  Prefactor  = 12.6175
  Prefactor  = 9.21485e-09
  Prefactor  = 5.55112e-11
  Prefactor  = 51.1317
  Prefactor  = 5.24732
  Prefactor  = 27.7902
  norm       = 19.6225
  Prefactor  = 7.77156e-10
  Prefactor  = 5.32736
  norm       = 1.27355
  Prefactor  = 3.37322
  Prefactor  = 1.21014e-08
  Prefactor  = 4.6374e-07
  norm       = 5.53185
  Normalizat = 0.581874
  Prefactor  = 1.15989
tfile=/lscratch/kocevski/39549655/ltcube_812160001_812419201_4FGL_J1508.4+7717_daily_bin2210.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/39549655/ft2_4FGL_J1508.4+7717_daily_bin2210.fits
.....................!
real 9.08
user 8.38
sys 0.23

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/39549655/ft1_filtered_4FGL_J1508.4+7717_daily_bin2210.fits evtable="EVENTS" scfile=/lscratch/kocevski/39549655/ft2_4FGL_J1508.4+7717_daily_bin2210.fits sctable="SC_DATA" expcube=/lscratch/kocevski/39549655/ltcube_812160001_812419201_4FGL_J1508.4+7717_daily_bin2210.fits outfile=/lscratch/kocevski/39549655/expmap_812160001_812419201_4FGL_J1508.4+7717_daily_bin2210.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/39549655/ltcube_812160001_812419201_4FGL_J1508.4+7717_daily_bin2210.fits
.....................!
real 72.97
user 67.55
sys 4.31

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 J1508.4+7717 @ 227.102 77.2929

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/39549655/ft1_filtered_4FGL_J1508.4+7717_daily_bin2210.fits scfile=/lscratch/kocevski/39549655/ft2_4FGL_J1508.4+7717_daily_bin2210.fits outfile=/lscratch/kocevski/39549655/cmap_812160001_812419201_4FGL_J1508.4+7717_daily_bin2210.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=227.102 yref=77.2929 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.73
user 0.25
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/39549655/ft1_filtered_4FGL_J1508.4+7717_daily_bin2210.fits scfile=/lscratch/kocevski/39549655/ft2_4FGL_J1508.4+7717_daily_bin2210.fits outfile=/lscratch/kocevski/39549655/cmap_HighResolution_812160001_812419201_4FGL_J1508.4+7717_daily_bin2210.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=227.102 yref=77.2929 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.85
user 0.26
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/39549655/ft1_filtered_4FGL_J1508.4+7717_daily_bin2210.fits evtable="EVENTS" scfile=/lscratch/kocevski/39549655/ft2_4FGL_J1508.4+7717_daily_bin2210.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/39549655/Model_4FGL_J1508.4+7717_daily_bin2210.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 **********
 **   18 **HESSE 
 **********

 FCN=   9358.422     FROM HESSE     STATUS=OK           447 CALLS     1972 TOTAL
                     EDM=   .63E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .23981E-07    16.033        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     7.5005        8.8385        .36511E-03   -1.5653    
   3  Prefactor     33.325        31.946        .17061E-03   -1.5593    
   4  norm          2.8406        2.5729        .60338E-03   -1.5674    
   5  Prefactor     7.1497        18.134        .37378E-03   -1.5654    
   6  Prefactor      .0000        3.1743        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .38858E-09    9.6772        .17037E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor      .0000        5.0978        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     12.617        16.540        .27810E-03   -1.5637    
  10  Prefactor     .92149E-08    17.963        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .55511E-10    4.5847        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     51.132        38.719        .13946E-03   -1.5565    
  13  Prefactor     5.2473        60.363        .44011E-03   -1.5662    
  14  Prefactor     27.790        26.743        .19247E-03   -1.5603    
  15  norm          19.623        13.472        .22552E-03   -1.5619    
  16  Prefactor     .77716E-09    34.808        .12633E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     5.3274        23.619        .43607E-03   -1.5662    
  18  norm          1.2736        .78510        .98426E-03   -1.5685    
  19  Prefactor     3.3732        3.0135        .55060E-03   -1.5671    
  20  Prefactor     .12101E-07    34.410        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .46374E-06    64.117        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          5.5318        .97534        .42687E-03   -1.5661    
  23  Normalizat    .58187        .14844        .74418E-01   -1.0876    
  24  Prefactor     1.1599        .11163        .35652E-01   -.87575    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.31487e-07
Minuit parameter uncertainties:
  1  0.00123991
  2  8.83855
  3  31.9465
  4  2.57293
  5  18.1343
  6  1.62004e-05
  7  0.000124802
  8  9.72094e-06
  9  16.54
  10  0.000814272
  11  3.42791e-05
  12  38.7188
  13  35.5952
  14  26.7433
  15  13.4721
  16  0.000323367
  17  22.4348
  18  0.785099
  19  3.01352
  20  0.0012905
  21  0.0109059
  22  0.975341
  23  0.148538
  24  0.111654
number of points = 7666
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.

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

Extracting fit parameters...

4FGL J1508.4+7717
   Spectrum: PowerLaw
355    Prefactor:  5.113e+01  3.872e+01  0.000e+00  1.000e+06 ( 1.000e-14)
356        Index:  2.179e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
357        Scale:  1.992e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
682    Prefactor:  1.160e+00  1.117e-01  0.000e+00  1.000e+01 ( 1.000e+00)
683        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
684        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
681   Normalization:  5.819e-01  1.485e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.25
Ra Dec: 227.102 77.293
Photon Index (Fixed Index): 2.18 +/- 0.00
Photon Flux (Fixed Index): 2.94e-08 +/- 2.22e-08
Energy Flux (Fixed Index): 1.37e-05 +/- 1.04e-05

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) = 9358.3896814
delta logL = 0.0324681296497

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9358.38547365
delta logL = 0.0366758814616

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    61.174       1.0000          .0000       .10000E+07
     2 'Index     '    2.0399       1.0000          .0000       10.000    
     3 'Normalizat'    .58594       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1580       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6850E+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=   9358.385     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      303 TOTAL
                     EDM=   .55E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     61.219        61.038        .25573E-04    .69263E-03
   2  Index         2.0397        .52999        .77123E-02    .58255E-03
   3  Normalizat    .58598        .15755        .32838E-03   -.80250E-04
   4  Prefactor     1.1580        .12303        .18718E-03   -.64064E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 61.2191
  Index      = 2.03967
  Normalizat = 0.58598
  Prefactor  = 1.15802
Done.


Performing analysis on: 4FGL_J1508.4+7717_daily_bin2210
RA = 227.102, Dec = 77.2929
tmin = 812160001, tmax = 812419201
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='39549923', job_status='RUN', time_executed='2026-09-30 14:42:27.548688', time_epoch_executed='1790804547.55' WHERE source_name='4FGL J1508.4+7717' and cadence='daily' and bin_id='2210'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/39549923

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/39549923/ft1_4FGL_J1508.4+7717_daily_bin2210.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/39549923/ft2_4FGL_J1508.4+7717_daily_bin2210.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/39549923/ft1_4FGL_J1508.4+7717_daily_bin2210.fits outfile=/lscratch/kocevski/39549923/ft1_filteredMKT_4FGL_J1508.4+7717_daily_bin2210.fits ra=227.102 dec=77.2929 rad=12.0 tmin=812160001.0 tmax=812419201.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.69
user 2.09
sys 0.18

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/39549923/ft2_4FGL_J1508.4+7717_daily_bin2210.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/39549923/ft2_4FGL_J1508.4+7717_daily_bin2210.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/39549923/ft1_filteredMKT_4FGL_J1508.4+7717_daily_bin2210.fits evtable="EVENTS" outfile="/lscratch/kocevski/39549923/ft1_filtered_4FGL_J1508.4+7717_daily_bin2210.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.80
user 0.21
sys 0.13

Number of photons that the gtmktime cut: 880

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/39549923/ft1_filtered_4FGL_J1508.4+7717_daily_bin2210.fits" evtable="EVENTS" scfile=/lscratch/kocevski/39549923/ft2_4FGL_J1508.4+7717_daily_bin2210.fits sctable="SC_DATA" ou **********
 **   18 **HESSE 
 **********

 FCN=   9358.385     FROM HESSE     STATUS=OK            25 CALLS      328 TOTAL
                     EDM=   .79E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     61.219        58.398        .10229E-05   -1.5551    
   2  Index         2.0397        .50710        .15425E-02   -.63362    
   3  Normalizat    .58598        .15753        .13135E-04   -1.0858    
   4  Prefactor     1.1580        .12306        .37437E-04   -.87633    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.89581e-11
Minuit parameter uncertainties:
  1  58.3987
  2  0.50845
  3  0.157652
  4  0.123085
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) = 9358.38547308
delta logL = 0.0366764519276

Extracting fit parameters...

4FGL J1508.4+7717
   Spectrum: PowerLaw
355    Prefactor:  6.122e+01  5.840e+01  0.000e+00  1.000e+06 ( 1.000e-14)
356        Index:  2.040e+00  5.085e-01  0.000e+00  1.000e+01 (-1.000e+00)
357        Scale:  1.992e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
682    Prefactor:  1.158e+00  1.231e-01  0.000e+00  1.000e+01 ( 1.000e+00)
683        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
684        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
681   Normalization:  5.860e-01  1.577e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.31
Ra Dec: 227.102 77.293
Photon Index (Free Index): 2.04 +/- 0.51
Photon Flux (Free Index): 2.63e-08 +/- 2.34e-08
Energy Flux (Free Index): 1.65e-05 +/- 1.74e-05

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/39549482/cmap_HighResolution_812160001_812419201_4FGL_J1508.4+7717_daily_bin2210.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.94e-08', energy_flux2='1.65e-05', photon_flux_error='2.22e-08', dlogl='3.67e-02', energy_flux='1.37e-05', photon_flux2='2.63e-08', job_status='DONE', time_completed='2026-09-30 14:44:54.539976', photon_index_error2='0.51', photon_index2='2.04', ts='4.25', fit_tolerance='1e-08', GAL='1.16', photon_index_error='0.00', energy_flux_error2='1.74e-05', EG='0.58', time_epoch_completed='1790804694.54', return_code='0', job_id='39549482', GAL2='1.16', EG2='0.59', return_code2='0', energy_flux_error='1.04e-05', photon_flux_error2='2.34e-08', ts2='4.31', photon_index='2.18' WHERE bin_id='2210' AND source_name='4FGL J1508.4+7717' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 30 14:44:54 PDT 2026

tfile=/lscratch/kocevski/39549877/ltcube_812160001_812419201_4FGL_J1508.4+7717_daily_bin2210.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/39549877/ft2_4FGL_J1508.4+7717_daily_bin2210.fits
.....................!
real 9.74
user 9.10
sys 0.23

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/39549877/ft1_filtered_4FGL_J1508.4+7717_daily_bin2210.fits evtable="EVENTS" scfile=/lscratch/kocevski/39549877/ft2_4FGL_J1508.4+7717_daily_bin2210.fits sctable="SC_DATA" expcube=/lscratch/kocevski/39549877/ltcube_812160001_812419201_4FGL_J1508.4+7717_daily_bin2210.fits outfile=/lscratch/kocevski/39549877/expmap_812160001_812419201_4FGL_J1508.4+7717_daily_bin2210.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/39549877/ltcube_812160001_812419201_4FGL_J1508.4+7717_daily_bin2210.fits
.....................!
real 73.16
user 68.27
sys 4.08

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 J1508.4+7717 @ 227.102 77.2929

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/39549877/ft1_filtered_4FGL_J1508.4+7717_daily_bin2210.fits scfile=/lscratch/kocevski/39549877/ft2_4FGL_J1508.4+7717_daily_bin2210.fits outfile=/lscratch/kocevski/39549877/cmap_812160001_812419201_4FGL_J1508.4+7717_daily_bin2210.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=227.102 yref=77.2929 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.71
user 0.25
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/39549877/ft1_filtered_4FGL_J1508.4+7717_daily_bin2210.fits scfile=/lscratch/kocevski/39549877/ft2_4FGL_J1508.4+7717_daily_bin2210.fits outfile=/lscratch/kocevski/39549877/cmap_HighResolution_812160001_812419201_4FGL_J1508.4+7717_daily_bin2210.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=227.102 yref=77.2929 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.73
user 0.26
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/39549877/ft1_filtered_4FGL_J1508.4+7717_daily_bin2210.fits evtable="EVENTS" scfile=/lscratch/kocevski/39549877/ft2_4FGL_J1508.4+7717_daily_bin2210.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/39549877/Model_4FGL_J1508.4+7717_daily_bin2210.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/39549655/ft1_filtered_4FGL_J1508.4+7717_daily_bin2210.fits....................!
real 43.24
user 41.46
sys 0.96

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/39549655/ft1_filtered_4FGL_J1508.4+7717_daily_bin2210.fits', '/lscratch/kocevski/39549655/ft2_4FGL_J1508.4+7717_daily_bin2210.fits', expMap='/lscratch/kocevski/39549655/expmap_812160001_812419201_4FGL_J1508.4+7717_daily_bin2210.fits', expCube='/lscratch/kocevski/39549655/ltcube_812160001_812419201_4FGL_J1508.4+7717_daily_bin2210.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/39549655/Model_4FGL_J1508.4+7717_daily_bin2210.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1508.4+7717'

4FGL J1508.4+7717
   Spectrum: PowerLaw
355    Prefactor:  4.602e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-14)
356        Index:  2.179e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
357        Scale:  1.992e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/39549655/ft1_filtered_4FGL_J1508.4+7717_daily_bin2210.fits
Spacecraft file(s): /lscratch/kocevski/39549655/ft2_4FGL_J1508.4+7717_daily_bin2210.fits
Exposure map: /lscratch/kocevski/39549655/expmap_812160001_812419201_4FGL_J1508.4+7717_daily_bin2210.fits
Exposure cube: /lscratch/kocevski/39549655/ltcube_812160001_812419201_4FGL_J1508.4+7717_daily_bin2210.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/39549655/Model_4FGL_J1508.4+7717_daily_bin2210.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) = 9358.46482734

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .27450E-04   1.0000          .0000       .10000E+07
     2 'Prefactor '    7.5351       1.0000          .0000       .10000E+07
     3 'Prefactor '    34.364       1.0000          .0000       .10000E+07
     4 'norm      '    2.8378       1.0000          .0000       .10000E+07
     5 'Prefactor '    7.1925       1.0000          .0000       .10000E+07
     6 'Prefactor '    .79531E-04   1.0000          .0000       .10000E+07
     7 'Prefactor '    .19992E-01   1.0000          .0000       .10000E+07
     8 'Prefactor '    .35913E-04   1.0000          .0000       .10000E+07
     9 'Prefactor '    12.950       1.0000          .0000       .10000E+07
    10 'Prefactor '    .54165E-02   1.0000          .0000       .10000E+07
    11 'Prefactor '    .15789E-02   1.0000          .0000       .10000E+07
    12 'Prefactor '    51.421       1.0000          .0000       .10000E+07
    13 'Prefactor '    5.2112       1.0000          .0000       .10000E+07
    14 'Prefactor '    27.006       1.0000          .0000       .10000E+07
    15 'norm      '    19.675       1.0000          .0000       .10000E+07
    16 'Prefactor '    .15529       1.0000          .0000       .10000E+07
    17 'Prefactor '    5.3064       1.0000          .0000       .10000E+07
    18 'norm      '    1.2744       1.0000          .0000       .10000E+07
    19 'Prefactor '    3.3744       1.0000          .0000       .10000E+07
    20 'Prefactor '    .57678E-02   1.0000          .0000       .10000E+07
    21 'Prefactor '    .54568E-02   1.0000          .0000       .10000E+07
    22 'norm      '    5.5336       1.0000          .0000       .10000E+07
    23 'Normalizat'    .58096       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.1600       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6850E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9358.422     FROM MIGRAD    STATUS=CONVERGED    132 CALLS     1525 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .23981E-07    15.747        .15579E-06** at limit **
   2  Prefactor     7.5005        8.7668       -.11223E-05   -.13722E-03
   3  Prefactor     33.325        6.5277        .12519E-05   -.10200    
   4  norm          2.8406        2.5573        .40445E-06   -.74436E-02
   5  Prefactor     7.1497        4.6083       -.24466E-05    .10177E-01
   6  Prefactor      .0000        3.1706        .50962E-06** at limit **
   7  Prefactor     .38858E-09    9.6763       -.11197E-05** at limit **
   8  Prefactor      .0000        5.0975        .12030E-05** at limit **
   9  Prefactor     12.617        13.000       -.50915E-05    .42713E-01
  10  Prefactor     .92149E-08    17.632       -.59051E-05** at limit **
  11  Prefactor     .55511E-10    4.5768        .45230E-06** at limit **
  12  Prefactor     51.132        3.2561       -.24030E-06    .26509E-01
  13  Prefactor     5.2473        1.0205        .27061E-07   -.17885E-02
  14  Prefactor     27.790        5.0826       -.42728E-07   -.46491E-01
  15  norm          19.623        7.7319       -.28095E-05   -.13209    
  16  Prefactor     .77716E-09    34.815       -.14934E-05** at limit **
  17  Prefactor     5.3274        1.1019        .30145E-06   -.26869E-03
  18  norm          1.2736        .76500       -.28549E-06    .85209E-02
  19  Prefactor     3.3732        2.9627        .82886E-06    .99431E-02
  20  Prefactor     .12101E-07    32.774        .84248E-05** at limit **
  21  Prefactor     .46374E-06    62.509       -.11872E-06** at limit **
  22  norm          5.5318        .97485       -.67641E-07    .21740E-01
  23  Normalizat    .58187        .16173        .30128E-04    .39616E-03
  24  Prefactor     1.1599        .12366       -.89412E-05    .39129E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.39808e-08
  Prefactor  = 7.50053
  Prefactor  = 33.3246
  norm       = 2.8406
  Prefactor  = 7.14975
  Prefactor  = 0
  Prefactor  = 3.88578e-10
  Prefactor  = 0
  Prefactor  = 12.6175
  Prefactor  = 9.21485e-09
  Prefactor  = 5.55112e-11
  Prefactor  = 51.1317
  Prefactor  = 5.24732
  Prefactor  = 27.7902
  norm       = 19.6225
  Prefactor  = 7.77156e-10
  Prefactor  = 5.32736
  norm       = 1.27355
  Prefactor  = 3.37322
  Prefactor  = 1.21014e-08
  Prefactor  = 4.6374e-07
  norm       = 5.53185
  Normalizat = 0.581874
  Prefactor  = 1.15989
tfile=/lscratch/kocevski/39549923/ltcube_812160001_812419201_4FGL_J1508.4+7717_daily_bin2210.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/39549923/ft2_4FGL_J1508.4+7717_daily_bin2210.fits
.....................!
real 8.63
user 7.99
sys 0.19

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/39549923/ft1_filtered_4FGL_J1508.4+7717_daily_bin2210.fits evtable="EVENTS" scfile=/lscratch/kocevski/39549923/ft2_4FGL_J1508.4+7717_daily_bin2210.fits sctable="SC_DATA" expcube=/lscratch/kocevski/39549923/ltcube_812160001_812419201_4FGL_J1508.4+7717_daily_bin2210.fits outfile=/lscratch/kocevski/39549923/expmap_812160001_812419201_4FGL_J1508.4+7717_daily_bin2210.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/39549923/ltcube_812160001_812419201_4FGL_J1508.4+7717_daily_bin2210.fits
.....................!
real 70.38
user 65.27
sys 4.08

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 J1508.4+7717 @ 227.102 77.2929

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/39549923/ft1_filtered_4FGL_J1508.4+7717_daily_bin2210.fits scfile=/lscratch/kocevski/39549923/ft2_4FGL_J1508.4+7717_daily_bin2210.fits outfile=/lscratch/kocevski/39549923/cmap_812160001_812419201_4FGL_J1508.4+7717_daily_bin2210.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=227.102 yref=77.2929 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.87
user 0.22
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/39549923/ft1_filtered_4FGL_J1508.4+7717_daily_bin2210.fits scfile=/lscratch/kocevski/39549923/ft2_4FGL_J1508.4+7717_daily_bin2210.fits outfile=/lscratch/kocevski/39549923/cmap_HighResolution_812160001_812419201_4FGL_J1508.4+7717_daily_bin2210.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=227.102 yref=77.2929 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.24
sys 0.12

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/39549923/ft1_filtered_4FGL_J1508.4+7717_daily_bin2210.fits evtable="EVENTS" scfile=/lscratch/kocevski/39549923/ft2_4FGL_J1508.4+7717_daily_bin2210.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/39549923/Model_4FGL_J1508.4+7717_daily_bin2210.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 **********
 **   18 **HESSE 
 **********

 FCN=   9358.422     FROM HESSE     STATUS=OK           447 CALLS     1972 TOTAL
                     EDM=   .63E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .23981E-07    16.033        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     7.5005        8.8385        .36511E-03   -1.5653    
   3  Prefactor     33.325        31.946        .17061E-03   -1.5593    
   4  norm          2.8406        2.5729        .60338E-03   -1.5674    
   5  Prefactor     7.1497        18.134        .37378E-03   -1.5654    
   6  Prefactor      .0000        3.1743        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .38858E-09    9.6772        .17037E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor      .0000        5.0978        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     12.617        16.540        .27810E-03   -1.5637    
  10  Prefactor     .92149E-08    17.963        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .55511E-10    4.5847        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     51.132        38.719        .13946E-03   -1.5565    
  13  Prefactor     5.2473        60.363        .44011E-03   -1.5662    
  14  Prefactor     27.790        26.743        .19247E-03   -1.5603    
  15  norm          19.623        13.472        .22552E-03   -1.5619    
  16  Prefactor     .77716E-09    34.808        .12633E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     5.3274        23.619        .43607E-03   -1.5662    
  18  norm          1.2736        .78510        .98426E-03   -1.5685    
  19  Prefactor     3.3732        3.0135        .55060E-03   -1.5671    
  20  Prefactor     .12101E-07    34.410        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .46374E-06    64.117        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          5.5318        .97534        .42687E-03   -1.5661    
  23  Normalizat    .58187        .14844        .74418E-01   -1.0876    
  24  Prefactor     1.1599        .11163        .35652E-01   -.87575    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.31487e-07
Minuit parameter uncertainties:
  1  0.00123991
  2  8.83855
  3  31.9465
  4  2.57293
  5  18.1343
  6  1.62004e-05
  7  0.000124802
  8  9.72094e-06
  9  16.54
  10  0.000814272
  11  3.42791e-05
  12  38.7188
  13  35.5952
  14  26.7433
  15  13.4721
  16  0.000323367
  17  22.4348
  18  0.785099
  19  3.01352
  20  0.0012905
  21  0.0109059
  22  0.975341
  23  0.148538
  24  0.111654
Done.

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

Extracting fit parameters...

4FGL J1508.4+7717
   Spectrum: PowerLaw
355    Prefactor:  5.113e+01  3.872e+01  0.000e+00  1.000e+06 ( 1.000e-14)
356        Index:  2.179e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
357        Scale:  1.992e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
682    Prefactor:  1.160e+00  1.117e-01  0.000e+00  1.000e+01 ( 1.000e+00)
683        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
684        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
681   Normalization:  5.819e-01  1.485e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.25
Ra Dec: 227.102 77.293
Photon Index (Fixed Index): 2.18 +/- 0.00
Photon Flux (Fixed Index): 2.94e-08 +/- 2.22e-08
Energy Flux (Fixed Index): 1.37e-05 +/- 1.04e-05

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) = 9358.3896814
delta logL = 0.0324681296497

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9358.38547365
delta logL = 0.0366758814616

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    61.174       1.0000          .0000       .10000E+07
     2 'Index     '    2.0399       1.0000          .0000       10.000    
     3 'Normalizat'    .58594       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1580       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6850E+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=   9358.385     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      303 TOTAL
                     EDM=   .55E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     61.219        61.038        .25573E-04    .69263E-03
   2  Index         2.0397        .52999        .77123E-02    .58255E-03
   3  Normalizat    .58598        .15755        .32838E-03   -.80250E-04
   4  Prefactor     1.1580        .12303        .18718E-03   -.64064E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 61.2191
  Index      = 2.03967
  Normalizat = 0.58598
  Prefactor  = 1.15802
 **********
 **   18 **HESSE 
 **********

 FCN=   9358.385     FROM HESSE     STATUS=OK            25 CALLS      328 TOTAL
                     EDM=   .79E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     61.219        58.398        .10229E-05   -1.5551    
   2  Index         2.0397        .50710        .15425E-02   -.63362    
   3  Normalizat    .58598        .15753        .13135E-04   -1.0858    
   4  Prefactor     1.1580        .12306        .37437E-04   -.87633    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.89581e-11
Minuit parameter uncertainties:
  1  58.3987
  2  0.50845
  3  0.157652
  4  0.123085
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) = 9358.38547308
delta logL = 0.0366764519276

Extracting fit parameters...

4FGL J1508.4+7717
   Spectrum: PowerLaw
355    Prefactor:  6.122e+01  5.840e+01  0.000e+00  1.000e+06 ( 1.000e-14)
356        Index:  2.040e+00  5.085e-01  0.000e+00  1.000e+01 (-1.000e+00)
357        Scale:  1.992e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
682    Prefactor:  1.158e+00  1.231e-01  0.000e+00  1.000e+01 ( 1.000e+00)
683        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
684        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
681   Normalization:  5.860e-01  1.577e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.31
Ra Dec: 227.102 77.293
Photon Index (Free Index): 2.04 +/- 0.51
Photon Flux (Free Index): 2.63e-08 +/- 2.34e-08
Energy Flux (Free Index): 1.65e-05 +/- 1.74e-05

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/39549655/cmap_HighResolution_812160001_812419201_4FGL_J1508.4+7717_daily_bin2210.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.94e-08', energy_flux2='1.65e-05', photon_flux_error='2.22e-08', dlogl='3.67e-02', energy_flux='1.37e-05', photon_flux2='2.63e-08', job_status='DONE', time_completed='2026-09-30 14:47:41.005251', photon_index_error2='0.51', photon_index2='2.04', ts='4.25', fit_tolerance='1e-08', GAL='1.16', photon_index_error='0.00', energy_flux_error2='1.74e-05', EG='0.58', time_epoch_completed='1790804861.01', return_code='0', job_id='39549655', GAL2='1.16', EG2='0.59', return_code2='0', energy_flux_error='1.04e-05', photon_flux_error2='2.34e-08', ts2='4.31', photon_index='2.18' WHERE bin_id='2210' AND source_name='4FGL J1508.4+7717' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 30 14:47:41 PDT 2026

_V02
Working on...
/lscratch/kocevski/39549877/ft1_filtered_4FGL_J1508.4+7717_daily_bin2210.fits....................!
real 44.39
user 42.63
sys 1.10

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/39549877/ft1_filtered_4FGL_J1508.4+7717_daily_bin2210.fits', '/lscratch/kocevski/39549877/ft2_4FGL_J1508.4+7717_daily_bin2210.fits', expMap='/lscratch/kocevski/39549877/expmap_812160001_812419201_4FGL_J1508.4+7717_daily_bin2210.fits', expCube='/lscratch/kocevski/39549877/ltcube_812160001_812419201_4FGL_J1508.4+7717_daily_bin2210.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/39549877/Model_4FGL_J1508.4+7717_daily_bin2210.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1508.4+7717'

4FGL J1508.4+7717
   Spectrum: PowerLaw
355    Prefactor:  4.602e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-14)
356        Index:  2.179e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
357        Scale:  1.992e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/39549877/ft1_filtered_4FGL_J1508.4+7717_daily_bin2210.fits
Spacecraft file(s): /lscratch/kocevski/39549877/ft2_4FGL_J1508.4+7717_daily_bin2210.fits
Exposure map: /lscratch/kocevski/39549877/expmap_812160001_812419201_4FGL_J1508.4+7717_daily_bin2210.fits
Exposure cube: /lscratch/kocevski/39549877/ltcube_812160001_812419201_4FGL_J1508.4+7717_daily_bin2210.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/39549877/Model_4FGL_J1508.4+7717_daily_bin2210.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) = 9358.46482734

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .27450E-04   1.0000          .0000       .10000E+07
     2 'Prefactor '    7.5351       1.0000          .0000       .10000E+07
     3 'Prefactor '    34.364       1.0000          .0000       .10000E+07
     4 'norm      '    2.8378       1.0000          .0000       .10000E+07
     5 'Prefactor '    7.1925       1.0000          .0000       .10000E+07
     6 'Prefactor '    .79531E-04   1.0000          .0000       .10000E+07
     7 'Prefactor '    .19992E-01   1.0000          .0000       .10000E+07
     8 'Prefactor '    .35913E-04   1.0000          .0000       .10000E+07
     9 'Prefactor '    12.950       1.0000          .0000       .10000E+07
    10 'Prefactor '    .54165E-02   1.0000          .0000       .10000E+07
    11 'Prefactor '    .15789E-02   1.0000          .0000       .10000E+07
    12 'Prefactor '    51.421       1.0000          .0000       .10000E+07
    13 'Prefactor '    5.2112       1.0000          .0000       .10000E+07
    14 'Prefactor '    27.006       1.0000          .0000       .10000E+07
    15 'norm      '    19.675       1.0000          .0000       .10000E+07
    16 'Prefactor '    .15529       1.0000          .0000       .10000E+07
    17 'Prefactor '    5.3064       1.0000          .0000       .10000E+07
    18 'norm      '    1.2744       1.0000          .0000       .10000E+07
    19 'Prefactor '    3.3744       1.0000          .0000       .10000E+07
    20 'Prefactor '    .57678E-02   1.0000          .0000       .10000E+07
    21 'Prefactor '    .54568E-02   1.0000          .0000       .10000E+07
    22 'norm      '    5.5336       1.0000          .0000       .10000E+07
    23 'Normalizat'    .58096       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.1600       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6850E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9358.422     FROM MIGRAD    STATUS=CONVERGED    132 CALLS     1525 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .23981E-07    15.747        .15579E-06** at limit **
   2  Prefactor     7.5005        8.7668       -.11223E-05   -.13722E-03
   3  Prefactor     33.325        6.5277        .12519E-05   -.10200    
   4  norm          2.8406        2.5573        .40445E-06   -.74436E-02
   5  Prefactor     7.1497        4.6083       -.24466E-05    .10177E-01
   6  Prefactor      .0000        3.1706        .50962E-06** at limit **
   7  Prefactor     .38858E-09    9.6763       -.11197E-05** at limit **
   8  Prefactor      .0000        5.0975        .12030E-05** at limit **
   9  Prefactor     12.617        13.000       -.50915E-05    .42713E-01
  10  Prefactor     .92149E-08    17.632       -.59051E-05** at limit **
  11  Prefactor     .55511E-10    4.5768        .45230E-06** at limit **
  12  Prefactor     51.132        3.2561       -.24030E-06    .26509E-01
  13  Prefactor     5.2473        1.0205        .27061E-07   -.17885E-02
  14  Prefactor     27.790        5.0826       -.42728E-07   -.46491E-01
  15  norm          19.623        7.7319       -.28095E-05   -.13209    
  16  Prefactor     .77716E-09    34.815       -.14934E-05** at limit **
  17  Prefactor     5.3274        1.1019        .30145E-06   -.26869E-03
  18  norm          1.2736        .76500       -.28549E-06    .85209E-02
  19  Prefactor     3.3732        2.9627        .82886E-06    .99431E-02
  20  Prefactor     .12101E-07    32.774        .84248E-05** at limit **
  21  Prefactor     .46374E-06    62.509       -.11872E-06** at limit **
  22  norm          5.5318        .97485       -.67641E-07    .21740E-01
  23  Normalizat    .58187        .16173        .30128E-04    .39616E-03
  24  Prefactor     1.1599        .12366       -.89412E-05    .39129E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.39808e-08
  Prefactor  = 7.50053
  Prefactor  = 33.3246
  norm       = 2.8406
  Prefactor  = 7.14975
  Prefactor  = 0
  Prefactor  = 3.88578e-10
  Prefactor  = 0
  Prefactor  = 12.6175
  Prefactor  = 9.21485e-09
  Prefactor  = 5.55112e-11
  Prefactor  = 51.1317
  Prefactor  = 5.24732
  Prefactor  = 27.7902
  norm       = 19.6225
  Prefactor  = 7.77156e-10
  Prefactor  = 5.32736
  norm       = 1.27355
  Prefactor  = 3.37322
  Prefactor  = 1.21014e-08
  Prefactor  = 4.6374e-07
  norm       = 5.53185
  Normalizat = 0.581874
  Prefactor  = 1.15989
 **********
 **   18 **HESSE 
 **********

 FCN=   9358.422     FROM HESSE     STATUS=OK           447 CALLS     1972 TOTAL
                     EDM=   .63E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .23981E-07    16.033        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     7.5005        8.8385        .36511E-03   -1.5653    
   3  Prefactor     33.325        31.946        .17061E-03   -1.5593    
   4  norm          2.8406        2.5729        .60338E-03   -1.5674    
   5  Prefactor     7.1497        18.134        .37378E-03   -1.5654    
   6  Prefactor      .0000        3.1743        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .38858E-09    9.6772        .17037E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor      .0000        5.0978        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     12.617        16.540        .27810E-03   -1.5637    
  10  Prefactor     .92149E-08    17.963        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .55511E-10    4.5847        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     51.132        38.719        .13946E-03   -1.5565    
  13  Prefactor     5.2473        60.363        .44011E-03   -1.5662    
  14  Prefactor     27.790        26.743        .19247E-03   -1.5603    
  15  norm          19.623        13.472        .22552E-03   -1.5619    
  16  Prefactor     .77716E-09    34.808        .12633E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     5.3274        23.619        .43607E-03   -1.5662    
  18  norm          1.2736        .78510        .98426E-03   -1.5685    
  19  Prefactor     3.3732        3.0135        .55060E-03   -1.5671    
  20  Prefactor     .12101E-07    34.410        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .46374E-06    64.117        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          5.5318        .97534        .42687E-03   -1.5661    
  23  Normalizat    .58187        .14844        .74418E-01   -1.0876    
  24  Prefactor     1.1599        .11163        .35652E-01   -.87575    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.31487e-07
Minuit parameter uncertainties:
  1  0.00123991
  2  8.83855
  3  31.9465
  4  2.57293
  5  18.1343
  6  1.62004e-05
  7  0.000124802
  8  9.72094e-06
  9  16.54
  10  0.000814272
  11  3.42791e-05
  12  38.7188
  13  35.5952
  14  26.7433
  15  13.4721
  16  0.000323367
  17  22.4348
  18  0.785099
  19  3.01352
  20  0.0012905
  21  0.0109059
  22  0.975341
  23  0.148538
  24  0.111654
Done.

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

Extracting fit parameters...

4FGL J1508.4+7717
   Spectrum: PowerLaw
355    Prefactor:  5.113e+01  3.872e+01  0.000e+00  1.000e+06 ( 1.000e-14)
356        Index:  2.179e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
357        Scale:  1.992e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
682    Prefactor:  1.160e+00  1.117e-01  0.000e+00  1.000e+01 ( 1.000e+00)
683        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
684        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
681   Normalization:  5.819e-01  1.485e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.25
Ra Dec: 227.102 77.293
Photon Index (Fixed Index): 2.18 +/- 0.00
Photon Flux (Fixed Index): 2.94e-08 +/- 2.22e-08
Energy Flux (Fixed Index): 1.37e-05 +/- 1.04e-05

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) = 9358.3896814
delta logL = 0.0324681296497

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9358.38547365
delta logL = 0.0366758814616

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    61.174       1.0000          .0000       .10000E+07
     2 'Index     '    2.0399       1.0000          .0000       10.000    
     3 'Normalizat'    .58594       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1580       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6850E+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=   9358.385     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      303 TOTAL
                     EDM=   .55E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     61.219        61.038        .25573E-04    .69263E-03
   2  Index         2.0397        .52999        .77123E-02    .58255E-03
   3  Normalizat    .58598        .15755        .32838E-03   -.80250E-04
   4  Prefactor     1.1580        .12303        .18718E-03   -.64064E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 61.2191
  Index      = 2.03967
  Normalizat = 0.58598
  Prefactor  = 1.15802
 **********
 **   18 **HESSE 
 **********

 FCN=   9358.385     FROM HESSE     STATUS=OK            25 CALLS      328 TOTAL
                     EDM=   .79E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     61.219        58.398        .10229E-05   -1.5551    
   2  Index         2.0397        .50710        .15425E-02   -.63362    
   3  Normalizat    .58598        .15753        .13135E-04   -1.0858    
   4  Prefactor     1.1580        .12306        .37437E-04   -.87633    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.89581e-11
Minuit parameter uncertainties:
  1  58.3987
  2  0.50845
  3  0.157652
  4  0.123085
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) = 9358.38547308
delta logL = 0.0366764519276

Extracting fit parameters...

4FGL J1508.4+7717
   Spectrum: PowerLaw
355    Prefactor:  6.122e+01  5.840e+01  0.000e+00  1.000e+06 ( 1.000e-14)
356        Index:  2.040e+00  5.085e-01  0.000e+00  1.000e+01 (-1.000e+00)
357        Scale:  1.992e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
682    Prefactor:  1.158e+00  1.231e-01  0.000e+00  1.000e+01 ( 1.000e+00)
683        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
684        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
681   Normalization:  5.860e-01  1.577e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.31
Ra Dec: 227.102 77.293
Photon Index (Free Index): 2.04 +/- 0.51
Photon Flux (Free Index): 2.63e-08 +/- 2.34e-08
Energy Flux (Free Index): 1.65e-05 +/- 1.74e-05

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/39549877/cmap_HighResolution_812160001_812419201_4FGL_J1508.4+7717_daily_bin2210.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.94e-08', energy_flux2='1.65e-05', photon_flux_error='2.22e-08', dlogl='3.67e-02', energy_flux='1.37e-05', photon_flux2='2.63e-08', job_status='DONE', time_completed='2026-09-30 14:49:05.925700', photon_index_error2='0.51', photon_index2='2.04', ts='4.25', fit_tolerance='1e-08', GAL='1.16', photon_index_error='0.00', energy_flux_error2='1.74e-05', EG='0.58', time_epoch_completed='1790804945.93', return_code='0', job_id='39549877', GAL2='1.16', EG2='0.59', return_code2='0', energy_flux_error='1.04e-05', photon_flux_error2='2.34e-08', ts2='4.31', photon_index='2.18' WHERE bin_id='2210' AND source_name='4FGL J1508.4+7717' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 30 14:49:06 PDT 2026

_V02
Working on...
/lscratch/kocevski/39549923/ft1_filtered_4FGL_J1508.4+7717_daily_bin2210.fits....................!
real 42.29
user 40.88
sys 0.74

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/39549923/ft1_filtered_4FGL_J1508.4+7717_daily_bin2210.fits', '/lscratch/kocevski/39549923/ft2_4FGL_J1508.4+7717_daily_bin2210.fits', expMap='/lscratch/kocevski/39549923/expmap_812160001_812419201_4FGL_J1508.4+7717_daily_bin2210.fits', expCube='/lscratch/kocevski/39549923/ltcube_812160001_812419201_4FGL_J1508.4+7717_daily_bin2210.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/39549923/Model_4FGL_J1508.4+7717_daily_bin2210.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1508.4+7717'

4FGL J1508.4+7717
   Spectrum: PowerLaw
355    Prefactor:  4.602e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-14)
356        Index:  2.179e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
357        Scale:  1.992e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/39549923/ft1_filtered_4FGL_J1508.4+7717_daily_bin2210.fits
Spacecraft file(s): /lscratch/kocevski/39549923/ft2_4FGL_J1508.4+7717_daily_bin2210.fits
Exposure map: /lscratch/kocevski/39549923/expmap_812160001_812419201_4FGL_J1508.4+7717_daily_bin2210.fits
Exposure cube: /lscratch/kocevski/39549923/ltcube_812160001_812419201_4FGL_J1508.4+7717_daily_bin2210.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/39549923/Model_4FGL_J1508.4+7717_daily_bin2210.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) = 9358.46482734

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .27450E-04   1.0000          .0000       .10000E+07
     2 'Prefactor '    7.5351       1.0000          .0000       .10000E+07
     3 'Prefactor '    34.364       1.0000          .0000       .10000E+07
     4 'norm      '    2.8378       1.0000          .0000       .10000E+07
     5 'Prefactor '    7.1925       1.0000          .0000       .10000E+07
     6 'Prefactor '    .79531E-04   1.0000          .0000       .10000E+07
     7 'Prefactor '    .19992E-01   1.0000          .0000       .10000E+07
     8 'Prefactor '    .35913E-04   1.0000          .0000       .10000E+07
     9 'Prefactor '    12.950       1.0000          .0000       .10000E+07
    10 'Prefactor '    .54165E-02   1.0000          .0000       .10000E+07
    11 'Prefactor '    .15789E-02   1.0000          .0000       .10000E+07
    12 'Prefactor '    51.421       1.0000          .0000       .10000E+07
    13 'Prefactor '    5.2112       1.0000          .0000       .10000E+07
    14 'Prefactor '    27.006       1.0000          .0000       .10000E+07
    15 'norm      '    19.675       1.0000          .0000       .10000E+07
    16 'Prefactor '    .15529       1.0000          .0000       .10000E+07
    17 'Prefactor '    5.3064       1.0000          .0000       .10000E+07
    18 'norm      '    1.2744       1.0000          .0000       .10000E+07
    19 'Prefactor '    3.3744       1.0000          .0000       .10000E+07
    20 'Prefactor '    .57678E-02   1.0000          .0000       .10000E+07
    21 'Prefactor '    .54568E-02   1.0000          .0000       .10000E+07
    22 'norm      '    5.5336       1.0000          .0000       .10000E+07
    23 'Normalizat'    .58096       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.1600       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6850E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9358.422     FROM MIGRAD    STATUS=CONVERGED    132 CALLS     1525 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .23981E-07    15.747        .15579E-06** at limit **
   2  Prefactor     7.5005        8.7668       -.11223E-05   -.13722E-03
   3  Prefactor     33.325        6.5277        .12519E-05   -.10200    
   4  norm          2.8406        2.5573        .40445E-06   -.74436E-02
   5  Prefactor     7.1497        4.6083       -.24466E-05    .10177E-01
   6  Prefactor      .0000        3.1706        .50962E-06** at limit **
   7  Prefactor     .38858E-09    9.6763       -.11197E-05** at limit **
   8  Prefactor      .0000        5.0975        .12030E-05** at limit **
   9  Prefactor     12.617        13.000       -.50915E-05    .42713E-01
  10  Prefactor     .92149E-08    17.632       -.59051E-05** at limit **
  11  Prefactor     .55511E-10    4.5768        .45230E-06** at limit **
  12  Prefactor     51.132        3.2561       -.24030E-06    .26509E-01
  13  Prefactor     5.2473        1.0205        .27061E-07   -.17885E-02
  14  Prefactor     27.790        5.0826       -.42728E-07   -.46491E-01
  15  norm          19.623        7.7319       -.28095E-05   -.13209    
  16  Prefactor     .77716E-09    34.815       -.14934E-05** at limit **
  17  Prefactor     5.3274        1.1019        .30145E-06   -.26869E-03
  18  norm          1.2736        .76500       -.28549E-06    .85209E-02
  19  Prefactor     3.3732        2.9627        .82886E-06    .99431E-02
  20  Prefactor     .12101E-07    32.774        .84248E-05** at limit **
  21  Prefactor     .46374E-06    62.509       -.11872E-06** at limit **
  22  norm          5.5318        .97485       -.67641E-07    .21740E-01
  23  Normalizat    .58187        .16173        .30128E-04    .39616E-03
  24  Prefactor     1.1599        .12366       -.89412E-05    .39129E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.39808e-08
  Prefactor  = 7.50053
  Prefactor  = 33.3246
  norm       = 2.8406
  Prefactor  = 7.14975
  Prefactor  = 0
  Prefactor  = 3.88578e-10
  Prefactor  = 0
  Prefactor  = 12.6175
  Prefactor  = 9.21485e-09
  Prefactor  = 5.55112e-11
  Prefactor  = 51.1317
  Prefactor  = 5.24732
  Prefactor  = 27.7902
  norm       = 19.6225
  Prefactor  = 7.77156e-10
  Prefactor  = 5.32736
  norm       = 1.27355
  Prefactor  = 3.37322
  Prefactor  = 1.21014e-08
  Prefactor  = 4.6374e-07
  norm       = 5.53185
  Normalizat = 0.581874
  Prefactor  = 1.15989
 **********
 **   18 **HESSE 
 **********

 FCN=   9358.422     FROM HESSE     STATUS=OK           447 CALLS     1972 TOTAL
                     EDM=   .63E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .23981E-07    16.033        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     7.5005        8.8385        .36511E-03   -1.5653    
   3  Prefactor     33.325        31.946        .17061E-03   -1.5593    
   4  norm          2.8406        2.5729        .60338E-03   -1.5674    
   5  Prefactor     7.1497        18.134        .37378E-03   -1.5654    
   6  Prefactor      .0000        3.1743        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .38858E-09    9.6772        .17037E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor      .0000        5.0978        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     12.617        16.540        .27810E-03   -1.5637    
  10  Prefactor     .92149E-08    17.963        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .55511E-10    4.5847        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     51.132        38.719        .13946E-03   -1.5565    
  13  Prefactor     5.2473        60.363        .44011E-03   -1.5662    
  14  Prefactor     27.790        26.743        .19247E-03   -1.5603    
  15  norm          19.623        13.472        .22552E-03   -1.5619    
  16  Prefactor     .77716E-09    34.808        .12633E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     5.3274        23.619        .43607E-03   -1.5662    
  18  norm          1.2736        .78510        .98426E-03   -1.5685    
  19  Prefactor     3.3732        3.0135        .55060E-03   -1.5671    
  20  Prefactor     .12101E-07    34.410        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .46374E-06    64.117        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          5.5318        .97534        .42687E-03   -1.5661    
  23  Normalizat    .58187        .14844        .74418E-01   -1.0876    
  24  Prefactor     1.1599        .11163        .35652E-01   -.87575    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.31487e-07
Minuit parameter uncertainties:
  1  0.00123991
  2  8.83855
  3  31.9465
  4  2.57293
  5  18.1343
  6  1.62004e-05
  7  0.000124802
  8  9.72094e-06
  9  16.54
  10  0.000814272
  11  3.42791e-05
  12  38.7188
  13  35.5952
  14  26.7433
  15  13.4721
  16  0.000323367
  17  22.4348
  18  0.785099
  19  3.01352
  20  0.0012905
  21  0.0109059
  22  0.975341
  23  0.148538
  24  0.111654
Done.

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

Extracting fit parameters...

4FGL J1508.4+7717
   Spectrum: PowerLaw
355    Prefactor:  5.113e+01  3.872e+01  0.000e+00  1.000e+06 ( 1.000e-14)
356        Index:  2.179e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
357        Scale:  1.992e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
682    Prefactor:  1.160e+00  1.117e-01  0.000e+00  1.000e+01 ( 1.000e+00)
683        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
684        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
681   Normalization:  5.819e-01  1.485e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.25
Ra Dec: 227.102 77.293
Photon Index (Fixed Index): 2.18 +/- 0.00
Photon Flux (Fixed Index): 2.94e-08 +/- 2.22e-08
Energy Flux (Fixed Index): 1.37e-05 +/- 1.04e-05

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) = 9358.3896814
delta logL = 0.0324681296497

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9358.38547365
delta logL = 0.0366758814616

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    61.174       1.0000          .0000       .10000E+07
     2 'Index     '    2.0399       1.0000          .0000       10.000    
     3 'Normalizat'    .58594       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1580       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6850E+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=   9358.385     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      303 TOTAL
                     EDM=   .55E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     61.219        61.038        .25573E-04    .69263E-03
   2  Index         2.0397        .52999        .77123E-02    .58255E-03
   3  Normalizat    .58598        .15755        .32838E-03   -.80250E-04
   4  Prefactor     1.1580        .12303        .18718E-03   -.64064E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 61.2191
  Index      = 2.03967
  Normalizat = 0.58598
  Prefactor  = 1.15802
 **********
 **   18 **HESSE 
 **********

 FCN=   9358.385     FROM HESSE     STATUS=OK            25 CALLS      328 TOTAL
                     EDM=   .79E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     61.219        58.398        .10229E-05   -1.5551    
   2  Index         2.0397        .50710        .15425E-02   -.63362    
   3  Normalizat    .58598        .15753        .13135E-04   -1.0858    
   4  Prefactor     1.1580        .12306        .37437E-04   -.87633    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.89581e-11
Minuit parameter uncertainties:
  1  58.3987
  2  0.50845
  3  0.157652
  4  0.123085
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) = 9358.38547308
delta logL = 0.0366764519276

Extracting fit parameters...

4FGL J1508.4+7717
   Spectrum: PowerLaw
355    Prefactor:  6.122e+01  5.840e+01  0.000e+00  1.000e+06 ( 1.000e-14)
356        Index:  2.040e+00  5.085e-01  0.000e+00  1.000e+01 (-1.000e+00)
357        Scale:  1.992e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
682    Prefactor:  1.158e+00  1.231e-01  0.000e+00  1.000e+01 ( 1.000e+00)
683        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
684        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
681   Normalization:  5.860e-01  1.577e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.31
Ra Dec: 227.102 77.293
Photon Index (Free Index): 2.04 +/- 0.51
Photon Flux (Free Index): 2.63e-08 +/- 2.34e-08
Energy Flux (Free Index): 1.65e-05 +/- 1.74e-05

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/39549923/cmap_HighResolution_812160001_812419201_4FGL_J1508.4+7717_daily_bin2210.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.94e-08', energy_flux2='1.65e-05', photon_flux_error='2.22e-08', dlogl='3.67e-02', energy_flux='1.37e-05', photon_flux2='2.63e-08', job_status='DONE', time_completed='2026-09-30 14:49:58.154675', photon_index_error2='0.51', photon_index2='2.04', ts='4.25', fit_tolerance='1e-08', GAL='1.16', photon_index_error='0.00', energy_flux_error2='1.74e-05', EG='0.58', time_epoch_completed='1790804998.15', return_code='0', job_id='39549923', GAL2='1.16', EG2='0.59', return_code2='0', energy_flux_error='1.04e-05', photon_flux_error2='2.34e-08', ts2='4.31', photon_index='2.18' WHERE bin_id='2210' AND source_name='4FGL J1508.4+7717' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 30 14:49:58 PDT 2026

