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


Performing analysis on: 4FGL_J1516.8+3651_daily_bin2
RA = 229.222, Dec = 36.8505
tmin = 239846401, tmax = 240105601
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='437347', job_status='RUN', time_executed='2021-09-11 22:23:28.745211', time_epoch_executed='1631424208.75' WHERE source_name='4FGL J1516.8+3651' and cadence='daily' and bin_id='2'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/437347

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/437347/ft1_4FGL_J1516.8+3651_daily_bin2.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/437347/ft2_4FGL_J1516.8+3651_daily_bin2.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/437347/ft1_4FGL_J1516.8+3651_daily_bin2.fits outfile=/scratch/kocevski/437347/ft1_filteredMKT_4FGL_J1516.8+3651_daily_bin2.fits ra=229.222 dec=36.8505 rad=12.0 tmin=239846401.0 tmax=240105601.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 1.45
user 1.25
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/437347/ft1_filtered_4FGL_J1516.8+3651_daily_bin2.fits" evtable="EVENTS" scfile=/scratch/kocevski/437347/ft2_4FGL_J1516.8+3651_daily_bin2.fits sctable="SC_DATA" outfile=/scratch/kocevski/437347/ltcube_239846401_240105601_4FGL_J1516.8+3651_daily_bin2.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/437347/ft2_4FGL_J1516.8+3651_daily_bin2.fits
.....................!
real 13.96
user 13.57
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/437347/ft1_filtered_4FGL_J1516.8+3651_daily_bin2.fits evtable="EVENTS" scfile=/scratch/kocevski/437347/ft2_4FGL_J1516.8+3651_daily_bin2.fits sctable="SC_DATA" expcube=/scratch/kocevski/437347/ltcube_239846401_240105601_4FGL_J1516.8+3651_daily_bin2.fits outfile=/scratch/kocevski/437347/expmap_239846401_240105601_4FGL_J1516.8+3651_daily_bin2.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/437347/ltcube_239846401_240105601_4FGL_J1516.8+3651_daily_bin2.fits
.....................!
real 190.24
user 185.19
sys 4.68

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/437347/ft1_filtered_4FGL_J1516.8+3651_daily_bin2.fits scfile=/scratch/kocevski/437347/ft2_4FGL_J1516.8+3651_daily_bin2.fits outfile=/scratch/kocevski/437347/cmap_239846401_240105601_4FGL_J1516.8+3651_daily_bin2.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/437347/ft1_filtered_4FGL_J1516.8+3651_daily_bin2.fits scfile=/scratch/kocevski/437347/ft2_4FGL_J1516.8+3651_daily_bin2.fits outfile=/scratch/kocevski/437347/cmap_HighResolution_239846401_240105601_4FGL_J1516.8+3651_daily_bin2.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.56
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.4233       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.9191       1.0000         .10000E-03   10000.    
     6 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    45.313       1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    10.705       1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.7083       1.0000         .10000E-03   10000.    
    13 'norm      '    .60950       1.0000         .10000E-03   10000.    
    14 'norm      '    2.9973       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    45.987       1.0000         .10000E-03   10000.    
    17 'Prefactor '    11.079       1.0000         .10000E-03   10000.    
    18 'Prefactor '    8.3463       1.0000         .10000E-03   10000.    
    19 'Prefactor '    9.2913       1.0000         .10000E-03   10000.    
    20 'norm      '    5.2049       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    10.069       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    6.7638       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.3509       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .53047       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=   5517.838     FROM MIGRAD    STATUS=CONVERGED    688 CALLS     3605 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.4242        4.8120       -.24411E-08   -.33006E-04
   2  Prefactor     .10000E-03    3.6501       -.28765E-05** at limit **
   3  Prefactor     .10000E-03    3.8481        .17297E-05** at limit **
   4  norm          .10000E-03    5.3214       -.41069E-05** at limit **
   5  Prefactor     3.9258        25.507        .12395E-04   -.46093E-04
   6  norm          .10000E-03    4.1131        .27383E-05** at limit **
   7  Prefactor     .10000E-03    26.340       -.36615E-05** at limit **
   8  Prefactor     45.322        42.262        .11322E-04   -.16759E-04
   9  norm          .10000E-03    3.1015        .33312E-06** at limit **
  10  Prefactor     .10000E-03    4.7209       -.28882E-05** at limit **
  11  Prefactor     10.702        9.6230        .10081E-06   -.17168E-03
  12  Prefactor     5.7093        6.3549       -.32576E-07   -.13017E-03
  13  norm          .61169        1.9194        .57048E-06   -.91336E-03
  14  norm          2.9973        2.7930        .32993E-07   -.59480E-04
  15  Prefactor     .10000E-03    2.4169        .16001E-07** at limit **
  16  Prefactor     45.974        65.288       -.17885E-04   -.27547E-04
  17  Prefactor     11.077        8.2377       -.72034E-06   -.12236E-02
  18  Prefactor     8.3475        12.651        .17529E-06   -.38501E-04
  19  Prefactor     9.2954        10.070        .66527E-07   -.45477E-04
  20  norm          5.2056        1.5359        .45709E-07   -.49443E-03
  21  Prefactor     .10000E-03    4.3204        .14296E-05** at limit **
  22  Prefactor     .10000E-03    15.353        .64657E-05** at limit **
  23  Prefactor     .10000E-03    8.9941       -.62611E-06** at limit **
  24  norm          .10000E-03    6.6320        .69257E-05** at limit **
  25  Prefactor     10.069        3.8604        .14315E-07   -.21550E-03
  26  Prefactor     .10000E-03    9.8164       -.61681E-05** at limit **
  27  Prefactor     6.7660        5.0118       -.40504E-06   -.15063E-02
  28  Normalizat    1.3501        .19641       -.18296E-05   -.37832E-04
  29  Prefactor     .53114        .17683        .10384E-05   -.18850E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 6.42422
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 3.92583
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 45.3223
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.7015
  Prefactor  = 5.70932
  norm       = 0.611692
  norm       = 2.99729
  Prefactor  = 0.0001
  Prefactor  = 45.9739
  Prefactor  = 11.0769
  Prefactor  = 8.34748
  Prefactor  = 9.2954
  norm       = 5.2056
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 10.0689
  Prefactor  = 0.0001
  Prefactor  = 6.76598
  Normalizat = 1.35007
  Prefactor  = 0.531141
 **********
 **   18 **HESSE 
 **********

 FCN=   5517.838     FROM HESSE     STATUS=OK           551 CALLS     4156 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.4242        4.8114        .13736E-03   -1.5201    
   2  Prefactor     .10000E-03    3.6494        .13857E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    3.8472        .14228E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    5.3198        .16727E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     3.9258        25.284        .20379E-03   -1.5312    
   6  norm          .10000E-03    4.1843        .14691E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    26.402        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     45.322        42.277        .59561E-04   -1.4361    
   9  norm          .10000E-03    3.1024        .12776E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    4.7263        .15762E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     10.702        9.2991        .12246E-03   -1.5054    
  12  Prefactor     5.7093        6.3521        .16812E-03   -1.5230    
  13  norm          .61169        1.8156        .15071E-03   -1.5552    
  14  norm          2.9973        2.7882        .11590E-03   -1.5362    
  15  Prefactor     .10000E-03    2.4189        .11275E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     45.974        64.158        .59125E-04   -1.4351    
  17  Prefactor     11.077        8.3143        .60183E-03   -1.5042    
  18  Prefactor     8.3475        12.640        .13877E-03   -1.5130    
  19  Prefactor     9.2954        10.086        .13148E-03   -1.5098    
  20  norm          5.2056        1.5362        .47750E-04   -1.5252    
  21  Prefactor     .10000E-03    4.3380        .15065E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    15.348        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    9.0047        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    6.6420        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     10.069        3.8583        .85776E-04   -1.5073    
  26  Prefactor     .10000E-03    9.8059        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     6.7660        5.0614        .69377E-03   -1.5188    
  28  Normalizat    1.3501        .23218        .21889E-03   -.82084    
  29  Prefactor     .53114        .20616        .31128E-03   -1.1057    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.53848e-09
