aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/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 32 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 = 7530
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1516.1+4351_daily_bin1674
RA = 229.049, Dec = 43.8527
tmin = 673228801, tmax = 673488001
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='670758', job_status='RUN', time_executed='2022-05-06 02:54:17.612305', time_epoch_executed='1651830857.61' WHERE source_name='4FGL J1516.1+4351' and cadence='daily' and bin_id='1674'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/670758

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/670758/ft1_4FGL_J1516.1+4351_daily_bin1674.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/670758/ft2_4FGL_J1516.1+4351_daily_bin1674.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/670758/ft1_4FGL_J1516.1+4351_daily_bin1674.fits outfile=/scratch/kocevski/670758/ft1_filteredMKT_4FGL_J1516.1+4351_daily_bin1674.fits ra=229.049 dec=43.8527 rad=12.0 tmin=673228801.0 tmax=673488001.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 2.75
user 2.51
sys 0.21

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

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

Number of photons that the gtmktime cut: 978

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/670758/ft1_filtered_4FGL_J1516.1+4351_daily_bin1674.fits evtable="EVENTS" scfile=/scratch/kocevski/670758/ft2_4FGL_J1516.1+4351_daily_bin1674.fits sctable="SC_DATA" expcube=/scratch/kocevski/670758/ltcube_673228801_673488001_4FGL_J1516.1+4351_daily_bin1674.fits outfile=/scratch/kocevski/670758/expmap_673228801_673488001_4FGL_J1516.1+4351_daily_bin1674.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/670758/ltcube_673228801_673488001_4FGL_J1516.1+4351_daily_bin1674.fits
.....................!
real 190.60
user 185.84
sys 4.44

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/670758/ft1_filtered_4FGL_J1516.1+4351_daily_bin1674.fits scfile=/scratch/kocevski/670758/ft2_4FGL_J1516.1+4351_daily_bin1674.fits outfile=/scratch/kocevski/670758/cmap_673228801_673488001_4FGL_J1516.1+4351_daily_bin1674.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.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/670758/ft1_filtered_4FGL_J1516.1+4351_daily_bin1674.fits scfile=/scratch/kocevski/670758/ft2_4FGL_J1516.1+4351_daily_bin1674.fits outfile=/scratch/kocevski/670758/cmap_HighResolution_673228801_673488001_4FGL_J1516.1+4351_daily_bin1674.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/670758/ft1_filtered_4FGL_J1516.1+4351_daily_bin1674.fits evtable="EVENTS" scfile=/scratch/kocevski/670758/ft2_4FGL_J1516.1+4351_daily_bin1674.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/670758/Model_4FGL_J1516.1+4351_daily_bin1674.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/670758/ft1_filtered_4FGL_J1516.1+4351_daily_bin1674.fits.....................!
real 76.03
user 74.69
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10075E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    32.097       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .20705E-02   1.0000         .10000E-03   10000.    
     5 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10125E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    11.593       1.0000         .10000E-03   10000.    
     8 'norm      '    1.1034       1.0000         .10000E-03   10000.    
     9 'Prefactor '    61.074       1.0000         .10000E-03   10000.    
    10 'Prefactor '    8.2513       1.0000         .10000E-03   10000.    
    11 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    9.2998       1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.4227       1.0000         .10000E-03   10000.    
    14 'norm      '    2.9064       1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.0507       1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.1273       1.0000         .10000E-03   10000.    
    17 'norm      '    1.2804       1.0000         .10000E-03   10000.    
    18 'norm      '    1.4433       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    48.881       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    3.8442       1.0000         .10000E-03   10000.    
    23 'Prefactor '    5.3826       1.0000         .10000E-03   10000.    
    24 'norm      '    .10043E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    18.491       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    11.138       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .97354       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.0005       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=   10739.09     FROM MIGRAD    STATUS=CONVERGED    764 CALLS     4523 TOTAL
                     EDM=   .79E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.5203       -.62401E-07** at limit **
   2  Prefactor     .10000E-03    22.831        .10305E-06** at limit **
   3  Prefactor     32.100        18.475       -.16646E-05   -.82651E-03
   4  Prefactor     .10088E-03    13.330        .13766E-05** at limit **
   5  norm          .10000E-03    4.6577       -.91931E-07** at limit **
   6  Prefactor     .10000E-03    19.248       -.96819E-07** at limit **
   7  Prefactor     11.590        19.618        .96378E-06   -.10596E-03
   8  norm          1.1031        3.1131        .49935E-06   -.41429E-03
   9  Prefactor     61.099        37.273       -.28011E-06   -.90086E-04
  10  Prefactor     8.2511        9.2273       -.84853E-08   -.23853E-04
  11  norm          .10000E-03    2.5752        .19749E-07** at limit **
  12  Prefactor     9.2999        12.140        .62388E-06   -.37100E-03
  13  Prefactor     6.4216        9.8743        .18438E-05   -.61390E-03
  14  norm          2.9065        1.3182       -.84281E-07   -.12791E-03
  15  Prefactor     6.0496        7.2349        .10963E-06   -.96973E-04
  16  Prefactor     5.1269        3.9962       -.59294E-06   -.12403E-03
  17  norm          1.2804        1.5066        .11038E-06   -.30007E-03
  18  norm          1.4434        1.9264        .14373E-06   -.13978E-03
  19  Prefactor     .10000E-03    3.5930       -.19702E-08** at limit **
  20  Prefactor     48.874        75.024       -.32179E-05   -.93635E-05
  21  Prefactor     .10000E-03    8.2188        .55909E-08** at limit **
  22  Prefactor     3.8439        7.4345       -.87497E-06   -.89723E-04
  23  Prefactor     5.3846        12.043       -.56084E-06   -.24012E-04
  24  norm          .10000E-03    5.1612        .78290E-07** at limit **
  25  Prefactor     .10000E-03    5.6234        .15569E-08** at limit **
  26  Prefactor     18.487        30.042        .18322E-05    .58313E-05
  27  Prefactor     .10000E-03    2.6146        .50673E-08** at limit **
  28  Prefactor     11.137        15.449        .29415E-07   -.66643E-05
  29  Normalizat    .97360        .13577        .26001E-06   -.26552E-03
  30  Prefactor     1.0005        .13950       -.75428E-07   -.14959E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 32.1001
  Prefactor  = 0.000100879
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.5903
  norm       = 1.10305
  Prefactor  = 61.0994
  Prefactor  = 8.25113
  norm       = 0.0001
  Prefactor  = 9.29994
  Prefactor  = 6.42162
  norm       = 2.90651
  Prefactor  = 6.04963
  Prefactor  = 5.12685
  norm       = 1.28045
  norm       = 1.44336
  Prefactor  = 0.0001
  Prefactor  = 48.8744
  Prefactor  = 0.0001
  Prefactor  = 3.84388
  Prefactor  = 5.38462
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 18.4866
  Prefactor  = 0.0001
  Prefactor  = 11.1374
  Normalizat = 0.973598
  Prefactor  = 1.00045
 **********
 **   18 **HESSE 
 **********

 FCN=   10739.09     FROM HESSE     STATUS=OK           598 CALLS     5121 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.6016        .32124E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    23.601        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     32.100        24.755        .70726E-04   -1.4574    
   4  Prefactor     .10088E-03    24.924        .93802E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    4.6581        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    19.277        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     11.590        19.528        .11766E-03   -1.5027    
   8  norm          1.1031        3.1020        .30174E-03   -1.5498    
   9  Prefactor     61.099        37.267        .51343E-04   -1.4143    
  10  Prefactor     8.2511        9.2350        .13957E-03   -1.5133    
  11  norm          .10000E-03    2.5795        .16238E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     9.2999        12.508        .65709E-03   -1.5098    
  13  Prefactor     6.4216        11.487        .79185E-03   -1.5201    
  14  norm          2.9065        1.3201        .74642E-04   -1.5367    
  15  Prefactor     6.0496        7.1247        .16323E-03   -1.5216    
  16  Prefactor     5.1269        3.9509        .17116E-03   -1.5255    
  17  norm          1.2804        1.4486        .11392E-03   -1.5482    
  18  norm          1.4434        1.8881        .15722E-03   -1.5468    
  19  Prefactor     .10000E-03    3.6210        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     48.874        73.749        .57356E-04   -1.4309    
  21  Prefactor     .10000E-03    8.2554        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     3.8439        7.3605        .20583E-03   -1.5316    
  23  Prefactor     5.3846        12.018        .17321E-03   -1.5244    
  24  norm          .10000E-03    5.1721        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    5.6298        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     18.487        29.866        .93142E-04   -1.4848    
  27  Prefactor     .10000E-03    2.6546        .16293E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     11.137        15.427        .12004E-03   -1.5040    
  29  Normalizat    .97360        .16140        .24027E-03   -.93920    
  30  Prefactor     1.0005        .16541        .25375E-03   -.92714    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.18421e-09
