/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 2 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 = 7416
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2320.8-0823_daily_bin419
RA = 350.223, Dec = -8.3918
tmin = 347932801, tmax = 348192001
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='751042', job_status='RUN', time_executed='2021-09-29 11:30:55.505652', time_epoch_executed='1632940255.51' WHERE source_name='4FGL J2320.8-0823' and cadence='daily' and bin_id='419'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/751042

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/751042/ft1_4FGL_J2320.8-0823_daily_bin419.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/751042/ft2_4FGL_J2320.8-0823_daily_bin419.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/751042/ft1_4FGL_J2320.8-0823_daily_bin419.fits outfile=/scratch/kocevski/751042/ft1_filteredMKT_4FGL_J2320.8-0823_daily_bin419.fits ra=350.223 dec=-8.3918 rad=12.0 tmin=347932801.0 tmax=348192001.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.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/751042/ft2_4FGL_J2320.8-0823_daily_bin419.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/751042/ft1_filteredMKT_4FGL_J2320.8-0823_daily_bin419.fits evtable="EVENTS" outfile="/scratch/kocevski/751042/ft1_filtered_4FGL_J2320.8-0823_daily_bin419.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.36
sys 0.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/751042/ft1_filtered_4FGL_J2320.8-0823_daily_bin419.fits" evtable="EVENTS" scfile=/scratch/kocevski/751042/ft2_4FGL_J2320.8-0823_daily_bin419.fits sctable="SC_DATA" outfile=/scratch/kocevski/751042/ltcube_347932801_348192001_4FGL_J2320.8-0823_daily_bin419.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/751042/ft2_4FGL_J2320.8-0823_daily_bin419.fits
.....................!
real 12.38
user 11.69
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/751042/ft1_filtered_4FGL_J2320.8-0823_daily_bin419.fits evtable="EVENTS" scfile=/scratch/kocevski/751042/ft2_4FGL_J2320.8-0823_daily_bin419.fits sctable="SC_DATA" expcube=/scratch/kocevski/751042/ltcube_347932801_348192001_4FGL_J2320.8-0823_daily_bin419.fits outfile=/scratch/kocevski/751042/expmap_347932801_348192001_4FGL_J2320.8-0823_daily_bin419.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/751042/ltcube_347932801_348192001_4FGL_J2320.8-0823_daily_bin419.fits
.....................!
real 190.95
user 185.04
sys 4.59

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/751042/ft1_filtered_4FGL_J2320.8-0823_daily_bin419.fits scfile=/scratch/kocevski/751042/ft2_4FGL_J2320.8-0823_daily_bin419.fits outfile=/scratch/kocevski/751042/cmap_347932801_348192001_4FGL_J2320.8-0823_daily_bin419.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.53
user 0.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/751042/ft1_filtered_4FGL_J2320.8-0823_daily_bin419.fits scfile=/scratch/kocevski/751042/ft2_4FGL_J2320.8-0823_daily_bin419.fits outfile=/scratch/kocevski/751042/cmap_HighResolution_347932801_348192001_4FGL_J2320.8-0823_daily_bin419.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/751042/ft1_filtered_4FGL_J2320.8-0823_daily_bin419.fits evtable="EVENTS" scfile=/scratch/kocevski/751042/ft2_4FGL_J2320.8-0823_daily_bin419.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/751042/Model_4FGL_J2320.8-0823_daily_bin419.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/751042/ft1_filtered_4FGL_J2320.8-0823_daily_bin419.fits.....................!
real 48.35
user 47.01
sys 1.14

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/751042/ft1_filtered_4FGL_J2320.8-0823_daily_bin419.fits', '/scratch/kocevski/751042/ft2_4FGL_J2320.8-0823_daily_bin419.fits', expMap='/scratch/kocevski/751042/expmap_347932801_348192001_4FGL_J2320.8-0823_daily_bin419.fits', expCube='/scratch/kocevski/751042/ltcube_347932801_348192001_4FGL_J2320.8-0823_daily_bin419.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/751042/Model_4FGL_J2320.8-0823_daily_bin419.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/751042/ft1_filtered_4FGL_J2320.8-0823_daily_bin419.fits
Spacecraft file(s): /scratch/kocevski/751042/ft2_4FGL_J2320.8-0823_daily_bin419.fits
Exposure map: /scratch/kocevski/751042/expmap_347932801_348192001_4FGL_J2320.8-0823_daily_bin419.fits
Exposure cube: /scratch/kocevski/751042/ltcube_347932801_348192001_4FGL_J2320.8-0823_daily_bin419.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/751042/Model_4FGL_J2320.8-0823_daily_bin419.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) = 5126.31265207

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .41676E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    64.821       1.0000         .10000E-03   10000.    
     4 'Prefactor '    10.379       1.0000         .10000E-03   10000.    
     5 'norm      '    .10342E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    11.907       1.0000         .10000E-03   10000.    
    12 'Prefactor '    21.776       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .11125E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    2.6692       1.0000         .10000E-03   10000.    
    15 'norm      '    2.7283       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10172E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    21.693       1.0000         .10000E-03   10000.    
    21 'norm      '    6.3256       1.0000         .10000E-03   10000.    
    22 'Prefactor '    96.017       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    7.8339       1.0000         .10000E-03   10000.    
    25 'norm      '    9.5973       1.0000         .10000E-03   10000.    
    26 'Prefactor '    44.312       1.0000         .10000E-03   10000.    
    27 'Prefactor '    1.8138       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .98631       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .82725       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=   5126.307     FROM MIGRAD    STATUS=CONVERGED    725 CALLS     3707 TOTAL
                     EDM=   .49E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    11.391       -.15502E-05** at limit **
   2  Prefactor     .10000E-03    25.903        .59370E-06** at limit **
   3  Prefactor     64.837        72.687       -.11139E-05    .13025E-04
   4  Prefactor     10.363        12.313       -.22201E-07    .21629E-04
   5  norm          .10000E-03    .85264       -.20966E-08** at limit **
   6  Prefactor     .10000E-03    11.083       -.21224E-07** at limit **
   7  Prefactor     .10000E-03    8.3743       -.22535E-06** at limit **
   8  Prefactor     .10000E-03    8.9405        .29687E-06** at limit **
   9  norm          .10000E-03    9.0819       -.33478E-06** at limit **
  10  Prefactor     .10000E-03    8.4572        .16403E-06** at limit **
  11  Prefactor     11.919        44.398        .63596E-05    .17195E-04
  12  Prefactor     21.771        32.195        .43132E-06   -.47007E-04
  13  Prefactor     .10000E-03    6.8472       -.15385E-05** at limit **
  14  norm          2.6692        1.4920        .40956E-07    .69586E-04
  15  norm          2.7284        5.5168        .58827E-06    .33501E-04
  16  Prefactor     .10000E-03    23.819       -.96448E-06** at limit **
  17  Prefactor     .10000E-03    113.38        .35253E-05** at limit **
  18  Prefactor     .10000E-03    48.382        .16089E-05** at limit **
  19  Prefactor     .10000E-03    70.424       -.42114E-05** at limit **
  20  Prefactor     21.699        25.561       -.41402E-06    .88359E-05
  21  norm          6.3107        61.923        .15117E-05    .41718E-05
  22  Prefactor     96.023        72.989       -.93419E-07    .10711E-04
  23  Prefactor     .10000E-03    1.6986       -.52229E-07** at limit **
  24  norm          7.8336        1.5354        .66911E-08   -.42038E-03
  25  norm          9.5971        8.4181        .13105E-07   -.54512E-04
  26  Prefactor     44.312        23.522        .10397E-07    .91073E-05
  27  Prefactor     1.8164        11.342        .23474E-05    .54257E-04
  28  Normalizat    .98640        .23834       -.46947E-06   -.89333E-05
  29  Prefactor     .82715        .16984        .33858E-06    .22569E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  Prefactor  = 64.8366
  Prefactor  = 10.3632
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.919
  Prefactor  = 21.7707
  Prefactor  = 0.0001
  norm       = 2.66919
  norm       = 2.72843
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 21.6993
  norm       = 6.31066
  Prefactor  = 96.0231
  Prefactor  = 0.0001
  norm       = 7.83363
  norm       = 9.5971
  Prefactor  = 44.312
  Prefactor  = 1.81644
  Normalizat = 0.986404
  Prefactor  = 0.827145
 **********
 **   18 **HESSE 
 **********

 FCN=   5126.307     FROM HESSE     STATUS=OK           553 CALLS     4260 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    41.234        .41288E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    25.913        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     64.837        72.684        .24923E-03   -1.4096    
   4  Prefactor     10.363        10.822        .12437E-03   -1.5064    
   5  norm          .10000E-03    1.2495        .11238E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    11.093        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    8.4226        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    8.9796        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    9.1254        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    8.4695        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     11.919        45.729        .11609E-03   -1.5017    
  12  Prefactor     21.771        32.151        .85834E-04   -1.4774    
  13  Prefactor     .10000E-03    18.092        .33987E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          2.6692        1.4830        .58687E-04   -1.5381    
  15  norm          2.7284        5.4779        .22468E-03   -1.5378    
  16  Prefactor     .10000E-03    23.825        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    113.23        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    48.598        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    70.440        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     21.699        25.283        .85999E-04   -1.4776    
  21  norm          6.3107        60.754        .15960E-03   -1.5205    
  22  Prefactor     96.023        73.083        .41019E-04   -1.3745    
  23  Prefactor     .10000E-03    1.7021        .91050E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          7.8336        1.5505        .33979E-04   -1.5148    
  25  norm          9.5971        8.4932        .12936E-03   -1.5088    
  26  Prefactor     44.312        23.546        .60227E-04   -1.4376    
  27  Prefactor     1.8164        12.144        .15509E-02   -1.5438    
  28  Normalizat    .98640        .27126        .28814E-03   -.93487    
  29  Prefactor     .82715        .19567        .23987E-03   -.98735    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.91688e-10
