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


Performing analysis on: 4FGL_J2320.8-0823_daily_bin1703
RA = 350.223, Dec = -8.3918
tmin = 680745601, tmax = 681004801
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='324234', job_status='RUN', time_executed='2022-08-01 01:23:33.394263', time_epoch_executed='1659342213.39' WHERE source_name='4FGL J2320.8-0823' and cadence='daily' and bin_id='1703'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/324234

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/324234/ft1_4FGL_J2320.8-0823_daily_bin1703.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/324234/ft2_4FGL_J2320.8-0823_daily_bin1703.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/324234/ft1_4FGL_J2320.8-0823_daily_bin1703.fits outfile=/scratch/kocevski/324234/ft1_filteredMKT_4FGL_J2320.8-0823_daily_bin1703.fits ra=350.223 dec=-8.3918 rad=12.0 tmin=680745601.0 tmax=681004801.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.54
user 2.77
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/324234/ft2_4FGL_J2320.8-0823_daily_bin1703.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/324234/ft2_4FGL_J2320.8-0823_daily_bin1703.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/324234/ft1_filteredMKT_4FGL_J2320.8-0823_daily_bin1703.fits evtable="EVENTS" outfile="/scratch/kocevski/324234/ft1_filtered_4FGL_J2320.8-0823_daily_bin1703.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.55
user 0.34
sys 0.15

Number of photons that the gtmktime cut: 342

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/324234/ft1_filtered_4FGL_J2320.8-0823_daily_bin1703.fits" evtable="EVENTS" scfile=/scratch/kocevski/324234/ft2_4FGL_J2320.8-0823_daily_bin1703.fits sctable="SC_DATA" outfile=/scratch/kocevski/324234/ltcube_680745601_681004801_4FGL_J2320.8-0823_daily_bin1703.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/324234/ft2_4FGL_J2320.8-0823_daily_bin1703.fits
.....................!
real 14.49
user 14.05
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/324234/ft1_filtered_4FGL_J2320.8-0823_daily_bin1703.fits evtable="EVENTS" scfile=/scratch/kocevski/324234/ft2_4FGL_J2320.8-0823_daily_bin1703.fits sctable="SC_DATA" expcube=/scratch/kocevski/324234/ltcube_680745601_681004801_4FGL_J2320.8-0823_daily_bin1703.fits outfile=/scratch/kocevski/324234/expmap_680745601_681004801_4FGL_J2320.8-0823_daily_bin1703.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/324234/ltcube_680745601_681004801_4FGL_J2320.8-0823_daily_bin1703.fits
.....................!
real 192.37
user 186.14
sys 5.49

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 161 point sources and 0 extended sources

Setting source of interest to:
4FGL J2320.8-0823 @ 350.223 -8.3918

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/324234/ft1_filtered_4FGL_J2320.8-0823_daily_bin1703.fits scfile=/scratch/kocevski/324234/ft2_4FGL_J2320.8-0823_daily_bin1703.fits outfile=/scratch/kocevski/324234/cmap_680745601_681004801_4FGL_J2320.8-0823_daily_bin1703.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=350.223 yref=-8.3918 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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/324234/ft1_filtered_4FGL_J2320.8-0823_daily_bin1703.fits scfile=/scratch/kocevski/324234/ft2_4FGL_J2320.8-0823_daily_bin1703.fits outfile=/scratch/kocevski/324234/cmap_HighResolution_680745601_681004801_4FGL_J2320.8-0823_daily_bin1703.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=350.223 yref=-8.3918 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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/324234/ft1_filtered_4FGL_J2320.8-0823_daily_bin1703.fits evtable="EVENTS" scfile=/scratch/kocevski/324234/ft2_4FGL_J2320.8-0823_daily_bin1703.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/324234/Model_4FGL_J2320.8-0823_daily_bin1703.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/324234/ft1_filtered_4FGL_J2320.8-0823_daily_bin1703.fits.....................!
real 41.74
user 40.39
sys 1.24

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/324234/ft1_filtered_4FGL_J2320.8-0823_daily_bin1703.fits', '/scratch/kocevski/324234/ft2_4FGL_J2320.8-0823_daily_bin1703.fits', expMap='/scratch/kocevski/324234/expmap_680745601_681004801_4FGL_J2320.8-0823_daily_bin1703.fits', expCube='/scratch/kocevski/324234/ltcube_680745601_681004801_4FGL_J2320.8-0823_daily_bin1703.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/324234/Model_4FGL_J2320.8-0823_daily_bin1703.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2320.8-0823'

