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 90 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 make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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 = 7724
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1516.8+3651_daily_bin1753
RA = 229.222, Dec = 36.8505
tmin = 693705601, tmax = 693964801
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='457648', job_status='RUN', time_executed='2022-12-29 01:09:31.378297', time_epoch_executed='1672304971.38' WHERE source_name='4FGL J1516.8+3651' and cadence='daily' and bin_id='1753'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/457648

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/457648/ft1_4FGL_J1516.8+3651_daily_bin1753.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/457648/ft2_4FGL_J1516.8+3651_daily_bin1753.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/457648/ft1_4FGL_J1516.8+3651_daily_bin1753.fits outfile=/scratch/kocevski/457648/ft1_filteredMKT_4FGL_J1516.8+3651_daily_bin1753.fits ra=229.222 dec=36.8505 rad=12.0 tmin=693705601.0 tmax=693964801.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 3.78
user 3.56
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/457648/ft2_4FGL_J1516.8+3651_daily_bin1753.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/457648/ft2_4FGL_J1516.8+3651_daily_bin1753.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/457648/ft1_filteredMKT_4FGL_J1516.8+3651_daily_bin1753.fits evtable="EVENTS" outfile="/scratch/kocevski/457648/ft1_filtered_4FGL_J1516.8+3651_daily_bin1753.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.44
user 0.29
sys 0.14

Number of photons that the gtmktime cut: 610

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/457648/ft1_filtered_4FGL_J1516.8+3651_daily_bin1753.fits" evtable="EVENTS" scfile=/scratch/kocevski/457648/ft2_4FGL_J1516.8+3651_daily_bin1753.fits sctable="SC_DATA" outfile=/scratch/kocevski/457648/ltcube_693705601_693964801_4FGL_J1516.8+3651_daily_bin1753.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/457648/ft2_4FGL_J1516.8+3651_daily_bin1753.fits
.....................!
real 12.12
user 11.80
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/457648/ft1_filtered_4FGL_J1516.8+3651_daily_bin1753.fits evtable="EVENTS" scfile=/scratch/kocevski/457648/ft2_4FGL_J1516.8+3651_daily_bin1753.fits sctable="SC_DATA" expcube=/scratch/kocevski/457648/ltcube_693705601_693964801_4FGL_J1516.8+3651_daily_bin1753.fits outfile=/scratch/kocevski/457648/expmap_693705601_693964801_4FGL_J1516.8+3651_daily_bin1753.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/457648/ltcube_693705601_693964801_4FGL_J1516.8+3651_daily_bin1753.fits
.....................!
real 155.40
user 151.37
sys 3.76

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

Setting source of interest to:
4FGL J1516.8+3651 @ 229.222 36.8505

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/457648/ft1_filtered_4FGL_J1516.8+3651_daily_bin1753.fits scfile=/scratch/kocevski/457648/ft2_4FGL_J1516.8+3651_daily_bin1753.fits outfile=/scratch/kocevski/457648/cmap_693705601_693964801_4FGL_J1516.8+3651_daily_bin1753.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.222 yref=36.8505 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.31
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/457648/ft1_filtered_4FGL_J1516.8+3651_daily_bin1753.fits scfile=/scratch/kocevski/457648/ft2_4FGL_J1516.8+3651_daily_bin1753.fits outfile=/scratch/kocevski/457648/cmap_HighResolution_693705601_693964801_4FGL_J1516.8+3651_daily_bin1753.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.222 yref=36.8505 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.50
user 0.33
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/457648/ft1_filtered_4FGL_J1516.8+3651_daily_bin1753.fits evtable="EVENTS" scfile=/scratch/kocevski/457648/ft2_4FGL_J1516.8+3651_daily_bin1753.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/457648/Model_4FGL_J1516.8+3651_daily_bin1753.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/457648/ft1_filtered_4FGL_J1516.8+3651_daily_bin1753.fits.....................!
real 41.64
user 40.45
sys 1.06

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/457648/ft1_filtered_4FGL_J1516.8+3651_daily_bin1753.fits', '/scratch/kocevski/457648/ft2_4FGL_J1516.8+3651_daily_bin1753.fits', expMap='/scratch/kocevski/457648/expmap_693705601_693964801_4FGL_J1516.8+3651_daily_bin1753.fits', expCube='/scratch/kocevski/457648/ltcube_693705601_693964801_4FGL_J1516.8+3651_daily_bin1753.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/457648/Model_4FGL_J1516.8+3651_daily_bin1753.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1516.8+3651'

