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


Performing analysis on: 4FGL_J1516.9+1934_daily_bin1063
RA = 229.244, Dec = 19.5805
tmin = 514857601, tmax = 515116801
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='455732', job_status='RUN', time_executed='2021-09-11 23:29:41.127788', time_epoch_executed='1631428181.13' WHERE source_name='4FGL J1516.9+1934' and cadence='daily' and bin_id='1063'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/455732

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/455732/ft1_4FGL_J1516.9+1934_daily_bin1063.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/455732/ft2_4FGL_J1516.9+1934_daily_bin1063.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/455732/ft1_4FGL_J1516.9+1934_daily_bin1063.fits outfile=/scratch/kocevski/455732/ft1_filteredMKT_4FGL_J1516.9+1934_daily_bin1063.fits ra=229.244 dec=19.5805 rad=12.0 tmin=514857601.0 tmax=515116801.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.56
user 3.33
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/455732/ft1_filtered_4FGL_J1516.9+1934_daily_bin1063.fits" evtable="EVENTS" scfile=/scratch/kocevski/455732/ft2_4FGL_J1516.9+1934_daily_bin1063.fits sctable="SC_DATA" outfile=/scratch/kocevski/455732/ltcube_514857601_515116801_4FGL_J1516.9+1934_daily_bin1063.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/455732/ft2_4FGL_J1516.9+1934_daily_bin1063.fits
.....................!
real 12.77
user 12.42
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/455732/ft1_filtered_4FGL_J1516.9+1934_daily_bin1063.fits evtable="EVENTS" scfile=/scratch/kocevski/455732/ft2_4FGL_J1516.9+1934_daily_bin1063.fits sctable="SC_DATA" expcube=/scratch/kocevski/455732/ltcube_514857601_515116801_4FGL_J1516.9+1934_daily_bin1063.fits outfile=/scratch/kocevski/455732/expmap_514857601_515116801_4FGL_J1516.9+1934_daily_bin1063.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/455732/ltcube_514857601_515116801_4FGL_J1516.9+1934_daily_bin1063.fits
.....................!
real 191.08
user 185.06
sys 5.71

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/455732/ft1_filtered_4FGL_J1516.9+1934_daily_bin1063.fits scfile=/scratch/kocevski/455732/ft2_4FGL_J1516.9+1934_daily_bin1063.fits outfile=/scratch/kocevski/455732/cmap_514857601_515116801_4FGL_J1516.9+1934_daily_bin1063.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.52
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/455732/ft1_filtered_4FGL_J1516.9+1934_daily_bin1063.fits scfile=/scratch/kocevski/455732/ft2_4FGL_J1516.9+1934_daily_bin1063.fits outfile=/scratch/kocevski/455732/cmap_HighResolution_514857601_515116801_4FGL_J1516.9+1934_daily_bin1063.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/455732/ft1_filtered_4FGL_J1516.9+1934_daily_bin1063.fits evtable="EVENTS" scfile=/scratch/kocevski/455732/ft2_4FGL_J1516.9+1934_daily_bin1063.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/455732/Model_4FGL_J1516.9+1934_daily_bin1063.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/455732/ft1_filtered_4FGL_J1516.9+1934_daily_bin1063.fits.....................!
real 52.40
user 51.14
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    4.0023       1.0000         .10000E-03   10000.    
     3 'norm      '    6.9080       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    8.7666       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    23.949       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .89680       1.0000         .10000E-03   10000.    
    10 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.5795       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    38.004       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .12026E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.4348       1.0000         .10000E-03   10000.    
    19 'norm      '    .10033E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    47.583       1.0000         .10000E-03   10000.    
    21 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .70962       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.2099       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=   7042.324     FROM MIGRAD    STATUS=CONVERGED    536 CALLS     2691 TOTAL
                     EDM=   .33E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.9151       -.23955E-07** at limit **
   2  norm          4.0019        3.3018       -.24918E-06   -.50448E-03
   3  norm          6.9086        5.3038       -.37247E-06   -.19915E-03
   4  Prefactor     .10000E-03    36.076        .10144E-04** at limit **
   5  Prefactor     8.7675        15.094       -.79926E-06   -.31144E-04
   6  Prefactor     .10000E-03    7.7944       -.20565E-05** at limit **
   7  Prefactor     23.949        42.282       -.49400E-06    .31765E-05
   8  Prefactor     .10000E-03    3.0241        .11572E-06** at limit **
   9  norm          .89682        .23855       -.22858E-08   -.35886E-03
  10  norm          .10000E-03    7.7394        .14946E-05** at limit **
  11  norm          .10000E-03    28.660        .89486E-06** at limit **
  12  Prefactor     .10000E-03    25.942       -.74824E-05** at limit **
  13  Prefactor     2.5796        4.1322       -.24514E-06   -.25667E-03
  14  Prefactor     .10000E-03    17.690        .17651E-05** at limit **
  15  Prefactor     .10000E-03    3.1404       -.68736E-06** at limit **
  16  Prefactor     38.002        27.773       -.10605E-05    .53796E-04
  17  Prefactor     .10000E-03    1.3200       -.64793E-07** at limit **
  18  Prefactor     1.3942        81.084       -.57674E-04    .82408E-04
  19  norm          .10000E-03    .88978       -.69110E-07** at limit **
  20  Prefactor     47.585        41.024        .70256E-05    .22752E-03
  21  norm          .10000E-03    3.1483        .75206E-06** at limit **
  22  Prefactor     .10000E-03    6.6890        .12095E-06** at limit **
  23  Normalizat    .70945        .21169        .13240E-05    .15954E-03
  24  Prefactor     1.2100        .13839        .50660E-06    .32575E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 4.00193
  norm       = 6.90859
  Prefactor  = 0.000100004
  Prefactor  = 8.76745
  Prefactor  = 0.0001
  Prefactor  = 23.9494
  Prefactor  = 0.0001
  norm       = 0.896818
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 2.57963
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 38.0022
  Prefactor  = 0.0001
  Prefactor  = 1.39417
  norm       = 0.0001
  Prefactor  = 47.5852
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.70945
  Prefactor  = 1.20995
 **********
 **   18 **HESSE 
 **********

 FCN=   7042.324     FROM HESSE     STATUS=OK           391 CALLS     3082 TOTAL
                     EDM=   .68E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.9350        .16215E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          4.0019        3.2996        .13266E-03   -1.5308    
   3  norm          6.9086        5.3083        .15265E-03   -1.5182    
   4  Prefactor     .10000E-03    36.334        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     8.7675        15.070        .13538E-03   -1.5116    
   6  Prefactor     .10000E-03    7.7928        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     23.949        42.224        .81852E-04   -1.4729    
   8  Prefactor     .10000E-03    3.0335        .14251E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .89682        .23797        .20309E-04   -1.5519    
  10  norm          .10000E-03    7.9460        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    28.672        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    25.921        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     2.5796        4.1177        .21001E-03   -1.5387    
  14  Prefactor     .10000E-03    17.774        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    3.1437        .14522E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     38.002        27.759        .65015E-04   -1.4474    
  17  Prefactor     .10000E-03    3.6074        .18669E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     1.3942        85.474        .36044E-03   -1.5472    
  19  norm          .10000E-03    .89930        .77272E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     47.585        41.188        .58129E-04   -1.4327    
  21  norm          .10000E-03    3.1609        .14538E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    6.7384        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .70945        .24025        .35665E-03   -1.0352    
  24  Prefactor     1.2100        .15890        .18579E-03   -.86026    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.77148e-10
