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


Performing analysis on: 4FGL_J1516.8+3651_daily_bin238
RA = 229.222, Dec = 36.8505
tmin = 301017601, tmax = 301276801
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='439428', job_status='RUN', time_executed='2021-09-11 22:31:08.038778', time_epoch_executed='1631424668.04' WHERE source_name='4FGL J1516.8+3651' and cadence='daily' and bin_id='238'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/439428

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/439428/ft1_4FGL_J1516.8+3651_daily_bin238.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/439428/ft2_4FGL_J1516.8+3651_daily_bin238.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/439428/ft1_4FGL_J1516.8+3651_daily_bin238.fits outfile=/scratch/kocevski/439428/ft1_filteredMKT_4FGL_J1516.8+3651_daily_bin238.fits ra=229.222 dec=36.8505 rad=12.0 tmin=301017601.0 tmax=301276801.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.57
user 3.32
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/439428/ft2_4FGL_J1516.8+3651_daily_bin238.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/439428/ft1_filteredMKT_4FGL_J1516.8+3651_daily_bin238.fits evtable="EVENTS" outfile="/scratch/kocevski/439428/ft1_filtered_4FGL_J1516.8+3651_daily_bin238.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.33
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/439428/ft1_filtered_4FGL_J1516.8+3651_daily_bin238.fits" evtable="EVENTS" scfile=/scratch/kocevski/439428/ft2_4FGL_J1516.8+3651_daily_bin238.fits sctable="SC_DATA" outfile=/scratch/kocevski/439428/ltcube_301017601_301276801_4FGL_J1516.8+3651_daily_bin238.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/439428/ft2_4FGL_J1516.8+3651_daily_bin238.fits
.....................!
real 12.50
user 11.93
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/439428/ft1_filtered_4FGL_J1516.8+3651_daily_bin238.fits evtable="EVENTS" scfile=/scratch/kocevski/439428/ft2_4FGL_J1516.8+3651_daily_bin238.fits sctable="SC_DATA" expcube=/scratch/kocevski/439428/ltcube_301017601_301276801_4FGL_J1516.8+3651_daily_bin238.fits outfile=/scratch/kocevski/439428/expmap_301017601_301276801_4FGL_J1516.8+3651_daily_bin238.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/439428/ltcube_301017601_301276801_4FGL_J1516.8+3651_daily_bin238.fits
.....................!
real 190.65
user 185.28
sys 4.80

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/439428/ft1_filtered_4FGL_J1516.8+3651_daily_bin238.fits scfile=/scratch/kocevski/439428/ft2_4FGL_J1516.8+3651_daily_bin238.fits outfile=/scratch/kocevski/439428/cmap_301017601_301276801_4FGL_J1516.8+3651_daily_bin238.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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/439428/ft1_filtered_4FGL_J1516.8+3651_daily_bin238.fits scfile=/scratch/kocevski/439428/ft2_4FGL_J1516.8+3651_daily_bin238.fits outfile=/scratch/kocevski/439428/cmap_HighResolution_301017601_301276801_4FGL_J1516.8+3651_daily_bin238.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.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    23.213       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .11363E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    9.0151       1.0000         .10000E-03   10000.    
     5 'Prefactor '    49.583       1.0000         .10000E-03   10000.    
     6 'norm      '    5.8588       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10062E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.7301       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.8869       1.0000         .10000E-03   10000.    
    13 'norm      '    1.7974       1.0000         .10000E-03   10000.    
    14 'norm      '    2.9439       1.0000         .10000E-03   10000.    
    15 'Prefactor '    16.402       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10079E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    11.039       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    63.302       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    2.0306       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .82835       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.0376       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=   6803.100     FROM MIGRAD    STATUS=CONVERGED    710 CALLS     3642 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.6656       -.18756E-07** at limit **
   2  Prefactor     23.213        15.985       -.13575E-06   -.15458E-03
   3  Prefactor     .10000E-03    25.961        .39685E-05** at limit **
   4  norm          9.0149        10.511       -.99764E-07   -.34934E-04
   5  Prefactor     49.586        30.414        .69163E-06    .93336E-04
   6  norm          5.8596        5.6708        .20425E-05   -.16605E-02
   7  Prefactor     .10000E-03    23.139       -.23859E-05** at limit **
   8  Prefactor     .10000E-03    14.890        .10493E-05** at limit **
   9  norm          .10000E-03    3.1475       -.72013E-07** at limit **
  10  Prefactor     3.7326        13.494       -.38111E-06   -.48685E-04
  11  Prefactor     .10000E-03    2.6850       -.32150E-07** at limit **
  12  Prefactor     6.8873        5.1757        .21214E-07   -.85912E-05
  13  norm          1.7974        1.5576        .24427E-07   -.19942E-03
  14  norm          2.9435        3.0346       -.16057E-07   -.10107E-03
  15  Prefactor     16.403        9.2240        .26673E-06   -.35574E-03
  16  Prefactor     .10000E-03    59.181       -.14455E-05** at limit **
  17  Prefactor     .10000E-03    4.7056       -.14464E-05** at limit **
  18  Prefactor     .10000E-03    11.034        .14386E-05** at limit **
  19  Prefactor     .10000E-03    4.6807        .13723E-05** at limit **
  20  norm          11.039        2.0240        .93445E-07   -.29595E-03
  21  Prefactor     .10000E-03    6.4259        .15252E-05** at limit **
  22  Prefactor     63.291        45.176       -.34970E-05   -.33288E-03
  23  Prefactor     .10000E-03    16.610       -.23551E-05** at limit **
  24  norm          .10000E-03    8.3776       -.14555E-05** at limit **
  25  Prefactor     2.0303        2.5753        .22660E-06   -.11021E-03
  26  Prefactor     .10000E-03    6.2070       -.82610E-06** at limit **
  27  Prefactor     .10000E-03    2.3750        .34686E-07** at limit **
  28  Normalizat    .82805        .18679       -.10349E-05   -.60238E-05
  29  Prefactor     1.0379        .17063        .43504E-06   -.43407E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 23.213
  Prefactor  = 0.000100003
  norm       = 9.01488
  Prefactor  = 49.5858
  norm       = 5.85962
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 3.73261
  Prefactor  = 0.0001
  Prefactor  = 6.88728
  norm       = 1.79735
  norm       = 2.94351
  Prefactor  = 16.4029
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 11.0394
  Prefactor  = 0.000100001
  Prefactor  = 63.2908
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 2.03034
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.828046
  Prefactor  = 1.03792
 **********
 **   18 **HESSE 
 **********

 FCN=   6803.100     FROM HESSE     STATUS=OK           545 CALLS     4187 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.6689        .10394E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     23.213        15.962        .83139E-04   -1.4744    
   3  Prefactor     .10000E-03    26.564        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          9.0149        10.510        .13349E-03   -1.5107    
   5  Prefactor     49.586        30.562        .56950E-04   -1.4298    
   6  norm          5.8596        6.7860        .82958E-03   -1.5224    
   7  Prefactor     .10000E-03    23.363        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    14.939        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    3.1558        .14291E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     3.7326        13.481        .20907E-03   -1.5322    
  11  Prefactor     .10000E-03    2.6904        .13190E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     6.8873        5.1777        .15288E-03   -1.5183    
  13  norm          1.7974        1.5416        .90032E-04   -1.5440    
  14  norm          2.9435        3.0203        .13539E-03   -1.5365    
  15  Prefactor     16.403        9.2444        .49447E-03   -1.4898    
  16  Prefactor     .10000E-03    59.495        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    4.7963        .17574E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    11.132        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    4.7430        .17516E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          11.039        2.0227        .46673E-04   -1.5043    
  21  Prefactor     .10000E-03    6.5794        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     63.291        46.560        .50436E-04   -1.4115    
  23  Prefactor     .10000E-03    16.884        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    8.4797        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     2.0303        2.5603        .14192E-03   -1.5423    
  26  Prefactor     .10000E-03    6.2380        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    2.4508        .24821E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .82805        .21794        .27514E-03   -.99037    
  29  Prefactor     1.0379        .19906        .24003E-03   -.91476    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.33181e-09
