/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 8 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 = 7451
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1516.8+3651_daily_bin730
RA = 229.222, Dec = 36.8505
tmin = 428544001, tmax = 428803201
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='442348', job_status='RUN', time_executed='2021-09-11 22:41:31.489778', time_epoch_executed='1631425291.49' WHERE source_name='4FGL J1516.8+3651' and cadence='daily' and bin_id='730'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/442348

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/442348/ft1_4FGL_J1516.8+3651_daily_bin730.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/442348/ft2_4FGL_J1516.8+3651_daily_bin730.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/442348/ft1_4FGL_J1516.8+3651_daily_bin730.fits outfile=/scratch/kocevski/442348/ft1_filteredMKT_4FGL_J1516.8+3651_daily_bin730.fits ra=229.222 dec=36.8505 rad=12.0 tmin=428544001.0 tmax=428803201.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.22
user 5.96
sys 0.25

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/442348/ft2_4FGL_J1516.8+3651_daily_bin730.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/442348/ft1_filteredMKT_4FGL_J1516.8+3651_daily_bin730.fits evtable="EVENTS" outfile="/scratch/kocevski/442348/ft1_filtered_4FGL_J1516.8+3651_daily_bin730.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/442348/ft1_filtered_4FGL_J1516.8+3651_daily_bin730.fits" evtable="EVENTS" scfile=/scratch/kocevski/442348/ft2_4FGL_J1516.8+3651_daily_bin730.fits sctable="SC_DATA" outfile=/scratch/kocevski/442348/ltcube_428544001_428803201_4FGL_J1516.8+3651_daily_bin730.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/442348/ft2_4FGL_J1516.8+3651_daily_bin730.fits
.....................!
real 12.86
user 12.52
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/442348/ft1_filtered_4FGL_J1516.8+3651_daily_bin730.fits evtable="EVENTS" scfile=/scratch/kocevski/442348/ft2_4FGL_J1516.8+3651_daily_bin730.fits sctable="SC_DATA" expcube=/scratch/kocevski/442348/ltcube_428544001_428803201_4FGL_J1516.8+3651_daily_bin730.fits outfile=/scratch/kocevski/442348/expmap_428544001_428803201_4FGL_J1516.8+3651_daily_bin730.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/442348/ltcube_428544001_428803201_4FGL_J1516.8+3651_daily_bin730.fits
.....................!
real 191.13
user 185.11
sys 5.60

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/442348/ft1_filtered_4FGL_J1516.8+3651_daily_bin730.fits scfile=/scratch/kocevski/442348/ft2_4FGL_J1516.8+3651_daily_bin730.fits outfile=/scratch/kocevski/442348/cmap_428544001_428803201_4FGL_J1516.8+3651_daily_bin730.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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/442348/ft1_filtered_4FGL_J1516.8+3651_daily_bin730.fits scfile=/scratch/kocevski/442348/ft2_4FGL_J1516.8+3651_daily_bin730.fits outfile=/scratch/kocevski/442348/cmap_HighResolution_428544001_428803201_4FGL_J1516.8+3651_daily_bin730.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.37
sys 0.18

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .18655E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    44.995       1.0000         .10000E-03   10000.    
     4 'norm      '    .10321E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10069E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10590E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    67.668       1.0000         .10000E-03   10000.    
     9 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.6103       1.0000         .10000E-03   10000.    
    13 'norm      '    .13422E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    2.7649       1.0000         .10000E-03   10000.    
    15 'Prefactor '    7.5854       1.0000         .10000E-03   10000.    
    16 'Prefactor '    92.563       1.0000         .10000E-03   10000.    
    17 'Prefactor '    13.661       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .11168E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10311E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    5.2027       1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.2571       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    1.7978       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .30496       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .92765       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.0120       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=   5730.455     FROM MIGRAD    STATUS=CONVERGED    721 CALLS     3726 TOTAL
                     EDM=   .47E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    3.1999        .25198E-06** at limit **
   2  Prefactor     .10002E-03    31.821        .43285E-05** at limit **
   3  Prefactor     45.011        35.631       -.10924E-05   -.62476E-04
   4  norm          .10000E-03    24.547        .15597E-05** at limit **
   5  Prefactor     .10000E-03    15.471       -.17348E-06** at limit **
   6  norm          .10000E-03    9.7808        .66442E-06** at limit **
   7  Prefactor     .10000E-03    61.009        .71967E-06** at limit **
   8  Prefactor     67.670        53.674        .17678E-06    .13530E-04
   9  norm          .10000E-03    3.9633       -.76830E-08** at limit **
  10  Prefactor     .10000E-03    4.8021        .44330E-07** at limit **
  11  Prefactor     .10000E-03    9.9251       -.22493E-07** at limit **
  12  Prefactor     3.6102        13.524        .23053E-05   -.71025E-04
  13  norm          .10000E-03    1.1745        .11081E-07** at limit **
  14  norm          2.7635        6.3885        .28560E-05   -.30382E-03
  15  Prefactor     7.5968        19.042       -.36434E-05    .53168E-04
  16  Prefactor     92.563        80.369        .59594E-06    .46614E-04
  17  Prefactor     13.659        9.7405        .15018E-06   -.14627E-04
  18  Prefactor     .10000E-03    41.170       -.37185E-06** at limit **
  19  Prefactor     .10000E-03    12.404        .50822E-06** at limit **
  20  norm          5.2027        1.8105        .81154E-08    .43332E-03
  21  Prefactor     1.2589        12.623        .48827E-06   -.41811E-04
  22  Prefactor     .10000E-03    9.7299       -.90095E-07** at limit **
  23  Prefactor     .10000E-03    9.5385       -.19994E-06** at limit **
  24  norm          .10000E-03    4.7497       -.72709E-07** at limit **
  25  Prefactor     1.7979        2.4802       -.29416E-07   -.34071E-04
  26  Prefactor     .10000E-03    7.6502        .43630E-07** at limit **
  27  Prefactor     .31826        2.3498        .36164E-06   -.13307E-03
  28  Normalizat    .92729        .21574       -.12911E-05    .26234E-04
  29  Prefactor     1.0122        .17987        .12909E-05    .23279E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.000100016
  Prefactor  = 45.0105
  norm       = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 67.6695
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.61022
  norm       = 0.0001
  norm       = 2.76347
  Prefactor  = 7.59684
  Prefactor  = 92.5633
  Prefactor  = 13.659
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 5.20267
  Prefactor  = 1.2589
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 1.79788
  Prefactor  = 0.0001
  Prefactor  = 0.318262
  Normalizat = 0.927291
  Prefactor  = 1.01222
 **********
 **   18 **HESSE 
 **********

 FCN=   5730.455     FROM HESSE     STATUS=OK           545 CALLS     4271 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.2180        .13239E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10002E-03    34.349        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     45.011        36.010        .59770E-04   -1.4365    
   4  norm          .10000E-03    24.949        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    15.418        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    10.092        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    61.250        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     67.670        53.944        .48793E-04   -1.4061    
   9  norm          .10000E-03    3.9726        .14718E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    4.8047        .16199E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    10.074        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     3.6102        13.519        .10632E-02   -1.5328    
  13  norm          .10000E-03    5.9425        .15141E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          2.7635        6.5541        .10161E-02   -1.5375    
  15  Prefactor     7.5968        19.455        .14561E-03   -1.5157    
  16  Prefactor     92.563        78.999        .41770E-04   -1.3781    
  17  Prefactor     13.659        9.7623        .54186E-03   -1.4969    
  18  Prefactor     .10000E-03    41.309        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    12.436        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          5.2027        1.7596        .49561E-04   -1.5252    
  21  Prefactor     1.2589        11.847        .39816E-03   -1.5484    
  22  Prefactor     .10000E-03    9.7322        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    9.5734        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    4.7594        .16112E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     1.7979        2.4628        .13063E-03   -1.5440    
  26  Prefactor     .10000E-03    7.6505        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .31826        10.171        .21686E-02   -1.5595    
  28  Normalizat    .92729        .25049        .27252E-03   -.95508    
  29  Prefactor     1.0122        .21460        .23595E-03   -.92323    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.56314e-08