Minuit parameter uncertainties:
  1  2.23276e-06
  2  3.2426e-05
  3  24.7627
  4  0.00936496
  5  1.00429e-05
  6  9.8389e-06
  7  19.5388
  8  3.10244
  9  37.281
  10  9.23656
  11  1.86632e-06
  12  12.5113
  13  11.4912
  14  1.32014
  15  7.12566
  16  3.9511
  17  1.44863
  18  1.88816
  19  1.14044e-05
  20  73.8875
  21  1.55828e-05
  22  7.36221
  23  12.0229
  24  1.02415e-05
  25  4.91588e-07
  26  29.8904
  27  4.03483e-06
  28  15.433
  29  0.161476
  30  0.165496
Done.

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

Extracting fit parameters...

4FGL J1516.1+4351
   Spectrum: PowerLaw
296    Prefactor:  1.000e-04  1.140e-05  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.000e+00  1.655e-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:  9.736e-01  1.615e-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: 4.46e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.46e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/670758/likelihoodResults_673228801_673488001_4FGL_J1516.1+4351_daily_bin1674.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) = 10739.0928247
delta logL = -0.00131671788586

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 10739.0915093
delta logL = -1.29078034661e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10073E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4486       1.0000          .0000       10.000    
     3 'Normalizat'    .97346       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0005       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=   10739.09     FROM MIGRAD    STATUS=FAILED        88 CALLS      237 TOTAL
                     EDM=   .30E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10126E-03    45.641        .18142E-02** at limit **
   2  Index         2.3782        5.6252        .50000        .26389E-04
   3  Normalizat    .97360        .11001E-01    .24027E-03   -.19305E-04
   4  Prefactor     1.0005        .11821E-01    .25375E-03   -.13889E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   10739.09     FROM SIMPLEX   STATUS=UNCHANGED    132 CALLS      369 TOTAL
                     EDM=   .15E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10126E-03    45.641        .37027E-03** at limit **
   2  Index         2.3782        5.6252        .36287E-03    .26389E-04
   3  Normalizat    .97360        .11001E-01    .31274E-05   -.19305E-04
   4  Prefactor     1.0005        .11821E-01    .30471E-05   -.13889E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   10739.09     FROM MIGRAD    STATUS=CONVERGED     45 CALLS      414 TOTAL
                     EDM=   .81E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    35.345        .36285E-02** at limit **
   2  Index         2.0961        5.7339        .50000        .55070E-07
   3  Normalizat    .97360        .93308E-02    .96108E-05    .20535E-03
   4  Prefactor     1.0005        .10027E-01    .10150E-04    .20520E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.09611
  Normalizat = 0.973599
  Prefactor  = 1.00045
 **********
 **   18 **HESSE 
 **********

 FCN=   10739.09     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      443 TOTAL
                     EDM=   .52E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    222.75        .72569E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0961        8.8896        .50000       -.61968    
   3  Normalizat    .97360        .24850E-01    .19222E-05   -.93920    
   4  Prefactor     1.0005        .26693E-01    .20300E-05   -.92714    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.24779e-11
