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


Performing analysis on: 4FGL_J2159.8-4751_daily_bin1765
RA = 329.962, Dec = -47.8518
tmin = 696816001, tmax = 697075201
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='648303', job_status='RUN', time_executed='2023-02-03 01:48:05.648830', time_epoch_executed='1675417685.65' WHERE source_name='4FGL J2159.8-4751' and cadence='daily' and bin_id='1765'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/648303

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/648303/ft1_4FGL_J2159.8-4751_daily_bin1765.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/648303/ft2_4FGL_J2159.8-4751_daily_bin1765.fits


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

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

Done.
real 3.03
user 2.81
sys 0.20

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

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

Number of photons that the gtmktime cut: 475

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/648303/ft1_filtered_4FGL_J2159.8-4751_daily_bin1765.fits" evtable="EVENTS" scfile=/scratch/kocevski/648303/ft2_4FGL_J2159.8-4751_daily_bin1765.fits sctable="SC_DATA" outfile=/scratch/kocevski/648303/ltcube_696816001_697075201_4FGL_J2159.8-4751_daily_bin1765.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/648303/ft2_4FGL_J2159.8-4751_daily_bin1765.fits
.....................!
real 13.21
user 12.87
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/648303/ft1_filtered_4FGL_J2159.8-4751_daily_bin1765.fits evtable="EVENTS" scfile=/scratch/kocevski/648303/ft2_4FGL_J2159.8-4751_daily_bin1765.fits sctable="SC_DATA" expcube=/scratch/kocevski/648303/ltcube_696816001_697075201_4FGL_J2159.8-4751_daily_bin1765.fits outfile=/scratch/kocevski/648303/expmap_696816001_697075201_4FGL_J2159.8-4751_daily_bin1765.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/648303/ltcube_696816001_697075201_4FGL_J2159.8-4751_daily_bin1765.fits
.....................!
real 160.77
user 155.98
sys 4.35

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/648303/ft1_filtered_4FGL_J2159.8-4751_daily_bin1765.fits scfile=/scratch/kocevski/648303/ft2_4FGL_J2159.8-4751_daily_bin1765.fits outfile=/scratch/kocevski/648303/cmap_696816001_697075201_4FGL_J2159.8-4751_daily_bin1765.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 1.64
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/648303/ft1_filtered_4FGL_J2159.8-4751_daily_bin1765.fits scfile=/scratch/kocevski/648303/ft2_4FGL_J2159.8-4751_daily_bin1765.fits outfile=/scratch/kocevski/648303/cmap_HighResolution_696816001_697075201_4FGL_J2159.8-4751_daily_bin1765.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.41
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/648303/ft1_filtered_4FGL_J2159.8-4751_daily_bin1765.fits evtable="EVENTS" scfile=/scratch/kocevski/648303/ft2_4FGL_J2159.8-4751_daily_bin1765.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/648303/Model_4FGL_J2159.8-4751_daily_bin1765.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/648303/ft1_filtered_4FGL_J2159.8-4751_daily_bin1765.fits.....................!
real 36.10
user 34.89
sys 1.10

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .62137E-01   1.0000          .0000       .10000E+07
     2 'norm      '    1.2846       1.0000          .0000       .10000E+07
     3 'Prefactor '    .22825E-04   1.0000          .0000       .10000E+07
     4 'Prefactor '    .69435E-02   1.0000          .0000       .10000E+07
     5 'Prefactor '    10.580       1.0000          .0000       .10000E+07
     6 'Prefactor '    .67249       1.0000          .0000       .10000E+07
     7 'norm      '    .82156E-03   1.0000          .0000       .10000E+07
     8 'Prefactor '    .26969E-02   1.0000          .0000       .10000E+07
     9 'Prefactor '    10.763       1.0000          .0000       .10000E+07
    10 'Prefactor '    67.927       1.0000          .0000       .10000E+07
    11 'Prefactor '    .27782E-02   1.0000          .0000       .10000E+07
    12 'Prefactor '    6.7361       1.0000          .0000       .10000E+07
    13 'Prefactor '    .42302E-03   1.0000          .0000       .10000E+07
    14 'norm      '    .92316E-05   1.0000          .0000       .10000E+07
    15 'Prefactor '    .32663E-05   1.0000          .0000       .10000E+07
    16 'Prefactor '    .81780E-03   1.0000          .0000       .10000E+07
    17 'Prefactor '    5.1051       1.0000          .0000       .10000E+07
    18 'Prefactor '    .13151E-05   1.0000          .0000       .10000E+07
    19 'Prefactor '    .51019E-02   1.0000          .0000       .10000E+07
    20 'Prefactor '    1.4463       1.0000          .0000       .10000E+07
    21 'Prefactor '    80.790       1.0000          .0000       .10000E+07
    22 'Normalizat'    1.3082       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .91930       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=   5161.363     FROM MIGRAD    STATUS=CONVERGED    189 CALLS     1897 TOTAL
                     EDM=   .91E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        46.769       -.35260E-07** at limit **
   2  norm          1.2866        2.2936       -.29605E-07    .82892E-05
   3  Prefactor      .0000        8.9235        .10049E-06** at limit **
   4  Prefactor     .22204E-09    31.167       -.32222E-06** at limit **
   5  Prefactor     10.588        1.3532        .13562E-08   -.17191E-02
   6  Prefactor     .65701        9.7639        .78999E-07    .37109E-04
   7  norm           .0000        4.6807        .35318E-07** at limit **
   8  Prefactor      .0000        11.036       -.43180E-08** at limit **
   9  Prefactor     10.815        11.498        .71372E-07   -.14022E-04
  10  Prefactor     69.728        51.899        .14819E-06   -.14808E-01
  11  Prefactor      .0000        5.8201        .14227E-06** at limit **
  12  Prefactor     6.7335        4.7185        .20210E-07    .70814E-05
  13  Prefactor     .94369E-09    58.029       -.21689E-06** at limit **
  14  norm           .0000        2.4524       -.49600E-07** at limit **
  15  Prefactor      .0000        2.0527        .44331E-07** at limit **
  16  Prefactor     .27756E-09    22.854       -.95495E-08** at limit **
  17  Prefactor     5.0945        5.4703        .16660E-07   -.53028E-04
  18  Prefactor      .0000        9.7785        .27850E-07** at limit **
  19  Prefactor     .55511E-10    19.505        .30490E-07** at limit **
  20  Prefactor     1.4493        6.5075        .22161E-06   -.31276E-04
  21  Prefactor     81.800        25.154        .64915E-07    .33255E-01
  22  Normalizat    1.3061        .26039       -.72661E-06   -.11078E-05
  23  Prefactor     .91977        .19039        .51906E-06   -.17225E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  norm       = 1.28663
  Prefactor  = 0
  Prefactor  = 2.22045e-10
  Prefactor  = 10.5881
  Prefactor  = 0.657009
  norm       = 0
  Prefactor  = 0
  Prefactor  = 10.8148
  Prefactor  = 69.7276
  Prefactor  = 0
  Prefactor  = 6.73346
  Prefactor  = 9.4369e-10
  norm       = 0
  Prefactor  = 0
  Prefactor  = 2.77556e-10
  Prefactor  = 5.09454
  Prefactor  = 0
  Prefactor  = 5.55112e-11
  Prefactor  = 1.44932
  Prefactor  = 81.8004
  Normalizat = 1.30612
  Prefactor  = 0.919766
 **********
 **   18 **HESSE 
 **********

 FCN=   5161.363     FROM HESSE     STATUS=OK           412 CALLS     2309 TOTAL
                     EDM=   .11E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        44.989        .15086E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.2866        2.3190        .97801E-03   -1.5685    
   3  Prefactor      .0000        8.8982        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .22204E-09    31.120        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     10.588        19.297        .30778E-03   -1.5643    
   6  Prefactor     .65701        9.7872        .62970E-03   -1.5692    
   7  norm           .0000        4.6704        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor      .0000        11.013        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     10.815        11.508        .30515E-03   -1.5642    
  10  Prefactor     69.728        57.424        .12134E-03   -1.5541    
  11  Prefactor      .0000        5.7857        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     6.7335        4.7111        .38637E-03   -1.5656    
  13  Prefactor     .94369E-09    57.822        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm           .0000        2.4523        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor      .0000        2.0499        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .27756E-09    22.852        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     5.0945        5.4745        .44475E-03   -1.5663    
  18  Prefactor      .0000        9.7778        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .55511E-10    19.499        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     1.4493        6.5342        .89599E-03   -1.5684    
  21  Prefactor     81.800        53.985        .11126E-03   -1.5527    
  22  Normalizat    1.3061        .22089        .59223E-01   -.83384    
  23  Prefactor     .91977        .16268        .45250E-01   -.95454    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.10955e-06
