/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 8 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 = 7391
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1516.8+3651_daily_bin277
RA = 229.222, Dec = 36.8505
tmin = 311126401, tmax = 311385601
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='439480', job_status='RUN', time_executed='2021-09-11 22:31:19.004521', time_epoch_executed='1631424679.0' WHERE source_name='4FGL J1516.8+3651' and cadence='daily' and bin_id='277'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/439480

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/439480/ft1_4FGL_J1516.8+3651_daily_bin277.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/439480/ft2_4FGL_J1516.8+3651_daily_bin277.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/439480/ft1_4FGL_J1516.8+3651_daily_bin277.fits outfile=/scratch/kocevski/439480/ft1_filteredMKT_4FGL_J1516.8+3651_daily_bin277.fits ra=229.222 dec=36.8505 rad=12.0 tmin=311126401.0 tmax=311385601.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.59
user 3.35
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/439480/ft1_filtered_4FGL_J1516.8+3651_daily_bin277.fits" evtable="EVENTS" scfile=/scratch/kocevski/439480/ft2_4FGL_J1516.8+3651_daily_bin277.fits sctable="SC_DATA" outfile=/scratch/kocevski/439480/ltcube_311126401_311385601_4FGL_J1516.8+3651_daily_bin277.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/439480/ft2_4FGL_J1516.8+3651_daily_bin277.fits
.....................!
real 12.35
user 12.00
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/439480/ft1_filtered_4FGL_J1516.8+3651_daily_bin277.fits evtable="EVENTS" scfile=/scratch/kocevski/439480/ft2_4FGL_J1516.8+3651_daily_bin277.fits sctable="SC_DATA" expcube=/scratch/kocevski/439480/ltcube_311126401_311385601_4FGL_J1516.8+3651_daily_bin277.fits outfile=/scratch/kocevski/439480/expmap_311126401_311385601_4FGL_J1516.8+3651_daily_bin277.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/439480/ltcube_311126401_311385601_4FGL_J1516.8+3651_daily_bin277.fits
.....................!
real 191.38
user 186.97
sys 3.92

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/439480/ft1_filtered_4FGL_J1516.8+3651_daily_bin277.fits scfile=/scratch/kocevski/439480/ft2_4FGL_J1516.8+3651_daily_bin277.fits outfile=/scratch/kocevski/439480/cmap_311126401_311385601_4FGL_J1516.8+3651_daily_bin277.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=229.222 yref=36.8505 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.53
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/439480/ft1_filtered_4FGL_J1516.8+3651_daily_bin277.fits scfile=/scratch/kocevski/439480/ft2_4FGL_J1516.8+3651_daily_bin277.fits outfile=/scratch/kocevski/439480/cmap_HighResolution_311126401_311385601_4FGL_J1516.8+3651_daily_bin277.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/439480/ft1_filtered_4FGL_J1516.8+3651_daily_bin277.fits evtable="EVENTS" scfile=/scratch/kocevski/439480/ft2_4FGL_J1516.8+3651_daily_bin277.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/439480/Model_4FGL_J1516.8+3651_daily_bin277.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/439480/ft1_filtered_4FGL_J1516.8+3651_daily_bin277.fits.....................!
real 54.68
user 53.33
sys 1.10

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .72920       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.5631       1.0000         .10000E-03   10000.    
    13 'norm      '    .10464E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10075E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .13976E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10100E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    37.975       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .37313E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    9.8421       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    8.5561       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    5.5167       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.0777       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.2108       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=   6901.068     FROM MIGRAD    STATUS=CONVERGED    743 CALLS     3169 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .72959        4.0928       -.71604E-06   -.67856E-04
   2  Prefactor     .10000E-03    9.7756       -.15371E-05** at limit **
   3  Prefactor     .10000E-03    9.9765       -.15159E-05** at limit **
   4  norm          .10000E-03    6.7797        .11798E-05** at limit **
   5  Prefactor     .10000E-03    57.149        .12261E-04** at limit **
   6  norm          .10000E-03    2.3254        .49014E-07** at limit **
   7  Prefactor     .10000E-03    15.877       -.28016E-05** at limit **
   8  Prefactor     .10000E-03    25.736        .10070E-04** at limit **
   9  norm          .10000E-03    3.4462       -.21517E-07** at limit **
  10  Prefactor     .10000E-03    11.597        .52577E-05** at limit **
  11  Prefactor     .10000E-03    14.566       -.23424E-05** at limit **
  12  Prefactor     2.5630        4.1916       -.81462E-06   -.48358E-03
  13  norm          .10000E-03    .98664        .46939E-07** at limit **
  14  norm          .10000E-03    1.1224        .40904E-07** at limit **
  15  Prefactor     .10000E-03    5.3508       -.20012E-05** at limit **
  16  Prefactor     .10000E-03    175.43       -.17447E-04** at limit **
  17  Prefactor     .10000E-03    5.5784        .66891E-05** at limit **
  18  Prefactor     37.979        24.795       -.46770E-06    .72404E-04
  19  Prefactor     .10000E-03    18.614        .37363E-06** at limit **
  20  norm          9.8436        2.1528        .15277E-06    .37682E-02
  21  Prefactor     .10000E-03    30.154       -.24198E-04** at limit **
  22  Prefactor     .10000E-03    25.540        .11152E-04** at limit **
  23  Prefactor     .10000E-03    16.834       -.51168E-06** at limit **
  24  norm          8.5562        11.892       -.13277E-05   -.79818E-03
  25  Prefactor     .10000E-03    1.1841        .61826E-07** at limit **
  26  Prefactor     .10000E-03    5.7869       -.54738E-05** at limit **
  27  Prefactor     5.5169        4.1602        .31240E-06    .24479E-04
  28  Normalizat    1.0772        .19222        .32056E-06    .24452E-03
  29  Prefactor     1.2113        .17612       -.15964E-08    .21992E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.729589
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.563
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 37.9787
  Prefactor  = 0.0001
  norm       = 9.84364
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 8.5562
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.51694
  Normalizat = 1.07716
  Prefactor  = 1.21128
 **********
 **   18 **HESSE 
 **********

 FCN=   6901.068     FROM HESSE     STATUS=OK           539 CALLS     3708 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .72959        18.704        .31925E-02   -1.5537    
   2  Prefactor     .10000E-03    9.7970        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    9.9947        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    6.7834        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    58.230        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    2.3295        .12369E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    15.884        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    25.723        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    3.4493        .15061E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    11.670        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    14.946        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.5630        4.1907        .21248E-03   -1.5388    
  13  norm          .10000E-03    3.2580        .15569E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    1.1283        .85927E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    5.3800        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    175.73        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    5.5893        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     37.979        24.748        .65040E-04   -1.4475    
  19  Prefactor     .10000E-03    18.947        .42590E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          9.8436        2.1546        .53551E-04   -1.5080    
  21  Prefactor     .10000E-03    30.549        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    25.534        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    16.850        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          8.5562        12.032        .68521E-03   -1.5123    
  25  Prefactor     .10000E-03    1.1982        .88243E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    5.7780        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     5.5169        4.1592        .14301E-03   -1.5238    
  28  Normalizat    1.0772        .22941        .27754E-03   -.90489    
  29  Prefactor     1.2113        .21284        .25219E-03   -.85985    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.90066e-08
