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


Performing analysis on: 4FGL_J1516.9+1934_daily_bin1059
RA = 229.244, Dec = 19.5805
tmin = 513820801, tmax = 514080001
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='455728', job_status='RUN', time_executed='2021-09-11 23:29:51.206284', time_epoch_executed='1631428191.21' WHERE source_name='4FGL J1516.9+1934' and cadence='daily' and bin_id='1059'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/455728

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/455728/ft1_4FGL_J1516.9+1934_daily_bin1059.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/455728/ft2_4FGL_J1516.9+1934_daily_bin1059.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/455728/ft1_4FGL_J1516.9+1934_daily_bin1059.fits outfile=/scratch/kocevski/455728/ft1_filteredMKT_4FGL_J1516.9+1934_daily_bin1059.fits ra=229.244 dec=19.5805 rad=12.0 tmin=513820801.0 tmax=514080001.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.74
user 3.50
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/455728/ft2_4FGL_J1516.9+1934_daily_bin1059.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/455728/ft1_filteredMKT_4FGL_J1516.9+1934_daily_bin1059.fits evtable="EVENTS" outfile="/scratch/kocevski/455728/ft1_filtered_4FGL_J1516.9+1934_daily_bin1059.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.46
user 0.32
sys 0.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/455728/ft1_filtered_4FGL_J1516.9+1934_daily_bin1059.fits" evtable="EVENTS" scfile=/scratch/kocevski/455728/ft2_4FGL_J1516.9+1934_daily_bin1059.fits sctable="SC_DATA" outfile=/scratch/kocevski/455728/ltcube_513820801_514080001_4FGL_J1516.9+1934_daily_bin1059.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/455728/ft2_4FGL_J1516.9+1934_daily_bin1059.fits
.....................!
real 12.05
user 11.68
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/455728/ft1_filtered_4FGL_J1516.9+1934_daily_bin1059.fits evtable="EVENTS" scfile=/scratch/kocevski/455728/ft2_4FGL_J1516.9+1934_daily_bin1059.fits sctable="SC_DATA" expcube=/scratch/kocevski/455728/ltcube_513820801_514080001_4FGL_J1516.9+1934_daily_bin1059.fits outfile=/scratch/kocevski/455728/expmap_513820801_514080001_4FGL_J1516.9+1934_daily_bin1059.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/455728/ltcube_513820801_514080001_4FGL_J1516.9+1934_daily_bin1059.fits
.....................!
real 190.63
user 185.19
sys 4.99

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/455728/ft1_filtered_4FGL_J1516.9+1934_daily_bin1059.fits scfile=/scratch/kocevski/455728/ft2_4FGL_J1516.9+1934_daily_bin1059.fits outfile=/scratch/kocevski/455728/cmap_513820801_514080001_4FGL_J1516.9+1934_daily_bin1059.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.54
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/455728/ft1_filtered_4FGL_J1516.9+1934_daily_bin1059.fits scfile=/scratch/kocevski/455728/ft2_4FGL_J1516.9+1934_daily_bin1059.fits outfile=/scratch/kocevski/455728/cmap_HighResolution_513820801_514080001_4FGL_J1516.9+1934_daily_bin1059.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.54
user 0.37
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/455728/ft1_filtered_4FGL_J1516.9+1934_daily_bin1059.fits', '/scratch/kocevski/455728/ft2_4FGL_J1516.9+1934_daily_bin1059.fits', expMap='/scratch/kocevski/455728/expmap_513820801_514080001_4FGL_J1516.9+1934_daily_bin1059.fits', expCube='/scratch/kocevski/455728/ltcube_513820801_514080001_4FGL_J1516.9+1934_daily_bin1059.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/455728/Model_4FGL_J1516.9+1934_daily_bin1059.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/455728/ft1_filtered_4FGL_J1516.9+1934_daily_bin1059.fits
Spacecraft file(s): /scratch/kocevski/455728/ft2_4FGL_J1516.9+1934_daily_bin1059.fits
Exposure map: /scratch/kocevski/455728/expmap_513820801_514080001_4FGL_J1516.9+1934_daily_bin1059.fits
Exposure cube: /scratch/kocevski/455728/ltcube_513820801_514080001_4FGL_J1516.9+1934_daily_bin1059.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/455728/Model_4FGL_J1516.9+1934_daily_bin1059.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) = 8251.91070429

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10475E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    4.6984       1.0000         .10000E-03   10000.    
     3 'norm      '    36.948       1.0000         .10000E-03   10000.    
     4 'Prefactor '    21.299       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    8.1762       1.0000         .10000E-03   10000.    
     9 'norm      '    1.1429       1.0000         .10000E-03   10000.    
    10 'norm      '    10.416       1.0000         .10000E-03   10000.    
    11 'norm      '    10.650       1.0000         .10000E-03   10000.    
    12 'Prefactor '    34.148       1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.4465       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    13.548       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.1563       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0230       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=   8251.901     FROM MIGRAD    STATUS=CONVERGED    521 CALLS     2692 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.7642       -.11396E-05** at limit **
   2  norm          4.7006        4.0272       -.29987E-06    .40186E-04
   3  norm          36.950        8.6705        .10637E-06    .16523E-04
   4  Prefactor     21.312        30.326        .12030E-04    .26425E-03
   5  Prefactor     .10000E-03    14.844       -.45174E-05** at limit **
   6  Prefactor     .10000E-03    10.086       -.18051E-05** at limit **
   7  Prefactor     .10000E-03    12.557        .90426E-06** at limit **
   8  Prefactor     8.1767        7.1555       -.16169E-07   -.31808E-05
   9  norm          1.1429        .24281        .95018E-08    .63034E-04
  10  norm          10.415        8.4735        .57014E-07   -.51249E-05
  11  norm          10.650        46.275        .39074E-06   -.28132E-04
  12  Prefactor     34.155        40.334        .58074E-05    .74706E-04
  13  Prefactor     2.4471        4.2812        .16651E-05   -.17812E-02
  14  Prefactor     .10000E-03    17.642        .90958E-06** at limit **
  15  Prefactor     .10000E-03    6.2569        .95245E-07** at limit **
  16  Prefactor     .10000E-03    11.585        .23195E-05** at limit **
  17  Prefactor     .10000E-03    .86706        .14974E-07** at limit **
  18  Prefactor     .10000E-03    12.672        .63491E-06** at limit **
  19  norm          .10000E-03    1.2655        .10125E-07** at limit **
  20  Prefactor     .10000E-03    17.696        .11699E-05** at limit **
  21  norm          13.548        10.600        .38176E-06   -.32420E-03
  22  Prefactor     .10000E-03    7.8178        .17155E-06** at limit **
  23  Normalizat    1.1558        .22892       -.24665E-05    .16878E-03
  24  Prefactor     1.0233        .13659       -.13110E-06    .49893E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  norm       = 4.7006
  norm       = 36.9498
  Prefactor  = 21.3123
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.17667
  norm       = 1.14292
  norm       = 10.4149
  norm       = 10.6501
  Prefactor  = 34.1548
  Prefactor  = 2.44707
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 13.5479
  Prefactor  = 0.0001
  Normalizat = 1.15576
  Prefactor  = 1.02328
 **********
 **   18 **HESSE 
 **********

 FCN=   8251.901     FROM HESSE     STATUS=OK           395 CALLS     3087 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    51.006        .47748E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          4.7006        3.9857        .15836E-03   -1.5274    
   3  norm          36.950        8.6837        .65934E-04   -1.4491    
   4  Prefactor     21.312        30.480        .86788E-04   -1.4784    
   5  Prefactor     .10000E-03    15.005        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    10.133        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    12.556        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     8.1767        7.1569        .14021E-03   -1.5136    
   9  norm          1.1429        .24324        .19809E-04   -1.5494    
  10  norm          10.415        8.4801        .12415E-03   -1.5062    
  11  norm          10.650        46.527        .61385E-03   -1.5055    
  12  Prefactor     34.155        40.254        .68575E-04   -1.4538    
  13  Prefactor     2.4471        8.7430        .13077E-02   -1.5395    
  14  Prefactor     .10000E-03    17.674        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    6.3118        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    11.590        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    .87679        .82579E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    12.687        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    1.2806        .99681E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    17.730        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          13.548        10.661        .54411E-03   -1.4972    
  22  Prefactor     .10000E-03    7.8674        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.1558        .27548        .33703E-03   -.87981    
  24  Prefactor     1.0233        .16575        .21766E-03   -.91958    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.06e-08
