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


Performing analysis on: 4FGL_J1516.1+4351_daily_bin632
RA = 229.049, Dec = 43.8527
tmin = 403142401, tmax = 403401601
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='430423', job_status='RUN', time_executed='2021-09-11 21:56:14.539489', time_epoch_executed='1631422574.54' WHERE source_name='4FGL J1516.1+4351' and cadence='daily' and bin_id='632'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/430423

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/430423/ft1_4FGL_J1516.1+4351_daily_bin632.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/430423/ft2_4FGL_J1516.1+4351_daily_bin632.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/430423/ft1_4FGL_J1516.1+4351_daily_bin632.fits outfile=/scratch/kocevski/430423/ft1_filteredMKT_4FGL_J1516.1+4351_daily_bin632.fits ra=229.049 dec=43.8527 rad=12.0 tmin=403142401.0 tmax=403401601.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.53
user 3.31
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/430423/ft2_4FGL_J1516.1+4351_daily_bin632.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/430423/ft2_4FGL_J1516.1+4351_daily_bin632.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/430423/ft1_filteredMKT_4FGL_J1516.1+4351_daily_bin632.fits evtable="EVENTS" outfile="/scratch/kocevski/430423/ft1_filtered_4FGL_J1516.1+4351_daily_bin632.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.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/430423/ft1_filtered_4FGL_J1516.1+4351_daily_bin632.fits" evtable="EVENTS" scfile=/scratch/kocevski/430423/ft2_4FGL_J1516.1+4351_daily_bin632.fits sctable="SC_DATA" outfile=/scratch/kocevski/430423/ltcube_403142401_403401601_4FGL_J1516.1+4351_daily_bin632.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/430423/ft2_4FGL_J1516.1+4351_daily_bin632.fits
.....................!
real 11.83
user 11.46
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/430423/ft1_filtered_4FGL_J1516.1+4351_daily_bin632.fits evtable="EVENTS" scfile=/scratch/kocevski/430423/ft2_4FGL_J1516.1+4351_daily_bin632.fits sctable="SC_DATA" expcube=/scratch/kocevski/430423/ltcube_403142401_403401601_4FGL_J1516.1+4351_daily_bin632.fits outfile=/scratch/kocevski/430423/expmap_403142401_403401601_4FGL_J1516.1+4351_daily_bin632.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/430423/ltcube_403142401_403401601_4FGL_J1516.1+4351_daily_bin632.fits
.....................!
real 191.27
user 185.94
sys 4.96

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

Setting source of interest to:
4FGL J1516.1+4351 @ 229.049 43.8527

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/430423/ft1_filtered_4FGL_J1516.1+4351_daily_bin632.fits scfile=/scratch/kocevski/430423/ft2_4FGL_J1516.1+4351_daily_bin632.fits outfile=/scratch/kocevski/430423/cmap_403142401_403401601_4FGL_J1516.1+4351_daily_bin632.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.049 yref=43.8527 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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/430423/ft1_filtered_4FGL_J1516.1+4351_daily_bin632.fits scfile=/scratch/kocevski/430423/ft2_4FGL_J1516.1+4351_daily_bin632.fits outfile=/scratch/kocevski/430423/cmap_HighResolution_403142401_403401601_4FGL_J1516.1+4351_daily_bin632.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.049 yref=43.8527 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.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/430423/ft1_filtered_4FGL_J1516.1+4351_daily_bin632.fits evtable="EVENTS" scfile=/scratch/kocevski/430423/ft2_4FGL_J1516.1+4351_daily_bin632.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/430423/Model_4FGL_J1516.1+4351_daily_bin632.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/430423/ft1_filtered_4FGL_J1516.1+4351_daily_bin632.fits.....................!
real 49.19
user 47.92
sys 1.12

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/430423/ft1_filtered_4FGL_J1516.1+4351_daily_bin632.fits', '/scratch/kocevski/430423/ft2_4FGL_J1516.1+4351_daily_bin632.fits', expMap='/scratch/kocevski/430423/expmap_403142401_403401601_4FGL_J1516.1+4351_daily_bin632.fits', expCube='/scratch/kocevski/430423/ltcube_403142401_403401601_4FGL_J1516.1+4351_daily_bin632.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/430423/Model_4FGL_J1516.1+4351_daily_bin632.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1516.1+4351'

