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


Performing analysis on: 4FGL_J1516.9+1934_daily_bin1044
RA = 229.244, Dec = 19.5805
tmin = 509932801, tmax = 510192001
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='454252', job_status='RUN', time_executed='2021-09-11 23:25:33.126075', time_epoch_executed='1631427933.13' WHERE source_name='4FGL J1516.9+1934' and cadence='daily' and bin_id='1044'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/454252

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/454252/ft1_4FGL_J1516.9+1934_daily_bin1044.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/454252/ft2_4FGL_J1516.9+1934_daily_bin1044.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/454252/ft1_4FGL_J1516.9+1934_daily_bin1044.fits outfile=/scratch/kocevski/454252/ft1_filteredMKT_4FGL_J1516.9+1934_daily_bin1044.fits ra=229.244 dec=19.5805 rad=12.0 tmin=509932801.0 tmax=510192001.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.50
user 3.25
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/454252/ft2_4FGL_J1516.9+1934_daily_bin1044.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/454252/ft1_filteredMKT_4FGL_J1516.9+1934_daily_bin1044.fits evtable="EVENTS" outfile="/scratch/kocevski/454252/ft1_filtered_4FGL_J1516.9+1934_daily_bin1044.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/454252/ft1_filtered_4FGL_J1516.9+1934_daily_bin1044.fits" evtable="EVENTS" scfile=/scratch/kocevski/454252/ft2_4FGL_J1516.9+1934_daily_bin1044.fits sctable="SC_DATA" outfile=/scratch/kocevski/454252/ltcube_509932801_510192001_4FGL_J1516.9+1934_daily_bin1044.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/454252/ft2_4FGL_J1516.9+1934_daily_bin1044.fits
.....................!
real 11.76
user 11.38
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/454252/ft1_filtered_4FGL_J1516.9+1934_daily_bin1044.fits evtable="EVENTS" scfile=/scratch/kocevski/454252/ft2_4FGL_J1516.9+1934_daily_bin1044.fits sctable="SC_DATA" expcube=/scratch/kocevski/454252/ltcube_509932801_510192001_4FGL_J1516.9+1934_daily_bin1044.fits outfile=/scratch/kocevski/454252/expmap_509932801_510192001_4FGL_J1516.9+1934_daily_bin1044.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/454252/ltcube_509932801_510192001_4FGL_J1516.9+1934_daily_bin1044.fits
.....................!
real 191.09
user 185.47
sys 5.30

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/454252/ft1_filtered_4FGL_J1516.9+1934_daily_bin1044.fits scfile=/scratch/kocevski/454252/ft2_4FGL_J1516.9+1934_daily_bin1044.fits outfile=/scratch/kocevski/454252/cmap_509932801_510192001_4FGL_J1516.9+1934_daily_bin1044.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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/454252/ft1_filtered_4FGL_J1516.9+1934_daily_bin1044.fits scfile=/scratch/kocevski/454252/ft2_4FGL_J1516.9+1934_daily_bin1044.fits outfile=/scratch/kocevski/454252/cmap_HighResolution_509932801_510192001_4FGL_J1516.9+1934_daily_bin1044.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.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.5807       1.0000         .10000E-03   10000.    
     2 'norm      '    13.061       1.0000         .10000E-03   10000.    
     3 'norm      '    4.9634       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.3271       1.0000         .10000E-03   10000.    
     7 'Prefactor '    16.982       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    1.0853       1.0000         .10000E-03   10000.    
    10 'norm      '    2.4407       1.0000         .10000E-03   10000.    
    11 'norm      '    21.087       1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.5189       1.0000         .10000E-03   10000.    
    13 'Prefactor '    12.876       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    80.802       1.0000         .10000E-03   10000.    
    19 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    18.558       1.0000         .10000E-03   10000.    
    21 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .55898       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.1627       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=   7323.383     FROM MIGRAD    STATUS=CONVERGED    524 CALLS     2691 TOTAL
                     EDM=   .14E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.5813        8.0121        .41265E-07    .26899E-05
   2  norm          13.061        4.4177        .49867E-07    .10937E-05
   3  norm          4.9636        4.4654        .10553E-06   -.42776E-05
   4  Prefactor     .10000E-03    9.8655       -.33601E-06** at limit **
   5  Prefactor     .10000E-03    4.1839       -.11881E-06** at limit **
   6  Prefactor     3.3262        13.949        .15295E-06   -.45646E-05
   7  Prefactor     16.976        27.391        .10310E-05   -.11311E-05
   8  Prefactor     .10000E-03    2.1808       -.24769E-07** at limit **
   9  norm          1.0853        .25124       -.13417E-07   -.22445E-03
  10  norm          2.4407        6.1654        .47245E-05   -.48332E-05
  11  norm          21.084        31.702        .54978E-06   -.14320E-05
  12  Prefactor     4.4962        36.948        .79453E-05   -.46227E-05
  13  Prefactor     12.876        9.3168        .82829E-07   -.29453E-04
  14  Prefactor     .10000E-03    15.056       -.56761E-06** at limit **
  15  Prefactor     .10000E-03    22.066        .41659E-06** at limit **
  16  Prefactor     .10000E-03    12.699        .98788E-06** at limit **
  17  Prefactor     .10000E-03    1.0406        .59445E-07** at limit **
  18  Prefactor     80.803        36.748       -.58225E-07   -.12887E-04
  19  norm          .10000E-03    .62348        .45053E-07** at limit **
  20  Prefactor     18.556        28.796        .43031E-06   -.20310E-05
  21  norm          .10000E-03    3.3648        .45675E-07** at limit **
  22  Prefactor     .10000E-03    4.3767        .50577E-07** at limit **
  23  Normalizat    .55887        .21100       -.66636E-06   -.60961E-04
  24  Prefactor     1.1627        .13466       -.27927E-06   -.36611E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.58129
  norm       = 13.0611
  norm       = 4.96361
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.32624
  Prefactor  = 16.9764
  Prefactor  = 0.0001
  norm       = 1.08527
  norm       = 2.4407
  norm       = 21.0837
  Prefactor  = 4.49616
  Prefactor  = 12.8761
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 80.8029
  norm       = 0.0001
  Prefactor  = 18.5565
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.558868
  Prefactor  = 1.16274
 **********
 **   18 **HESSE 
 **********

 FCN=   7323.383     FROM HESSE     STATUS=OK           399 CALLS     3090 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.5813        8.0125        .13684E-03   -1.5122    
   2  norm          13.061        4.4138        .98967E-04   -1.4985    
   3  norm          4.9636        4.4592        .16523E-03   -1.5262    
   4  Prefactor     .10000E-03    9.8802        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    4.1870        .17095E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     3.3262        13.888        .22191E-03   -1.5343    
   7  Prefactor     16.976        27.378        .97192E-04   -1.4884    
   8  Prefactor     .10000E-03    2.1841        .12341E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.0853        .25107        .19745E-04   -1.5500    
  10  norm          2.4407        6.1675        .13094E-02   -1.5396    
  11  norm          21.084        31.705        .87224E-04   -1.4789    
  12  Prefactor     4.4962        36.960        .18939E-03   -1.5284    
  13  Prefactor     12.876        9.3113        .11163E-03   -1.4990    
  14  Prefactor     .10000E-03    15.099        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    22.503        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    12.710        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    1.0679        .17034E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     80.803        36.707        .44681E-04   -1.3908    
  19  norm          .10000E-03    .62540        .65984E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     18.556        28.802        .92973E-04   -1.4846    
  21  norm          .10000E-03    3.3870        .15330E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    4.4079        .17483E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .55887        .23002        .39521E-03   -1.0976    
  24  Prefactor     1.1627        .14868        .18538E-03   -.87486    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.79821e-10
