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


Performing analysis on: 4FGL_J2159.8-4751_daily_bin1702
RA = 329.962, Dec = -47.8518
tmin = 680486401, tmax = 680745601
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='257697', job_status='RUN', time_executed='2022-07-29 01:34:00.445990', time_epoch_executed='1659083640.45' WHERE source_name='4FGL J2159.8-4751' and cadence='daily' and bin_id='1702'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/257697

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/257697/ft1_4FGL_J2159.8-4751_daily_bin1702.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/257697/ft2_4FGL_J2159.8-4751_daily_bin1702.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/257697/ft1_4FGL_J2159.8-4751_daily_bin1702.fits outfile=/scratch/kocevski/257697/ft1_filteredMKT_4FGL_J2159.8-4751_daily_bin1702.fits ra=329.962 dec=-47.8518 rad=12.0 tmin=680486401.0 tmax=680745601.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.03
user 2.73
sys 0.23

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/257697/ft2_4FGL_J2159.8-4751_daily_bin1702.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/257697/ft2_4FGL_J2159.8-4751_daily_bin1702.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/257697/ft1_filteredMKT_4FGL_J2159.8-4751_daily_bin1702.fits evtable="EVENTS" outfile="/scratch/kocevski/257697/ft1_filtered_4FGL_J2159.8-4751_daily_bin1702.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.53
user 0.34
sys 0.15

Number of photons that the gtmktime cut: 15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/257697/ft1_filtered_4FGL_J2159.8-4751_daily_bin1702.fits" evtable="EVENTS" scfile=/scratch/kocevski/257697/ft2_4FGL_J2159.8-4751_daily_bin1702.fits sctable="SC_DATA" outfile=/scratch/kocevski/257697/ltcube_680486401_680745601_4FGL_J2159.8-4751_daily_bin1702.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/257697/ft2_4FGL_J2159.8-4751_daily_bin1702.fits
.....................!
real 14.76
user 14.35
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/257697/ft1_filtered_4FGL_J2159.8-4751_daily_bin1702.fits evtable="EVENTS" scfile=/scratch/kocevski/257697/ft2_4FGL_J2159.8-4751_daily_bin1702.fits sctable="SC_DATA" expcube=/scratch/kocevski/257697/ltcube_680486401_680745601_4FGL_J2159.8-4751_daily_bin1702.fits outfile=/scratch/kocevski/257697/expmap_680486401_680745601_4FGL_J2159.8-4751_daily_bin1702.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/257697/ltcube_680486401_680745601_4FGL_J2159.8-4751_daily_bin1702.fits
.....................!
real 191.58
user 186.77
sys 4.18

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

Setting source of interest to:
4FGL J2159.8-4751 @ 329.962 -47.8518

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/257697/ft1_filtered_4FGL_J2159.8-4751_daily_bin1702.fits scfile=/scratch/kocevski/257697/ft2_4FGL_J2159.8-4751_daily_bin1702.fits outfile=/scratch/kocevski/257697/cmap_680486401_680745601_4FGL_J2159.8-4751_daily_bin1702.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=329.962 yref=-47.8518 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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/257697/ft1_filtered_4FGL_J2159.8-4751_daily_bin1702.fits scfile=/scratch/kocevski/257697/ft2_4FGL_J2159.8-4751_daily_bin1702.fits outfile=/scratch/kocevski/257697/cmap_HighResolution_680486401_680745601_4FGL_J2159.8-4751_daily_bin1702.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=329.962 yref=-47.8518 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.55
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/257697/ft1_filtered_4FGL_J2159.8-4751_daily_bin1702.fits evtable="EVENTS" scfile=/scratch/kocevski/257697/ft2_4FGL_J2159.8-4751_daily_bin1702.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/257697/Model_4FGL_J2159.8-4751_daily_bin1702.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/257697/ft1_filtered_4FGL_J2159.8-4751_daily_bin1702.fits...............!
real 14.85
user 13.51
sys 1.28

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/257697/ft1_filtered_4FGL_J2159.8-4751_daily_bin1702.fits', '/scratch/kocevski/257697/ft2_4FGL_J2159.8-4751_daily_bin1702.fits', expMap='/scratch/kocevski/257697/expmap_680486401_680745601_4FGL_J2159.8-4751_daily_bin1702.fits', expCube='/scratch/kocevski/257697/ltcube_680486401_680745601_4FGL_J2159.8-4751_daily_bin1702.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/257697/Model_4FGL_J2159.8-4751_daily_bin1702.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2159.8-4751'

4FGL J2159.8-4751
   Spectrum: PowerLaw