Minuit parameter uncertainties:
  1  0.000879
  2  2.57706e-05
  3  72.7837
  4  10.8239
  5  2.65185e-07
  6  2.6176e-06
  7  2.31839e-06
  8  1.68659e-05
  9  4.12527e-06
  10  6.19474e-06
  11  45.8638
  12  32.1761
  13  8.78378e-05
  14  1.48303
  15  5.47891
  16  4.5671e-05
  17  0.000561292
  18  0.000289756
  19  0.000314279
  20  25.2958
  21  39.2128
  22  73.1515
  23  2.15042e-06
  24  1.55047
  25  8.49429
  26  23.5506
  27  9.39594
  28  0.271635
  29  0.195834
Done.

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

Extracting fit parameters...

4FGL J2320.8-0823
   Spectrum: PowerLaw
360    Prefactor:  1.192e+01  4.586e+01  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:  8.271e-01  1.958e-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.864e-01  2.716e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.08
Ra Dec: 350.223 -8.392
Photon Flux Upper Limit: 1.24e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.71e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/751042/likelihoodResults_347932801_348192001_4FGL_J2320.8-0823_daily_bin419.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5126.30677734
delta logL = 5.45679376955e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5126.30676903
delta logL = 6.28706438874e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.686       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6717       1.0000          .0000       10.000    
     3 'Normalizat'    .98609       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82727       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=   5126.307     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      269 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.726        52.084        .11719E-03    .42686E-04
   2  Index         2.6714        2.0777        .11071E-01    .36972E-04
   3  Normalizat    .98619        .25137        .28817E-03    .22504E-03
   4  Prefactor     .82727        .19260        .23985E-03   -.32429E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.726
  Index      = 2.67144
  Normalizat = 0.986194
  Prefactor  = 0.827268
 **********
 **   18 **HESSE 
 **********

 FCN=   5126.307     FROM HESSE     STATUS=OK            23 CALLS      292 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.726        48.720        .46875E-05   -1.5023    
   2  Index         2.6714        2.0144        .44286E-03   -.48444    
   3  Normalizat    .98619        .25161        .57634E-04   -.93494    
   4  Prefactor     .82727        .19272        .47971E-04   -.98731    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.76384e-09
