/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/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)


Waiting 132 seconds before starting...
Proceeding.

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 make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/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 = 7539
number of fields = 30
RA_SUN column already exists. File will not be modified.DDone.


Performing analysis on: 4FGL_J1516.8+3651_daily_bin1323
RA = 229.222, Dec = 36.8505
tmin = 582249601, tmax = 582508801
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='449683', job_status='RUN', time_executed='2021-09-11 23:09:21.715959', time_epoch_executed='1631426961.72' WHERE source_name='4FGL J1516.8+3651' and cadence='daily' and bin_id='1323'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/449683

Creating custom pfile directory:
/scratch/kocevski/449683/pfiles/

Retrieving the FT1 file...

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT1 --filter 'nMetStop>=582249601.0 && nMetStart<582508801.0' /Data/Flight/Reprocess/P305

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT1 --filter 'nMetStart>564945418 && nMetStop>=582249601.0 && nMetStart<582508801.0' /Data/Flight/Level1/LPA

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/449683/ft1_4FGL_J1516.8+3651_daily_bin1323.fits


Retrieving the FT1 file...

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT2 --filter 'nMetStop>=582249601.0 && nMetStart<582508801.0' /Data/Flight/Level1/LPA

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/449683/ft2_4FGL_J1516.8+3651_daily_bin1323.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/449683/ft1_4FGL_J1516.8+3651_daily_bin1323.fits outfile=/scratch/kocevski/449683/ft1_filteredMKT_4FGL_J1516.8+3651_daily_bin1323.fits ra=229.222 dec=36.8505 rad=12.0 tmin=582249601.0 tmax=582508801.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.37
user 5.03
sys 0.25

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/449683/ft2_4FGL_J1516.8+3651_daily_bin1323.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/449683/ft2_4FGL_J1516.8+3651_daily_bin1323.fits sctable="SC_DATA" filter="IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))" roicut=no evfile=/scratch/kocevski/449683/ft1_filteredMKT_4FGL_J1516.8+3651_daily_bin1323.fits evtable="EVENTS" outfile="/scratch/kocevski/449683/ft1_filtered_4FGL_J1516.8+3651_daily_bin1323.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('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.52
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/449683/ft1_filtered_4FGL_J1516.8+3651_daily_bin1323.fits" evtable="EVENTS" scfile=/scratch/kocevski/449683/ft2_4FGL_J1516.8+3651_daily_bin1323.fits sctable="SC_DATA" outfile=/scratch/kocevski/449683/ltcube_582249601_582508801_4FGL_J1516.8+3651_daily_bin1323.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 /scratch/kocevski/449683/ft2_4FGL_J1516.8+3651_daily_bin1323.fits
.....................!
real 11.98
user 11.58
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/449683/ft1_filtered_4FGL_J1516.8+3651_daily_bin1323.fits evtable="EVENTS" scfile=/scratch/kocevski/449683/ft2_4FGL_J1516.8+3651_daily_bin1323.fits sctable="SC_DATA" expcube=/scratch/kocevski/449683/ltcube_582249601_582508801_4FGL_J1516.8+3651_daily_bin1323.fits outfile=/scratch/kocevski/449683/expmap_582249601_582508801_4FGL_J1516.8+3651_daily_bin1323.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 /scratch/kocevski/449683/ltcube_582249601_582508801_4FGL_J1516.8+3651_daily_bin1323.fits
.....................!
real 191.25
user 185.11
sys 5.40

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=/scratch/kocevski/449683/ft1_filtered_4FGL_J1516.8+3651_daily_bin1323.fits scfile=/scratch/kocevski/449683/ft2_4FGL_J1516.8+3651_daily_bin1323.fits outfile=/scratch/kocevski/449683/cmap_582249601_582508801_4FGL_J1516.8+3651_daily_bin1323.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.53
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/449683/ft1_filtered_4FGL_J1516.8+3651_daily_bin1323.fits scfile=/scratch/kocevski/449683/ft2_4FGL_J1516.8+3651_daily_bin1323.fits outfile=/scratch/kocevski/449683/cmap_HighResolution_582249601_582508801_4FGL_J1516.8+3651_daily_bin1323.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.54
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/449683/ft1_filtered_4FGL_J1516.8+3651_daily_bin1323.fits evtable="EVENTS" scfile=/scratch/kocevski/449683/ft2_4FGL_J1516.8+3651_daily_bin1323.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/449683/Model_4FGL_J1516.8+3651_daily_bin1323.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...
/scratch/kocevski/449683/ft1_filtered_4FGL_J1516.8+3651_daily_bin1323.fits.....................!
real 44.48
user 43.17
sys 1.13

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/449683/ft1_filtered_4FGL_J1516.8+3651_daily_bin1323.fits', '/scratch/kocevski/449683/ft2_4FGL_J1516.8+3651_daily_bin1323.fits', expMap='/scratch/kocevski/449683/expmap_582249601_582508801_4FGL_J1516.8+3651_daily_bin1323.fits', expCube='/scratch/kocevski/449683/ltcube_582249601_582508801_4FGL_J1516.8+3651_daily_bin1323.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/449683/Model_4FGL_J1516.8+3651_daily_bin1323.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  1.000e-04  1.000e+04 ( 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): /scratch/kocevski/449683/ft1_filtered_4FGL_J1516.8+3651_daily_bin1323.fits
Spacecraft file(s): /scratch/kocevski/449683/ft2_4FGL_J1516.8+3651_daily_bin1323.fits
Exposure map: /scratch/kocevski/449683/expmap_582249601_582508801_4FGL_J1516.8+3651_daily_bin1323.fits
Exposure cube: /scratch/kocevski/449683/ltcube_582249601_582508801_4FGL_J1516.8+3651_daily_bin1323.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/449683/Model_4FGL_J1516.8+3651_daily_bin1323.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) = 5439.07356888

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    7.3319       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    93.303       1.0000         .10000E-03   10000.    
     9 'norm      '    .93992       1.0000         .10000E-03   10000.    
    10 'Prefactor '    10.171       1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.5177       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.6687       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .32105       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    5.4283       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    14.684       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .11817E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.3585       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .72343       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.

 FCN=   5439.072     FROM MIGRAD    STATUS=CONVERGED    715 CALLS     3719 TOTAL
                     EDM=   .21E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    3.0166        .15925E-06** at limit **
   2  Prefactor     .10000E-03    10.453        .24296E-05** at limit **
   3  Prefactor     .10000E-03    15.172       -.83948E-05** at limit **
   4  norm          .10000E-03    5.4661       -.57797E-06** at limit **
   5  Prefactor     .10000E-03    10.777        .20824E-05** at limit **
   6  norm          7.3313        6.8150        .31876E-07    .12453E-04
   7  Prefactor     .10000E-03    19.935        .67776E-05** at limit **
   8  Prefactor     93.297        54.464       -.58241E-05    .10206E-04
   9  norm          .94314        1.5469       -.65460E-07   -.20968E-03
  10  Prefactor     10.169        16.654       -.17482E-06    .15058E-04
  11  Prefactor     2.5173        4.9092        .19136E-06   -.59834E-04
  12  Prefactor     .10000E-03    2.7435        .28288E-07** at limit **
  13  norm          .10000E-03    .63522       -.25191E-07** at limit **
  14  norm          .10000E-03    2.0958       -.51088E-07** at limit **
  15  Prefactor     .10000E-03    2.2942       -.29858E-07** at limit **
  16  Prefactor     .10000E-03    42.912       -.21793E-05** at limit **
  17  Prefactor     4.6685        10.144        .30336E-08    .25571E-04
  18  Prefactor     .10000E-03    9.3409        .14482E-05** at limit **
  19  Prefactor     .10000E-03    2.9975       -.36236E-06** at limit **
  20  norm          .32133        1.0226        .18497E-07    .15409E-03
  21  Prefactor     .10000E-03    5.4289       -.68857E-06** at limit **
  22  Prefactor     5.4281        31.885        .31640E-06    .30027E-04
  23  Prefactor     .10000E-03    8.4959       -.12075E-05** at limit **
  24  norm          14.684        13.066       -.11472E-06    .19499E-04
  25  Prefactor     .10001E-03    1.8448       -.78403E-06** at limit **
  26  Prefactor     .10000E-03    6.0009        .25994E-05** at limit **
  27  Prefactor     .10000E-03    3.0883        .13614E-06** at limit **
  28  Normalizat    1.3586        .18881        .70667E-06    .17760E-03
  29  Prefactor     .72331        .17487        .23024E-06    .18927E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 7.33128
  Prefactor  = 0.0001
  Prefactor  = 93.2968
  norm       = 0.943138
  Prefactor  = 10.1686
  Prefactor  = 2.51734
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.6685
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.321332
  Prefactor  = 0.0001
  Prefactor  = 5.42806
  Prefactor  = 0.0001
  norm       = 14.6842
  Prefactor  = 0.000100013
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.35862
  Prefactor  = 0.723315
 **********
 **   18 **HESSE 
 **********

 FCN=   5439.072     FROM HESSE     STATUS=OK           551 CALLS     4270 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.0258        .12509E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    10.478        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    15.231        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    5.4675        .16841E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    10.787        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          7.3313        6.8501        .74063E-03   -1.5166    
   7  Prefactor     .10000E-03    19.944        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     93.297        54.577        .41606E-04   -1.3773    
   9  norm          .94314        8.3373        .69799E-01   -1.5514    
  10  Prefactor     10.169        17.117        .12564E-03   -1.5070    
  11  Prefactor     2.5173        4.8769        .11003E-02   -1.5391    
  12  Prefactor     .10000E-03    2.7548        .11929E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    .97485        .11301E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    2.1307        .10421E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    2.2983        .10908E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    42.959        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     4.6685        10.186        .93126E-03   -1.5276    
  18  Prefactor     .10000E-03    9.3818        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    3.0016        .12471E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .32133        1.0049        .12498E-03   -1.5595    
  21  Prefactor     .10000E-03    5.4595        .16741E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     5.4281        31.536        .86235E-03   -1.5242    
  23  Prefactor     .10000E-03    8.5036        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          14.684        13.066        .10452E-03   -1.4941    
  25  Prefactor     .10001E-03    7.7391        .18827E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    6.0006        .17642E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    3.1445        .12652E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.3586        .22765        .21816E-03   -.81833    
  29  Prefactor     .72331        .21096        .27012E-03   -1.0262    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.96535e-09
