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


Performing analysis on: 4FGL_J2159.8-4751_daily_bin1768
RA = 329.962, Dec = -47.8518
tmin = 697593601, tmax = 697852801
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='283218', job_status='RUN', time_executed='2023-02-12 01:41:31.028024', time_epoch_executed='1676194891.03' WHERE source_name='4FGL J2159.8-4751' and cadence='daily' and bin_id='1768'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/283218

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/283218/ft1_4FGL_J2159.8-4751_daily_bin1768.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/283218/ft2_4FGL_J2159.8-4751_daily_bin1768.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/283218/ft1_4FGL_J2159.8-4751_daily_bin1768.fits outfile=/scratch/kocevski/283218/ft1_filteredMKT_4FGL_J2159.8-4751_daily_bin1768.fits ra=329.962 dec=-47.8518 rad=12.0 tmin=697593601.0 tmax=697852801.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.67
user 3.44
sys 0.19

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

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

Number of photons that the gtmktime cut: 577

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/283218/ft1_filtered_4FGL_J2159.8-4751_daily_bin1768.fits" evtable="EVENTS" scfile=/scratch/kocevski/283218/ft2_4FGL_J2159.8-4751_daily_bin1768.fits sctable="SC_DATA" outfile=/scratch/kocevski/283218/ltcube_697593601_697852801_4FGL_J2159.8-4751_daily_bin1768.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/283218/ft2_4FGL_J2159.8-4751_daily_bin1768.fits
.....................!
real 14.22
user 13.76
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/283218/ft1_filtered_4FGL_J2159.8-4751_daily_bin1768.fits evtable="EVENTS" scfile=/scratch/kocevski/283218/ft2_4FGL_J2159.8-4751_daily_bin1768.fits sctable="SC_DATA" expcube=/scratch/kocevski/283218/ltcube_697593601_697852801_4FGL_J2159.8-4751_daily_bin1768.fits outfile=/scratch/kocevski/283218/expmap_697593601_697852801_4FGL_J2159.8-4751_daily_bin1768.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/283218/ltcube_697593601_697852801_4FGL_J2159.8-4751_daily_bin1768.fits
.....................!
real 190.49
user 185.95
sys 3.95

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/283218/ft1_filtered_4FGL_J2159.8-4751_daily_bin1768.fits scfile=/scratch/kocevski/283218/ft2_4FGL_J2159.8-4751_daily_bin1768.fits outfile=/scratch/kocevski/283218/cmap_697593601_697852801_4FGL_J2159.8-4751_daily_bin1768.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.57
user 0.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/283218/ft1_filtered_4FGL_J2159.8-4751_daily_bin1768.fits scfile=/scratch/kocevski/283218/ft2_4FGL_J2159.8-4751_daily_bin1768.fits outfile=/scratch/kocevski/283218/cmap_HighResolution_697593601_697852801_4FGL_J2159.8-4751_daily_bin1768.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=329.962 yref=-47.8518 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.57
user 0.38
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/283218/ft1_filtered_4FGL_J2159.8-4751_daily_bin1768.fits evtable="EVENTS" scfile=/scratch/kocevski/283218/ft2_4FGL_J2159.8-4751_daily_bin1768.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/283218/Model_4FGL_J2159.8-4751_daily_bin1768.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/283218/ft1_filtered_4FGL_J2159.8-4751_daily_bin1768.fits.....................!
real 48.72
user 47.34
sys 1.26

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .79047E-02   1.0000          .0000       .10000E+07
     2 'norm      '    .97615       1.0000          .0000       .10000E+07
     3 'Prefactor '    8.7752       1.0000          .0000       .10000E+07
     4 'Prefactor '    13.563       1.0000          .0000       .10000E+07
     5 'Prefactor '    .48051E-03   1.0000          .0000       .10000E+07
     6 'Prefactor '    .41202E-03   1.0000          .0000       .10000E+07
     7 'norm      '    7.6457       1.0000          .0000       .10000E+07
     8 'Prefactor '    16.377       1.0000          .0000       .10000E+07
     9 'Prefactor '    14.011       1.0000          .0000       .10000E+07
    10 'Prefactor '    51.754       1.0000          .0000       .10000E+07
    11 'Prefactor '    .18032E-03   1.0000          .0000       .10000E+07
    12 'Prefactor '    8.3423       1.0000          .0000       .10000E+07
    13 'Prefactor '    .14703E-05   1.0000          .0000       .10000E+07
    14 'norm      '    .92906E-04   1.0000          .0000       .10000E+07
    15 'Prefactor '    3.6228       1.0000          .0000       .10000E+07
    16 'Prefactor '    5.5299       1.0000          .0000       .10000E+07
    17 'Prefactor '    .45988       1.0000          .0000       .10000E+07
    18 'Prefactor '    38.280       1.0000          .0000       .10000E+07
    19 'Prefactor '    21.681       1.0000          .0000       .10000E+07
    20 'Prefactor '    .58521E-03   1.0000          .0000       .10000E+07
    21 'Prefactor '    72.936       1.0000          .0000       .10000E+07
    22 'Normalizat'    1.0584       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .79972       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=   6238.472     FROM MIGRAD    STATUS=CONVERGED    148 CALLS     1868 TOTAL
                     EDM=   .90E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .21871E-07    9.6215        .47521E-06** at limit **
   2  norm          .97640        1.6682        .54369E-07   -.12080E-03
   3  Prefactor     8.8806        8.5359        .18521E-06    .15360E-02
   4  Prefactor     13.513        9.0611       -.59318E-07   -.72229E-01
   5  Prefactor     .69722E-07    12.689       -.31137E-06** at limit **
   6  Prefactor     .22204E-09    5.5562        .83867E-07** at limit **
   7  norm          7.6408        4.3420        .52065E-07    .43807E-03
   8  Prefactor     16.403        6.9250        .47207E-07   -.70276E-01
   9  Prefactor     14.100        6.4179        .47314E-07    .73225E-01
  10  Prefactor     54.262        28.722        .28980E-06   -.65536E-01
  11  Prefactor     .99920E-09    4.7260        .20305E-06** at limit **
  12  Prefactor     8.3533        4.0785       -.85158E-07   -.23657E-02
  13  Prefactor     .98865E-06    67.675       -.18951E-05** at limit **
  14  norm           .0000        2.7954        .33386E-06** at limit **
  15  Prefactor     3.6134        3.9354       -.86664E-07   -.78226E-03
  16  Prefactor     6.4161        10.027        .32721E-06   -.15639E-01
  17  Prefactor     .45550        6.6707       -.66818E-07    .27926E-04
  18  Prefactor     38.951        14.750        .11702E-06   -.17828E-01
  19  Prefactor     22.738        19.629        .21936E-06   -.25625E-01
  20  Prefactor     .10827E-03    25.444       -.83633E-06** at limit **
  21  Prefactor     72.800        2.1898       -.18051E-07    .71201E-02
  22  Normalizat    1.0528        .23259       -.45298E-05   -.69874E-04
  23  Prefactor     .80119        .16488        .77562E-06   -.82585E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.18714e-08
  norm       = 0.9764
  Prefactor  = 8.88064
  Prefactor  = 13.513
  Prefactor  = 6.9722e-08
  Prefactor  = 2.22045e-10
  norm       = 7.64082
  Prefactor  = 16.4033
  Prefactor  = 14.0996
  Prefactor  = 54.2617
  Prefactor  = 9.99201e-10
  Prefactor  = 8.3533
  Prefactor  = 9.88654e-07
  norm       = 0
  Prefactor  = 3.61336
  Prefactor  = 6.41612
  Prefactor  = 0.455501
  Prefactor  = 38.9508
  Prefactor  = 22.7379
  Prefactor  = 0.000108266
  Prefactor  = 72.8001
  Normalizat = 1.05278
  Prefactor  = 0.801188
 **********
 **   18 **HESSE 
 **********

 FCN=   6238.472     FROM HESSE     STATUS=OK           430 CALLS     2298 TOTAL
                     EDM=   .39E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .21871E-07    9.6521        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .97640        1.6729        .42919E-03   -1.5688    
   3  Prefactor     8.8806        8.5561        .33813E-03   -1.5648    
   4  Prefactor     13.513        24.105        .27171E-03   -1.5634    
   5  Prefactor     .69722E-07    12.760        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .22204E-09    5.4903        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          7.6408        4.4228        .36243E-03   -1.5653    
   8  Prefactor     16.403        11.724        .24722E-03   -1.5627    
   9  Prefactor     14.100        12.322        .26733E-03   -1.5633    
  10  Prefactor     54.262        35.127        .13901E-03   -1.5561    
  11  Prefactor     .99920E-09    4.7221        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     8.3533        4.0826        .34685E-03   -1.5650    
  13  Prefactor     .98865E-06    68.700        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm           .0000        2.7951        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     3.6134        3.9599        .53056E-03   -1.5670    
  16  Prefactor     6.4161        45.187        .42701E-03   -1.5657    
  17  Prefactor     .45550        6.6075        .82853E-03   -1.5694    
  18  Prefactor     38.951        25.287        .16164E-03   -1.5583    
  19  Prefactor     22.738        25.817        .21482E-03   -1.5613    
  20  Prefactor     .10827E-03    4.9199        .59050E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     72.800        39.529        .11710E-03   -1.5537    
  22  Normalizat    1.0528        .19543        .58255E-01   -.91283    
  23  Prefactor     .80119        .13827        .43714E-01   -.99685    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.90318e-06
