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


Performing analysis on: 4FGL_J2159.8-4751_daily_bin1669
RA = 329.962, Dec = -47.8518
tmin = 671932801, tmax = 672192001
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='692165', job_status='RUN', time_executed='2022-04-21 00:35:55.377839', time_epoch_executed='1650526555.38' WHERE source_name='4FGL J2159.8-4751' and cadence='daily' and bin_id='1669'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/692165

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/692165/ft1_4FGL_J2159.8-4751_daily_bin1669.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/692165/ft2_4FGL_J2159.8-4751_daily_bin1669.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/692165/ft1_4FGL_J2159.8-4751_daily_bin1669.fits outfile=/scratch/kocevski/692165/ft1_filteredMKT_4FGL_J2159.8-4751_daily_bin1669.fits ra=329.962 dec=-47.8518 rad=12.0 tmin=671932801.0 tmax=672192001.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.81
user 3.55
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/692165/ft2_4FGL_J2159.8-4751_daily_bin1669.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/692165/ft1_filteredMKT_4FGL_J2159.8-4751_daily_bin1669.fits evtable="EVENTS" outfile="/scratch/kocevski/692165/ft1_filtered_4FGL_J2159.8-4751_daily_bin1669.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.31
sys 0.17

Number of photons that the gtmktime cut: 678

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/692165/ft1_filtered_4FGL_J2159.8-4751_daily_bin1669.fits" evtable="EVENTS" scfile=/scratch/kocevski/692165/ft2_4FGL_J2159.8-4751_daily_bin1669.fits sctable="SC_DATA" outfile=/scratch/kocevski/692165/ltcube_671932801_672192001_4FGL_J2159.8-4751_daily_bin1669.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/692165/ft2_4FGL_J2159.8-4751_daily_bin1669.fits
.....................!
real 12.06
user 11.67
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/692165/ft1_filtered_4FGL_J2159.8-4751_daily_bin1669.fits evtable="EVENTS" scfile=/scratch/kocevski/692165/ft2_4FGL_J2159.8-4751_daily_bin1669.fits sctable="SC_DATA" expcube=/scratch/kocevski/692165/ltcube_671932801_672192001_4FGL_J2159.8-4751_daily_bin1669.fits outfile=/scratch/kocevski/692165/expmap_671932801_672192001_4FGL_J2159.8-4751_daily_bin1669.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/692165/ltcube_671932801_672192001_4FGL_J2159.8-4751_daily_bin1669.fits
.....................!
real 191.26
user 185.22
sys 5.61

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/692165/ft1_filtered_4FGL_J2159.8-4751_daily_bin1669.fits scfile=/scratch/kocevski/692165/ft2_4FGL_J2159.8-4751_daily_bin1669.fits outfile=/scratch/kocevski/692165/cmap_671932801_672192001_4FGL_J2159.8-4751_daily_bin1669.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/692165/ft1_filtered_4FGL_J2159.8-4751_daily_bin1669.fits scfile=/scratch/kocevski/692165/ft2_4FGL_J2159.8-4751_daily_bin1669.fits outfile=/scratch/kocevski/692165/cmap_HighResolution_671932801_672192001_4FGL_J2159.8-4751_daily_bin1669.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.57
user 0.38
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/692165/ft1_filtered_4FGL_J2159.8-4751_daily_bin1669.fits evtable="EVENTS" scfile=/scratch/kocevski/692165/ft2_4FGL_J2159.8-4751_daily_bin1669.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/692165/Model_4FGL_J2159.8-4751_daily_bin1669.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/692165/ft1_filtered_4FGL_J2159.8-4751_daily_bin1669.fits.....................!
real 53.98
user 52.52
sys 1.35

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.1596       1.0000         .10000E-03   10000.    
     2 'norm      '    .10096E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    77.243       1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.1707       1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.6381       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .62867       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .11081E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    7.2523       1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.8941       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.2709       1.0000         .10000E-03   10000.    
    11 'Prefactor '    73.711       1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.2863       1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.8636       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.8359       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.5837       1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.8719       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10368E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    8.8320       1.0000         .10000E-03   10000.    
    22 'Prefactor '    76.871       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .97994       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .77389       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .96574       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7354.137     FROM MIGRAD    STATUS=CONVERGED    606 CALLS     3106 TOTAL
                     EDM=   .14E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.1583        15.616         .0000        .19550E-03
   2  norm          .10000E-03    .62017         .0000    ** at limit **
   3  Prefactor     77.241        45.427         .0000       -.12347E-02
   4  Prefactor     4.1700        5.5475         .0000        .11811E-02
   5  Prefactor     3.6397        25.815         .0000       -.11621E-03
   6  Prefactor     .56968        9.6270         .0000        .15831E-02
   7  Prefactor     .10000E-03    1.4319         .0000    ** at limit **
   8  norm          7.2519        3.4916         .0000       -.96866E-02
   9  Prefactor     1.8937        5.0634         .0000        .22668E-01
  10  Prefactor     2.2709        3.7924         .0000       -.12977E-02
  11  Prefactor     73.708        34.165         .0000        .56855E-02
  12  Prefactor     1.2886        5.3188         .0000        .30893E-01
  13  Prefactor     4.8636        3.2861         .0000        .58531E-02
  14  Prefactor     .10010E-03    31.684         .0000    ** at limit **
  15  norm          .10000E-03    1.9995         .0000    ** at limit **
  16  Prefactor     1.8365        2.4233         .0000        .52031E-03
  17  Prefactor     .10002E-03    10.318         .0000    ** at limit **
  18  Prefactor     3.5842        3.8101         .0000        .31900E-02
  19  Prefactor     3.8731        14.057         .0000        .36021E-03
  20  Prefactor     .10001E-03    14.416         .0000    ** at limit **
  21  Prefactor     8.8335        9.9470         .0000        .79067E-03
  22  Prefactor     76.872        71.582         .0000       -.14880E-02
  23  Prefactor     .97963        7.3692         .0000        .13846E-02
  24  Prefactor     .10001E-03    9.2407         .0000    ** at limit **
  25  Normalizat    .77373        .15842         .0000       -.16300E-05
  26  Prefactor     .96585        .11757         .0000       -.32176E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.15834
  norm       = 0.0001
  Prefactor  = 77.2413
  Prefactor  = 4.16996
  Prefactor  = 3.63972
  Prefactor  = 0.569684
  Prefactor  = 0.000100004
  norm       = 7.25186
  Prefactor  = 1.89365
  Prefactor  = 2.27085
  Prefactor  = 73.708
  Prefactor  = 1.28864
  Prefactor  = 4.86357
  Prefactor  = 0.000100095
  norm       = 0.0001
  Prefactor  = 1.83653
  Prefactor  = 0.000100019
  Prefactor  = 3.58416
  Prefactor  = 3.87305
  Prefactor  = 0.000100012
  Prefactor  = 8.83353
  Prefactor  = 76.8717
  Prefactor  = 0.979628
  Prefactor  = 0.000100009
  Normalizat = 0.773732
  Prefactor  = 0.965854
 **********
 **   18 **HESSE 
 **********

 FCN=   7354.137     FROM HESSE     STATUS=OK           464 CALLS     3570 TOTAL
                     EDM=   .17E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.1583        15.598        .14991E-03   -1.5173    
   2  norm          .10000E-03    .99199        .13071E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     77.241        45.194        .45690E-04   -1.3948    
   4  Prefactor     4.1700        5.5231        .19735E-03   -1.5300    
   5  Prefactor     3.6397        25.495        .21180E-03   -1.5326    
   6  Prefactor     .56968        66.695        .50540E-02   -1.5557    
   7  Prefactor     .10000E-03    13.945        .19646E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          7.2519        3.4807        .10488E-03   -1.5169    
   9  Prefactor     1.8937        5.0384        .15064E-02   -1.5433    
  10  Prefactor     2.2709        3.7654        .20838E-03   -1.5407    
  11  Prefactor     73.708        33.966        .46764E-04   -1.3989    
  12  Prefactor     1.2886        5.2364        .18287E-02   -1.5481    
  13  Prefactor     4.8636        3.2788        .12206E-03   -1.5267    
  14  Prefactor     .10010E-03    31.690        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    2.0007        .11843E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     1.8365        2.4031        .14642E-03   -1.5437    
  17  Prefactor     .10002E-03    10.329        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     3.5842        3.8032        .16526E-03   -1.5329    
  19  Prefactor     3.8731        14.048        .20507E-03   -1.5314    
  20  Prefactor     .10001E-03    14.465        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     8.8335        9.9404        .13487E-03   -1.5113    
  22  Prefactor     76.872        71.544        .45800E-04   -1.3952    
  23  Prefactor     .97963        7.5346        .44372E-03   -1.5510    
  24  Prefactor     .10001E-03    9.2425        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .77373        .17998        .26895E-03   -1.0105    
  26  Prefactor     .96585        .13589        .19217E-03   -.93877    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.65665e-07
