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 9 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

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

number of points = 7528
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2159.8-4751_daily_bin1736
RA = 329.962, Dec = -47.8518
tmin = 689299201, tmax = 689558401
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='963315', job_status='RUN', time_executed='2022-11-08 00:40:34.198194', time_epoch_executed='1667896834.2' WHERE source_name='4FGL J2159.8-4751' and cadence='daily' and bin_id='1736'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/963315

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/963315/ft1_4FGL_J2159.8-4751_daily_bin1736.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/963315/ft2_4FGL_J2159.8-4751_daily_bin1736.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/963315/ft1_4FGL_J2159.8-4751_daily_bin1736.fits outfile=/scratch/kocevski/963315/ft1_filteredMKT_4FGL_J2159.8-4751_daily_bin1736.fits ra=329.962 dec=-47.8518 rad=12.0 tmin=689299201.0 tmax=689558401.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.58
user 3.32
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/963315/ft2_4FGL_J2159.8-4751_daily_bin1736.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/963315/ft1_filteredMKT_4FGL_J2159.8-4751_daily_bin1736.fits evtable="EVENTS" outfile="/scratch/kocevski/963315/ft1_filtered_4FGL_J2159.8-4751_daily_bin1736.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

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

Number of photons that the gtmktime cut: 732

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/963315/ft1_filtered_4FGL_J2159.8-4751_daily_bin1736.fits" evtable="EVENTS" scfile=/scratch/kocevski/963315/ft2_4FGL_J2159.8-4751_daily_bin1736.fits sctable="SC_DATA" outfile=/scratch/kocevski/963315/ltcube_689299201_689558401_4FGL_J2159.8-4751_daily_bin1736.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/963315/ft2_4FGL_J2159.8-4751_daily_bin1736.fits
.....................!
real 12.15
user 11.70
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/963315/ft1_filtered_4FGL_J2159.8-4751_daily_bin1736.fits evtable="EVENTS" scfile=/scratch/kocevski/963315/ft2_4FGL_J2159.8-4751_daily_bin1736.fits sctable="SC_DATA" expcube=/scratch/kocevski/963315/ltcube_689299201_689558401_4FGL_J2159.8-4751_daily_bin1736.fits outfile=/scratch/kocevski/963315/expmap_689299201_689558401_4FGL_J2159.8-4751_daily_bin1736.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/963315/ltcube_689299201_689558401_4FGL_J2159.8-4751_daily_bin1736.fits
.....................!
real 192.65
user 185.16
sys 6.34

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/963315/ft1_filtered_4FGL_J2159.8-4751_daily_bin1736.fits scfile=/scratch/kocevski/963315/ft2_4FGL_J2159.8-4751_daily_bin1736.fits outfile=/scratch/kocevski/963315/cmap_689299201_689558401_4FGL_J2159.8-4751_daily_bin1736.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.53
user 0.36
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/963315/ft1_filtered_4FGL_J2159.8-4751_daily_bin1736.fits scfile=/scratch/kocevski/963315/ft2_4FGL_J2159.8-4751_daily_bin1736.fits outfile=/scratch/kocevski/963315/cmap_HighResolution_689299201_689558401_4FGL_J2159.8-4751_daily_bin1736.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.54
user 0.35
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/963315/ft1_filtered_4FGL_J2159.8-4751_daily_bin1736.fits evtable="EVENTS" scfile=/scratch/kocevski/963315/ft2_4FGL_J2159.8-4751_daily_bin1736.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/963315/Model_4FGL_J2159.8-4751_daily_bin1736.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/963315/ft1_filtered_4FGL_J2159.8-4751_daily_bin1736.fits.....................!
real 56.82
user 55.30
sys 1.25

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/963315/ft1_filtered_4FGL_J2159.8-4751_daily_bin1736.fits', '/scratch/kocevski/963315/ft2_4FGL_J2159.8-4751_daily_bin1736.fits', expMap='/scratch/kocevski/963315/expmap_689299201_689558401_4FGL_J2159.8-4751_daily_bin1736.fits', expCube='/scratch/kocevski/963315/ltcube_689299201_689558401_4FGL_J2159.8-4751_daily_bin1736.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/963315/Model_4FGL_J2159.8-4751_daily_bin1736.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  0.000e+00  1.000e+06 ( 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/963315/ft1_filtered_4FGL_J2159.8-4751_daily_bin1736.fits
Spacecraft file(s): /scratch/kocevski/963315/ft2_4FGL_J2159.8-4751_daily_bin1736.fits
Exposure map: /scratch/kocevski/963315/expmap_689299201_689558401_4FGL_J2159.8-4751_daily_bin1736.fits
Exposure cube: /scratch/kocevski/963315/ltcube_689299201_689558401_4FGL_J2159.8-4751_daily_bin1736.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/963315/Model_4FGL_J2159.8-4751_daily_bin1736.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) = 7845.03503704

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .15347E-01   1.0000          .0000       .10000E+07
     2 'norm      '    .71387E-07   1.0000          .0000       .10000E+07
     3 'Prefactor '    10.172       1.0000          .0000       .10000E+07
     4 'Prefactor '    .54105E-01   1.0000          .0000       .10000E+07
     5 'Prefactor '    6.8793       1.0000          .0000       .10000E+07
     6 'Prefactor '    1.7036       1.0000          .0000       .10000E+07
     7 'norm      '    16.046       1.0000          .0000       .10000E+07
     8 'Prefactor '    2.8125       1.0000          .0000       .10000E+07
     9 'Prefactor '    5.6524       1.0000          .0000       .10000E+07
    10 'Prefactor '    49.568       1.0000          .0000       .10000E+07
    11 'Prefactor '    .18456       1.0000          .0000       .10000E+07
    12 'Prefactor '    6.6252       1.0000          .0000       .10000E+07
    13 'Prefactor '    .21323E-01   1.0000          .0000       .10000E+07
    14 'norm      '    2.3065       1.0000          .0000       .10000E+07
    15 'Prefactor '    .21906E-05   1.0000          .0000       .10000E+07
    16 'Prefactor '    2.7209       1.0000          .0000       .10000E+07
    17 'Prefactor '    .45551E-04   1.0000          .0000       .10000E+07
    18 'Prefactor '    .34299E-03   1.0000          .0000       .10000E+07
    19 'Prefactor '    .52061E-03   1.0000          .0000       .10000E+07
    20 'Prefactor '    1.0477       1.0000          .0000       .10000E+07
    21 'Prefactor '    .54112E-06   1.0000          .0000       .10000E+07
    22 'Normalizat'    .88171       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .97575       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5850E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7845.028     FROM MIGRAD    STATUS=CONVERGED    126 CALLS     1888 TOTAL
                     EDM=   .73E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .48017E-07    25.699        .21307E-05** at limit **
   2  norm           .0000        .71348        .43696E-07** at limit **
   3  Prefactor     10.157        3.0026        .35744E-06    .51916E-01
   4  Prefactor     .12170E-05    1.8538        .97960E-06** at limit **
   5  Prefactor     6.8950        2.4158        .53135E-06   -.43293E-01
   6  Prefactor     1.7053        2.8124        .37543E-07    .19846E-02
   7  norm          16.046        5.3217        .94204E-08   -.79591E-02
   8  Prefactor     2.8150        5.5339       -.57416E-06   -.86380E-04
   9  Prefactor     5.6476        3.4971       -.31955E-06   -.59222E-03
  10  Prefactor     49.835        35.500        .10664E-05   -.15051E-02
  11  Prefactor     .19691        16.337       -.19759E-05** at limit **
  12  Prefactor     6.6187        3.7682        .12039E-06    .11547E-01
  13  Prefactor     .38303E-08    45.290        .10436E-04** at limit **
  14  norm          2.3045        3.1383       -.17365E-07   -.17687E-03
  15  Prefactor     .16653E-09    1.2459       -.69087E-07** at limit **
  16  Prefactor     2.7292        1.5508       -.34389E-06    .11919E-01
  17  Prefactor      .0000        3.8319       -.92818E-07** at limit **
  18  Prefactor     .17764E-08    5.3795       -.36733E-06** at limit **
  19  Prefactor     .55511E-10    4.3474        .57249E-06** at limit **
  20  Prefactor     1.0423        2.8499       -.33809E-07   -.92840E-03
  21  Prefactor     .49960E-09    8.5385        .67920E-07** at limit **
  22  Normalizat    .88142        .17448       -.46879E-05   -.49463E-04
  23  Prefactor     .97588        .13804        .37412E-05    .14497E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.80171e-08
  norm       = 0
  Prefactor  = 10.1572
  Prefactor  = 1.21697e-06
  Prefactor  = 6.89504
  Prefactor  = 1.70534
  norm       = 16.0463
  Prefactor  = 2.81497
  Prefactor  = 5.64762
  Prefactor  = 49.8347
  Prefactor  = 0.196915
  Prefactor  = 6.61873
  Prefactor  = 3.83027e-09
  norm       = 2.30454
  Prefactor  = 1.66533e-10
  Prefactor  = 2.72918
  Prefactor  = 0
  Prefactor  = 1.77636e-09
  Prefactor  = 5.55112e-11
  Prefactor  = 1.04234
  Prefactor  = 4.996e-10
  Normalizat = 0.881416
  Prefactor  = 0.975884
 **********
 **   18 **HESSE 
 **********

 FCN=   7845.028     FROM HESSE     STATUS=OK           434 CALLS     2322 TOTAL
                     EDM=   .30E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .48017E-07    10.726        .95207E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm           .0000        .70589        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     10.157        6.4112        .31393E-03   -1.5644    
   4  Prefactor     .12170E-05    15.928        .15381E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     6.8950        14.860        .38228E-03   -1.5655    
   6  Prefactor     1.7053        2.8437        .80545E-03   -1.5682    
   7  norm          16.046        5.7080        .24977E-03   -1.5628    
   8  Prefactor     2.8150        7.2982        .60627E-03   -1.5674    
   9  Prefactor     5.6476        8.1613        .42228E-03   -1.5660    
  10  Prefactor     49.835        34.824        .14205E-03   -1.5567    
  11  Prefactor     .19691        3.8916        .96752E-02   -1.5699    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     6.6187        3.8347        .38963E-03   -1.5657    
  13  Prefactor     .38303E-08    49.995        .16951E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          2.3045        3.1528        .67536E-03   -1.5678    
  15  Prefactor     .16653E-09    1.2424        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     2.7292        21.758        .61713E-03   -1.5675    
  17  Prefactor      .0000        3.8067        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .17764E-08    5.3916        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .55511E-10    4.3595        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     1.0423        3.0252        .56125E-02   -1.5688    
  21  Prefactor     .49960E-09    8.5958        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .88142        .15625        .44667E-01   -.97116    
  23  Prefactor     .97588        .12002        .45963E-01   -.93538    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.98537e-07
