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


Performing analysis on: 4FGL_J1516.8+3651_daily_bin441
RA = 229.222, Dec = 36.8505
tmin = 353635201, tmax = 353894401
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='440835', job_status='RUN', time_executed='2021-09-11 22:36:16.459005', time_epoch_executed='1631424976.46' WHERE source_name='4FGL J1516.8+3651' and cadence='daily' and bin_id='441'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/440835

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/440835/ft1_4FGL_J1516.8+3651_daily_bin441.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/440835/ft2_4FGL_J1516.8+3651_daily_bin441.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/440835/ft1_4FGL_J1516.8+3651_daily_bin441.fits outfile=/scratch/kocevski/440835/ft1_filteredMKT_4FGL_J1516.8+3651_daily_bin441.fits ra=229.222 dec=36.8505 rad=12.0 tmin=353635201.0 tmax=353894401.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.53
user 3.34
sys 0.18

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/440835/ft1_filtered_4FGL_J1516.8+3651_daily_bin441.fits evtable="EVENTS" scfile=/scratch/kocevski/440835/ft2_4FGL_J1516.8+3651_daily_bin441.fits sctable="SC_DATA" expcube=/scratch/kocevski/440835/ltcube_353635201_353894401_4FGL_J1516.8+3651_daily_bin441.fits outfile=/scratch/kocevski/440835/expmap_353635201_353894401_4FGL_J1516.8+3651_daily_bin441.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/440835/ltcube_353635201_353894401_4FGL_J1516.8+3651_daily_bin441.fits
.....................!
real 189.77
user 184.32
sys 5.13

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/440835/ft1_filtered_4FGL_J1516.8+3651_daily_bin441.fits scfile=/scratch/kocevski/440835/ft2_4FGL_J1516.8+3651_daily_bin441.fits outfile=/scratch/kocevski/440835/cmap_353635201_353894401_4FGL_J1516.8+3651_daily_bin441.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/440835/ft1_filtered_4FGL_J1516.8+3651_daily_bin441.fits scfile=/scratch/kocevski/440835/ft2_4FGL_J1516.8+3651_daily_bin441.fits outfile=/scratch/kocevski/440835/cmap_HighResolution_353635201_353894401_4FGL_J1516.8+3651_daily_bin441.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.36
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    22.571       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10124E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    32.320       1.0000         .10000E-03   10000.    
     4 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10143E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    10.003       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10112E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    12.368       1.0000         .10000E-03   10000.    
    13 'norm      '    1.0885       1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.4680       1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.3424       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .21346E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    12.192       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    14.799       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    12.962       1.0000         .10000E-03   10000.    
    25 'Prefactor '    1.2184       1.0000         .10000E-03   10000.    
    26 'Prefactor '    5.1583       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .88430       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.0147       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=   6774.553     FROM MIGRAD    STATUS=CONVERGED    711 CALLS     3706 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          22.571        7.9422       -.14351E-06    .55769E-07
   2  Prefactor     .10000E-03    49.572       -.27200E-05** at limit **
   3  Prefactor     32.319        20.224        .48539E-06    .11632E-04
   4  norm          .10000E-03    11.355        .29945E-05** at limit **
   5  Prefactor     .10000E-03    35.231        .65459E-05** at limit **
   6  norm          10.003        6.8470       -.39507E-06   -.97707E-04
   7  Prefactor     .10000E-03    17.483        .62237E-05** at limit **
   8  Prefactor     .10000E-03    18.887       -.25245E-05** at limit **
   9  norm          .10000E-03    8.7808       -.28141E-06** at limit **
  10  Prefactor     .10000E-03    9.4148       -.24175E-05** at limit **
  11  Prefactor     .10000E-03    9.1214       -.22353E-05** at limit **
  12  Prefactor     12.369        7.2549       -.90255E-07   -.57374E-04
  13  norm          1.0871        1.2453        .75558E-06    .16767E-02
  14  norm          .10000E-03    2.4011       -.88647E-06** at limit **
  15  Prefactor     1.4671        5.7251        .48945E-05   -.81354E-03
  16  Prefactor     3.3157        144.39       -.10105E-03   -.56298E-05
  17  Prefactor     .10000E-03    3.2782       -.39831E-06** at limit **
  18  Prefactor     .10000E-03    19.444       -.71083E-05** at limit **
  19  Prefactor     .10000E-03    8.1908        .18515E-05** at limit **
  20  norm          12.192        1.9350       -.69719E-07    .40152E-03
  21  Prefactor     .10000E-03    6.3943       -.20505E-06** at limit **
  22  Prefactor     14.805        36.486        .89350E-05    .66241E-05
  23  Prefactor     .10000E-03    8.5993        .17423E-05** at limit **
  24  norm          12.961        13.689        .52119E-06    .48107E-05
  25  Prefactor     1.2184        2.1107       -.54111E-06   -.10437E-02
  26  Prefactor     5.1390        21.218       -.12361E-04   -.36205E-04
  27  Prefactor     .10000E-03    4.5469       -.51263E-06** at limit **
  28  Normalizat    .88433        .17343        .94519E-06    .15799E-03
  29  Prefactor     1.0147        .16696        .11574E-05    .16990E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 22.5705
  Prefactor  = 0.0001
  Prefactor  = 32.319
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 10.0029
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.3686
  norm       = 1.08706
  norm       = 0.000100001
  Prefactor  = 1.46711
  Prefactor  = 3.31565
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 12.1925
  Prefactor  = 0.0001
  Prefactor  = 14.8054
  Prefactor  = 0.0001
  norm       = 12.9607
  Prefactor  = 1.2184
  Prefactor  = 5.13903
  Prefactor  = 0.0001
  Normalizat = 0.884329
  Prefactor  = 1.01466
 **********
 **   18 **HESSE 
 **********

 FCN=   6774.553     FROM HESSE     STATUS=OK           551 CALLS     4257 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          22.571        7.9415        .84310E-04   -1.4757    
   2  Prefactor     .10000E-03    50.457        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     32.319        20.071        .70482E-04   -1.4570    
   4  norm          .10000E-03    11.388        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    35.627        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          10.003        6.8508        .12670E-03   -1.5075    
   7  Prefactor     .10000E-03    17.482        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    18.924        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    9.0329        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    9.4985        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    9.4497        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     12.369        7.2537        .11390E-03   -1.5004    
  13  norm          1.0871        1.1290        .93121E-03   -1.5499    
  14  norm          .10000E-03    2.4251        .24526E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1.4671        5.5078        .35479E-03   -1.5466    
  16  Prefactor     3.3157        146.31        .22138E-03   -1.5344    
  17  Prefactor     .10000E-03    9.0270        .28976E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    19.712        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    8.2466        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          12.192        1.9350        .42944E-04   -1.5009    
  21  Prefactor     .10000E-03    6.4256        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     14.805        36.436        .10412E-03   -1.4938    
  23  Prefactor     .10000E-03    8.6027        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          12.961        13.682        .11126E-03   -1.4988    
  25  Prefactor     1.2184        2.0862        .15054E-03   -1.5487    
  26  Prefactor     5.1390        21.307        .17701E-03   -1.5255    
  27  Prefactor     .10000E-03    4.7650        .34251E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .88433        .20085        .26137E-03   -.97013    
  29  Prefactor     1.0147        .19414        .24175E-03   -.92242    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.77861e-09