Minuit parameter uncertainties:
  1  0.000395699
  2  3.9859
  3  8.68402
  4  30.5021
  5  0.000174401
  6  0.000104036
  7  8.39598e-06
  8  7.15767
  9  0.243243
  10  8.48109
  11  44.5789
  12  40.2862
  13  8.7476
  14  3.02999e-05
  15  8.1803e-06
  16  5.63208e-05
  17  2.48341e-06
  18  2.50835e-05
  19  2.58824e-06
  20  4.78175e-05
  21  10.6627
  22  2.05814e-05
  23  0.275821
  24  0.165829
Done.

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

Extracting fit parameters...

4FGL J1516.9+1934
   Spectrum: PowerLaw
225    Prefactor:  3.415e+01  4.029e+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.023e+00  1.658e-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:  1.156e+00  2.758e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.02
Ra Dec: 229.244 19.581
Photon Index (Fixed Index): 2.58 +/- 0.00
Photon Flux (Fixed Index): 3.45e-08 +/- 4.06e-08
Energy Flux (Fixed Index): 9.21e-06 +/- 1.09e-05

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

Saving results to:
/scratch/kocevski/455728/likelihoodResults_513820801_514080001_4FGL_J1516.9+1934_daily_bin1059.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) = 8251.57527989
delta logL = 0.325619752908

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8251.57428876
delta logL = 0.32661087612

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    58.739       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0737       1.0000          .0000       10.000    
     3 'Normalizat'    1.1720       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0116       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.

 FCN=   8251.574     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      267 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     58.566        2216.1        .13087E-02    .23056E-04
   2  Index         2.0712        5.7830        .25382        .24010E-04
   3  Normalizat    1.1719        .11637        .75672E-01    .22539E-05
   4  Prefactor     1.0118        .86980E-01    .43101E-01    .22500E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 58.5659
  Index      = 2.07124
  Normalizat = 1.17194
  Prefactor  = 1.01177
 **********
 **   18 **HESSE 
 **********

 FCN=   8251.574     FROM HESSE     STATUS=OK            31 CALLS      298 TOTAL
                     EDM=   .90E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     58.566        57.554        .52347E-04   -1.4176    
   2  Index         2.0712        .53529        .91953E-02   -.62581    
   3  Normalizat    1.1719        .26551        .33492E-03   -.87474    
   4  Prefactor     1.0118        .16419        .21868E-03   -.92338    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.95005e-12