Minuit parameter uncertainties:
  1  9.33077e-07
  2  1.61738e-06
  3  2.12822e-06
  4  6.42862e-08
  5  4.17098e-06
  6  6.85086
  7  4.49053e-06
  8  54.6065
  9  5.60905
  10  17.1256
  11  4.87765
  12  2.23172e-06
  13  2.63025e-06
  14  3.59179e-06
  15  1.86507e-06
  16  7.98699e-06
  17  10.1897
  18  9.4486e-06
  19  2.19076e-06
  20  1.00493
  21  4.26404e-07
  22  26.1878
  23  1.76358e-06
  24  13.0687
  25  0.000624615
  26  1.89104e-06
  27  4.32296e-06
  28  0.227823
  29  0.211195
Done.

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

Extracting fit parameters...

4FGL J1516.8+3651
   Spectrum: PowerLaw
279    Prefactor:  1.000e-04  7.987e-06  1.000e-04  1.000e+04 ( 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:  7.233e-01  2.112e-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:  1.359e+00  2.278e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 229.222 36.850
Photon Flux Upper Limit: 5.95e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.53e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/449683/likelihoodResults_582249601_582508801_4FGL_J1516.8+3651_daily_bin1323.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): 102
logL (Free Index) = 5439.07163876
delta logL = -0.000110821261842

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5439.07152826
delta logL = -3.17564627039e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10383E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4034       1.0000          .0000       10.000    
     3 'Normalizat'    1.3586       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .72331       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.

 FCN=   5439.072     FROM MIGRAD    STATUS=CONVERGED     60 CALLS      247 TOTAL
                     EDM=   .20E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    28.839        .90712E-02** at limit **
   2  Index         2.3745        7.0939        .50000        .67079E-05
   3  Normalizat    1.3586        .41284E-02    .49348E-01    .14101E-04
   4  Prefactor     .72331        .38786E-02    .61068E-01    .39495E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 2.37446
  Normalizat = 1.35862
  Prefactor  = 0.723314
 **********
 **   18 **HESSE 
 **********

 FCN=   5439.072     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      278 TOTAL
                     EDM=   .11E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    159.88        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3745        6.1871        .50000       -.55284    
   3  Normalizat    1.3586        .97637E-02    .21816E-03   -.81833    
   4  Prefactor     .72331        .91630E-02    .27012E-03   -1.0262    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.09854e-07
