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


Performing analysis on: 4FGL_J1516.9+1934_daily_bin917
RA = 229.244, Dec = 19.5805
tmin = 477014401, tmax = 477273601
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='454072', job_status='RUN', time_executed='2021-09-11 23:23:31.496975', time_epoch_executed='1631427811.5' WHERE source_name='4FGL J1516.9+1934' and cadence='daily' and bin_id='917'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/454072

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/454072/ft1_4FGL_J1516.9+1934_daily_bin917.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/454072/ft2_4FGL_J1516.9+1934_daily_bin917.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/454072/ft1_4FGL_J1516.9+1934_daily_bin917.fits outfile=/scratch/kocevski/454072/ft1_filteredMKT_4FGL_J1516.9+1934_daily_bin917.fits ra=229.244 dec=19.5805 rad=12.0 tmin=477014401.0 tmax=477273601.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.60
user 3.39
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/454072/ft2_4FGL_J1516.9+1934_daily_bin917.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/454072/ft1_filteredMKT_4FGL_J1516.9+1934_daily_bin917.fits evtable="EVENTS" outfile="/scratch/kocevski/454072/ft1_filtered_4FGL_J1516.9+1934_daily_bin917.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.54
user 0.34
sys 0.17

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/454072/ft1_filtered_4FGL_J1516.9+1934_daily_bin917.fits evtable="EVENTS" scfile=/scratch/kocevski/454072/ft2_4FGL_J1516.9+1934_daily_bin917.fits sctable="SC_DATA" expcube=/scratch/kocevski/454072/ltcube_477014401_477273601_4FGL_J1516.9+1934_daily_bin917.fits outfile=/scratch/kocevski/454072/expmap_477014401_477273601_4FGL_J1516.9+1934_daily_bin917.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/454072/ltcube_477014401_477273601_4FGL_J1516.9+1934_daily_bin917.fits
.....................!
real 190.36
user 185.29
sys 4.69

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/454072/ft1_filtered_4FGL_J1516.9+1934_daily_bin917.fits scfile=/scratch/kocevski/454072/ft2_4FGL_J1516.9+1934_daily_bin917.fits outfile=/scratch/kocevski/454072/cmap_477014401_477273601_4FGL_J1516.9+1934_daily_bin917.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/454072/ft1_filtered_4FGL_J1516.9+1934_daily_bin917.fits scfile=/scratch/kocevski/454072/ft2_4FGL_J1516.9+1934_daily_bin917.fits outfile=/scratch/kocevski/454072/cmap_HighResolution_477014401_477273601_4FGL_J1516.9+1934_daily_bin917.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.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.4390       1.0000         .10000E-03   10000.    
     2 'norm      '    12.832       1.0000         .10000E-03   10000.    
     3 'norm      '    10.208       1.0000         .10000E-03   10000.    
     4 'Prefactor '    18.610       1.0000         .10000E-03   10000.    
     5 'Prefactor '    9.9026       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10765E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    23.060       1.0000         .10000E-03   10000.    
     8 'Prefactor '    22.373       1.0000         .10000E-03   10000.    
     9 'norm      '    1.6937       1.0000         .10000E-03   10000.    
    10 'norm      '    .12552E-02   1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    15.098       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    10.886       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .33697       1.0000         .10000E-03   10000.    
    18 'Prefactor '    14.910       1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    4.6704       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .97771       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .95952       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=   9033.855     FROM MIGRAD    STATUS=CONVERGED    556 CALLS     3373 TOTAL
                     EDM=   .92E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.4395        2.0202        .46238E-07   -.29147E-03
   2  norm          12.833        3.7473       -.42123E-07    .62925E-05
   3  norm          10.208        4.5057       -.25456E-07    .50087E-05
   4  Prefactor     18.602        20.721        .11083E-05    .63671E-05
   5  Prefactor     9.8987        15.530       -.12843E-05   -.10472E-06
   6  Prefactor     .10000E-03    113.36       -.10093E-06** at limit **
   7  Prefactor     23.051        25.146        .52832E-07    .31144E-05
   8  Prefactor     22.373        9.3156       -.55530E-06    .88846E-05
   9  norm          1.6937        .26963       -.52102E-08    .15083E-03
  10  norm          .10000E-03    3.3504        .86420E-08** at limit **
  11  norm          .10000E-03    29.718        .20296E-07** at limit **
  12  Prefactor     15.093        51.211       -.86741E-05    .12516E-05
  13  Prefactor     .10000E-03    2.2436        .22783E-07** at limit **
  14  Prefactor     10.889        29.674        .11545E-05    .46614E-05
  15  Prefactor     .10000E-03    3.5695        .27647E-08** at limit **
  16  Prefactor     .10000E-03    9.3078        .48589E-07** at limit **
  17  Prefactor     .33715        1.9647       -.91478E-07   -.11261E-03
  18  Prefactor     14.911        24.219       -.23717E-06    .21306E-05
  19  norm          .10000E-03    1.1409       -.14276E-07** at limit **
  20  Prefactor     .10000E-03    11.736        .13905E-07** at limit **
  21  norm          4.6707        7.0769        .65508E-06   -.48922E-05
  22  Prefactor     .10000E-03    2.9223        .51185E-08** at limit **
  23  Normalizat    .97757        .20342        .91249E-06   -.16138E-04
  24  Prefactor     .95958        .11829       -.48686E-07    .45803E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.43951
  norm       = 12.8326
  norm       = 10.2084
  Prefactor  = 18.6015
  Prefactor  = 9.89873
  Prefactor  = 0.0001
  Prefactor  = 23.0509
  Prefactor  = 22.3733
  norm       = 1.69368
  norm       = 0.000100001
  norm       = 0.0001
  Prefactor  = 15.0926
  Prefactor  = 0.0001
  Prefactor  = 10.8889
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.337152
  Prefactor  = 14.9109
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 4.6707
  Prefactor  = 0.0001
  Normalizat = 0.977568
  Prefactor  = 0.959577
 **********
 **   18 **HESSE 
 **********

 FCN=   9033.855     FROM HESSE     STATUS=OK           413 CALLS     3786 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.4395        7.7743        .13099E-02   -1.5396    
   2  norm          12.833        3.7640        .95369E-04   -1.4991    
   3  norm          10.208        4.5067        .12541E-03   -1.5069    
   4  Prefactor     18.602        20.758        .92843E-04   -1.4845    
   5  Prefactor     9.8987        15.522        .12734E-03   -1.5079    
   6  Prefactor     .10000E-03    117.65        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     23.051        25.128        .83414E-04   -1.4747    
   8  Prefactor     22.373        9.3112        .84683E-04   -1.4762    
   9  norm          1.6937        .27023        .18683E-04   -1.5448    
  10  norm          .10000E-03    3.3888        .65724E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    29.757        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     15.093        51.320        .10308E-03   -1.4931    
  13  Prefactor     .10000E-03    2.2501        .13902E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     10.889        29.755        .12143E-03   -1.5048    
  15  Prefactor     .10000E-03    3.5755        .17536E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    9.3096        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .33715        2.0551        .25917E-03   -1.5592    
  18  Prefactor     14.911        24.231        .10373E-03   -1.4935    
  19  norm          .10000E-03    1.1631        .99066E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    11.747        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          4.6707        7.0730        .18622E-03   -1.5276    
  22  Prefactor     .10000E-03    2.9283        .15867E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .97757        .24269        .33316E-03   -.93786    
  24  Prefactor     .95958        .14145        .20801E-03   -.94089    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.089e-10