Minuit parameter uncertainties:
  1  57.6091
  2  0.536855
  3  0.265816
  4  0.164276
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/455728': 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) = 8251.57427112
delta logL = 0.326628525403

Extracting fit parameters...

4FGL J1516.9+1934
   Spectrum: PowerLaw
225    Prefactor:  5.857e+01  5.761e+01  1.000e-04  1.000e+04 ( 1.000e-13)
226        Index:  2.071e+00  5.369e-01  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.012e+00  1.643e-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:  1.172e+00  2.658e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.69
Ra Dec: 229.244 19.581
Photon Index (Free Index): 2.07 +/- 0.54
Photon Flux (Free Index): 3.20e-08 +/- 3.32e-08
Energy Flux (Free Index): 1.87e-05 +/- 2.39e-05

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/455728/cmap_HighResolution_513820801_514080001_4FGL_J1516.9+1934_daily_bin1059.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.00e-02', comment='SUCCESS', photon_flux='3.45e-08', energy_flux2='1.87e-05', photon_flux_error='4.06e-08', dlogl='3.27e-01', energy_flux='9.21e-06', photon_flux2='3.20e-08', job_status='DONE', time_completed='2021-09-11 23:41:45.901977', photon_index_error2='0.54', photon_index2='2.07', ts='1.02', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', photon_flux_upper_limit='1.28e-07', energy_flux_error2='2.39e-05', EG='1.16', time_epoch_completed='1631428905.9', return_code='0', job_id='455728', GAL2='1.01', EG2='1.17', return_code2='0', energy_flux_error='1.09e-05', photon_flux_error2='3.32e-08', ts2='1.69', photon_index='2.58' WHERE bin_id='1059' AND source_name='4FGL J1516.9+1934' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 23:41:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0130>
Subject: Job 455728: <4FGL_J1516.9+1934_daily_bin1059> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1516.9+1934_daily_bin1059 229.244 19.5805 513820801 514080001 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 :                                   710.49 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             228.42 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   951 sec.
    Turnaround time :                            953 sec.

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