Minuit parameter uncertainties:
  1  0.00143547
  2  7.82089e-07
  3  6.4112
  4  0.00880549
  5  14.8599
  6  2.84367
  7  5.70797
  8  7.29827
  9  8.16129
  10  34.8238
  11  1.7508
  12  3.83467
  13  0.000874756
  14  3.1528
  15  3.10548e-05
  16  15.412
  17  5.64017e-06
  18  0.000194286
  19  3.41937e-05
  20  3.02523
  21  0.000134382
  22  0.156329
  23  0.120056
Done.

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

Extracting fit parameters...

4FGL J2159.8-4751
   Spectrum: PowerLaw
311    Prefactor:  4.983e+01  3.482e+01  0.000e+00  1.000e+06 ( 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.759e-01  1.201e-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.814e-01  1.563e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.94
Ra Dec: 329.962 -47.852
Photon Index (Fixed Index): 2.52 +/- 0.00
Photon Flux (Fixed Index): 5.20e-08 +/- 3.63e-08
Energy Flux (Fixed Index): 1.47e-05 +/- 1.03e-05

TS (Fixed Index): 3.94
Ra Dec: 329.962 -47.852
Photon Flux Upper Limit: 1.21e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.44e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/963315/likelihoodResults_689299201_689558401_4FGL_J2159.8-4751_daily_bin1736.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) = 7844.66460129
delta logL = 0.363458012108

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7844.66093468
delta logL = 0.367124617824

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    27.755       1.0000          .0000       .10000E+07
     2 'Index     '    3.1710       1.0000          .0000       10.000    
     3 'Normalizat'    .84814       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99360       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=   7844.661     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      293 TOTAL
                     EDM=   .88E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     27.765        47.029        .75939E-05    .35376E-02
   2  Index         3.1707        1.1672        .55192E-02    .16506E-03
   3  Normalizat    .84825        .17946        .26799E-03   -.56395E-03
   4  Prefactor     .99349        .14091        .19970E-03   -.47966E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 27.7654
  Index      = 3.17074
  Normalizat = 0.848251
  Prefactor  = 0.993485
 **********
 **   18 **HESSE 
 **********

 FCN=   7844.661     FROM HESSE     STATUS=OK            25 CALLS      318 TOTAL
                     EDM=   .71E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     27.765        35.168        .15188E-05   -1.5603    
   2  Index         3.1707        .87591        .22077E-03   -.37455    
   3  Normalizat    .84825        .17811        .53599E-04   -.98303    
   4  Prefactor     .99349        .14000        .39940E-04   -.92947    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.10132e-10
