aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 25 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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

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

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

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


Performing analysis on: 4FGL_J2159.8-4751_daily_bin1706
RA = 329.962, Dec = -47.8518
tmin = 681523201, tmax = 681782401
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='506477', job_status='RUN', time_executed='2022-08-10 02:17:01.879138', time_epoch_executed='1660123021.88' WHERE source_name='4FGL J2159.8-4751' and cadence='daily' and bin_id='1706'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/506477

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/506477/ft1_4FGL_J2159.8-4751_daily_bin1706.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/506477/ft2_4FGL_J2159.8-4751_daily_bin1706.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/506477/ft1_4FGL_J2159.8-4751_daily_bin1706.fits outfile=/scratch/kocevski/506477/ft1_filteredMKT_4FGL_J2159.8-4751_daily_bin1706.fits ra=329.962 dec=-47.8518 rad=12.0 tmin=681523201.0 tmax=681782401.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.66
user 2.40
sys 0.20

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

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

Number of photons that the gtmktime cut: 93

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/506477/ft1_filtered_4FGL_J2159.8-4751_daily_bin1706.fits" evtable="EVENTS" scfile=/scratch/kocevski/506477/ft2_4FGL_J2159.8-4751_daily_bin1706.fits sctable="SC_DATA" outfile=/scratch/kocevski/506477/ltcube_681523201_681782401_4FGL_J2159.8-4751_daily_bin1706.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/506477/ft2_4FGL_J2159.8-4751_daily_bin1706.fits
.....................!
real 14.60
user 14.21
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/506477/ft1_filtered_4FGL_J2159.8-4751_daily_bin1706.fits evtable="EVENTS" scfile=/scratch/kocevski/506477/ft2_4FGL_J2159.8-4751_daily_bin1706.fits sctable="SC_DATA" expcube=/scratch/kocevski/506477/ltcube_681523201_681782401_4FGL_J2159.8-4751_daily_bin1706.fits outfile=/scratch/kocevski/506477/expmap_681523201_681782401_4FGL_J2159.8-4751_daily_bin1706.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/506477/ltcube_681523201_681782401_4FGL_J2159.8-4751_daily_bin1706.fits
.....................!
real 191.37
user 186.13
sys 4.83

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/506477/ft1_filtered_4FGL_J2159.8-4751_daily_bin1706.fits scfile=/scratch/kocevski/506477/ft2_4FGL_J2159.8-4751_daily_bin1706.fits outfile=/scratch/kocevski/506477/cmap_681523201_681782401_4FGL_J2159.8-4751_daily_bin1706.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.55
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/506477/ft1_filtered_4FGL_J2159.8-4751_daily_bin1706.fits scfile=/scratch/kocevski/506477/ft2_4FGL_J2159.8-4751_daily_bin1706.fits outfile=/scratch/kocevski/506477/cmap_HighResolution_681523201_681782401_4FGL_J2159.8-4751_daily_bin1706.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.59
user 0.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/506477/ft1_filtered_4FGL_J2159.8-4751_daily_bin1706.fits evtable="EVENTS" scfile=/scratch/kocevski/506477/ft2_4FGL_J2159.8-4751_daily_bin1706.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/506477/Model_4FGL_J2159.8-4751_daily_bin1706.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/506477/ft1_filtered_4FGL_J2159.8-4751_daily_bin1706.fits........................!
real 20.02
user 18.73
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    28.223       1.0000         .10000E-03   10000.    
     2 'norm      '    6.4596       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .11985E-01   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .28302E-02   1.0000         .10000E-03   10000.    
     5 'Prefactor '    218.32       1.0000         .10000E-03   10000.    
     6 'Prefactor '    30.397       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .13569E-02   1.0000         .10000E-03   10000.    
     8 'norm      '    25.900       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .65624E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .32791E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .17342E-02   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10107E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    26.808       1.0000         .10000E-03   10000.    
    14 'Prefactor '    197.23       1.0000         .10000E-03   10000.    
    15 'norm      '    .10775E-02   1.0000         .10000E-03   10000.    
    16 'Prefactor '    23.697       1.0000         .10000E-03   10000.    
    17 'Prefactor '    69.318       1.0000         .10000E-03   10000.    
    18 'Prefactor '    13.150       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .20460E-01   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .89037E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    18.693       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .30710E-02   1.0000         .10000E-03   10000.    
    23 'Prefactor '    23.534       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .22270E-02   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.4187       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=   1090.240     FROM MIGRAD    STATUS=CONVERGED    252 CALLS     2261 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     18.683        73.597        .87723E-05    .28626E-02
   2  norm          6.4303        8.0884       -.34870E-05   -.11007E-03
   3  Prefactor     .10022E-03    95.925       -.13026E-03** at limit **
   4  Prefactor     .10000E-03    10.814       -.17166E-04** at limit **
   5  Prefactor     213.71        124.29        .61349E-04   -.25952E-02
   6  Prefactor     29.042        12.630        .14909E-04   -.24239E-01
   7  Prefactor     .10000E-03    11.497       -.57982E-05** at limit **
   8  norm          26.102        24.051        .59470E-04    .43690E-02
   9  Prefactor     .10000E-03    18.912        .66035E-05** at limit **
  10  Prefactor     .10000E-03    16.776        .60232E-05** at limit **
  11  Prefactor     .10006E-03    70.869       -.14320E-03** at limit **
  12  Prefactor     .10000E-03    14.600        .31227E-04** at limit **
  13  Prefactor     26.060        16.535       -.70670E-05    .61193E-03
  14  Prefactor     267.55        353.67       -.14605E-03   -.21322E-03
  15  norm          .10000E-03    8.9436       -.38717E-05** at limit **
  16  Prefactor     23.824        17.872       -.85624E-05    .95189E-03
  17  Prefactor     65.335        106.93        .92170E-04    .78458E-03
  18  Prefactor     12.749        18.111       -.31362E-04   -.10330E-02
  19  Prefactor     .10000E-03    64.760       -.66122E-05** at limit **
  20  Prefactor     .10000E-03    36.239        .12994E-04** at limit **
  21  Prefactor     19.272        24.815       -.18965E-04   -.34665E-03
  22  Prefactor     .10116E-03    100.18        .65010E-04** at limit **
  23  Prefactor     24.715        31.082       -.27437E-04   -.42058E-03
  24  Prefactor     .10000E-03    38.961        .43689E-04** at limit **
  25  Normalizat    .10000E-01    .54819       -.45782E-03** at limit **
  26  Prefactor     1.4148        .24993       -.33678E-04    .12137E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 18.6827
  norm       = 6.43034
  Prefactor  = 0.000100219
  Prefactor  = 0.0001
  Prefactor  = 213.713
  Prefactor  = 29.042
  Prefactor  = 0.0001
  norm       = 26.1022
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100059
  Prefactor  = 0.0001
  Prefactor  = 26.0595
  Prefactor  = 267.545
  norm       = 0.0001
  Prefactor  = 23.8237
  Prefactor  = 65.335
  Prefactor  = 12.749
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 19.2724
  Prefactor  = 0.000101161
  Prefactor  = 24.7151
  Prefactor  = 0.000100002
  Normalizat = 0.01
  Prefactor  = 1.41481
 **********
 **   18 **HESSE 
 **********

 FCN=   1090.240     FROM HESSE     STATUS=OK           504 CALLS     2765 TOTAL
                     EDM=   .16E-04    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     18.683        73.790        .18853E-02   -1.4843    
   2  norm          6.4303        8.0845        .39478E-02   -1.5201    
   3  Prefactor     .10022E-03    95.775        .90829E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    10.842        .99454E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     213.71        166.61        .68431E-03   -1.2774    
   6  Prefactor     29.042        86.320        .18168E-02   -1.4630    
   7  Prefactor     .10000E-03    11.481        .10274E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          26.102        24.416        .19679E-02   -1.4686    
   9  Prefactor     .10000E-03    18.952        .10508E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    16.823        .10676E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10006E-03    70.680        .10176E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    14.491        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     26.060        16.589        .19343E-02   -1.4687    
  14  Prefactor     267.55        352.72        .71919E-03   -1.2422    
  15  norm          .10000E-03    8.8573        .10356E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     23.824        18.260        .20572E-02   -1.4731    
  17  Prefactor     65.335        159.21        .12053E-02   -1.4090    
  18  Prefactor     12.749        18.160        .27615E-02   -1.4994    
  19  Prefactor     .10000E-03    63.715        .91249E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    35.795        .10418E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     19.272        24.963        .23159E-02   -1.4830    
  22  Prefactor     .10116E-03    100.24        .99014E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     24.715        31.589        .20643E-02   -1.4713    
  24  Prefactor     .10000E-03    38.889        .10065E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .10000E-01    .44221        .20288       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     1.4148        .27994        .45276E-01   -.79954    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.57842e-05