Minuit parameter uncertainties:
  1  0.00014872
  2  859.707
  3  0.0248508
  4  0.0266937
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/670758': 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) = 10739.0915066
delta logL = 1.45259764395e-06

Extracting fit parameters...

4FGL J1516.1+4351
   Spectrum: PowerLaw
296    Prefactor:  1.000e-04  1.487e-04  1.000e-04  1.000e+04 ( 1.000e-13)
297        Index:  2.096e+00  8.597e+02  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.000e+00  2.669e-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:  9.736e-01  2.485e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/670758/cmap_HighResolution_673228801_673488001_4FGL_J1516.1+4351_daily_bin1674.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.46e-03', job_status='DONE', photon_flux_upper_limit='4.46e-08', time_completed='2022-05-06 03:17:54.283977', job_id='670758', GAL2='1.00', fit_tolerance='1e-08', EG2='0.97', EG='0.97', time_epoch_completed='1651832274.28', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.00', dlogl='1.45e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.46' WHERE bin_id='1674' AND source_name='4FGL J1516.1+4351' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri May  6 03:17:54 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0202>
Subject: Job 670705: <4FGL_J1516.1+4351_daily_bin1674> in cluster <slac> Done

Job <4FGL_J1516.1+4351_daily_bin1674> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri May  6 00:07:52 2022
Job was executed on host(s) <bullet0202>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri May  6 02:53:12 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri May  6 02:53:12 2022
Terminated at Fri May  6 03:17:46 2022
Results reported at Fri May  6 03:17:46 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1516.1+4351_daily_bin1674 229.049 43.8527 673228801 673488001 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 :                                   1421.38 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             337.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   1474 sec.
    Turnaround time :                            11394 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0209>
Subject: Job 670758: <4FGL_J1516.1+4351_daily_bin1674> in cluster <slac> Done

Job <4FGL_J1516.1+4351_daily_bin1674> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Fri May  6 00:07:55 2022
Job was executed on host(s) <bullet0209>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri May  6 02:53:37 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri May  6 02:53:37 2022
Terminated at Fri May  6 03:17:55 2022
Results reported at Fri May  6 03:17:55 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1516.1+4351_daily_bin1674 229.049 43.8527 673228801 673488001 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 :                                   1417.25 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             320.78 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   1457 sec.
    Turnaround time :                            11400 sec.

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