Minuit parameter uncertainties:
  1  9.41384e-07
  2  15.9648
  3  0.000564587
  4  10.5119
  5  30.5719
  6  6.78693
  7  0.000353508
  8  0.000120034
  9  3.89255e-06
  10  13.4923
  11  1.50269e-06
  12  5.17802
  13  1.54167
  14  3.02047
  15  9.24523
  16  0.000332002
  17  9.11816e-05
  18  0.000137631
  19  8.73387e-05
  20  2.02275
  21  0.000144327
  22  46.5872
  23  0.000272622
  24  0.00011984
  25  2.56042
  26  6.17016e-05
  27  1.4731e-06
  28  0.218175
  29  0.199201
Done.

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

Extracting fit parameters...

4FGL J1516.8+3651
   Spectrum: PowerLaw
279    Prefactor:  1.000e-04  3.320e-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:  1.038e+00  1.992e-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.280e-01  2.182e-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: 5.19e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.95e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/439428/likelihoodResults_301017601_301276801_4FGL_J1516.8+3651_daily_bin238.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) = 6803.09998544
delta logL = -7.99865401859e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6803.09990596
delta logL = -5.06019205204e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10222E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4011       1.0000          .0000       10.000    
     3 'Normalizat'    .82805       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0379       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=   6803.100     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      280 TOTAL
                     EDM=   .76E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10545E-03    15.899        .18142E-01** at limit **
   2  Index         2.2963        5.9557        .50000        .10037E-04
   3  Normalizat    .82805        .24287E-02    .27514E-03    .65409E-04
   4  Prefactor     1.0379        .23599E-02    .24003E-03    .74171E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000105451
  Index      = 2.29634
  Normalizat = 0.828045
  Prefactor  = 1.03792
 **********
 **   18 **HESSE 
 **********

 FCN=   6803.100     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      309 TOTAL
                     EDM=   .62E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10545E-03    128.35        .36285E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2963        8.5270        .50000       -.57131    
   3  Normalizat    .82805        .68729E-02    .11006E-04   -.99037    
   4  Prefactor     1.0379        .66782E-02    .96012E-05   -.91476    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.16425e-10