Minuit parameter uncertainties:
  1  4.81169
  2  1.39458e-06
  3  2.36164e-06
  4  2.66134e-07
  5  19.9379
  6  1.41727e-05
  7  1.9672e-05
  8  42.3052
  9  1.05338e-06
  10  7.67957e-06
  11  9.30031
  12  6.35283
  13  1.81576
  14  2.78835
  15  1.78608e-06
  16  64.2543
  17  8.31521
  18  12.6436
  19  10.088
  20  1.53617
  21  2.029e-06
  22  2.12095e-06
  23  1.57672e-05
  24  1.23839e-05
  25  3.85841
  26  9.03381e-06
  27  5.06169
  28  0.232357
  29  0.206456
Done.

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

Extracting fit parameters...

4FGL J1516.8+3651
   Spectrum: PowerLaw
279    Prefactor:  4.597e+01  6.425e+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:  5.311e-01  2.065e-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.350e+00  2.324e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/437347/likelihoodResults_239846401_240105601_4FGL_J1516.8+3651_daily_bin2.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) = 5517.80989997
delta logL = 0.0278206249232

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5517.79715842
delta logL = 0.0405621745749

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    35.434       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4224       1.0000          .0000       10.000    
     3 'Normalizat'    1.3450       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .53379       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=   5517.797     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      277 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     35.430        69.582        .67323E-04    .17613E-03
   2  Index         2.4224        .91461        .82395E-02    .94346E-04
   3  Normalizat    1.3453        .21782        .21920E-03   -.20477E-03
   4  Prefactor     .53354        .20228        .31061E-03   -.14692E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 35.4296
  Index      = 2.42238
  Normalizat = 1.34529
  Prefactor  = 0.533541
 **********
 **   18 **HESSE 
 **********

 FCN=   5517.797     FROM HESSE     STATUS=OK            25 CALLS      302 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     35.430        62.865        .13465E-04   -1.4517    
   2  Index         2.4224        .82701        .32958E-03   -.54162    
   3  Normalizat    1.3453        .21791        .43840E-04   -.82224    
   4  Prefactor     .53354        .20235        .12424E-04   -1.1046    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.62717e-10
