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


Performing analysis on: 4FGL_J2159.8-4751_daily_bin1675
RA = 329.962, Dec = -47.8518
tmin = 673488001, tmax = 673747201
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='884109', job_status='RUN', time_executed='2022-05-09 01:29:02.337972', time_epoch_executed='1652084942.34' WHERE source_name='4FGL J2159.8-4751' and cadence='daily' and bin_id='1675'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/884109

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/884109/ft1_4FGL_J2159.8-4751_daily_bin1675.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/884109/ft2_4FGL_J2159.8-4751_daily_bin1675.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/884109/ft1_4FGL_J2159.8-4751_daily_bin1675.fits outfile=/scratch/kocevski/884109/ft1_filteredMKT_4FGL_J2159.8-4751_daily_bin1675.fits ra=329.962 dec=-47.8518 rad=12.0 tmin=673488001.0 tmax=673747201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 2.58
user 2.38
sys 0.18

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

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

Number of photons that the gtmktime cut: 622

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/884109/ft1_filtered_4FGL_J2159.8-4751_daily_bin1675.fits" evtable="EVENTS" scfile=/scratch/kocevski/884109/ft2_4FGL_J2159.8-4751_daily_bin1675.fits sctable="SC_DATA" outfile=/scratch/kocevski/884109/ltcube_673488001_673747201_4FGL_J2159.8-4751_daily_bin1675.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/884109/ft2_4FGL_J2159.8-4751_daily_bin1675.fits
.....................!
real 15.42
user 15.04
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/884109/ft1_filtered_4FGL_J2159.8-4751_daily_bin1675.fits evtable="EVENTS" scfile=/scratch/kocevski/884109/ft2_4FGL_J2159.8-4751_daily_bin1675.fits sctable="SC_DATA" expcube=/scratch/kocevski/884109/ltcube_673488001_673747201_4FGL_J2159.8-4751_daily_bin1675.fits outfile=/scratch/kocevski/884109/expmap_673488001_673747201_4FGL_J2159.8-4751_daily_bin1675.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/884109/ltcube_673488001_673747201_4FGL_J2159.8-4751_daily_bin1675.fits
.....................!
real 191.23
user 186.30
sys 4.44

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 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/884109/ft1_filtered_4FGL_J2159.8-4751_daily_bin1675.fits scfile=/scratch/kocevski/884109/ft2_4FGL_J2159.8-4751_daily_bin1675.fits outfile=/scratch/kocevski/884109/cmap_673488001_673747201_4FGL_J2159.8-4751_daily_bin1675.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.56
user 0.37
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/884109/ft1_filtered_4FGL_J2159.8-4751_daily_bin1675.fits scfile=/scratch/kocevski/884109/ft2_4FGL_J2159.8-4751_daily_bin1675.fits outfile=/scratch/kocevski/884109/cmap_HighResolution_673488001_673747201_4FGL_J2159.8-4751_daily_bin1675.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/884109/ft1_filtered_4FGL_J2159.8-4751_daily_bin1675.fits evtable="EVENTS" scfile=/scratch/kocevski/884109/ft2_4FGL_J2159.8-4751_daily_bin1675.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/884109/Model_4FGL_J2159.8-4751_daily_bin1675.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/884109/ft1_filtered_4FGL_J2159.8-4751_daily_bin1675.fits.....................!
real 51.47
user 50.17
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    41.011       1.0000         .10000E-03   10000.    
     2 'norm      '    .82993       1.0000         .10000E-03   10000.    
     3 'Prefactor '    27.151       1.0000         .10000E-03   10000.    
     4 'Prefactor '    19.857       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10194E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    26.106       1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.8013       1.0000         .10000E-03   10000.    
     8 'norm      '    14.664       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10374E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    19.758       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .26620E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.9307       1.0000         .10000E-03   10000.    
    14 'Prefactor '    85.600       1.0000         .10000E-03   10000.    
    15 'norm      '    .38793E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.7732       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.6351       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10066E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    14.404       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .31415E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10126E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10472E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .68923       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.3346       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=   6728.828     FROM MIGRAD    STATUS=CONVERGED    614 CALLS     3148 TOTAL
                     EDM=   .78E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     41.010        27.485       -.22352E-06   -.86075E-05
   2  norm          .83219        1.3763        .97267E-07    .15572E-03
   3  Prefactor     27.161        37.956        .22814E-05    .10705E-03
   4  Prefactor     19.856        9.6180        .52153E-07    .93469E-04
   5  Prefactor     .10000E-03    34.768        .30405E-06** at limit **
   6  Prefactor     26.113        24.710        .62030E-06    .97941E-04
   7  Prefactor     2.7996        4.5822        .57565E-06    .91446E-04
   8  norm          14.664        6.7738        .19375E-06    .18638E-03
   9  Prefactor     .10000E-03    23.618       -.22115E-05** at limit **
  10  Prefactor     .10000E-03    15.307        .27339E-06** at limit **
  11  Prefactor     19.759        23.440        .86216E-06    .12504E-03
  12  Prefactor     .10012E-03    10.001       -.25064E-05** at limit **
  13  Prefactor     4.9297        4.0315        .25457E-06    .42215E-03
  14  Prefactor     85.582        99.677        .43611E-05    .16437E-03
  15  norm          .10006E-03    5.4381       -.16334E-05** at limit **
  16  Prefactor     3.7726        4.4019        .16540E-06   -.89107E-05
  17  Prefactor     .10000E-03    21.480        .10809E-05** at limit **
  18  Prefactor     5.6336        7.2335       -.14260E-06    .47552E-04
  19  Prefactor     .10000E-03    7.3449       -.14818E-07** at limit **
  20  Prefactor     14.415        26.437        .78106E-06    .17640E-03
  21  Prefactor     .10001E-03    7.9803        .17149E-06** at limit **
  22  Prefactor     .10000E-03    53.504       -.19189E-05** at limit **
  23  Prefactor     .10000E-03    2.4079       -.12180E-07** at limit **
  24  Prefactor     .10000E-03    42.115        .26489E-05** at limit **
  25  Normalizat    .68928        .20895        .51377E-06    .28632E-03
  26  Prefactor     1.3346        .15694       -.37396E-06    .46374E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 41.0098
  norm       = 0.832188
  Prefactor  = 27.1614
  Prefactor  = 19.8561
  Prefactor  = 0.0001
  Prefactor  = 26.1126
  Prefactor  = 2.79959
  norm       = 14.6644
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 19.7589
  Prefactor  = 0.000100117
  Prefactor  = 4.92967
  Prefactor  = 85.582
  norm       = 0.000100063
  Prefactor  = 3.7726
  Prefactor  = 0.0001
  Prefactor  = 5.63357
  Prefactor  = 0.0001
  Prefactor  = 14.4152
  Prefactor  = 0.000100008
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Normalizat = 0.68928
  Prefactor  = 1.33458
 **********
 **   18 **HESSE 
 **********

 FCN=   6728.828     FROM HESSE     STATUS=OK           462 CALLS     3610 TOTAL
                     EDM=   .52E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     41.010        27.492        .62595E-04   -1.4426    
   2  norm          .83219        1.1196        .11975E-02   -1.5526    
   3  Prefactor     27.161        37.906        .76883E-04   -1.4665    
   4  Prefactor     19.856        9.6034        .89883E-04   -1.4816    
   5  Prefactor     .10000E-03    34.867        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     26.113        24.670        .78404E-04   -1.4686    
   7  Prefactor     2.7996        4.5595        .21248E-03   -1.5373    
   8  norm          14.664        6.7569        .10460E-03   -1.4942    
   9  Prefactor     .10000E-03    24.486        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    15.618        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     19.759        23.455        .90107E-04   -1.4819    
  12  Prefactor     .10012E-03    78.725        .42321E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     4.9297        4.0228        .14107E-03   -1.5264    
  14  Prefactor     85.582        100.71        .43421E-04   -1.3855    
  15  norm          .10006E-03    19.422        .33919E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     3.7726        4.3958        .17245E-03   -1.5319    
  17  Prefactor     .10000E-03    21.493        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     5.6336        7.2630        .16923E-03   -1.5233    
  19  Prefactor     .10000E-03    7.3489        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     14.415        25.231        .10553E-03   -1.4948    
  21  Prefactor     .10001E-03    30.685        .41564E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    53.634        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    2.4133        .12430E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    42.373        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .68928        .23849        .34091E-03   -1.0432    
  26  Prefactor     1.3346        .18100        .20570E-03   -.82285    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.22548e-09
