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


Performing analysis on: 4FGL_J1516.1+4351_daily_bin1037
RA = 229.049, Dec = 43.8527
tmin = 508118401, tmax = 508377601
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='433250', job_status='RUN', time_executed='2021-09-11 22:06:42.212266', time_epoch_executed='1631423202.21' WHERE source_name='4FGL J1516.1+4351' and cadence='daily' and bin_id='1037'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/433250

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/433250/ft1_4FGL_J1516.1+4351_daily_bin1037.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/433250/ft2_4FGL_J1516.1+4351_daily_bin1037.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/433250/ft1_4FGL_J1516.1+4351_daily_bin1037.fits outfile=/scratch/kocevski/433250/ft1_filteredMKT_4FGL_J1516.1+4351_daily_bin1037.fits ra=229.049 dec=43.8527 rad=12.0 tmin=508118401.0 tmax=508377601.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.66
user 3.41
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/433250/ft2_4FGL_J1516.1+4351_daily_bin1037.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/433250/ft2_4FGL_J1516.1+4351_daily_bin1037.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/433250/ft1_filteredMKT_4FGL_J1516.1+4351_daily_bin1037.fits evtable="EVENTS" outfile="/scratch/kocevski/433250/ft1_filtered_4FGL_J1516.1+4351_daily_bin1037.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.50
user 0.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/433250/ft1_filtered_4FGL_J1516.1+4351_daily_bin1037.fits" evtable="EVENTS" scfile=/scratch/kocevski/433250/ft2_4FGL_J1516.1+4351_daily_bin1037.fits sctable="SC_DATA" outfile=/scratch/kocevski/433250/ltcube_508118401_508377601_4FGL_J1516.1+4351_daily_bin1037.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/433250/ft2_4FGL_J1516.1+4351_daily_bin1037.fits
.....................!
real 11.66
user 11.31
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/433250/ft1_filtered_4FGL_J1516.1+4351_daily_bin1037.fits evtable="EVENTS" scfile=/scratch/kocevski/433250/ft2_4FGL_J1516.1+4351_daily_bin1037.fits sctable="SC_DATA" expcube=/scratch/kocevski/433250/ltcube_508118401_508377601_4FGL_J1516.1+4351_daily_bin1037.fits outfile=/scratch/kocevski/433250/expmap_508118401_508377601_4FGL_J1516.1+4351_daily_bin1037.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/433250/ltcube_508118401_508377601_4FGL_J1516.1+4351_daily_bin1037.fits
.....................!
real 190.68
user 186.36
sys 3.99

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 195 point sources and 0 extended sources

Setting source of interest to:
4FGL J1516.1+4351 @ 229.049 43.8527

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/433250/ft1_filtered_4FGL_J1516.1+4351_daily_bin1037.fits scfile=/scratch/kocevski/433250/ft2_4FGL_J1516.1+4351_daily_bin1037.fits outfile=/scratch/kocevski/433250/cmap_508118401_508377601_4FGL_J1516.1+4351_daily_bin1037.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.049 yref=43.8527 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/433250/ft1_filtered_4FGL_J1516.1+4351_daily_bin1037.fits scfile=/scratch/kocevski/433250/ft2_4FGL_J1516.1+4351_daily_bin1037.fits outfile=/scratch/kocevski/433250/cmap_HighResolution_508118401_508377601_4FGL_J1516.1+4351_daily_bin1037.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.049 yref=43.8527 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/433250/ft1_filtered_4FGL_J1516.1+4351_daily_bin1037.fits evtable="EVENTS" scfile=/scratch/kocevski/433250/ft2_4FGL_J1516.1+4351_daily_bin1037.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/433250/Model_4FGL_J1516.1+4351_daily_bin1037.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/433250/ft1_filtered_4FGL_J1516.1+4351_daily_bin1037.fits....................!
real 53.89
user 52.08
sys 1.29

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/433250/ft1_filtered_4FGL_J1516.1+4351_daily_bin1037.fits', '/scratch/kocevski/433250/ft2_4FGL_J1516.1+4351_daily_bin1037.fits', expMap='/scratch/kocevski/433250/expmap_508118401_508377601_4FGL_J1516.1+4351_daily_bin1037.fits', expCube='/scratch/kocevski/433250/ltcube_508118401_508377601_4FGL_J1516.1+4351_daily_bin1037.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/433250/Model_4FGL_J1516.1+4351_daily_bin1037.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1516.1+4351'

