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


Performing analysis on: 4FGL_J1516.8+3651_daily_bin15
RA = 229.222, Dec = 36.8505
tmin = 243216001, tmax = 243475201
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='438477', job_status='RUN', time_executed='2021-09-11 22:28:59.215699', time_epoch_executed='1631424539.22' WHERE source_name='4FGL J1516.8+3651' and cadence='daily' and bin_id='15'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/438477

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

Retrieving the FT1 file...

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

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

Retrieving 44 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/438477/ft1_4FGL_J1516.8+3651_daily_bin15.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/438477/ft2_4FGL_J1516.8+3651_daily_bin15.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/438477/ft1_4FGL_J1516.8+3651_daily_bin15.fits outfile=/scratch/kocevski/438477/ft1_filteredMKT_4FGL_J1516.8+3651_daily_bin15.fits ra=229.222 dec=36.8505 rad=12.0 tmin=243216001.0 tmax=243475201.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.36
user 1.18
sys 0.16

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/438477/ft1_filtered_4FGL_J1516.8+3651_daily_bin15.fits evtable="EVENTS" scfile=/scratch/kocevski/438477/ft2_4FGL_J1516.8+3651_daily_bin15.fits sctable="SC_DATA" expcube=/scratch/kocevski/438477/ltcube_243216001_243475201_4FGL_J1516.8+3651_daily_bin15.fits outfile=/scratch/kocevski/438477/expmap_243216001_243475201_4FGL_J1516.8+3651_daily_bin15.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/438477/ltcube_243216001_243475201_4FGL_J1516.8+3651_daily_bin15.fits
.....................!
real 190.81
user 184.98
sys 5.28

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/438477/ft1_filtered_4FGL_J1516.8+3651_daily_bin15.fits scfile=/scratch/kocevski/438477/ft2_4FGL_J1516.8+3651_daily_bin15.fits outfile=/scratch/kocevski/438477/cmap_243216001_243475201_4FGL_J1516.8+3651_daily_bin15.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/438477/ft1_filtered_4FGL_J1516.8+3651_daily_bin15.fits scfile=/scratch/kocevski/438477/ft2_4FGL_J1516.8+3651_daily_bin15.fits outfile=/scratch/kocevski/438477/cmap_HighResolution_243216001_243475201_4FGL_J1516.8+3651_daily_bin15.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.55
user 0.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.9128       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    16.332       1.0000         .10000E-03   10000.    
     4 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    9.6064       1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    17.013       1.0000         .10000E-03   10000.    
     9 'norm      '    11.488       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10134E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    2.3043       1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    15.547       1.0000         .10000E-03   10000.    
    18 'Prefactor '    15.062       1.0000         .10000E-03   10000.    
    19 'Prefactor '    16.523       1.0000         .10000E-03   10000.    
    20 'norm      '    5.8378       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    7.8716       1.0000         .10000E-03   10000.    
    25 'Prefactor '    2.0769       1.0000         .10000E-03   10000.    
    26 'Prefactor '    10.389       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .13391E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .93404       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .85240       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=   5736.403     FROM MIGRAD    STATUS=CONVERGED    693 CALLS     3642 TOTAL
                     EDM=   .66E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.9132        3.0135        .23459E-05   -.10103E-03
   2  Prefactor     .10000E-03    4.9263       -.67430E-06** at limit **
   3  Prefactor     16.341        16.215        .24001E-05    .15369E-04
   4  norm          .10000E-03    5.1508        .41780E-06** at limit **
   5  Prefactor     9.6156        22.080        .95449E-05    .43290E-05
   6  norm          .10000E-03    1.9425       -.31811E-07** at limit **
   7  Prefactor     .10000E-03    11.469       -.52666E-05** at limit **
   8  Prefactor     16.968        36.689       -.81049E-04    .25881E-04
   9  norm          11.489        7.8471        .12096E-06    .43571E-04
  10  Prefactor     .10000E-03    9.3171        .24306E-05** at limit **
  11  Prefactor     .10000E-03    4.8655       -.59206E-06** at limit **
  12  Prefactor     .10000E-03    1.3738       -.22663E-07** at limit **
  13  norm          2.3055        1.8557       -.41096E-06   -.26790E-03
  14  norm          .10000E-03    1.0866       -.20394E-07** at limit **
  15  Prefactor     .10000E-03    4.1607        .53254E-06** at limit **
  16  Prefactor     .10000E-03    29.253        .41930E-05** at limit **
  17  Prefactor     15.547        10.222       -.38043E-06    .16131E-04
  18  Prefactor     15.064        17.699       -.14350E-05    .75535E-05
  19  Prefactor     16.529        12.895       -.14280E-05    .37249E-05
  20  norm          5.8386        1.5585       -.85439E-07    .37864E-03
  21  Prefactor     .10000E-03    3.0271       -.80383E-07** at limit **
  22  Prefactor     .10000E-03    13.204        .12698E-05** at limit **
  23  Prefactor     .10000E-03    9.5478        .10696E-05** at limit **
  24  norm          7.8722        13.221       -.13711E-05   -.41053E-04
  25  Prefactor     2.0762        2.0234       -.35451E-06   -.35542E-03
  26  Prefactor     10.390        11.713       -.50260E-06    .22026E-04
  27  Prefactor     .10000E-03    2.0069       -.53795E-06** at limit **
  28  Normalizat    .93325        .18270        .89760E-05   -.24300E-03
  29  Prefactor     .85315        .16711       -.76146E-06    .32857E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.91317
  Prefactor  = 0.0001
  Prefactor  = 16.3411
  norm       = 0.0001
  Prefactor  = 9.61558
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.9683
  norm       = 11.4893
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.30555
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.5467
  Prefactor  = 15.0638
  Prefactor  = 16.5288
  norm       = 5.83864
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.87225
  Prefactor  = 2.07623
  Prefactor  = 10.3897
  Prefactor  = 0.000100001
  Normalizat = 0.933253
  Prefactor  = 0.853147
 **********
 **   18 **HESSE 
 **********

 FCN=   5736.403     FROM HESSE     STATUS=OK           551 CALLS     4193 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.9132        2.9889        .16051E-03   -1.5431    
   2  Prefactor     .10000E-03    4.9282        .16412E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     16.341        16.247        .99106E-04   -1.4899    
   4  norm          .10000E-03    5.1536        .16787E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     9.6156        22.171        .12929E-03   -1.5088    
   6  norm          .10000E-03    1.9499        .10307E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    11.472        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     16.968        36.808        .97101E-04   -1.4884    
   9  norm          11.489        7.8466        .11819E-03   -1.5030    
  10  Prefactor     .10000E-03    9.4301        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    4.8932        .16289E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    1.3745        .86696E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          2.3055        1.8506        .86531E-04   -1.5404    
  14  norm          .10000E-03    1.0900        .77044E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    4.1688        .15056E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    29.264        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     15.547        10.222        .10158E-03   -1.4919    
  18  Prefactor     15.064        17.675        .10320E-03   -1.4932    
  19  Prefactor     16.529        12.896        .98531E-04   -1.4895    
  20  norm          5.8386        1.5594        .46422E-04   -1.5225    
  21  Prefactor     .10000E-03    3.0340        .12862E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    13.236        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    9.5517        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          7.8722        13.213        .14292E-03   -1.5147    
  25  Prefactor     2.0762        2.0151        .10254E-03   -1.5420    
  26  Prefactor     10.390        11.713        .12431E-03   -1.5063    
  27  Prefactor     .10000E-03    3.9964        .20879E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .93325        .21433        .23922E-03   -.95301    
  29  Prefactor     .85315        .19582        .24326E-03   -.97798    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.87121e-09
