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


Performing analysis on: 4FGL_J1516.1+4351_daily_bin1215
RA = 229.049, Dec = 43.8527
tmin = 554256001, tmax = 554515201
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='434558', job_status='RUN', time_executed='2021-09-11 22:11:23.799972', time_epoch_executed='1631423483.8' WHERE source_name='4FGL J1516.1+4351' and cadence='daily' and bin_id='1215'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/434558

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/434558/ft1_4FGL_J1516.1+4351_daily_bin1215.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/434558/ft2_4FGL_J1516.1+4351_daily_bin1215.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/434558/ft1_4FGL_J1516.1+4351_daily_bin1215.fits outfile=/scratch/kocevski/434558/ft1_filteredMKT_4FGL_J1516.1+4351_daily_bin1215.fits ra=229.049 dec=43.8527 rad=12.0 tmin=554256001.0 tmax=554515201.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.01
user 3.80
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/434558/ft2_4FGL_J1516.1+4351_daily_bin1215.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/434558/ft1_filteredMKT_4FGL_J1516.1+4351_daily_bin1215.fits evtable="EVENTS" outfile="/scratch/kocevski/434558/ft1_filtered_4FGL_J1516.1+4351_daily_bin1215.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.48
user 0.31
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/434558/ft1_filtered_4FGL_J1516.1+4351_daily_bin1215.fits" evtable="EVENTS" scfile=/scratch/kocevski/434558/ft2_4FGL_J1516.1+4351_daily_bin1215.fits sctable="SC_DATA" outfile=/scratch/kocevski/434558/ltcube_554256001_554515201_4FGL_J1516.1+4351_daily_bin1215.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/434558/ft2_4FGL_J1516.1+4351_daily_bin1215.fits
.....................!
real 11.65
user 11.33
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/434558/ft1_filtered_4FGL_J1516.1+4351_daily_bin1215.fits evtable="EVENTS" scfile=/scratch/kocevski/434558/ft2_4FGL_J1516.1+4351_daily_bin1215.fits sctable="SC_DATA" expcube=/scratch/kocevski/434558/ltcube_554256001_554515201_4FGL_J1516.1+4351_daily_bin1215.fits outfile=/scratch/kocevski/434558/expmap_554256001_554515201_4FGL_J1516.1+4351_daily_bin1215.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/434558/ltcube_554256001_554515201_4FGL_J1516.1+4351_daily_bin1215.fits
.....................!
real 189.95
user 185.21
sys 4.30

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/434558/ft1_filtered_4FGL_J1516.1+4351_daily_bin1215.fits scfile=/scratch/kocevski/434558/ft2_4FGL_J1516.1+4351_daily_bin1215.fits outfile=/scratch/kocevski/434558/cmap_554256001_554515201_4FGL_J1516.1+4351_daily_bin1215.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/434558/ft1_filtered_4FGL_J1516.1+4351_daily_bin1215.fits scfile=/scratch/kocevski/434558/ft2_4FGL_J1516.1+4351_daily_bin1215.fits outfile=/scratch/kocevski/434558/cmap_HighResolution_554256001_554515201_4FGL_J1516.1+4351_daily_bin1215.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.55
user 0.35
sys 0.17

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/434558/ft1_filtered_4FGL_J1516.1+4351_daily_bin1215.fits', '/scratch/kocevski/434558/ft2_4FGL_J1516.1+4351_daily_bin1215.fits', expMap='/scratch/kocevski/434558/expmap_554256001_554515201_4FGL_J1516.1+4351_daily_bin1215.fits', expCube='/scratch/kocevski/434558/ltcube_554256001_554515201_4FGL_J1516.1+4351_daily_bin1215.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/434558/Model_4FGL_J1516.1+4351_daily_bin1215.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/434558/ft1_filtered_4FGL_J1516.1+4351_daily_bin1215.fits
Spacecraft file(s): /scratch/kocevski/434558/ft2_4FGL_J1516.1+4351_daily_bin1215.fits
Exposure map: /scratch/kocevski/434558/expmap_554256001_554515201_4FGL_J1516.1+4351_daily_bin1215.fits
Exposure cube: /scratch/kocevski/434558/ltcube_554256001_554515201_4FGL_J1516.1+4351_daily_bin1215.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/434558/Model_4FGL_J1516.1+4351_daily_bin1215.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 1392.90375055

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .11562E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    59.770       1.0000         .10000E-03   10000.    
     5 'norm      '    .10059E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10367E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    13.421       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .13254E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    179.62       1.0000         .10000E-03   10000.    
    11 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .11029E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    15.488       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10069E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    5.6590       1.0000         .10000E-03   10000.    
    18 'norm      '    .17438E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    43.164       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .14590E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10763E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .36280E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    41.542       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .10009E-01   1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.5542       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6270E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   1392.607     FROM MIGRAD    STATUS=CONVERGED    113 CALLS     3354 TOTAL
                     EDM=   .61E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10017E-03    14.975       -.34839E-04** at limit **
   2  Prefactor     .10011E-03    30.642        .20356E-04** at limit **
   3  Prefactor     .10092E-03    31.295       -.50238E-05** at limit **
   4  Prefactor     59.748        3.1410       -.15117E-05    .27109E-02
   5  norm          .10000E-03    9.8128       -.14657E-04** at limit **
   6  Prefactor     .10019E-03    58.401       -.29938E-04** at limit **
   7  Prefactor     .10014E-03    12.360        .12077E-04** at limit **
   8  norm          13.421        1.0303        .24750E-06   -.54374E-04
   9  Prefactor     .13500E-03    74.249       -.48936E-04** at limit **
  10  Prefactor     179.63        1.1505        .18737E-06   -.12474E-02
  11  norm          .10000E-03    7.1159        .13586E-05** at limit **
  12  Prefactor     .11331E-03    70.198        .20749E-04** at limit **
  13  Prefactor     .12256E-03    42.683        .78517E-05** at limit **
  14  norm          .10000E-03    11.700        .79059E-06** at limit **
  15  Prefactor     15.487        1.1773        .73021E-07    .62725E-05
  16  Prefactor     .10001E-03    7.2611       -.46366E-05** at limit **
  17  norm          5.6584        4.8805        .12889E-05    .76444E-04
  18  norm          .10000E-03    6.5851        .26828E-05** at limit **
  19  Prefactor     43.129        3.2772       -.13155E-05    .73097E-03
  20  Prefactor     .10345E-03    53.532       -.23056E-04** at limit **
  21  Prefactor     .11321E-03    51.739        .28402E-04** at limit **
  22  Prefactor     .10008E-03    1.2474        .14931E-06** at limit **
  23  Prefactor     .10000E-03    9.7945       -.14552E-04** at limit **
  24  norm          .10004E-03    14.587        .14094E-04** at limit **
  25  Prefactor     41.523        3.1029       -.19143E-05    .27461E-02
  26  Prefactor     .14286E-03    75.425       -.50256E-04** at limit **
  27  Prefactor     .10018E-03    16.306        .25613E-04** at limit **
  28  Prefactor     .10000E-03    29.054       -.95352E-05** at limit **
  29  Normalizat    .10000E-01    1.5497        .17007E-05** at limit **
  30  Prefactor     1.5549        .23113        .32037E-05    .46725E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100171
  Prefactor  = 0.000100111
  Prefactor  = 0.000100924
  Prefactor  = 59.7476
  norm       = 0.000100001
  Prefactor  = 0.000100192
  Prefactor  = 0.000100138
  norm       = 13.4214
  Prefactor  = 0.000134998
  Prefactor  = 179.627
  norm       = 0.0001
  Prefactor  = 0.000113306
  Prefactor  = 0.000122558
  norm       = 0.0001
  Prefactor  = 15.4865
  Prefactor  = 0.00010001
  norm       = 5.65838
  norm       = 0.000100004
  Prefactor  = 43.1287
  Prefactor  = 0.000103448
  Prefactor  = 0.000113212
  Prefactor  = 0.000100083
  Prefactor  = 0.0001
  norm       = 0.000100037
  Prefactor  = 41.5232
  Prefactor  = 0.000142859
  Prefactor  = 0.00010018
  Prefactor  = 0.000100004
  Normalizat = 0.01
  Prefactor  = 1.55487
 **********
 **   18 **HESSE 
 **********

 FCN=   1392.607     FROM HESSE     STATUS=OK           634 CALLS     3988 TOTAL
                     EDM=   .82E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10017E-03    16.519        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10011E-03    32.602        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10092E-03    60.010        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     59.748        59.366        .12974E-02   -1.4160    
   5  norm          .10000E-03    26.067        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10019E-03    285.27        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10014E-03    23.569        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          13.421        16.090        .27334E-02   -1.4975    
   9  Prefactor     .13500E-03    348.60        .90712E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     179.63        186.60        .75293E-03   -1.3019    
  11  norm          .10000E-03    7.1152        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .11331E-03    99.042        .90712E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .12256E-03    203.21        .90712E-02   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    11.656        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     15.487        18.691        .25443E-02   -1.4921    
  16  Prefactor     .10001E-03    13.435        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          5.6584        5.5488        .42216E-02   -1.5232    
  18  norm          .10000E-03    13.466        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     43.129        42.624        .15255E-02   -1.4394    
  20  Prefactor     .10345E-03    266.95        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .11321E-03    164.78        .90712E-02   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10008E-03    79.056        .10654E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    26.029        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10004E-03    14.936        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     41.523        89.361        .15549E-02   -1.4418    
  26  Prefactor     .14286E-03    360.29        .90712E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10018E-03    18.651        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    62.977        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .10000E-01    .76308        .21754       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     1.5549        .32670        .48571E-01   -.76014    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.23333e-07