Minuit parameter uncertainties:
  1  7.77751
  2  3.76406
  3  4.50685
  4  20.7661
  5  15.528
  6  3.78901e-05
  7  25.1393
  8  9.3118
  9  0.270231
  10  9.40383e-05
  11  1.72289e-06
  12  51.4712
  13  4.75677e-08
  14  29.796
  15  8.44171e-07
  16  6.92507e-07
  17  1.66461
  18  24.2472
  19  2.42048e-06
  20  3.85722e-06
  21  7.07428
  22  1.10686e-06
  23  0.24296
  24  0.141506
Done.

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

Extracting fit parameters...

4FGL J1516.9+1934
   Spectrum: PowerLaw
225    Prefactor:  1.509e+01  5.147e+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:  9.596e-01  1.415e-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:  9.776e-01  2.430e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.10
Ra Dec: 229.244 19.581
Photon Flux Upper Limit: 1.24e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.69e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/454072/likelihoodResults_477014401_477273601_4FGL_J1516.9+1934_daily_bin917.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) = 9033.12024417
delta logL = 0.734700170664

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9033.07926532
delta logL = 0.775679022141

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.2851       1.0000         .10000E-03   10000.    
     2 'Index     '    4.2496       1.0000          .0000       10.000    
     3 'Normalizat'    .89503       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98873       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=   9033.079     FROM MIGRAD    STATUS=CONVERGED     60 CALLS      264 TOTAL
                     EDM=   .60E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.2343        111.98        .40029E-02    .56259E-03
   2  Index         4.2545        3.5788        .13272        .24124E-03
   3  Normalizat    .89501        .60958E-01    .78339E-01   -.29636E-03
   4  Prefactor     .98884        .37240E-01    .46126E-01   -.33441E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.23433
  Index      = 4.25449
  Normalizat = 0.895006
  Prefactor  = 0.988844
 **********
 **   18 **HESSE 
 **********

 FCN=   9033.079     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      295 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.2343        198.86        .16011E-03   -1.5209    
   2  Index         4.2545        7.1139        .71131E-02   -.14966    
   3  Normalizat    .89501        .20090        .34675E-03   -.96636    
   4  Prefactor     .98884        .12507        .20524E-03   -.93102    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.81501e-09
