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


Performing analysis on: 4FGL_J1516.8+3651_daily_bin1558
RA = 229.222, Dec = 36.8505
tmin = 643161601, tmax = 643420801
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='447958', job_status='RUN', time_executed='2021-09-11 23:01:55.207105', time_epoch_executed='1631426515.21' WHERE source_name='4FGL J1516.8+3651' and cadence='daily' and bin_id='1558'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/447958

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/447958/ft1_4FGL_J1516.8+3651_daily_bin1558.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/447958/ft2_4FGL_J1516.8+3651_daily_bin1558.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/447958/ft1_4FGL_J1516.8+3651_daily_bin1558.fits outfile=/scratch/kocevski/447958/ft1_filteredMKT_4FGL_J1516.8+3651_daily_bin1558.fits ra=229.222 dec=36.8505 rad=12.0 tmin=643161601.0 tmax=643420801.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.48
user 3.27
sys 0.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/447958/ft2_4FGL_J1516.8+3651_daily_bin1558.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/447958/ft1_filteredMKT_4FGL_J1516.8+3651_daily_bin1558.fits evtable="EVENTS" outfile="/scratch/kocevski/447958/ft1_filtered_4FGL_J1516.8+3651_daily_bin1558.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/447958/ft1_filtered_4FGL_J1516.8+3651_daily_bin1558.fits" evtable="EVENTS" scfile=/scratch/kocevski/447958/ft2_4FGL_J1516.8+3651_daily_bin1558.fits sctable="SC_DATA" outfile=/scratch/kocevski/447958/ltcube_643161601_643420801_4FGL_J1516.8+3651_daily_bin1558.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/447958/ft2_4FGL_J1516.8+3651_daily_bin1558.fits
.....................!
real 11.88
user 11.48
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/447958/ft1_filtered_4FGL_J1516.8+3651_daily_bin1558.fits evtable="EVENTS" scfile=/scratch/kocevski/447958/ft2_4FGL_J1516.8+3651_daily_bin1558.fits sctable="SC_DATA" expcube=/scratch/kocevski/447958/ltcube_643161601_643420801_4FGL_J1516.8+3651_daily_bin1558.fits outfile=/scratch/kocevski/447958/expmap_643161601_643420801_4FGL_J1516.8+3651_daily_bin1558.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/447958/ltcube_643161601_643420801_4FGL_J1516.8+3651_daily_bin1558.fits
.....................!
real 191.86
user 185.53
sys 5.97

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/447958/ft1_filtered_4FGL_J1516.8+3651_daily_bin1558.fits scfile=/scratch/kocevski/447958/ft2_4FGL_J1516.8+3651_daily_bin1558.fits outfile=/scratch/kocevski/447958/cmap_643161601_643420801_4FGL_J1516.8+3651_daily_bin1558.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.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/447958/ft1_filtered_4FGL_J1516.8+3651_daily_bin1558.fits scfile=/scratch/kocevski/447958/ft2_4FGL_J1516.8+3651_daily_bin1558.fits outfile=/scratch/kocevski/447958/cmap_HighResolution_643161601_643420801_4FGL_J1516.8+3651_daily_bin1558.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.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .58603       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .32865E-01   1.0000         .10000E-03   10000.    
     4 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    26.856       1.0000         .10000E-03   10000.    
     6 'norm      '    .10107E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    28.435       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    4.8996       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .53913E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .63391E-02   1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.4737       1.0000         .10000E-03   10000.    
    13 'norm      '    .10031E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .87098       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.9258       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .38412E-01   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10272E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    18.639       1.0000         .10000E-03   10000.    
    23 'Prefactor '    10.696       1.0000         .10000E-03   10000.    
    24 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    2.7373       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .77811       1.0000         .10000E-03   10000.    
    27 'Prefactor '    4.3213       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .99285       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .70823       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=   4763.971     FROM MIGRAD    STATUS=CONVERGED    774 CALLS     3888 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .58690        4.9824       -.82879E-06    .49722E-03
   2  Prefactor     .10000E-03    6.5657        .59141E-06** at limit **
   3  Prefactor     .10000E-03    9.2076       -.12109E-05** at limit **
   4  norm          .10000E-03    4.1605        .10612E-06** at limit **
   5  Prefactor     26.860        21.946       -.52346E-06    .45009E-04
   6  norm          .10000E-03    1.6970        .12862E-08** at limit **
   7  Prefactor     28.408        39.590        .34839E-05    .15550E-03
   8  Prefactor     .10000E-03    8.5041       -.11638E-05** at limit **
   9  norm          4.8992        4.8727        .16010E-06    .28212E-04
  10  Prefactor     .10000E-03    36.916        .10918E-04** at limit **
  11  Prefactor     .10046E-03    7.4208        .12568E-05** at limit **
  12  Prefactor     1.4736        3.1457       -.14171E-06    .14523E-03
  13  norm          .10000E-03    .63918       -.16563E-06** at limit **
  14  norm          .87115        2.7936       -.78685E-06    .16595E-03
  15  Prefactor     .10000E-03    4.4592        .89691E-07** at limit **
  16  Prefactor     .10000E-03    36.814        .27227E-06** at limit **
  17  Prefactor     1.9164        9.5089        .46536E-06    .21083E-03
  18  Prefactor     .10000E-03    5.1904        .12087E-06** at limit **
  19  Prefactor     .10000E-03    8.6301        .90822E-06** at limit **
  20  norm          .39200E-01    .60286       -.39803E-06    .29194E-03
  21  Prefactor     .10001E-03    8.4077       -.14149E-05** at limit **
  22  Prefactor     18.681        34.343       -.20328E-05   -.14520E-03
  23  Prefactor     10.698        12.470        .56648E-07    .58696E-04
  24  norm          .10000E-03    6.0629       -.62726E-06** at limit **
  25  Prefactor     2.7369        2.4114       -.99368E-08    .10366E-03
  26  Prefactor     .80227        14.544        .21409E-05   -.65455E-04
  27  Prefactor     4.3219        5.4606       -.35567E-06    .16283E-03
  28  Normalizat    .99252        .16003        .20933E-05    .41096E-03
  29  Prefactor     .70862        .15678        .32706E-06    .40116E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.586901
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  norm       = 0.0001
  Prefactor  = 26.8596
  norm       = 0.0001
  Prefactor  = 28.4081
  Prefactor  = 0.0001
  norm       = 4.89918
  Prefactor  = 0.000100002
  Prefactor  = 0.000100456
  Prefactor  = 1.4736
  norm       = 0.0001
  norm       = 0.871147
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.91637
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0391998
  Prefactor  = 0.000100008
  Prefactor  = 18.6807
  Prefactor  = 10.6983
  norm       = 0.0001
  Prefactor  = 2.73692
  Prefactor  = 0.802268
  Prefactor  = 4.32187
  Normalizat = 0.992521
  Prefactor  = 0.708617
 **********
 **   18 **HESSE 
 **********

 FCN=   4763.971     FROM HESSE     STATUS=OK           573 CALLS     4461 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .58690        5.1472        .29951E-03   -1.5555    
   2  Prefactor     .10000E-03    6.5914        .17248E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    12.507        .70392E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    4.1613        .13749E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     26.860        21.954        .77304E-04   -1.4671    
   6  norm          .10000E-03    1.6993        .87776E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     28.408        39.883        .75131E-04   -1.4641    
   8  Prefactor     .10000E-03    8.5251        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          4.8992        4.8755        .14818E-03   -1.5265    
  10  Prefactor     .10000E-03    39.124        .41079E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10046E-03    6.8223        .50214E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.4736        3.0958        .17428E-03   -1.5465    
  13  norm          .10000E-03    .92934        .10442E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .87115        2.7761        .19956E-03   -1.5521    
  15  Prefactor     .10000E-03    4.4864        .14207E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    36.847        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     1.9164        9.8000        .29936E-03   -1.5431    
  18  Prefactor     .10000E-03    5.1949        .15355E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    8.6742        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .39200E-01    3.2381        .92256E-03   -1.5668    
  21  Prefactor     .10001E-03    36.840        .33025E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     18.681        33.680        .92771E-04   -1.4843    
  23  Prefactor     10.698        12.470        .12251E-03   -1.5054    
  24  norm          .10000E-03    6.0877        .16610E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     2.7369        2.4035        .96002E-04   -1.5377    
  26  Prefactor     .80227        77.055        .48278E-02   -1.5529    
  27  Prefactor     4.3219        5.4716        .17353E-03   -1.5292    
  28  Normalizat    .99252        .18784        .20000E-03   -.93281    
  29  Prefactor     .70862        .18508        .22934E-03   -1.0319    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.59973e-09