Minuit parameter uncertainties:
  1  0.00336089
  2  0.00379942
  3  0.0149087
  4  59.4249
  5  0.000241786
  6  0.0148744
  7  0.00361171
  8  16.0948
  9  0.222213
  10  187.221
  11  2.8562e-06
  12  0.0727243
  13  0.135875
  14  1.40116e-05
  15  18.6977
  16  0.000737494
  17  5.54933
  18  0.000450203
  19  42.6538
  20  0.0609543
  21  0.0935765
  22  0.00513003
  23  0.000186614
  24  0.00148875
  25  89.6511
  26  0.250045
  27  0.00366763
  28  0.00105386
  29  3.12438e-06
  30  0.327143
Done.

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

Extracting fit parameters...

4FGL J1516.1+4351
   Spectrum: PowerLaw
296    Prefactor:  4.313e+01  4.265e+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:  1.555e+00  3.271e-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.000e-02  3.124e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.72
Ra Dec: 229.049 43.853
Photon Index (Fixed Index): 2.46 +/- 0.00
Photon Flux (Fixed Index): 1.75e-07 +/- 1.73e-07
Energy Flux (Fixed Index): 5.29e-05 +/- 5.23e-05

TS (Fixed Index): 1.72
Ra Dec: 229.049 43.853
Photon Flux Upper Limit: 5.77e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.47e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/434558/likelihoodResults_554256001_554515201_4FGL_J1516.1+4351_daily_bin1215.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) = 1392.26408192
delta logL = 0.343207926556

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1392.26266577
delta logL = 0.344624073545

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    19.300       1.0000         .10000E-03   10000.    
     2 'Index     '    3.1507       1.0000          .0000       10.000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.5323       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=   1392.263     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      303 TOTAL
                     EDM=   .44E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     19.298        35.573        .91170E-04    .15017E-03
   2  Index         3.1506        .97837        .31702E-02    .50338E-04
   3  Normalizat    .10000E-01    .82282        .12443E-01** at limit **
   4  Prefactor     1.5323        .22153        .21519E-03   -.37043E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 19.2977
  Index      = 3.15058
  Normalizat = 0.01
  Prefactor  = 1.53234
 **********
 **   18 **HESSE 
 **********

 FCN=   1392.263     FROM HESSE     STATUS=OK            25 CALLS      328 TOTAL
                     EDM=   .46E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     19.298        31.930        .36468E-05   -1.4829    
   2  Index         3.1506        .87892        .12681E-03   -.37888    
   3  Normalizat    .10000E-01    .82379        .24887E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.5323        .22105        .43038E-04   -.76638    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.55438e-11
