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


Performing analysis on: 4FGL_J1517.7+6525_weekly_bin802
RA = 229.436, Dec = 65.424
tmin = 724032001, tmax = 724636801
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='36606831', job_status='RUN', time_executed='2023-12-19 00:55:55.727364', time_epoch_executed='1702976155.73' WHERE source_name='4FGL J1517.7+6525' and cadence='weekly' and bin_id='802'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/36606831

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/36606831/ft1_4FGL_J1517.7+6525_weekly_bin802.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/36606831/ft2_4FGL_J1517.7+6525_weekly_bin802.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/36606831/ft1_4FGL_J1517.7+6525_weekly_bin802.fits outfile=/lscratch/kocevski/36606831/ft1_filteredMKT_4FGL_J1517.7+6525_weekly_bin802.fits ra=229.436 dec=65.424 rad=12.0 tmin=724032001.0 tmax=724636801.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.48
user 4.22
sys 0.20

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/36606831/ft2_4FGL_J1517.7+6525_weekly_bin802.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/36606831/ft2_4FGL_J1517.7+6525_weekly_bin802.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/36606831/ft1_filteredMKT_4FGL_J1517.7+6525_weekly_bin802.fits evtable="EVENTS" outfile="/lscratch/kocevski/36606831/ft1_filtered_4FGL_J1517.7+6525_weekly_bin802.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.38
user 0.21
sys 0.13

Number of photons that the gtmktime cut: 1570

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/36606831/ft1_filtered_4FGL_J1517.7+6525_weekly_bin802.fits" evtable="EVENTS" scfile=/lscratch/kocevski/36606831/ft2_4FGL_J1517.7+6525_weekly_bin802.fits sctable="SC_DATA" outfile=/lscratch/kocevski/36606831/ltcube_724032001_724636801_4FGL_J1517.7+6525_weekly_bin802.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/36606831/ft2_4FGL_J1517.7+6525_weekly_bin802.fits
.....................!
real 28.37
user 27.94
sys 0.24

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/36606831/ft1_filtered_4FGL_J1517.7+6525_weekly_bin802.fits evtable="EVENTS" scfile=/lscratch/kocevski/36606831/ft2_4FGL_J1517.7+6525_weekly_bin802.fits sctable="SC_DATA" expcube=/lscratch/kocevski/36606831/ltcube_724032001_724636801_4FGL_J1517.7+6525_weekly_bin802.fits outfile=/lscratch/kocevski/36606831/expmap_724032001_724636801_4FGL_J1517.7+6525_weekly_bin802.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/36606831/ltcube_724032001_724636801_4FGL_J1517.7+6525_weekly_bin802.fits
.....................!
real 65.74
user 62.03
sys 3.45

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

Setting source of interest to:
4FGL J1517.7+6525 @ 229.436 65.424

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/36606831/ft1_filtered_4FGL_J1517.7+6525_weekly_bin802.fits scfile=/lscratch/kocevski/36606831/ft2_4FGL_J1517.7+6525_weekly_bin802.fits outfile=/lscratch/kocevski/36606831/cmap_724032001_724636801_4FGL_J1517.7+6525_weekly_bin802.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=229.436 yref=65.424 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.39
user 0.23
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/36606831/ft1_filtered_4FGL_J1517.7+6525_weekly_bin802.fits scfile=/lscratch/kocevski/36606831/ft2_4FGL_J1517.7+6525_weekly_bin802.fits outfile=/lscratch/kocevski/36606831/cmap_HighResolution_724032001_724636801_4FGL_J1517.7+6525_weekly_bin802.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=229.436 yref=65.424 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.40
user 0.22
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/36606831/ft1_filtered_4FGL_J1517.7+6525_weekly_bin802.fits evtable="EVENTS" scfile=/lscratch/kocevski/36606831/ft2_4FGL_J1517.7+6525_weekly_bin802.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/36606831/Model_4FGL_J1517.7+6525_weekly_bin802.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/36606831/ft1_filtered_4FGL_J1517.7+6525_weekly_bin802.fits.....................!
real 50.39
user 49.46
sys 0.69

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/36606831/ft1_filtered_4FGL_J1517.7+6525_weekly_bin802.fits', '/lscratch/kocevski/36606831/ft2_4FGL_J1517.7+6525_weekly_bin802.fits', expMap='/lscratch/kocevski/36606831/expmap_724032001_724636801_4FGL_J1517.7+6525_weekly_bin802.fits', expCube='/lscratch/kocevski/36606831/ltcube_724032001_724636801_4FGL_J1517.7+6525_weekly_bin802.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/36606831/Model_4FGL_J1517.7+6525_weekly_bin802.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1517.7+6525'

