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


Performing analysis on: 4FGL_J1516.9+1934_daily_bin1128
RA = 229.244, Dec = 19.5805
tmin = 531705601, tmax = 531964801
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='455799', job_status='RUN', time_executed='2021-09-11 23:26:14.073379', time_epoch_executed='1631427974.07' WHERE source_name='4FGL J1516.9+1934' and cadence='daily' and bin_id='1128'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/455799

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/455799/ft1_4FGL_J1516.9+1934_daily_bin1128.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/455799/ft2_4FGL_J1516.9+1934_daily_bin1128.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/455799/ft1_4FGL_J1516.9+1934_daily_bin1128.fits outfile=/scratch/kocevski/455799/ft1_filteredMKT_4FGL_J1516.9+1934_daily_bin1128.fits ra=229.244 dec=19.5805 rad=12.0 tmin=531705601.0 tmax=531964801.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.98
user 3.74
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/455799/ft1_filtered_4FGL_J1516.9+1934_daily_bin1128.fits" evtable="EVENTS" scfile=/scratch/kocevski/455799/ft2_4FGL_J1516.9+1934_daily_bin1128.fits sctable="SC_DATA" outfile=/scratch/kocevski/455799/ltcube_531705601_531964801_4FGL_J1516.9+1934_daily_bin1128.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/455799/ft2_4FGL_J1516.9+1934_daily_bin1128.fits
.....................!
real 11.57
user 11.20
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/455799/ft1_filtered_4FGL_J1516.9+1934_daily_bin1128.fits evtable="EVENTS" scfile=/scratch/kocevski/455799/ft2_4FGL_J1516.9+1934_daily_bin1128.fits sctable="SC_DATA" expcube=/scratch/kocevski/455799/ltcube_531705601_531964801_4FGL_J1516.9+1934_daily_bin1128.fits outfile=/scratch/kocevski/455799/expmap_531705601_531964801_4FGL_J1516.9+1934_daily_bin1128.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/455799/ltcube_531705601_531964801_4FGL_J1516.9+1934_daily_bin1128.fits
.....................!
real 190.48
user 184.95
sys 5.23

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/455799/ft1_filtered_4FGL_J1516.9+1934_daily_bin1128.fits scfile=/scratch/kocevski/455799/ft2_4FGL_J1516.9+1934_daily_bin1128.fits outfile=/scratch/kocevski/455799/cmap_531705601_531964801_4FGL_J1516.9+1934_daily_bin1128.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/455799/ft1_filtered_4FGL_J1516.9+1934_daily_bin1128.fits scfile=/scratch/kocevski/455799/ft2_4FGL_J1516.9+1934_daily_bin1128.fits outfile=/scratch/kocevski/455799/cmap_HighResolution_531705601_531964801_4FGL_J1516.9+1934_daily_bin1128.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.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.6519       1.0000         .10000E-03   10000.    
     2 'norm      '    .80790       1.0000         .10000E-03   10000.    
     3 'norm      '    .18477       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10034E-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 '    10.778       1.0000         .10000E-03   10000.    
     9 'norm      '    2.5783       1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    35.251       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .73641       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    1.0199       1.0000         .10000E-03   10000.    
    20 'Prefactor '    5.7490       1.0000         .10000E-03   10000.    
    21 'norm      '    12.109       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .86440       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.2343       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=   8219.273     FROM MIGRAD    STATUS=CONVERGED    530 CALLS     2695 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.6536        11.375       -.36266E-06    .14520E-03
   2  norm          .80670        2.6260       -.15008E-05   -.45548E-03
   3  norm          .19881        3.2350       -.12997E-05   -.13089E-03
   4  Prefactor     .10000E-03    14.546       -.49446E-05** at limit **
   5  Prefactor     .10000E-03    17.436       -.14049E-05** at limit **
   6  Prefactor     .10000E-03    12.661        .48067E-05** at limit **
   7  Prefactor     .10000E-03    13.334       -.29718E-06** at limit **
   8  Prefactor     10.778        9.5679       -.13211E-05   -.97279E-03
   9  norm          2.5783        .34659       -.10968E-07    .80611E-03
  10  norm          .10000E-03    4.2913        .22041E-06** at limit **
  11  norm          .10000E-03    20.448        .83470E-05** at limit **
  12  Prefactor     .10000E-03    30.067       -.24535E-05** at limit **
  13  Prefactor     .10000E-03    4.2075       -.13408E-06** at limit **
  14  Prefactor     35.239        44.869       -.14849E-04    .30701E-03
  15  Prefactor     .10000E-03    7.5732       -.18951E-06** at limit **
  16  Prefactor     .10000E-03    16.838       -.35715E-05** at limit **
  17  Prefactor     .73574        1.8058       -.95931E-06   -.15611E-02
  18  Prefactor     .10000E-03    18.581        .25047E-05** at limit **
  19  norm          1.0236        2.1532        .31153E-06   -.10550E-03
  20  Prefactor     5.7403        30.582       -.17911E-04    .14355E-03
  21  norm          12.106        10.394       -.42192E-08   -.61588E-04
  22  Prefactor     .10000E-03    3.5862        .11210E-06** at limit **
  23  Normalizat    .86449        .23271        .41907E-05    .26303E-03
  24  Prefactor     1.2342        .14145        .91758E-06    .46628E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.65355
  norm       = 0.806695
  norm       = 0.198813
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 10.7782
  norm       = 2.57834
  norm       = 0.0001
  norm       = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 35.2395
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.735742
  Prefactor  = 0.0001
  norm       = 1.02356
  Prefactor  = 5.74028
  norm       = 12.1062
  Prefactor  = 0.0001
  Normalizat = 0.864494
  Prefactor  = 1.23421
 **********
 **   18 **HESSE 
 **********

 FCN=   8219.273     FROM HESSE     STATUS=OK           397 CALLS     3092 TOTAL
                     EDM=   .70E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.6536        11.291        .12899E-03   -1.5086    
   2  norm          .80670        3.6352        .24711E-02   -1.5528    
   3  norm          .19881        16.596        .31425E-02   -1.5619    
   4  Prefactor     .10000E-03    14.516        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    17.580        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    12.607        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    13.337        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     10.778        9.7696        .61018E-03   -1.5051    
   9  norm          2.5783        .34684        .18719E-04   -1.5387    
  10  norm          .10000E-03    4.3507        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    20.277        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    30.093        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    4.2235        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     35.239        44.737        .67497E-04   -1.4520    
  15  Prefactor     .10000E-03    7.6145        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    16.826        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .73574        1.8117        .18714E-03   -1.5536    
  18  Prefactor     .10000E-03    18.607        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          1.0236        1.7178        .18212E-02   -1.5506    
  20  Prefactor     5.7403        30.048        .16752E-03   -1.5229    
  21  norm          12.106        10.314        .11512E-03   -1.5012    
  22  Prefactor     .10000E-03    3.5915        .16766E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .86449        .26400        .38792E-03   -.97719    
  24  Prefactor     1.2342        .16253        .20640E-03   -.85285    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.98418e-08