4FGL J1516.8+3651
   Spectrum: PowerLaw
279    Prefactor:  6.183e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-14)
280        Index:  2.190e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
281        Scale:  1.677e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/457648/ft1_filtered_4FGL_J1516.8+3651_daily_bin1753.fits
Spacecraft file(s): /scratch/kocevski/457648/ft2_4FGL_J1516.8+3651_daily_bin1753.fits
Exposure map: /scratch/kocevski/457648/expmap_693705601_693964801_4FGL_J1516.8+3651_daily_bin1753.fits
Exposure cube: /scratch/kocevski/457648/ltcube_693705601_693964801_4FGL_J1516.8+3651_daily_bin1753.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/457648/Model_4FGL_J1516.8+3651_daily_bin1753.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) = 6523.27813397

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .30555E-04   1.0000          .0000       .10000E+07
     2 'Prefactor '    .50161E-03   1.0000          .0000       .10000E+07
     3 'Prefactor '    .14476E-04   1.0000          .0000       .10000E+07
     4 'norm      '    .95549E-03   1.0000          .0000       .10000E+07
     5 'norm      '    4.8476       1.0000          .0000       .10000E+07
     6 'Prefactor '    106.42       1.0000          .0000       .10000E+07
     7 'norm      '    .78456E-03   1.0000          .0000       .10000E+07
     8 'Prefactor '    .39857E-07   1.0000          .0000       .10000E+07
     9 'Prefactor '    .80445E-04   1.0000          .0000       .10000E+07
    10 'Prefactor '    3.2264       1.0000          .0000       .10000E+07
    11 'norm      '    .42027E-06   1.0000          .0000       .10000E+07
    12 'norm      '    .37721E-04   1.0000          .0000       .10000E+07
    13 'Prefactor '    5.0674       1.0000          .0000       .10000E+07
    14 'Prefactor '    .69943E-01   1.0000          .0000       .10000E+07
    15 'Prefactor '    .12538E-04   1.0000          .0000       .10000E+07
    16 'Prefactor '    .22028E-03   1.0000          .0000       .10000E+07
    17 'norm      '    .56410       1.0000          .0000       .10000E+07
    18 'Prefactor '    .46472E-03   1.0000          .0000       .10000E+07
    19 'Prefactor '    .93236E-02   1.0000          .0000       .10000E+07
    20 'norm      '    .68506E-03   1.0000          .0000       .10000E+07
    21 'Prefactor '    .10891E-06   1.0000          .0000       .10000E+07
    22 'Prefactor '    1.5141       1.0000          .0000       .10000E+07
    23 'Prefactor '    .10048E-07   1.0000          .0000       .10000E+07
    24 'Normalizat'    1.2438       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .95048       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5940E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6523.211     FROM MIGRAD    STATUS=CONVERGED    183 CALLS     2168 TOTAL
                     EDM=   .11E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .35527E-07    4.4166       -.64561E-06** at limit **
   2  Prefactor     .79936E-08    6.4850        .37587E-06** at limit **
   3  Prefactor     .40079E-07    5.4880       -.39422E-06** at limit **
   4  norm          .54512E-07    4.9938        .72378E-06** at limit **
   5  norm          4.8653        8.2178       -.88848E-07   -.61778E-05
   6  Prefactor     108.27        42.357        .55540E-07    .15046E-01
   7  norm          .31586E-07    6.2271       -.17582E-06** at limit **
   8  Prefactor     .47129E-07    5.8977       -.15865E-06** at limit **
   9  Prefactor      .0000        3.3770       -.13384E-06** at limit **
  10  Prefactor     3.1961        5.3491       -.10034E-06    .16375E-03
  11  norm           .0000        .73119       -.12067E-07** at limit **
  12  norm           .0000        2.1768       -.22334E-06** at limit **
  13  Prefactor     5.0815        8.1349       -.82743E-06   -.76094E-03
  14  Prefactor     .72074E-04    180.37       -.15880E-05** at limit **
  15  Prefactor     .16431E-07    4.7881        .27239E-06** at limit **
  16  Prefactor     .12268E-07    91.471        .26391E-05** at limit **
  17  norm          .56366        .62655       -.12277E-07   -.91113E-03
  18  Prefactor      .0000        2.7252       -.21519E-07** at limit **
  19  Prefactor      .0000        15.302       -.61701E-06** at limit **
  20  norm           .0000        4.1121       -.31411E-06** at limit **
  21  Prefactor      .0000        1.2832        .94623E-07** at limit **
  22  Prefactor     1.5306        1.2523       -.20733E-07   -.17712E-03
  23  Prefactor      .0000        .83953       -.14549E-06** at limit **
  24  Normalizat    1.2422        .21017        .30363E-05    .21279E-04
  25  Prefactor     .95117        .19614        .77476E-07    .23749E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.55271e-08
  Prefactor  = 7.99361e-09
  Prefactor  = 4.00791e-08
  norm       = 5.4512e-08
  norm       = 4.86525
  Prefactor  = 108.274
  norm       = 3.15858e-08
  Prefactor  = 4.7129e-08
  Prefactor  = 0
  Prefactor  = 3.19613
  norm       = 0
  norm       = 0
  Prefactor  = 5.08154
  Prefactor  = 7.2074e-05
  Prefactor  = 1.64313e-08
  Prefactor  = 1.2268e-08
  norm       = 0.563657
  Prefactor  = 0
  Prefactor  = 0
  norm       = 0
  Prefactor  = 0
  Prefactor  = 1.53055
  Prefactor  = 0
  Normalizat = 1.24223
  Prefactor  = 0.951174
 **********
 **   18 **HESSE 
 **********

 FCN=   6523.211     FROM HESSE     STATUS=OK           475 CALLS     2643 TOTAL
                     EDM=   .40E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .35527E-07    5.6649        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .79936E-08    6.8128        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .40079E-07    10.833        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .54512E-07    7.8976        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          4.8653        8.1731        .45665E-03   -1.5664    
   6  Prefactor     108.27        44.893        .96941E-04   -1.5500    
   7  norm          .31586E-07    8.5308        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .47129E-07    10.997        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor      .0000        3.3809        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     3.1961        5.3654        .56371E-03   -1.5672    
  11  norm           .0000        .72512        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm           .0000        2.1683        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     5.0815        8.2104        .44643E-03   -1.5663    
  14  Prefactor     .72074E-04    37.198        .18507E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .16431E-07    5.3872        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .12268E-07    90.495        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .56366        .63185        .72507E-03   -1.5693    
  18  Prefactor      .0000        2.7268        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor      .0000        15.308        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm           .0000        4.1226        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor      .0000        1.2758        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     1.5306        25.125        .86857E-03   -1.5683    
  23  Prefactor      .0000        .84120        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.2422        .17644        .52162E-01   -.85308    
  25  Prefactor     .95117        .16518        .45645E-01   -.94375    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.9998e-07
