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


Performing analysis on: 4FGL_J2320.8-0823_daily_bin1697
RA = 350.223, Dec = -8.3918
tmin = 679190401, tmax = 679449601
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='857742', job_status='RUN', time_executed='2022-07-14 00:38:07.620924', time_epoch_executed='1657784287.62' WHERE source_name='4FGL J2320.8-0823' and cadence='daily' and bin_id='1697'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/857742

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/857742/ft1_4FGL_J2320.8-0823_daily_bin1697.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/857742/ft2_4FGL_J2320.8-0823_daily_bin1697.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/857742/ft1_4FGL_J2320.8-0823_daily_bin1697.fits outfile=/scratch/kocevski/857742/ft1_filteredMKT_4FGL_J2320.8-0823_daily_bin1697.fits ra=350.223 dec=-8.3918 rad=12.0 tmin=679190401.0 tmax=679449601.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.44
user 3.21
sys 0.21

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

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

Number of photons that the gtmktime cut: 491

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/857742/ft1_filtered_4FGL_J2320.8-0823_daily_bin1697.fits" evtable="EVENTS" scfile=/scratch/kocevski/857742/ft2_4FGL_J2320.8-0823_daily_bin1697.fits sctable="SC_DATA" outfile=/scratch/kocevski/857742/ltcube_679190401_679449601_4FGL_J2320.8-0823_daily_bin1697.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/857742/ft2_4FGL_J2320.8-0823_daily_bin1697.fits
.....................!
real 11.60
user 11.25
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/857742/ft1_filtered_4FGL_J2320.8-0823_daily_bin1697.fits evtable="EVENTS" scfile=/scratch/kocevski/857742/ft2_4FGL_J2320.8-0823_daily_bin1697.fits sctable="SC_DATA" expcube=/scratch/kocevski/857742/ltcube_679190401_679449601_4FGL_J2320.8-0823_daily_bin1697.fits outfile=/scratch/kocevski/857742/expmap_679190401_679449601_4FGL_J2320.8-0823_daily_bin1697.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/857742/ltcube_679190401_679449601_4FGL_J2320.8-0823_daily_bin1697.fits
.....................!
real 191.59
user 187.28
sys 3.99

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/857742/ft1_filtered_4FGL_J2320.8-0823_daily_bin1697.fits scfile=/scratch/kocevski/857742/ft2_4FGL_J2320.8-0823_daily_bin1697.fits outfile=/scratch/kocevski/857742/cmap_679190401_679449601_4FGL_J2320.8-0823_daily_bin1697.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.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/857742/ft1_filtered_4FGL_J2320.8-0823_daily_bin1697.fits scfile=/scratch/kocevski/857742/ft2_4FGL_J2320.8-0823_daily_bin1697.fits outfile=/scratch/kocevski/857742/cmap_HighResolution_679190401_679449601_4FGL_J2320.8-0823_daily_bin1697.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.54
user 0.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/857742/ft1_filtered_4FGL_J2320.8-0823_daily_bin1697.fits evtable="EVENTS" scfile=/scratch/kocevski/857742/ft2_4FGL_J2320.8-0823_daily_bin1697.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/857742/Model_4FGL_J2320.8-0823_daily_bin1697.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/857742/ft1_filtered_4FGL_J2320.8-0823_daily_bin1697.fits.....................!
real 52.20
user 50.89
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/857742/ft1_filtered_4FGL_J2320.8-0823_daily_bin1697.fits', '/scratch/kocevski/857742/ft2_4FGL_J2320.8-0823_daily_bin1697.fits', expMap='/scratch/kocevski/857742/expmap_679190401_679449601_4FGL_J2320.8-0823_daily_bin1697.fits', expCube='/scratch/kocevski/857742/ltcube_679190401_679449601_4FGL_J2320.8-0823_daily_bin1697.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/857742/Model_4FGL_J2320.8-0823_daily_bin1697.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/857742/ft1_filtered_4FGL_J2320.8-0823_daily_bin1697.fits
Spacecraft file(s): /scratch/kocevski/857742/ft2_4FGL_J2320.8-0823_daily_bin1697.fits
Exposure map: /scratch/kocevski/857742/expmap_679190401_679449601_4FGL_J2320.8-0823_daily_bin1697.fits
Exposure cube: /scratch/kocevski/857742/ltcube_679190401_679449601_4FGL_J2320.8-0823_daily_bin1697.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/857742/Model_4FGL_J2320.8-0823_daily_bin1697.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 5565.19945992

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    67.446       1.0000         .10000E-03   10000.    
     4 'Prefactor '    9.7465       1.0000         .10000E-03   10000.    
     5 'norm      '    .35568       1.0000         .10000E-03   10000.    
     6 'Prefactor '    38.874       1.0000         .10000E-03   10000.    
     7 'Prefactor '    18.855       1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.8449       1.0000         .10000E-03   10000.    
     9 'norm      '    24.902       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    11.272       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .81877       1.0000         .10000E-03   10000.    
    14 'norm      '    .69903       1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    86.844       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .12245E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    36.573       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .44810       1.0000         .10000E-03   10000.    
    25 'norm      '    6.4072       1.0000         .10000E-03   10000.    
    26 'Prefactor '    11.988       1.0000         .10000E-03   10000.    
    27 'Prefactor '    11.750       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .92013       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .71457       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=   5565.136     FROM MIGRAD    STATUS=CONVERGED   1275 CALLS     4362 TOTAL
                     EDM=   .39E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.4067        .16879E-02** at limit **
   2  Prefactor     .10000E-03    14.515        .18142E-02** at limit **
   3  Prefactor     67.459        59.683        .24436E-03   -.12561E-04
   4  Prefactor     9.6773        36.039        .12836E-03    .65542E-05
   5  norm          .36300        5.6087        .12827E-03   -.21714E-04
   6  Prefactor     38.838        43.127        .64286E-04    .14325E-04
   7  Prefactor     18.858        12.709        .92238E-04   -.18611E-04
   8  Prefactor     3.8460        6.1544        .20581E-03   -.16516E-04
   9  norm          24.901        13.558        .80273E-04   -.17703E-04
  10  Prefactor     .10000E-03    6.2827        .18142E-02** at limit **
  11  Prefactor     .10000E-03    42.707        .18142E-02** at limit **
  12  Prefactor     11.254        22.011        .11933E-03   -.60974E-05
  13  Prefactor     .81974        9.8902        .43835E-03   -.23472E-04
  14  norm          .69877        .73299        .64894E-03    .16955E-03
  15  norm          .10000E-03    1.3211        .83665E-03** at limit **
  16  Prefactor     .10000E-03    19.187        .18142E-02** at limit **
  17  Prefactor     86.785        63.340        .21556E-03   -.84913E-05
  18  Prefactor     .10000E-03    27.804        .18142E-02** at limit **
  19  Prefactor     .10000E-03    68.410        .18142E-02** at limit **
  20  Prefactor     .10000E-03    9.9406        .18142E-02** at limit **
  21  norm          .10000E-03    12.703        .18142E-02** at limit **
  22  Prefactor     36.569        33.678        .66269E-04    .14410E-05
  23  Prefactor     .10000E-03    1.8857        .19547E-03** at limit **
  24  norm          .44798        .42658        .42360E-04   -.25013E-03
  25  norm          6.4071        4.3340        .11516E-03   -.18559E-04
  26  Prefactor     11.986        12.205        .11570E-03   -.59938E-05
  27  Prefactor     11.749        7.8044        .11687E-03   -.20137E-04
  28  Normalizat    .92035        .22620        .25053E-03   -.23506E-04
  29  Prefactor     .71440        .16570        .22122E-03   -.10998E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 67.4588
  Prefactor  = 9.67728
  norm       = 0.363
  Prefactor  = 38.8382
  Prefactor  = 18.8578
  Prefactor  = 3.84604
  norm       = 24.9012
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.2542
  Prefactor  = 0.819736
  norm       = 0.698765
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 86.7849
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 36.5689
  Prefactor  = 0.0001
  norm       = 0.44798
  norm       = 6.40708
  Prefactor  = 11.9862
  Prefactor  = 11.7494
  Normalizat = 0.920354
  Prefactor  = 0.714403
 **********
 **   18 **HESSE 
 **********

 FCN=   5565.136     FROM HESSE     STATUS=OK           525 CALLS     4887 TOTAL
                     EDM=   .38E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.4079        .33757E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    14.515        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     67.459        59.682        .97745E-05   -1.4063    
   4  Prefactor     9.6773        35.457        .51343E-05   -1.5086    
   5  norm          .36300        5.3950        .51310E-05   -1.5587    
   6  Prefactor     38.838        43.038        .25714E-05   -1.4461    
   7  Prefactor     18.858        12.708        .36895E-05   -1.4839    
   8  Prefactor     3.8460        6.1542        .82326E-05   -1.5316    
   9  norm          24.901        13.557        .32109E-05   -1.4710    
  10  Prefactor     .10000E-03    6.2830        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    42.709        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     11.254        22.010        .47731E-05   -1.5037    
  13  Prefactor     .81974        9.8811        .17534E-04   -1.5527    
  14  norm          .69877        .73265        .25957E-04   -1.5541    
  15  norm          .10000E-03    1.3211        .16733E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    19.188        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     86.785        63.324        .86223E-05   -1.3842    
  18  Prefactor     .10000E-03    27.809        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    68.410        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    9.9479        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    12.706        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     36.569        33.677        .13254E-04   -1.4498    
  23  Prefactor     .10000E-03    1.8857        .39093E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .44798        .42657        .16944E-05   -1.5574    
  25  norm          6.4071        4.3339        .46065E-05   -1.5202    
  26  Prefactor     11.986        12.205        .46280E-05   -1.5015    
  27  Prefactor     11.749        7.8035        .46746E-05   -1.5022    
  28  Normalizat    .92035        .22616        .10021E-04   -.95749    
  29  Prefactor     .71440        .16579        .88489E-05   -1.0297    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.81593e-11