Minuit parameter uncertainties:
  1  8.01351
  2  4.4139
  3  4.45952
  4  1.81706e-06
  5  4.52894e-07
  6  13.5987
  7  27.3984
  8  3.49691e-07
  9  0.251072
  10  6.16906
  11  31.7306
  12  25.8035
  13  9.31238
  14  5.50404e-06
  15  4.39508e-05
  16  5.94122e-06
  17  3.86035e-06
  18  36.7175
  19  6.10837e-07
  20  28.8236
  21  4.58411e-06
  22  7.63683e-06
  23  0.230409
  24  0.148733
Done.

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

Extracting fit parameters...

4FGL J1516.9+1934
   Spectrum: PowerLaw
225    Prefactor:  4.496e+00  2.580e+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.163e+00  1.487e-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:  5.589e-01  2.304e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.03
Ra Dec: 229.244 19.581
Photon Flux Upper Limit: 7.95e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.21e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/454252/likelihoodResults_509932801_510192001_4FGL_J1516.9+1934_daily_bin1044.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) = 7323.3828727
delta logL = 3.70087873307e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7323.38286257
delta logL = 4.71426965305e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.3907       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6040       1.0000          .0000       10.000    
     3 'Normalizat'    .55892       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1627       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=   7323.383     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      268 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.3973        48.154        .19221E-03    .43652E-04
   2  Index         2.6073        2.7418        .14736E-01    .50403E-04
   3  Normalizat    .55876        .22265        .39525E-03    .82678E-03
   4  Prefactor     1.1628        .14738        .18537E-03    .16156E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.39733
  Index      = 2.60731
  Normalizat = 0.55876
  Prefactor  = 1.16279
 **********
 **   18 **HESSE 
 **********

 FCN=   7323.383     FROM HESSE     STATUS=OK            23 CALLS      291 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.3973        42.652        .76882E-05   -1.5289    
   2  Index         2.6073        2.6045        .58944E-03   -.49899    
   3  Normalizat    .55876        .22275        .15810E-04   -1.0976    
   4  Prefactor     1.1628        .14740        .37074E-04   -.87484    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.30383e-09
