/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 52 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 = 7556
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1516.9+1934_daily_bin1037
RA = 229.244, Dec = 19.5805
tmin = 508118401, tmax = 508377601
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='454242', job_status='RUN', time_executed='2021-09-11 23:22:53.707599', time_epoch_executed='1631427773.71' WHERE source_name='4FGL J1516.9+1934' and cadence='daily' and bin_id='1037'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/454242

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/454242/ft1_4FGL_J1516.9+1934_daily_bin1037.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/454242/ft2_4FGL_J1516.9+1934_daily_bin1037.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/454242/ft1_4FGL_J1516.9+1934_daily_bin1037.fits outfile=/scratch/kocevski/454242/ft1_filteredMKT_4FGL_J1516.9+1934_daily_bin1037.fits ra=229.244 dec=19.5805 rad=12.0 tmin=508118401.0 tmax=508377601.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.67
user 3.42
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/454242/ft2_4FGL_J1516.9+1934_daily_bin1037.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/454242/ft2_4FGL_J1516.9+1934_daily_bin1037.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/454242/ft1_filteredMKT_4FGL_J1516.9+1934_daily_bin1037.fits evtable="EVENTS" outfile="/scratch/kocevski/454242/ft1_filtered_4FGL_J1516.9+1934_daily_bin1037.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.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/454242/ft1_filtered_4FGL_J1516.9+1934_daily_bin1037.fits" evtable="EVENTS" scfile=/scratch/kocevski/454242/ft2_4FGL_J1516.9+1934_daily_bin1037.fits sctable="SC_DATA" outfile=/scratch/kocevski/454242/ltcube_508118401_508377601_4FGL_J1516.9+1934_daily_bin1037.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/454242/ft2_4FGL_J1516.9+1934_daily_bin1037.fits
.....................!
real 11.71
user 11.36
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/454242/ft1_filtered_4FGL_J1516.9+1934_daily_bin1037.fits evtable="EVENTS" scfile=/scratch/kocevski/454242/ft2_4FGL_J1516.9+1934_daily_bin1037.fits sctable="SC_DATA" expcube=/scratch/kocevski/454242/ltcube_508118401_508377601_4FGL_J1516.9+1934_daily_bin1037.fits outfile=/scratch/kocevski/454242/expmap_508118401_508377601_4FGL_J1516.9+1934_daily_bin1037.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/454242/ltcube_508118401_508377601_4FGL_J1516.9+1934_daily_bin1037.fits
.....................!
real 190.52
user 185.43
sys 4.73

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 155 point sources and 0 extended sources

Setting source of interest to:
4FGL J1516.9+1934 @ 229.244 19.5805

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/454242/ft1_filtered_4FGL_J1516.9+1934_daily_bin1037.fits scfile=/scratch/kocevski/454242/ft2_4FGL_J1516.9+1934_daily_bin1037.fits outfile=/scratch/kocevski/454242/cmap_508118401_508377601_4FGL_J1516.9+1934_daily_bin1037.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.244 yref=19.5805 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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/454242/ft1_filtered_4FGL_J1516.9+1934_daily_bin1037.fits scfile=/scratch/kocevski/454242/ft2_4FGL_J1516.9+1934_daily_bin1037.fits outfile=/scratch/kocevski/454242/cmap_HighResolution_508118401_508377601_4FGL_J1516.9+1934_daily_bin1037.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.244 yref=19.5805 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.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/454242/ft1_filtered_4FGL_J1516.9+1934_daily_bin1037.fits evtable="EVENTS" scfile=/scratch/kocevski/454242/ft2_4FGL_J1516.9+1934_daily_bin1037.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/454242/Model_4FGL_J1516.9+1934_daily_bin1037.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/454242/ft1_filtered_4FGL_J1516.9+1934_daily_bin1037.fits....................!
real 60.09
user 58.14
sys 1.36

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/454242/ft1_filtered_4FGL_J1516.9+1934_daily_bin1037.fits', '/scratch/kocevski/454242/ft2_4FGL_J1516.9+1934_daily_bin1037.fits', expMap='/scratch/kocevski/454242/expmap_508118401_508377601_4FGL_J1516.9+1934_daily_bin1037.fits', expCube='/scratch/kocevski/454242/ltcube_508118401_508377601_4FGL_J1516.9+1934_daily_bin1037.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/454242/Model_4FGL_J1516.9+1934_daily_bin1037.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1516.9+1934'

4FGL J1516.9+1934
   Spectrum: PowerLaw
