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


Performing analysis on: 4FGL_J1516.8+3651_daily_bin89
RA = 229.222, Dec = 36.8505
tmin = 262396801, tmax = 262656001
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='438551', job_status='RUN', time_executed='2021-09-11 22:28:44.257064', time_epoch_executed='1631424524.26' WHERE source_name='4FGL J1516.8+3651' and cadence='daily' and bin_id='89'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/438551

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/438551/ft1_4FGL_J1516.8+3651_daily_bin89.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/438551/ft2_4FGL_J1516.8+3651_daily_bin89.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/438551/ft1_4FGL_J1516.8+3651_daily_bin89.fits outfile=/scratch/kocevski/438551/ft1_filteredMKT_4FGL_J1516.8+3651_daily_bin89.fits ra=229.222 dec=36.8505 rad=12.0 tmin=262396801.0 tmax=262656001.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.46
user 1.23
sys 0.16

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/438551/ft1_filtered_4FGL_J1516.8+3651_daily_bin89.fits" evtable="EVENTS" scfile=/scratch/kocevski/438551/ft2_4FGL_J1516.8+3651_daily_bin89.fits sctable="SC_DATA" outfile=/scratch/kocevski/438551/ltcube_262396801_262656001_4FGL_J1516.8+3651_daily_bin89.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/438551/ft2_4FGL_J1516.8+3651_daily_bin89.fits
.....................!
real 13.14
user 12.76
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/438551/ft1_filtered_4FGL_J1516.8+3651_daily_bin89.fits evtable="EVENTS" scfile=/scratch/kocevski/438551/ft2_4FGL_J1516.8+3651_daily_bin89.fits sctable="SC_DATA" expcube=/scratch/kocevski/438551/ltcube_262396801_262656001_4FGL_J1516.8+3651_daily_bin89.fits outfile=/scratch/kocevski/438551/expmap_262396801_262656001_4FGL_J1516.8+3651_daily_bin89.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/438551/ltcube_262396801_262656001_4FGL_J1516.8+3651_daily_bin89.fits
.....................!
real 190.70
user 186.20
sys 4.14

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

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/438551/ft1_filtered_4FGL_J1516.8+3651_daily_bin89.fits scfile=/scratch/kocevski/438551/ft2_4FGL_J1516.8+3651_daily_bin89.fits outfile=/scratch/kocevski/438551/cmap_HighResolution_262396801_262656001_4FGL_J1516.8+3651_daily_bin89.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/438551/ft1_filtered_4FGL_J1516.8+3651_daily_bin89.fits evtable="EVENTS" scfile=/scratch/kocevski/438551/ft2_4FGL_J1516.8+3651_daily_bin89.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/438551/Model_4FGL_J1516.8+3651_daily_bin89.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/438551/ft1_filtered_4FGL_J1516.8+3651_daily_bin89.fits.....................!
real 43.69
user 42.34
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.1752       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10796E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .72604       1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    8.1053       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.5644       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .12167E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10104E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    61.882       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    32.951       1.0000         .10000E-03   10000.    
    19 'Prefactor '    13.270       1.0000         .10000E-03   10000.    
    20 'norm      '    11.364       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    1.8031       1.0000         .10000E-03   10000.    
    26 'Prefactor '    29.218       1.0000         .10000E-03   10000.    
    27 'Prefactor '    2.6645       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.3496       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .72858       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=   5254.559     FROM MIGRAD    STATUS=CONVERGED    720 CALLS     3643 TOTAL
                     EDM=   .34E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.1777        4.0652        .27197E-06   -.12375E-02
   2  Prefactor     .10000E-03    34.272        .67075E-05** at limit **
   3  Prefactor     .60508        13.300       -.20918E-05    .20754E-03
   4  norm          .10000E-03    8.6521        .55928E-05** at limit **
   5  Prefactor     .10000E-03    9.5027       -.44685E-05** at limit **
   6  norm          8.1082        6.7542       -.28121E-07   -.79314E-06
   7  Prefactor     .10000E-03    20.367       -.57756E-05** at limit **
   8  Prefactor     .10000E-03    9.7711       -.59357E-05** at limit **
   9  norm          .10000E-03    3.9447        .51548E-06** at limit **
  10  Prefactor     .10000E-03    4.3522        .55737E-06** at limit **
  11  Prefactor     6.5657        6.5958        .72459E-07    .14967E-05
  12  Prefactor     .10000E-03    3.4063       -.23268E-07** at limit **
  13  norm          .10000E-03    1.0146        .65219E-07** at limit **
  14  norm          .10000E-03    1.5800       -.88577E-07** at limit **
  15  Prefactor     .10000E-03    4.1276       -.10658E-05** at limit **
  16  Prefactor     61.878        83.246       -.46017E-05   -.26171E-05
  17  Prefactor     .10000E-03    4.2859        .47947E-06** at limit **
  18  Prefactor     32.944        23.925       -.27752E-05    .97300E-05
  19  Prefactor     13.268        12.513        .77754E-06    .42303E-04
  20  norm          11.364        2.1456       -.10774E-08    .27867E-04
  21  Prefactor     .10000E-03    4.2033       -.29059E-06** at limit **
  22  Prefactor     .10000E-03    12.240        .65393E-05** at limit **
  23  Prefactor     .10000E-03    8.9808        .77214E-06** at limit **
  24  norm          .10000E-03    6.1342       -.69819E-06** at limit **
  25  Prefactor     1.8029        1.9725       -.11612E-07   -.30312E-04
  26  Prefactor     29.216        28.169       -.27157E-05   -.23510E-05
  27  Prefactor     2.6634        4.3732        .99383E-07   -.12404E-02
  28  Normalizat    1.3495        .20903        .11725E-05    .38678E-04
  29  Prefactor     .72879        .19025       -.10956E-06    .71683E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.17768
  Prefactor  = 0.0001
  Prefactor  = 0.605078
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 8.10821
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.56568
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 61.8777
  Prefactor  = 0.0001
  Prefactor  = 32.9444
  Prefactor  = 13.2684
  norm       = 11.364
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 1.80287
  Prefactor  = 29.2156
  Prefactor  = 2.66341
  Normalizat = 1.34953
  Prefactor  = 0.728792
 **********
 **   18 **HESSE 
 **********

 FCN=   5254.559     FROM HESSE     STATUS=OK           551 CALLS     4194 TOTAL
                     EDM=   .73E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.1777        5.8469        .13816E-02   -1.5413    
   2  Prefactor     .10000E-03    34.609        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .60508        123.30        .49554E-02   -1.5552    
   4  norm          .10000E-03    8.6591        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    9.5149        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          8.1082        6.7623        .70413E-03   -1.5138    
   7  Prefactor     .10000E-03    20.389        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    9.7884        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    3.9577        .14060E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    4.3558        .14768E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     6.5657        6.5073        .15663E-03   -1.5195    
  12  Prefactor     .10000E-03    3.4138        .13066E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    1.8478        .13878E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    1.5889        .88959E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    4.1387        .14372E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     61.878        83.175        .51008E-04   -1.4133    
  17  Prefactor     .10000E-03    4.3036        .14653E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     32.944        23.932        .69806E-04   -1.4559    
  19  Prefactor     13.268        12.540        .10996E-03   -1.4979    
  20  norm          11.364        2.1505        .43998E-04   -1.5034    
  21  Prefactor     .10000E-03    4.2120        .14506E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    12.247        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    8.9884        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    6.1396        .17534E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     1.8029        1.9650        .10320E-03   -1.5439    
  26  Prefactor     29.216        28.187        .74120E-04   -1.4626    
  27  Prefactor     2.6634        5.7147        .12136E-02   -1.5382    
  28  Normalizat    1.3495        .25383        .23592E-03   -.82100    
  29  Prefactor     .72879        .22734        .29216E-03   -1.0241    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.3414e-09
