/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 = 17524
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1808.2+3500_weekly_bin907
RA = 272.066, Dec = 35.0104
tmin = 787536001, tmax = 788140801
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='17775655', job_status='RUN', time_executed='2025-12-23 02:13:50.991593', time_epoch_executed='1766484830.99' WHERE source_name='4FGL J1808.2+3500' and cadence='weekly' and bin_id='907'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/17775655

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/17775655/ft1_4FGL_J1808.2+3500_weekly_bin907.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/17775655/ft2_4FGL_J1808.2+3500_weekly_bin907.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/17775655/ft1_4FGL_J1808.2+3500_weekly_bin907.fits outfile=/lscratch/kocevski/17775655/ft1_filteredMKT_4FGL_J1808.2+3500_weekly_bin907.fits ra=272.066 dec=35.0104 rad=12.0 tmin=787536001.0 tmax=788140801.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 4.95
user 4.37
sys 0.22

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/17775655/ft2_4FGL_J1808.2+3500_weekly_bin907.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/17775655/ft2_4FGL_J1808.2+3500_weekly_bin907.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/17775655/ft1_filteredMKT_4FGL_J1808.2+3500_weekly_bin907.fits evtable="EVENTS" outfile="/lscratch/kocevski/17775655/ft1_filtered_4FGL_J1808.2+3500_weekly_bin907.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.57
user 0.21
sys 0.14

Number of photons that the gtmktime cut: 2008

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/17775655/ft1_filtered_4FGL_J1808.2+3500_weekly_bin907.fits" evtable="EVENTS" scfile=/lscratch/kocevski/17775655/ft2_4FGL_J1808.2+3500_weekly_bin907.fits sctable="SC_DATA" outfile=/lscratch/kocevski/17775655/ltcube_787536001_788140801_4FGL_J1808.2+3500_weekly_bin907.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/17775655/ft2_4FGL_J1808.2+3500_weekly_bin907.fits
.....................!
real 21.22
user 20.46
sys 0.25

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/17775655/ft1_filtered_4FGL_J1808.2+3500_weekly_bin907.fits evtable="EVENTS" scfile=/lscratch/kocevski/17775655/ft2_4FGL_J1808.2+3500_weekly_bin907.fits sctable="SC_DATA" expcube=/lscratch/kocevski/17775655/ltcube_787536001_788140801_4FGL_J1808.2+3500_weekly_bin907.fits outfile=/lscratch/kocevski/17775655/expmap_787536001_788140801_4FGL_J1808.2+3500_weekly_bin907.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/17775655/ltcube_787536001_788140801_4FGL_J1808.2+3500_weekly_bin907.fits
.....................!
real 71.01
user 66.21
sys 4.00

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

Setting source of interest to:
4FGL J1808.2+3500 @ 272.066 35.0104

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/17775655/ft1_filtered_4FGL_J1808.2+3500_weekly_bin907.fits scfile=/lscratch/kocevski/17775655/ft2_4FGL_J1808.2+3500_weekly_bin907.fits outfile=/lscratch/kocevski/17775655/cmap_787536001_788140801_4FGL_J1808.2+3500_weekly_bin907.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=272.066 yref=35.0104 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.24
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/17775655/ft1_filtered_4FGL_J1808.2+3500_weekly_bin907.fits scfile=/lscratch/kocevski/17775655/ft2_4FGL_J1808.2+3500_weekly_bin907.fits outfile=/lscratch/kocevski/17775655/cmap_HighResolution_787536001_788140801_4FGL_J1808.2+3500_weekly_bin907.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=272.066 yref=35.0104 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.23
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/17775655/ft1_filtered_4FGL_J1808.2+3500_weekly_bin907.fits evtable="EVENTS" scfile=/lscratch/kocevski/17775655/ft2_4FGL_J1808.2+3500_weekly_bin907.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/17775655/Model_4FGL_J1808.2+3500_weekly_bin907.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/17775655/ft1_filtered_4FGL_J1808.2+3500_weekly_bin907.fits.....................!
real 67.44
user 65.43
sys 1.16

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/17775655/ft1_filtered_4FGL_J1808.2+3500_weekly_bin907.fits', '/lscratch/kocevski/17775655/ft2_4FGL_J1808.2+3500_weekly_bin907.fits', expMap='/lscratch/kocevski/17775655/expmap_787536001_788140801_4FGL_J1808.2+3500_weekly_bin907.fits', expCube='/lscratch/kocevski/17775655/ltcube_787536001_788140801_4FGL_J1808.2+3500_weekly_bin907.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/17775655/Model_4FGL_J1808.2+3500_weekly_bin907.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1808.2+3500'

