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


Performing analysis on: 4FGL_J2159.8-4751_daily_bin1773
RA = 329.962, Dec = -47.8518
tmin = 698889601, tmax = 699148801
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='804567', job_status='RUN', time_executed='2023-02-27 10:31:52.111994', time_epoch_executed='1677522712.11' WHERE source_name='4FGL J2159.8-4751' and cadence='daily' and bin_id='1773'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/804567

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/804567/ft1_4FGL_J2159.8-4751_daily_bin1773.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/804567/ft2_4FGL_J2159.8-4751_daily_bin1773.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/804567/ft1_4FGL_J2159.8-4751_daily_bin1773.fits outfile=/scratch/kocevski/804567/ft1_filteredMKT_4FGL_J2159.8-4751_daily_bin1773.fits ra=329.962 dec=-47.8518 rad=12.0 tmin=698889601.0 tmax=699148801.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.97
user 2.74
sys 0.19

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

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

Number of photons that the gtmktime cut: 88

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/804567/ft1_filtered_4FGL_J2159.8-4751_daily_bin1773.fits" evtable="EVENTS" scfile=/scratch/kocevski/804567/ft2_4FGL_J2159.8-4751_daily_bin1773.fits sctable="SC_DATA" outfile=/scratch/kocevski/804567/ltcube_698889601_699148801_4FGL_J2159.8-4751_daily_bin1773.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/804567/ft2_4FGL_J2159.8-4751_daily_bin1773.fits
.....................!
real 14.89
user 14.51
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/804567/ft1_filtered_4FGL_J2159.8-4751_daily_bin1773.fits evtable="EVENTS" scfile=/scratch/kocevski/804567/ft2_4FGL_J2159.8-4751_daily_bin1773.fits sctable="SC_DATA" expcube=/scratch/kocevski/804567/ltcube_698889601_699148801_4FGL_J2159.8-4751_daily_bin1773.fits outfile=/scratch/kocevski/804567/expmap_698889601_699148801_4FGL_J2159.8-4751_daily_bin1773.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/804567/ltcube_698889601_699148801_4FGL_J2159.8-4751_daily_bin1773.fits
.....................!
real 191.30
user 185.89
sys 4.88

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/804567/ft1_filtered_4FGL_J2159.8-4751_daily_bin1773.fits scfile=/scratch/kocevski/804567/ft2_4FGL_J2159.8-4751_daily_bin1773.fits outfile=/scratch/kocevski/804567/cmap_698889601_699148801_4FGL_J2159.8-4751_daily_bin1773.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.54
user 0.38
sys 0.14

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/804567/ft1_filtered_4FGL_J2159.8-4751_daily_bin1773.fits evtable="EVENTS" scfile=/scratch/kocevski/804567/ft2_4FGL_J2159.8-4751_daily_bin1773.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/804567/Model_4FGL_J2159.8-4751_daily_bin1773.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/804567/ft1_filtered_4FGL_J2159.8-4751_daily_bin1773.fits......................!
real 19.21
user 18.01
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    18.783       1.0000          .0000       .10000E+07
     2 'norm      '    6.7610       1.0000          .0000       .10000E+07
     3 'Prefactor '    27.132       1.0000          .0000       .10000E+07
     4 'Prefactor '    .20197E-03   1.0000          .0000       .10000E+07
     5 'Prefactor '    .22395E-02   1.0000          .0000       .10000E+07
     6 'Prefactor '    8.8972       1.0000          .0000       .10000E+07
     7 'norm      '    13.241       1.0000          .0000       .10000E+07
     8 'Prefactor '    15.158       1.0000          .0000       .10000E+07
     9 'Prefactor '    .49463E-01   1.0000          .0000       .10000E+07
    10 'Prefactor '    134.78       1.0000          .0000       .10000E+07
    11 'Prefactor '    .27939E-03   1.0000          .0000       .10000E+07
    12 'Prefactor '    322.97       1.0000          .0000       .10000E+07
    13 'Prefactor '    8.5645       1.0000          .0000       .10000E+07
    14 'norm      '    .15094       1.0000          .0000       .10000E+07
    15 'Prefactor '    407.42       1.0000          .0000       .10000E+07
    16 'Prefactor '    .20004E-02   1.0000          .0000       .10000E+07
    17 'Prefactor '    .53306       1.0000          .0000       .10000E+07
    18 'Prefactor '    .13191E-03   1.0000          .0000       .10000E+07
    19 'Prefactor '    51.389       1.0000          .0000       .10000E+07
    20 'Prefactor '    .61859E-01   1.0000          .0000       .10000E+07
    21 'Prefactor '    .49752       1.0000          .0000       .10000E+07
    22 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    23 'Prefactor '    .86149       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=   957.8960     FROM MIGRAD    STATUS=CONVERGED    219 CALLS     2995 TOTAL
                     EDM=   .75E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     19.523        29.738        .79787E-05    .18927E-02
   2  norm          6.7709        3.3179       -.17291E-06    .85197E-04
   3  Prefactor     27.448        22.102       -.24428E-05   -.17178E-03
   4  Prefactor      .0000        20.788        .87275E-05** at limit **
   5  Prefactor     .38858E-09    29.329       -.40120E-04** at limit **
   6  Prefactor     9.1407        12.476        .12225E-04   -.87746E-03
   7  norm          13.408        13.409        .16571E-05   -.13775E-03
   8  Prefactor     16.553        40.648       -.25892E-04   -.12147E-02
   9  Prefactor      .0000        39.459        .58609E-05** at limit **
  10  Prefactor     134.59        6.7378       -.14375E-05    .32653E-01
  11  Prefactor     .19205E-03    314.62        .35456E-04** at limit **
  12  Prefactor     327.16        36.683       -.62880E-06   -.63982E-01
  13  Prefactor     8.3586        8.4215       -.73904E-05    .97681E-02
  14  norm           .0000        53.814        .37414E-05** at limit **
  15  Prefactor     421.93        268.27        .37947E-04   -.52661E-01
  16  Prefactor     .10837E-02    693.80       -.24510E-04** at limit **
  17  Prefactor     .33029E-07    119.20        .41593E-04** at limit **
  18  Prefactor     .30159E-02    116.90       -.59601E-05** at limit **
  19  Prefactor     62.070        102.20       -.58102E-05   -.63286E-01
  20  Prefactor      .0000        18.348        .12176E-05** at limit **
  21  Prefactor     .28866E-08    126.10        .23772E-04** at limit **
  22  Normalizat    .10000E-01    .54726        .31113E-03** at limit **
  23  Prefactor     .85369        .19113       -.86271E-04   -.11052E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 19.5227
  norm       = 6.77095
  Prefactor  = 27.4481
  Prefactor  = 0
  Prefactor  = 3.88578e-10
  Prefactor  = 9.1407
  norm       = 13.4084
  Prefactor  = 16.5526
  Prefactor  = 0
  Prefactor  = 134.591
  Prefactor  = 0.000192049
  Prefactor  = 327.161
  Prefactor  = 8.35862
  norm       = 0
  Prefactor  = 421.928
  Prefactor  = 0.00108372
  Prefactor  = 3.30291e-08
  Prefactor  = 0.0030159
  Prefactor  = 62.0704
  Prefactor  = 0
  Prefactor  = 2.88658e-09
  Normalizat = 0.01
  Prefactor  = 0.853686
 **********
 **   18 **HESSE 
 **********

 FCN=   957.8960     FROM HESSE     STATUS=OK           408 CALLS     3403 TOTAL
                     EDM=   .70E-04    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     19.523        29.804        .23082E-03   -1.5620    
   2  norm          6.7709        3.3203        .38565E-03   -1.5656    
   3  Prefactor     27.448        22.103        .19202E-03   -1.5603    
   4  Prefactor      .0000        20.759        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .38858E-09    29.286        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     9.1407        12.556        .33579E-03   -1.5647    
   7  norm          13.408        13.396        .27501E-03   -1.5635    
   8  Prefactor     16.553        40.759        .25699E-03   -1.5627    
   9  Prefactor      .0000        39.271        .15562E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     134.59        751.93        .86142E-04   -1.5476    
  11  Prefactor     .19205E-03    331.31        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     327.16        137.06        .55653E-04   -1.5346    
  13  Prefactor     8.3586        .13949E+06    .34229E-03   -1.5650    
  14  norm           .0000        53.607        .12724E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     421.93        272.77        .49553E-04   -1.5297    
  16  Prefactor     .10837E-02    797.75        .42118E-03   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .33029E-07    118.04        .75451E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .30159E-02    398.78        .42118E-03   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     62.070        119.19        .13951E-03   -1.5550    
  20  Prefactor      .0000        18.283        .15096E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .28866E-08    125.62        .78959E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .10000E-01    .46915        .18612       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .85369        .21018        .44512E-01   -.97779    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.04253e-05
