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


Performing analysis on: 4FGL_J2159.8-4751_daily_bin1777
RA = 329.962, Dec = -47.8518
tmin = 699926401, tmax = 700185601
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='924444', job_status='RUN', time_executed='2023-03-11 01:23:43.170666', time_epoch_executed='1678526623.17' WHERE source_name='4FGL J2159.8-4751' and cadence='daily' and bin_id='1777'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/924444

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/924444/ft1_4FGL_J2159.8-4751_daily_bin1777.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/924444/ft2_4FGL_J2159.8-4751_daily_bin1777.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/924444/ft1_4FGL_J2159.8-4751_daily_bin1777.fits outfile=/scratch/kocevski/924444/ft1_filteredMKT_4FGL_J2159.8-4751_daily_bin1777.fits ra=329.962 dec=-47.8518 rad=12.0 tmin=699926401.0 tmax=700185601.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.62
user 3.40
sys 0.20

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

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

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

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

Number of photons that the gtmktime cut: 706

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/924444/ft1_filtered_4FGL_J2159.8-4751_daily_bin1777.fits" evtable="EVENTS" scfile=/scratch/kocevski/924444/ft2_4FGL_J2159.8-4751_daily_bin1777.fits sctable="SC_DATA" outfile=/scratch/kocevski/924444/ltcube_699926401_700185601_4FGL_J2159.8-4751_daily_bin1777.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/924444/ft2_4FGL_J2159.8-4751_daily_bin1777.fits
.....................!
real 11.90
user 11.57
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/924444/ft1_filtered_4FGL_J2159.8-4751_daily_bin1777.fits evtable="EVENTS" scfile=/scratch/kocevski/924444/ft2_4FGL_J2159.8-4751_daily_bin1777.fits sctable="SC_DATA" expcube=/scratch/kocevski/924444/ltcube_699926401_700185601_4FGL_J2159.8-4751_daily_bin1777.fits outfile=/scratch/kocevski/924444/expmap_699926401_700185601_4FGL_J2159.8-4751_daily_bin1777.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/924444/ltcube_699926401_700185601_4FGL_J2159.8-4751_daily_bin1777.fits
.....................!
real 190.01
user 185.40
sys 4.25

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/924444/ft1_filtered_4FGL_J2159.8-4751_daily_bin1777.fits scfile=/scratch/kocevski/924444/ft2_4FGL_J2159.8-4751_daily_bin1777.fits outfile=/scratch/kocevski/924444/cmap_699926401_700185601_4FGL_J2159.8-4751_daily_bin1777.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.37
sys 0.14

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

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