Minuit parameter uncertainties:
  1  0.000917801
  2  218.266
  3  0.00976374
  4  0.00916303
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/449683': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5439.07152816
delta logL = -2.15722138819e-07

Extracting fit parameters...

4FGL J1516.8+3651
   Spectrum: PowerLaw
279    Prefactor:  1.000e-04  9.178e-04  1.000e-04  1.000e+04 ( 1.000e-14)
280        Index:  2.374e+00  2.183e+02  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:  7.233e-01  9.163e-03  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:  1.359e+00  9.764e-03  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 229.222 36.850

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/449683/cmap_HighResolution_582249601_582508801_4FGL_J1516.8+3651_daily_bin1323.png

Cleaning up...

** Nuclear option initiated! **
rmdir /scratch/kocevski/449683

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.53e-03', job_status='DONE', photon_flux_upper_limit='5.95e-08', time_completed='2021-09-11 23:21:57.548888', job_id='449683', GAL2='0.72', fit_tolerance='1e-08', EG2='1.36', EG='1.36', time_epoch_completed='1631427717.55', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.72', dlogl='-2.16e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.19' WHERE bin_id='1323' AND source_name='4FGL J1516.8+3651' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 23:21:57 PDT 2021

------------------------------------------------------------
Sender: LSF System <lsf@bullet0216>
Subject: Job 447594: <4FGL_J1516.8+3651_daily_bin1323> in cluster <slac> Done