Minuit parameter uncertainties:
  1  27.4154
  2  2.78822
  3  0.223102
  4  0.147456
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/454252': 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) = 7323.38286118
delta logL = 4.85351665702e-05

Extracting fit parameters...

4FGL J1516.9+1934
   Spectrum: PowerLaw
225    Prefactor:  4.397e+00  2.742e+01  1.000e-04  1.000e+04 ( 1.000e-13)
226        Index:  2.607e+00  2.788e+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.163e+00  1.475e-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:  5.588e-01  2.231e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.03
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/454252/cmap_HighResolution_509932801_510192001_4FGL_J1516.9+1934_daily_bin1044.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.21e-03', job_status='DONE', photon_flux_upper_limit='7.95e-08', time_completed='2021-09-11 23:36:57.015437', job_id='454252', GAL2='1.16', fit_tolerance='1e-08', EG2='0.56', EG='0.56', time_epoch_completed='1631428617.02', return_code2='0', ts='0.03', comment='SUCCESS', return_code='0', GAL='1.16', dlogl='4.85e-05', ts2='0.03', photon_index_error='0.00', photon_index='2.58' WHERE bin_id='1044' AND source_name='4FGL J1516.9+1934' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 23:36:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0263>
Subject: Job 454252: <4FGL_J1516.9+1934_daily_bin1044> in cluster <slac> Done

Job <4FGL_J1516.9+1934_daily_bin1044> 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) <bullet0263>, 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:36:57 2021
Results reported at Sat Sep 11 23:36:57 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1516.9+1934_daily_bin1044 229.244 19.5805 509932801 510192001 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 :                                   683.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             270.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   915 sec.
    Turnaround time :                            916 sec.

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