Minuit parameter uncertainties:
  1  7.94185
  2  0.000250775
  3  20.0752
  4  1.24551e-05
  5  0.000157298
  6  6.85132
  7  9.4182e-06
  8  1.70212e-05
  9  2.27661e-06
  10  1.57739e-06
  11  8.02465e-06
  12  7.25424
  13  1.12903
  14  0.000100116
  15  5.50973
  16  44.1662
  17  6.19517e-05
  18  9.56328e-05
  19  9.17592e-05
  20  1.93498
  21  4.26995e-05
  22  36.491
  23  8.78887e-06
  24  13.6851
  25  2.08635
  26  20.9406
  27  1.50382e-05
  28  0.201023
  29  0.194275
Done.

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

Extracting fit parameters...

4FGL J1516.8+3651
   Spectrum: PowerLaw
279    Prefactor:  3.316e+00  4.417e+01  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.015e+00  1.943e-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.843e-01  2.010e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/440835/likelihoodResults_353635201_353894401_4FGL_J1516.8+3651_daily_bin441.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): 0
logL (Free Index) = 6774.55214062
delta logL = 0.0012695806181

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6774.55199429
delta logL = 0.00141591033844

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.3157       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3569       1.0000          .0000       10.000    
     3 'Normalizat'    .88378       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0149       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=   6774.552     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      237 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.3078        119.07        .22231E-03   -.40297E-04
   2  Index         2.3726        3.1250        .71357E-02   -.59976E-04
   3  Normalizat    .88378        .19267        .26144E-03   -.88884E-03
   4  Prefactor     1.0148        .19024        .24173E-03   -.88926E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.30784
  Index      = 2.37257
  Normalizat = 0.883779
  Prefactor  = 1.01483
 **********
 **   18 **HESSE 
 **********

 FCN=   6774.552     FROM HESSE     STATUS=OK            23 CALLS      260 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.3078        111.42        .88926E-05   -1.5344    
   2  Index         2.3726        3.0457        .28543E-03   -.55329    
   3  Normalizat    .88378        .19284        .52289E-04   -.97032    
   4  Prefactor     1.0148        .19038        .48346E-04   -.92237    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.79695e-09
Minuit parameter uncertainties:
  1  38.4733
  2  3.39474
  3  0.192989
  4  0.190511
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/440835': 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) = 6774.55198242
delta logL = 0.00142777588644

Extracting fit parameters...

4FGL J1516.8+3651
   Spectrum: PowerLaw
279    Prefactor:  3.308e+00  3.847e+01  1.000e-04  1.000e+04 ( 1.000e-14)
280        Index:  2.373e+00  3.395e+00  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.015e+00  1.905e-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.838e-01  1.930e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.01
Ra Dec: 229.222 36.850

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/440835/cmap_HighResolution_353635201_353894401_4FGL_J1516.8+3651_daily_bin441.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.39e-03', job_status='DONE', photon_flux_upper_limit='5.76e-08', time_completed='2021-09-11 22:50:52.985299', job_id='440835', GAL2='1.01', fit_tolerance='1e-08', EG2='0.88', EG='0.88', time_epoch_completed='1631425852.99', return_code2='0', ts='0.01', comment='SUCCESS', return_code='0', GAL='1.01', dlogl='1.43e-03', ts2='0.01', photon_index_error='0.00', photon_index='2.19' WHERE bin_id='441' AND source_name='4FGL J1516.8+3651' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 22:50:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0065>
Subject: Job 440835: <4FGL_J1516.8+3651_daily_bin441> in cluster <slac> Done

Job <4FGL_J1516.8+3651_daily_bin441> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sat Sep 11 22:36:02 2021
Job was executed on host(s) <bullet0065>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 11 22:36:04 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:36:04 2021
Terminated at Sat Sep 11 22:50:53 2021
Results reported at Sat Sep 11 22:50:53 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1516.8+3651_daily_bin441 229.222 36.8505 353635201 353894401 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 :                                   871.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             365.21 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   890 sec.
    Turnaround time :                            891 sec.

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

