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


Performing analysis on: 4FGL_J1516.1+4351_daily_bin73
RA = 229.049, Dec = 43.8527
tmin = 258249601, tmax = 258508801
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='422704', job_status='RUN', time_executed='2021-09-11 21:29:18.432896', time_epoch_executed='1631420958.43' WHERE source_name='4FGL J1516.1+4351' and cadence='daily' and bin_id='73'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/422704

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

Retrieving the FT1 file...

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

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

Retrieving 33 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/422704/ft1_4FGL_J1516.1+4351_daily_bin73.fits


Retrieving the FT1 file...

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

Retrieving 33 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/422704/ft2_4FGL_J1516.1+4351_daily_bin73.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/422704/ft1_4FGL_J1516.1+4351_daily_bin73.fits outfile=/scratch/kocevski/422704/ft1_filteredMKT_4FGL_J1516.1+4351_daily_bin73.fits ra=229.049 dec=43.8527 rad=12.0 tmin=258249601.0 tmax=258508801.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 1.14
user 0.99
sys 0.14

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/422704/ft2_4FGL_J1516.1+4351_daily_bin73.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/422704/ft1_filteredMKT_4FGL_J1516.1+4351_daily_bin73.fits evtable="EVENTS" outfile="/scratch/kocevski/422704/ft1_filtered_4FGL_J1516.1+4351_daily_bin73.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.14

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/422704/ft1_filtered_4FGL_J1516.1+4351_daily_bin73.fits evtable="EVENTS" scfile=/scratch/kocevski/422704/ft2_4FGL_J1516.1+4351_daily_bin73.fits sctable="SC_DATA" expcube=/scratch/kocevski/422704/ltcube_258249601_258508801_4FGL_J1516.1+4351_daily_bin73.fits outfile=/scratch/kocevski/422704/expmap_258249601_258508801_4FGL_J1516.1+4351_daily_bin73.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/422704/ltcube_258249601_258508801_4FGL_J1516.1+4351_daily_bin73.fits
.....................!
real 191.49
user 186.12
sys 4.19

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/422704/ft1_filtered_4FGL_J1516.1+4351_daily_bin73.fits scfile=/scratch/kocevski/422704/ft2_4FGL_J1516.1+4351_daily_bin73.fits outfile=/scratch/kocevski/422704/cmap_258249601_258508801_4FGL_J1516.1+4351_daily_bin73.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.53
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/422704/ft1_filtered_4FGL_J1516.1+4351_daily_bin73.fits scfile=/scratch/kocevski/422704/ft2_4FGL_J1516.1+4351_daily_bin73.fits outfile=/scratch/kocevski/422704/cmap_HighResolution_258249601_258508801_4FGL_J1516.1+4351_daily_bin73.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.37
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/422704/ft1_filtered_4FGL_J1516.1+4351_daily_bin73.fits evtable="EVENTS" scfile=/scratch/kocevski/422704/ft2_4FGL_J1516.1+4351_daily_bin73.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/422704/Model_4FGL_J1516.1+4351_daily_bin73.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/422704/ft1_filtered_4FGL_J1516.1+4351_daily_bin73.fits.....................!
real 34.11
user 32.77
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/422704/ft1_filtered_4FGL_J1516.1+4351_daily_bin73.fits', '/scratch/kocevski/422704/ft2_4FGL_J1516.1+4351_daily_bin73.fits', expMap='/scratch/kocevski/422704/expmap_258249601_258508801_4FGL_J1516.1+4351_daily_bin73.fits', expCube='/scratch/kocevski/422704/ltcube_258249601_258508801_4FGL_J1516.1+4351_daily_bin73.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/422704/Model_4FGL_J1516.1+4351_daily_bin73.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/422704/ft1_filtered_4FGL_J1516.1+4351_daily_bin73.fits
Spacecraft file(s): /scratch/kocevski/422704/ft2_4FGL_J1516.1+4351_daily_bin73.fits
Exposure map: /scratch/kocevski/422704/expmap_258249601_258508801_4FGL_J1516.1+4351_daily_bin73.fits
Exposure cube: /scratch/kocevski/422704/ltcube_258249601_258508801_4FGL_J1516.1+4351_daily_bin73.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/422704/Model_4FGL_J1516.1+4351_daily_bin73.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) = 3577.2444411

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13718E-02   1.0000         .10000E-03   10000.    
     2 'Prefactor '    16.185       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .20266E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .12505E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .12283E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    141.02       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .11390E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    4.7767       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .86952E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10633E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10128E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    25.717       1.0000         .10000E-03   10000.    
    13 'Prefactor '    27.037       1.0000         .10000E-03   10000.    
    14 'norm      '    .10036E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    27.100       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10773E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10319E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10467E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    17.116       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    1.3877       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10227E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .11321E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    5.8214       1.0000         .10000E-03   10000.    
    28 'Prefactor '    5.0484       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.0219       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .78058       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3577.202     FROM MIGRAD    STATUS=CONVERGED   1353 CALLS     4539 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10005E-03    48.560        .40064E-02** at limit **
   2  Prefactor     16.198        39.050        .99554E-04    .92214E-04
   3  Prefactor     .10000E-03    67.102        .18142E-02** at limit **
   4  Prefactor     .10000E-03    50.761        .18142E-02** at limit **
   5  norm          .10000E-03    13.115        .18142E-02** at limit **
   6  Prefactor     140.95        123.91        .16962E-03    .82180E-04
   7  Prefactor     .10000E-03    29.859        .18142E-02** at limit **
   8  norm          4.7837        8.3381        .92043E-03    .50487E-04
   9  Prefactor     .10003E-03    70.475        .14445    ** at limit **
  10  Prefactor     .10001E-03    71.710        .18142E-02** at limit **
  11  norm          .10000E-03    5.0899        .13176E-02** at limit **
  12  Prefactor     25.715        20.893        .78993E-04   -.25474E-04
  13  Prefactor     27.075        24.817        .77045E-04    .29915E-03
  14  norm          .10000E-03    4.0016        .15768E-02** at limit **
  15  Prefactor     27.102        14.403        .76956E-04   -.15519E-03
  16  Prefactor     .10000E-03    2.4659        .91676E-03** at limit **
  17  norm          .10000E-03    7.9423        .13755E-02** at limit **
  18  norm          .10000E-03    1.6608        .75090E-03** at limit **
  19  Prefactor     .10000E-03    16.143        .36285E-03** at limit **
  20  Prefactor     .10000E-03    42.110        .18142E-02** at limit **
  21  Prefactor     .10000E-03    18.045        .18142E-02** at limit **
  22  Prefactor     17.110        19.687        .96808E-04    .36745E-03
  23  Prefactor     .10000E-03    18.893        .18142E-02** at limit **
  24  norm          1.3966        33.511        .18453E-02    .31558E-04
  25  Prefactor     .10000E-03    46.353        .18142E-02** at limit **
  26  Prefactor     .10000E-03    19.211        .18142E-02** at limit **
  27  Prefactor     5.8130        7.4272        .15176E-03    .15862E-03
  28  Prefactor     5.0267        51.228        .17896E-03   -.25442E-04
  29  Normalizat    1.0222        .28947        .22992E-03    .27657E-03
  30  Prefactor     .78016        .27213        .27036E-03    .18450E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100045
  Prefactor  = 16.1984
  Prefactor  = 0.000100003
  Prefactor  = 0.000100002
  norm       = 0.0001
  Prefactor  = 140.946
  Prefactor  = 0.0001
  norm       = 4.78369
  Prefactor  = 0.000100026
  Prefactor  = 0.000100013
  norm       = 0.0001
  Prefactor  = 25.7154
  Prefactor  = 27.075
  norm       = 0.0001
  Prefactor  = 27.1025
  Prefactor  = 0.0001
  norm       = 0.000100002
  norm       = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.1096
  Prefactor  = 0.0001
  norm       = 1.39656
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.81297
  Prefactor  = 5.02671
  Normalizat = 1.02224
  Prefactor  = 0.780159
 **********
 **   18 **HESSE 
 **********

 FCN=   3577.202     FROM HESSE     STATUS=OK           570 CALLS     5109 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10005E-03    48.909        .80128E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     16.198        38.998        .39821E-05   -1.4903    
   3  Prefactor     .10000E-03    67.141        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    50.791        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    13.115        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     140.95        123.89        .33923E-04   -1.3328    
   7  Prefactor     .10000E-03    29.866        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          4.7837        8.3344        .36817E-04   -1.5271    
   9  Prefactor     .10003E-03    69.682        .14563       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10001E-03    71.726        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    5.0899        .26353E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     25.715        20.892        .31597E-05   -1.4693    
  13  Prefactor     27.075        24.809        .15409E-04   -1.4667    
  14  norm          .10000E-03    4.0188        .31537E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     27.102        14.390        .30782E-05   -1.4666    
  16  Prefactor     .10000E-03    2.4659        .18335E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    7.9705        .27510E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    1.6609        .15018E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    16.144        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    42.110        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    18.046        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     17.110        19.687        .38723E-05   -1.4880    
  23  Prefactor     .10000E-03    18.893        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          1.3966        33.451        .73814E-04   -1.5472    
  25  Prefactor     .10000E-03    46.368        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    19.211        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     5.8130        7.4240        .60705E-05   -1.5226    
  28  Prefactor     5.0267        51.171        .71584E-05   -1.5260    
  29  Normalizat    1.0222        .28969        .45984E-04   -.92289    
  30  Prefactor     .78016        .27236        .10814E-04   -1.0046    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.17482e-09