Minuit parameter uncertainties:
  1  31.9583
  2  0.884248
  3  2.66636e-06
  4  0.22119
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/434558': 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) = 1392.26266548
delta logL = 0.344624366036

Extracting fit parameters...

4FGL J1516.1+4351
   Spectrum: PowerLaw
296    Prefactor:  1.930e+01  3.196e+01  1.000e-04  1.000e+04 ( 1.000e-13)
297        Index:  3.151e+00  8.842e-01  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:  1.532e+00  2.212e-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.000e-02  2.666e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.41
Ra Dec: 229.049 43.853
Photon Index (Free Index): 3.15 +/- 0.88
Photon Flux (Free Index): 3.16e-07 +/- 2.99e-07
Energy Flux (Free Index): 5.90e-05 +/- 4.95e-05

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/434558/cmap_HighResolution_554256001_554515201_4FGL_J1516.1+4351_daily_bin1215.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.47e-02', comment='SUCCESS', photon_flux='1.75e-07', energy_flux2='5.90e-05', photon_flux_error='1.73e-07', dlogl='3.45e-01', energy_flux='5.29e-05', photon_flux2='3.16e-07', job_status='DONE', time_completed='2021-09-11 22:18:39.725174', photon_index_error2='0.88', photon_index2='3.15', ts='1.72', fit_tolerance='1e-08', GAL='1.55', photon_index_error='0.00', photon_flux_upper_limit='5.77e-07', energy_flux_error2='4.95e-05', EG='0.01', time_epoch_completed='1631423919.73', return_code='0', job_id='434558', GAL2='1.53', EG2='0.01', return_code2='0', energy_flux_error='5.23e-05', photon_flux_error2='2.99e-07', ts2='2.41', photon_index='2.46' WHERE bin_id='1215' AND source_name='4FGL J1516.1+4351' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 22:18:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0021>
Subject: Job 434558: <4FGL_J1516.1+4351_daily_bin1215> in cluster <slac> Done

Job <4FGL_J1516.1+4351_daily_bin1215> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sat Sep 11 22:11:12 2021
Job was executed on host(s) <bullet0021>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 11 22:11:14 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:11:14 2021
Terminated at Sat Sep 11 22:18:40 2021
Results reported at Sat Sep 11 22:18:40 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1516.1+4351_daily_bin1215 229.049 43.8527 554256001 554515201 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 :                                   430.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             333.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   445 sec.
    Turnaround time :                            448 sec.

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

