/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 217 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 = 7480
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1516.9+1934_daily_bin53
RA = 229.244, Dec = 19.5805
tmin = 253065601, tmax = 253324801
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='448094', job_status='RUN', time_executed='2021-09-11 23:05:34.175233', time_epoch_executed='1631426734.18' WHERE source_name='4FGL J1516.9+1934' and cadence='daily' and bin_id='53'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/448094

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/448094/ft1_4FGL_J1516.9+1934_daily_bin53.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/448094/ft2_4FGL_J1516.9+1934_daily_bin53.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/448094/ft1_4FGL_J1516.9+1934_daily_bin53.fits outfile=/scratch/kocevski/448094/ft1_filteredMKT_4FGL_J1516.9+1934_daily_bin53.fits ra=229.244 dec=19.5805 rad=12.0 tmin=253065601.0 tmax=253324801.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 1.43
user 1.23
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/448094/ft1_filtered_4FGL_J1516.9+1934_daily_bin53.fits" evtable="EVENTS" scfile=/scratch/kocevski/448094/ft2_4FGL_J1516.9+1934_daily_bin53.fits sctable="SC_DATA" outfile=/scratch/kocevski/448094/ltcube_253065601_253324801_4FGL_J1516.9+1934_daily_bin53.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/448094/ft2_4FGL_J1516.9+1934_daily_bin53.fits
.....................!
real 12.74
user 12.41
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/448094/ft1_filtered_4FGL_J1516.9+1934_daily_bin53.fits evtable="EVENTS" scfile=/scratch/kocevski/448094/ft2_4FGL_J1516.9+1934_daily_bin53.fits sctable="SC_DATA" expcube=/scratch/kocevski/448094/ltcube_253065601_253324801_4FGL_J1516.9+1934_daily_bin53.fits outfile=/scratch/kocevski/448094/expmap_253065601_253324801_4FGL_J1516.9+1934_daily_bin53.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/448094/ltcube_253065601_253324801_4FGL_J1516.9+1934_daily_bin53.fits
.....................!
real 190.39
user 185.06
sys 4.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 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/448094/ft1_filtered_4FGL_J1516.9+1934_daily_bin53.fits scfile=/scratch/kocevski/448094/ft2_4FGL_J1516.9+1934_daily_bin53.fits outfile=/scratch/kocevski/448094/cmap_253065601_253324801_4FGL_J1516.9+1934_daily_bin53.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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/448094/ft1_filtered_4FGL_J1516.9+1934_daily_bin53.fits scfile=/scratch/kocevski/448094/ft2_4FGL_J1516.9+1934_daily_bin53.fits outfile=/scratch/kocevski/448094/cmap_HighResolution_253065601_253324801_4FGL_J1516.9+1934_daily_bin53.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.37
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .27230       1.0000         .10000E-03   10000.    
     2 'norm      '    4.7580       1.0000         .10000E-03   10000.    
     3 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10117E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10115E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.9529       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10073E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .32301E-01   1.0000         .10000E-03   10000.    
     9 'norm      '    4.1972       1.0000         .10000E-03   10000.    
    10 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    3.4718       1.0000         .10000E-03   10000.    
    12 'Prefactor '    48.802       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .77063       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .11708E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10171E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.6762       1.0000         .10000E-03   10000.    
    18 'Prefactor '    16.654       1.0000         .10000E-03   10000.    
    19 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10104E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    19.815       1.0000         .10000E-03   10000.    
    22 'Prefactor '    3.7226       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.2778       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .83743       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=   7876.471     FROM MIGRAD    STATUS=CONVERGED    550 CALLS     2743 TOTAL
                     EDM=   .87E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .26245        4.3629       -.34729E-06   -.11950E-04
   2  norm          4.7578        3.0182        .25371E-07   -.28522E-04
   3  norm          .10000E-03    1.7144        .93392E-08** at limit **
   4  Prefactor     .10000E-03    37.008       -.25857E-04** at limit **
   5  Prefactor     .10000E-03    4.1184        .33823E-08** at limit **
   6  Prefactor     8.9533        14.882        .23357E-07    .96802E-04
   7  Prefactor     .10000E-03    10.494        .43266E-06** at limit **
   8  Prefactor     .10003E-03    5.5753       -.39181E-06** at limit **
   9  norm          4.1971        .40407        .86640E-08    .17002E-02
  10  norm          .10000E-03    2.6644        .19128E-08** at limit **
  11  norm          3.4767        96.360        .74706E-05   -.14651E-04
  12  Prefactor     48.821        41.710        .15090E-04    .80437E-04
  13  Prefactor     .10000E-03    5.8244       -.20443E-07** at limit **
  14  Prefactor     .68125        13.739       -.43273E-05    .51455E-03
  15  Prefactor     .10000E-03    10.896       -.55343E-06** at limit **
  16  Prefactor     .10000E-03    44.623        .24872E-04** at limit **
  17  Prefactor     2.6766        2.6263       -.10587E-06   -.58858E-03
  18  Prefactor     16.661        22.712        .75234E-07    .25512E-04
  19  norm          .10000E-03    1.3295        .40007E-07** at limit **
  20  Prefactor     .10000E-03    28.754        .62256E-05** at limit **
  21  norm          19.814        9.8556       -.55521E-06    .32262E-04
  22  Prefactor     3.7223        8.9550       -.22776E-05   -.19332E-03
  23  Normalizat    1.2780        .21923       -.53230E-06    .45297E-03
  24  Prefactor     .83728        .13311       -.29832E-06    .48518E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.262447
  norm       = 4.75784
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.95331
  Prefactor  = 0.0001
  Prefactor  = 0.000100033
  norm       = 4.19711
  norm       = 0.0001
  norm       = 3.47672
  Prefactor  = 48.8212
  Prefactor  = 0.0001
  Prefactor  = 0.681245
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.67663
  Prefactor  = 16.6608
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 19.814
  Prefactor  = 3.72234
  Normalizat = 1.27803
  Prefactor  = 0.837282
 **********
 **   18 **HESSE 
 **********

 FCN=   7876.471     FROM HESSE     STATUS=OK           407 CALLS     3150 TOTAL
                     EDM=   .56E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .26245        49.872        .35590E-02   -1.5606    
   2  norm          4.7578        3.0143        .11810E-03   -1.5272    
   3  norm          .10000E-03    1.7297        .11347E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    37.280        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    4.1215        .17589E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     8.9533        14.875        .13395E-03   -1.5109    
   7  Prefactor     .10000E-03    10.496        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10003E-03    8.6994        .66334E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          4.1971        .40478        .16840E-04   -1.5298    
  10  norm          .10000E-03    2.6693        .14148E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          3.4767        96.523        .21703E-03   -1.5335    
  12  Prefactor     48.821        41.742        .57402E-04   -1.4309    
  13  Prefactor     .10000E-03    5.8775        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .68125        231.42        .61728E-02   -1.5543    
  15  Prefactor     .10000E-03    10.958        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    44.799        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     2.6766        2.6248        .13670E-03   -1.5381    
  18  Prefactor     16.661        22.719        .98144E-04   -1.4891    
  19  norm          .10000E-03    1.3518        .99834E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    28.842        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          19.814        9.8576        .89977E-04   -1.4817    
  22  Prefactor     3.7223        8.9809        .20929E-03   -1.5322    
  23  Normalizat    1.2780        .26527        .31246E-03   -.84225    
  24  Prefactor     .83728        .15948        .23441E-03   -.98368    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.58266e-08
