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


Performing analysis on: 4FGL_J1516.8+3651_daily_bin1592
RA = 229.222, Dec = 36.8505
tmin = 651974401, tmax = 652233601
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='448011', job_status='RUN', time_executed='2021-09-11 23:01:57.651352', time_epoch_executed='1631426517.65' WHERE source_name='4FGL J1516.8+3651' and cadence='daily' and bin_id='1592'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/448011

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/448011/ft1_4FGL_J1516.8+3651_daily_bin1592.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/448011/ft2_4FGL_J1516.8+3651_daily_bin1592.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/448011/ft1_4FGL_J1516.8+3651_daily_bin1592.fits outfile=/scratch/kocevski/448011/ft1_filteredMKT_4FGL_J1516.8+3651_daily_bin1592.fits ra=229.222 dec=36.8505 rad=12.0 tmin=651974401.0 tmax=652233601.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.47
user 3.26
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/448011/ft2_4FGL_J1516.8+3651_daily_bin1592.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/448011/ft1_filteredMKT_4FGL_J1516.8+3651_daily_bin1592.fits evtable="EVENTS" outfile="/scratch/kocevski/448011/ft1_filtered_4FGL_J1516.8+3651_daily_bin1592.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.34
sys 0.14

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/448011/ft1_filtered_4FGL_J1516.8+3651_daily_bin1592.fits evtable="EVENTS" scfile=/scratch/kocevski/448011/ft2_4FGL_J1516.8+3651_daily_bin1592.fits sctable="SC_DATA" expcube=/scratch/kocevski/448011/ltcube_651974401_652233601_4FGL_J1516.8+3651_daily_bin1592.fits outfile=/scratch/kocevski/448011/expmap_651974401_652233601_4FGL_J1516.8+3651_daily_bin1592.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/448011/ltcube_651974401_652233601_4FGL_J1516.8+3651_daily_bin1592.fits
.....................!
real 189.49
user 184.85
sys 4.25

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/448011/ft1_filtered_4FGL_J1516.8+3651_daily_bin1592.fits scfile=/scratch/kocevski/448011/ft2_4FGL_J1516.8+3651_daily_bin1592.fits outfile=/scratch/kocevski/448011/cmap_651974401_652233601_4FGL_J1516.8+3651_daily_bin1592.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.35
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/448011/ft1_filtered_4FGL_J1516.8+3651_daily_bin1592.fits scfile=/scratch/kocevski/448011/ft2_4FGL_J1516.8+3651_daily_bin1592.fits outfile=/scratch/kocevski/448011/cmap_HighResolution_651974401_652233601_4FGL_J1516.8+3651_daily_bin1592.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.53
user 0.37
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/448011/ft1_filtered_4FGL_J1516.8+3651_daily_bin1592.fits evtable="EVENTS" scfile=/scratch/kocevski/448011/ft2_4FGL_J1516.8+3651_daily_bin1592.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/448011/Model_4FGL_J1516.8+3651_daily_bin1592.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/448011/ft1_filtered_4FGL_J1516.8+3651_daily_bin1592.fits.....................!
real 43.84
user 42.57
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .47001       1.0000         .10000E-03   10000.    
     2 'Prefactor '    12.662       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .13325E-02   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    26.605       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.6916       1.0000         .10000E-03   10000.    
     9 'norm      '    5.7998       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .63225       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.5344       1.0000         .10000E-03   10000.    
    13 'norm      '    .40677       1.0000         .10000E-03   10000.    
    14 'norm      '    .10048E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .11152E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    8.5972       1.0000         .10000E-03   10000.    
    19 'Prefactor '    5.9624       1.0000         .10000E-03   10000.    
    20 'norm      '    .11044       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    1.3356       1.0000         .10000E-03   10000.    
    25 'Prefactor '    1.5780       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .88558       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .95402       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=   5491.579     FROM MIGRAD    STATUS=CONVERGED    744 CALLS     3756 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  9.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .45467        3.3855       -.20056E-06   -.64703E-03
   2  Prefactor     12.672        13.120       -.73032E-06   -.25666E-03
   3  Prefactor     .10000E-03    8.6139        .68424E-06** at limit **
   4  norm          .10003E-03    159.35        .27511E-04** at limit **
   5  Prefactor     .10000E-03    28.501        .24422E-06** at limit **
   6  norm          .10000E-03    3.0946        .14500E-06** at limit **
   7  Prefactor     26.594        27.051       -.26572E-06   -.13826E-05
   8  Prefactor     1.5960        164.02       -.75502E-05    .78513E-04
   9  norm          5.8005        5.8585        .19918E-07   -.36272E-06
  10  Prefactor     .62724        10.039        .22701E-06    .61928E-04
  11  Prefactor     .10000E-03    1.7501       -.11865E-06** at limit **
  12  Prefactor     4.5342        4.5102       -.19033E-06    .19927E-03
  13  norm          .40618        .78395        .94510E-06    .21115E-02
  14  norm          .10000E-03    1.4344        .12309E-06** at limit **
  15  Prefactor     .10000E-03    7.4887        .79670E-07** at limit **
  16  Prefactor     .10000E-03    19.624       -.64186E-06** at limit **
  17  Prefactor     .10000E-03    5.4501        .31779E-06** at limit **
  18  Prefactor     8.5952        14.287       -.64392E-08   -.30705E-04
  19  Prefactor     5.9747        9.9890       -.13645E-06    .23486E-04
  20  norm          .11001        .56855       -.75768E-06   -.25879E-03
  21  Prefactor     .10000E-03    5.2738       -.14231E-06** at limit **
  22  Prefactor     .10000E-03    10.817       -.56977E-06** at limit **
  23  Prefactor     .10000E-03    14.386        .62625E-06** at limit **
  24  norm          1.3312        31.401       -.63395E-05   -.35401E-05
  25  Prefactor     1.5779        1.5179       -.14410E-07    .10788E-03
  26  Prefactor     .10000E-03    8.3170        .25621E-06** at limit **
  27  Prefactor     .10000E-03    2.7211       -.64580E-08** at limit **
  28  Normalizat    .88592        .16779       -.97219E-06    .46631E-03
  29  Prefactor     .95384        .16040        .15257E-05    .12229E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.454666
  Prefactor  = 12.6723
  Prefactor  = 0.0001
  norm       = 0.000100031
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 26.5939
  Prefactor  = 1.59598
  norm       = 5.80045
  Prefactor  = 0.627244
  Prefactor  = 0.0001
  Prefactor  = 4.53424
  norm       = 0.406182
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.59521
  Prefactor  = 5.97469
  norm       = 0.110005
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.33124
  Prefactor  = 1.57789
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.885921
  Prefactor  = 0.953839
 **********
 **   18 **HESSE 
 **********

 FCN=   5491.579     FROM HESSE     STATUS=OK           567 CALLS     4323 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .45467        11.426        .25106E-02   -1.5573    
   2  Prefactor     12.672        13.349        .11257E-03   -1.4996    
   3  Prefactor     .10000E-03    8.6332        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10003E-03    15.042        .78124E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    28.808        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    3.1204        .12724E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     26.594        27.061        .77667E-04   -1.4676    
   8  Prefactor     1.5960        162.32        .32363E-03   -1.5455    
   9  norm          5.8005        5.8603        .16677E-03   -1.5226    
  10  Prefactor     .62724        41.315        .43474E-02   -1.5550    
  11  Prefactor     .10000E-03    1.7535        .95746E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     4.5342        4.5061        .15256E-03   -1.5282    
  13  norm          .40618        .77031        .10072E-02   -1.5581    
  14  norm          .10000E-03    1.4444        .86578E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    7.5763        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    19.603        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    5.4932        .16874E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     8.5952        14.231        .13671E-03   -1.5122    
  19  Prefactor     5.9747        9.9334        .16445E-03   -1.5219    
  20  norm          .11001        .56833        .10852E-03   -1.5642    
  21  Prefactor     .10000E-03    5.4250        .33117E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    10.787        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    14.440        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          1.3312        31.888        .37962E-03   -1.5477    
  25  Prefactor     1.5779        1.5232        .86881E-04   -1.5457    
  26  Prefactor     .10000E-03    8.3165        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    2.7730        .11940E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .88592        .19710        .22242E-03   -.96957    
  29  Prefactor     .95384        .18716        .21557E-03   -.94284    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.44935e-09