Minuit parameter uncertainties:
  1  0.000918833
  2  1.67291
  3  8.55613
  4  24.1051
  5  0.00188645
  6  7.13317e-05
  7  4.42279
  8  11.7241
  9  12.3221
  10  35.1275
  11  0.000138952
  12  4.08261
  13  0.0164829
  14  1.5414e-05
  15  3.95993
  16  34.0547
  17  3.46971
  18  25.2869
  19  25.817
  20  0.0461589
  21  39.5287
  22  0.195561
  23  0.138331
Done.

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

Extracting fit parameters...

4FGL J2159.8-4751
   Spectrum: PowerLaw
311    Prefactor:  5.426e+01  3.513e+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:  8.012e-01  1.383e-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.053e+00  1.956e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.00
Ra Dec: 329.962 -47.852
Photon Index (Fixed Index): 2.52 +/- 0.00
Photon Flux (Fixed Index): 5.66e-08 +/- 3.66e-08
Energy Flux (Fixed Index): 1.60e-05 +/- 1.04e-05

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6237.73611711
delta logL = 0.736102840295

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6237.71645977
delta logL = 0.755760178665

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    63.026       1.0000          .0000       .10000E+07
     2 'Index     '    1.8311       1.0000          .0000       10.000    
     3 'Normalizat'    1.0913       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .78268       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=   6237.716     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      210 TOTAL
                     EDM=   .93E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 15.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     63.049        45.850        .10100E-05   -.17348E-02
   2  Index         1.8311        .51546        .37941E-04   -.54627E-04
   3  Normalizat    1.0914        .17968       -.48051E-05   -.11447E-02
   4  Prefactor     .78267        .13723        .16012E-05   -.10420E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 63.0486
  Index      = 1.83114
  Normalizat = 1.09136
  Prefactor  = 0.782667
 **********
 **   18 **HESSE 
 **********

 FCN=   6237.716     FROM HESSE     STATUS=OK            27 CALLS      237 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     63.049        45.352        .25194E-04   -1.5549    
   2  Index         1.8311        .51068        .80165E-02   -.68642    
   3  Normalizat    1.0914        .21046        .25351E-03   -.90030    
   4  Prefactor     .78267        .16082        .22510E-03   -1.0037    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.49662e-09
