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


Performing analysis on: 4FGL_J1516.1+4351_daily_bin561
RA = 229.049, Dec = 43.8527
tmin = 384739201, tmax = 384998401
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='429246', job_status='RUN', time_executed='2021-09-11 21:51:26.937321', time_epoch_executed='1631422286.94' WHERE source_name='4FGL J1516.1+4351' and cadence='daily' and bin_id='561'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/429246

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/429246/ft1_4FGL_J1516.1+4351_daily_bin561.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/429246/ft2_4FGL_J1516.1+4351_daily_bin561.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/429246/ft1_4FGL_J1516.1+4351_daily_bin561.fits outfile=/scratch/kocevski/429246/ft1_filteredMKT_4FGL_J1516.1+4351_daily_bin561.fits ra=229.049 dec=43.8527 rad=12.0 tmin=384739201.0 tmax=384998401.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.56
user 4.33
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/429246/ft1_filtered_4FGL_J1516.1+4351_daily_bin561.fits evtable="EVENTS" scfile=/scratch/kocevski/429246/ft2_4FGL_J1516.1+4351_daily_bin561.fits sctable="SC_DATA" expcube=/scratch/kocevski/429246/ltcube_384739201_384998401_4FGL_J1516.1+4351_daily_bin561.fits outfile=/scratch/kocevski/429246/expmap_384739201_384998401_4FGL_J1516.1+4351_daily_bin561.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/429246/ltcube_384739201_384998401_4FGL_J1516.1+4351_daily_bin561.fits
.....................!
real 190.00
user 185.20
sys 4.44

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/429246/ft1_filtered_4FGL_J1516.1+4351_daily_bin561.fits scfile=/scratch/kocevski/429246/ft2_4FGL_J1516.1+4351_daily_bin561.fits outfile=/scratch/kocevski/429246/cmap_384739201_384998401_4FGL_J1516.1+4351_daily_bin561.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/429246/ft1_filtered_4FGL_J1516.1+4351_daily_bin561.fits scfile=/scratch/kocevski/429246/ft2_4FGL_J1516.1+4351_daily_bin561.fits outfile=/scratch/kocevski/429246/cmap_HighResolution_384739201_384998401_4FGL_J1516.1+4351_daily_bin561.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.37
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/429246/ft1_filtered_4FGL_J1516.1+4351_daily_bin561.fits', '/scratch/kocevski/429246/ft2_4FGL_J1516.1+4351_daily_bin561.fits', expMap='/scratch/kocevski/429246/expmap_384739201_384998401_4FGL_J1516.1+4351_daily_bin561.fits', expCube='/scratch/kocevski/429246/ltcube_384739201_384998401_4FGL_J1516.1+4351_daily_bin561.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/429246/Model_4FGL_J1516.1+4351_daily_bin561.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/429246/ft1_filtered_4FGL_J1516.1+4351_daily_bin561.fits
Spacecraft file(s): /scratch/kocevski/429246/ft2_4FGL_J1516.1+4351_daily_bin561.fits
Exposure map: /scratch/kocevski/429246/expmap_384739201_384998401_4FGL_J1516.1+4351_daily_bin561.fits
Exposure cube: /scratch/kocevski/429246/ltcube_384739201_384998401_4FGL_J1516.1+4351_daily_bin561.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/429246/Model_4FGL_J1516.1+4351_daily_bin561.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) = 5732.38280157

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.1988       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10072E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    81.887       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .11411E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10133E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    91.507       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10913E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10099E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    65.421       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .14577E-01   1.0000         .10000E-03   10000.    
    13 'Prefactor '    17.121       1.0000         .10000E-03   10000.    
    14 'norm      '    1.3263       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .69544       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10073E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .12093E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    6.6671       1.0000         .10000E-03   10000.    
    24 'norm      '    32.063       1.0000         .10000E-03   10000.    
    25 'Prefactor '    4.0528       1.0000         .10000E-03   10000.    
    26 'Prefactor '    9.4582       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    23.416       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.1116       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .68042       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=   5732.380     FROM MIGRAD    STATUS=CONVERGED    783 CALLS     4933 TOTAL
                     EDM=   .47E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.1988        3.8363        .79823E-07    .24404E-04
   2  Prefactor     .10000E-03    41.787        .18062E-06** at limit **
   3  Prefactor     81.893        35.250       -.81111E-07    .77525E-04
   4  Prefactor     .10000E-03    29.778        .18527E-05** at limit **
   5  norm          .10000E-03    19.233        .59734E-06** at limit **
   6  Prefactor     91.503        66.380       -.11520E-05   -.31098E-05
   7  Prefactor     .10000E-03    149.51       -.17420E-04** at limit **
   8  norm          .10000E-03    4.8534       -.41798E-06** at limit **
   9  Prefactor     65.442        65.755        .55750E-05    .90267E-04
  10  Prefactor     .10000E-03    9.6340        .63652E-06** at limit **
  11  norm          .10000E-03    3.1342       -.13875E-06** at limit **
  12  Prefactor     .10000E-03    109.41        .15323E-04** at limit **
  13  Prefactor     17.119        19.252       -.13756E-05   -.84383E-04
  14  norm          1.3262        1.1697       -.44034E-08   -.28354E-04
  15  Prefactor     .69530        6.5939        .51312E-07   -.29740E-04
  16  Prefactor     .10000E-03    7.6847        .17502E-05** at limit **
  17  norm          .10000E-03    1.1151       -.27779E-07** at limit **
  18  norm          .10001E-03    2.8061        .25952E-06** at limit **
  19  Prefactor     .10000E-03    12.023       -.28746E-06** at limit **
  20  Prefactor     .10000E-03    34.690       -.19916E-05** at limit **
  21  Prefactor     .10000E-03    9.7294        .10771E-05** at limit **
  22  Prefactor     .10000E-03    7.9178       -.13452E-06** at limit **
  23  Prefactor     6.6732        40.171        .25385E-05    .84034E-05
  24  norm          32.056        27.496       -.97191E-06   -.24349E-05
  25  Prefactor     4.0518        11.459       -.41658E-06   -.12061E-04
  26  Prefactor     9.4682        86.465        .37909E-05   -.11937E-05
  27  Prefactor     .10000E-03    8.1640        .10869E-05** at limit **
  28  Prefactor     23.368        26.364        .13452E-05   -.55182E-06
  29  Normalizat    1.1115        .18076        .22031E-05   -.17909E-04
  30  Prefactor     .68058        .17808       -.12657E-05    .11909E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.19879
  Prefactor  = 0.0001
  Prefactor  = 81.8931
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 91.5027
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 65.4423
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 17.1186
  norm       = 1.32621
  Prefactor  = 0.695303
  Prefactor  = 0.0001
  norm       = 0.000100001
  norm       = 0.000100005
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.67316
  norm       = 32.0564
  Prefactor  = 4.05183
  Prefactor  = 9.46823
  Prefactor  = 0.0001
  Prefactor  = 23.3677
  Normalizat = 1.11151
  Prefactor  = 0.680576
 **********
 **   18 **HESSE 
 **********

 FCN=   5732.380     FROM HESSE     STATUS=OK           592 CALLS     5525 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.1988        3.8405        .13813E-03   -1.5298    
   2  Prefactor     .10000E-03    42.903        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     81.893        35.219        .44386E-04   -1.3896    
   4  Prefactor     .10000E-03    29.727        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    19.242        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     91.503        66.361        .42008E-04   -1.3792    
   7  Prefactor     .10000E-03    154.78        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    4.9301        .16301E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     65.442        66.515        .49618E-04   -1.4088    
  10  Prefactor     .10000E-03    9.6517        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    3.1390        .13090E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    7.9472        .69848E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     17.119        19.218        .96796E-04   -1.4880    
  14  norm          1.3262        1.1789        .73286E-04   -1.5478    
  15  Prefactor     .69530        6.8847        .38186E-03   -1.5541    
  16  Prefactor     .10000E-03    7.7969        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    2.5806        .15051E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10001E-03    6.0400        .23907E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    12.356        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    34.707        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    9.7399        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    7.9775        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     6.6732        38.781        .15541E-03   -1.5191    
  24  norm          32.056        27.052        .70764E-04   -1.4575    
  25  Prefactor     4.0518        11.443        .20029E-03   -1.5305    
  26  Prefactor     9.4682        86.013        .13031E-03   -1.5092    
  27  Prefactor     .10000E-03    8.1996        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     23.368        26.029        .82777E-04   -1.4741    
  29  Normalizat    1.1115        .20974        .21986E-03   -.89383    
  30  Prefactor     .68058        .20666        .27962E-03   -1.0429    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.37767e-09
