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


Performing analysis on: 4FGL_J1516.8+3651_daily_bin883
RA = 229.222, Dec = 36.8505
tmin = 468201601, tmax = 468460801
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='443668', job_status='RUN', time_executed='2021-09-11 22:46:29.181604', time_epoch_executed='1631425589.18' WHERE source_name='4FGL J1516.8+3651' and cadence='daily' and bin_id='883'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/443668

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/443668/ft1_4FGL_J1516.8+3651_daily_bin883.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/443668/ft2_4FGL_J1516.8+3651_daily_bin883.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/443668/ft1_4FGL_J1516.8+3651_daily_bin883.fits outfile=/scratch/kocevski/443668/ft1_filteredMKT_4FGL_J1516.8+3651_daily_bin883.fits ra=229.222 dec=36.8505 rad=12.0 tmin=468201601.0 tmax=468460801.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 3.43
user 3.21
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/443668/ft2_4FGL_J1516.8+3651_daily_bin883.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/443668/ft1_filteredMKT_4FGL_J1516.8+3651_daily_bin883.fits evtable="EVENTS" outfile="/scratch/kocevski/443668/ft1_filtered_4FGL_J1516.8+3651_daily_bin883.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.58
user 0.31
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/443668/ft1_filtered_4FGL_J1516.8+3651_daily_bin883.fits" evtable="EVENTS" scfile=/scratch/kocevski/443668/ft2_4FGL_J1516.8+3651_daily_bin883.fits sctable="SC_DATA" outfile=/scratch/kocevski/443668/ltcube_468201601_468460801_4FGL_J1516.8+3651_daily_bin883.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/443668/ft2_4FGL_J1516.8+3651_daily_bin883.fits
.....................!
real 11.78
user 11.39
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/443668/ft1_filtered_4FGL_J1516.8+3651_daily_bin883.fits evtable="EVENTS" scfile=/scratch/kocevski/443668/ft2_4FGL_J1516.8+3651_daily_bin883.fits sctable="SC_DATA" expcube=/scratch/kocevski/443668/ltcube_468201601_468460801_4FGL_J1516.8+3651_daily_bin883.fits outfile=/scratch/kocevski/443668/expmap_468201601_468460801_4FGL_J1516.8+3651_daily_bin883.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/443668/ltcube_468201601_468460801_4FGL_J1516.8+3651_daily_bin883.fits
.....................!
real 191.08
user 185.66
sys 5.04

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/443668/ft1_filtered_4FGL_J1516.8+3651_daily_bin883.fits scfile=/scratch/kocevski/443668/ft2_4FGL_J1516.8+3651_daily_bin883.fits outfile=/scratch/kocevski/443668/cmap_468201601_468460801_4FGL_J1516.8+3651_daily_bin883.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.36
sys 0.16

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.9080       1.0000         .10000E-03   10000.    
     2 'Prefactor '    7.9624       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    13.771       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    16.631       1.0000         .10000E-03   10000.    
     9 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10096E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.4324       1.0000         .10000E-03   10000.    
    13 'norm      '    4.9470       1.0000         .10000E-03   10000.    
    14 'norm      '    .13098E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    60.002       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10417E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    12.811       1.0000         .10000E-03   10000.    
    20 'norm      '    6.0685       1.0000         .10000E-03   10000.    
    21 'Prefactor '    9.7894       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .84128E-01   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10214E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    12.088       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.4846       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .46916       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=   6212.372     FROM MIGRAD    STATUS=CONVERGED    764 CALLS     3772 TOTAL
                     EDM=   .16E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.9081        3.7061       -.99089E-06    .26327E-03
   2  Prefactor     7.9634        9.7342        .50481E-06    .10438E-03
   3  Prefactor     .10000E-03    5.7703        .10087E-06** at limit **
   4  norm          13.771        12.465        .17771E-06    .37455E-04
   5  Prefactor     .10000E-03    5.5023       -.34305E-08** at limit **
   6  norm          .10000E-03    3.2131        .17201E-07** at limit **
   7  Prefactor     .10000E-03    12.603        .37871E-07** at limit **
   8  Prefactor     16.700        43.232       -.30282E-05   -.68979E-04
   9  norm          .10000E-03    2.7381        .19271E-07** at limit **
  10  Prefactor     .10000E-03    9.0305       -.10844E-06** at limit **
  11  Prefactor     .10000E-03    5.2083        .24921E-06** at limit **
  12  Prefactor     5.4340        7.3460        .31899E-06    .11619E-03
  13  norm          4.9472        2.0722       -.59370E-08    .28589E-06
  14  norm          .10001E-03    1.7149       -.26837E-06** at limit **
  15  Prefactor     .10000E-03    4.1937        .17932E-06** at limit **
  16  Prefactor     60.007        58.982        .46411E-06    .26434E-04
  17  Prefactor     .10000E-03    5.1861       -.20509E-06** at limit **
  18  Prefactor     .10000E-03    28.036        .89580E-06** at limit **
  19  Prefactor     12.809        12.573        .49939E-06    .23371E-03
  20  norm          6.0678        2.1923        .15378E-06   -.62020E-05
  21  Prefactor     9.7974        13.595       -.10620E-05   -.13801E-03
  22  Prefactor     .10100E-03    20.129       -.39605E-06** at limit **
  23  Prefactor     .10002E-03    12.472       -.73821E-06** at limit **
  24  norm          12.081        12.577        .33011E-06    .13892E-05
  25  Prefactor     .10000E-03    1.1301       -.26354E-07** at limit **
  26  Prefactor     .10000E-03    7.0905       -.30674E-07** at limit **
  27  Prefactor     .10000E-03    1.9012       -.13655E-07** at limit **
  28  Normalizat    1.4845        .18648        .39179E-06    .96135E-04
  29  Prefactor     .46919        .16324       -.14871E-06    .78551E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.90815
  Prefactor  = 7.9634
  Prefactor  = 0.0001
  norm       = 13.7708
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.7002
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.43397
  norm       = 4.94721
  norm       = 0.000100008
  Prefactor  = 0.0001
  Prefactor  = 60.0074
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.809
  norm       = 6.06775
  Prefactor  = 9.79736
  Prefactor  = 0.000100996
  Prefactor  = 0.000100025
  norm       = 12.0811
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.48453
  Prefactor  = 0.469186
 **********
 **   18 **HESSE 
 **********

 FCN=   6212.372     FROM HESSE     STATUS=OK           563 CALLS     4335 TOTAL
                     EDM=   .79E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.9081        3.8153        .73761E-03   -1.5313    
   2  Prefactor     7.9634        9.7656        .14209E-03   -1.5144    
   3  Prefactor     .10000E-03    5.7746        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          13.771        12.466        .10794E-03   -1.4966    
   5  Prefactor     .10000E-03    5.5044        .18057E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    3.2372        .13794E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    12.606        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     16.700        44.349        .98210E-04   -1.4890    
   9  norm          .10000E-03    2.7393        .12738E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    9.0609        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    5.2419        .17553E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     5.4340        7.3639        .17240E-03   -1.5242    
  13  norm          4.9472        2.0787        .69031E-04   -1.5263    
  14  norm          .10001E-03    28.287        .19407E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    4.1981        .15722E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     60.007        59.025        .51796E-04   -1.4157    
  17  Prefactor     .10000E-03    5.2143        .17532E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    28.049        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     12.809        12.563        .11191E-03   -1.4992    
  20  norm          6.0678        2.2307        .52672E-04   -1.5215    
  21  Prefactor     9.7974        14.059        .12808E-03   -1.5082    
  22  Prefactor     .10100E-03    21.782        .12282       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10002E-03    103.58        .47564E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          12.081        11.496        .11522E-03   -1.5013    
  25  Prefactor     .10000E-03    1.1491        .81769E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    7.0978        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    1.9217        .10612E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.4845        .21844        .21134E-03   -.78214    
  29  Prefactor     .46919        .18735        .32690E-03   -1.1341    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.91196e-10
