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


Performing analysis on: 4FGL_J2251.5-4928_daily_bin1733
RA = 342.879, Dec = -49.4691
tmin = 688521601, tmax = 688780801
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='708606', job_status='RUN', time_executed='2022-10-30 00:36:51.809747', time_epoch_executed='1667115411.81' WHERE source_name='4FGL J2251.5-4928' and cadence='daily' and bin_id='1733'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/708606

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/708606/ft1_4FGL_J2251.5-4928_daily_bin1733.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/708606/ft2_4FGL_J2251.5-4928_daily_bin1733.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/708606/ft1_4FGL_J2251.5-4928_daily_bin1733.fits outfile=/scratch/kocevski/708606/ft1_filteredMKT_4FGL_J2251.5-4928_daily_bin1733.fits ra=342.879 dec=-49.4691 rad=12.0 tmin=688521601.0 tmax=688780801.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.52
user 3.31
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/708606/ft2_4FGL_J2251.5-4928_daily_bin1733.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/708606/ft2_4FGL_J2251.5-4928_daily_bin1733.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/708606/ft1_filteredMKT_4FGL_J2251.5-4928_daily_bin1733.fits evtable="EVENTS" outfile="/scratch/kocevski/708606/ft1_filtered_4FGL_J2251.5-4928_daily_bin1733.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.34
sys 0.14

Number of photons that the gtmktime cut: 558

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/708606/ft1_filtered_4FGL_J2251.5-4928_daily_bin1733.fits" evtable="EVENTS" scfile=/scratch/kocevski/708606/ft2_4FGL_J2251.5-4928_daily_bin1733.fits sctable="SC_DATA" outfile=/scratch/kocevski/708606/ltcube_688521601_688780801_4FGL_J2251.5-4928_daily_bin1733.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/708606/ft2_4FGL_J2251.5-4928_daily_bin1733.fits
.....................!
real 11.92
user 11.50
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/708606/ft1_filtered_4FGL_J2251.5-4928_daily_bin1733.fits evtable="EVENTS" scfile=/scratch/kocevski/708606/ft2_4FGL_J2251.5-4928_daily_bin1733.fits sctable="SC_DATA" expcube=/scratch/kocevski/708606/ltcube_688521601_688780801_4FGL_J2251.5-4928_daily_bin1733.fits outfile=/scratch/kocevski/708606/expmap_688521601_688780801_4FGL_J2251.5-4928_daily_bin1733.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/708606/ltcube_688521601_688780801_4FGL_J2251.5-4928_daily_bin1733.fits
.....................!
real 190.24
user 185.63
sys 4.25

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

Setting source of interest to:
4FGL J2251.5-4928 @ 342.879 -49.4691

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/708606/ft1_filtered_4FGL_J2251.5-4928_daily_bin1733.fits scfile=/scratch/kocevski/708606/ft2_4FGL_J2251.5-4928_daily_bin1733.fits outfile=/scratch/kocevski/708606/cmap_688521601_688780801_4FGL_J2251.5-4928_daily_bin1733.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=342.879 yref=-49.4691 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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/708606/ft1_filtered_4FGL_J2251.5-4928_daily_bin1733.fits scfile=/scratch/kocevski/708606/ft2_4FGL_J2251.5-4928_daily_bin1733.fits outfile=/scratch/kocevski/708606/cmap_HighResolution_688521601_688780801_4FGL_J2251.5-4928_daily_bin1733.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=342.879 yref=-49.4691 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.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/708606/ft1_filtered_4FGL_J2251.5-4928_daily_bin1733.fits evtable="EVENTS" scfile=/scratch/kocevski/708606/ft2_4FGL_J2251.5-4928_daily_bin1733.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/708606/Model_4FGL_J2251.5-4928_daily_bin1733.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/708606/ft1_filtered_4FGL_J2251.5-4928_daily_bin1733.fits.....................!
real 44.73
user 43.41
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/708606/ft1_filtered_4FGL_J2251.5-4928_daily_bin1733.fits', '/scratch/kocevski/708606/ft2_4FGL_J2251.5-4928_daily_bin1733.fits', expMap='/scratch/kocevski/708606/expmap_688521601_688780801_4FGL_J2251.5-4928_daily_bin1733.fits', expCube='/scratch/kocevski/708606/ltcube_688521601_688780801_4FGL_J2251.5-4928_daily_bin1733.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/708606/Model_4FGL_J2251.5-4928_daily_bin1733.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2251.5-4928'

