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


Performing analysis on: 4FGL_J1516.8+3651_daily_bin319
RA = 229.222, Dec = 36.8505
tmin = 322012801, tmax = 322272001
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='439537', job_status='RUN', time_executed='2021-09-11 22:33:25.659740', time_epoch_executed='1631424805.66' WHERE source_name='4FGL J1516.8+3651' and cadence='daily' and bin_id='319'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/439537

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/439537/ft1_4FGL_J1516.8+3651_daily_bin319.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/439537/ft2_4FGL_J1516.8+3651_daily_bin319.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/439537/ft1_4FGL_J1516.8+3651_daily_bin319.fits outfile=/scratch/kocevski/439537/ft1_filteredMKT_4FGL_J1516.8+3651_daily_bin319.fits ra=229.222 dec=36.8505 rad=12.0 tmin=322012801.0 tmax=322272001.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.41
user 3.20
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/439537/ft2_4FGL_J1516.8+3651_daily_bin319.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/439537/ft1_filteredMKT_4FGL_J1516.8+3651_daily_bin319.fits evtable="EVENTS" outfile="/scratch/kocevski/439537/ft1_filtered_4FGL_J1516.8+3651_daily_bin319.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.48
user 0.33
sys 0.15

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/439537/ft1_filtered_4FGL_J1516.8+3651_daily_bin319.fits evtable="EVENTS" scfile=/scratch/kocevski/439537/ft2_4FGL_J1516.8+3651_daily_bin319.fits sctable="SC_DATA" expcube=/scratch/kocevski/439537/ltcube_322012801_322272001_4FGL_J1516.8+3651_daily_bin319.fits outfile=/scratch/kocevski/439537/expmap_322012801_322272001_4FGL_J1516.8+3651_daily_bin319.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/439537/ltcube_322012801_322272001_4FGL_J1516.8+3651_daily_bin319.fits
.....................!
real 189.98
user 185.03
sys 4.62

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/439537/ft1_filtered_4FGL_J1516.8+3651_daily_bin319.fits scfile=/scratch/kocevski/439537/ft2_4FGL_J1516.8+3651_daily_bin319.fits outfile=/scratch/kocevski/439537/cmap_322012801_322272001_4FGL_J1516.8+3651_daily_bin319.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/439537/ft1_filtered_4FGL_J1516.8+3651_daily_bin319.fits scfile=/scratch/kocevski/439537/ft2_4FGL_J1516.8+3651_daily_bin319.fits outfile=/scratch/kocevski/439537/cmap_HighResolution_322012801_322272001_4FGL_J1516.8+3651_daily_bin319.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.40
sys 0.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.4981       1.0000         .10000E-03   10000.    
     2 'Prefactor '    10.565       1.0000         .10000E-03   10000.    
     3 'Prefactor '    15.788       1.0000         .10000E-03   10000.    
     4 'norm      '    .10133E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    30.575       1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    10.550       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    4.6371       1.0000         .10000E-03   10000.    
    10 'Prefactor '    22.606       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    6.2966       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    99.173       1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.0771       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    10.322       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .11694E-01   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10215E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    9.9781       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    12.145       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .83174       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.0298       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=   6561.851     FROM MIGRAD    STATUS=CONVERGED    720 CALLS     3697 TOTAL
                     EDM=   .51E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.4979        4.2473        .82848E-07    .94380E-04
   2  Prefactor     10.565        15.137        .13079E-05   -.10556E-03
   3  Prefactor     15.788        18.031       -.66877E-06    .20988E-04
   4  norm          .10000E-03    7.8143       -.67567E-06** at limit **
   5  Prefactor     30.569        26.148        .14998E-06    .16657E-04
   6  norm          .10000E-03    1.9693       -.65777E-07** at limit **
   7  Prefactor     10.550        21.899        .67615E-07    .33025E-05
   8  Prefactor     .10000E-03    26.179       -.34018E-07** at limit **
   9  norm          4.6372        6.6154        .30678E-05   -.52881E-03
  10  Prefactor     22.611        15.044       -.10451E-05   -.33747E-03
  11  Prefactor     .10000E-03    2.9186       -.39566E-07** at limit **
  12  Prefactor     .10000E-03    2.4596        .74382E-08** at limit **
  13  norm          .10000E-03    .56060        .90533E-08** at limit **
  14  norm          6.2957        3.4319        .10975E-07    .52773E-04
  15  Prefactor     .10000E-03    7.1497       -.60427E-06** at limit **
  16  Prefactor     99.200        56.474        .26900E-05    .36587E-03
  17  Prefactor     3.0768        7.1953        .46606E-06   -.77611E-04
  18  Prefactor     .10000E-03    8.9200        .11672E-05** at limit **
  19  Prefactor     .10000E-03    8.2487        .72239E-06** at limit **
  20  norm          10.321        1.8242        .16970E-07   -.12926E-03
  21  Prefactor     .10000E-03    7.0505        .63486E-06** at limit **
  22  Prefactor     .10002E-03    19.591       -.38766E-06** at limit **
  23  Prefactor     .10000E-03    9.7169       -.81798E-06** at limit **
  24  norm          9.9775        10.760       -.77339E-07    .43463E-05
  25  Prefactor     .10000E-03    .75962        .10154E-07** at limit **
  26  Prefactor     .10000E-03    8.0267       -.29531E-06** at limit **
  27  Prefactor     12.144        6.6942        .57434E-07   -.31954E-04
  28  Normalizat    .83186        .17346       -.11757E-06   -.17999E-04
  29  Prefactor     1.0297        .16706       -.27824E-06   -.67984E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 4.49785
  Prefactor  = 10.565
  Prefactor  = 15.7884
  norm       = 0.0001
  Prefactor  = 30.5693
  norm       = 0.0001
  Prefactor  = 10.5504
  Prefactor  = 0.0001
  norm       = 4.63716
  Prefactor  = 22.6114
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 6.29568
  Prefactor  = 0.0001
  Prefactor  = 99.2002
  Prefactor  = 3.07683
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 10.3214
  Prefactor  = 0.0001
  Prefactor  = 0.000100016
  Prefactor  = 0.0001
  norm       = 9.97753
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.1441
  Normalizat = 0.831862
  Prefactor  = 1.02971
 **********
 **   18 **HESSE 
 **********

 FCN=   6561.851     FROM HESSE     STATUS=OK           557 CALLS     4254 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.4979        4.2471        .15740E-03   -1.5284    
   2  Prefactor     10.565        15.184        .61634E-03   -1.5058    
   3  Prefactor     15.788        18.064        .10080E-03   -1.4913    
   4  norm          .10000E-03    7.8788        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     30.569        26.212        .72460E-04   -1.4602    
   6  norm          .10000E-03    1.9811        .11100E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     10.550        21.891        .12335E-03   -1.5058    
   8  Prefactor     .10000E-03    26.289        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          4.6372        6.7688        .93451E-03   -1.5277    
  10  Prefactor     22.611        15.144        .84245E-04   -1.4757    
  11  Prefactor     .10000E-03    2.9346        .13506E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    2.4770        .12406E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    3.3412        .11662E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          6.2957        3.4251        .10690E-03   -1.5206    
  15  Prefactor     .10000E-03    7.3999        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     99.200        58.838        .20184E-03   -1.3713    
  17  Prefactor     3.0768        7.1997        .23123E-03   -1.5357    
  18  Prefactor     .10000E-03    9.0623        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    8.4606        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          10.321        1.8141        .43450E-04   -1.5065    
  21  Prefactor     .10000E-03    7.1295        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10002E-03    141.08        .69241E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    9.8033        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          9.9775        10.754        .12685E-03   -1.5076    
  25  Prefactor     .10000E-03    1.2316        .13744E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    8.0422        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     12.144        6.6939        .11495E-03   -1.5011    
  28  Normalizat    .83186        .19895        .26560E-03   -.98897    
  29  Prefactor     1.0297        .19121        .23956E-03   -.91746    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.25569e-09