Minuit parameter uncertainties:
  1  0.0530124
  2  231.001
  3  0.00687288
  4  0.00667822
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/439428': 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) = 6803.09990572
delta logL = -2.61746208707e-07

Extracting fit parameters...

4FGL J1516.8+3651
   Spectrum: PowerLaw
279    Prefactor:  1.055e-04  5.301e-02  1.000e-04  1.000e+04 ( 1.000e-14)
280        Index:  2.296e+00  2.310e+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:  1.038e+00  6.678e-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.280e-01  6.873e-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 -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/439428/cmap_HighResolution_301017601_301276801_4FGL_J1516.8+3651_daily_bin238.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.95e-03', job_status='DONE', photon_flux_upper_limit='5.19e-08', time_completed='2021-09-11 22:45:37.944548', job_id='439428', GAL2='1.04', fit_tolerance='1e-08', EG2='0.83', EG='0.83', time_epoch_completed='1631425537.94', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.04', dlogl='-2.62e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.19' WHERE bin_id='238' AND source_name='4FGL J1516.8+3651' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 22:45:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0223>
Subject: Job 439428: <4FGL_J1516.8+3651_daily_bin238> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1516.8+3651_daily_bin238 229.222 36.8505 301017601 301276801 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 :                                   866.08 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             362.97 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   880 sec.
    Turnaround time :                            882 sec.

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