Minuit parameter uncertainties:
  1  11.2938
  2  3.42503
  3  3.63307
  4  0.000210571
  5  1.4595e-05
  6  0.0002129
  7  9.14351e-06
  8  9.77102
  9  0.346837
  10  1.12772e-05
  11  0.000450947
  12  0.000169203
  13  1.23357e-05
  14  44.7793
  15  8.56436e-06
  16  0.000163739
  17  1.81187
  18  5.36642e-05
  19  1.71791
  20  26.287
  21  10.3156
  22  8.39173e-06
  23  0.26439
  24  0.162594
Done.

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

Extracting fit parameters...

4FGL J1516.9+1934
   Spectrum: PowerLaw
225    Prefactor:  1.000e-04  1.692e-04  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.234e+00  1.626e-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.645e-01  2.644e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/455799/likelihoodResults_531705601_531964801_4FGL_J1516.9+1934_daily_bin1128.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): 102
logL (Free Index) = 8219.27359422
delta logL = -0.00015828386131

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8219.2734371
delta logL = -1.17060881166e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.1638       1.0000          .0000       10.000    
     3 'Normalizat'    .86449       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2342       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=   8219.273     FROM MIGRAD    STATUS=CONVERGED    107 CALLS      291 TOTAL
                     EDM=   .49E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    96.578        .18142E-01** at limit **
   2  Index         2.2896        5.6901        .50000       -.59117E-08
   3  Normalizat    .86449        .94180E-02    .38792E-03   -.17614E-03
   4  Prefactor     1.2342        .59147E-02    .20640E-03   -.31955E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100005
  Index      = 2.28955
  Normalizat = 0.864492
  Prefactor  = 1.23421
 **********
 **   18 **HESSE 
 **********

 FCN=   8219.273     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      320 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    570.69        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2896        6.0091        .50000       -.57292    
   3  Normalizat    .86449        .23400E-01    .15517E-04   -.97719    
   4  Prefactor     1.2342        .14696E-01    .41281E-04   -.85285    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.94698e-09
Minuit parameter uncertainties:
  1  0.00344585
  2  1243.58
  3  0.0234004
  4  0.0146959
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/455799': 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) = 8219.2734358
delta logL = 1.36336893775e-07

Extracting fit parameters...

4FGL J1516.9+1934
   Spectrum: PowerLaw
225    Prefactor:  1.000e-04  3.446e-03  1.000e-04  1.000e+04 ( 1.000e-13)
226        Index:  2.290e+00  1.244e+03  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.234e+00  1.470e-02  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.645e-01  2.340e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/455799/cmap_HighResolution_531705601_531964801_4FGL_J1516.9+1934_daily_bin1128.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.76e-03', job_status='DONE', photon_flux_upper_limit='9.92e-08', time_completed='2021-09-11 23:38:12.645148', job_id='455799', GAL2='1.23', fit_tolerance='1e-08', EG2='0.86', EG='0.86', time_epoch_completed='1631428692.65', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.23', dlogl='1.36e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.58' WHERE bin_id='1128' AND source_name='4FGL J1516.9+1934' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 23:38:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0297>
Subject: Job 455799: <4FGL_J1516.9+1934_daily_bin1128> in cluster <slac> Done

Job <4FGL_J1516.9+1934_daily_bin1128> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sat Sep 11 23:25:59 2021
Job was executed on host(s) <bullet0297>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 11 23:26:01 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:26:01 2021
Terminated at Sat Sep 11 23:38:13 2021
Results reported at Sat Sep 11 23:38:13 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1516.9+1934_daily_bin1128 229.244 19.5805 531705601 531964801 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 :                                   712.11 sec.
    Max Memory :                                 1091 MB
    Average Memory :                             332.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   731 sec.
    Turnaround time :                            734 sec.

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

