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


Performing analysis on: 4FGL_J1516.8+3651_daily_bin1025
RA = 229.222, Dec = 36.8505
tmin = 505008001, tmax = 505267201
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='443876', job_status='RUN', time_executed='2021-09-11 22:49:00.222575', time_epoch_executed='1631425740.22' WHERE source_name='4FGL J1516.8+3651' and cadence='daily' and bin_id='1025'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/443876

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/443876/ft1_4FGL_J1516.8+3651_daily_bin1025.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/443876/ft2_4FGL_J1516.8+3651_daily_bin1025.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/443876/ft1_4FGL_J1516.8+3651_daily_bin1025.fits outfile=/scratch/kocevski/443876/ft1_filteredMKT_4FGL_J1516.8+3651_daily_bin1025.fits ra=229.222 dec=36.8505 rad=12.0 tmin=505008001.0 tmax=505267201.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.65
user 4.31
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/443876/ft2_4FGL_J1516.8+3651_daily_bin1025.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/443876/ft1_filteredMKT_4FGL_J1516.8+3651_daily_bin1025.fits evtable="EVENTS" outfile="/scratch/kocevski/443876/ft1_filtered_4FGL_J1516.8+3651_daily_bin1025.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.49
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/443876/ft1_filtered_4FGL_J1516.8+3651_daily_bin1025.fits" evtable="EVENTS" scfile=/scratch/kocevski/443876/ft2_4FGL_J1516.8+3651_daily_bin1025.fits sctable="SC_DATA" outfile=/scratch/kocevski/443876/ltcube_505008001_505267201_4FGL_J1516.8+3651_daily_bin1025.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/443876/ft2_4FGL_J1516.8+3651_daily_bin1025.fits
.....................!
real 11.95
user 11.59
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/443876/ft1_filtered_4FGL_J1516.8+3651_daily_bin1025.fits evtable="EVENTS" scfile=/scratch/kocevski/443876/ft2_4FGL_J1516.8+3651_daily_bin1025.fits sctable="SC_DATA" expcube=/scratch/kocevski/443876/ltcube_505008001_505267201_4FGL_J1516.8+3651_daily_bin1025.fits outfile=/scratch/kocevski/443876/expmap_505008001_505267201_4FGL_J1516.8+3651_daily_bin1025.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/443876/ltcube_505008001_505267201_4FGL_J1516.8+3651_daily_bin1025.fits
.....................!
real 190.04
user 185.08
sys 4.56

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/443876/ft1_filtered_4FGL_J1516.8+3651_daily_bin1025.fits scfile=/scratch/kocevski/443876/ft2_4FGL_J1516.8+3651_daily_bin1025.fits outfile=/scratch/kocevski/443876/cmap_505008001_505267201_4FGL_J1516.8+3651_daily_bin1025.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.56
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/443876/ft1_filtered_4FGL_J1516.8+3651_daily_bin1025.fits scfile=/scratch/kocevski/443876/ft2_4FGL_J1516.8+3651_daily_bin1025.fits outfile=/scratch/kocevski/443876/cmap_HighResolution_505008001_505267201_4FGL_J1516.8+3651_daily_bin1025.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.39
sys 0.14

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/443876/ft1_filtered_4FGL_J1516.8+3651_daily_bin1025.fits', '/scratch/kocevski/443876/ft2_4FGL_J1516.8+3651_daily_bin1025.fits', expMap='/scratch/kocevski/443876/expmap_505008001_505267201_4FGL_J1516.8+3651_daily_bin1025.fits', expCube='/scratch/kocevski/443876/ltcube_505008001_505267201_4FGL_J1516.8+3651_daily_bin1025.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/443876/Model_4FGL_J1516.8+3651_daily_bin1025.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/443876/ft1_filtered_4FGL_J1516.8+3651_daily_bin1025.fits
Spacecraft file(s): /scratch/kocevski/443876/ft2_4FGL_J1516.8+3651_daily_bin1025.fits
Exposure map: /scratch/kocevski/443876/expmap_505008001_505267201_4FGL_J1516.8+3651_daily_bin1025.fits
Exposure cube: /scratch/kocevski/443876/ltcube_505008001_505267201_4FGL_J1516.8+3651_daily_bin1025.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/443876/Model_4FGL_J1516.8+3651_daily_bin1025.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) = 5592.31116471

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    10.816       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    10.687       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    33.796       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .11002E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    21.818       1.0000         .10000E-03   10000.    
    11 'Prefactor '    11.106       1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.8783       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .97358E-02   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    14.671       1.0000         .10000E-03   10000.    
    17 'Prefactor '    10.798       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    9.4092       1.0000         .10000E-03   10000.    
    20 'norm      '    2.3458       1.0000         .10000E-03   10000.    
    21 'Prefactor '    7.6456       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    2.9855       1.0000         .10000E-03   10000.    
    24 'norm      '    .10040E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    15.328       1.0000         .10000E-03   10000.    
    27 'Prefactor '    7.8147       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.2219       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .54143       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=   5592.266     FROM MIGRAD    STATUS=CONVERGED    726 CALLS     3703 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    4.6448       -.15787E-06** at limit **
   2  Prefactor     10.816        11.795        .12546E-06   -.23277E-04
   3  Prefactor     .10000E-03    7.6062       -.10453E-06** at limit **
   4  norm          10.686        11.859        .85715E-07    .11435E-05
   5  Prefactor     .10000E-03    33.385        .22131E-05** at limit **
   6  norm          .10000E-03    1.6152       -.32326E-07** at limit **
   7  Prefactor     33.797        41.361       -.28473E-07   -.50958E-04
   8  Prefactor     .10000E-03    61.724       -.70968E-05** at limit **
   9  norm          .10000E-03    3.3380       -.35280E-07** at limit **
  10  Prefactor     21.818        14.598        .59464E-06    .17783E-03
  11  Prefactor     11.108        7.8229        .25408E-06   -.58960E-04
  12  Prefactor     1.8793        6.0323        .11838E-04    .47846E-03
  13  norm          .10000E-03    .90383        .79560E-06** at limit **
  14  norm          .11292E-03    2.3725       -.37043E-05** at limit **
  15  Prefactor     .10000E-03    4.3349        .27425E-06** at limit **
  16  Prefactor     14.717        51.713       -.88094E-05   -.12241E-04
  17  Prefactor     10.797        8.3894        .52220E-06    .10293E-03
  18  Prefactor     .10000E-03    5.5481        .16060E-06** at limit **
  19  Prefactor     9.4160        10.312       -.42259E-06    .27226E-03
  20  norm          2.3458        1.5156        .91009E-07    .62690E-03
  21  Prefactor     7.6447        10.575        .42532E-06    .17069E-03
  22  Prefactor     .10000E-03    25.199       -.13607E-05** at limit **
  23  Prefactor     2.9727        35.478        .26301E-05    .34127E-04
  24  norm          .10000E-03    11.240        .36644E-07** at limit **
  25  Prefactor     .10000E-03    .88143       -.70193E-07** at limit **
  26  Prefactor     15.328        15.967        .16652E-06    .18689E-04
  27  Prefactor     7.8148        4.8007        .13273E-06    .17319E-04
  28  Normalizat    1.2218        .17586       -.20990E-05    .34389E-03
  29  Prefactor     .54155        .15939        .11224E-05    .30279E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 10.8158
  Prefactor  = 0.0001
  norm       = 10.6858
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 33.7974
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 21.8178
  Prefactor  = 11.1083
  Prefactor  = 1.8793
  norm       = 0.000100001
  norm       = 0.000112919
  Prefactor  = 0.0001
  Prefactor  = 14.717
  Prefactor  = 10.7969
  Prefactor  = 0.0001
  Prefactor  = 9.41596
  norm       = 2.34585
  Prefactor  = 7.64467
  Prefactor  = 0.0001
  Prefactor  = 2.97268
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.3283
  Prefactor  = 7.81477
  Normalizat = 1.22179
  Prefactor  = 0.541551
 **********
 **   18 **HESSE 
 **********

 FCN=   5592.266     FROM HESSE     STATUS=OK           557 CALLS     4260 TOTAL
                     EDM=   .63E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    4.7749        .31460E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     10.816        11.812        .12182E-03   -1.5050    
   3  Prefactor     .10000E-03    7.6191        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          10.686        11.861        .12256E-03   -1.5054    
   5  Prefactor     .10000E-03    33.651        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    1.6177        .92800E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     33.797        41.387        .68930E-04   -1.4545    
   8  Prefactor     .10000E-03    61.971        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    3.3559        .13343E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     21.818        14.628        .85751E-04   -1.4773    
  11  Prefactor     11.108        7.8035        .12022E-03   -1.5041    
  12  Prefactor     1.8793        6.0614        .15190E-02   -1.5434    
  13  norm          .10000E-03    .94326        .13882E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .11292E-03    4.5415        .32899E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    4.3535        .15167E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     14.717        51.787        .10457E-03   -1.4941    
  17  Prefactor     10.797        8.3984        .60963E-03   -1.5051    
  18  Prefactor     .10000E-03    5.5517        .17200E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     9.4160        10.383        .13065E-03   -1.5094    
  20  norm          2.3458        1.5219        .58956E-04   -1.5402    
  21  Prefactor     7.6447        10.650        .14503E-03   -1.5155    
  22  Prefactor     .10000E-03    25.264        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     2.9727        35.293        .23496E-03   -1.5363    
  24  norm          .10000E-03    11.254        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    .90558        .13706E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     15.328        15.969        .10230E-03   -1.4925    
  27  Prefactor     7.8148        4.8021        .12405E-03   -1.5149    
  28  Normalizat    1.2218        .20194        .20414E-03   -.85932    
  29  Prefactor     .54155        .18169        .28015E-03   -1.1011    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.32496e-09
