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


Performing analysis on: 4FGL_J1516.1+4351_daily_bin88
RA = 229.049, Dec = 43.8527
tmin = 262137601, tmax = 262396801
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='422722', job_status='RUN', time_executed='2021-09-11 21:26:10.919979', time_epoch_executed='1631420770.92' WHERE source_name='4FGL J1516.1+4351' and cadence='daily' and bin_id='88'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/422722

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/422722/ft1_4FGL_J1516.1+4351_daily_bin88.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/422722/ft2_4FGL_J1516.1+4351_daily_bin88.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/422722/ft1_4FGL_J1516.1+4351_daily_bin88.fits outfile=/scratch/kocevski/422722/ft1_filteredMKT_4FGL_J1516.1+4351_daily_bin88.fits ra=229.049 dec=43.8527 rad=12.0 tmin=262137601.0 tmax=262396801.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 1.41
user 1.20
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/422722/ft2_4FGL_J1516.1+4351_daily_bin88.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/422722/ft1_filteredMKT_4FGL_J1516.1+4351_daily_bin88.fits evtable="EVENTS" outfile="/scratch/kocevski/422722/ft1_filtered_4FGL_J1516.1+4351_daily_bin88.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.46
user 0.32
sys 0.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/422722/ft1_filtered_4FGL_J1516.1+4351_daily_bin88.fits" evtable="EVENTS" scfile=/scratch/kocevski/422722/ft2_4FGL_J1516.1+4351_daily_bin88.fits sctable="SC_DATA" outfile=/scratch/kocevski/422722/ltcube_262137601_262396801_4FGL_J1516.1+4351_daily_bin88.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/422722/ft2_4FGL_J1516.1+4351_daily_bin88.fits
.....................!
real 12.93
user 12.55
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/422722/ft1_filtered_4FGL_J1516.1+4351_daily_bin88.fits evtable="EVENTS" scfile=/scratch/kocevski/422722/ft2_4FGL_J1516.1+4351_daily_bin88.fits sctable="SC_DATA" expcube=/scratch/kocevski/422722/ltcube_262137601_262396801_4FGL_J1516.1+4351_daily_bin88.fits outfile=/scratch/kocevski/422722/expmap_262137601_262396801_4FGL_J1516.1+4351_daily_bin88.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/422722/ltcube_262137601_262396801_4FGL_J1516.1+4351_daily_bin88.fits
.....................!
real 189.92
user 184.75
sys 4.37

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/422722/ft1_filtered_4FGL_J1516.1+4351_daily_bin88.fits scfile=/scratch/kocevski/422722/ft2_4FGL_J1516.1+4351_daily_bin88.fits outfile=/scratch/kocevski/422722/cmap_262137601_262396801_4FGL_J1516.1+4351_daily_bin88.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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/422722/ft1_filtered_4FGL_J1516.1+4351_daily_bin88.fits scfile=/scratch/kocevski/422722/ft2_4FGL_J1516.1+4351_daily_bin88.fits outfile=/scratch/kocevski/422722/cmap_HighResolution_262137601_262396801_4FGL_J1516.1+4351_daily_bin88.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/422722/ft1_filtered_4FGL_J1516.1+4351_daily_bin88.fits evtable="EVENTS" scfile=/scratch/kocevski/422722/ft2_4FGL_J1516.1+4351_daily_bin88.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/422722/Model_4FGL_J1516.1+4351_daily_bin88.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/422722/ft1_filtered_4FGL_J1516.1+4351_daily_bin88.fits.....................!
real 42.74
user 41.48
sys 1.13

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .14017       1.0000         .10000E-03   10000.    
     3 'Prefactor '    11.904       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    10.167       1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.1769       1.0000         .10000E-03   10000.    
    14 'norm      '    .89711       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .21309E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    2.8349       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10091E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    104.66       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .20263E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    10.438       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10180E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.0637       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .89919       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=   5008.607     FROM MIGRAD    STATUS=CONVERGED    787 CALLS     3981 TOTAL
                     EDM=   .95E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.3081       -.36759E-07** at limit **
   2  Prefactor     .38209        17.214       -.34122E-05    .25772E-04
   3  Prefactor     11.906        13.689       -.17257E-05   -.25796E-04
   4  Prefactor     .10000E-03    7.2581        .10899E-05** at limit **
   5  norm          .10000E-03    7.1497       -.77087E-06** at limit **
   6  Prefactor     .10000E-03    20.235        .10027E-05** at limit **
   7  Prefactor     .10000E-03    9.7108       -.34118E-05** at limit **
   8  norm          .10000E-03    2.3001       -.89013E-08** at limit **
   9  Prefactor     .10000E-03    14.588        .87168E-05** at limit **
  10  Prefactor     .10000E-03    4.3218       -.37385E-08** at limit **
  11  norm          .10000E-03    5.9558        .34866E-05** at limit **
  12  Prefactor     10.158        15.742        .65730E-07   -.44629E-03
  13  Prefactor     6.1835        14.037       -.75372E-05   -.47516E-04
  14  norm          .89715        1.2277        .43313E-07    .11166E-03
  15  Prefactor     .10000E-03    5.0680        .20390E-06** at limit **
  16  Prefactor     .10000E-03    3.6582       -.17966E-07** at limit **
  17  norm          .10000E-03    .89603        .21853E-05** at limit **
  18  norm          2.8359        3.1802       -.30029E-06   -.73795E-04
  19  Prefactor     .10000E-03    6.4808       -.17941E-05** at limit **
  20  Prefactor     104.55        87.115       -.71489E-04   -.23894E-03
  21  Prefactor     .10000E-03    5.7798       -.23021E-05** at limit **
  22  Prefactor     .10000E-03    8.8136        .19392E-05** at limit **
  23  Prefactor     .10007E-03    103.30        .42114E-05** at limit **
  24  norm          10.390        19.693       -.85747E-05   -.10762E-03
  25  Prefactor     .10000E-03    7.1792       -.29671E-06** at limit **
  26  Prefactor     .10000E-03    108.04        .18711E-04** at limit **
  27  Prefactor     .10000E-03    3.0345       -.47688E-07** at limit **
  28  Prefactor     .10000E-03    15.165       -.94016E-05** at limit **
  29  Normalizat    1.0629        .19214        .41600E-05   -.58063E-03
  30  Prefactor     .89960        .20034        .34602E-05   -.35108E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.382091
  Prefactor  = 11.9058
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 10.1584
  Prefactor  = 6.18352
  norm       = 0.897154
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100002
  norm       = 2.83595
  Prefactor  = 0.0001
  Prefactor  = 104.546
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100066
  norm       = 10.3901
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.06291
  Prefactor  = 0.899599
 **********
 **   18 **HESSE 
 **********

 FCN=   5008.607     FROM HESSE     STATUS=OK           576 CALLS     4557 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.3507        .12566E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .38209        184.32        .55720E-02   -1.5584    
   3  Prefactor     11.906        13.686        .11611E-03   -1.5018    
   4  Prefactor     .10000E-03    7.2667        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    7.1531        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    20.251        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    9.7194        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    2.3053        .10481E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    14.584        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    4.3243        .14369E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    6.0032        .16862E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     10.158        15.649        .12566E-03   -1.5070    
  13  Prefactor     6.1835        13.920        .16153E-03   -1.5211    
  14  norm          .89715        1.0973        .87731E-03   -1.5519    
  15  Prefactor     .10000E-03    5.0934        .15541E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    3.6746        .13211E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    10.124        .12576E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          2.8359        3.1710        .12902E-03   -1.5371    
  19  Prefactor     .10000E-03    6.5305        .17569E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     104.55        87.154        .19653E-03   -1.3659    
  21  Prefactor     .10000E-03    5.7826        .16615E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    8.8857        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10007E-03    104.03        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          10.390        19.586        .12401E-03   -1.5063    
  25  Prefactor     .10000E-03    7.1849        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    108.34        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    3.0446        .12039E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    15.196        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.0629        .22557        .22700E-03   -.90952    
  30  Prefactor     .89960        .23514        .26248E-03   -.96155    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.30318e-09