Minuit parameter uncertainties:
  1  1.66883e-07
  2  2.31901
  3  2.75225e-06
  4  0.000173347
  5  19.2968
  6  5.0716
  7  3.24484e-07
  8  1.23238e-05
  9  11.5079
  10  57.4246
  11  1.13309e-06
  12  4.71109
  13  0.000464436
  14  3.32348e-07
  15  1.45236e-07
  16  0.000158904
  17  5.47455
  18  1.25818e-05
  19  5.59415e-05
  20  6.15474
  21  53.9855
  22  0.221047
  23  0.162769
Done.

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

Extracting fit parameters...

4FGL J2159.8-4751
   Spectrum: PowerLaw
311    Prefactor:  6.973e+01  5.742e+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.198e-01  1.628e-01  0.000e+00  1.000e+01 ( 1.000e+00)
583        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
584        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
581   Normalization:  1.306e+00  2.210e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.97
Ra Dec: 329.962 -47.852
Photon Index (Fixed Index): 2.52 +/- 0.00
Photon Flux (Fixed Index): 7.28e-08 +/- 5.99e-08
Energy Flux (Fixed Index): 2.06e-05 +/- 1.70e-05

TS (Fixed Index): 1.97
Ra Dec: 329.962 -47.852
Photon Flux Upper Limit: 1.93e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.51e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/648303/likelihoodResults_696816001_697075201_4FGL_J2159.8-4751_daily_bin1765.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) = 5161.17049972
delta logL = 0.192112984562

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5161.14393157
delta logL = 0.218681138839

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    34.509       1.0000          .0000       .10000E+07
     2 'Index     '    3.2376       1.0000          .0000       10.000    
     3 'Normalizat'    1.2605       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94553       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=   5161.144     FROM MIGRAD    STATUS=CONVERGED     61 CALLS      278 TOTAL
                     EDM=   .54E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     34.340        492.39        .17025E-03   -.93955E-03
   2  Index         3.2410        3.5043        .15738        .37252E-04
   3  Normalizat    1.2581        .79230E-01    .60157E-01   -.27171E-04
   4  Prefactor     .94738        .56196E-01    .45583E-01    .39656E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 34.3404
  Index      = 3.24098
  Normalizat = 1.25809
  Prefactor  = 0.947383
 **********
 **   18 **HESSE 
 **********

 FCN=   5161.144     FROM HESSE     STATUS=OK            33 CALLS      311 TOTAL
                     EDM=   .20E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     34.340        206.20        .68100E-05   -1.5591    
   2  Index         3.2410        3.0682        .54225E-02   -.35950    
   3  Normalizat    1.2581        .28765        .26606E-03   -.84826    
   4  Prefactor     .94738        .21295        .22579E-03   -.94505    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.04653e-11