Minuit parameter uncertainties:
  1  3.47626
  2  1.7922e-05
  3  0.000362851
  4  2.80287e-06
  5  21.9611
  6  1.23725e-05
  7  39.9202
  8  6.64129e-05
  9  4.87591
  10  0.00053508
  11  0.00352646
  12  3.09609
  13  3.6744e-05
  14  2.77649
  15  2.02886e-06
  16  2.36343e-05
  17  8.66931
  18  3.51429e-06
  19  1.04196e-05
  20  0.711688
  21  0.00105225
  22  33.7147
  23  12.4728
  24  3.96136e-05
  25  2.40359
  26  15.7449
  27  5.47228
  28  0.187963
  29  0.185241
Done.

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

Extracting fit parameters...

4FGL J1516.8+3651
   Spectrum: PowerLaw
279    Prefactor:  1.000e-04  2.363e-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:  7.086e-01  1.852e-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.925e-01  1.880e-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.06e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.85e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/447958/likelihoodResults_643161601_643420801_4FGL_J1516.8+3651_daily_bin1558.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) = 4763.97157328
delta logL = -0.000129242140247

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4763.97144447
delta logL = -4.30622094427e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4455       1.0000          .0000       10.000    
     3 'Normalizat'    .99252       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .70862       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=   4763.971     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      271 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10142E-03    154.55        .18142E-02** at limit **
   2  Index         2.3904        8.7731        .50000        .86381E-05
   3  Normalizat    .99252        .90234E-02    .20000E-03   -.32855E-04
   4  Prefactor     .70862        .89237E-02    .22934E-03    .73612E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101417
  Index      = 2.39036
  Normalizat = 0.992519
  Prefactor  = 0.708617
 **********
 **   18 **HESSE 
 **********

 FCN=   4763.971     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      300 TOTAL
                     EDM=   .58E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10142E-03    674.91        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3904        5.0809        .50000       -.54911    
   3  Normalizat    .99252        .19394E-01    .80002E-05   -.93281    
   4  Prefactor     .70862        .19179E-01    .91738E-05   -1.0319    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.84457e-09