Minuit parameter uncertainties:
  1  7.24044
  2  3.01439
  3  1.02901e-06
  4  0.000271662
  5  1.88e-06
  6  14.8809
  7  1.36045e-06
  8  0.00107577
  9  0.404781
  10  1.54646e-07
  11  36.703
  12  41.7672
  13  2.50435e-06
  14  25.2091
  15  1.22681e-05
  16  7.42098e-05
  17  2.62487
  18  22.7308
  19  4.16115e-06
  20  1.42912e-05
  21  9.8584
  22  8.98413
  23  0.265553
  24  0.159565
Done.

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

Extracting fit parameters...

4FGL J1516.9+1934
   Spectrum: PowerLaw
225    Prefactor:  4.882e+01  4.177e+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:  8.373e-01  1.596e-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.278e+00  2.656e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.19
Ra Dec: 229.244 19.581
Photon Index (Fixed Index): 2.58 +/- 0.00
Photon Flux (Fixed Index): 4.93e-08 +/- 4.21e-08
Energy Flux (Fixed Index): 1.32e-05 +/- 1.13e-05

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

Saving results to:
/scratch/kocevski/448094/likelihoodResults_253065601_253324801_4FGL_J1516.9+1934_daily_bin53.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) = 7876.43055057
delta logL = 0.0399795125031

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7876.42730771
delta logL = 0.0432223703592

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    56.217       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3606       1.0000          .0000       10.000    
     3 'Normalizat'    1.2881       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83292       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=   7876.427     FROM MIGRAD    STATUS=CONVERGED     80 CALLS      290 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     56.220        52.604        .53502E-04   -.65617E-04
   2  Index         2.3606        .72918        .96977E-02   -.59757E-04
   3  Normalizat    1.2881        .25514        .31140E-03    .12953E-03
   4  Prefactor     .83293        .15835        .23494E-03    .23750E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 56.2197
  Index      = 2.36058
  Normalizat = 1.28811
  Prefactor  = 0.832927
 **********
 **   18 **HESSE 
 **********

 FCN=   7876.427     FROM HESSE     STATUS=OK            25 CALLS      315 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     56.220        51.618        .10700E-04   -1.4207    
   2  Index         2.3606        .71521        .38791E-03   -.55611    
   3  Normalizat    1.2881        .25531        .12456E-04   -.83922    
   4  Prefactor     .83293        .15847        .93976E-05   -.98526    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.72308e-10
