/sdf/group/fermi/u/kocevski/software/conda/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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

/sdf/group/fermi/u/kocevski/software/conda/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

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

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


Performing analysis on: 4FGL_J1508.4+7717_weekly_bin906
RA = 227.102, Dec = 77.2929
tmin = 786931201, tmax = 787536001
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='17379730', job_status='RUN', time_executed='2025-12-16 02:45:12.176881', time_epoch_executed='1765881912.18' WHERE source_name='4FGL J1508.4+7717' and cadence='weekly' and bin_id='906'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/17379730

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/17379730/ft1_4FGL_J1508.4+7717_weekly_bin906.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/17379730/ft2_4FGL_J1508.4+7717_weekly_bin906.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/17379730/ft1_4FGL_J1508.4+7717_weekly_bin906.fits outfile=/lscratch/kocevski/17379730/ft1_filteredMKT_4FGL_J1508.4+7717_weekly_bin906.fits ra=227.102 dec=77.2929 rad=12.0 tmin=786931201.0 tmax=787536001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 5.73
user 4.81
sys 0.26

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

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/17379730/ft2_4FGL_J1508.4+7717_weekly_bin906.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/17379730/ft1_filteredMKT_4FGL_J1508.4+7717_weekly_bin906.fits evtable="EVENTS" outfile="/lscratch/kocevski/17379730/ft1_filtered_4FGL_J1508.4+7717_weekly_bin906.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/sdf/group/fermi/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/sdf/group/fermi/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.98
user 0.21
sys 0.13