Minuit parameter uncertainties:
  1  27.501
  2  1.11965
  3  37.9398
  4  9.60412
  5  7.98247e-06
  6  24.6797
  7  4.5601
  8  6.75723
  9  0.000194148
  10  2.32285e-05
  11  23.4663
  12  0.00607846
  13  4.02302
  14  100.908
  15  0.00222046
  16  4.39614
  17  0.000111622
  18  7.26418
  19  1.30112e-06
  20  25.2495
  21  0.00100503
  22  0.000334762
  23  6.3174e-07
  24  0.000364351
  25  0.238846
  26  0.181083
Done.

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

Extracting fit parameters...

4FGL J2159.8-4751
   Spectrum: PowerLaw
311    Prefactor:  1.976e+01  2.347e+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.335e+00  1.811e-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.893e-01  2.388e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.63
Ra Dec: 329.962 -47.852
Photon Index (Fixed Index): 2.52 +/- 0.00
Photon Flux (Fixed Index): 2.06e-08 +/- 2.45e-08
Energy Flux (Fixed Index): 5.83e-06 +/- 6.93e-06

TS (Fixed Index): 1.63
Ra Dec: 329.962 -47.852
Photon Flux Upper Limit: 9.32e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.26e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/884109/likelihoodResults_673488001_673747201_4FGL_J2159.8-4751_daily_bin1675.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) = 6727.79274072
delta logL = 1.03492154475

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6727.76720985
delta logL = 1.06045241715

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.654       1.0000         .10000E-03   10000.    
     2 'Index     '    1.3406       1.0000          .0000       10.000    
     3 'Normalizat'    .70721       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3269       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.

 FCN=   6727.767     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      219 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.654        15.672        .26158E-02    .10777E-02
   2  Index         1.3397        .42252        .26430       -.39001E-04
   3  Normalizat    .70719        .18764        .76087E-01    .11021E-04
   4  Prefactor     1.3269        .15310        .46631E-01   -.47331E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.6536
  Index      = 1.33968
  Normalizat = 0.707187
  Prefactor  = 1.32686
 **********
 **   18 **HESSE 
 **********

 FCN=   6727.767     FROM HESSE     STATUS=OK            29 CALLS      248 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.654        20.447        .10463E-03   -1.4942    
   2  Index         1.3397        .65083        .98833E-02   -.82135    
   3  Normalizat    .70719        .21498        .33683E-03   -1.0361    
   4  Prefactor     1.3269        .17581        .20613E-03   -.82512    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.61349e-09
