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


Performing analysis on: 4FGL_J1808.2+3500_weekly_bin908
RA = 272.066, Dec = 35.0104
tmin = 788140801, tmax = 788745601
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='18161048', job_status='RUN', time_executed='2025-12-30 02:43:43.803628', time_epoch_executed='1767091423.8' WHERE source_name='4FGL J1808.2+3500' and cadence='weekly' and bin_id='908'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/18161048

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/18161048/ft1_4FGL_J1808.2+3500_weekly_bin908.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/18161048/ft2_4FGL_J1808.2+3500_weekly_bin908.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/18161048/ft1_4FGL_J1808.2+3500_weekly_bin908.fits outfile=/lscratch/kocevski/18161048/ft1_filteredMKT_4FGL_J1808.2+3500_weekly_bin908.fits ra=272.066 dec=35.0104 rad=12.0 tmin=788140801.0 tmax=788745601.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.19
user 4.29
sys 0.26

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

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/18161048/ft2_4FGL_J1808.2+3500_weekly_bin908.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/18161048/ft1_filteredMKT_4FGL_J1808.2+3500_weekly_bin908.fits evtable="EVENTS" outfile="/lscratch/kocevski/18161048/ft1_filtered_4FGL_J1808.2+3500_weekly_bin908.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.90
user 0.23
sys 0.13