Minuit parameter uncertainties:
  1  0.0625701
  2  544.5
  3  0.0193938
  4  0.0191793
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/447958': 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) = 4763.97144438
delta logL = -3.37253368343e-07

Extracting fit parameters...

4FGL J1516.8+3651
   Spectrum: PowerLaw
279    Prefactor:  1.014e-04  6.257e-02  1.000e-04  1.000e+04 ( 1.000e-14)
280        Index:  2.390e+00  5.445e+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:  7.086e-01  1.918e-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.925e-01  1.939e-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/447958/cmap_HighResolution_643161601_643420801_4FGL_J1516.8+3651_daily_bin1558.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.85e-03', job_status='DONE', photon_flux_upper_limit='5.06e-08', time_completed='2021-09-11 23:14:03.819378', job_id='447958', GAL2='0.71', fit_tolerance='1e-08', EG2='0.99', EG='0.99', time_epoch_completed='1631427243.82', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.71', dlogl='-3.37e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.19' WHERE bin_id='1558' AND source_name='4FGL J1516.8+3651' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 23:14:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0119>
Subject: Job 447958: <4FGL_J1516.8+3651_daily_bin1558> in cluster <slac> Done

Job <4FGL_J1516.8+3651_daily_bin1558> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Sat Sep 11 23:01:36 2021
Job was executed on host(s) <bullet0119>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 11 23:01:38 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep 11 23:01:38 2021
Terminated at Sat Sep 11 23:14:04 2021
Results reported at Sat Sep 11 23:14:04 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1516.8+3651_daily_bin1558 229.222 36.8505 643161601 643420801 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 :                                   721.14 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             338.92 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   746 sec.
    Turnaround time :                            748 sec.

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

