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


Performing analysis on: 4FGL_J1516.1+4351_daily_bin89
RA = 229.049, Dec = 43.8527
tmin = 262396801, tmax = 262656001
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='422723', job_status='RUN', time_executed='2021-09-11 21:28:08.128866', time_epoch_executed='1631420888.13' WHERE source_name='4FGL J1516.1+4351' and cadence='daily' and bin_id='89'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/422723

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/422723/ft1_4FGL_J1516.1+4351_daily_bin89.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/422723/ft2_4FGL_J1516.1+4351_daily_bin89.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/422723/ft1_4FGL_J1516.1+4351_daily_bin89.fits outfile=/scratch/kocevski/422723/ft1_filteredMKT_4FGL_J1516.1+4351_daily_bin89.fits ra=229.049 dec=43.8527 rad=12.0 tmin=262396801.0 tmax=262656001.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.46
user 1.20
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/422723/ft1_filtered_4FGL_J1516.1+4351_daily_bin89.fits" evtable="EVENTS" scfile=/scratch/kocevski/422723/ft2_4FGL_J1516.1+4351_daily_bin89.fits sctable="SC_DATA" outfile=/scratch/kocevski/422723/ltcube_262396801_262656001_4FGL_J1516.1+4351_daily_bin89.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/422723/ft2_4FGL_J1516.1+4351_daily_bin89.fits
.....................!
real 13.25
user 12.88
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/422723/ft1_filtered_4FGL_J1516.1+4351_daily_bin89.fits evtable="EVENTS" scfile=/scratch/kocevski/422723/ft2_4FGL_J1516.1+4351_daily_bin89.fits sctable="SC_DATA" expcube=/scratch/kocevski/422723/ltcube_262396801_262656001_4FGL_J1516.1+4351_daily_bin89.fits outfile=/scratch/kocevski/422723/expmap_262396801_262656001_4FGL_J1516.1+4351_daily_bin89.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/422723/ltcube_262396801_262656001_4FGL_J1516.1+4351_daily_bin89.fits
.....................!
real 191.64
user 186.28
sys 4.97

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/422723/ft1_filtered_4FGL_J1516.1+4351_daily_bin89.fits scfile=/scratch/kocevski/422723/ft2_4FGL_J1516.1+4351_daily_bin89.fits outfile=/scratch/kocevski/422723/cmap_262396801_262656001_4FGL_J1516.1+4351_daily_bin89.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/422723/ft1_filtered_4FGL_J1516.1+4351_daily_bin89.fits scfile=/scratch/kocevski/422723/ft2_4FGL_J1516.1+4351_daily_bin89.fits outfile=/scratch/kocevski/422723/cmap_HighResolution_262396801_262656001_4FGL_J1516.1+4351_daily_bin89.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.56
user 0.38
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'Prefactor '    8.7840       1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.7988       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .11417E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .12264E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    7.3846       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    11.751       1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    33.686       1.0000         .10000E-03   10000.    
    14 'norm      '    2.2160       1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.7247       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .11496E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    70.985       1.0000         .10000E-03   10000.    
    21 'Prefactor '    32.703       1.0000         .10000E-03   10000.    
    22 'Prefactor '    13.237       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    28.466       1.0000         .10000E-03   10000.    
    26 'Prefactor '    6.7058       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.2281       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .86854       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=   4889.936     FROM MIGRAD    STATUS=CONVERGED    750 CALLS     3822 TOTAL
                     EDM=   .29E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.8522        .25057E-07** at limit **
   2  Prefactor     8.7805        22.035       -.30067E-05   -.14271E-04
   3  Prefactor     5.7675        20.757       -.98498E-05   -.22152E-04
   4  Prefactor     .10000E-03    34.069       -.21860E-05** at limit **
   5  norm          .10000E-03    8.2389        .60575E-05** at limit **
   6  Prefactor     .10000E-03    61.625        .99783E-05** at limit **
   7  Prefactor     .10000E-03    8.9184       -.22217E-05** at limit **
   8  norm          7.3846        6.3696       -.26603E-06   -.40228E-05
   9  Prefactor     .10000E-03    19.954       -.33433E-06** at limit **
  10  Prefactor     11.728        19.647       -.45182E-05   -.32495E-04
  11  norm          .10000E-03    3.8891        .32211E-06** at limit **
  12  Prefactor     .10000E-03    4.7428        .48621E-06** at limit **
  13  Prefactor     33.687        23.877        .87303E-06    .27222E-04
  14  norm          2.2162        1.8588       -.22201E-06   -.91381E-05
  15  Prefactor     6.7217        6.7438       -.21033E-06   -.13209E-04
  16  Prefactor     .10000E-03    2.4683       -.34319E-07** at limit **
  17  norm          .10000E-03    1.0629        .11364E-06** at limit **
  18  norm          .10000E-03    1.5298       -.34845E-07** at limit **
  19  Prefactor     .10000E-03    4.0700       -.53291E-06** at limit **
  20  Prefactor     70.961        86.826       -.26227E-04    .82609E-05
  21  Prefactor     32.704        24.022       -.69701E-06    .34971E-04
  22  Prefactor     13.239        12.603       -.10654E-05   -.36211E-03
  23  Prefactor     .10000E-03    9.2462       -.51448E-05** at limit **
  24  norm          .10000E-03    6.2578       -.10412E-05** at limit **
  25  Prefactor     28.467        28.180       -.13235E-05    .24653E-04
  26  Prefactor     6.6302        133.25       -.23156E-03    .26286E-04
  27  Prefactor     .10000E-03    2.8342        .24477E-06** at limit **
  28  Prefactor     .10000E-03    11.682        .29515E-05** at limit **
  29  Normalizat    1.2281        .21366        .23866E-05    .17699E-03
  30  Prefactor     .86848        .21624        .75304E-05   -.27653E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 8.78053
  Prefactor  = 5.76746
  Prefactor  = 0.000100005
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.38455
  Prefactor  = 0.0001
  Prefactor  = 11.7278
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 33.6866
  norm       = 2.21621
  Prefactor  = 6.72174
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 70.9613
  Prefactor  = 32.7044
  Prefactor  = 13.2391
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 28.4669
  Prefactor  = 6.63015
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.2281
  Prefactor  = 0.86848
 **********
 **   18 **HESSE 
 **********

 FCN=   4889.936     FROM HESSE     STATUS=OK           580 CALLS     4402 TOTAL
                     EDM=   .69E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.8533        .92933E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     8.7805        22.307        .13524E-03   -1.5115    
   3  Prefactor     5.7675        20.644        .16678E-03   -1.5228    
   4  Prefactor     .10000E-03    34.106        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    8.2423        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    61.703        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    8.9233        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          7.3846        6.3743        .14759E-03   -1.5164    
   9  Prefactor     .10000E-03    19.964        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     11.728        19.621        .11686E-03   -1.5023    
  11  norm          .10000E-03    3.9013        .13468E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    4.7474        .14873E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     33.687        23.861        .69043E-04   -1.4547    
  14  norm          2.2162        1.8588        .83037E-04   -1.5410    
  15  Prefactor     6.7217        6.6465        .15473E-03   -1.5189    
  16  Prefactor     .10000E-03    2.4717        .10728E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    1.9332        .13683E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    1.5379        .84444E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    4.0830        .13771E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     70.961        86.644        .47647E-04   -1.4021    
  21  Prefactor     32.704        24.019        .70070E-04   -1.4564    
  22  Prefactor     13.239        12.619        .55047E-03   -1.4980    
  23  Prefactor     .10000E-03    9.2537        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    6.2638        .17085E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     28.467        28.184        .75090E-04   -1.4640    
  26  Prefactor     6.6302        134.19        .15495E-03   -1.5193    
  27  Prefactor     .10000E-03    2.8474        .11497E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    11.701        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.2281        .26255        .23743E-03   -.85739    
  30  Prefactor     .86848        .26302        .28968E-03   -.97251    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.86367e-10