4FGL J2251.5-4928
   Spectrum: PowerLaw
403    Prefactor:  7.449e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-14)
404        Index:  1.851e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
405        Scale:  2.716e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/708606/ft1_filtered_4FGL_J2251.5-4928_daily_bin1733.fits
Spacecraft file(s): /scratch/kocevski/708606/ft2_4FGL_J2251.5-4928_daily_bin1733.fits
Exposure map: /scratch/kocevski/708606/expmap_688521601_688780801_4FGL_J2251.5-4928_daily_bin1733.fits
Exposure cube: /scratch/kocevski/708606/ltcube_688521601_688780801_4FGL_J2251.5-4928_daily_bin1733.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/708606/Model_4FGL_J2251.5-4928_daily_bin1733.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) = 5969.05834431

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    47.618       1.0000          .0000       .10000E+07
     2 'Prefactor '    3.4962       1.0000          .0000       .10000E+07
     3 'Prefactor '    11.190       1.0000          .0000       .10000E+07
     4 'Prefactor '    22.406       1.0000          .0000       .10000E+07
     5 'norm      '    .10397E-03   1.0000          .0000       .10000E+07
     6 'Prefactor '    .54103E-01   1.0000          .0000       .10000E+07
     7 'Prefactor '    25.877       1.0000          .0000       .10000E+07
     8 'Prefactor '    .54135       1.0000          .0000       .10000E+07
     9 'Prefactor '    .58215E-05   1.0000          .0000       .10000E+07
    10 'Prefactor '    .87693E-01   1.0000          .0000       .10000E+07
    11 'Prefactor '    .16192E-04   1.0000          .0000       .10000E+07
    12 'Prefactor '    10.124       1.0000          .0000       .10000E+07
    13 'Prefactor '    24.704       1.0000          .0000       .10000E+07
    14 'norm      '    .89521E-05   1.0000          .0000       .10000E+07
    15 'norm      '    7.5449       1.0000          .0000       .10000E+07
    16 'norm      '    .11257E-03   1.0000          .0000       .10000E+07
    17 'Prefactor '    .29539E-04   1.0000          .0000       .10000E+07
    18 'Prefactor '    .23945E-04   1.0000          .0000       .10000E+07
    19 'norm      '    .60500E-04   1.0000          .0000       .10000E+07
    20 'Prefactor '    18.602       1.0000          .0000       .10000E+07
    21 'norm      '    2.4856       1.0000          .0000       .10000E+07
    22 'norm      '    .28899E-03   1.0000          .0000       .10000E+07
    23 'Prefactor '    .17931E-03   1.0000          .0000       .10000E+07
    24 'Prefactor '    1.7696       1.0000          .0000       .10000E+07
    25 'Prefactor '    .11337E-02   1.0000          .0000       .10000E+07
    26 'norm      '    .11355E-01   1.0000          .0000       .10000E+07
    27 'Prefactor '    .42157E-04   1.0000          .0000       .10000E+07
    28 'Prefactor '    .53173E-05   1.0000          .0000       .10000E+07
    29 'Normalizat'    .94457       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .90738       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5920E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5969.025     FROM MIGRAD    STATUS=CONVERGED    234 CALLS     2861 TOTAL
                     EDM=   .87E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     48.586        13.651        .81054E-06   -.33781E-01
   2  Prefactor     2.9202        6.6917       -.65568E-06    .13812E-02
   3  Prefactor     11.181        4.9679        .14876E-07    .41756E-02
   4  Prefactor     31.034        96.255        .46087E-05   -.97161E-03
   5  norm           .0000        2.2391        .69888E-07** at limit **
   6  Prefactor     .66686E-01    25.328       -.18079E-07** at limit **
   7  Prefactor     24.115        33.006       -.22586E-05    .44947E-01
   8  Prefactor     .51550        7.8225        .90559E-06    .89540E-02
   9  Prefactor     .21871E-07    12.542        .56860E-06** at limit **
  10  Prefactor     .63338E-07    35.366       -.17913E-05** at limit **
  11  Prefactor     .55511E-10    2.7133       -.77723E-07** at limit **
  12  Prefactor     11.087        20.004       -.42011E-06    .78748E-01
  13  Prefactor     24.545        5.7068        .42602E-06    .69101E-02
  14  norm          .33307E-09    2.8237        .87183E-07** at limit **
  15  norm          7.5473        5.3576       -.13267E-07   -.23811E-03
  16  norm           .0000        1.2683        .44018E-07** at limit **
  17  Prefactor     .80563E-06    9.5949       -.19936E-05** at limit **
  18  Prefactor     .16098E-07    17.807       -.28353E-06** at limit **
  19  norm           .0000        1.1707       -.13768E-07** at limit **
  20  Prefactor     18.528        14.459       -.57041E-06   -.47531E-01
  21  norm          2.4913        1.2797        .46286E-07   -.17082E-02
  22  norm           .0000        1.7962        .52827E-07** at limit **
  23  Prefactor     .19429E-08    5.3338       -.11677E-07** at limit **
  24  Prefactor     1.7742        2.6045       -.74245E-09   -.61884E-03
  25  Prefactor     .61062E-09    4.7703        .26269E-06** at limit **
  26  norm          .24392E-06    9.4931        .13744E-05** at limit **
  27  Prefactor     .22204E-09    2.6783        .21649E-06** at limit **
  28  Prefactor      .0000        .99376       -.42883E-07** at limit **
  29  Normalizat    .94513        .20133       -.63472E-06    .49390E-04
  30  Prefactor     .90661        .19332       -.17638E-06    .61793E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 48.5863
  Prefactor  = 2.92017
  Prefactor  = 11.1813
  Prefactor  = 31.0337
  norm       = 0
  Prefactor  = 0.0666859
  Prefactor  = 24.1154
  Prefactor  = 0.515504
  Prefactor  = 2.18714e-08
  Prefactor  = 6.33382e-08
  Prefactor  = 5.55112e-11
  Prefactor  = 11.0874
  Prefactor  = 24.5454
  norm       = 3.33067e-10
  norm       = 7.54728
  norm       = 0
  Prefactor  = 8.05633e-07
  Prefactor  = 1.60982e-08
  norm       = 0
  Prefactor  = 18.5281
  norm       = 2.49127
  norm       = 0
  Prefactor  = 1.94289e-09
  Prefactor  = 1.77424
  Prefactor  = 6.10623e-10
  norm       = 2.43916e-07
  Prefactor  = 2.22045e-10
  Prefactor  = 0
  Normalizat = 0.945128
  Prefactor  = 0.906614
 **********
 **   18 **HESSE 
 **********

 FCN=   5969.025     FROM HESSE     STATUS=OK           650 CALLS     3511 TOTAL
                     EDM=   .13E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     48.586        40.148        .14493E-03   -1.5569    
   2  Prefactor     2.9202        10.363        .54049E-03   -1.5674    
   3  Prefactor     11.181        5.0932        .29924E-03   -1.5641    
   4  Prefactor     31.034        98.628        .21132E-03   -1.5597    
   5  norm           .0000        2.2367        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .66686E-01    1.5489        .60020E-02   -1.5703    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     24.115        38.031        .19662E-03   -1.5610    
   8  Prefactor     .51550        10.152        .74654E-03   -1.5694    
   9  Prefactor     .21871E-07    12.726        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .63338E-07    34.501        .14272E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .55511E-10    2.7236        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     11.087        43.312        .31467E-03   -1.5641    
  13  Prefactor     24.545        17.419        .20124E-03   -1.5609    
  14  norm          .33307E-09    2.8374        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          7.5473        5.3553        .36487E-03   -1.5653    
  16  norm           .0000        1.2683        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .80563E-06    10.855        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .16098E-07    17.814        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm           .0000        1.1705        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     18.528        14.617        .23194E-03   -1.5622    
  21  norm          2.4913        1.3211        .64812E-03   -1.5676    
  22  norm           .0000        1.7916        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .19429E-08    5.3300        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     1.7742        2.6346        .78694E-03   -1.5681    
  25  Prefactor     .61062E-09    4.7748        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .24392E-06    9.7849        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .22204E-09    2.6806        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor      .0000        .99291        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .94513        .17320        .45469E-01   -.94892    
  30  Prefactor     .90661        .16439        .45099E-01   -.95910    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.30758e-06
