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


Performing analysis on: 4FGL_J1516.8+3651_weekly_bin853
RA = 229.222, Dec = 36.8505
tmin = 754876801, tmax = 755481601
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='59978135', job_status='RUN', time_executed='2024-12-10 00:51:19.196517', time_epoch_executed='1733820679.2' WHERE source_name='4FGL J1516.8+3651' and cadence='weekly' and bin_id='853'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/59978135

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/59978135/ft1_4FGL_J1516.8+3651_weekly_bin853.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/59978135/ft2_4FGL_J1516.8+3651_weekly_bin853.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/59978135/ft1_4FGL_J1516.8+3651_weekly_bin853.fits outfile=/lscratch/kocevski/59978135/ft1_filteredMKT_4FGL_J1516.8+3651_weekly_bin853.fits ra=229.222 dec=36.8505 rad=12.0 tmin=754876801.0 tmax=755481601.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 3.24
user 2.90
sys 0.27

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/59978135/ft2_4FGL_J1516.8+3651_weekly_bin853.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/59978135/ft2_4FGL_J1516.8+3651_weekly_bin853.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/59978135/ft1_filteredMKT_4FGL_J1516.8+3651_weekly_bin853.fits evtable="EVENTS" outfile="/lscratch/kocevski/59978135/ft1_filtered_4FGL_J1516.8+3651_weekly_bin853.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.39
user 0.21
sys 0.14

Number of photons that the gtmktime cut: 2122

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/59978135/ft1_filtered_4FGL_J1516.8+3651_weekly_bin853.fits" evtable="EVENTS" scfile=/lscratch/kocevski/59978135/ft2_4FGL_J1516.8+3651_weekly_bin853.fits sctable="SC_DATA" outfile=/lscratch/kocevski/59978135/ltcube_754876801_755481601_4FGL_J1516.8+3651_weekly_bin853.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/59978135/ft2_4FGL_J1516.8+3651_weekly_bin853.fits
.....................!
real 17.83
user 17.36
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/59978135/ft1_filtered_4FGL_J1516.8+3651_weekly_bin853.fits evtable="EVENTS" scfile=/lscratch/kocevski/59978135/ft2_4FGL_J1516.8+3651_weekly_bin853.fits sctable="SC_DATA" expcube=/lscratch/kocevski/59978135/ltcube_754876801_755481601_4FGL_J1516.8+3651_weekly_bin853.fits outfile=/lscratch/kocevski/59978135/expmap_754876801_755481601_4FGL_J1516.8+3651_weekly_bin853.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/59978135/ltcube_754876801_755481601_4FGL_J1516.8+3651_weekly_bin853.fits
.....................!
real 63.60
user 59.47
sys 3.71

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

Setting source of interest to:
4FGL J1516.8+3651 @ 229.222 36.8505

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/59978135/ft1_filtered_4FGL_J1516.8+3651_weekly_bin853.fits scfile=/lscratch/kocevski/59978135/ft2_4FGL_J1516.8+3651_weekly_bin853.fits outfile=/lscratch/kocevski/59978135/cmap_754876801_755481601_4FGL_J1516.8+3651_weekly_bin853.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.222 yref=36.8505 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.42
user 0.22
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/59978135/ft1_filtered_4FGL_J1516.8+3651_weekly_bin853.fits scfile=/lscratch/kocevski/59978135/ft2_4FGL_J1516.8+3651_weekly_bin853.fits outfile=/lscratch/kocevski/59978135/cmap_HighResolution_754876801_755481601_4FGL_J1516.8+3651_weekly_bin853.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.222 yref=36.8505 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.23
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/59978135/ft1_filtered_4FGL_J1516.8+3651_weekly_bin853.fits evtable="EVENTS" scfile=/lscratch/kocevski/59978135/ft2_4FGL_J1516.8+3651_weekly_bin853.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/59978135/Model_4FGL_J1516.8+3651_weekly_bin853.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/59978135/ft1_filtered_4FGL_J1516.8+3651_weekly_bin853.fits.....................!
real 51.99
user 50.74
sys 0.91

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/59978135/ft1_filtered_4FGL_J1516.8+3651_weekly_bin853.fits', '/lscratch/kocevski/59978135/ft2_4FGL_J1516.8+3651_weekly_bin853.fits', expMap='/lscratch/kocevski/59978135/expmap_754876801_755481601_4FGL_J1516.8+3651_weekly_bin853.fits', expCube='/lscratch/kocevski/59978135/ltcube_754876801_755481601_4FGL_J1516.8+3651_weekly_bin853.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/59978135/Model_4FGL_J1516.8+3651_weekly_bin853.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1516.8+3651'