4FGL J2320.8-0823
   Spectrum: PowerLaw
360    Prefactor:  7.383e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
361        Index:  2.648e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
362        Scale:  6.667e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/324234/ft1_filtered_4FGL_J2320.8-0823_daily_bin1703.fits
Spacecraft file(s): /scratch/kocevski/324234/ft2_4FGL_J2320.8-0823_daily_bin1703.fits
Exposure map: /scratch/kocevski/324234/expmap_680745601_681004801_4FGL_J2320.8-0823_daily_bin1703.fits
Exposure cube: /scratch/kocevski/324234/ltcube_680745601_681004801_4FGL_J2320.8-0823_daily_bin1703.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/324234/Model_4FGL_J2320.8-0823_daily_bin1703.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) = 3836.49471274

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    674.68       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10089E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    53.141       1.0000         .10000E-03   10000.    
     7 'Prefactor '    9.0688       1.0000         .10000E-03   10000.    
     8 'Prefactor '    13.658       1.0000         .10000E-03   10000.    
     9 'norm      '    15.216       1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.0242       1.0000         .10000E-03   10000.    
    11 'Prefactor '    207.47       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10211E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10099E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    1.1072       1.0000         .10000E-03   10000.    
    15 'norm      '    .10236E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    23.129       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10138E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    13.282       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .52860E-02   1.0000         .10000E-03   10000.    
    20 'Prefactor '    6.8440       1.0000         .10000E-03   10000.    
    21 'norm      '    38.516       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    2.5499       1.0000         .10000E-03   10000.    
    24 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    44.085       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10108E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.2681       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .70993       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5240E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   3836.463     FROM MIGRAD    STATUS=CONVERGED    717 CALLS     3760 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.8667        .29243E-06** at limit **
   2  Prefactor     .10000E-03    23.306        .62216E-07** at limit **
   3  Prefactor     674.34        385.82        .13501E-04   -.25126E-04
   4  Prefactor     .10000E-03    9.5880       -.51455E-06** at limit **
   5  norm          .10000E-03    .97379       -.22998E-05** at limit **
   6  Prefactor     53.075        51.205        .66458E-05    .49113E-03
   7  Prefactor     9.0743        23.115       -.90015E-06    .16919E-03
   8  Prefactor     13.657        14.941       -.88658E-07    .90864E-04
   9  norm          15.224        18.584        .20002E-06   -.45510E-05
  10  Prefactor     5.0207        43.834        .25124E-05   -.26294E-05
  11  Prefactor     207.41        106.80        .30522E-05   -.19008E-04
  12  Prefactor     .10000E-03    79.726        .21961E-05** at limit **
  13  Prefactor     .10000E-03    9.2367       -.10207E-05** at limit **
  14  norm          1.1069        1.7039       -.15298E-06   -.72642E-03
  15  norm          .10000E-03    9.1556       -.43452E-06** at limit **
  16  Prefactor     23.157        69.856        .86310E-07   -.13984E-05
  17  Prefactor     .10000E-03    152.38       -.58775E-05** at limit **
  18  Prefactor     13.276        21.020        .80584E-06    .42119E-04
  19  Prefactor     .10020E-03    1420.4        .97639E-04** at limit **
  20  Prefactor     6.9150        49.848       -.16164E-04   -.16577E-03
  21  norm          38.514        52.640        .60719E-07   -.14678E-03
  22  Prefactor     .10000E-03    51.048       -.12821E-06** at limit **
  23  Prefactor     2.5241        10.652        .12702E-04   -.34588E-03
  24  norm          .10000E-03    .29514       -.25558E-06** at limit **
  25  norm          44.080        9.4266        .48698E-06    .66960E-04
  26  Prefactor     .10000E-03    5.8332        .14266E-06** at limit **
  27  Prefactor     .10000E-03    11.141        .69144E-06** at limit **
  28  Normalizat    1.2693        .28373       -.12350E-05    .13821E-03
  29  Prefactor     .70897        .21793       -.19265E-05    .63756E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 674.338
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 53.0746
  Prefactor  = 9.07428
  Prefactor  = 13.657
  norm       = 15.2236
  Prefactor  = 5.02074
  Prefactor  = 207.408
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.10694
  norm       = 0.0001
  Prefactor  = 23.1569
  Prefactor  = 0.000100001
  Prefactor  = 13.2765
  Prefactor  = 0.000100201
  Prefactor  = 6.91502
  norm       = 38.5145
  Prefactor  = 0.0001
  Prefactor  = 2.52407
  norm       = 0.0001
  norm       = 44.0799
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.2693
  Prefactor  = 0.708972
 **********
 **   18 **HESSE 
 **********

 FCN=   3836.463     FROM HESSE     STATUS=OK           547 CALLS     4307 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.8973        .15848E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    23.312        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     674.34        384.42        .79735E-04   -1.0454    
   4  Prefactor     .10000E-03    9.5972        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    1.3210        .11314E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     53.075        50.682        .27510E-03   -1.4250    
   7  Prefactor     9.0743        23.109        .13309E-03   -1.5105    
   8  Prefactor     13.657        14.946        .10838E-03   -1.4969    
   9  norm          15.224        18.634        .10268E-03   -1.4927    
  10  Prefactor     5.0207        43.814        .17940E-03   -1.5260    
  11  Prefactor     207.41        107.64        .14032E-03   -1.2818    
  12  Prefactor     .10000E-03    80.029        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    9.2507        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.1069        1.6420        .88743E-04   -1.5498    
  15  norm          .10000E-03    9.2899        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     23.157        70.257        .83289E-04   -1.4745    
  17  Prefactor     .10000E-03    152.63        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     13.276        21.006        .10991E-03   -1.4979    
  19  Prefactor     .10020E-03    1393.2        .19125E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     6.9150        48.501        .15336E-03   -1.5182    
  21  norm          38.514        51.576        .64582E-04   -1.4466    
  22  Prefactor     .10000E-03    51.087        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     2.5241        11.260        .12785E-02   -1.5390    
  24  norm          .10000E-03    .30247        .65237E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          44.080        9.3856        .60381E-04   -1.4379    
  26  Prefactor     .10000E-03    5.8373        .14611E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    11.439        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.2693        .34585        .27609E-03   -.84488    
  29  Prefactor     .70897        .26344        .28003E-03   -1.0318    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.75418e-09