4FGL J1808.2+3500
   Spectrum: PowerLaw
358    Prefactor:  1.117e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
359        Index:  2.260e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
360        Scale:  1.888e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/17775655/ft1_filtered_4FGL_J1808.2+3500_weekly_bin907.fits
Spacecraft file(s): /lscratch/kocevski/17775655/ft2_4FGL_J1808.2+3500_weekly_bin907.fits
Exposure map: /lscratch/kocevski/17775655/expmap_787536001_788140801_4FGL_J1808.2+3500_weekly_bin907.fits
Exposure cube: /lscratch/kocevski/17775655/ltcube_787536001_788140801_4FGL_J1808.2+3500_weekly_bin907.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/17775655/Model_4FGL_J1808.2+3500_weekly_bin907.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) = 20786.1915441

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .63129       1.0000          .0000       .10000E+07
     2 'norm      '    10.401       1.0000          .0000       .10000E+07
     3 'Prefactor '    .46109E-03   1.0000          .0000       .10000E+07
     4 'Prefactor '    .10653E-02   1.0000          .0000       .10000E+07
     5 'Prefactor '    .10525E-04   1.0000          .0000       .10000E+07
     6 'Prefactor '    .23291E-03   1.0000          .0000       .10000E+07
     7 'Prefactor '    6.3758       1.0000          .0000       .10000E+07
     8 'Prefactor '    31.264       1.0000          .0000       .10000E+07
     9 'Prefactor '    .22073E-04   1.0000          .0000       .10000E+07
    10 'norm      '    .47240E-07   1.0000          .0000       .10000E+07
    11 'norm      '    .35513E-02   1.0000          .0000       .10000E+07
    12 'norm      '    .93171E-04   1.0000          .0000       .10000E+07
    13 'Prefactor '    4.4668       1.0000          .0000       .10000E+07
    14 'norm      '    .18049       1.0000          .0000       .10000E+07
    15 'Prefactor '    2.5300       1.0000          .0000       .10000E+07
    16 'Prefactor '    .14759E-04   1.0000          .0000       .10000E+07
    17 'Prefactor '    13.831       1.0000          .0000       .10000E+07
    18 'norm      '    .19800E-02   1.0000          .0000       .10000E+07
    19 'norm      '    3.0671       1.0000          .0000       .10000E+07
    20 'norm      '    .12108E-05   1.0000          .0000       .10000E+07
    21 'Prefactor '    .29541E-01   1.0000          .0000       .10000E+07
    22 'Prefactor '    12.757       1.0000          .0000       .10000E+07
    23 'Normalizat'    .88132       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0518       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6770E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   20786.06     FROM MIGRAD    STATUS=CONVERGED    188 CALLS     1657 TOTAL
                     EDM=   .46E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .63690        9.3819        .26445E-06   -.21647E-02
   2  norm          10.428        3.7467       -.36719E-07   -.65791E-03
   3  Prefactor      .0000        20.964       -.26278E-06** at limit **
   4  Prefactor     .44964E-07    38.766       -.30439E-06** at limit **
   5  Prefactor      .0000        1.8932        .87212E-07** at limit **
   6  Prefactor     .78826E-08    4.1909       -.74831E-07** at limit **
   7  Prefactor     6.0384        4.2194       -.23449E-07    .95469E-02
   8  Prefactor     32.531        17.559        .26555E-07   -.24590E-02
   9  Prefactor     .54956E-08    4.9415       -.21361E-07** at limit **
  10  norm           .0000        .65746       -.22230E-07** at limit **
  11  norm          .55511E-10    6.5928       -.21270E-06** at limit **
  12  norm          .16986E-07    6.4272        .24610E-09** at limit **
  13  Prefactor     4.4408        3.0986        .43901E-07    .17200E-02
  14  norm          .17287        6.9552       -.17447E-07** at limit **
  15  Prefactor     2.5479        2.9360        .47732E-07    .17089E-02
  16  Prefactor     .35749E-07    49.699       -.24431E-06** at limit **
  17  Prefactor     13.794        5.5752        .20498E-07   -.14027E-02
  18  norm          .11102E-07    15.514       -.16559E-06** at limit **
  19  norm          3.0696        1.8799       -.29872E-07   -.18369E-02
  20  norm           .0000        2.8895       -.23848E-07** at limit **
  21  Prefactor     .35361E-06    1.2556       -.25989E-07** at limit **
  22  Prefactor     12.417        13.889       -.11499E-06    .20128E-01
  23  Normalizat    .88081        .15468        .14001E-05    .83797E-04
  24  Prefactor     1.0521        .71540E-01   -.28949E-06    .11839E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.636896
  norm       = 10.4282
  Prefactor  = 0
  Prefactor  = 4.4964e-08
  Prefactor  = 0
  Prefactor  = 7.88258e-09
  Prefactor  = 6.03836
  Prefactor  = 32.5309
  Prefactor  = 5.4956e-09
  norm       = 0
  norm       = 5.55112e-11
  norm       = 1.69864e-08
  Prefactor  = 4.44078
  norm       = 0.172867
  Prefactor  = 2.54787
  Prefactor  = 3.57492e-08
  Prefactor  = 13.7943
  norm       = 1.11022e-08
  norm       = 3.06957
  norm       = 0
  Prefactor  = 3.53606e-07
  Prefactor  = 12.4171
  Normalizat = 0.880809
  Prefactor  = 1.05208
 **********
 **   18 **HESSE 
 **********

 FCN=   20786.06     FROM HESSE     STATUS=OK           463 CALLS     2120 TOTAL
                     EDM=   .82E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .63690        9.3245        .66471E-03   -1.5692    
   2  norm          10.428        3.7665        .31043E-03   -1.5643    
   3  Prefactor      .0000        20.970        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .44964E-07    39.821        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor      .0000        1.8905        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .78826E-08    4.2597        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     6.0384        18.150        .39727E-03   -1.5659    
   8  Prefactor     32.531        36.925        .17887E-03   -1.5594    
   9  Prefactor     .54956E-08    4.9067        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm           .0000        .63851        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .55511E-10    6.5923        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .16986E-07    6.5120        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     4.4408        3.0982        .47619E-03   -1.5666    
  14  norm          .17287        2.5974        .81677E-02   -1.5700    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     2.5479        2.9616        .64189E-03   -1.5676    
  16  Prefactor     .35749E-07    62.501        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     13.794        5.6154        .26906E-03   -1.5634    
  18  norm          .11102E-07    15.697        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          3.0696        2.2756        .57896E-03   -1.5673    
  20  norm           .0000        .56453        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .35361E-06    2.0606        .12353E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     12.417        14.407        .28020E-03   -1.5637    
  23  Normalizat    .88081        .13529        .85145E-01   -.97138    
  24  Prefactor     1.0521        .61752E-01    .39804E-01   -.91013    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.1588e-07
