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


Performing analysis on: 4FGL_J2159.8-4751_daily_bin1681
RA = 329.962, Dec = -47.8518
tmin = 675043201, tmax = 675302401
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='755882', job_status='RUN', time_executed='2022-05-27 00:57:36.201777', time_epoch_executed='1653638256.2' WHERE source_name='4FGL J2159.8-4751' and cadence='daily' and bin_id='1681'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/755882

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/755882/ft1_4FGL_J2159.8-4751_daily_bin1681.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/755882/ft2_4FGL_J2159.8-4751_daily_bin1681.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/755882/ft1_4FGL_J2159.8-4751_daily_bin1681.fits outfile=/scratch/kocevski/755882/ft1_filteredMKT_4FGL_J2159.8-4751_daily_bin1681.fits ra=329.962 dec=-47.8518 rad=12.0 tmin=675043201.0 tmax=675302401.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.55
user 3.30
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/755882/ft2_4FGL_J2159.8-4751_daily_bin1681.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/755882/ft1_filteredMKT_4FGL_J2159.8-4751_daily_bin1681.fits evtable="EVENTS" outfile="/scratch/kocevski/755882/ft1_filtered_4FGL_J2159.8-4751_daily_bin1681.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.52
user 0.33
sys 0.16

Number of photons that the gtmktime cut: 619

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/755882/ft1_filtered_4FGL_J2159.8-4751_daily_bin1681.fits" evtable="EVENTS" scfile=/scratch/kocevski/755882/ft2_4FGL_J2159.8-4751_daily_bin1681.fits sctable="SC_DATA" outfile=/scratch/kocevski/755882/ltcube_675043201_675302401_4FGL_J2159.8-4751_daily_bin1681.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/755882/ft2_4FGL_J2159.8-4751_daily_bin1681.fits
.....................!
real 14.14
user 13.78
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/755882/ft1_filtered_4FGL_J2159.8-4751_daily_bin1681.fits evtable="EVENTS" scfile=/scratch/kocevski/755882/ft2_4FGL_J2159.8-4751_daily_bin1681.fits sctable="SC_DATA" expcube=/scratch/kocevski/755882/ltcube_675043201_675302401_4FGL_J2159.8-4751_daily_bin1681.fits outfile=/scratch/kocevski/755882/expmap_675043201_675302401_4FGL_J2159.8-4751_daily_bin1681.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/755882/ltcube_675043201_675302401_4FGL_J2159.8-4751_daily_bin1681.fits
.....................!
real 191.76
user 185.72
sys 5.66

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/755882/ft1_filtered_4FGL_J2159.8-4751_daily_bin1681.fits scfile=/scratch/kocevski/755882/ft2_4FGL_J2159.8-4751_daily_bin1681.fits outfile=/scratch/kocevski/755882/cmap_675043201_675302401_4FGL_J2159.8-4751_daily_bin1681.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/755882/ft1_filtered_4FGL_J2159.8-4751_daily_bin1681.fits scfile=/scratch/kocevski/755882/ft2_4FGL_J2159.8-4751_daily_bin1681.fits outfile=/scratch/kocevski/755882/cmap_HighResolution_675043201_675302401_4FGL_J2159.8-4751_daily_bin1681.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.56
user 0.38
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/755882/ft1_filtered_4FGL_J2159.8-4751_daily_bin1681.fits evtable="EVENTS" scfile=/scratch/kocevski/755882/ft2_4FGL_J2159.8-4751_daily_bin1681.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/755882/Model_4FGL_J2159.8-4751_daily_bin1681.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/755882/ft1_filtered_4FGL_J2159.8-4751_daily_bin1681.fits.....................!
real 51.02
user 49.71
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/755882/ft1_filtered_4FGL_J2159.8-4751_daily_bin1681.fits', '/scratch/kocevski/755882/ft2_4FGL_J2159.8-4751_daily_bin1681.fits', expMap='/scratch/kocevski/755882/expmap_675043201_675302401_4FGL_J2159.8-4751_daily_bin1681.fits', expCube='/scratch/kocevski/755882/ltcube_675043201_675302401_4FGL_J2159.8-4751_daily_bin1681.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/755882/Model_4FGL_J2159.8-4751_daily_bin1681.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/755882/ft1_filtered_4FGL_J2159.8-4751_daily_bin1681.fits
Spacecraft file(s): /scratch/kocevski/755882/ft2_4FGL_J2159.8-4751_daily_bin1681.fits
Exposure map: /scratch/kocevski/755882/expmap_675043201_675302401_4FGL_J2159.8-4751_daily_bin1681.fits
Exposure cube: /scratch/kocevski/755882/ltcube_675043201_675302401_4FGL_J2159.8-4751_daily_bin1681.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/755882/Model_4FGL_J2159.8-4751_daily_bin1681.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) = 6798.07390477

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    3.4462       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .11293E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10112E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .39790       1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.4421       1.0000         .10000E-03   10000.    
     8 'norm      '    9.1705       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    56.173       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .87329E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.8626       1.0000         .10000E-03   10000.    
    14 'Prefactor '    141.08       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 '    .10085E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    18.169       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .66176       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.1228       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=   6798.057     FROM MIGRAD    STATUS=CONVERGED    637 CALLS     3099 TOTAL
                     EDM=   .33E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.5927        .24827E-09** at limit **
   2  norm          3.4458        2.0298        .67598E-07   -.84348E-04
   3  Prefactor     .10000E-03    129.31       -.88971E-05** at limit **
   4  Prefactor     .10000E-03    9.7500       -.21786E-06** at limit **
   5  Prefactor     .10000E-03    41.883       -.43612E-05** at limit **
   6  Prefactor     .29202        12.585        .16571E-05   -.31774E-03
   7  Prefactor     5.4427        3.9681       -.13509E-06   -.21111E-03
   8  norm          9.1693        4.7325        .52400E-07    .13636E-03
   9  Prefactor     .10000E-03    4.3231        .20542E-07** at limit **
  10  Prefactor     .10000E-03    3.7265        .67058E-08** at limit **
  11  Prefactor     56.191        33.796       -.92110E-06   -.91583E-04
  12  Prefactor     .10010E-03    9.1591        .31472E-05** at limit **
  13  Prefactor     2.8636        2.9623       -.16100E-06   -.29294E-03
  14  Prefactor     141.11        96.652       -.47870E-05   -.10035E-03
  15  norm          .10000E-03    1.6715        .12942E-07** at limit **
  16  Prefactor     .10000E-03    .54807        .92743E-08** at limit **
  17  Prefactor     .10000E-03    81.190        .69531E-05** at limit **
  18  Prefactor     .10000E-03    1.6447        .43161E-07** at limit **
  19  Prefactor     .10000E-03    24.202       -.11764E-05** at limit **
  20  Prefactor     .10000E-03    10.253        .33871E-06** at limit **
  21  Prefactor     .10000E-03    2.7229        .24664E-07** at limit **
  22  Prefactor     .10000E-03    30.080        .32650E-05** at limit **
  23  Prefactor     .10000E-03    6.1775        .38939E-07** at limit **
  24  Prefactor     18.170        18.331        .61892E-07   -.52646E-05
  25  Normalizat    .66171        .16281       -.11753E-05   -.17860E-03
  26  Prefactor     1.1230        .13056       -.16398E-06   -.26435E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 3.44585
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.292024
  Prefactor  = 5.44272
  norm       = 9.16931
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 56.1906
  Prefactor  = 0.000100098
  Prefactor  = 2.86359
  Prefactor  = 141.109
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 18.1696
  Normalizat = 0.661709
  Prefactor  = 1.12298
 **********
 **   18 **HESSE 
 **********

 FCN=   6798.057     FROM HESSE     STATUS=OK           456 CALLS     3555 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.5973        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          3.4458        2.0270        .86438E-04   -1.5337    
   3  Prefactor     .10000E-03    130.92        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    10.025        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    42.030        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .29202        14.355        .93974E-01   -1.5600    
   7  Prefactor     5.4427        3.9617        .13386E-03   -1.5241    
   8  norm          9.1693        4.7330        .12390E-03   -1.5102    
   9  Prefactor     .10000E-03    4.4041        .16739E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    3.7571        .15541E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     56.191        33.860        .53523E-04   -1.4207    
  12  Prefactor     .10010E-03    78.289        .41563E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     2.8636        2.9527        .13794E-03   -1.5370    
  14  Prefactor     141.11        98.113        .16958E-03   -1.3327    
  15  norm          .10000E-03    1.6718        .10410E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    .54867        .59607E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    82.568        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    1.6686        .10325E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    24.368        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    10.314        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    2.7300        .13287E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    30.180        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    6.4418        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     18.170        18.336        .93963E-04   -1.4855    
  25  Normalizat    .66171        .18564        .29440E-03   -1.0542    
  26  Prefactor     1.1230        .15004        .18773E-03   -.88736    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.25394e-09