Minuit parameter uncertainties:
  1  1.75255e-05
  2  1.54345e-05
  3  385.941
  4  3.87185e-05
  5  1.16108e-05
  6  50.7235
  7  23.1322
  8  14.9499
  9  18.6413
  10  29.6924
  11  107.745
  12  5.26417e-05
  13  5.88204e-05
  14  1.64202
  15  5.13854e-05
  16  70.5094
  17  0.000558962
  18  21.018
  19  0.0343411
  20  36.6693
  21  51.6354
  22  4.19672e-06
  23  10.6652
  24  3.54455e-06
  25  9.38594
  26  2.88078e-06
  27  5.61349e-05
  28  0.346485
  29  0.263906
Done.

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

Extracting fit parameters...

4FGL J2320.8-0823
   Spectrum: PowerLaw
360    Prefactor:  2.074e+02  1.077e+02  1.000e-04  1.000e+04 ( 1.000e-13)
361        Index:  2.648e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
362        Scale:  6.667e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
521    Prefactor:  7.090e-01  2.639e-01  0.000e+00  1.000e+01 ( 1.000e+00)
522        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
523        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
520   Normalization:  1.269e+00  3.465e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.72
Ra Dec: 350.223 -8.392
Photon Index (Fixed Index): 2.65 +/- 0.00
Photon Flux (Fixed Index): 1.91e-07 +/- 9.94e-08
Energy Flux (Fixed Index): 4.81e-05 +/- 2.50e-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) = 3836.02649012
delta logL = 0.436299234937

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3836.01735582
delta logL = 0.445433534186

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    134.94       1.0000         .10000E-03   10000.    
     2 'Index     '    3.1977       1.0000          .0000       10.000    
     3 'Normalizat'    1.1788       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .75898       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5240E+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=   3836.017     FROM MIGRAD    STATUS=CONVERGED     80 CALLS      292 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     134.96        121.70        .34669E-04   -.44249E-03
   2  Index         3.1976        .68574        .38536E-02   -.34468E-03
   3  Normalizat    1.1789        .33518        .28452E-03    .28555E-03
   4  Prefactor     .75891        .25164        .27130E-03    .43634E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 134.958
  Index      = 3.19761
  Normalizat = 1.17889
  Prefactor  = 0.758914
 **********
 **   18 **HESSE 
 **********

 FCN=   3836.017     FROM HESSE     STATUS=OK            23 CALLS      315 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     134.96        111.44        .69339E-05   -1.3379    
   2  Index         3.1976        .62709        .15415E-03   -.36878    
   3  Normalizat    1.1789        .33474        .56905E-04   -.87258    
   4  Prefactor     .75891        .25122        .54260E-04   -1.0126    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.28155e-09