Minuit parameter uncertainties:
  1  3.84075
  2  6.16114e-05
  3  35.2285
  4  0.000116915
  5  3.54363e-05
  6  66.4145
  7  0.000688915
  8  5.13998e-05
  9  66.5907
  10  1.74541e-05
  11  3.33499e-06
  12  0.000278197
  13  19.2245
  14  1.17895
  15  4.37616
  16  3.03044e-05
  17  7.84674e-05
  18  0.000359095
  19  9.03699e-05
  20  8.26798e-06
  21  1.79284e-05
  22  2.80957e-05
  23  32.2053
  24  27.0619
  25  11.4494
  26  57.1841
  27  6.99151e-05
  28  26.0419
  29  0.209897
  30  0.206893
Done.

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

Extracting fit parameters...

4FGL J1516.1+4351
   Spectrum: PowerLaw
296    Prefactor:  1.000e-04  9.037e-05  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:  6.806e-01  2.069e-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.112e+00  2.099e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/429246/likelihoodResults_384739201_384998401_4FGL_J1516.1+4351_daily_bin561.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) = 5732.3805105
delta logL = -0.000386267663089

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5732.38012415
delta logL = 8.13424776425e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4400       1.0000          .0000       10.000    
     3 'Normalizat'    1.1115       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .68057       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=   5732.380     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      253 TOTAL
                     EDM=   .97E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10091E-03    33.317        .36285E-02** at limit **
   2  Index         2.3929        8.5306        .50000        .12640E-04
   3  Normalizat    1.1115        .66589E-02    .21986E-03   -.20216E-03
   4  Prefactor     .68058        .68068E-02    .27962E-03   -.47772E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100907
  Index      = 2.39285
  Normalizat = 1.11151
  Prefactor  = 0.680576
 **********
 **   18 **HESSE 
 **********

 FCN=   5732.380     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      282 TOTAL
                     EDM=   .60E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10091E-03    213.54        .72569E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3929        6.1939        .50000       -.54852    
   3  Normalizat    1.1115        .17117E-01    .43971E-04   -.89383    
   4  Prefactor     .68058        .17496E-01    .11185E-04   -1.0429    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.04125e-09
