/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 14 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 = 7692
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1516.8+3651_daily_bin748
RA = 229.222, Dec = 36.8505
tmin = 433209601, tmax = 433468801
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='442373', job_status='RUN', time_executed='2021-09-11 22:41:47.281939', time_epoch_executed='1631425307.28' WHERE source_name='4FGL J1516.8+3651' and cadence='daily' and bin_id='748'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/442373

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/442373/ft1_4FGL_J1516.8+3651_daily_bin748.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/442373/ft2_4FGL_J1516.8+3651_daily_bin748.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/442373/ft1_4FGL_J1516.8+3651_daily_bin748.fits outfile=/scratch/kocevski/442373/ft1_filteredMKT_4FGL_J1516.8+3651_daily_bin748.fits ra=229.222 dec=36.8505 rad=12.0 tmin=433209601.0 tmax=433468801.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 6.02
user 5.74
sys 0.26

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/442373/ft1_filtered_4FGL_J1516.8+3651_daily_bin748.fits" evtable="EVENTS" scfile=/scratch/kocevski/442373/ft2_4FGL_J1516.8+3651_daily_bin748.fits sctable="SC_DATA" outfile=/scratch/kocevski/442373/ltcube_433209601_433468801_4FGL_J1516.8+3651_daily_bin748.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/442373/ft2_4FGL_J1516.8+3651_daily_bin748.fits
.....................!
real 12.44
user 12.04
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/442373/ft1_filtered_4FGL_J1516.8+3651_daily_bin748.fits evtable="EVENTS" scfile=/scratch/kocevski/442373/ft2_4FGL_J1516.8+3651_daily_bin748.fits sctable="SC_DATA" expcube=/scratch/kocevski/442373/ltcube_433209601_433468801_4FGL_J1516.8+3651_daily_bin748.fits outfile=/scratch/kocevski/442373/expmap_433209601_433468801_4FGL_J1516.8+3651_daily_bin748.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/442373/ltcube_433209601_433468801_4FGL_J1516.8+3651_daily_bin748.fits
.....................!
real 190.36
user 184.81
sys 5.17

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/442373/ft1_filtered_4FGL_J1516.8+3651_daily_bin748.fits scfile=/scratch/kocevski/442373/ft2_4FGL_J1516.8+3651_daily_bin748.fits outfile=/scratch/kocevski/442373/cmap_433209601_433468801_4FGL_J1516.8+3651_daily_bin748.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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/442373/ft1_filtered_4FGL_J1516.8+3651_daily_bin748.fits scfile=/scratch/kocevski/442373/ft2_4FGL_J1516.8+3651_daily_bin748.fits outfile=/scratch/kocevski/442373/cmap_HighResolution_433209601_433468801_4FGL_J1516.8+3651_daily_bin748.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.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10032E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    7.7433       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .31214E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    8.8978       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10270E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.1672       1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.1170       1.0000         .10000E-03   10000.    
     9 'norm      '    6.0534       1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.2533       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.1180       1.0000         .10000E-03   10000.    
    13 'norm      '    .68191       1.0000         .10000E-03   10000.    
    14 'norm      '    .41478E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    87.785       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .61454       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    6.7178       1.0000         .10000E-03   10000.    
    20 'norm      '    6.4359       1.0000         .10000E-03   10000.    
    21 'Prefactor '    24.474       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10266E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    71.862       1.0000         .10000E-03   10000.    
    24 'norm      '    6.9549       1.0000         .10000E-03   10000.    
    25 'Prefactor '    1.1355       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    2.6903       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.0189       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .93269       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=   6452.769     FROM MIGRAD    STATUS=CONVERGED    723 CALLS     3817 TOTAL
                     EDM=   .23E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    8.8656        .49581E-07** at limit **
   2  Prefactor     7.7320        22.432       -.10557E-05   -.43731E-04
   3  Prefactor     .10001E-03    171.12       -.84343E-05** at limit **
   4  norm          8.8910        21.873       -.29659E-06   -.33259E-04
   5  Prefactor     .10000E-03    24.061        .92807E-07** at limit **
   6  norm          .10000E-03    2.2497       -.24376E-07** at limit **
   7  Prefactor     4.1604        99.289       -.21354E-06    .97783E-06
   8  Prefactor     4.1131        78.759       -.37597E-06    .12935E-05
   9  norm          6.0533        6.4984        .73273E-07   -.73669E-05
  10  Prefactor     3.2624        28.044       -.35491E-06   -.12087E-04
  11  Prefactor     .10000E-03    2.5909        .96810E-07** at limit **
  12  Prefactor     5.1246        14.773       -.86354E-06   -.39724E-04
  13  norm          .68022        1.3566        .45812E-07    .20616E-03
  14  norm          .10000E-03    3.3738        .34193E-06** at limit **
  15  Prefactor     .10000E-03    12.601        .14695E-05** at limit **
  16  Prefactor     87.747        79.629        .17385E-05    .24572E-04
  17  Prefactor     .59930        4.7833       -.61290E-06   -.10372E-03
  18  Prefactor     .10000E-03    9.2136        .13969E-06** at limit **
  19  Prefactor     6.7440        17.231       -.25408E-05   -.14205E-03
  20  norm          6.4362        2.2269        .39180E-07   -.37566E-04
  21  Prefactor     24.472        17.353        .74371E-07   -.13921E-05
  22  Prefactor     .10000E-03    77.634       -.12051E-05** at limit **
  23  Prefactor     71.838        42.822        .15934E-06    .29471E-04
  24  norm          6.9601        23.392       -.17689E-06   -.22264E-04
  25  Prefactor     1.1352        1.6289       -.24356E-06   -.32090E-04
  26  Prefactor     .10000E-03    7.0617       -.25579E-08** at limit **
  27  Prefactor     2.6899        4.0217       -.59485E-06    .36862E-04
  28  Normalizat    1.0187        .22370       -.16476E-05   -.85660E-05
  29  Prefactor     .93298        .18651        .18356E-05   -.23837E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 7.73199
  Prefactor  = 0.000100006
  norm       = 8.891
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 4.1604
  Prefactor  = 4.11308
  norm       = 6.05333
  Prefactor  = 3.26238
  Prefactor  = 0.0001
  Prefactor  = 5.12465
  norm       = 0.680219
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 87.7473
  Prefactor  = 0.599299
  Prefactor  = 0.0001
  Prefactor  = 6.74402
  norm       = 6.43622
  Prefactor  = 24.4724
  Prefactor  = 0.0001
  Prefactor  = 71.8379
  norm       = 6.9601
  Prefactor  = 1.13515
  Prefactor  = 0.0001
  Prefactor  = 2.68992
  Normalizat = 1.01868
  Prefactor  = 0.932985
 **********
 **   18 **HESSE 
 **********

 FCN=   6452.769     FROM HESSE     STATUS=OK           567 CALLS     4384 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    9.1108        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     7.7320        22.166        .14410E-03   -1.5152    
   3  Prefactor     .10001E-03    176.15        .75348E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          8.8910        21.772        .13437E-03   -1.5112    
   5  Prefactor     .10000E-03    24.089        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    2.2548        .11765E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     4.1604        99.343        .19744E-03   -1.5300    
   8  Prefactor     4.1131        78.447        .19867E-03   -1.5302    
   9  norm          6.0533        6.4958        .16319E-03   -1.5216    
  10  Prefactor     3.2624        27.850        .22454E-03   -1.5347    
  11  Prefactor     .10000E-03    2.5935        .12622E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     5.1246        14.760        .17772E-03   -1.5255    
  13  norm          .68022        1.1113        .12623E-02   -1.5543    
  14  norm          .10000E-03    12.542        .26469E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    12.968        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     87.747        78.834        .21441E-03   -1.3832    
  17  Prefactor     .59930        22.994        .30301E-02   -1.5553    
  18  Prefactor     .10000E-03    9.2310        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     6.7440        17.593        .15481E-03   -1.5189    
  20  norm          6.4362        2.2544        .50850E-04   -1.5201    
  21  Prefactor     24.472        17.580        .80971E-04   -1.4718    
  22  Prefactor     .10000E-03    79.049        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     71.838        42.556        .47357E-04   -1.4011    
  24  norm          6.9601        23.188        .15212E-03   -1.5180    
  25  Prefactor     1.1352        1.5845        .11702E-03   -1.5495    
  26  Prefactor     .10000E-03    7.0648        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     2.6899        3.9930        .18597E-03   -1.5380    
  28  Normalizat    1.0187        .24868        .27066E-03   -.92407    
  29  Prefactor     .93298        .20498        .25069E-03   -.94998    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.54347e-08