Minuit parameter uncertainties:
  1  15.6074
  2  7.46244e-07
  3  45.2141
  4  5.52373
  5  19.2775
  6  12.3411
  7  0.00048433
  8  3.48077
  9  5.03953
  10  3.76575
  11  33.9753
  12  5.19591
  13  3.27895
  14  0.00347497
  15  2.53567e-06
  16  2.40322
  17  0.00088814
  18  3.80343
  19  14.06
  20  0.000841131
  21  9.94224
  22  71.6244
  23  5.4343
  24  0.000562874
  25  0.180117
  26  0.135934
Done.

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

Extracting fit parameters...

4FGL J2159.8-4751
   Spectrum: PowerLaw
311    Prefactor:  7.371e+01  3.398e+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:  9.659e-01  1.359e-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.737e-01  1.801e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 13.11
Ra Dec: 329.962 -47.852
Photon Index (Fixed Index): 2.52 +/- 0.00
Photon Flux (Fixed Index): 7.69e-08 +/- 3.54e-08
Energy Flux (Fixed Index): 2.18e-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) = 7353.30721025
delta logL = 0.830221263553

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7353.21300368
delta logL = 0.924427836188

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    92.205       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9213       1.0000          .0000       10.000    
     3 'Normalizat'    .81308       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94707       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=   7353.213     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      255 TOTAL
                     EDM=   .92E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     92.190        47.897        .20925E-03    .77149E-05
   2  Index         1.9213        .42063        .69978E-02   -.83275E-04
   3  Normalizat    .81307        .17029        .26312E-03    .46794E-04
   4  Prefactor     .94709        .13349        .19387E-03    .10555E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 92.1901
  Index      = 1.92129
  Normalizat = 0.813066
  Prefactor  = 0.947085
 **********
 **   18 **HESSE 
 **********

 FCN=   7353.213     FROM HESSE     STATUS=OK            25 CALLS      280 TOTAL
                     EDM=   .63E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     92.190        48.129        .83701E-05   -1.3785    
   2  Index         1.9213        .42260        .13996E-02   -.66333    
   3  Normalizat    .81307        .17043        .10525E-04   -.99586    
   4  Prefactor     .94709        .13358        .77547E-05   -.94515    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.25973e-12