Minuit parameter uncertainties:
  1  4.55897
  2  13.3522
  3  1.66133e-05
  4  0.00137549
  5  0.000106579
  6  3.52268e-06
  7  27.0735
  8  32.28
  9  5.86089
  10  10.1878
  11  5.09122e-06
  12  4.50645
  13  0.77033
  14  3.0732e-06
  15  5.04403e-05
  16  0.000152104
  17  6.30553e-05
  18  14.2365
  19  9.93613
  20  0.499859
  21  0.000116504
  22  0.000133295
  23  0.000135078
  24  13.0381
  25  1.52325
  26  4.84517e-05
  27  8.34122e-06
  28  0.197259
  29  0.187287
Done.

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

Extracting fit parameters...

4FGL J1516.8+3651
   Spectrum: PowerLaw
279    Prefactor:  1.000e-04  1.521e-04  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:  9.538e-01  1.873e-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:  8.859e-01  1.973e-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: 3.90e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.97e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/448011/likelihoodResults_651974401_652233601_4FGL_J1516.8+3651_daily_bin1592.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) = 5491.57900632
delta logL = -0.000242999918555

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5491.57876475
delta logL = -1.42407679959e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5708       1.0000          .0000       10.000    
     3 'Normalizat'    .88591       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95384       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=   5491.579     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      272 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10416E-03    3.5481        .18142E-01** at limit **
   2  Index         2.4728        6.0814        .50000        .19920E-04
   3  Normalizat    .88592        .19340E-02    .22242E-03   -.26068E-05
   4  Prefactor     .95384        .19491E-02    .10779E-02   -.79105E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000104155
  Index      = 2.47284
  Normalizat = 0.885917
  Prefactor  = 0.953842
 **********
 **   18 **HESSE 
 **********

 FCN=   5491.579     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      301 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10416E-03    69.014        .27337E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4728        8.0173        .50000       -.52988    
   3  Normalizat    .88592        .85623E-02    .88966E-05   -.96957    
   4  Prefactor     .95384        .86289E-02    .43115E-04   -.94284    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.68761e-09