Minuit parameter uncertainties:
  1  4.24739
  2  15.1891
  3  18.0702
  4  8.81546e-05
  5  26.2216
  6  1.40782e-06
  7  21.9071
  8  3.07078e-05
  9  6.76997
  10  15.1463
  11  1.83085e-06
  12  5.48904e-07
  13  4.75682e-05
  14  3.42521
  15  7.24566e-05
  16  58.8728
  17  7.20177
  18  0.00015381
  19  8.10947e-05
  20  1.81413
  21  7.6134e-05
  22  0.00299401
  23  0.000126247
  24  10.7562
  25  1.18159e-06
  26  3.9879e-05
  27  6.69431
  28  0.199124
  29  0.19134
Done.

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

Extracting fit parameters...

4FGL J1516.8+3651
   Spectrum: PowerLaw
279    Prefactor:  9.920e+01  5.887e+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.030e+00  1.913e-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.319e-01  1.991e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 14.08
Ra Dec: 229.222 36.850
Photon Index (Fixed Index): 2.19 +/- 0.00
Photon Flux (Fixed Index): 4.01e-08 +/- 2.38e-08
Energy Flux (Fixed Index): 1.83e-05 +/- 1.09e-05

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) = 6560.8822735
delta logL = 0.969213537895

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6560.79460395
delta logL = 1.0568830808

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    133.48       1.0000         .10000E-03   10000.    
     2 'Index     '    1.5070       1.0000          .0000       10.000    
     3 'Normalizat'    .85657       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0180       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.

 FCN=   6560.795     FROM MIGRAD    STATUS=CONVERGED     43 CALLS      205 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     133.48        137.66        .87139E-03    .10731E-02
   2  Index         1.5071        .57696        .21720        .11422E-03
   3  Normalizat    .85656        .16668        .44344E-01    .74213E-03
   4  Prefactor     1.0180        .16478        .42344E-01    .86476E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 133.479
  Index      = 1.50714
  Normalizat = 0.856564
  Prefactor  = 1.01802
 **********
 **   18 **HESSE 
 **********

 FCN=   6560.795     FROM HESSE     STATUS=OK            27 CALLS      232 TOTAL
                     EDM=   .86E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     133.48        91.427        .17428E-03   -1.3392    
   2  Index         1.5071        .44900        .81355E-02   -.77340    
   3  Normalizat    .85656        .18897        .26222E-03   -.98004    
   4  Prefactor     1.0180        .18846        .24085E-03   -.92131    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.55639e-09