Minuit parameter uncertainties:
  1  74.1544
  2  8.08589
  3  0.0091806
  4  1.79329e-05
  5  166.979
  6  86.6942
  7  9.79607e-06
  8  24.4256
  9  2.00776e-05
  10  1.92553e-05
  11  0.0040866
  12  8.39366e-05
  13  16.5917
  14  355.587
  15  4.59054e-05
  16  18.2645
  17  160.261
  18  18.1679
  19  0.000775346
  20  0.000123356
  21  24.977
  22  0.0216102
  23  31.6108
  24  0.000544011
  25  7.49707e-06
  26  0.28024
Done.

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

Extracting fit parameters...

4FGL J2159.8-4751
   Spectrum: PowerLaw
311    Prefactor:  1.001e-04  4.087e-03  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.415e+00  2.802e-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.000e-02  7.497e-06  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/506477/likelihoodResults_681523201_681782401_4FGL_J2159.8-4751_daily_bin1706.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): 102
logL (Free Index) = 1090.23975583
delta logL = -6.94111508892e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1090.23968776
delta logL = -1.34784340844e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.9430       1.0000          .0000       10.000    
     3 'Normalizat'    .10001E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4149       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=   1090.240     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      292 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .11095E-03    52.951        .18142E-01** at limit **
   2  Index         2.7743        6.8955        .50000        .70751E-05
   3  Normalizat    .10000E-01    .11531E-02    .11356E-01** at limit **
   4  Prefactor     1.4148        .98736E-02    .20010E-03    .16846E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000110951
  Index      = 2.77427
  Normalizat = 0.01
  Prefactor  = 1.41481
 **********
 **   18 **HESSE 
 **********

 FCN=   1090.240     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      321 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .11095E-03    393.46        .23011E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.7743        5.5235        .50000       -.46134    
   3  Normalizat    .10000E-01    .87828E-02    .22712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.4148        .27219E-01    .80040E-05   -.79954    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.17185e-08