Minuit parameter uncertainties:
  1  2.9144e-06
  2  2.02706
  3  0.000101303
  4  4.7318e-05
  5  8.34567e-05
  6  4.09524
  7  3.96191
  8  4.73317
  9  9.70894e-06
  10  6.31393e-06
  11  33.8717
  12  0.00554103
  13  2.95281
  14  98.2267
  15  3.69918e-07
  16  5.39683e-07
  17  0.000518171
  18  2.8581e-06
  19  9.99146e-07
  20  1.80706e-05
  21  2.80406e-06
  22  0.000157184
  23  1.49959e-05
  24  18.342
  25  0.185817
  26  0.150096
Done.

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

Extracting fit parameters...

4FGL J2159.8-4751
   Spectrum: PowerLaw
311    Prefactor:  5.619e+01  3.387e+01  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:  1.123e+00  1.501e-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:  6.617e-01  1.858e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.84
Ra Dec: 329.962 -47.852
Photon Index (Fixed Index): 2.52 +/- 0.00
Photon Flux (Fixed Index): 5.86e-08 +/- 3.53e-08
Energy Flux (Fixed Index): 1.66e-05 +/- 1.00e-05

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) = 6798.04544015
delta logL = 0.0119513679247

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6798.0391233
delta logL = 0.0182682156965

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    60.543       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4028       1.0000          .0000       10.000    
     3 'Normalizat'    .66822       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1196       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=   6798.039     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      251 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     60.534        42.837        .51566E-04    .47357E-04
   2  Index         2.4033        .63504        .82133E-02    .29651E-03
   3  Normalizat    .66822        .18616        .29310E-03    .28548E-04
   4  Prefactor     1.1196        .14966        .18798E-03    .11238E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 60.5342
  Index      = 2.40331
  Normalizat = 0.668219
  Prefactor  = 1.11961
 **********
 **   18 **HESSE 
 **********

 FCN=   6798.039     FROM HESSE     STATUS=OK            25 CALLS      276 TOTAL
                     EDM=   .19E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     60.534        41.845        .10313E-04   -1.4150    
   2  Index         2.4033        .61987        .16427E-02   -.54608    
   3  Normalizat    .66822        .18613        .11724E-04   -1.0516    
   4  Prefactor     1.1196        .14969        .37595E-04   -.88842    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.94549e-11