Job <4FGL_J1516.8+3651_daily_bin1323> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Sat Sep 11 23:01:06 2021
Job was executed on host(s) <bullet0216>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 11 23:01:08 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep 11 23:01:08 2021
Terminated at Sat Sep 11 23:20:00 2021
Results reported at Sat Sep 11 23:20:00 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1516.8+3651_daily_bin1323 229.222 36.8505 582249601 582508801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1516.8+3651 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   761.00 sec.
    Max Memory :                                 618 MB
    Average Memory :                             238.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   1131 sec.
    Turnaround time :                            1134 sec.

The output (if any) is above this job summary.


------------------------------------------------------------
Sender: LSF System <lsf@bullet0030>
Subject: Job 449683: <4FGL_J1516.8+3651_daily_bin1323> in cluster <slac> Done

Job <4FGL_J1516.8+3651_daily_bin1323> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sat Sep 11 23:06:58 2021
Job was executed on host(s) <bullet0030>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 11 23:07:00 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep 11 23:07:00 2021
Terminated at Sat Sep 11 23:21:58 2021
Results reported at Sat Sep 11 23:21:58 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1516.8+3651_daily_bin1323 229.222 36.8505 582249601 582508801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1516.8+3651 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   756.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             321.55 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   897 sec.
    Turnaround time :                            900 sec.

The output (if any) is above this job summary.