311    Prefactor:  6.682e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
312        Index:  2.524e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
313        Scale:  7.450e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/257697/ft1_filtered_4FGL_J2159.8-4751_daily_bin1702.fits
Spacecraft file(s): /scratch/kocevski/257697/ft2_4FGL_J2159.8-4751_daily_bin1702.fits
Exposure map: /scratch/kocevski/257697/expmap_680486401_680745601_4FGL_J2159.8-4751_daily_bin1702.fits
Exposure cube: /scratch/kocevski/257697/ltcube_680486401_680745601_4FGL_J2159.8-4751_daily_bin1702.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/257697/Model_4FGL_J2159.8-4751_daily_bin1702.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) = 184.878879972

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    10000.       1.0000         .10000E-03   10000.    
     5 'Prefactor '    9999.9       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10382E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    10000.       1.0000         .10000E-03   10000.    
     8 'norm      '    .10536E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10893E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .33666E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    2263.9       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    135.09       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    217.80       1.0000         .10000E-03   10000.    
    23 'Prefactor '    2.5516       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    26 'Prefactor '    .34167       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5850E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   184.6930     FROM MIGRAD    STATUS=CONVERGED    575 CALLS     3764 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    273.21        .74393E-04** at limit **
   2  norm          .10000E-03    202.80       -.11485E-03** at limit **
   3  Prefactor     .10000E-03    6818.8       -.13723E-02** at limit **
   4  Prefactor    10000.0        7649.9        .15723E-02** at limit **
   5  Prefactor    10000.0        9968.9        .45517E-02** at limit **
   6  Prefactor     .10000E-03    9716.6       -.18036E-02** at limit **
   7  Prefactor    10000.0        1604.7        .72667E-03** at limit **
   8  norm          .10000E-03    1129.4       -.37717E-03** at limit **
   9  Prefactor     .10000E-03    484.42        .25499E-03** at limit **
  10  Prefactor     .10000E-03    395.28        .25741E-03** at limit **
  11  Prefactor     .10000E-03    1145.3       -.39092E-03** at limit **
  12  Prefactor     .10001E-03    429.95        .27410E-04** at limit **
  13  Prefactor     .10000E-03    210.40       -.97236E-04** at limit **
  14  Prefactor     2263.0        2848.7       -.21870E-03    .21125E-05
  15  norm          .10000E-03    47.388       -.20827E-06** at limit **
  16  Prefactor     .10000E-03    9.8153        .76442E-07** at limit **
  17  Prefactor     .10000E-03    117.07        .54624E-04** at limit **
  18  Prefactor     .10000E-03    13.659        .33240E-07** at limit **
  19  Prefactor     135.08        129.75       -.70945E-05   -.32697E-04
  20  Prefactor     .10000E-03    70.599        .25084E-04** at limit **
  21  Prefactor     .10001E-03    83.924        .64156E-05** at limit **
  22  Prefactor     217.73        348.95       -.45039E-04    .36517E-06
  23  Prefactor     2.5507        54.108        .12746E-05   -.50282E-04
  24  Prefactor     .10000E-03    76.214       -.41283E-04** at limit **
  25  Normalizat    .10000E-01    .40477        .31295E-05** at limit **
  26  Prefactor     .34144        .27173        .10839E-04   -.17074E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10000
  Prefactor  = 10000
  Prefactor  = 0.0001
  Prefactor  = 10000
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100009
  Prefactor  = 0.000100001
  Prefactor  = 2262.96
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 135.077
  Prefactor  = 0.000100001
  Prefactor  = 0.000100012
  Prefactor  = 217.728
  Prefactor  = 2.55074
  Prefactor  = 0.0001
  Normalizat = 0.01
  Prefactor  = 0.341435
 **********
 **   18 **HESSE 
 **********

 FCN=   184.6930     FROM HESSE     STATUS=OK           436 CALLS     4200 TOTAL
                     EDM=   .29E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    273.21        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    202.80        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    6818.8        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor    10000.0        7649.8        .18142E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor    10000.0        9968.9        .18630E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    9716.7        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor    10000.0        1604.6        .18142E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    1129.4        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    484.42        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    395.28        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    1145.3        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10001E-03    430.14        .21340E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    210.44        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     2263.0        2847.8        .47791E-04   -.57926    
  15  norm          .10000E-03    47.389        .91556E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    9.8165        .41632E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    117.07        .14406E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    13.664        .49126E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     135.08        127.25        .17325E-03   -1.3378    
  20  Prefactor     .10000E-03    70.625        .11179E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10001E-03    84.174        .12177E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     217.73        349.08        .13702E-03   -1.2746    
  23  Prefactor     2.5507        51.165        .15369E-03   -1.5389    
  24  Prefactor     .10000E-03    76.217        .11615E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .10000E-01    .42606        .50364E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .34144        .26174        .17045E-03   -1.1991    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.89702e-10