Minuit parameter uncertainties:
  1  2.98914
  2  3.74419e-05
  3  16.2515
  4  2.13055e-05
  5  22.1895
  6  4.79019e-06
  7  3.09268e-05
  8  36.8571
  9  7.84735
  10  0.000137462
  11  1.44069e-06
  12  3.58873e-06
  13  1.85062
  14  2.62017e-06
  15  5.0778e-06
  16  2.09997e-05
  17  10.2228
  18  17.6812
  19  12.8984
  20  1.55939
  21  9.15883e-06
  22  1.76227e-05
  23  2.04026e-05
  24  13.2179
  25  2.0152
  26  11.7157
  27  9.39554e-05
  28  0.214524
  29  0.195983
Done.

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

Extracting fit parameters...

4FGL J1516.8+3651
   Spectrum: PowerLaw
279    Prefactor:  1.000e-04  2.100e-05  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:  8.531e-01  1.960e-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.333e-01  2.145e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/438477/likelihoodResults_243216001_243475201_4FGL_J1516.8+3651_daily_bin15.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): 102
logL (Free Index) = 5736.40321273
delta logL = -0.000162735233062

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5736.40305051
delta logL = -5.10307472723e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4134       1.0000          .0000       10.000    
     3 'Normalizat'    .93326       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85314       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=   5736.403     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      275 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10136E-03    117.04        .18142E-02** at limit **
   2  Index         2.3575        8.8142        .50000        .11283E-04
   3  Normalizat    .93326        .92133E-02    .23922E-03    .10931E-05
   4  Prefactor     .85314        .90461E-02    .24326E-03   -.92069E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101359
  Index      = 2.35748
  Normalizat = 0.93326
  Prefactor  = 0.85314
 **********
 **   18 **HESSE 
 **********

 FCN=   5736.403     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      304 TOTAL
                     EDM=   .56E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10136E-03    509.19        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3575        6.0593        .50000       -.55684    
   3  Normalizat    .93326        .19688E-01    .95688E-05   -.95301    
   4  Prefactor     .85314        .19331E-01    .97303E-05   -.97798    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.59957e-09
Minuit parameter uncertainties:
  1  0.0530713
  2  429.705
  3  0.0196881
  4  0.0193307
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/438477': 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): 102
logL (Free Index) = 5736.40305037
delta logL = -3.69277586287e-07

Extracting fit parameters...

4FGL J1516.8+3651
   Spectrum: PowerLaw
279    Prefactor:  1.014e-04  5.307e-02  1.000e-04  1.000e+04 ( 1.000e-14)
280        Index:  2.357e+00  4.297e+02  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:  8.531e-01  1.933e-02  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.333e-01  1.969e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/438477/cmap_HighResolution_243216001_243475201_4FGL_J1516.8+3651_daily_bin15.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.89e-03', job_status='DONE', photon_flux_upper_limit='5.12e-08', time_completed='2021-09-11 22:41:51.184788', job_id='438477', GAL2='0.85', fit_tolerance='1e-08', EG2='0.93', EG='0.93', time_epoch_completed='1631425311.18', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.85', dlogl='-3.69e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.19' WHERE bin_id='15' AND source_name='4FGL J1516.8+3651' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 22:41:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0075>
Subject: Job 438477: <4FGL_J1516.8+3651_daily_bin15> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1516.8+3651_daily_bin15 229.222 36.8505 243216001 243475201 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 :                                   771.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             281.34 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   949 sec.
    Turnaround time :                            951 sec.

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