Number of photons that the gtmktime cut: 2073

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/17379730/ft1_filtered_4FGL_J1508.4+7717_weekly_bin906.fits" evtable="EVENTS" scfile=/lscratch/kocevski/17379730/ft2_4FGL_J1508.4+7717_weekly_bin906.fits sctable="SC_DATA" outfile=/lscratch/kocevski/17379730/ltcube_786931201_787536001_4FGL_J1508.4+7717_weekly_bin906.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/17379730/ft2_4FGL_J1508.4+7717_weekly_bin906.fits
.....................!
real 18.09
user 17.22
sys 0.26

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/17379730/ft1_filtered_4FGL_J1508.4+7717_weekly_bin906.fits evtable="EVENTS" scfile=/lscratch/kocevski/17379730/ft2_4FGL_J1508.4+7717_weekly_bin906.fits sctable="SC_DATA" expcube=/lscratch/kocevski/17379730/ltcube_786931201_787536001_4FGL_J1508.4+7717_weekly_bin906.fits outfile=/lscratch/kocevski/17379730/expmap_786931201_787536001_4FGL_J1508.4+7717_weekly_bin906.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/17379730/ltcube_786931201_787536001_4FGL_J1508.4+7717_weekly_bin906.fits
.....................!
real 68.85
user 64.10
sys 3.80

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/17379730/ft1_filtered_4FGL_J1508.4+7717_weekly_bin906.fits scfile=/lscratch/kocevski/17379730/ft2_4FGL_J1508.4+7717_weekly_bin906.fits outfile=/lscratch/kocevski/17379730/cmap_786931201_787536001_4FGL_J1508.4+7717_weekly_bin906.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.94
user 0.23
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/17379730/ft1_filtered_4FGL_J1508.4+7717_weekly_bin906.fits scfile=/lscratch/kocevski/17379730/ft2_4FGL_J1508.4+7717_weekly_bin906.fits outfile=/lscratch/kocevski/17379730/cmap_HighResolution_786931201_787536001_4FGL_J1508.4+7717_weekly_bin906.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 1.03
user 0.24
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/17379730/ft1_filtered_4FGL_J1508.4+7717_weekly_bin906.fits evtable="EVENTS" scfile=/lscratch/kocevski/17379730/ft2_4FGL_J1508.4+7717_weekly_bin906.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/17379730/Model_4FGL_J1508.4+7717_weekly_bin906.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/17379730/ft1_filtered_4FGL_J1508.4+7717_weekly_bin906.fits.....................!
real 83.86
user 81.51
sys 1.24

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/17379730/ft1_filtered_4FGL_J1508.4+7717_weekly_bin906.fits', '/lscratch/kocevski/17379730/ft2_4FGL_J1508.4+7717_weekly_bin906.fits', expMap='/lscratch/kocevski/17379730/expmap_786931201_787536001_4FGL_J1508.4+7717_weekly_bin906.fits', expCube='/lscratch/kocevski/17379730/ltcube_786931201_787536001_4FGL_J1508.4+7717_weekly_bin906.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/17379730/Model_4FGL_J1508.4+7717_weekly_bin906.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/17379730/ft1_filtered_4FGL_J1508.4+7717_weekly_bin906.fits
Spacecraft file(s): /lscratch/kocevski/17379730/ft2_4FGL_J1508.4+7717_weekly_bin906.fits
Exposure map: /lscratch/kocevski/17379730/expmap_786931201_787536001_4FGL_J1508.4+7717_weekly_bin906.fits
Exposure cube: /lscratch/kocevski/17379730/ltcube_786931201_787536001_4FGL_J1508.4+7717_weekly_bin906.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/17379730/Model_4FGL_J1508.4+7717_weekly_bin906.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) = 21964.9161652

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .19433E-02   1.0000          .0000       .10000E+07
     2 'Prefactor '    2.8879       1.0000          .0000       .10000E+07
     3 'Prefactor '    .35076E-02   1.0000          .0000       .10000E+07
     4 'norm      '    1.1437       1.0000          .0000       .10000E+07
     5 'Prefactor '    13.685       1.0000          .0000       .10000E+07
     6 'Prefactor '    15.715       1.0000          .0000       .10000E+07
     7 'Prefactor '    5.6049       1.0000          .0000       .10000E+07
     8 'Prefactor '    1.4646       1.0000          .0000       .10000E+07
     9 'Prefactor '    .52254E-03   1.0000          .0000       .10000E+07
    10 'Prefactor '    25.018       1.0000          .0000       .10000E+07
    11 'Prefactor '    .83869E-05   1.0000          .0000       .10000E+07
    12 'Prefactor '    20.353       1.0000          .0000       .10000E+07
    13 'Prefactor '    .14793E-02   1.0000          .0000       .10000E+07
    14 'Prefactor '    33.209       1.0000          .0000       .10000E+07
    15 'norm      '    6.0978       1.0000          .0000       .10000E+07
    16 'Prefactor '    17.205       1.0000          .0000       .10000E+07
    17 'Prefactor '    18.033       1.0000          .0000       .10000E+07
    18 'norm      '    9.2347       1.0000          .0000       .10000E+07
    19 'Prefactor '    .20245E-05   1.0000          .0000       .10000E+07
    20 'Prefactor '    9.5783       1.0000          .0000       .10000E+07
    21 'Prefactor '    .12141       1.0000          .0000       .10000E+07
    22 'norm      '    2.9703       1.0000          .0000       .10000E+07
    23 'Normalizat'    .97195       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .93896       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=   21964.92     FROM MIGRAD    STATUS=CONVERGED    153 CALLS     1995 TOTAL
                     EDM=   .24E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        7.1691        .17039E-06** at limit **
   2  Prefactor     2.8854        5.4335        .82474E-07    .68014E-04
   3  Prefactor     .14044E-07    13.460        .10207E-06** at limit **
   4  norm          1.1420        1.3258        .52797E-08    .55694E-05
   5  Prefactor     13.711        19.639       -.11889E-06   -.38127E-01
   6  Prefactor     15.712        7.9791       -.24192E-07    .10020E-02
   7  Prefactor     5.5864        3.4202        .27504E-08    .28215E-02
   8  Prefactor     1.4293        11.764       -.80173E-08   -.36341E-03
   9  Prefactor     .25147E-07    16.089        .22779E-06** at limit **
  10  Prefactor     25.032        14.217       -.67304E-07    .80832E-01
  11  Prefactor      .0000        2.4747        .11032E-06** at limit **
  12  Prefactor     20.353        1.9511       -.61539E-08    .66730E-03
  13  Prefactor     .16653E-09    8.2711       -.94262E-08** at limit **
  14  Prefactor     33.200        1.7456        .89009E-09    .72776E-02
  15  norm          6.1464        6.1087        .16923E-06   -.82381E-03
  16  Prefactor     16.814        103.82       -.71606E-07    .46478E-02
  17  Prefactor     18.022        1.4229       -.17544E-08   -.25473E-02
  18  norm          9.2362        1.0715       -.66404E-08    .20287E-02
  19  Prefactor      .0000        .78469       -.71248E-07** at limit **
  20  Prefactor     9.5571        14.842        .72808E-07    .19988E-01
  21  Prefactor     .55511E-10    37.464        .51325E-06** at limit **
  22  norm          2.9705        .55920       -.15426E-07    .39930E-02
  23  Normalizat    .97216        .10846       -.67444E-07    .75585E-04
  24  Prefactor     .93891        .79719E-01   -.10481E-05    .11668E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Prefactor  = 2.88535
  Prefactor  = 1.40443e-08
  norm       = 1.14198
  Prefactor  = 13.7112
  Prefactor  = 15.7117
  Prefactor  = 5.58641
  Prefactor  = 1.4293
  Prefactor  = 2.51466e-08
  Prefactor  = 25.0317
  Prefactor  = 0
  Prefactor  = 20.3527
  Prefactor  = 1.66533e-10
  Prefactor  = 33.1999
  norm       = 6.14641
  Prefactor  = 16.8141
  Prefactor  = 18.0221
  norm       = 9.23623
  Prefactor  = 0
  Prefactor  = 9.5571
  Prefactor  = 5.55112e-11
  norm       = 2.97048
  Normalizat = 0.972161
  Prefactor  = 0.938913
 **********
 **   18 **HESSE 
 **********

 FCN=   21964.92     FROM HESSE     STATUS=OK           451 CALLS     2446 TOTAL
                     EDM=   .14E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        7.1119        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     2.8854        5.5732        .59777E-03   -1.5674    
   3  Prefactor     .14044E-07    13.520        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          1.1420        1.3792        .10851E-02   -1.5687    
   5  Prefactor     13.711        21.435        .27050E-03   -1.5634    
   6  Prefactor     15.712        7.9862        .25238E-03   -1.5629    
   7  Prefactor     5.5864        17.881        .42410E-03   -1.5661    
   8  Prefactor     1.4293        23.755        .88829E-03   -1.5684    
   9  Prefactor     .25147E-07    16.134        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     25.032        29.906        .19997E-03   -1.5608    
  11  Prefactor      .0000        2.4765        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     20.353        16.782        .22173E-03   -1.5618    
  13  Prefactor     .16653E-09    8.2694        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     33.200        19.596        .17355E-03   -1.5593    
  15  norm          6.1464        6.1095        .40634E-03   -1.5658    
  16  Prefactor     16.814        108.08        .24119E-03   -1.5626    
  17  Prefactor     18.022        18.283        .23558E-03   -1.5623    
  18  norm          9.2362        1.0899        .32956E-03   -1.5647    
  19  Prefactor      .0000        .77944        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     9.5571        15.243        .32356E-03   -1.5646    
  21  Prefactor     .55511E-10    36.894        .13386E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          2.9705        .56030        .58889E-03   -1.5673    
  23  Normalizat    .97216        .97573E-01    .45814E-01   -.93969    
  24  Prefactor     .93891        .70668E-01    .45500E-01   -.94794    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.43357e-06