Minuit parameter uncertainties:
  1  20.4566
  2  0.654859
  3  0.215238
  4  0.175886
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/884109': 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) = 6727.7672081
delta logL = 1.06045416639

Extracting fit parameters...

4FGL J2159.8-4751
   Spectrum: PowerLaw
311    Prefactor:  1.465e+01  2.046e+01  1.000e-04  1.000e+04 ( 1.000e-13)
312        Index:  1.340e+00  6.549e-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.327e+00  1.759e-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:  7.072e-01  2.152e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.75
Ra Dec: 329.962 -47.852
Photon Index (Free Index): 1.34 +/- 0.65
Photon Flux (Free Index): 5.75e-09 +/- 7.55e-09
Energy Flux (Free Index): 3.10e-05 +/- 5.34e-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/884109/cmap_HighResolution_673488001_673747201_4FGL_J2159.8-4751_daily_bin1675.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.26e-03', comment='SUCCESS', photon_flux='2.06e-08', energy_flux2='3.10e-05', photon_flux_error='2.45e-08', dlogl='1.06e+00', energy_flux='5.83e-06', photon_flux2='5.75e-09', job_status='DONE', time_completed='2022-05-09 01:41:50.797108', photon_index_error2='0.65', photon_index2='1.34', ts='1.63', fit_tolerance='1e-08', GAL='1.33', photon_index_error='0.00', photon_flux_upper_limit='9.32e-08', energy_flux_error2='5.34e-05', EG='0.69', time_epoch_completed='1652085710.8', return_code='0', job_id='884109', GAL2='1.33', EG2='0.71', return_code2='0', energy_flux_error='6.93e-06', photon_flux_error2='7.55e-09', ts2='3.75', photon_index='2.52' WHERE bin_id='1675' AND source_name='4FGL J2159.8-4751' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon May  9 01:41:50 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0202>
Subject: Job 884109: <4FGL_J2159.8-4751_daily_bin1675> in cluster <slac> Done

Job <4FGL_J2159.8-4751_daily_bin1675> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Mon May  9 01:25:23 2022
Job was executed on host(s) <bullet0202>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon May  9 01:25:55 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon May  9 01:25:55 2022
Terminated at Mon May  9 01:41:51 2022
Results reported at Mon May  9 01:41:51 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2159.8-4751_daily_bin1675 329.962 -47.8518 673488001 673747201 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 :                                   770.33 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             303.84 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   956 sec.
    Turnaround time :                            988 sec.

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