Minuit parameter uncertainties:
  1  40.1486
  2  10.363
  3  5.09325
  4  98.6333
  5  1.05999e-05
  6  0.642776
  7  38.0314
  8  4.57539
  9  0.00105505
  10  0.00295601
  11  2.70874e-05
  12  43.3131
  13  17.4187
  14  6.35691e-05
  15  5.35533
  16  1.91645e-06
  17  0.00591464
  18  0.00107052
  19  3.61594e-06
  20  14.6171
  21  1.32111
  22  7.14993e-06
  23  0.000204179
  24  2.63458
  25  0.000108898
  26  0.00308986
  27  4.63237e-05
  28  6.53306e-07
  29  0.173305
  30  0.164485
Done.

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

Extracting fit parameters...

4FGL J2251.5-4928
   Spectrum: PowerLaw
403    Prefactor:  1.109e+01  4.331e+01  0.000e+00  1.000e+06 ( 1.000e-14)
404        Index:  1.851e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
405        Scale:  2.716e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
589    Prefactor:  9.066e-01  1.645e-01  0.000e+00  1.000e+01 ( 1.000e+00)
590        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
591        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
588   Normalization:  9.451e-01  1.733e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.07
Ra Dec: 342.879 -49.469
Photon Flux Upper Limit: 6.29e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.66e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/708606/likelihoodResults_688521601_688780801_4FGL_J2251.5-4928_daily_bin1733.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) = 5966.29388489
delta logL = 2.73149368315

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5966.27929562
delta logL = 2.74608295198

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5966.279     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      249 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .49878        3.4137        .58087E-03    .26074E-02
   2  Index         4.0618        1.5686        .55861E-01    .19257E-03
   3  Normalizat    .80056        .52434E-01    .43620E-01    .42003E-03
   4  Prefactor     .99336        .51706E-01    .46183E-01   -.88436E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.498778
  Index      = 4.06176
  Normalizat = 0.800563
  Prefactor  = 0.993356
 **********
 **   18 **HESSE 
 **********

 FCN=   5966.279     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      282 TOTAL
                     EDM=   .23E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .49878        5.9252        .26042E-05   -1.5694    
   2  Index         4.0618        2.2445        .22889E-02   -.18877    
   3  Normalizat    .80056        .17923        .12597E-02   -1.0005    
   4  Prefactor     .99336        .17583        .22749E-03   -.92951    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.3442e-07