This is gtbin version HEAD
real 0.54
user 0.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    16.629       1.0000          .0000       .10000E+07
     2 'norm      '    1.3413       1.0000          .0000       .10000E+07
     3 'Prefactor '    .89961E-06   1.0000          .0000       .10000E+07
     4 'Prefactor '    .36082E-08   1.0000          .0000       .10000E+07
     5 'Prefactor '    .62655E-06   1.0000          .0000       .10000E+07
     6 'Prefactor '    3.4523       1.0000          .0000       .10000E+07
     7 'norm      '    21.039       1.0000          .0000       .10000E+07
     8 'Prefactor '    .55039E-06   1.0000          .0000       .10000E+07
     9 'Prefactor '    2.9373       1.0000          .0000       .10000E+07
    10 'Prefactor '    .42827E-06   1.0000          .0000       .10000E+07
    11 'Prefactor '    .76050E-08   1.0000          .0000       .10000E+07
    12 'Prefactor '    13.007       1.0000          .0000       .10000E+07
    13 'Prefactor '    18.696       1.0000          .0000       .10000E+07
    14 'norm      '    .38858E-09   1.0000          .0000       .10000E+07
    15 'Prefactor '    .33701E-06   1.0000          .0000       .10000E+07
    16 'Prefactor '    10.273       1.0000          .0000       .10000E+07
    17 'Prefactor '    4.8275       1.0000          .0000       .10000E+07
    18 'Prefactor '    .42122E-06   1.0000          .0000       .10000E+07
    19 'Prefactor '    57.193       1.0000          .0000       .10000E+07
    20 'Prefactor '    .15526E-06   1.0000          .0000       .10000E+07
    21 'Prefactor '    11.931       1.0000          .0000       .10000E+07
    22 'Normalizat'    .80309       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.1633       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=   7558.743     FROM MIGRAD    STATUS=CONVERGED    150 CALLS     2238 TOTAL
                     EDM=   .70E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     16.618        1.8122        .19047E-07   -.12021    
   2  norm          1.3409        1.3441       -.11328E-06    .23604E-02
   3  Prefactor      .0000        6.7542        .37714E-06** at limit **
   4  Prefactor     .29976E-08    9.6019        .20003E-05** at limit **
   5  Prefactor      .0000        97.505        .18652E-05** at limit **
   6  Prefactor     3.4521        3.0829        .47500E-07    .77663E-03
   7  norm          21.038        5.9150       -.25585E-07   -.49077E-03
   8  Prefactor     .63283E-08    9.1616        .87761E-06** at limit **
   9  Prefactor     2.9374        7.6850       -.93594E-06   -.14428E-02
  10  Prefactor     .39968E-08    38.703        .15831E-05** at limit **
  11  Prefactor      .0000        3.8307        .69439E-06** at limit **
  12  Prefactor     13.008        4.5769       -.13177E-07   -.31293E-02
  13  Prefactor     18.691        1.0984       -.85529E-08    .58262E-02
  14  norm          .55511E-10    1.8366        .26126E-06** at limit **
  15  Prefactor      .0000        1.2963       -.40687E-06** at limit **
  16  Prefactor     10.090        2.3127        .44173E-07    .11905E-01
  17  Prefactor     4.8290        5.7875       -.29400E-06   -.24869E-03
  18  Prefactor     .62728E-08    22.252       -.76033E-06** at limit **
  19  Prefactor     57.192        1.5668        .21336E-07   -.53886E-01
  20  Prefactor     .55511E-10    3.0289        .11432E-05** at limit **
  21  Prefactor     11.928        1.1995        .27918E-07   -.13399E-01
  22  Normalizat    .80287        .19824        .26733E-04   -.14700E-03
  23  Prefactor     1.1635        .15377        .74540E-05   -.25450E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 16.6181
  norm       = 1.34091
  Prefactor  = 0
  Prefactor  = 2.9976e-09
  Prefactor  = 0
  Prefactor  = 3.45208
  norm       = 21.0379
  Prefactor  = 6.32827e-09
  Prefactor  = 2.93741
  Prefactor  = 3.9968e-09
  Prefactor  = 0
  Prefactor  = 13.0075
  Prefactor  = 18.6911
  norm       = 5.55112e-11
  Prefactor  = 0
  Prefactor  = 10.0898
  Prefactor  = 4.82903
  Prefactor  = 6.27276e-09
  Prefactor  = 57.1924
  Prefactor  = 5.55112e-11
  Prefactor  = 11.928
  Normalizat = 0.802873
  Prefactor  = 1.16353
 **********
 **   18 **HESSE 
 **********

 FCN=   7558.743     FROM HESSE     STATUS=OK           416 CALLS     2654 TOTAL
                     EDM=   .59E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     16.618        17.781        .24534E-03   -1.5626    
   2  norm          1.3409        1.3649        .94592E-03   -1.5685    
   3  Prefactor      .0000        6.7305        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .29976E-08    9.6075        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor      .0000        97.394        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     3.4521        3.0960        .54406E-03   -1.5671    
   7  norm          21.038        5.9280        .21808E-03   -1.5616    
   8  Prefactor     .63283E-08    9.1559        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.9374        7.7472        .59240E-03   -1.5674    
  10  Prefactor     .39968E-08    38.746        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor      .0000        3.8295        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     13.008        4.5911        .27749E-03   -1.5636    
  13  Prefactor     18.691        40.936        .23136E-03   -1.5621    
  14  norm          .55511E-10    1.8354        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor      .0000        1.2955        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     10.090        47.813        .31237E-03   -1.5644    
  17  Prefactor     4.8290        5.9714        .45762E-03   -1.5664    
  18  Prefactor     .62728E-08    22.313        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     57.192        29.731        .13224E-03   -1.5557    
  20  Prefactor     .55511E-10    3.0284        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     11.928        30.895        .28977E-03   -1.5639    
  22  Normalizat    .80287        .17941        .68860E-01   -.99962    
  23  Prefactor     1.1635        .13571        .35562E-01   -.87461    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.93483e-07