Minuit parameter uncertainties:
  1  168.307
  2  3.346
  3  0.288019
  4  0.213139
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/648303': 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) = 5161.14388268
delta logL = 0.21873002294

Extracting fit parameters...

4FGL J2159.8-4751
   Spectrum: PowerLaw
311    Prefactor:  3.434e+01  1.683e+02  0.000e+00  1.000e+06 ( 1.000e-13)
312        Index:  3.241e+00  3.346e+00  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.474e-01  2.131e-01  0.000e+00  1.000e+01 ( 1.000e+00)
583        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
584        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
581   Normalization:  1.258e+00  2.880e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.49
Ra Dec: 329.962 -47.852
Photon Index (Free Index): 3.24 +/- 3.35
Photon Flux (Free Index): 1.03e-07 +/- 8.52e-08
Energy Flux (Free Index): 1.86e-05 +/- 2.04e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/648303/cmap_HighResolution_696816001_697075201_4FGL_J2159.8-4751_daily_bin1765.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.51e-02', comment='SUCCESS', photon_flux='7.28e-08', energy_flux2='1.86e-05', photon_flux_error='5.99e-08', dlogl='2.19e-01', energy_flux='2.06e-05', photon_flux2='1.03e-07', job_status='DONE', time_completed='2023-02-03 01:55:51.119149', photon_index_error2='3.35', photon_index2='3.24', ts='1.97', fit_tolerance='1e-08', GAL='0.92', photon_index_error='0.00', photon_flux_upper_limit='1.93e-07', energy_flux_error2='2.04e-05', EG='1.31', time_epoch_completed='1675418151.12', return_code='0', job_id='648303', GAL2='0.95', EG2='1.26', return_code2='0', energy_flux_error='1.70e-05', photon_flux_error2='8.52e-08', ts2='2.49', photon_index='2.52' WHERE bin_id='1765' AND source_name='4FGL J2159.8-4751' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Feb  3 01:55:51 PST 2023


------------------------------------------------------------
Sender: LSF System <scs@bullet0175>
Subject: Job 648303: <4FGL_J2159.8-4751_daily_bin1765> in cluster <slac> Done

Job <4FGL_J2159.8-4751_daily_bin1765> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Fri Feb  3 01:45:12 2023
Job was executed on host(s) <bullet0175>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Feb  3 01:45:31 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Feb  3 01:45:31 2023
Terminated at Fri Feb  3 01:55:51 2023
Results reported at Fri Feb  3 01:55:51 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2159.8-4751_daily_bin1765 329.962 -47.8518 696816001 697075201 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 :                                   466.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             266.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   620 sec.
    Turnaround time :                            639 sec.

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