Minuit parameter uncertainties:
  1  2.12954e-06
  2  3.08204e-05
  3  59.7352
  4  35.5347
  5  2.79877
  6  43.0723
  7  12.7097
  8  6.15524
  9  13.5584
  10  2.15819e-06
  11  0.000100851
  12  22.0253
  13  5.69289
  14  0.732658
  15  1.00631e-06
  16  2.69064e-05
  17  63.3738
  18  0.000237019
  19  0.000140449
  20  1.97267e-05
  21  3.88126e-06
  22  33.6944
  23  3.20012e-06
  24  0.426577
  25  4.33407
  26  12.2076
  27  7.80421
  28  0.226392
  29  0.165901
Done.

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

Extracting fit parameters...

4FGL J2320.8-0823
   Spectrum: PowerLaw
360    Prefactor:  1.000e-04  1.009e-04  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.144e-01  1.659e-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:  9.204e-01  2.264e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 350.223 -8.392
Photon Flux Upper Limit: 7.69e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.03e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/857742/likelihoodResults_679190401_679449601_4FGL_J2320.8-0823_daily_bin1697.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) = 5565.13587352
delta logL = -0.000111509605631

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5565.13576247
delta logL = -4.5812157623e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.8411       1.0000          .0000       10.000    
     3 'Normalizat'    .92035       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .71440       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5565.133     FROM MIGRAD    STATUS=FAILED       137 CALLS      335 TOTAL
                     EDM=   .34E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.1196        9170.7        .18142E-01    .21133E-03
   2  Index         1.6647        9.1534        .50000       -.22173E-04
   3  Normalizat    .92095        .63409E-01    .25052E-03   -.44428E-04
   4  Prefactor     .71330        .61546E-01    .22123E-03    .71945E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5565.133     FROM SIMPLEX   STATUS=UNCHANGED     96 CALLS      431 TOTAL
                     EDM=   .60E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.1196        9170.7        .12448E-02    .21133E-03
   2  Index         1.6647        9.1534        .14608E-02   -.22173E-04
   3  Normalizat    .92095        .63409E-01    .51514E-05   -.44428E-04
   4  Prefactor     .71330        .61546E-01    .77272E-05    .71945E-05
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5565.133     FROM MIGRAD    STATUS=CONVERGED     37 CALLS      468 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.1195        110.07        .72569E-02    .35433E-04
   2  Index         1.6647        2.4751        .24708E-01   -.86634E-04
   3  Normalizat    .92095        .20091        .10021E-04   -.47876E-04
   4  Prefactor     .71330        .15967        .88491E-05   -.25695E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.11946
  Index      = 1.66473
  Normalizat = 0.92095
  Prefactor  = 0.713297
 **********
 **   18 **HESSE 
 **********

 FCN=   5565.133     FROM HESSE     STATUS=OK            27 CALLS      495 TOTAL
                     EDM=   .17E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.1195        112.41        .29028E-03   -1.5417    
   2  Index         1.6647        2.4980        .49416E-02   -.73025    
   3  Normalizat    .92095        .20135        .20042E-05   -.95728    
   4  Prefactor     .71330        .15991        .17698E-05   -1.0301    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.7326e-11