Minuit parameter uncertainties:
  1  0.0279375
  2  379.469
  3  0.0171168
  4  0.0174966
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/429246': 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) = 5732.38012403
delta logL = 2.00009708351e-07

Extracting fit parameters...

4FGL J1516.1+4351
   Spectrum: PowerLaw
296    Prefactor:  1.009e-04  2.794e-02  1.000e-04  1.000e+04 ( 1.000e-13)
297        Index:  2.393e+00  3.795e+02  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:  6.806e-01  1.750e-02  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.112e+00  1.712e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/429246/cmap_HighResolution_384739201_384998401_4FGL_J1516.1+4351_daily_bin561.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.95e-03', job_status='DONE', photon_flux_upper_limit='7.67e-08', time_completed='2021-09-11 22:06:54.439953', job_id='429246', GAL2='0.68', fit_tolerance='1e-08', EG2='1.11', EG='1.11', time_epoch_completed='1631423214.44', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.68', dlogl='2.00e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.46' WHERE bin_id='561' AND source_name='4FGL J1516.1+4351' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 22:06:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0098>
Subject: Job 429246: <4FGL_J1516.1+4351_daily_bin561> in cluster <slac> Done

Job <4FGL_J1516.1+4351_daily_bin561> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Sep 11 21:51:13 2021
Job was executed on host(s) <bullet0098>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 11 21:51: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 21:51:14 2021
Terminated at Sat Sep 11 22:06:54 2021
Results reported at Sat Sep 11 22:06:54 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1516.1+4351_daily_bin561 229.049 43.8527 384739201 384998401 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 :                                   922.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             302.06 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   940 sec.
    Turnaround time :                            941 sec.

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