Minuit parameter uncertainties:
  1  0.00298048
  2  39.0591
  3  0.000824987
  4  0.000632422
  5  2.3179e-05
  6  124.115
  7  0.000181482
  8  8.33642
  9  0.0027133
  10  0.00193725
  11  4.18589e-07
  12  20.8979
  13  24.8187
  14  3.61124e-05
  15  14.3918
  16  1.13369e-05
  17  0.00025135
  18  1.16454e-05
  19  0.000324507
  20  2.66972e-06
  21  8.24628e-05
  22  19.6943
  23  5.2208e-06
  24  13.6779
  25  2.60824e-05
  26  1.55953e-05
  27  7.42518
  28  32.1115
  29  0.290142
  30  0.272826
Done.

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

Extracting fit parameters...

4FGL J1516.1+4351
   Spectrum: PowerLaw
296    Prefactor:  1.000e-04  3.245e-04  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:  7.802e-01  2.728e-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.022e+00  2.901e-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: 9.95e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.72e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/422704/likelihoodResults_258249601_258508801_4FGL_J1516.1+4351_daily_bin73.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) = 3577.2026877
delta logL = -0.000295607396311

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3577.20239287
delta logL = -7.75441549195e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11130E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5397       1.0000          .0000       10.000    
     3 'Normalizat'    1.0218       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .78059       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=   3575.934     FROM MIGRAD    STATUS=CONVERGED    139 CALLS      300 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .87235E-02    .19511        .90712E-03    .33390E-03
   2  Index         6.1151        3.2433        .72837E-01    .64313E-04
   3  Normalizat    .85939        .24914        .43094E-01   -.23524E-03
   4  Prefactor     .88860        .21205        .43464E-01   -.19232E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00872348
  Index      = 6.11513
  Normalizat = 0.859388
  Prefactor  = 0.888597
 **********
 **   18 **HESSE 
 **********

 FCN=   3575.934     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      329 TOTAL
                     EDM=   .38E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .87235E-02    .19253        .36609E-05   -1.5727    
   2  Index         6.1151        3.4767        .29563E-02    .22492    
   3  Normalizat    .85939        .23507        .24754E-03   -.97902    
   4  Prefactor     .88860        .23902        .25478E-03   -.96541    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.75098e-10