Minuit parameter uncertainties:
  1  70.6778
  2  6.51598
  3  0.201073
  4  0.125104
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/454072': 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) = 9033.07926043
delta logL = 0.775683908696

Extracting fit parameters...

4FGL J1516.9+1934
   Spectrum: PowerLaw
225    Prefactor:  6.234e+00  7.068e+01  1.000e-04  1.000e+04 ( 1.000e-13)
226        Index:  4.254e+00  6.516e+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:  9.888e-01  1.251e-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.950e-01  2.011e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.86
Ra Dec: 229.244 19.581
Photon Index (Free Index): 4.25 +/- 6.52
Photon Flux (Free Index): 8.24e-08 +/- 8.02e-08
Energy Flux (Free Index): 1.19e-05 +/- 1.92e-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/454072/cmap_HighResolution_477014401_477273601_4FGL_J1516.9+1934_daily_bin917.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.69e-03', comment='SUCCESS', energy_flux2='1.19e-05', dlogl='7.76e-01', photon_flux2='8.24e-08', job_status='DONE', time_completed='2021-09-11 23:37:40.336333', photon_index_error2='6.52', photon_index2='4.25', ts='0.10', fit_tolerance='1e-08', GAL='0.96', photon_index_error='0.00', photon_flux_upper_limit='1.24e-07', energy_flux_error2='1.92e-05', EG='0.98', time_epoch_completed='1631428660.34', return_code='0', job_id='454072', GAL2='0.99', EG2='0.90', return_code2='102', photon_flux_error2='8.02e-08', ts2='1.86', photon_index='2.58' WHERE bin_id='917' AND source_name='4FGL J1516.9+1934' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 23:37:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0069>
Subject: Job 454072: <4FGL_J1516.9+1934_daily_bin917> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1516.9+1934_daily_bin917 229.244 19.5805 477014401 477273601 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 :                                   841.39 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             269.53 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   970 sec.
    Turnaround time :                            972 sec.

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