Minuit parameter uncertainties:
  1  3.09751e-06
  2  5.57326
  3  0.000871835
  4  1.37924
  5  21.4356
  6  7.98619
  7  17.8809
  8  11.6538
  9  0.00127455
  10  29.9067
  11  5.79219e-06
  12  16.7818
  13  7.69097e-05
  14  19.5957
  15  6.10948
  16  85.2596
  17  18.283
  18  1.08985
  19  3.07838e-07
  20  15.2431
  21  6.51892e-05
  22  0.560295
  23  0.0975908
  24  0.0706744
Done.

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

Extracting fit parameters...

4FGL J1508.4+7717
   Spectrum: PowerLaw
355    Prefactor:  2.035e+01  1.678e+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:  9.389e-01  7.067e-02  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:  9.722e-01  9.759e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.42
Ra Dec: 227.102 77.293
Photon Index (Fixed Index): 2.18 +/- 0.00
Photon Flux (Fixed Index): 1.17e-08 +/- 9.64e-09
Energy Flux (Fixed Index): 5.47e-06 +/- 4.51e-06

TS (Fixed Index): 3.42
Ra Dec: 227.102 77.293
Photon Flux Upper Limit: 3.48672877523e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00265234759298 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/17379730/likelihoodResults_786931201_787536001_4FGL_J1508.4+7717_weekly_bin906.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) = 21964.7622364
delta logL = 0.153363750109

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 21964.7533475
delta logL = 0.162252661714

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    28.249       1.0000          .0000       .10000E+07
     2 'Index     '    1.8678       1.0000          .0000       10.000    
     3 'Normalizat'    .97603       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93738       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.

 FCN=   21964.75     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      259 TOTAL
                     EDM=   .56E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     28.281        469.70        .18818E-03    .84725E-03
   2  Index         1.8697        2.5279        .26610        .15776E-03
   3  Normalizat    .97595        .33958E-01    .45866E-01    .65295E-04
   4  Prefactor     .93735        .21599E-01    .45480E-01   -.26617E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 28.2813
  Index      = 1.86969
  Normalizat = 0.975948
  Prefactor  = 0.937346
 **********
 **   18 **HESSE 
 **********

 FCN=   21964.75     FROM HESSE     STATUS=OK            31 CALLS      290 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     28.281        25.969        .75272E-05   -1.5602    
   2  Index         1.8697        .52869        .10372E-01   -.67649    
   3  Normalizat    .97595        .10352        .27245E-03   -.93841    
   4  Prefactor     .93735        .78296E-01    .20905E-03   -.94848    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.33612e-10