Minuit parameter uncertainties:
  1  51.6587
  2  0.718631
  3  0.255556
  4  0.158555
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/448094': 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) = 7876.42730771
delta logL = 0.0432223720954

Extracting fit parameters...

4FGL J1516.9+1934
   Spectrum: PowerLaw
225    Prefactor:  5.622e+01  5.166e+01  1.000e-04  1.000e+04 ( 1.000e-13)
226        Index:  2.361e+00  7.186e-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:  8.329e-01  1.586e-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.288e+00  2.556e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.24
Ra Dec: 229.244 19.581
Photon Index (Free Index): 2.36 +/- 0.72
Photon Flux (Free Index): 4.28e-08 +/- 4.43e-08
Energy Flux (Free Index): 1.48e-05 +/- 1.44e-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/448094/cmap_HighResolution_253065601_253324801_4FGL_J1516.9+1934_daily_bin53.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.12e-02', comment='SUCCESS', photon_flux='4.93e-08', energy_flux2='1.48e-05', photon_flux_error='4.21e-08', dlogl='4.32e-02', energy_flux='1.32e-05', photon_flux2='4.28e-08', job_status='DONE', time_completed='2021-09-11 23:17:48.980993', photon_index_error2='0.72', photon_index2='2.36', ts='2.19', fit_tolerance='1e-08', GAL='0.84', photon_index_error='0.00', photon_flux_upper_limit='1.43e-07', energy_flux_error2='1.44e-05', EG='1.28', time_epoch_completed='1631427468.98', return_code='0', job_id='448094', GAL2='0.83', EG2='1.29', return_code2='0', energy_flux_error='1.13e-05', photon_flux_error2='4.43e-08', ts2='2.24', photon_index='2.58' WHERE bin_id='53' AND source_name='4FGL J1516.9+1934' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 23:17:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0213>
Subject: Job 448094: <4FGL_J1516.9+1934_daily_bin53> in cluster <slac> Done

Job <4FGL_J1516.9+1934_daily_bin53> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Sat Sep 11 23:01:48 2021
Job was executed on host(s) <bullet0213>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 11 23:01:49 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:49 2021
Terminated at Sat Sep 11 23:17:49 2021
Results reported at Sat Sep 11 23:17:49 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1516.9+1934_daily_bin53 229.244 19.5805 253065601 253324801 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 :                                   734.19 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             283.94 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   960 sec.
    Turnaround time :                            961 sec.

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