4FGL J1516.1+4351
   Spectrum: PowerLaw
296    Prefactor:  1.184e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
297        Index:  2.463e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
298        Scale:  1.335e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/433250/ft1_filtered_4FGL_J1516.1+4351_daily_bin1037.fits
Spacecraft file(s): /scratch/kocevski/433250/ft2_4FGL_J1516.1+4351_daily_bin1037.fits
Exposure map: /scratch/kocevski/433250/expmap_508118401_508377601_4FGL_J1516.1+4351_daily_bin1037.fits
Exposure cube: /scratch/kocevski/433250/ltcube_508118401_508377601_4FGL_J1516.1+4351_daily_bin1037.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/433250/Model_4FGL_J1516.1+4351_daily_bin1037.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) = 6829.2907705

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.0622       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .19959       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10694E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    37.034       1.0000         .10000E-03   10000.    
     5 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.4866       1.0000         .10000E-03   10000.    
     7 'Prefactor '    22.412       1.0000         .10000E-03   10000.    
     8 'norm      '    11.432       1.0000         .10000E-03   10000.    
     9 'Prefactor '    21.765       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .11177E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .46604       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    5.5651       1.0000         .10000E-03   10000.    
    15 'Prefactor '    9.0093       1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.5661       1.0000         .10000E-03   10000.    
    17 'norm      '    3.2663       1.0000         .10000E-03   10000.    
    18 'norm      '    1.9680       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .15005E-01   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    3.1551       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    29.214       1.0000         .10000E-03   10000.    
    27 'Prefactor '    2.5235       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .12139E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.1782       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.0230       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6270E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6829.283     FROM MIGRAD    STATUS=CONVERGED    822 CALLS     4088 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.0640        3.0385        .65216E-08   -.25176E-04
   2  Prefactor     .49951E-01    17.661       -.22682E-05    .17527E-03
   3  Prefactor     .10000E-03    26.275        .44397E-05** at limit **
   4  Prefactor     37.031        25.990       -.25387E-06   -.19677E-03
   5  norm          .10000E-03    7.2213       -.92498E-07** at limit **
   6  Prefactor     6.4676        120.11       -.21596E-05   -.13071E-04
   7  Prefactor     22.416        31.096       -.28910E-06   -.49657E-04
   8  norm          11.432        7.7272       -.52961E-06   -.12696E-03
   9  Prefactor     21.762        34.273       -.57056E-07   -.14720E-04
  10  Prefactor     .10000E-03    19.202        .36389E-06** at limit **
  11  norm          .10000E-03    3.2374       -.10227E-07** at limit **
  12  Prefactor     .39664        32.179       -.85950E-05    .57920E-03
  13  Prefactor     .10000E-03    6.0557        .41107E-07** at limit **
  14  norm          5.5649        1.9105        .23551E-07   -.64930E-04
  15  Prefactor     9.0140        12.149        .21473E-06    .13707E-03
  16  Prefactor     2.5642        6.2180        .52046E-06    .72773E-04
  17  norm          3.2657        2.7671        .13342E-07    .31165E-03
  18  norm          1.9683        3.2833       -.88452E-06   -.41095E-03
  19  Prefactor     .10028E-03    6.4459        .21539E-05** at limit **
  20  Prefactor     .10000E-03    25.372       -.45765E-05** at limit **
  21  Prefactor     .10000E-03    12.566        .82720E-06** at limit **
  22  Prefactor     3.1748        14.365       -.88561E-06   -.18155E-04
  23  Prefactor     .10000E-03    9.9285        .24830E-07** at limit **
  24  norm          .10000E-03    6.9123        .15925E-06** at limit **
  25  Prefactor     .10000E-03    6.2895        .60321E-07** at limit **
  26  Prefactor     29.205        38.823       -.73456E-06   -.23449E-04
  27  Prefactor     2.4959        5.5191        .31247E-05    .13681E-02
  28  Prefactor     .10000E-03    83.534        .32193E-05** at limit **
  29  Normalizat    1.1786        .19311       -.95738E-06   -.15176E-03
  30  Prefactor     1.0228        .18995       -.24697E-06   -.23694E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.06405
  Prefactor  = 0.0499512
  Prefactor  = 0.000100002
  Prefactor  = 37.0309
  norm       = 0.0001
  Prefactor  = 6.46759
  Prefactor  = 22.4163
  norm       = 11.4323
  Prefactor  = 21.762
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.396636
  Prefactor  = 0.0001
  norm       = 5.56488
  Prefactor  = 9.01401
  Prefactor  = 2.5642
  norm       = 3.26571
  norm       = 1.96829
  Prefactor  = 0.000100279
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 3.17476
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 29.2054
  Prefactor  = 2.49586
  Prefactor  = 0.000100001
  Normalizat = 1.1786
  Prefactor  = 1.02279
 **********
 **   18 **HESSE 
 **********

 FCN=   6829.283     FROM HESSE     STATUS=OK           606 CALLS     4694 TOTAL
                     EDM=   .28E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.0640        3.0480        .13932E-03   -1.5358    
   2  Prefactor     .49951E-01    22.213        .92909E-01   -1.5663    
   3  Prefactor     .10000E-03    26.428        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     37.031        26.094        .65857E-04   -1.4490    
   5  norm          .10000E-03    7.2234        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     6.4676        119.59        .15758E-03   -1.5199    
   7  Prefactor     22.416        31.169        .84609E-04   -1.4761    
   8  norm          11.432        7.7288        .11849E-03   -1.5032    
   9  Prefactor     21.762        34.260        .85856E-04   -1.4775    
  10  Prefactor     .10000E-03    19.411        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    3.2407        .14520E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .39664        153.00        .53306E-02   -1.5582    
  13  Prefactor     .10000E-03    6.0652        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          5.5649        1.9103        .64552E-04   -1.5236    
  15  Prefactor     9.0140        12.164        .13353E-03   -1.5107    
  16  Prefactor     2.5642        6.2178        .25483E-03   -1.5388    
  17  norm          3.2657        2.7570        .96725E-04   -1.5347    
  18  norm          1.9683        3.2688        .17971E-03   -1.5427    
  19  Prefactor     .10028E-03    12.942        .59943E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    25.188        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    12.637        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     3.1748        21.821        .22819E-03   -1.5352    
  23  Prefactor     .10000E-03    9.9411        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    6.9249        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    6.2914        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     29.205        38.825        .74125E-04   -1.4627    
  27  Prefactor     2.4959        5.8199        .12858E-02   -1.5392    
  28  Prefactor     .10000E-03    86.061        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.1786        .24202        .25259E-03   -.87267    
  30  Prefactor     1.0228        .23531        .28100E-03   -.91974    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.75421e-08