Minuit parameter uncertainties:
  1  1.27424e-05
  2  16.8345
  3  13.6899
  4  3.29475e-07
  5  1.88413e-06
  6  2.18925e-05
  7  2.11074e-05
  8  8.29966e-06
  9  1.57905e-05
  10  5.3186e-07
  11  2.6927e-05
  12  15.6551
  13  13.9274
  14  1.09737
  15  1.17084e-05
  16  3.85015e-07
  17  0.000313068
  18  3.17114
  19  1.10832e-05
  20  87.2613
  21  1.03716e-05
  22  7.98219e-06
  23  0.00524459
  24  19.5976
  25  5.18929e-06
  26  0.000490572
  27  1.37406e-05
  28  5.26061e-05
  29  0.22577
  30  0.235405
Done.

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

Extracting fit parameters...

4FGL J1516.1+4351
   Spectrum: PowerLaw
296    Prefactor:  1.000e-04  1.108e-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:  8.996e-01  2.354e-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.063e+00  2.258e-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.60e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.90e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/422722/likelihoodResults_262137601_262396801_4FGL_J1516.1+4351_daily_bin88.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) = 5008.60736765
delta logL = -0.000729693839276

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5008.60663808
delta logL = -1.26823579194e-07

Fit tolerance = 1e-08

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

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

 FCN=   5008.607     FROM MIGRAD    STATUS=FAILED        87 CALLS      236 TOTAL
                     EDM=   .59E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    289.22        .17667E-02** at limit **
   2  Index         2.4872        5.6991        .50000       -.18352E-04
   3  Normalizat    1.0629        .31465E-01    .22700E-03    .56043E-04
   4  Prefactor     .89960        .33919E-01    .26248E-03    .36426E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5008.607     FROM SIMPLEX   STATUS=UNCHANGED    176 CALLS      412 TOTAL
                     EDM=   .17E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    289.22        .47213E-03** at limit **
   2  Index         2.4872        5.6991        .19144E-05   -.18352E-04
   3  Normalizat    1.0629        .31465E-01    .32415E-07    .56043E-04
   4  Prefactor     .89960        .33919E-01    .57009E-08    .36426E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5008.607     FROM MIGRAD    STATUS=CONVERGED     34 CALLS      446 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    982.54        .35334E-03** at limit **
   2  Index         2.4873        5.3470        .50000       -.18366E-04
   3  Normalizat    1.0629        .72934E-01    .90799E-05    .54841E-04
   4  Prefactor     .89960        .78615E-01    .10499E-04    .35300E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  Index      = 2.48733
  Normalizat = 1.06292
  Prefactor  = 0.899597
 **********
 **   18 **HESSE 
 **********

 FCN=   5008.607     FROM HESSE     STATUS=OK            29 CALLS      475 TOTAL
                     EDM=   .45E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.3708        .70667E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4873        6.2352        .50000       -.52653    
   3  Normalizat    1.0629        .21448        .18160E-05   -.90952    
   4  Prefactor     .89960        .23121        .20998E-05   -.96155    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.5367e-10