4FGL J1516.1+4351
   Spectrum: PowerLaw
296    Prefactor:  1.184e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
297        Index:  2.463e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
298        Scale:  1.335e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/430423/ft1_filtered_4FGL_J1516.1+4351_daily_bin632.fits
Spacecraft file(s): /scratch/kocevski/430423/ft2_4FGL_J1516.1+4351_daily_bin632.fits
Exposure map: /scratch/kocevski/430423/expmap_403142401_403401601_4FGL_J1516.1+4351_daily_bin632.fits
Exposure cube: /scratch/kocevski/430423/ltcube_403142401_403401601_4FGL_J1516.1+4351_daily_bin632.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/430423/Model_4FGL_J1516.1+4351_daily_bin632.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) = 5971.38241537

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .29304       1.0000         .10000E-03   10000.    
     2 'Prefactor '    24.369       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10166E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .36549       1.0000         .10000E-03   10000.    
     5 'norm      '    .87767       1.0000         .10000E-03   10000.    
     6 'Prefactor '    71.391       1.0000         .10000E-03   10000.    
     7 'Prefactor '    29.617       1.0000         .10000E-03   10000.    
     8 'norm      '    .91281       1.0000         .10000E-03   10000.    
     9 'Prefactor '    15.531       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10341E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    10.680       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .91367       1.0000         .10000E-03   10000.    
    14 'norm      '    3.5397       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .26723       1.0000         .10000E-03   10000.    
    17 'norm      '    .57531E-01   1.0000         .10000E-03   10000.    
    18 'norm      '    .10026E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.8697       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .30027       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    6.9601       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    27.987       1.0000         .10000E-03   10000.    
    25 'Prefactor '    4.6441       1.0000         .10000E-03   10000.    
    26 'Prefactor '    18.252       1.0000         .10000E-03   10000.    
    27 'Prefactor '    11.310       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.1275       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .87452       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6270E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5971.363     FROM MIGRAD    STATUS=CONVERGED    867 CALLS     4150 TOTAL
                     EDM=   .97E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .28464        5.7310        .46078E-06   -.10872E-03
   2  Prefactor     24.385        30.755       -.23421E-06    .93688E-04
   3  Prefactor     .10000E-03    31.249       -.77006E-07** at limit **
   4  Prefactor     .33745        27.140       -.55650E-05    .15375E-03
   5  norm          .87674        21.577        .68902E-05   -.28068E-03
   6  Prefactor     71.474        83.146        .35757E-05    .18665E-05
   7  Prefactor     29.714        40.827        .11530E-05    .10151E-03
   8  norm          .91420        7.7318        .14407E-05    .18324E-03
   9  Prefactor     15.530        26.895        .70687E-06   -.68639E-05
  10  Prefactor     .10000E-03    13.484       -.96331E-06** at limit **
  11  norm          10.679        8.2350       -.23264E-06    .65740E-04
  12  Prefactor     .10000E-03    5.9102        .55662E-07** at limit **
  13  Prefactor     .87275        17.634        .93128E-06   -.99859E-04
  14  norm          3.5404        1.8248        .41729E-07    .40938E-03
  15  Prefactor     .10000E-03    3.4901        .50443E-08** at limit **
  16  Prefactor     .31530        10.548       -.26046E-06   -.70716E-04
  17  norm          .60508E-01    .76115       -.35430E-07    .12381E-03
  18  norm          .10000E-03    2.2602        .32697E-06** at limit **
  19  Prefactor     4.8650        10.847        .46829E-05    .56938E-03
  20  Prefactor     .36775E-01    49.890       -.35800E-05    .95048E-04
  21  Prefactor     .10000E-03    11.047        .29469E-06** at limit **
  22  Prefactor     6.9568        16.411       -.41152E-05   -.41871E-05
  23  Prefactor     .10000E-03    22.419        .12904E-05** at limit **
  24  norm          27.989        17.213       -.52598E-06    .82254E-04
  25  Prefactor     4.6523        57.822        .14020E-06    .18742E-04
  26  Prefactor     18.248        39.276        .44747E-06   -.57189E-05
  27  Prefactor     11.309        6.6817        .11559E-07    .12039E-04
  28  Prefactor     .10000E-03    9.2968        .40436E-07** at limit **
  29  Normalizat    1.1278        .20017        .89582E-06    .26984E-03
  30  Prefactor     .87438        .19284       -.15215E-05    .14302E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.284644
  Prefactor  = 24.3852
  Prefactor  = 0.0001
  Prefactor  = 0.337449
  norm       = 0.876743
  Prefactor  = 71.4744
  Prefactor  = 29.7142
  norm       = 0.914199
  Prefactor  = 15.5298
  Prefactor  = 0.000100001
  norm       = 10.6795
  Prefactor  = 0.0001
  Prefactor  = 0.872749
  norm       = 3.54035
  Prefactor  = 0.0001
  Prefactor  = 0.315303
  norm       = 0.0605076
  norm       = 0.0001
  Prefactor  = 4.86501
  Prefactor  = 0.0367748
  Prefactor  = 0.0001
  Prefactor  = 6.9568
  Prefactor  = 0.000100001
  norm       = 27.9893
  Prefactor  = 4.65229
  Prefactor  = 18.2482
  Prefactor  = 11.3092
  Prefactor  = 0.0001
  Normalizat = 1.12777
  Prefactor  = 0.874379
 **********
 **   18 **HESSE 
 **********

 FCN=   5971.363     FROM HESSE     STATUS=OK           618 CALLS     4768 TOTAL
                     EDM=   .11E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .28464        24.398        .34075E-02   -1.5601    
   2  Prefactor     24.385        30.607        .81144E-04   -1.4720    
   3  Prefactor     .10000E-03    31.338        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .33745        23.579        .97889E-01   -1.5592    
   5  norm          .87674        48.535        .49321E-02   -1.5521    
   6  Prefactor     71.474        83.805        .47512E-04   -1.4015    
   7  Prefactor     29.714        41.425        .73620E-04   -1.4617    
   8  norm          .91420        7.7332        .40742E-03   -1.5517    
   9  Prefactor     15.530        26.877        .10163E-03   -1.4920    
  10  Prefactor     .10000E-03    13.613        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          10.679        8.2279        .12260E-03   -1.5054    
  12  Prefactor     .10000E-03    5.9188        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .87275        151.04        .48673E-02   -1.5521    
  14  norm          3.5404        1.8378        .69757E-04   -1.5332    
  15  Prefactor     .10000E-03    3.5127        .14089E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .31530        75.452        .39118E-02   -1.5596    
  17  norm          .60508E-01    6.9702        .12677E-02   -1.5659    
  18  norm          .10000E-03    2.3069        .11354E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     4.8650        11.593        .91141E-03   -1.5267    
  20  Prefactor     .36775E-01    47.290        .17253       -1.5670    
  21  Prefactor     .10000E-03    11.090        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     6.9568        16.881        .15207E-03   -1.5180    
  23  Prefactor     .10000E-03    22.593        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          27.989        17.239        .75728E-04   -1.4649    
  25  Prefactor     4.6523        57.725        .18676E-03   -1.5277    
  26  Prefactor     18.248        39.274        .93749E-04   -1.4853    
  27  Prefactor     11.309        6.6841        .11912E-03   -1.5035    
  28  Prefactor     .10000E-03    9.3056        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.1278        .24691        .23646E-03   -.88865    
  30  Prefactor     .87438        .23243        .27445E-03   -.97042    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.10112e-07