Minuit parameter uncertainties:
  1  1.80734e-05
  2  11.8145
  3  1.35973e-05
  4  11.8631
  5  0.000376282
  6  1.83868e-06
  7  41.4225
  8  0.00040776
  9  4.20276e-06
  10  14.6306
  11  7.80425
  12  6.06339
  13  4.71329e-05
  14  0.0153203
  15  5.47319e-05
  16  51.9458
  17  8.39934
  18  2.72245e-05
  19  10.3848
  20  1.52195
  21  10.6522
  22  7.78187e-06
  23  20.5003
  24  7.85887e-06
  25  4.12396e-06
  26  15.973
  27  4.80234
  28  0.20207
  29  0.181884
Done.

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

Extracting fit parameters...

4FGL J1516.8+3651
   Spectrum: PowerLaw
279    Prefactor:  1.472e+01  5.195e+01  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:  5.416e-01  1.819e-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.222e+00  2.021e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/443876/likelihoodResults_505008001_505267201_4FGL_J1516.8+3651_daily_bin1025.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) = 5592.15483238
delta logL = 0.110953930499

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5592.13912701
delta logL = 0.126659304403

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.1057       1.0000         .10000E-03   10000.    
     2 'Index     '    3.0212       1.0000          .0000       10.000    
     3 'Normalizat'    1.2029       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .55055       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5592.139     FROM MIGRAD    STATUS=FAILED        99 CALLS      276 TOTAL
                     EDM=   .78E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.0913        87.630        .13282E-03   -.20543E-05
   2  Index         3.0222        2.7609        .91182E-02    .43423E-03
   3  Normalizat    1.2028        .19692        .20549E-03    .60593E-04
   4  Prefactor     .55057        .18170        .27795E-03   -.56485E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5592.139     FROM SIMPLEX   STATUS=UNCHANGED     83 CALLS      359 TOTAL
                     EDM=   .13E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.0913        87.630        .39361E-03   -1.5105    
   2  Index         3.0222        2.7609        .12196E-02   -.40668    
   3  Normalizat    1.2028        .19692        .17025E-03   -.86515    
   4  Prefactor     .55057        .18170        .23996E-03   -1.0971    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5592.139     FROM MIGRAD    STATUS=CONVERGED     33 CALLS      392 TOTAL
                     EDM=   .74E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.0913        32.273        .53128E-05   -.13267E-04
   2  Index         3.0222        1.6517        .18236E-02    .37903E-05
   3  Normalizat    1.2028        .19427        .41097E-04   -.27663E-05
   4  Prefactor     .55057        .17997        .11118E-04   -.14315E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.09128
  Index      = 3.02221
  Normalizat = 1.20284
  Prefactor  = 0.550572
 **********
 **   18 **HESSE 
 **********

 FCN=   5592.139     FROM HESSE     STATUS=OK            23 CALLS      415 TOTAL
                     EDM=   .57E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.0913        30.380        .10626E-05   -1.5105    
   2  Index         3.0222        1.5554        .72946E-04   -.40667    
   3  Normalizat    1.2028        .19402        .82195E-05   -.86515    
   4  Prefactor     .55057        .17974        .22236E-05   -1.0971    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.71773e-12