4FGL J1516.8+3651
   Spectrum: PowerLaw
279    Prefactor:  6.183e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-14)
280        Index:  2.190e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
281        Scale:  1.677e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/59978135/ft1_filtered_4FGL_J1516.8+3651_weekly_bin853.fits
Spacecraft file(s): /lscratch/kocevski/59978135/ft2_4FGL_J1516.8+3651_weekly_bin853.fits
Exposure map: /lscratch/kocevski/59978135/expmap_754876801_755481601_4FGL_J1516.8+3651_weekly_bin853.fits
Exposure cube: /lscratch/kocevski/59978135/ltcube_754876801_755481601_4FGL_J1516.8+3651_weekly_bin853.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/59978135/Model_4FGL_J1516.8+3651_weekly_bin853.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) = 23096.3861307

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .62127E-04   1.0000          .0000       .10000E+07
     2 'Prefactor '    3.0616       1.0000          .0000       .10000E+07
     3 'Prefactor '    15.071       1.0000          .0000       .10000E+07
     4 'norm      '    .30665E-03   1.0000          .0000       .10000E+07
     5 'norm      '    2.1275       1.0000          .0000       .10000E+07
     6 'Prefactor '    16.867       1.0000          .0000       .10000E+07
     7 'norm      '    5.0030       1.0000          .0000       .10000E+07
     8 'Prefactor '    23.539       1.0000          .0000       .10000E+07
     9 'Prefactor '    5.7933       1.0000          .0000       .10000E+07
    10 'Prefactor '    .11179E-05   1.0000          .0000       .10000E+07
    11 'norm      '    .12618E-06   1.0000          .0000       .10000E+07
    12 'norm      '    .17253E-05   1.0000          .0000       .10000E+07
    13 'Prefactor '    .11918E-03   1.0000          .0000       .10000E+07
    14 'Prefactor '    42.726       1.0000          .0000       .10000E+07
    15 'Prefactor '    .67683E-02   1.0000          .0000       .10000E+07
    16 'Prefactor '    .14212E-03   1.0000          .0000       .10000E+07
    17 'norm      '    5.8082       1.0000          .0000       .10000E+07
    18 'Prefactor '    .24666E-05   1.0000          .0000       .10000E+07
    19 'Prefactor '    .43778E-03   1.0000          .0000       .10000E+07
    20 'norm      '    .45482E-04   1.0000          .0000       .10000E+07
    21 'Prefactor '    .35895E-04   1.0000          .0000       .10000E+07
    22 'Prefactor '    .28467E-03   1.0000          .0000       .10000E+07
    23 'Prefactor '    .75778E-06   1.0000          .0000       .10000E+07
    24 'Normalizat'    .99808       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .99172       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5940E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   23096.38     FROM MIGRAD    STATUS=CONVERGED    133 CALLS     2082 TOTAL
                     EDM=   .61E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm           .0000        1.3770       -.22478E-08** at limit **
   2  Prefactor     3.0778        1.8596       -.71391E-07    .31958E-01
   3  Prefactor     15.057        3.3544        .13628E-06    .54938E-01
   4  norm          .15321E-07    2.4199        .24259E-07** at limit **
   5  norm          2.1386        3.2442        .26267E-06   -.21319E-02
   6  Prefactor     16.876        1.5538       -.19615E-07   -.80351E-03
   7  norm          5.0160        3.2677        .13988E-06   -.75553E-03
   8  Prefactor     23.541        2.1421        .94340E-07    .68561E-01
   9  Prefactor     5.7583        3.7716        .15796E-06   -.14787E-02
  10  Prefactor     .85487E-08    7.0360        .11122E-05** at limit **
  11  norm           .0000        .27471        .52401E-07** at limit **
  12  norm           .0000        .50891        .38065E-08** at limit **
  13  Prefactor     .90483E-08    1.4564        .32771E-06** at limit **
  14  Prefactor     42.726        3.2914        .10804E-06   -.83961E-01
  15  Prefactor      .0000        9.3490       -.41497E-06** at limit **
  16  Prefactor     .21094E-08    1.8802        .22030E-06** at limit **
  17  norm          5.8088        .80532        .14027E-07    .75324E-03
  18  Prefactor     .14433E-08    1.3934       -.42366E-07** at limit **
  19  Prefactor     .20539E-08    2.9099       -.19014E-06** at limit **
  20  norm          .44409E-09    1.5548        .14231E-06** at limit **
  21  Prefactor      .0000        .95877       -.13776E-07** at limit **
  22  Prefactor     .72164E-09    3.9158        .43544E-06** at limit **
  23  Prefactor      .0000        .51284        .48452E-07** at limit **
  24  Normalizat    .99806        .10651        .61656E-05    .24942E-04
  25  Prefactor     .99174        .10266       -.41318E-05    .24645E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0
  Prefactor  = 3.0778
  Prefactor  = 15.0569
  norm       = 1.53211e-08
  norm       = 2.13856
  Prefactor  = 16.876
  norm       = 5.01602
  Prefactor  = 23.5415
  Prefactor  = 5.75832
  Prefactor  = 8.54872e-09
  norm       = 0
  norm       = 0
  Prefactor  = 9.04832e-09
  Prefactor  = 42.726
  Prefactor  = 0
  Prefactor  = 2.10942e-09
  norm       = 5.80877
  Prefactor  = 1.44329e-09
  Prefactor  = 2.05391e-09
  norm       = 4.44089e-10
  Prefactor  = 0
  Prefactor  = 7.21645e-10
  Prefactor  = 0
  Normalizat = 0.998059
  Prefactor  = 0.991741
 **********
 **   18 **HESSE 
 **********

 FCN=   23096.38     FROM HESSE     STATUS=OK           473 CALLS     2555 TOTAL
                     EDM=   .16E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm           .0000        1.3653        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     3.0778        8.6073        .57952E-03   -1.5673    
   3  Prefactor     15.057        11.101        .25774E-03   -1.5630    
   4  norm          .15321E-07    5.3965        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          2.1386        3.2824        .70663E-03   -1.5679    
   6  Prefactor     16.876        13.867        .24360E-03   -1.5626    
   7  norm          5.0160        3.2811        .44935E-03   -1.5663    
   8  Prefactor     23.541        7.8973        .20616E-03   -1.5611    
   9  Prefactor     5.7583        3.8538        .41704E-03   -1.5660    
  10  Prefactor     .85487E-08    8.0483        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm           .0000        .27051        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm           .0000        .50702        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .90483E-08    3.2984        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     42.726        28.650        .15300E-03   -1.5577    
  15  Prefactor      .0000        9.4288        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .21094E-08    3.1897        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          5.8088        .80649        .41649E-03   -1.5660    
  18  Prefactor     .14433E-08    1.4513        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .20539E-08    5.1730        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .44409E-09    1.5744        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor      .0000        .91942        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .72164E-09    3.9833        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor      .0000        .51227        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .99806        .91126E-01    .46143E-01   -.93095    
  25  Prefactor     .99174        .86651E-01    .46164E-01   -.93005    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.61892e-06