Minuit parameter uncertainties:
  1  5.27187
  2  30.6271
  3  2.59647e-05
  4  5.64299
  5  13.0569
  6  83.9438
  7  41.465
  8  5.3184
  9  26.8976
  10  0.000212626
  11  8.22879
  12  6.33296e-06
  13  23.0204
  14  1.83778
  15  1.04264e-06
  16  9.76598
  17  1.29793
  18  8.84733e-06
  19  11.5984
  20  2.63598
  21  5.65501e-05
  22  16.8923
  23  0.000329282
  24  17.2419
  25  32.8141
  26  39.33
  27  6.6845
  28  2.90722e-06
  29  0.247162
  30  0.232696
Done.

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

Extracting fit parameters...

4FGL J1516.1+4351
   Spectrum: PowerLaw
296    Prefactor:  4.865e+00  1.160e+01  1.000e-04  1.000e+04 ( 1.000e-13)
297        Index:  2.463e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
298        Scale:  1.335e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
624    Prefactor:  8.744e-01  2.327e-01  0.000e+00  1.000e+01 ( 1.000e+00)
625        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
626        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
623   Normalization:  1.128e+00  2.472e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.38
Ra Dec: 229.049 43.853
Photon Flux Upper Limit: 1.01e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.84e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/430423/likelihoodResults_403142401_403401601_4FGL_J1516.1+4351_daily_bin632.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) = 5971.33926285
delta logL = 0.0236054315701

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5971.32780189
delta logL = 0.0350663898134

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.4869       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7630       1.0000          .0000       10.000    
     3 'Normalizat'    1.1206       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87895       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6270E+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=   5971.328     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      248 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.4863        10.961        .21653E-03   -.13540E-03
   2  Index         2.7632        1.5084        .93909E-02   -.17303E-04
   3  Normalizat    1.1207        .21794        .23711E-03   -.34906E-03
   4  Prefactor     .87893        .22450        .27381E-03   -.31233E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.48635
  Index      = 2.76324
  Normalizat = 1.12071
  Prefactor  = 0.878932
 **********
 **   18 **HESSE 
 **********

 FCN=   5971.328     FROM HESSE     STATUS=OK            25 CALLS      273 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.4863        8.6155        .86614E-05   -1.5335    
   2  Index         2.7632        1.1931        .37564E-03   -.46380    
   3  Normalizat    1.1207        .21763        .47421E-04   -.89090    
   4  Prefactor     .87893        .22404        .54763E-04   -.96881    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.48039e-10