Minuit parameter uncertainties:
  1  111.613
  2  0.628997
  3  0.335351
  4  0.251594
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/324234': 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) = 3836.01735577
delta logL = 0.445433584301

Extracting fit parameters...

4FGL J2320.8-0823
   Spectrum: PowerLaw
360    Prefactor:  1.350e+02  1.116e+02  1.000e-04  1.000e+04 ( 1.000e-13)
361        Index:  3.198e+00  6.290e-01  0.000e+00  1.000e+01 (-1.000e+00)
362        Scale:  6.667e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
521    Prefactor:  7.589e-01  2.516e-01  0.000e+00  1.000e+01 ( 1.000e+00)
522        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
523        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
520   Normalization:  1.179e+00  3.354e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.73
Ra Dec: 350.223 -8.392
Photon Index (Free Index): 3.20 +/- 0.63
Photon Flux (Free Index): 2.65e-07 +/- 1.36e-07
Energy Flux (Free Index): 4.86e-05 +/- 2.25e-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/324234/cmap_HighResolution_680745601_681004801_4FGL_J2320.8-0823_daily_bin1703.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.91e-07', energy_flux2='4.86e-05', photon_flux_error='9.94e-08', dlogl='4.45e-01', energy_flux='4.81e-05', photon_flux2='2.65e-07', job_status='DONE', time_completed='2022-08-01 01:32:39.515598', photon_index_error2='0.63', photon_index2='3.20', ts='6.72', fit_tolerance='1e-08', GAL='0.71', photon_index_error='0.00', energy_flux_error2='2.25e-05', EG='1.27', time_epoch_completed='1659342759.52', return_code='0', job_id='324234', GAL2='0.76', EG2='1.18', return_code2='0', energy_flux_error='2.50e-05', photon_flux_error2='1.36e-07', ts2='7.73', photon_index='2.65' WHERE bin_id='1703' AND source_name='4FGL J2320.8-0823' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug  1 01:32:39 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0106>
Subject: Job 324234: <4FGL_J2320.8-0823_daily_bin1703> in cluster <slac> Done

Job <4FGL_J2320.8-0823_daily_bin1703> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Aug  1 01:20:27 2022
Job was executed on host(s) <bullet0106>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug  1 01:22:57 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Aug  1 01:22:57 2022
Terminated at Mon Aug  1 01:32:40 2022
Results reported at Mon Aug  1 01:32:40 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2320.8-0823_daily_bin1703 350.223 -8.3918 680745601 681004801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2320.8-0823 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   547.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             369.05 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   582 sec.
    Turnaround time :                            733 sec.

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