225    Prefactor:  7.750e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
226        Index:  2.580e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
227        Scale:  7.139e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/454242/ft1_filtered_4FGL_J1516.9+1934_daily_bin1037.fits
Spacecraft file(s): /scratch/kocevski/454242/ft2_4FGL_J1516.9+1934_daily_bin1037.fits
Exposure map: /scratch/kocevski/454242/expmap_508118401_508377601_4FGL_J1516.9+1934_daily_bin1037.fits
Exposure cube: /scratch/kocevski/454242/ltcube_508118401_508377601_4FGL_J1516.9+1934_daily_bin1037.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/454242/Model_4FGL_J1516.9+1934_daily_bin1037.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) = 8049.82928518

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.9534       1.0000         .10000E-03   10000.    
     2 'norm      '    6.5596       1.0000         .10000E-03   10000.    
     3 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10368E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.1763       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10117E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10326E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    1.8289       1.0000         .10000E-03   10000.    
    10 'norm      '    4.6064       1.0000         .10000E-03   10000.    
    11 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    23.173       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .11619E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10211E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    12.933       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    20.260       1.0000         .10000E-03   10000.    
    19 'norm      '    1.3010       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    8.5415       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10152E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .83585       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.1526       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5030E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8049.783     FROM MIGRAD    STATUS=CONVERGED    534 CALLS     2370 TOTAL
                     EDM=   .11E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.9562        10.755       -.16421E-05    .15203E-03
   2  norm          6.5603        3.5430       -.14636E-07    .40767E-04
   3  norm          .10000E-03    1.6170        .54399E-07** at limit **
   4  Prefactor     .10000E-03    47.672        .18954E-05** at limit **
   5  Prefactor     2.1799        39.426       -.12353E-05   -.60104E-05
   6  Prefactor     .10000E-03    23.599        .21702E-06** at limit **
   7  Prefactor     .10000E-03    17.955        .82316E-06** at limit **
   8  Prefactor     .10000E-03    10.376        .50393E-05** at limit **
   9  norm          1.8289        .29369       -.17337E-07    .50391E-03
  10  norm          4.6065        4.5685        .23070E-06    .14391E-04
  11  norm          .10000E-03    14.842       -.48071E-06** at limit **
  12  Prefactor     23.209        47.082       -.35420E-05   -.71979E-04
  13  Prefactor     .10000E-03    22.092        .89284E-05** at limit **
  14  Prefactor     .10000E-03    12.768        .34313E-06** at limit **
  15  Prefactor     .10000E-03    44.467       -.98152E-06** at limit **
  16  Prefactor     12.941        29.398       -.83791E-06    .96431E-05
  17  Prefactor     .10000E-03    .98204        .32953E-07** at limit **
  18  Prefactor     20.262        23.864       -.28719E-06    .20173E-04
  19  norm          1.3015        2.4953       -.77085E-06    .15703E-04
  20  Prefactor     .10000E-03    13.982       -.45288E-06** at limit **
  21  norm          8.5421        8.3623        .45927E-07    .11776E-03
  22  Prefactor     .10000E-03    21.136        .14229E-05** at limit **
  23  Normalizat    .83564        .22560        .20684E-05    .10511E-03
  24  Prefactor     1.1527        .13512        .12917E-06    .29195E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.95621
  norm       = 6.56026
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.17992
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 1.8289
  norm       = 4.60646
  norm       = 0.0001
  Prefactor  = 23.2094
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.9409
  Prefactor  = 0.0001
  Prefactor  = 20.2622
  norm       = 1.30146
  Prefactor  = 0.0001
  norm       = 8.54215
  Prefactor  = 0.0001
  Normalizat = 0.835641
  Prefactor  = 1.15267
 **********
 **   18 **HESSE 
 **********

 FCN=   8049.783     FROM HESSE     STATUS=OK           395 CALLS     2765 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.9562        10.783        .63506E-03   -1.5077    
   2  norm          6.5603        3.5387        .11894E-03   -1.5196    
   3  norm          .10000E-03    1.6246        .11138E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    48.466        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     2.1799        39.144        .27909E-03   -1.5413    
   6  Prefactor     .10000E-03    23.698        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    18.012        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    25.507        .39070E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.8289        .29341        .18577E-04   -1.5437    
  10  norm          4.6065        4.5739        .18634E-03   -1.5279    
  11  norm          .10000E-03    14.858        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     23.209        47.702        .83210E-04   -1.4744    
  13  Prefactor     .10000E-03    27.150        .40690E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    12.795        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    45.470        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     12.941        29.290        .11138E-03   -1.4988    
  17  Prefactor     .10000E-03    .99028        .86767E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     20.262        23.839        .88984E-04   -1.4807    
  19  norm          1.3015        2.4816        .18608E-03   -1.5480    
  20  Prefactor     .10000E-03    14.023        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          8.5421        8.3136        .13716E-03   -1.5123    
  22  Prefactor     .10000E-03    21.594        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .83564        .25472        .37216E-03   -.98760    
  24  Prefactor     1.1527        .15679        .19957E-03   -.87800    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.25478e-10