Minuit parameter uncertainties:
  1  3.04813
  2  2.1054
  3  0.000402113
  4  26.1023
  5  2.40595e-06
  6  55.7514
  7  31.1918
  8  7.72948
  9  34.2909
  10  0.000148175
  11  6.84622e-06
  12  15.6185
  13  6.2254e-06
  14  1.91031
  15  12.167
  16  6.21936
  17  2.75706
  18  3.26914
  19  0.00380283
  20  0.000298883
  21  1.01318e-05
  22  16.6548
  23  7.26052e-06
  24  1.0904e-05
  25  2.69788e-06
  26  38.8589
  27  5.82123
  28  0.000609385
  29  0.242251
  30  0.235545
Done.

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

Extracting fit parameters...

4FGL J1516.1+4351
   Spectrum: PowerLaw
296    Prefactor:  1.003e-04  3.803e-03  1.000e-04  1.000e+04 ( 1.000e-13)
297        Index:  2.463e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
298        Scale:  1.335e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
624    Prefactor:  1.023e+00  2.355e-01  0.000e+00  1.000e+01 ( 1.000e+00)
625        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
626        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
623   Normalization:  1.179e+00  2.423e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 229.049 43.853
Photon Flux Upper Limit: 8.30e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.44e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/433250/likelihoodResults_508118401_508377601_4FGL_J1516.1+4351_daily_bin1037.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) = 6829.28324332
delta logL = -3.48537550963e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6829.28324331
delta logL = -3.4834143662e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96282E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4629       1.0000          .0000       10.000    
     3 'Normalizat'    1.1786       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0228       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6270E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6829.283     FROM MIGRAD    STATUS=CONVERGED     66 CALLS      244 TOTAL
                     EDM=   .25E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .56819E-01    .90720E-01** at limit **
   2  Index         2.3882        8.7979        .50000        .12172E-05
   3  Normalizat    1.1786        .46584E-03    .57117E-01    .11098E-04
   4  Prefactor     1.0228        .48911E-03    .63534E-01    .14337E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 2.3882
  Normalizat = 1.1786
  Prefactor  = 1.02279
 **********
 **   18 **HESSE 
 **********

 FCN=   6829.283     FROM HESSE     STATUS=NOT POSDEF    43 CALLS      287 TOTAL
                     EDM=   .32E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .11175        .64008E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3882        8.5562        .50000       -.54962    
   3  Normalizat    1.1786        .52585E-03    .25258E-03   -.87267    
   4  Prefactor     1.0228        .55193E-03    .28100E-03   -.91974    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.22759e-11