Minuit parameter uncertainties:
  1  0.000897394
  2  0.000467515
  3  0.00131799
  4  0.00131245
  5  8.17314
  6  44.8936
  7  0.00103809
  8  0.00144027
  9  1.22939e-05
  10  5.36537
  11  1.44235e-06
  12  3.65625e-06
  13  8.21042
  14  0.103557
  15  0.000595546
  16  0.00210798
  17  0.631847
  18  1.45402e-05
  19  3.77449e-05
  20  1.7194e-05
  21  2.02651e-06
  22  12.4024
  23  8.07063e-07
  24  0.176524
  25  0.165271
Done.

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

Extracting fit parameters...

4FGL J1516.8+3651
   Spectrum: PowerLaw
279    Prefactor:  7.207e-05  1.036e-01  0.000e+00  1.000e+06 ( 1.000e-14)
280        Index:  2.190e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
281        Scale:  1.677e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
591    Prefactor:  9.512e-01  1.653e-01  0.000e+00  1.000e+01 ( 1.000e+00)
592        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
593        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
590   Normalization:  1.242e+00  1.765e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 229.222 36.850
Photon Flux Upper Limit: 5.38e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.09e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/457648/likelihoodResults_693705601_693964801_4FGL_J1516.8+3651_daily_bin1753.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): 0
logL (Free Index) = 6523.21119303
delta logL = -0.000577278673518

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6523.21061951
delta logL = -3.75493891625e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .54730E-05   1.0000          .0000       .10000E+07
     2 'Index     '    2.2087       1.0000          .0000       10.000    
     3 'Normalizat'    1.2421       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95100       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5940E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6523.211     FROM MIGRAD    STATUS=CONVERGED     39 CALLS      246 TOTAL
                     EDM=   .68E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10547E-08    1376.9       -.11444E-04** at limit **
   2  Index         2.0748        5.6387       -.47159E-04   -.78567E-11
   3  Normalizat    1.2422        .19789        .53228E-05    .30411E-05
   4  Prefactor     .95117        .19402       -.14381E-04   -.72311E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.05471e-09
  Index      = 2.07485
  Normalizat = 1.24223
  Prefactor  = 0.951174
 **********
 **   18 **HESSE 
 **********

 FCN=   6523.211     FROM HESSE     STATUS=NOT POSDEF    37 CALLS      283 TOTAL
                     EDM=   .39E-12    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10547E-08    2.7398        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0748        5.7969        .50000       -.62492    
   3  Normalizat    1.2422        .19539E-03    .52162E-01   -.85308    
   4  Prefactor     .95117        .19141E-03    .45652E-01   -.94375    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.93136e-13