Minuit parameter uncertainties:
  1  4.87391
  2  3.76652
  3  5.72852e-06
  4  0.00267676
  5  6.76802e-06
  6  0.000366164
  7  18.1499
  8  36.925
  9  0.000328254
  10  1.43336e-06
  11  4.24064e-05
  12  0.000664746
  13  3.09815
  14  1.34016
  15  2.9616
  16  0.00298988
  17  5.61537
  18  0.000835423
  19  2.27557
  20  8.82191e-07
  21  0.00170715
  22  14.4071
  23  0.13534
  24  0.0617557
Done.

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

Extracting fit parameters...

4FGL J1808.2+3500
   Spectrum: PowerLaw
358    Prefactor:  4.441e+00  3.098e+00  0.000e+00  1.000e+06 ( 1.000e-13)
359        Index:  2.260e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
360        Scale:  1.888e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
674    Prefactor:  1.052e+00  6.176e-02  0.000e+00  1.000e+01 ( 1.000e+00)
675        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
676        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
673   Normalization:  8.808e-01  1.353e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.65
Ra Dec: 272.066 35.010
Photon Index (Fixed Index): 2.26 +/- 0.00
Photon Flux (Fixed Index): 2.70e-08 +/- 1.88e-08
Energy Flux (Fixed Index): 1.09e-05 +/- 7.60e-06

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) = 20785.9157946
delta logL = 0.147841804926

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 20785.9025822
delta logL = 0.161054115637

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.2166       1.0000          .0000       .10000E+07
     2 'Index     '    1.8976       1.0000          .0000       10.000    
     3 'Normalizat'    .89401       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0496       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6770E+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=   20785.90     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      270 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.2167        4.1447        .17595E-04   -.28947E-02
   2  Index         1.8981        .68006        .10984E-01   -.78696E-04
   3  Normalizat    .89399        .15164        .37449E-03    .10200E-03
   4  Prefactor     1.0496        .69351E-01    .15969E-03    .24279E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.21674
  Index      = 1.89806
  Normalizat = 0.893989
  Prefactor  = 1.04958
 **********
 **   18 **HESSE 
 **********

 FCN=   20785.90     FROM HESSE     STATUS=OK            25 CALLS      295 TOTAL
                     EDM=   .29E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.2167        4.1502        .70380E-06   -1.5662    
   2  Index         1.8981        .68058        .43938E-03   -.66924    
   3  Normalizat    .89399        .15164        .14979E-04   -.96672    
   4  Prefactor     1.0496        .69385E-01    .31939E-04   -.91094    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.91118e-10