4FGL J1517.7+6525
   Spectrum: PowerLaw
340    Prefactor:  8.633e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-14)
341        Index:  1.816e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
342        Scale:  3.014e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/36606831/ft1_filtered_4FGL_J1517.7+6525_weekly_bin802.fits
Spacecraft file(s): /lscratch/kocevski/36606831/ft2_4FGL_J1517.7+6525_weekly_bin802.fits
Exposure map: /lscratch/kocevski/36606831/expmap_724032001_724636801_4FGL_J1517.7+6525_weekly_bin802.fits
Exposure cube: /lscratch/kocevski/36606831/ltcube_724032001_724636801_4FGL_J1517.7+6525_weekly_bin802.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/36606831/Model_4FGL_J1517.7+6525_weekly_bin802.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) = 16838.0792992

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.7493       1.0000          .0000       .10000E+07
     2 'Prefactor '    .67116E-02   1.0000          .0000       .10000E+07
     3 'Prefactor '    3.5778       1.0000          .0000       .10000E+07
     4 'Prefactor '    6.4644       1.0000          .0000       .10000E+07
     5 'Prefactor '    5.1518       1.0000          .0000       .10000E+07
     6 'Prefactor '    .34243E-02   1.0000          .0000       .10000E+07
     7 'Prefactor '    .82147E-03   1.0000          .0000       .10000E+07
     8 'Prefactor '    .10938       1.0000          .0000       .10000E+07
     9 'Prefactor '    .16126E-01   1.0000          .0000       .10000E+07
    10 'Prefactor '    .80358E-06   1.0000          .0000       .10000E+07
    11 'Prefactor '    33.277       1.0000          .0000       .10000E+07
    12 'Prefactor '    4.3743       1.0000          .0000       .10000E+07
    13 'Prefactor '    23.971       1.0000          .0000       .10000E+07
    14 'norm      '    2.3197       1.0000          .0000       .10000E+07
    15 'Prefactor '    .29209       1.0000          .0000       .10000E+07
    16 'Prefactor '    3.5113       1.0000          .0000       .10000E+07
    17 'norm      '    .30035E-05   1.0000          .0000       .10000E+07
    18 'Prefactor '    .58510E-05   1.0000          .0000       .10000E+07
    19 'Prefactor '    40.028       1.0000          .0000       .10000E+07
    20 'Prefactor '    6.1076       1.0000          .0000       .10000E+07
    21 'norm      '    5.9660       1.0000          .0000       .10000E+07
    22 'norm      '    2.4242       1.0000          .0000       .10000E+07
    23 'Prefactor '    .30471E-01   1.0000          .0000       .10000E+07
    24 'Prefactor '    .46130E-03   1.0000          .0000       .10000E+07
    25 'Normalizat'    1.0879       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .86907       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=   16838.07     FROM MIGRAD    STATUS=CONVERGED    135 CALLS     2219 TOTAL
                     EDM=   .53E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.5346        2.5292        .17418E-06   -.38775E-02
   2  Prefactor     .13323E-08    8.0200        .36437E-05** at limit **
   3  Prefactor     3.5858        2.5266       -.59579E-06    .52196E-02
   4  Prefactor     6.2881        9.3511       -.16724E-05    .12299E-02
   5  Prefactor     5.1454        1.0727        .60760E-07   -.18075E-02
   6  Prefactor     .11102E-09    9.9031        .13484E-05** at limit **
   7  Prefactor      .0000        5.2855       -.97352E-06** at limit **
   8  Prefactor     .10193        .53044       -.17799E-06** at limit **
   9  Prefactor     .27756E-09    17.119       -.15316E-05** at limit **
  10  Prefactor     .55511E-10    1.1249       -.52691E-07** at limit **
  11  Prefactor     33.258        1.1556        .25130E-07   -.57495E-02
  12  Prefactor     4.3721        4.0121        .40189E-06    .80615E-03
  13  Prefactor     23.962        1.0424       -.85628E-08    .40986E-02
  14  norm          2.3213        1.3258        .40504E-06   -.89367E-03
  15  Prefactor     .38081E-07    42.476       -.78436E-05** at limit **
  16  Prefactor     3.5082        2.9486        .75176E-06   -.26519E-02
  17  norm           .0000        1.5405        .49375E-06** at limit **
  18  Prefactor     .31042E-06    78.371        .36318E-05** at limit **
  19  Prefactor     40.236        3.1244        .69438E-07   -.14195    
  20  Prefactor     6.0927        1.2603       -.19995E-06    .14228E-01
  21  norm          5.9327        4.5132        .68505E-06    .36237E-03
  22  norm          2.4240        .56955        .32620E-07   -.78444E-02
  23  Prefactor     .36696E-01    1.6155       -.23079E-06** at limit **
  24  Prefactor     .49960E-08    24.460        .15503E-05** at limit **
  25  Normalizat    1.0884        .11564        .69909E-05    .55497E-03
  26  Prefactor     .86889        .11554        .13922E-05    .63698E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.53461
  Prefactor  = 1.33227e-09
  Prefactor  = 3.58583
  Prefactor  = 6.28811
  Prefactor  = 5.1454
  Prefactor  = 1.11022e-10
  Prefactor  = 0
  Prefactor  = 0.10193
  Prefactor  = 2.77556e-10
  Prefactor  = 5.55112e-11
  Prefactor  = 33.2584
  Prefactor  = 4.37214
  Prefactor  = 23.9625
  norm       = 2.32127
  Prefactor  = 3.80806e-08
  Prefactor  = 3.50823
  norm       = 0
  Prefactor  = 3.10418e-07
  Prefactor  = 40.236
  Prefactor  = 6.09268
  norm       = 5.93271
  norm       = 2.424
  Prefactor  = 0.0366958
  Prefactor  = 4.996e-09
  Normalizat = 1.08835
  Prefactor  = 0.868889
 **********
 **   18 **HESSE 
 **********

 FCN=   16838.07     FROM HESSE     STATUS=OK           522 CALLS     2741 TOTAL
                     EDM=   .15E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.5346        101.86        .52119E-03   -1.5670    
   2  Prefactor     .13323E-08    8.0578        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     3.5858        2.5668        .53403E-03   -1.5670    
   4  Prefactor     6.2881        9.5138        .39450E-03   -1.5658    
   5  Prefactor     5.1454        14.113        .44269E-03   -1.5663    
   6  Prefactor     .11102E-09    9.9477        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor      .0000        5.2976        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10193        4.4560        .10435E-01   -1.5702    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .27756E-09    16.394        .17306E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .55511E-10    1.1350        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     33.258        32.579        .17337E-03   -1.5593    
  12  Prefactor     4.3721        4.0073        .48133E-03   -1.5666    
  13  Prefactor     23.962        15.232        .20429E-03   -1.5610    
  14  norm          2.3213        1.3281        .67322E-03   -1.5677    
  15  Prefactor     .38081E-07    42.543        .10324E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     3.5082        2.9437        .53928E-03   -1.5671    
  17  norm           .0000        1.5424        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .31042E-06    77.859        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     40.236        53.504        .15807E-03   -1.5581    
  20  Prefactor     6.0927        16.757        .40601E-03   -1.5659    
  21  norm          5.9327        4.5561        .41087E-03   -1.5659    
  22  norm          2.4240        .59648        .65707E-03   -1.5677    
  23  Prefactor     .36696E-01    1.3870        .10302E-01   -1.5704    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .49960E-08    24.394        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.0884        .99892E-01    .38516E-01   -.90127    
  26  Prefactor     .86889        .10055        .44610E-01   -.97237    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.45609e-06