Minuit parameter uncertainties:
  1  30.4319
  2  1.58677
  3  0.194135
  4  0.179925
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/443876': 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): 0
logL (Free Index) = 5592.1391268
delta logL = 0.126659505453

Extracting fit parameters...

4FGL J1516.8+3651
   Spectrum: PowerLaw
279    Prefactor:  9.091e+00  3.043e+01  1.000e-04  1.000e+04 ( 1.000e-14)
280        Index:  3.022e+00  1.587e+00  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:  5.506e-01  1.799e-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.203e+00  1.941e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.10
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/443876/cmap_HighResolution_505008001_505267201_4FGL_J1516.8+3651_daily_bin1025.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.33e-03', job_status='DONE', photon_flux_upper_limit='7.00e-08', time_completed='2021-09-11 23:02:16.764274', job_id='443876', GAL2='0.55', fit_tolerance='1e-08', EG2='1.20', EG='1.22', time_epoch_completed='1631426536.76', return_code2='0', ts='0.10', comment='SUCCESS', return_code='0', GAL='0.54', dlogl='1.27e-01', ts2='0.36', photon_index_error='0.00', photon_index='2.19' WHERE bin_id='1025' AND source_name='4FGL J1516.8+3651' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 23:02:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0043>
Subject: Job 443876: <4FGL_J1516.8+3651_daily_bin1025> in cluster <slac> Done

Job <4FGL_J1516.8+3651_daily_bin1025> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Sep 11 22:46:25 2021
Job was executed on host(s) <bullet0043>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 11 22:46:27 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep 11 22:46:27 2021
Terminated at Sat Sep 11 23:02:17 2021
Results reported at Sat Sep 11 23:02:17 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1516.8+3651_daily_bin1025 229.222 36.8505 505008001 505267201 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 :                                   791.14 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             282.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   950 sec.
    Turnaround time :                            952 sec.

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