Minuit parameter uncertainties:
  1  29.8042
  2  3.32032
  3  22.1031
  4  1.73975e-05
  5  0.000217805
  6  12.5563
  7  13.3963
  8  40.7593
  9  4.37413e-06
  10  636.371
  11  0.50452
  12  137.063
  13  2213.19
  14  2.39483e-05
  15  272.774
  16  1.85985
  17  0.00395012
  18  2.19348
  19  119.198
  20  1.36142e-06
  21  0.00120061
  22  4.42755e-06
  23  0.210376
Done.

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

Extracting fit parameters...

4FGL J2159.8-4751
   Spectrum: PowerLaw
311    Prefactor:  1.346e+02  6.364e+02  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:  8.537e-01  2.104e-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  4.428e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.05
Ra Dec: 329.962 -47.852
Photon Flux Upper Limit: 2.44e-06 ph cm-2 s-1
Energy Flux Upper Limit: 1.90e-01 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/804567/likelihoodResults_698889601_699148801_4FGL_J2159.8-4751_daily_bin1773.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) = 957.790058566
delta logL = 0.105986133861

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 957.786678987
delta logL = 0.109365712239

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    340.91       1.0000          .0000       .10000E+07
     2 'Index     '    1.7937       1.0000          .0000       10.000    
     3 'Normalizat'    .10002E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84634       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5850E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   957.7867     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      236 TOTAL
                     EDM=   .27E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     336.52        770.99       -.23303E-06    .11959E-03
   2  Index         1.7920        1.1472       -.28202E-05    .83690E-05
   3  Normalizat    .10000E-01    .38328       -.35062E-04** at limit **
   4  Prefactor     .84649        .14720        .58333E-05    .31566E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 336.519
  Index      = 1.79204
  Normalizat = 0.01
  Prefactor  = 0.846493
 **********
 **   18 **HESSE 
 **********

 FCN=   957.7867     FROM HESSE     STATUS=OK            29 CALLS      265 TOTAL
                     EDM=   .94E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     336.52        770.81        .10834E-04   -1.5341    
   2  Index         1.7920        1.1456        .79647E-02   -.69657    
   3  Normalizat    .10000E-01    .60184        .11109E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .84649        .16286        .17463E-03   -.98037    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.39226e-10