Minuit parameter uncertainties:
  1  37.9497
  2  0.000207909
  3  2.56679
  4  9.51387
  5  14.1129
  6  6.22814e-05
  7  6.20852e-06
  8  1.34788
  9  0.000140112
  10  1.12889e-05
  11  32.5789
  12  4.00729
  13  15.2317
  14  1.32809
  15  0.00254502
  16  2.94368
  17  1.19827e-05
  18  0.00983248
  19  53.5049
  20  16.7573
  21  4.55607
  22  0.596478
  23  0.451216
  24  0.00069788
  25  0.099909
  26  0.100574
Done.

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

Extracting fit parameters...

4FGL J1517.7+6525
   Spectrum: PowerLaw
340    Prefactor:  2.396e+01  1.523e+01  0.000e+00  1.000e+06 ( 1.000e-14)
341        Index:  1.816e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
342        Scale:  3.014e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
674    Prefactor:  8.689e-01  1.006e-01  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:  1.088e+00  9.991e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.40
Ra Dec: 229.436 65.424
Photon Index (Fixed Index): 1.82 +/- 0.00
Photon Flux (Fixed Index): 1.42e-08 +/- 9.03e-09
Energy Flux (Fixed Index): 1.62e-05 +/- 1.03e-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) = 16838.0597552
delta logL = 0.012990337993

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 16838.0557026
delta logL = 0.0170429411264

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    22.631       1.0000          .0000       .10000E+07
     2 'Index     '    1.8917       1.0000          .0000       10.000    
     3 'Normalizat'    1.0869       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86920       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=   16838.06     FROM MIGRAD    STATUS=CONVERGED    108 CALLS      280 TOTAL
                     EDM=   .80E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     22.629        16.936        .84105E-05    .89538E-03
   2  Index         1.8918        .42455        .85073E-02    .85008E-04
   3  Normalizat    1.0869        .11174        .21892E-03    .31470E-03
   4  Prefactor     .86920        .11465        .24782E-03    .25562E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 22.6293
  Index      = 1.89184
  Normalizat = 1.08691
  Prefactor  = 0.869198
 **********
 **   18 **HESSE 
 **********

 FCN=   16838.06     FROM HESSE     STATUS=OK            25 CALLS      305 TOTAL
                     EDM=   .39E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     22.629        16.257        .16821E-05   -1.5613    
   2  Index         1.8918        .40763        .34029E-03   -.67083    
   3  Normalizat    1.0869        .11180        .87568E-05   -.90173    
   4  Prefactor     .86920        .11476        .99127E-05   -.97226    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.88094e-11