Number of photons that the gtmktime cut: 2263

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/18161048/ft1_filtered_4FGL_J1808.2+3500_weekly_bin908.fits" evtable="EVENTS" scfile=/lscratch/kocevski/18161048/ft2_4FGL_J1808.2+3500_weekly_bin908.fits sctable="SC_DATA" outfile=/lscratch/kocevski/18161048/ltcube_788140801_788745601_4FGL_J1808.2+3500_weekly_bin908.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/18161048/ft2_4FGL_J1808.2+3500_weekly_bin908.fits
.....................!
real 18.77
user 17.96
sys 0.22

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/18161048/ft1_filtered_4FGL_J1808.2+3500_weekly_bin908.fits evtable="EVENTS" scfile=/lscratch/kocevski/18161048/ft2_4FGL_J1808.2+3500_weekly_bin908.fits sctable="SC_DATA" expcube=/lscratch/kocevski/18161048/ltcube_788140801_788745601_4FGL_J1808.2+3500_weekly_bin908.fits outfile=/lscratch/kocevski/18161048/expmap_788140801_788745601_4FGL_J1808.2+3500_weekly_bin908.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/18161048/ltcube_788140801_788745601_4FGL_J1808.2+3500_weekly_bin908.fits
.....................!
real 69.58
user 64.61
sys 4.03

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/18161048/ft1_filtered_4FGL_J1808.2+3500_weekly_bin908.fits scfile=/lscratch/kocevski/18161048/ft2_4FGL_J1808.2+3500_weekly_bin908.fits outfile=/lscratch/kocevski/18161048/cmap_788140801_788745601_4FGL_J1808.2+3500_weekly_bin908.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.78
user 0.23
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/18161048/ft1_filtered_4FGL_J1808.2+3500_weekly_bin908.fits scfile=/lscratch/kocevski/18161048/ft2_4FGL_J1808.2+3500_weekly_bin908.fits outfile=/lscratch/kocevski/18161048/cmap_HighResolution_788140801_788745601_4FGL_J1808.2+3500_weekly_bin908.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.82
user 0.23
sys 0.14

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

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/18161048/ft1_filtered_4FGL_J1808.2+3500_weekly_bin908.fits', '/lscratch/kocevski/18161048/ft2_4FGL_J1808.2+3500_weekly_bin908.fits', expMap='/lscratch/kocevski/18161048/expmap_788140801_788745601_4FGL_J1808.2+3500_weekly_bin908.fits', expCube='/lscratch/kocevski/18161048/ltcube_788140801_788745601_4FGL_J1808.2+3500_weekly_bin908.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/18161048/Model_4FGL_J1808.2+3500_weekly_bin908.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/18161048/ft1_filtered_4FGL_J1808.2+3500_weekly_bin908.fits
Spacecraft file(s): /lscratch/kocevski/18161048/ft2_4FGL_J1808.2+3500_weekly_bin908.fits
Exposure map: /lscratch/kocevski/18161048/expmap_788140801_788745601_4FGL_J1808.2+3500_weekly_bin908.fits
Exposure cube: /lscratch/kocevski/18161048/ltcube_788140801_788745601_4FGL_J1808.2+3500_weekly_bin908.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/18161048/Model_4FGL_J1808.2+3500_weekly_bin908.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) = 23527.562779

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.4921       1.0000          .0000       .10000E+07
     2 'norm      '    12.544       1.0000          .0000       .10000E+07
     3 'Prefactor '    54.775       1.0000          .0000       .10000E+07
     4 'Prefactor '    .48932E-04   1.0000          .0000       .10000E+07
     5 'Prefactor '    .13369E-03   1.0000          .0000       .10000E+07
     6 'Prefactor '    3.0403       1.0000          .0000       .10000E+07
     7 'Prefactor '    7.4334       1.0000          .0000       .10000E+07
     8 'Prefactor '    56.791       1.0000          .0000       .10000E+07
     9 'Prefactor '    2.3487       1.0000          .0000       .10000E+07
    10 'norm      '    .82157E-08   1.0000          .0000       .10000E+07
    11 'norm      '    .45835E-03   1.0000          .0000       .10000E+07
    12 'norm      '    2.3104       1.0000          .0000       .10000E+07
    13 'Prefactor '    1.4826       1.0000          .0000       .10000E+07
    14 'norm      '    6.4809       1.0000          .0000       .10000E+07
    15 'Prefactor '    .16597E-05   1.0000          .0000       .10000E+07
    16 'Prefactor '    .39191E-07   1.0000          .0000       .10000E+07
    17 'Prefactor '    7.3550       1.0000          .0000       .10000E+07
    18 'norm      '    21.089       1.0000          .0000       .10000E+07
    19 'norm      '    2.5180       1.0000          .0000       .10000E+07
    20 'norm      '    .39495E-05   1.0000          .0000       .10000E+07
    21 'Prefactor '    .33268E-06   1.0000          .0000       .10000E+07
    22 'Prefactor '    .15043E-03   1.0000          .0000       .10000E+07
    23 'Normalizat'    .87108       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.1135       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=   23527.55     FROM MIGRAD    STATUS=CONVERGED    169 CALLS     2023 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.4752        3.0675       -.68018E-07   -.36646E-02
   2  norm          12.528        3.8642       -.27050E-07    .12603E-02
   3  Prefactor     54.754        5.9528       -.20241E-06   -.20487E-01
   4  Prefactor     .27200E-08    10.808       -.21035E-06** at limit **
   5  Prefactor     .38858E-09    3.0654        .29299E-07** at limit **
   6  Prefactor     3.0546        4.8468        .87816E-07   -.16557E-02
   7  Prefactor     7.3419        11.619       -.12439E-05    .21195E-03
   8  Prefactor     57.096        44.469        .17936E-05   -.36624E-01
   9  Prefactor     2.3493        4.5865       -.13483E-06    .74006E-03
  10  norm           .0000        .31321       -.55806E-07** at limit **
  11  norm          .22260E-07    15.116       -.45669E-06** at limit **
  12  norm          2.3236        3.8115       -.33646E-07   -.38703E-02
  13  Prefactor     1.4826        1.8392        .36380E-07   -.12503E-02
  14  norm          6.4963        4.2249        .85469E-07    .45755E-03
  15  Prefactor      .0000        1.5812        .10305E-06** at limit **
  16  Prefactor     .35527E-07    3.4040        .28651E-05** at limit **
  17  Prefactor     7.3404        4.7810        .25236E-07    .49137E-02
  18  norm          20.905        6.5441        .51723E-06   -.17396    
  19  norm          2.5201        1.5648       -.54990E-07    .28419E-02
  20  norm          .62728E-08    4.7337       -.13578E-05** at limit **
  21  Prefactor     .55511E-10    2.4704        .41040E-06** at limit **
  22  Prefactor     .39635E-07    3.6303       -.23326E-05** at limit **
  23  Normalizat    .87104        .15034        .10854E-06    .12826E-03
  24  Prefactor     1.1135        .69775E-01    .12522E-05    .54301E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.47524
  norm       = 12.5283
  Prefactor  = 54.7543
  Prefactor  = 2.72005e-09
  Prefactor  = 3.88578e-10
  Prefactor  = 3.05463
  Prefactor  = 7.34187
  Prefactor  = 57.0957
  Prefactor  = 2.34927
  norm       = 0
  norm       = 2.226e-08
  norm       = 2.3236
  Prefactor  = 1.48262
  norm       = 6.49634
  Prefactor  = 0
  Prefactor  = 3.55271e-08
  Prefactor  = 7.34044
  norm       = 20.905
  norm       = 2.52009
  norm       = 6.27276e-09
  Prefactor  = 5.55112e-11
  Prefactor  = 3.9635e-08
  Normalizat = 0.871042
  Prefactor  = 1.11349
 **********
 **   18 **HESSE 
 **********

 FCN=   23527.55     FROM HESSE     STATUS=OK           451 CALLS     2474 TOTAL
                     EDM=   .35E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.4752        3.1147        .87716E-03   -1.5684    
   2  norm          12.528        4.1108        .28257E-03   -1.5637    
   3  Prefactor     54.754        42.715        .13513E-03   -1.5560    
   4  Prefactor     .27200E-08    10.824        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .38858E-09    3.0610        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     3.0546        4.8711        .58166E-03   -1.5673    
   7  Prefactor     7.3419        19.990        .36762E-03   -1.5654    
   8  Prefactor     57.096        47.147        .13271E-03   -1.5557    
   9  Prefactor     2.3493        4.5932        .66861E-03   -1.5677    
  10  norm           .0000        .31245        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .22260E-07    15.151        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          2.3236        3.8445        .67472E-03   -1.5677    
  13  Prefactor     1.4826        1.8657        .88094E-03   -1.5684    
  14  norm          6.4963        4.2247        .39399E-03   -1.5657    
  15  Prefactor      .0000        1.5582        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .35527E-07    3.4561        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     7.3404        4.8080        .36959E-03   -1.5654    
  18  norm          20.905        20.715        .21782E-03   -1.5617    
  19  norm          2.5201        1.7611        .64356E-03   -1.5676    
  20  norm          .62728E-08    .41888        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .55511E-10    2.4640        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .39635E-07    3.6811        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .87104        .13453        .88632E-01   -.97485    
  24  Prefactor     1.1135        .60940E-01    .37096E-01   -.89036    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.52163e-06