Minuit parameter uncertainties:
  1  0.0339083
  2  265.437
  3  0.00856231
  4  0.00862895
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/448011': 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) = 5491.57876441
delta logL = -1.08641143015e-06

Extracting fit parameters...

4FGL J1516.8+3651
   Spectrum: PowerLaw
279    Prefactor:  1.042e-04  3.391e-02  1.000e-04  1.000e+04 ( 1.000e-14)
280        Index:  2.473e+00  2.654e+02  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:  9.538e-01  8.629e-03  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:  8.859e-01  8.562e-03  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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/448011/cmap_HighResolution_651974401_652233601_4FGL_J1516.8+3651_daily_bin1592.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.97e-03', job_status='DONE', photon_flux_upper_limit='3.90e-08', time_completed='2021-09-11 23:14:53.541128', job_id='448011', GAL2='0.95', fit_tolerance='1e-08', EG2='0.89', EG='0.89', time_epoch_completed='1631427293.54', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.95', dlogl='-1.09e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.19' WHERE bin_id='1592' AND source_name='4FGL J1516.8+3651' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 23:14:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0270>
Subject: Job 448011: <4FGL_J1516.8+3651_daily_bin1592> in cluster <slac> Done

Job <4FGL_J1516.8+3651_daily_bin1592> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Sat Sep 11 23:01:41 2021
Job was executed on host(s) <bullet0270>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 11 23:01:42 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep 11 23:01:42 2021
Terminated at Sat Sep 11 23:14:54 2021
Results reported at Sat Sep 11 23:14:54 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1516.8+3651_daily_bin1592 229.222 36.8505 651974401 652233601 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 :                                   764.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             337.85 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   791 sec.
    Turnaround time :                            793 sec.

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