Minuit parameter uncertainties:
  1  1.18972e-06
  2  3.96224e-07
  3  7.65547e-06
  4  0.000685907
  5  0.000778618
  6  0.00559224
  7  0.000844219
  8  0.000230489
  9  1.28403e-05
  10  1.45808e-05
  11  0.00142984
  12  0.00397835
  13  0.00070189
  14  3132.2
  15  7.30611e-05
  16  1.28093e-05
  17  4.44863e-05
  18  5.07642e-05
  19  127.51
  20  0.00040926
  21  0.00203667
  22  352.502
  23  22.87
  24  0.000177225
  25  7.14425e-06
  26  0.262658
Done.

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

Extracting fit parameters...

4FGL J2159.8-4751
   Spectrum: PowerLaw
311    Prefactor:  1.000e-04  1.430e-03  1.000e-04  1.000e+04 ( 1.000e-13)
312        Index:  2.524e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
313        Scale:  7.450e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
582    Prefactor:  3.414e-01  2.627e-01  0.000e+00  1.000e+01 ( 1.000e+00)
583        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
584        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
581   Normalization:  1.000e-02  7.144e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 329.962 -47.852
Photon Flux Upper Limit: 5.90e-06 ph cm-2 s-1
Energy Flux Upper Limit: 4.59e-01 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/257697/likelihoodResults_680486401_680745601_4FGL_J2159.8-4751_daily_bin1702.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) = 184.69296401
delta logL = -4.08296529031e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 184.692963923
delta logL = -3.99581392685e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96254E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5237       1.0000          .0000       10.000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .34144       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5850E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   184.6930     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      237 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10012E-03    728.18        .18145E-01** at limit **
   2  Index         3.0751        6.4693        .50000        .45496E-06
   3  Normalizat    .10000E-01    .98743E-03    .50365E-02** at limit **
   4  Prefactor     .34144        .11129E-01    .17045E-03    .20343E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100123
  Index      = 3.07511
  Normalizat = 0.01
  Prefactor  = 0.341436
 **********
 **   18 **HESSE 
 **********

 FCN=   184.6930     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      266 TOTAL
                     EDM=   .69E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10012E-03    6722.5        .33984E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.0751        8.4006        .50000       -.39518    
   3  Normalizat    .10000E-01    .52564E-02    .10073E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .34144        .25674E-01    .68181E-05   -1.1991    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.90067e-08
Minuit parameter uncertainties:
  1  0.0440081
  2  3005.33
  3  2.13223e-07
  4  0.0256754
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/257697': 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) = 184.692959962
delta logL = -3.46034880749e-08

Extracting fit parameters...

4FGL J2159.8-4751
   Spectrum: PowerLaw
311    Prefactor:  1.001e-04  4.401e-02  1.000e-04  1.000e+04 ( 1.000e-13)
312        Index:  3.075e+00  3.005e+03  0.000e+00  1.000e+01 (-1.000e+00)
313        Scale:  7.450e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
582    Prefactor:  3.414e-01  2.568e-02  0.000e+00  1.000e+01 ( 1.000e+00)
583        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
584        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
581   Normalization:  1.000e-02  2.132e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 329.962 -47.852

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/257697/cmap_HighResolution_680486401_680745601_4FGL_J2159.8-4751_daily_bin1702.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.59e-01', job_status='DONE', photon_flux_upper_limit='5.90e-06', time_completed='2022-07-29 01:39:38.953909', job_id='257697', GAL2='0.34', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1659083978.95', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.34', dlogl='-3.46e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.52' WHERE bin_id='1702' AND source_name='4FGL J2159.8-4751' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Jul 29 01:39:38 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0233>
Subject: Job 257697: <4FGL_J2159.8-4751_daily_bin1702> in cluster <slac> Done

Job <4FGL_J2159.8-4751_daily_bin1702> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Jul 29 01:30:34 2022
Job was executed on host(s) <bullet0233>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Jul 29 01:33:08 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Jul 29 01:33:08 2022
Terminated at Fri Jul 29 01:39:39 2022
Results reported at Fri Jul 29 01:39:39 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2159.8-4751_daily_bin1702 329.962 -47.8518 680486401 680745601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2159.8-4751 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   337.19 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             453.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   391 sec.
    Turnaround time :                            545 sec.

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