Minuit parameter uncertainties:
  1  62.9829
  2  0.832236
  3  0.218058
  4  0.202627
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/437347': 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) = 5517.79715757
delta logL = 0.0405630185141

Extracting fit parameters...

4FGL J1516.8+3651
   Spectrum: PowerLaw
279    Prefactor:  3.543e+01  6.298e+01  1.000e-04  1.000e+04 ( 1.000e-14)
280        Index:  2.422e+00  8.322e-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:  5.335e-01  2.026e-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.345e+00  2.181e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/437347/cmap_HighResolution_239846401_240105601_4FGL_J1516.8+3651_daily_bin2.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.43e-03', job_status='DONE', photon_flux_upper_limit='8.45e-08', time_completed='2021-09-11 22:35:59.951043', job_id='437347', GAL2='0.53', fit_tolerance='1e-08', EG2='1.35', EG='1.35', time_epoch_completed='1631424959.95', return_code2='0', ts='0.78', comment='SUCCESS', return_code='0', GAL='0.53', dlogl='4.06e-02', ts2='0.86', photon_index_error='0.00', photon_index='2.19' WHERE bin_id='2' AND source_name='4FGL J1516.8+3651' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 22:35:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0048>
Subject: Job 437347: <4FGL_J1516.8+3651_daily_bin2> in cluster <slac> Done

Job <4FGL_J1516.8+3651_daily_bin2> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Sep 11 22:21:20 2021
Job was executed on host(s) <bullet0048>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 11 22:21:21 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:21:21 2021
Terminated at Sat Sep 11 22:36:00 2021
Results reported at Sat Sep 11 22:36:00 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1516.8+3651_daily_bin2 229.222 36.8505 239846401 240105601 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 :                                   750.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             313.59 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   879 sec.
    Turnaround time :                            880 sec.

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