Minuit parameter uncertainties:
  1  0.0814937
  2  3.87101
  3  0.235345
  4  0.239306
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/422704': 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) = 3575.93387105
delta logL = 1.26852104125

Extracting fit parameters...

4FGL J1516.1+4351
   Spectrum: PowerLaw
296    Prefactor:  8.723e-03  8.149e-02  1.000e-04  1.000e+04 ( 1.000e-13)
297        Index:  6.115e+00  3.871e+00  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:  8.886e-01  2.393e-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:  8.594e-01  2.353e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.95
Ra Dec: 229.049 43.853
Photon Index (Free Index): 6.12 +/- 3.87
Photon Flux (Free Index): 1.32e-07 +/- 2.43e-06
Energy Flux (Free Index): 1.63e-05 +/- 2.98e-04

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/422704/cmap_HighResolution_258249601_258508801_4FGL_J1516.1+4351_daily_bin73.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.72e-03', comment='SUCCESS', energy_flux2='1.63e-05', dlogl='1.27e+00', photon_flux2='1.32e-07', job_status='DONE', time_completed='2021-09-11 21:40:26.306359', photon_index_error2='3.87', photon_index2='6.12', ts='-0.00', fit_tolerance='1e-08', GAL='0.78', photon_index_error='0.00', photon_flux_upper_limit='9.95e-08', energy_flux_error2='2.98e-04', EG='1.02', time_epoch_completed='1631421626.31', return_code='0', job_id='422704', GAL2='0.89', EG2='0.86', return_code2='102', photon_flux_error2='2.43e-06', ts2='2.95', photon_index='2.46' WHERE bin_id='73' AND source_name='4FGL J1516.1+4351' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 21:40:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0206>
Subject: Job 422704: <4FGL_J1516.1+4351_daily_bin73> in cluster <slac> Done

Job <4FGL_J1516.1+4351_daily_bin73> was submitted from host <rhel6-64c> by user <kocevski> in cluster <slac> at Sat Sep 11 21:25:58 2021
Job was executed on host(s) <bullet0206>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 11 21: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 21:26:01 2021
Terminated at Sat Sep 11 21:40:26 2021
Results reported at Sat Sep 11 21:40:26 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1516.1+4351_daily_bin73 229.049 43.8527 258249601 258508801 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 :                                   667.44 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             270.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   865 sec.
    Turnaround time :                            868 sec.

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