Minuit parameter uncertainties:
  1  45.3518
  2  0.51218
  3  0.210622
  4  0.160913
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/283218': 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) = 6237.71645964
delta logL = 0.75576031087

Extracting fit parameters...

4FGL J2159.8-4751
   Spectrum: PowerLaw
311    Prefactor:  6.305e+01  4.535e+01  0.000e+00  1.000e+06 ( 1.000e-13)
312        Index:  1.831e+00  5.122e-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:  7.827e-01  1.609e-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.091e+00  2.106e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.51
Ra Dec: 329.962 -47.852
Photon Index (Free Index): 1.83 +/- 0.51
Photon Flux (Free Index): 2.99e-08 +/- 2.84e-08
Energy Flux (Free Index): 3.26e-05 +/- 3.52e-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/283218/cmap_HighResolution_697593601_697852801_4FGL_J2159.8-4751_daily_bin1768.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.66e-08', energy_flux2='3.26e-05', photon_flux_error='3.66e-08', dlogl='7.56e-01', energy_flux='1.60e-05', photon_flux2='2.99e-08', job_status='DONE', time_completed='2023-02-12 01:50:44.282305', photon_index_error2='0.51', photon_index2='1.83', ts='6.00', fit_tolerance='1e-08', GAL='0.80', photon_index_error='0.00', energy_flux_error2='3.52e-05', EG='1.05', time_epoch_completed='1676195444.28', return_code='0', job_id='283218', GAL2='0.78', EG2='1.09', return_code2='0', energy_flux_error='1.04e-05', photon_flux_error2='2.84e-08', ts2='7.51', photon_index='2.52' WHERE bin_id='1768' AND source_name='4FGL J2159.8-4751' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Feb 12 01:50:44 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0209>
Subject: Job 283218: <4FGL_J2159.8-4751_daily_bin1768> in cluster <slac> Done

Job <4FGL_J2159.8-4751_daily_bin1768> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sun Feb 12 01:40:14 2023
Job was executed on host(s) <bullet0209>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Feb 12 01:40:36 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Feb 12 01:40:36 2023
Terminated at Sun Feb 12 01:50:45 2023
Results reported at Sun Feb 12 01:50:45 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2159.8-4751_daily_bin1768 329.962 -47.8518 697593601 697852801 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 :                                   555.31 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             314.91 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   608 sec.
    Turnaround time :                            631 sec.

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