Minuit parameter uncertainties:
  1  25.9695
  2  0.530321
  3  0.103544
  4  0.0783053
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) = 21964.7533353
delta logL = 0.162264869243

Extracting fit parameters...

4FGL J1508.4+7717
   Spectrum: PowerLaw
355    Prefactor:  2.828e+01  2.597e+01  0.000e+00  1.000e+06 ( 1.000e-14)
356        Index:  1.870e+00  5.303e-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:  9.373e-01  7.831e-02  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:  9.759e-01  1.035e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.74
Ra Dec: 227.102 77.293
Photon Index (Free Index): 1.87 +/- 0.53
Photon Flux (Free Index): 8.72e-09 +/- 8.93e-09
Energy Flux (Free Index): 8.51e-06 +/- 1.05e-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/17379730/cmap_HighResolution_786931201_787536001_4FGL_J1508.4+7717_weekly_bin906.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.65e-03', comment='SUCCESS', photon_flux='1.17e-08', energy_flux2='8.51e-06', photon_flux_error='9.64e-09', dlogl='1.62e-01', energy_flux='5.47e-06', photon_flux2='8.72e-09', job_status='DONE', time_completed='2025-12-16 03:02:27.163625', photon_index_error2='0.53', photon_index2='1.87', ts='3.42', fit_tolerance='1e-08', GAL='0.94', photon_index_error='0.00', photon_flux_upper_limit='3.49e-08', energy_flux_error2='1.05e-05', EG='0.97', time_epoch_completed='1765882947.16', return_code='0', job_id='17379730', GAL2='0.94', EG2='0.98', return_code2='0', energy_flux_error='4.51e-06', photon_flux_error2='8.93e-09', ts2='3.74', photon_index='2.18' WHERE bin_id='906' AND source_name='4FGL J1508.4+7717' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Dec 16 03:02:27 PST 2025