Minuit parameter uncertainties:
  1  3.81553
  2  9.76754
  3  2.34854e-06
  4  12.4679
  5  1.63155e-06
  6  2.62622e-08
  7  1.83075e-06
  8  44.4365
  9  1.06042e-06
  10  1.25065e-06
  11  1.45065e-05
  12  7.36508
  13  2.07875
  14  0.000977367
  15  1.00241e-05
  16  59.0829
  17  1.07355e-05
  18  4.93698e-05
  19  12.5654
  20  2.23078
  21  14.0634
  22  0.00931829
  23  0.003196
  24  11.4984
  25  4.42707e-07
  26  5.56198e-06
  27  1.27568e-06
  28  0.218579
  29  0.187599
Done.

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

Extracting fit parameters...

4FGL J1516.8+3651
   Spectrum: PowerLaw
279    Prefactor:  6.001e+01  5.908e+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:  4.692e-01  1.876e-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.485e+00  2.186e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.08
Ra Dec: 229.222 36.850
Photon Index (Fixed Index): 2.19 +/- 0.00
Photon Flux (Fixed Index): 2.43e-08 +/- 2.39e-08
Energy Flux (Fixed Index): 1.11e-05 +/- 1.09e-05

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

Saving results to:
/scratch/kocevski/443668/likelihoodResults_468201601_468460801_4FGL_J1516.8+3651_daily_bin883.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) = 6212.32747905
delta logL = 0.044369548219

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6212.3242219
delta logL = 0.0476267044387

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    72.027       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9840       1.0000          .0000       10.000    
     3 'Normalizat'    1.4893       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .46657       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=   6212.324     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      306 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     72.031        78.396        .47304E-04    .13939E-05
   2  Index         1.9840        .66809        .96263E-02    .26491E-03
   3  Normalizat    1.4892        .20157        .21108E-03   -.15296E-04
   4  Prefactor     .46664        .18497        .32773E-03   -.13980E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 72.0308
  Index      = 1.98396
  Normalizat = 1.48922
  Prefactor  = 0.466641
 **********
 **   18 **HESSE 
 **********

 FCN=   6212.324     FROM HESSE     STATUS=OK            25 CALLS      331 TOTAL
                     EDM=   .46E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     72.031        76.924        .94607E-05   -1.4009    
   2  Index         1.9840        .65578        .19253E-02   -.64752    
   3  Normalizat    1.4892        .20165        .84434E-05   -.78082    
   4  Prefactor     .46664        .18507        .13109E-04   -1.1353    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.63849e-13