Minuit parameter uncertainties:
  1  5.84841
  2  7.59933e-05
  3  17.3097
  4  1.14343e-05
  5  1.20338e-05
  6  6.76291
  7  2.16655e-05
  8  1.80834e-05
  9  4.51944e-07
  10  3.80428e-07
  11  6.50805
  12  1.44525e-06
  13  4.75618e-06
  14  4.83359e-07
  15  3.71958e-06
  16  83.3316
  17  3.70263e-06
  18  23.9392
  19  12.5428
  20  2.15049
  21  3.0295e-06
  22  1.62191e-05
  23  4.42234e-06
  24  7.63857e-07
  25  1.96512
  26  28.1997
  27  5.71589
  28  0.254065
  29  0.227633
Done.

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

Extracting fit parameters...

4FGL J1516.8+3651
   Spectrum: PowerLaw
279    Prefactor:  6.188e+01  8.333e+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:  7.288e-01  2.276e-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.541e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/438551/likelihoodResults_262396801_262656001_4FGL_J1516.8+3651_daily_bin89.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) = 5254.20414046
delta logL = 0.355060737952

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5254.19609688
delta logL = 0.363104315754

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    28.778       1.0000         .10000E-03   10000.    
     2 'Index     '    2.8592       1.0000          .0000       10.000    
     3 'Normalizat'    1.3237       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .74193       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=   5254.196     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      302 TOTAL
                     EDM=   .60E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     28.781        68.706        .74683E-04    .65914E-04
   2  Index         2.8589        1.0579        .54371E-02    .47792E-04
   3  Normalizat    1.3237        .24281        .23766E-03    .19948E-03
   4  Prefactor     .74188        .22648        .28964E-03    .15060E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 28.781
  Index      = 2.85888
  Normalizat = 1.32371
  Prefactor  = 0.741882
 **********
 **   18 **HESSE 
 **********

 FCN=   5254.196     FROM HESSE     STATUS=OK            25 CALLS      327 TOTAL
                     EDM=   .50E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     28.781        53.311        .29873E-05   -1.4634    
   2  Index         2.8589        .82232        .21749E-03   -.44253    
   3  Normalizat    1.3237        .24293        .47531E-04   -.82861    
   4  Prefactor     .74188        .22652        .11586E-04   -1.0191    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.99578e-11