Minuit parameter uncertainties:
  1  2.62511e-05
  2  0.00146046
  3  36.0271
  4  0.00027361
  5  0.000117004
  6  0.000107829
  7  8.84442e-05
  8  53.9827
  9  7.06016e-07
  10  4.89534e-06
  11  1.94925e-05
  12  13.5301
  13  1.46714e-05
  14  6.55582
  15  19.4713
  16  79.0884
  17  9.76348
  18  0.000292897
  19  4.41366e-06
  20  1.75965
  21  7.72564
  22  8.63268e-06
  23  7.76691e-06
  24  1.86873e-06
  25  2.46293
  26  1.16011e-05
  27  3.59844
  28  0.250806
  29  0.214783
Done.

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

Extracting fit parameters...

4FGL J1516.8+3651
   Spectrum: PowerLaw
279    Prefactor:  9.256e+01  7.909e+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.012e+00  2.148e-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.273e-01  2.508e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.99
Ra Dec: 229.222 36.850
Photon Index (Fixed Index): 2.19 +/- 0.00
Photon Flux (Fixed Index): 3.74e-08 +/- 3.20e-08
Energy Flux (Fixed Index): 1.71e-05 +/- 1.46e-05

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

Saving results to:
/scratch/kocevski/442348/likelihoodResults_428544001_428803201_4FGL_J1516.8+3651_daily_bin730.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) = 5730.36326607
delta logL = 0.0912590970647

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5730.36065927
delta logL = 0.0938658939849

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    112.10       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9132       1.0000          .0000       10.000    
     3 'Normalizat'    .94191       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0039       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=   5730.361     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      299 TOTAL
                     EDM=   .54E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     112.11        101.65        .18997E-03    .58648E-05
   2  Index         1.9131        .62057        .92287E-02    .14893E-03
   3  Normalizat    .94189        .23103        .27060E-03    .91169E-05
   4  Prefactor     1.0039        .20780        .23680E-03   -.47050E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 112.111
  Index      = 1.91311
  Normalizat = 0.941886
  Prefactor  = 1.00388
 **********
 **   18 **HESSE 
 **********

 FCN=   5730.361     FROM HESSE     STATUS=OK            25 CALLS      324 TOTAL
                     EDM=   .15E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     112.11        100.67        .75987E-05   -1.3586    
   2  Index         1.9131        .61425        .18457E-02   -.66541    
   3  Normalizat    .94189        .23115        .10824E-04   -.95004    
   4  Prefactor     1.0039        .20797        .94719E-05   -.92600    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.51191e-12