Minuit parameter uncertainties:
  1  91.5237
  2  0.450189
  3  0.18912
  4  0.188579
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/439537': 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) = 6560.79460393
delta logL = 1.05688310705

Extracting fit parameters...

4FGL J1516.8+3651
   Spectrum: PowerLaw
279    Prefactor:  1.335e+02  9.152e+01  1.000e-04  1.000e+04 ( 1.000e-14)
280        Index:  1.507e+00  4.502e-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:  1.018e+00  1.886e-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.566e-01  1.891e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 16.17
Ra Dec: 229.222 36.850
Photon Index (Free Index): 1.51 +/- 0.45
Photon Flux (Free Index): 1.79e-08 +/- 1.66e-08
Energy Flux (Free Index): 5.53e-05 +/- 6.03e-05

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/439537/cmap_HighResolution_322012801_322272001_4FGL_J1516.8+3651_daily_bin319.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.01e-08', energy_flux2='5.53e-05', photon_flux_error='2.38e-08', dlogl='1.06e+00', energy_flux='1.83e-05', photon_flux2='1.79e-08', job_status='DONE', time_completed='2021-09-11 22:45:47.580951', photon_index_error2='0.45', photon_index2='1.51', ts='14.08', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', energy_flux_error2='6.03e-05', EG='0.83', time_epoch_completed='1631425547.58', return_code='0', job_id='439537', GAL2='1.02', EG2='0.86', return_code2='0', energy_flux_error='1.09e-05', photon_flux_error2='1.66e-08', ts2='16.17', photon_index='2.19' WHERE bin_id='319' AND source_name='4FGL J1516.8+3651' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 22:45:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0162>
Subject: Job 439537: <4FGL_J1516.8+3651_daily_bin319> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1516.8+3651_daily_bin319 229.222 36.8505 322012801 322272001 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 :                                   741.01 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             292.31 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   881 sec.
    Turnaround time :                            883 sec.

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