Minuit parameter uncertainties:
  1  41.8649
  2  0.622065
  3  0.186306
  4  0.149742
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/755882': 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): 0
logL (Free Index) = 6798.0391229
delta logL = 0.018268615363

Extracting fit parameters...

4FGL J2159.8-4751
   Spectrum: PowerLaw
311    Prefactor:  6.053e+01  4.186e+01  1.000e-04  1.000e+04 ( 1.000e-13)
312        Index:  2.403e+00  6.221e-01  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:  1.120e+00  1.497e-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:  6.682e-01  1.863e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.88
Ra Dec: 329.962 -47.852
Photon Index (Free Index): 2.40 +/- 0.62
Photon Flux (Free Index): 5.39e-08 +/- 4.14e-08
Energy Flux (Free Index): 1.76e-05 +/- 1.22e-05

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/755882/cmap_HighResolution_675043201_675302401_4FGL_J2159.8-4751_daily_bin1681.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.86e-08', energy_flux2='1.76e-05', photon_flux_error='3.53e-08', dlogl='1.83e-02', energy_flux='1.66e-05', photon_flux2='5.39e-08', job_status='DONE', time_completed='2022-05-27 01:08:56.614990', photon_index_error2='0.62', photon_index2='2.40', ts='5.84', fit_tolerance='1e-08', GAL='1.12', photon_index_error='0.00', energy_flux_error2='1.22e-05', EG='0.66', time_epoch_completed='1653638936.62', return_code='0', job_id='755882', GAL2='1.12', EG2='0.67', return_code2='0', energy_flux_error='1.00e-05', photon_flux_error2='4.14e-08', ts2='5.88', photon_index='2.52' WHERE bin_id='1681' AND source_name='4FGL J2159.8-4751' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri May 27 01:08:56 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0251>
Subject: Job 755882: <4FGL_J2159.8-4751_daily_bin1681> in cluster <slac> Done

Job <4FGL_J2159.8-4751_daily_bin1681> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Fri May 27 00:55:26 2022
Job was executed on host(s) <bullet0251>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri May 27 00:57:02 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri May 27 00:57:02 2022
Terminated at Fri May 27 01:08:57 2022
Results reported at Fri May 27 01:08:57 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2159.8-4751_daily_bin1681 329.962 -47.8518 675043201 675302401 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 :                                   682.01 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             362.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   714 sec.
    Turnaround time :                            811 sec.

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