Minuit parameter uncertainties:
  1  7.39025
  2  6.86343e-06
  3  3.99511e-06
  4  3.03e-06
  5  0.000205955
  6  4.58046e-07
  7  2.11707e-07
  8  1.21746e-05
  9  4.32999e-07
  10  1.39189e-05
  11  1.1359e-05
  12  4.19114
  13  9.79744e-06
  14  1.11275e-06
  15  1.01292e-05
  16  9.49244e-05
  17  1.22599e-05
  18  24.7551
  19  6.76956e-05
  20  2.15459
  21  0.000389058
  22  9.03127e-06
  23  5.40476e-05
  24  12.0351
  25  2.72206e-07
  26  8.39883e-07
  27  4.15945
  28  0.22962
  29  0.21299
Done.

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

Extracting fit parameters...

4FGL J1516.8+3651
   Spectrum: PowerLaw
279    Prefactor:  1.000e-04  9.492e-05  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:  1.211e+00  2.130e-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.077e+00  2.296e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/439480/likelihoodResults_311126401_311385601_4FGL_J1516.8+3651_daily_bin277.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) = 6901.06811171
delta logL = -2.69746897175e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6901.06808479
delta logL = -5.3531039157e-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.1590       1.0000          .0000       10.000    
     3 'Normalizat'    1.0772       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2113       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.

 FCN=   6901.068     FROM MIGRAD    STATUS=CONVERGED     99 CALLS      285 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10007E-03    9716.6        .18142E-02** at limit **
   2  Index         2.2813        5.7129        .50000       -.91491E-05
   3  Normalizat    1.0772        .33107E-01    .27754E-03    .14153E-03
   4  Prefactor     1.2113        .31826E-01    .25219E-03   -.11590E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100067
  Index      = 2.28134
  Normalizat = 1.07716
  Prefactor  = 1.21128
 **********
 **   18 **HESSE 
 **********

 FCN=   6901.068     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      314 TOTAL
                     EDM=   .60E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10007E-03    6660.8        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2813        5.2633        .50000       -.57488    
   3  Normalizat    1.0772        .79848E-01    .11101E-04   -.90488    
   4  Prefactor     1.2113        .76761E-01    .50439E-04   -.85985    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.9634e-10
Minuit parameter uncertainties:
  1  0.130884
  2  53.2838
  3  0.0798569
  4  0.0767679
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/439480': 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) = 6901.06808456
delta logL = 1.76450157596e-07

Extracting fit parameters...

4FGL J1516.8+3651
   Spectrum: PowerLaw
279    Prefactor:  1.001e-04  1.309e-01  1.000e-04  1.000e+04 ( 1.000e-14)
280        Index:  2.281e+00  5.328e+01  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:  1.211e+00  7.677e-02  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.077e+00  7.986e-02  1.000e-02  1.000e+01 ( 1.000e+00)


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

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/439480/cmap_HighResolution_311126401_311385601_4FGL_J1516.8+3651_daily_bin277.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.84e-03', job_status='DONE', photon_flux_upper_limit='8.99e-08', time_completed='2021-09-11 22:45:00.223709', job_id='439480', GAL2='1.21', fit_tolerance='1e-08', EG2='1.08', EG='1.08', time_epoch_completed='1631425500.22', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.21', dlogl='1.76e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.19' WHERE bin_id='277' AND source_name='4FGL J1516.8+3651' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 22:45:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0228>
Subject: Job 439480: <4FGL_J1516.8+3651_daily_bin277> in cluster <slac> Done

Job <4FGL_J1516.8+3651_daily_bin277> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sat Sep 11 22:31:00 2021
Job was executed on host(s) <bullet0228>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 11 22:31:02 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:31:02 2021
Terminated at Sat Sep 11 22:45:00 2021
Results reported at Sat Sep 11 22:45:00 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1516.8+3651_daily_bin277 229.222 36.8505 311126401 311385601 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 :                                   817.00 sec.
    Max Memory :                                 1097 MB
    Average Memory :                             340.10 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   838 sec.
    Turnaround time :                            840 sec.

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