Minuit parameter uncertainties:
  1  100.823
  2  0.616776
  3  0.231396
  4  0.208139
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/442348': 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) = 5730.36065925
delta logL = 0.093865913469

Extracting fit parameters...

4FGL J1516.8+3651
   Spectrum: PowerLaw
279    Prefactor:  1.121e+02  1.008e+02  1.000e-04  1.000e+04 ( 1.000e-14)
280        Index:  1.913e+00  6.168e-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.004e+00  2.081e-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.419e-01  2.314e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.18
Ra Dec: 229.222 36.850
Photon Index (Free Index): 1.91 +/- 0.62
Photon Flux (Free Index): 2.70e-08 +/- 3.27e-08
Energy Flux (Free Index): 2.34e-05 +/- 2.81e-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/442348/cmap_HighResolution_428544001_428803201_4FGL_J1516.8+3651_daily_bin730.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.61e-03', comment='SUCCESS', photon_flux='3.74e-08', energy_flux2='2.34e-05', photon_flux_error='3.20e-08', dlogl='9.39e-02', energy_flux='1.71e-05', photon_flux2='2.70e-08', job_status='DONE', time_completed='2021-09-11 22:54:34.100264', photon_index_error2='0.62', photon_index2='1.91', ts='2.99', fit_tolerance='1e-08', GAL='1.01', photon_index_error='0.00', photon_flux_upper_limit='1.13e-07', energy_flux_error2='2.81e-05', EG='0.93', time_epoch_completed='1631426074.1', return_code='0', job_id='442348', GAL2='1.00', EG2='0.94', return_code2='0', energy_flux_error='1.46e-05', photon_flux_error2='3.27e-08', ts2='3.18', photon_index='2.19' WHERE bin_id='730' AND source_name='4FGL J1516.8+3651' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 22:54:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0246>
Subject: Job 442348: <4FGL_J1516.8+3651_daily_bin730> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1516.8+3651_daily_bin730 229.222 36.8505 428544001 428803201 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 :                                   777.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             322.15 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   799 sec.
    Turnaround time :                            802 sec.

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