Minuit parameter uncertainties:
  1  8.7604e-06
  2  22.1897
  3  0.00209711
  4  21.7914
  5  1.05797e-05
  6  2.85107e-07
  7  40.7356
  8  35.9795
  9  6.49655
  10  19.0756
  11  1.70771e-06
  12  14.7709
  13  1.11129
  14  0.000104289
  15  8.07673e-05
  16  78.9283
  17  7.42674
  18  5.78342e-06
  19  17.6069
  20  2.25448
  21  17.5838
  22  6.70303e-05
  23  42.5744
  24  23.2182
  25  1.58461
  26  1.56726e-06
  27  3.99336
  28  0.248959
  29  0.205145
Done.

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

Extracting fit parameters...

4FGL J1516.8+3651
   Spectrum: PowerLaw
279    Prefactor:  8.775e+01  7.893e+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:  9.330e-01  2.051e-01  0.000e+00  1.000e+01 ( 1.000e+00)
592        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
593        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
590   Normalization:  1.019e+00  2.490e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.17
Ra Dec: 229.222 36.850
Photon Index (Fixed Index): 2.19 +/- 0.00
Photon Flux (Fixed Index): 3.55e-08 +/- 3.19e-08
Energy Flux (Fixed Index): 1.62e-05 +/- 1.46e-05