Minuit parameter uncertainties:
  1  1.93213e-07
  2  22.3283
  3  20.6695
  4  0.000789376
  5  2.15374e-05
  6  2.66731e-05
  7  1.03349e-05
  8  6.37489
  9  1.52332e-05
  10  19.6317
  11  7.33613e-06
  12  6.57131e-06
  13  23.8681
  14  1.85889
  15  6.64721
  16  1.04203e-05
  17  1.63984e-05
  18  6.03237e-06
  19  7.92158e-06
  20  86.7986
  21  24.0263
  22  12.6218
  23  6.39611e-06
  24  7.63479e-06
  25  28.1968
  26  59.8089
  27  3.24033e-05
  28  6.04561e-05
  29  0.262836
  30  0.263403
Done.

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

Extracting fit parameters...

4FGL J1516.1+4351
   Spectrum: PowerLaw
296    Prefactor:  1.000e-04  7.922e-06  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:  8.685e-01  2.634e-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.228e+00  2.628e-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: 7.14e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.54e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/422723/likelihoodResults_262396801_262656001_4FGL_J1516.1+4351_daily_bin89.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) = 4889.93727584
delta logL = -0.00115973659376

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4889.93611598
delta logL = 1.2395412341e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10079E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4415       1.0000          .0000       10.000    
     3 'Normalizat'    1.2281       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86852       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   4889.936     FROM MIGRAD    STATUS=FAILED        91 CALLS      247 TOTAL
                     EDM=   .22E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10182E-03    49.615        .14035E-02** at limit **
   2  Index         2.3745        6.1525        .50000        .39508E-04
   3  Normalizat    1.2281        .17248E-01    .23743E-03   -.10726E-04
   4  Prefactor     .86848        .18115E-01    .28968E-03   -.63970E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   4889.936     FROM SIMPLEX   STATUS=PROGRESS     130 CALLS      377 TOTAL
                     EDM=   .53E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10168E-03    49.615        .26769E-03** at limit **
   2  Index         2.3730        6.1525        .48383E-03    .39508E-04
   3  Normalizat    1.2281        .17248E-01    .35457E-05   -.10726E-04
   4  Prefactor     .86847        .18115E-01    .43431E-05   -.63970E-05
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4889.936     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      431 TOTAL
                     EDM=   .59E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    81.625        .28069E-02** at limit **
   2  Index         1.7853        5.8921        .50000        .22001E-06
   3  Normalizat    1.2281        .19586E-01    .94971E-05   -.89301E-04
   4  Prefactor     .86848        .20570E-01    .11587E-04   -.70250E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.78534
  Normalizat = 1.22809
  Prefactor  = 0.868483
 **********
 **   18 **HESSE 
 **********

 FCN=   4889.936     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      460 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     .10000E-03    366.10        .56139E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.7853        7.2470        .50000       -.69832    
   3  Normalizat    1.2281        .44443E-01    .18994E-05   -.85739    
   4  Prefactor     .86848        .46671E-01    .23174E-05   -.97251    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.67597e-09