Minuit parameter uncertainties:
  1  9.78475e-06
  2  8.60731
  3  11.1007
  4  0.000575165
  5  3.2824
  6  13.867
  7  3.28111
  8  7.89733
  9  3.85385
  10  0.000525196
  11  1.88918e-07
  12  1.18271e-06
  13  0.00034573
  14  28.6497
  15  2.6202e-05
  16  0.000163644
  17  0.806493
  18  9.11217e-05
  19  0.000205459
  20  5.40595e-05
  21  6.67907e-07
  22  0.000108473
  23  5.20158e-07
  24  0.0911402
  25  0.0866627
Done.

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

Extracting fit parameters...

4FGL J1516.8+3651
   Spectrum: PowerLaw
279    Prefactor:  4.273e+01  2.865e+01  0.000e+00  1.000e+06 ( 1.000e-14)
280        Index:  2.190e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
281        Scale:  1.677e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
591    Prefactor:  9.917e-01  8.666e-02  0.000e+00  1.000e+01 ( 1.000e+00)
592        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
593        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
590   Normalization:  9.981e-01  9.114e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.78
Ra Dec: 229.222 36.850
Photon Index (Fixed Index): 2.19 +/- 0.00
Photon Flux (Fixed Index): 1.73e-08 +/- 1.16e-08
Energy Flux (Fixed Index): 7.90e-06 +/- 5.30e-06