Minuit parameter uncertainties:
  1  3.02711e-06
  2  3.29974
  3  5.30871
  4  0.000721088
  5  15.0762
  6  5.39999e-05
  7  42.2762
  8  5.11353e-06
  9  0.237974
  10  6.10596e-05
  11  5.2388e-05
  12  0.00036868
  13  4.11819
  14  4.79774e-05
  15  1.16921e-05
  16  27.7685
  17  1.86697e-05
  18  21.8645
  19  3.93124e-07
  20  41.2127
  21  1.57312e-05
  22  8.13802e-06
  23  0.240607
  24  0.158967
Done.

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

Extracting fit parameters...

4FGL J1516.9+1934
   Spectrum: PowerLaw
225    Prefactor:  1.000e-04  3.687e-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.210e+00  1.590e-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:  7.094e-01  2.406e-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: 8.12e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.35e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/455732/likelihoodResults_514857601_515116801_4FGL_J1516.9+1934_daily_bin1063.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) = 7042.32391814
delta logL = -0.000183781649866

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7042.32373543
delta logL = -1.0696830941e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10946E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.1122       1.0000          .0000       10.000    
     3 'Normalizat'    .70945       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2100       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=   7042.324     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      275 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10455E-03    13.730        .18142E-01** at limit **
   2  Index         2.9915        5.1179        .50000        .10241E-04
   3  Normalizat    .70945        .40871E-02    .35665E-03    .26712E-04
   4  Prefactor     1.2100        .27304E-02    .18579E-03    .46382E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000104552
  Index      = 2.99148
  Normalizat = 0.70945
  Prefactor  = 1.20995
 **********
 **   18 **HESSE 
 **********

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

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10455E-03    116.97        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.9915        5.1559        .50000       -.41338    
   3  Normalizat    .70945        .11915E-01    .14266E-04   -1.0352    
   4  Prefactor     1.2100        .79601E-02    .74317E-05   -.86026    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.67727e-09
Minuit parameter uncertainties:
  1  0.0462409
  2  499.993
  3  0.0119154
  4  0.00796015
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/455732': 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) = 7042.32373498
delta logL = -6.26364453638e-07

Extracting fit parameters...

4FGL J1516.9+1934
   Spectrum: PowerLaw
225    Prefactor:  1.046e-04  4.624e-02  1.000e-04  1.000e+04 ( 1.000e-13)
226        Index:  2.991e+00  5.000e+02  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.210e+00  7.960e-03  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:  7.094e-01  1.192e-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/455732/cmap_HighResolution_514857601_515116801_4FGL_J1516.9+1934_daily_bin1063.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.35e-03', job_status='DONE', photon_flux_upper_limit='8.12e-08', time_completed='2021-09-11 23:40:53.418327', job_id='455732', GAL2='1.21', fit_tolerance='1e-08', EG2='0.71', EG='0.71', time_epoch_completed='1631428853.42', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.21', dlogl='-6.26e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.58' WHERE bin_id='1063' AND source_name='4FGL J1516.9+1934' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 23:40:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0236>
Subject: Job 455732: <4FGL_J1516.9+1934_daily_bin1063> in cluster <slac> Done

Job <4FGL_J1516.9+1934_daily_bin1063> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sat Sep 11 23:25:53 2021
Job was executed on host(s) <bullet0236>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 11 23:25:55 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep 11 23:25:55 2021
Terminated at Sat Sep 11 23:40:54 2021
Results reported at Sat Sep 11 23:40:54 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1516.9+1934_daily_bin1063 229.244 19.5805 514857601 515116801 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 :                                   668.20 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             287.55 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   898 sec.
    Turnaround time :                            901 sec.

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