Minuit parameter uncertainties:
  1  0.000108491
  2  2702.78
  3  0.000195386
  4  0.000191411
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/457648': 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) = 6523.21061573
delta logL = 2.42098394665e-08

Extracting fit parameters...

4FGL J1516.8+3651
   Spectrum: PowerLaw
279    Prefactor:  1.055e-09  1.085e-04  0.000e+00  1.000e+06 ( 1.000e-14)
280        Index:  2.075e+00  2.703e+03  0.000e+00  1.000e+01 (-1.000e+00)
281        Scale:  1.677e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
591    Prefactor:  9.512e-01  1.914e-04  0.000e+00  1.000e+01 ( 1.000e+00)
592        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
593        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
590   Normalization:  1.242e+00  1.954e-04  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 229.222 36.850

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/457648/cmap_HighResolution_693705601_693964801_4FGL_J1516.8+3651_daily_bin1753.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.09e-03', job_status='DONE', photon_flux_upper_limit='5.38e-08', time_completed='2022-12-29 01:18:42.293541', job_id='457648', GAL2='0.95', fit_tolerance='1e-08', EG2='1.24', EG='1.24', time_epoch_completed='1672305522.29', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.95', dlogl='2.42e-08', ts2='0.00', photon_index_error='0.00', photon_index='2.19' WHERE bin_id='1753' AND source_name='4FGL J1516.8+3651' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Dec 29 01:18:42 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0086>
Subject: Job 457648: <4FGL_J1516.8+3651_daily_bin1753> in cluster <slac> Done

Job <4FGL_J1516.8+3651_daily_bin1753> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Thu Dec 29 01:05:20 2022
Job was executed on host(s) <bullet0086>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Dec 29 01:07:53 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Dec 29 01:07:53 2022
Terminated at Thu Dec 29 01:18:43 2022
Results reported at Thu Dec 29 01:18:43 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1516.8+3651_daily_bin1753 229.222 36.8505 693705601 693964801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1516.8+3651 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   552.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             294.18 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   649 sec.
    Turnaround time :                            803 sec.

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