Minuit parameter uncertainties:
  1  47.8702
  2  2.09141
  3  0.251917
  4  0.19288
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/751042': 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) = 5126.3067682
delta logL = 6.36995373497e-05

Extracting fit parameters...

4FGL J2320.8-0823
   Spectrum: PowerLaw
360    Prefactor:  1.173e+01  4.787e+01  1.000e-04  1.000e+04 ( 1.000e-13)
361        Index:  2.671e+00  2.091e+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:  8.273e-01  1.929e-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.862e-01  2.519e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.08
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/751042/cmap_HighResolution_347932801_348192001_4FGL_J2320.8-0823_daily_bin419.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.71e-03', job_status='DONE', photon_flux_upper_limit='1.24e-07', time_completed='2021-09-29 11:42:43.110369', job_id='751042', GAL2='0.83', fit_tolerance='1e-08', EG2='0.99', EG='0.99', time_epoch_completed='1632940963.11', return_code2='0', ts='0.08', comment='SUCCESS', return_code='0', GAL='0.83', dlogl='6.37e-05', ts2='0.08', photon_index_error='0.00', photon_index='2.65' WHERE bin_id='419' AND source_name='4FGL J2320.8-0823' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 11:42:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0210>
Subject: Job 751042: <4FGL_J2320.8-0823_daily_bin419> in cluster <slac> Done

Job <4FGL_J2320.8-0823_daily_bin419> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 11:30:43 2021
Job was executed on host(s) <bullet0210>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 11:30:45 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 11:30:45 2021
Terminated at Wed Sep 29 11:42:43 2021
Results reported at Wed Sep 29 11:42:43 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2320.8-0823_daily_bin419 350.223 -8.3918 347932801 348192001 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 :                                   665.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             312.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   718 sec.
    Turnaround time :                            720 sec.

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