Minuit parameter uncertainties:
  1  77.0309
  2  0.658769
  3  0.201756
  4  0.18531
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/443668': 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) = 6212.32422181
delta logL = 0.0476267887307

Extracting fit parameters...

4FGL J1516.8+3651
   Spectrum: PowerLaw
279    Prefactor:  7.203e+01  7.703e+01  1.000e-04  1.000e+04 ( 1.000e-14)
280        Index:  1.984e+00  6.588e-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:  4.666e-01  1.853e-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.489e+00  2.018e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.18
Ra Dec: 229.222 36.850
Photon Index (Free Index): 1.98 +/- 0.66
Photon Flux (Free Index): 1.97e-08 +/- 2.46e-08
Energy Flux (Free Index): 1.42e-05 +/- 1.87e-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/443668/cmap_HighResolution_468201601_468460801_4FGL_J1516.8+3651_daily_bin883.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.53e-03', comment='SUCCESS', photon_flux='2.43e-08', energy_flux2='1.42e-05', photon_flux_error='2.39e-08', dlogl='4.76e-02', energy_flux='1.11e-05', photon_flux2='1.97e-08', job_status='DONE', time_completed='2021-09-11 23:00:30.269272', photon_index_error2='0.66', photon_index2='1.98', ts='2.08', fit_tolerance='1e-08', GAL='0.47', photon_index_error='0.00', photon_flux_upper_limit='8.57e-08', energy_flux_error2='1.87e-05', EG='1.48', time_epoch_completed='1631426430.27', return_code='0', job_id='443668', GAL2='0.47', EG2='1.49', return_code2='0', energy_flux_error='1.09e-05', photon_flux_error2='2.46e-08', ts2='2.18', photon_index='2.19' WHERE bin_id='883' AND source_name='4FGL J1516.8+3651' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 23:00:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0244>
Subject: Job 443668: <4FGL_J1516.8+3651_daily_bin883> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1516.8+3651_daily_bin883 229.222 36.8505 468201601 468460801 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 :                                   837.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             301.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   859 sec.
    Turnaround time :                            861 sec.

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