Minuit parameter uncertainties:
  1  8.61858
  2  1.20771
  3  0.217804
  4  0.224275
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/430423': 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) = 5971.32780169
delta logL = 0.0350665916358

Extracting fit parameters...

4FGL J1516.1+4351
   Spectrum: PowerLaw
296    Prefactor:  3.486e+00  8.619e+00  1.000e-04  1.000e+04 ( 1.000e-13)
297        Index:  2.763e+00  1.208e+00  0.000e+00  1.000e+01 (-1.000e+00)
298        Scale:  1.335e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
624    Prefactor:  8.789e-01  2.243e-01  0.000e+00  1.000e+01 ( 1.000e+00)
625        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
626        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
623   Normalization:  1.121e+00  2.178e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.38
Ra Dec: 229.049 43.853

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/430423/cmap_HighResolution_403142401_403401601_4FGL_J1516.1+4351_daily_bin632.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.84e-03', job_status='DONE', photon_flux_upper_limit='1.01e-07', time_completed='2021-09-11 22:11:07.098787', job_id='430423', GAL2='0.88', fit_tolerance='1e-08', EG2='1.12', EG='1.13', time_epoch_completed='1631423467.1', return_code2='0', ts='0.38', comment='SUCCESS', return_code='0', GAL='0.87', dlogl='3.51e-02', ts2='0.45', photon_index_error='0.00', photon_index='2.46' WHERE bin_id='632' AND source_name='4FGL J1516.1+4351' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 22:11:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0066>
Subject: Job 430423: <4FGL_J1516.1+4351_daily_bin632> in cluster <slac> Done

Job <4FGL_J1516.1+4351_daily_bin632> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Sep 11 21:56:02 2021
Job was executed on host(s) <bullet0066>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 11 21:56:03 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep 11 21:56:03 2021
Terminated at Sat Sep 11 22:11:07 2021
Results reported at Sat Sep 11 22:11:07 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1516.1+4351_daily_bin632 229.049 43.8527 403142401 403401601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1516.1+4351 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   890.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             353.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   904 sec.
    Turnaround time :                            905 sec.

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