Minuit parameter uncertainties:
  1  8.54539e-05
  2  1031.01
  3  0.0444448
  4  0.046673
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/422723': 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) = 4889.93611269
delta logL = 3.41110535373e-06

Extracting fit parameters...

4FGL J1516.1+4351
   Spectrum: PowerLaw
296    Prefactor:  1.000e-04  8.545e-05  1.000e-04  1.000e+04 ( 1.000e-13)
297        Index:  1.785e+00  1.031e+03  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.685e-01  4.667e-02  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.228e+00  4.444e-02  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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/422723/cmap_HighResolution_262396801_262656001_4FGL_J1516.1+4351_daily_bin89.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.54e-03', job_status='DONE', photon_flux_upper_limit='7.14e-08', time_completed='2021-09-11 21:41:04.964609', job_id='422723', GAL2='0.87', fit_tolerance='1e-08', EG2='1.23', EG='1.23', time_epoch_completed='1631421664.96', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.87', dlogl='3.41e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.46' WHERE bin_id='89' AND source_name='4FGL J1516.1+4351' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 21:41:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0299>
Subject: Job 422723: <4FGL_J1516.1+4351_daily_bin89> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1516.1+4351_daily_bin89 229.049 43.8527 262396801 262656001 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 :                                   776.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             302.97 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   903 sec.
    Turnaround time :                            905 sec.

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