Minuit parameter uncertainties:
  1  3.43824
  2  2.33106
  3  0.17936
  4  0.175935
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/708606': 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) = 5966.2792951
delta logL = 2.74608347473

Extracting fit parameters...

4FGL J2251.5-4928
   Spectrum: PowerLaw
403    Prefactor:  4.988e-01  3.438e+00  0.000e+00  1.000e+06 ( 1.000e-14)
404        Index:  4.062e+00  2.331e+00  0.000e+00  1.000e+01 (-1.000e+00)
405        Scale:  2.716e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
589    Prefactor:  9.934e-01  1.759e-01  0.000e+00  1.000e+01 ( 1.000e+00)
590        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
591        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
588   Normalization:  8.006e-01  1.794e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.99
Ra Dec: 342.879 -49.469
Photon Index (Free Index): 4.06 +/- 2.33
Photon Flux (Free Index): 1.09e-07 +/- 5.46e-08
Energy Flux (Free Index): 1.62e-05 +/- 9.47e-06

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/708606/cmap_HighResolution_688521601_688780801_4FGL_J2251.5-4928_daily_bin1733.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.66e-03', comment='SUCCESS', energy_flux2='1.62e-05', dlogl='2.75e+00', photon_flux2='1.09e-07', job_status='DONE', time_completed='2022-10-30 00:48:40.397456', photon_index_error2='2.33', photon_index2='4.06', ts='0.07', fit_tolerance='1e-08', GAL='0.91', photon_index_error='0.00', photon_flux_upper_limit='6.29e-08', energy_flux_error2='9.47e-06', EG='0.95', time_epoch_completed='1667116120.4', return_code='0', job_id='708606', GAL2='0.99', EG2='0.80', return_code2='102', photon_flux_error2='5.46e-08', ts2='5.99', photon_index='1.85' WHERE bin_id='1733' AND source_name='4FGL J2251.5-4928' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Oct 30 00:48:40 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0262>
Subject: Job 708606: <4FGL_J2251.5-4928_daily_bin1733> in cluster <slac> Done

Job <4FGL_J2251.5-4928_daily_bin1733> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sun Oct 30 00:35:39 2022
Job was executed on host(s) <bullet0262>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Oct 30 00:35:40 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Oct 30 00:35:40 2022
Terminated at Sun Oct 30 00:48:41 2022
Results reported at Sun Oct 30 00:48:41 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2251.5-4928_daily_bin1733 342.879 -49.4691 688521601 688780801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2251.5-4928 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   710.57 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             316.41 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   780 sec.
    Turnaround time :                            782 sec.

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