Minuit parameter uncertainties:
  1  4.15016
  2  0.684043
  3  0.151712
  4  0.0693912
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) = 20785.9025817
delta logL = 0.161054703978

Extracting fit parameters...

4FGL J1808.2+3500
   Spectrum: PowerLaw
358    Prefactor:  5.217e+00  4.150e+00  0.000e+00  1.000e+06 ( 1.000e-13)
359        Index:  1.898e+00  6.840e-01  0.000e+00  1.000e+01 (-1.000e+00)
360        Scale:  1.888e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
674    Prefactor:  1.050e+00  6.939e-02  0.000e+00  1.000e+01 ( 1.000e+00)
675        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
676        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
673   Normalization:  8.940e-01  1.517e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.96
Ra Dec: 272.066 35.010
Photon Index (Free Index): 1.90 +/- 0.68
Photon Flux (Free Index): 1.53e-08 +/- 2.33e-08
Energy Flux (Free Index): 1.38e-05 +/- 1.36e-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/17775655/cmap_HighResolution_787536001_788140801_4FGL_J1808.2+3500_weekly_bin907.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.70e-08', energy_flux2='1.38e-05', photon_flux_error='1.88e-08', dlogl='1.61e-01', energy_flux='1.09e-05', photon_flux2='1.53e-08', job_status='DONE', time_completed='2025-12-23 02:26:49.644386', photon_index_error2='0.68', photon_index2='1.90', ts='5.65', fit_tolerance='1e-08', GAL='1.05', photon_index_error='0.00', energy_flux_error2='1.36e-05', EG='0.88', time_epoch_completed='1766485609.64', return_code='0', job_id='17775655', GAL2='1.05', EG2='0.89', return_code2='0', energy_flux_error='7.60e-06', photon_flux_error2='2.33e-08', ts2='5.96', photon_index='2.26' WHERE bin_id='907' AND source_name='4FGL J1808.2+3500' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Dec 23 02:26:50 PST 2025