Minuit parameter uncertainties:
  1  30.9312
  2  2.73801
  3  0.20152
  4  0.160016
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/857742': 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) = 5565.13327098
delta logL = 0.00249102884027

Extracting fit parameters...

4FGL J2320.8-0823
   Spectrum: PowerLaw
360    Prefactor:  2.119e+00  3.093e+01  1.000e-04  1.000e+04 ( 1.000e-13)
361        Index:  1.665e+00  2.738e+00  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.133e-01  1.600e-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:  9.209e-01  2.015e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 350.223 -8.392

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/857742/cmap_HighResolution_679190401_679449601_4FGL_J2320.8-0823_daily_bin1697.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.03e-03', job_status='DONE', photon_flux_upper_limit='7.69e-08', time_completed='2022-07-14 00:50:26.141038', job_id='857742', GAL2='0.71', fit_tolerance='1e-08', EG2='0.92', EG='0.92', time_epoch_completed='1657785026.14', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.71', dlogl='2.49e-03', ts2='0.01', photon_index_error='0.00', photon_index='2.65' WHERE bin_id='1697' AND source_name='4FGL J2320.8-0823' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Jul 14 00:50:26 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0070>
Subject: Job 857742: <4FGL_J2320.8-0823_daily_bin1697> in cluster <slac> Done

Job <4FGL_J2320.8-0823_daily_bin1697> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Thu Jul 14 00:35:56 2022
Job was executed on host(s) <bullet0070>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Jul 14 00:35:58 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Jul 14 00:35:58 2022
Terminated at Thu Jul 14 00:50:26 2022
Results reported at Thu Jul 14 00:50:26 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2320.8-0823_daily_bin1697 350.223 -8.3918 679190401 679449601 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 :                                   740.38 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             290.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   868 sec.
    Turnaround time :                            870 sec.

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