TS (Fixed Index): 3.78
Ra Dec: 229.222 36.850
Photon Flux Upper Limit: 4.20682229887e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00320292004083 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/59978135/likelihoodResults_754876801_755481601_4FGL_J1516.8+3651_weekly_bin853.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) = 23096.294619
delta logL = 0.0885036431646

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 23096.2822879
delta logL = 0.1008346915

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    32.925       1.0000          .0000       .10000E+07
     2 'Index     '    2.4191       1.0000          .0000       10.000    
     3 'Normalizat'    .99289       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99472       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5940E+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=   23096.28     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      296 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     32.915        37.168        .69719E-05   -.29965E-02
   2  Index         2.4189        .60713        .85398E-02   -.21384E-03
   3  Normalizat    .99290        .10487        .24320E-03   -.23031E-02
   4  Prefactor     .99486        .10260        .23847E-03   -.25408E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 32.9147
  Index      = 2.41891
  Normalizat = 0.992896
  Prefactor  = 0.994858
 **********
 **   18 **HESSE 
 **********

 FCN=   23096.28     FROM HESSE     STATUS=OK            25 CALLS      321 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     32.915        32.105        .13944E-05   -1.5593    
   2  Index         2.4189        .52462        .34159E-03   -.54243    
   3  Normalizat    .99290        .10477        .48641E-04   -.93269    
   4  Prefactor     .99486        .10256        .47694E-04   -.92901    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.04708e-09
Minuit parameter uncertainties:
  1  32.105
  2  0.525941
  3  0.104787
  4  0.102584
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) = 23096.2822834
delta logL = 0.100839247039

Extracting fit parameters...

4FGL J1516.8+3651
   Spectrum: PowerLaw
279    Prefactor:  3.291e+01  3.210e+01  0.000e+00  1.000e+06 ( 1.000e-14)
280        Index:  2.419e+00  5.259e-01  0.000e+00  1.000e+01 (-1.000e+00)
281        Scale:  1.677e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
591    Prefactor:  9.949e-01  1.026e-01  0.000e+00  1.000e+01 ( 1.000e+00)
592        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
593        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
590   Normalization:  9.929e-01  1.048e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.98
Ra Dec: 229.222 36.850
Photon Index (Free Index): 2.42 +/- 0.53
Photon Flux (Free Index): 2.13e-08 +/- 1.58e-08
Energy Flux (Free Index): 6.81e-06 +/- 4.80e-06

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/59978135/cmap_HighResolution_754876801_755481601_4FGL_J1516.8+3651_weekly_bin853.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.20e-03', comment='SUCCESS', photon_flux='1.73e-08', energy_flux2='6.81e-06', photon_flux_error='1.16e-08', dlogl='1.01e-01', energy_flux='7.90e-06', photon_flux2='2.13e-08', job_status='DONE', time_completed='2024-12-10 01:01:29.617210', photon_index_error2='0.53', photon_index2='2.42', ts='3.78', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', photon_flux_upper_limit='4.21e-08', energy_flux_error2='4.80e-06', EG='1.00', time_epoch_completed='1733821289.62', return_code='0', job_id='59978135', GAL2='0.99', EG2='0.99', return_code2='0', energy_flux_error='5.30e-06', photon_flux_error2='1.58e-08', ts2='3.98', photon_index='2.19' WHERE bin_id='853' AND source_name='4FGL J1516.8+3651' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Dec 10 01:01:29 PST 2024