Minuit parameter uncertainties:
  1  16.257
  2  0.40837
  3  0.111827
  4  0.114791
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) = 16838.0557026
delta logL = 0.0170429710124

Extracting fit parameters...

4FGL J1517.7+6525
   Spectrum: PowerLaw
340    Prefactor:  2.263e+01  1.626e+01  0.000e+00  1.000e+06 ( 1.000e-14)
341        Index:  1.892e+00  4.084e-01  0.000e+00  1.000e+01 (-1.000e+00)
342        Scale:  3.014e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
674    Prefactor:  8.692e-01  1.148e-01  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:  1.087e+00  1.118e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.43
Ra Dec: 229.436 65.424
Photon Index (Free Index): 1.89 +/- 0.41
Photon Flux (Free Index): 1.59e-08 +/- 1.35e-08
Energy Flux (Free Index): 1.46e-05 +/- 1.22e-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/36606831/cmap_HighResolution_724032001_724636801_4FGL_J1517.7+6525_weekly_bin802.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.42e-08', energy_flux2='1.46e-05', photon_flux_error='9.03e-09', dlogl='1.70e-02', energy_flux='1.62e-05', photon_flux2='1.59e-08', job_status='DONE', time_completed='2023-12-19 01:05:56.543644', photon_index_error2='0.41', photon_index2='1.89', ts='8.40', fit_tolerance='1e-08', GAL='0.87', photon_index_error='0.00', energy_flux_error2='1.22e-05', EG='1.09', time_epoch_completed='1702976756.54', return_code='0', job_id='36606831', GAL2='0.87', EG2='1.09', return_code2='0', energy_flux_error='1.03e-05', photon_flux_error2='1.35e-08', ts2='8.43', photon_index='1.82' WHERE bin_id='802' AND source_name='4FGL J1517.7+6525' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Dec 19 01:05:56 PST 2023