Minuit parameter uncertainties:
  1  2.14816e-05
  2  19.6704
  3  0.000525854
  4  0.00055193
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/433250': 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) = 6829.28320842
delta logL = 5.31490513822e-08

Extracting fit parameters...

4FGL J1516.1+4351
   Spectrum: PowerLaw
296    Prefactor:  1.000e-04  2.148e-05  1.000e-04  1.000e+04 ( 1.000e-13)
297        Index:  2.388e+00  1.967e+01  0.000e+00  1.000e+01 (-1.000e+00)
298        Scale:  1.335e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
624    Prefactor:  1.023e+00  5.519e-04  0.000e+00  1.000e+01 ( 1.000e+00)
625        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
626        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
623   Normalization:  1.179e+00  5.259e-04  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 229.049 43.853

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/433250/cmap_HighResolution_508118401_508377601_4FGL_J1516.1+4351_daily_bin1037.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.44e-03', job_status='DONE', photon_flux_upper_limit='8.30e-08', time_completed='2021-09-11 22:22:38.967865', job_id='433250', GAL2='1.02', fit_tolerance='1e-08', EG2='1.18', EG='1.18', time_epoch_completed='1631424158.97', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.02', dlogl='5.31e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.46' WHERE bin_id='1037' AND source_name='4FGL J1516.1+4351' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 22:22:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0110>
Subject: Job 433250: <4FGL_J1516.1+4351_daily_bin1037> in cluster <slac> Done

Job <4FGL_J1516.1+4351_daily_bin1037> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sat Sep 11 22:06:24 2021
Job was executed on host(s) <bullet0110>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 11 22:06:25 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep 11 22:06:25 2021
Terminated at Sat Sep 11 22:22:39 2021
Results reported at Sat Sep 11 22:22:39 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1516.1+4351_daily_bin1037 229.049 43.8527 508118401 508377601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1516.1+4351 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   949.21 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             331.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   974 sec.
    Turnaround time :                            975 sec.

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