Minuit parameter uncertainties:
  1  0.000266493
  2  4.86957
  3  0.214651
  4  0.231464
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/422722': 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) = 5008.60663786
delta logL = 9.50840330916e-08

Extracting fit parameters...

4FGL J1516.1+4351
   Spectrum: PowerLaw
296    Prefactor:  1.000e-04  2.665e-04  1.000e-04  1.000e+04 ( 1.000e-13)
297        Index:  2.487e+00  4.870e+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.996e-01  2.315e-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.063e+00  2.147e-01  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/422722/cmap_HighResolution_262137601_262396801_4FGL_J1516.1+4351_daily_bin88.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.90e-03', job_status='DONE', photon_flux_upper_limit='7.60e-08', time_completed='2021-09-11 21:39:24.518373', job_id='422722', GAL2='0.90', fit_tolerance='1e-08', EG2='1.06', EG='1.06', time_epoch_completed='1631421564.52', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.90', dlogl='9.51e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.46' WHERE bin_id='88' AND source_name='4FGL J1516.1+4351' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 21:39:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0262>
Subject: Job 422722: <4FGL_J1516.1+4351_daily_bin88> in cluster <slac> Done

Job <4FGL_J1516.1+4351_daily_bin88> was submitted from host <rhel6-64c> by user <kocevski> in cluster <slac> at Sat Sep 11 21:26:00 2021
Job was executed on host(s) <bullet0262>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 11 21:26: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 21:26:02 2021
Terminated at Sat Sep 11 21:39:25 2021
Results reported at Sat Sep 11 21:39:25 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1516.1+4351_daily_bin88 229.049 43.8527 262137601 262396801 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 :                                   789.25 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             341.72 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   802 sec.
    Turnaround time :                            805 sec.

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