Minuit parameter uncertainties:
  1  48.1495
  2  0.42341
  3  0.170538
  4  0.133629
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/692165': 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) = 7353.21300362
delta logL = 0.924427895417

Extracting fit parameters...

4FGL J2159.8-4751
   Spectrum: PowerLaw
311    Prefactor:  9.219e+01  4.815e+01  1.000e-04  1.000e+04 ( 1.000e-13)
312        Index:  1.921e+00  4.234e-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:  9.471e-01  1.336e-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:  8.131e-01  1.705e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 14.91
Ra Dec: 329.962 -47.852
Photon Index (Free Index): 1.92 +/- 0.42
Photon Flux (Free Index): 4.74e-08 +/- 3.41e-08
Energy Flux (Free Index): 4.01e-05 +/- 3.25e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/692165/cmap_HighResolution_671932801_672192001_4FGL_J2159.8-4751_daily_bin1669.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.69e-08', energy_flux2='4.01e-05', photon_flux_error='3.54e-08', dlogl='9.24e-01', energy_flux='2.18e-05', photon_flux2='4.74e-08', job_status='DONE', time_completed='2022-04-21 00:47:42.568537', photon_index_error2='0.42', photon_index2='1.92', ts='13.11', fit_tolerance='1e-08', GAL='0.97', photon_index_error='0.00', energy_flux_error2='3.25e-05', EG='0.77', time_epoch_completed='1650527262.57', return_code='0', job_id='692165', GAL2='0.95', EG2='0.81', return_code2='0', energy_flux_error='1.00e-05', photon_flux_error2='3.41e-08', ts2='14.91', photon_index='2.52' WHERE bin_id='1669' AND source_name='4FGL J2159.8-4751' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Apr 21 00:47:42 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0108>
Subject: Job 692165: <4FGL_J2159.8-4751_daily_bin1669> in cluster <slac> Done

Job <4FGL_J2159.8-4751_daily_bin1669> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Thu Apr 21 00:35:33 2022
Job was executed on host(s) <bullet0108>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Apr 21 00:35:35 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Apr 21 00:35:35 2022
Terminated at Thu Apr 21 00:47:43 2022
Results reported at Thu Apr 21 00:47:43 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2159.8-4751_daily_bin1669 329.962 -47.8518 671932801 672192001 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 :                                   709.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             343.27 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   727 sec.
    Turnaround time :                            730 sec.

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