Minuit parameter uncertainties:
  1  53.3998
  2  0.82693
  3  0.243136
  4  0.226807
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/438551': 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) = 5254.19609661
delta logL = 0.363104587361

Extracting fit parameters...

4FGL J1516.8+3651
   Spectrum: PowerLaw
279    Prefactor:  2.878e+01  5.340e+01  1.000e-04  1.000e+04 ( 1.000e-14)
280        Index:  2.859e+00  8.269e-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:  7.419e-01  2.268e-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.324e+00  2.431e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.47
Ra Dec: 229.222 36.850
Photon Index (Free Index): 2.86 +/- 0.83
Photon Flux (Free Index): 4.92e-08 +/- 4.96e-08
Energy Flux (Free Index): 1.06e-05 +/- 1.04e-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/438551/cmap_HighResolution_262396801_262656001_4FGL_J1516.8+3651_daily_bin89.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.94e-03', comment='SUCCESS', energy_flux2='1.06e-05', dlogl='3.63e-01', photon_flux2='4.92e-08', job_status='DONE', time_completed='2021-09-11 22:41:07.701592', photon_index_error2='0.83', photon_index2='2.86', ts='0.73', fit_tolerance='1e-08', GAL='0.73', photon_index_error='0.00', photon_flux_upper_limit='1.04e-07', energy_flux_error2='1.04e-05', EG='1.35', time_epoch_completed='1631425267.7', return_code='0', job_id='438551', GAL2='0.74', EG2='1.32', return_code2='0', photon_flux_error2='4.96e-08', ts2='1.47', photon_index='2.19' WHERE bin_id='89' AND source_name='4FGL J1516.8+3651' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 22:41:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0128>
Subject: Job 438551: <4FGL_J1516.8+3651_daily_bin89> in cluster <slac> Done

Job <4FGL_J1516.8+3651_daily_bin89> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sat Sep 11 22:26:08 2021
Job was executed on host(s) <bullet0128>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 11 22:26:09 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:26:09 2021
Terminated at Sat Sep 11 22:41:08 2021
Results reported at Sat Sep 11 22:41:08 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1516.8+3651_daily_bin89 229.222 36.8505 262396801 262656001 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 :                                   742.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             318.87 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   898 sec.
    Turnaround time :                            900 sec.

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