Minuit parameter uncertainties:
  1  3.11467
  2  4.11084
  3  42.7153
  4  0.000344891
  5  7.0236e-05
  6  4.87106
  7  19.9899
  8  47.147
  9  4.59322
  10  1.3177e-06
  11  0.00116149
  12  3.84452
  13  1.86575
  14  4.22475
  15  2.03378e-06
  16  0.000700552
  17  4.80798
  18  20.7149
  19  1.76105
  20  0.000102314
  21  2.13131e-05
  22  0.000763948
  23  0.13458
  24  0.0609435
Done.

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

Extracting fit parameters...

4FGL J1808.2+3500
   Spectrum: PowerLaw
358    Prefactor:  1.483e+00  1.866e+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.113e+00  6.094e-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.710e-01  1.346e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.05
Ra Dec: 272.066 35.010
Photon Index (Fixed Index): 2.26 +/- 0.00
Photon Flux (Fixed Index): 9.01e-09 +/- 1.13e-08
Energy Flux (Fixed Index): 3.64e-06 +/- 4.58e-06

TS (Fixed Index): 1.05
Ra Dec: 272.066 35.010
Photon Flux Upper Limit: 3.95640796371e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00302773038028 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/18161048/likelihoodResults_788140801_788745601_4FGL_J1808.2+3500_weekly_bin908.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) = 23527.0287267
delta logL = 0.525993082305

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 23526.9881751
delta logL = 0.566544687288

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.9305       1.0000          .0000       .10000E+07
     2 'Index     '    1.5492       1.0000          .0000       10.000    
     3 'Normalizat'    .87781       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1114       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   23526.99     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      291 TOTAL
                     EDM=   .32E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.9300        2.8782        .11862E-03   -.85104E-04
   2  Index         1.5493        .55976        .17993E-01   -.34270E-05
   3  Normalizat    .87781        .14650        .39108E-03   -.17442E-05
   4  Prefactor     1.1115        .68166E-01    .16246E-03    .11197E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.93002
  Index      = 1.54927
  Normalizat = 0.877815
  Prefactor  = 1.11146
 **********
 **   18 **HESSE 
 **********

 FCN=   23526.99     FROM HESSE     STATUS=OK            27 CALLS      318 TOTAL
                     EDM=   .96E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.9300        2.8862        .47450E-05   -1.5674    
   2  Index         1.5493        .56175        .71974E-03   -.76169    
   3  Normalizat    .87781        .14660        .15643E-04   -.97244    
   4  Prefactor     1.1115        .68214E-01    .64983E-05   -.89101    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.57924e-14
Minuit parameter uncertainties:
  1  2.88616
  2  0.564033
  3  0.146665
  4  0.0682197
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) = 23526.9881751
delta logL = 0.56654473623

Extracting fit parameters...

4FGL J1808.2+3500
   Spectrum: PowerLaw
358    Prefactor:  2.930e+00  2.886e+00  0.000e+00  1.000e+06 ( 1.000e-13)
359        Index:  1.549e+00  5.640e-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.111e+00  6.822e-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.778e-01  1.467e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.18
Ra Dec: 272.066 35.010
Photon Index (Free Index): 1.55 +/- 0.56
Photon Flux (Free Index): 4.94e-09 +/- 6.25e-09
Energy Flux (Free Index): 1.32e-05 +/- 1.95e-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/18161048/cmap_HighResolution_788140801_788745601_4FGL_J1808.2+3500_weekly_bin908.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.03e-03', comment='SUCCESS', photon_flux='9.01e-09', energy_flux2='1.32e-05', photon_flux_error='1.13e-08', dlogl='5.67e-01', energy_flux='3.64e-06', photon_flux2='4.94e-09', job_status='DONE', time_completed='2025-12-30 03:00:30.663703', photon_index_error2='0.56', photon_index2='1.55', ts='1.05', fit_tolerance='1e-08', GAL='1.11', photon_index_error='0.00', photon_flux_upper_limit='3.96e-08', energy_flux_error2='1.95e-05', EG='0.87', time_epoch_completed='1767092430.66', return_code='0', job_id='18161048', GAL2='1.11', EG2='0.88', return_code2='0', energy_flux_error='4.58e-06', photon_flux_error2='6.25e-09', ts2='2.18', photon_index='2.26' WHERE bin_id='908' AND source_name='4FGL J1808.2+3500' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Dec 30 03:00:30 PST 2025