Minuit parameter uncertainties:
  1  0.132157
  2  760.684
  3  1.61103e-08
  4  0.0272188
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/506477': 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): 102
logL (Free Index) = 1090.2396868
delta logL = -3.81173549613e-07

Extracting fit parameters...

4FGL J2159.8-4751
   Spectrum: PowerLaw
311    Prefactor:  1.110e-04  1.322e-01  1.000e-04  1.000e+04 ( 1.000e-13)
312        Index:  2.774e+00  7.607e+02  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.415e+00  2.722e-02  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.000e-02  1.611e-08  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 329.962 -47.852

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/506477/cmap_HighResolution_681523201_681782401_4FGL_J2159.8-4751_daily_bin1706.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.17e-02', job_status='DONE', photon_flux_upper_limit='2.78e-07', time_completed='2022-08-10 02:23:17.853297', job_id='506477', GAL2='1.41', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1660123397.85', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.41', dlogl='-3.81e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.52' WHERE bin_id='1706' AND source_name='4FGL J2159.8-4751' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Aug 10 02:23:17 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0156>
Subject: Job 506477: <4FGL_J2159.8-4751_daily_bin1706> in cluster <slac> Done

Job <4FGL_J2159.8-4751_daily_bin1706> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Wed Aug 10 02:10:49 2022
Job was executed on host(s) <bullet0156>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Aug 10 02:16:28 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Aug 10 02:16:28 2022
Terminated at Wed Aug 10 02:23:18 2022
Results reported at Wed Aug 10 02:23:18 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2159.8-4751_daily_bin1706 329.962 -47.8518 681523201 681782401 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 :                                   378.18 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             280.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   410 sec.
    Turnaround time :                            749 sec.

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