Minuit parameter uncertainties:
  1  35.1681
  2  0.881167
  3  0.178236
  4  0.14005
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/963315': 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) = 7844.66093428
delta logL = 0.367125025083

Extracting fit parameters...

4FGL J2159.8-4751
   Spectrum: PowerLaw
311    Prefactor:  2.777e+01  3.517e+01  0.000e+00  1.000e+06 ( 1.000e-13)
312        Index:  3.171e+00  8.812e-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.935e-01  1.401e-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.483e-01  1.782e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.76
Ra Dec: 329.962 -47.852
Photon Index (Free Index): 3.17 +/- 0.88
Photon Flux (Free Index): 7.47e-08 +/- 4.55e-08
Energy Flux (Free Index): 1.38e-05 +/- 7.97e-06

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/963315/cmap_HighResolution_689299201_689558401_4FGL_J2159.8-4751_daily_bin1736.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.44e-03', comment='SUCCESS', photon_flux='5.20e-08', energy_flux2='1.38e-05', photon_flux_error='3.63e-08', dlogl='3.67e-01', energy_flux='1.47e-05', photon_flux2='7.47e-08', job_status='DONE', time_completed='2022-11-08 00:51:41.988524', photon_index_error2='0.88', photon_index2='3.17', ts='3.94', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', photon_flux_upper_limit='1.21e-07', energy_flux_error2='7.97e-06', EG='0.88', time_epoch_completed='1667897501.99', return_code='0', job_id='963315', GAL2='0.99', EG2='0.85', return_code2='0', energy_flux_error='1.03e-05', photon_flux_error2='4.55e-08', ts2='4.76', photon_index='2.52' WHERE bin_id='1736' AND source_name='4FGL J2159.8-4751' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Nov  8 00:51:42 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0261>
Subject: Job 963315: <4FGL_J2159.8-4751_daily_bin1736> in cluster <slac> Done

Job <4FGL_J2159.8-4751_daily_bin1736> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Nov  8 00:40:14 2022
Job was executed on host(s) <bullet0261>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Nov  8 00:40:16 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Nov  8 00:40:16 2022
Terminated at Tue Nov  8 00:51:42 2022
Results reported at Tue Nov  8 00:51:42 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2159.8-4751_daily_bin1736 329.962 -47.8518 689299201 689558401 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 :                                   668.47 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             354.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   686 sec.
    Turnaround time :                            688 sec.

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