Minuit parameter uncertainties:
  1  771.038
  2  1.16331
  3  3.11345e-05
  4  0.162957
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/804567': 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) = 957.786660764
delta logL = 0.109383935735

Extracting fit parameters...

4FGL J2159.8-4751
   Spectrum: PowerLaw
311    Prefactor:  3.365e+02  7.710e+02  0.000e+00  1.000e+06 ( 1.000e-13)
312        Index:  1.792e+00  1.163e+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:  8.465e-01  1.630e-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  3.113e-05  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.05
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/804567/cmap_HighResolution_698889601_699148801_4FGL_J2159.8-4751_daily_bin1773.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.90e-01', job_status='DONE', photon_flux_upper_limit='2.44e-06', time_completed='2023-02-27 10:38:10.662498', job_id='804567', GAL2='0.85', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1677523090.66', return_code2='0', ts='0.05', comment='SUCCESS', return_code='0', GAL='0.85', dlogl='1.09e-01', ts2='0.28', photon_index_error='0.00', photon_index='2.52' WHERE bin_id='1773' AND source_name='4FGL J2159.8-4751' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Feb 27 10:38:10 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0016>
Subject: Job 804567: <4FGL_J2159.8-4751_daily_bin1773> in cluster <slac> Done

Job <4FGL_J2159.8-4751_daily_bin1773> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Mon Feb 27 10:30:35 2023
Job was executed on host(s) <bullet0016>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Feb 27 10:30:38 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Feb 27 10:30:38 2023
Terminated at Mon Feb 27 10:38:25 2023
Results reported at Mon Feb 27 10:38:25 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2159.8-4751_daily_bin1773 329.962 -47.8518 698889601 699148801 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 :                                   379.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             228.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   467 sec.
    Turnaround time :                            498 sec.

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