Minuit parameter uncertainties:
  1  10.7853
  2  3.53878
  3  4.80516e-06
  4  0.00016342
  5  18.4886
  6  1.77696e-05
  7  9.81039e-05
  8  0.000293342
  9  0.293415
  10  4.57429
  11  4.8485e-05
  12  47.7807
  13  1.28322e-05
  14  3.21471e-05
  15  4.05035e-05
  16  29.322
  17  4.11863e-06
  18  23.8502
  19  2.48176
  20  5.07673e-05
  21  8.31474
  22  0.000137443
  23  0.25509
  24  0.156855
Done.

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

Extracting fit parameters...

4FGL J1516.9+1934
   Spectrum: PowerLaw
225    Prefactor:  2.321e+01  4.778e+01  1.000e-04  1.000e+04 ( 1.000e-13)
226        Index:  2.580e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
227        Scale:  7.139e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
500    Prefactor:  1.153e+00  1.569e-01  0.000e+00  1.000e+01 ( 1.000e+00)
501        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
502        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
499   Normalization:  8.356e-01  2.551e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.27
Ra Dec: 229.244 19.581
Photon Flux Upper Limit: 1.31e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.02e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/454242/likelihoodResults_508118401_508377601_4FGL_J1516.9+1934_daily_bin1037.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) = 8049.77900428
delta logL = 0.00363199867297

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8049.77836293
delta logL = 0.00427334668893

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    21.646       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6987       1.0000          .0000       10.000    
     3 'Normalizat'    .83286       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1537       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5030E+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=   8049.778     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      240 TOTAL
                     EDM=   .64E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     21.575        52.834        .86092E-04    .22449E-05
   2  Index         2.6929        1.3264        .14854E-01    .24868E-03
   3  Normalizat    .83308        .25121        .37270E-03   -.12000E-03
   4  Prefactor     1.1537        .15558        .19949E-03    .22208E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 21.5754
  Index      = 2.69293
  Normalizat = 0.833081
  Prefactor  = 1.15372
 **********
 **   18 **HESSE 
 **********

 FCN=   8049.778     FROM HESSE     STATUS=OK            25 CALLS      265 TOTAL
                     EDM=   .46E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     21.575        49.531        .34437E-05   -1.4779    
   2  Index         2.6929        1.2459        .29707E-02   -.47959    
   3  Normalizat    .83308        .25136        .14908E-04   -.98853    
   4  Prefactor     1.1537        .15557        .39899E-04   -.87768    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.64395e-10
Minuit parameter uncertainties:
  1  49.6253
  2  1.2629
  3  0.251714
  4  0.155629
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/454242': 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) = 8049.77834384
delta logL = 0.00429244295901

Extracting fit parameters...

4FGL J1516.9+1934
   Spectrum: PowerLaw
225    Prefactor:  2.158e+01  4.963e+01  1.000e-04  1.000e+04 ( 1.000e-13)
226        Index:  2.693e+00  1.263e+00  0.000e+00  1.000e+01 (-1.000e+00)
227        Scale:  7.139e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
500    Prefactor:  1.154e+00  1.556e-01  0.000e+00  1.000e+01 ( 1.000e+00)
501        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
502        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
499   Normalization:  8.331e-01  2.517e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.27
Ra Dec: 229.244 19.581

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/454242/cmap_HighResolution_508118401_508377601_4FGL_J1516.9+1934_daily_bin1037.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.02e-02', job_status='DONE', photon_flux_upper_limit='1.31e-07', time_completed='2021-09-11 23:34:25.258904', job_id='454242', GAL2='1.15', fit_tolerance='1e-08', EG2='0.83', EG='0.84', time_epoch_completed='1631428465.26', return_code2='0', ts='0.27', comment='SUCCESS', return_code='0', GAL='1.15', dlogl='4.29e-03', ts2='0.28', photon_index_error='0.00', photon_index='2.58' WHERE bin_id='1037' AND source_name='4FGL J1516.9+1934' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 23:34:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0245>
Subject: Job 454242: <4FGL_J1516.9+1934_daily_bin1037> in cluster <slac> Done

Job <4FGL_J1516.9+1934_daily_bin1037> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sat Sep 11 23:21:41 2021
Job was executed on host(s) <bullet0245>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 11 23:21:42 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:21:42 2021
Terminated at Sat Sep 11 23:34:25 2021
Results reported at Sat Sep 11 23:34:25 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1516.9+1934_daily_bin1037 229.244 19.5805 508118401 508377601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1516.9+1934 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   678.17 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             319.16 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   763 sec.
    Turnaround time :                            764 sec.

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