TS (Fixed Index): 2.17
Ra Dec: 229.222 36.850
Photon Flux Upper Limit: 1.07e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.17e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/442373/likelihoodResults_433209601_433468801_4FGL_J1516.8+3651_daily_bin748.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) = 6452.38428253
delta logL = 0.384583412791

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6452.37289846
delta logL = 0.395967484311

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    41.542       1.0000         .10000E-03   10000.    
     2 'Index     '    2.8968       1.0000          .0000       10.000    
     3 'Normalizat'    .96722       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96203       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=   6452.373     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      301 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     41.475        109.02        .62194E-04    .25518E-03
   2  Index         2.8981        1.3774        .49238E-02    .20233E-03
   3  Normalizat    .96699        .23986        .27656E-03    .23271E-03
   4  Prefactor     .96225        .20738        .24720E-03   -.68723E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 41.4749
  Index      = 2.89813
  Normalizat = 0.966991
  Prefactor  = 0.96225
 **********
 **   18 **HESSE 
 **********

 FCN=   6452.373     FROM HESSE     STATUS=OK            25 CALLS      326 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     41.475        67.552        .12439E-04   -1.4419    
   2  Index         2.8981        .85773        .19695E-03   -.43386    
   3  Normalizat    .96699        .23280        .11062E-04   -.94145    
   4  Prefactor     .96225        .20310        .49440E-04   -.93999    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.92786e-09
Minuit parameter uncertainties:
  1  67.6768
  2  0.862926
  3  0.233042
  4  0.203265
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/442373': 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) = 6452.37289624
delta logL = 0.395969703449

Extracting fit parameters...

4FGL J1516.8+3651
   Spectrum: PowerLaw
279    Prefactor:  4.147e+01  6.768e+01  1.000e-04  1.000e+04 ( 1.000e-14)
280        Index:  2.898e+00  8.629e-01  0.000e+00  1.000e+01 (-1.000e+00)
281        Scale:  1.677e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
591    Prefactor:  9.622e-01  2.033e-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:  9.670e-01  2.330e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.03
Ra Dec: 229.222 36.850
Photon Index (Free Index): 2.90 +/- 0.86
Photon Flux (Free Index): 7.75e-08 +/- 6.57e-08
Energy Flux (Free Index): 1.63e-05 +/- 1.12e-05

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/442373/cmap_HighResolution_433209601_433468801_4FGL_J1516.8+3651_daily_bin748.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.17e-03', comment='SUCCESS', photon_flux='3.55e-08', energy_flux2='1.63e-05', photon_flux_error='3.19e-08', dlogl='3.96e-01', energy_flux='1.62e-05', photon_flux2='7.75e-08', job_status='DONE', time_completed='2021-09-11 22:56:15.206987', photon_index_error2='0.86', photon_index2='2.90', ts='2.17', fit_tolerance='1e-08', GAL='0.93', photon_index_error='0.00', photon_flux_upper_limit='1.07e-07', energy_flux_error2='1.12e-05', EG='1.02', time_epoch_completed='1631426175.21', return_code='0', job_id='442373', GAL2='0.96', EG2='0.97', return_code2='0', energy_flux_error='1.46e-05', photon_flux_error2='6.57e-08', ts2='3.03', photon_index='2.19' WHERE bin_id='748' AND source_name='4FGL J1516.8+3651' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 22:56:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0012>
Subject: Job 442373: <4FGL_J1516.8+3651_daily_bin748> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1516.8+3651_daily_bin748 229.222 36.8505 433209601 433468801 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 :                                   860.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             295.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   899 sec.
    Turnaround time :                            900 sec.

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