Minuit parameter uncertainties:
  1  17.7812
  2  1.36495
  3  1.83742e-05
  4  0.000339038
  5  1.89861e-06
  6  3.09596
  7  5.92796
  8  0.000481614
  9  7.74718
  10  0.000789504
  11  4.47667e-06
  12  4.59112
  13  40.937
  14  1.65108e-05
  15  7.50053e-06
  16  43.9288
  17  5.97145
  18  0.000749417
  19  29.7307
  20  2.06044e-05
  21  30.8953
  22  0.179544
  23  0.135754
Done.

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

Extracting fit parameters...

4FGL J2159.8-4751
   Spectrum: PowerLaw
311    Prefactor:  3.997e-09  7.895e-04  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:  1.164e+00  1.358e-01  0.000e+00  1.000e+01 ( 1.000e+00)
583        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
584        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
581   Normalization:  8.029e-01  1.795e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 329.962 -47.852
Photon Flux Upper Limit: 7.21e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.62e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/924444/likelihoodResults_699926401_700185601_4FGL_J2159.8-4751_daily_bin1777.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) = 7558.75613063
delta logL = -0.0126439260393

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7558.74122231
delta logL = 0.00226438899517

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .44987       1.0000          .0000       .10000E+07
     2 'Index     '    3.6466       1.0000          .0000       10.000    
     3 'Normalizat'    .79914       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1649       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=   7558.741     FROM MIGRAD    STATUS=CONVERGED     71 CALLS      319 TOTAL
                     EDM=   .51E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .47770        10.412        .83923E-02    .38866E-02
   2  Index         3.6422        1.4089        .50000        .83336E-05
   3  Normalizat    .79956        .72620E-02    .68993E-01    .30610E-04
   4  Prefactor     1.1648        .57767E-02    .35517E-01    .45826E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.477697
  Index      = 3.64221
  Normalizat = 0.799561
  Prefactor  = 1.16478
 **********
 **   18 **HESSE 
 **********

 FCN=   7558.741     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      354 TOTAL
                     EDM=   .48E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .47770        5020.6        .32767E-03   -1.5694    
   2  Index         3.6422        6.8178        .15087E-01   -.27501    
   3  Normalizat    .79956        .25695        .30528E-03   -1.0008    
   4  Prefactor     1.1648        .11120        .20402E-03   -.87422    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.75048e-06
Minuit parameter uncertainties:
  1  98.0277
  2  66.9526
  3  0.257338
  4  0.111223
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/924444': 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) = 7558.74120885
delta logL = 0.00227785302832

Extracting fit parameters...

4FGL J2159.8-4751
   Spectrum: PowerLaw
311    Prefactor:  4.777e-01  9.803e+01  0.000e+00  1.000e+06 ( 1.000e-13)
312        Index:  3.642e+00  6.695e+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:  1.165e+00  1.112e-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:  7.996e-01  2.573e-01  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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/924444/cmap_HighResolution_699926401_700185601_4FGL_J2159.8-4751_daily_bin1777.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.62e-03', job_status='DONE', photon_flux_upper_limit='7.21e-08', time_completed='2023-03-11 01:34:49.140755', job_id='924444', GAL2='1.16', fit_tolerance='1e-08', EG2='0.80', EG='0.80', time_epoch_completed='1678527289.14', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.16', dlogl='2.28e-03', ts2='0.01', photon_index_error='0.00', photon_index='2.52' WHERE bin_id='1777' AND source_name='4FGL J2159.8-4751' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Mar 11 01:34:49 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0185>
Subject: Job 924444: <4FGL_J2159.8-4751_daily_bin1777> in cluster <slac> Done

Job <4FGL_J2159.8-4751_daily_bin1777> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Mar 11 01:20:27 2023
Job was executed on host(s) <bullet0185>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Mar 11 01:20:28 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Mar 11 01:20:28 2023
Terminated at Sat Mar 11 01:34:50 2023
Results reported at Sat Mar 11 01:34:50 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2159.8-4751_daily_bin1777 329.962 -47.8518 699926401 700185601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2159.8-4751 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   668.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             268.60 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   861 sec.
    Turnaround time :                            863 sec.

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

