/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 1 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 = 7330
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2320.8-0823_daily_bin646
RA = 350.223, Dec = -8.3918
tmin = 406771201, tmax = 407030401
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='752451', job_status='RUN', time_executed='2021-09-29 11:35:41.557331', time_epoch_executed='1632940541.56' WHERE source_name='4FGL J2320.8-0823' and cadence='daily' and bin_id='646'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/752451

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/752451/ft1_4FGL_J2320.8-0823_daily_bin646.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/752451/ft2_4FGL_J2320.8-0823_daily_bin646.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/752451/ft1_4FGL_J2320.8-0823_daily_bin646.fits outfile=/scratch/kocevski/752451/ft1_filteredMKT_4FGL_J2320.8-0823_daily_bin646.fits ra=350.223 dec=-8.3918 rad=12.0 tmin=406771201.0 tmax=407030401.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.46
user 3.22
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/752451/ft1_filtered_4FGL_J2320.8-0823_daily_bin646.fits" evtable="EVENTS" scfile=/scratch/kocevski/752451/ft2_4FGL_J2320.8-0823_daily_bin646.fits sctable="SC_DATA" outfile=/scratch/kocevski/752451/ltcube_406771201_407030401_4FGL_J2320.8-0823_daily_bin646.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/752451/ft2_4FGL_J2320.8-0823_daily_bin646.fits
.....................!
real 12.22
user 11.85
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/752451/ft1_filtered_4FGL_J2320.8-0823_daily_bin646.fits evtable="EVENTS" scfile=/scratch/kocevski/752451/ft2_4FGL_J2320.8-0823_daily_bin646.fits sctable="SC_DATA" expcube=/scratch/kocevski/752451/ltcube_406771201_407030401_4FGL_J2320.8-0823_daily_bin646.fits outfile=/scratch/kocevski/752451/expmap_406771201_407030401_4FGL_J2320.8-0823_daily_bin646.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/752451/ltcube_406771201_407030401_4FGL_J2320.8-0823_daily_bin646.fits
.....................!
real 191.56
user 186.18
sys 4.95

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 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/752451/ft1_filtered_4FGL_J2320.8-0823_daily_bin646.fits scfile=/scratch/kocevski/752451/ft2_4FGL_J2320.8-0823_daily_bin646.fits outfile=/scratch/kocevski/752451/cmap_406771201_407030401_4FGL_J2320.8-0823_daily_bin646.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.55
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/752451/ft1_filtered_4FGL_J2320.8-0823_daily_bin646.fits scfile=/scratch/kocevski/752451/ft2_4FGL_J2320.8-0823_daily_bin646.fits outfile=/scratch/kocevski/752451/cmap_HighResolution_406771201_407030401_4FGL_J2320.8-0823_daily_bin646.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.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.7205       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    49.793       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.5695       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .12037E-02   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    18.006       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    3.0141       1.0000         .10000E-03   10000.    
    15 'norm      '    6.0659       1.0000         .10000E-03   10000.    
    16 'Prefactor '    35.998       1.0000         .10000E-03   10000.    
    17 'Prefactor '    88.094       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .41580E-02   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10344E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    71.838       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .21223E-01   1.0000         .10000E-03   10000.    
    24 'norm      '    2.0248       1.0000         .10000E-03   10000.    
    25 'norm      '    6.1040       1.0000         .10000E-03   10000.    
    26 'Prefactor '    19.358       1.0000         .10000E-03   10000.    
    27 'Prefactor '    23.647       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .51560       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.1047       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=   6269.073     FROM MIGRAD    STATUS=CONVERGED    781 CALLS     3780 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.7214        8.7416       -.13926E-05   -.38372E-03
   2  Prefactor     .10000E-03    26.351       -.43550E-06** at limit **
   3  Prefactor     49.782        47.127       -.11358E-06   -.16671E-04
   4  Prefactor     .10000E-03    12.967       -.47039E-06** at limit **
   5  norm          .10000E-03    .59121       -.18198E-06** at limit **
   6  Prefactor     1.5644        36.830        .50254E-05    .87717E-04
   7  Prefactor     .10000E-03    2.2707        .15312E-08** at limit **
   8  Prefactor     .10000E-03    3.3177        .56134E-07** at limit **
   9  norm          .10011E-03    38.454        .28978E-05** at limit **
  10  Prefactor     .10000E-03    10.120        .99481E-07** at limit **
  11  Prefactor     17.990        37.225       -.23855E-06   -.18882E-04
  12  Prefactor     .10000E-03    7.2147        .22372E-07** at limit **
  13  Prefactor     .10000E-03    4.1419        .17212E-07** at limit **
  14  norm          3.0141        1.1507       -.24435E-07   -.41185E-03
  15  norm          6.0657        4.3632        .24798E-07    .27727E-04
  16  Prefactor     35.978        51.220       -.47667E-06   -.47643E-04
  17  Prefactor     87.957        46.027       -.21543E-06   -.39553E-03
  18  Prefactor     .10018E-03    39.172        .15132E-05** at limit **
  19  Prefactor     .10001E-03    176.81        .31890E-05** at limit **
  20  Prefactor     .10000E-03    9.8383        .23144E-06** at limit **
  21  norm          71.871        34.836       -.82900E-06   -.64010E-04
  22  Prefactor     .10000E-03    23.785        .43698E-06** at limit **
  23  Prefactor     .10378E-03    3.0363       -.61809E-07** at limit **
  24  norm          2.0246        .83409        .27688E-08   -.52726E-03
  25  norm          6.1027        5.8598        .57209E-07   -.10675E-03
  26  Prefactor     19.357        17.749       -.93868E-07   -.54349E-06
  27  Prefactor     23.645        9.6847        .11253E-06   -.55010E-04
  28  Normalizat    .51577        .19916        .14956E-06   -.17894E-03
  29  Prefactor     1.1045        .15410       -.37322E-06   -.81892E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.7214
  Prefactor  = 0.0001
  Prefactor  = 49.7817
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 1.56437
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100106
  Prefactor  = 0.0001
  Prefactor  = 17.9896
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.01414
  norm       = 6.06574
  Prefactor  = 35.9782
  Prefactor  = 87.9567
  Prefactor  = 0.000100185
  Prefactor  = 0.000100006
  Prefactor  = 0.0001
  norm       = 71.8714
  Prefactor  = 0.0001
  Prefactor  = 0.000103777
  norm       = 2.02458
  norm       = 6.10267
  Prefactor  = 19.3574
  Prefactor  = 23.6452
  Normalizat = 0.515771
  Prefactor  = 1.10449
 **********
 **   18 **HESSE 
 **********

 FCN=   6269.073     FROM HESSE     STATUS=OK           559 CALLS     4339 TOTAL
                     EDM=   .61E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.7214        9.1288        .12346E-02   -1.5378    
   2  Prefactor     .10000E-03    26.393        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     49.782        47.133        .56831E-04   -1.4296    
   4  Prefactor     .10000E-03    13.343        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    1.2619        .10526E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.5644        37.329        .33937E-03   -1.5458    
   7  Prefactor     .10000E-03    2.2722        .11652E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    3.3269        .14081E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10011E-03    53.382        .35673E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    10.145        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     17.990        37.256        .94386E-04   -1.4859    
  12  Prefactor     .10000E-03    7.2204        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    4.1457        .15689E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          3.0141        1.1478        .49368E-04   -1.5361    
  15  norm          6.0657        4.3600        .66884E-03   -1.5215    
  16  Prefactor     35.978        51.306        .66795E-04   -1.4508    
  17  Prefactor     87.957        47.593        .21404E-03   -1.3829    
  18  Prefactor     .10018E-03    65.633        .52124E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10001E-03    177.21        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    9.8917        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          71.871        36.852        .47365E-04   -1.4010    
  22  Prefactor     .10000E-03    23.784        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10378E-03    8.3591        .37990E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          2.0246        .85585        .37782E-04   -1.5423    
  25  norm          6.1027        6.0222        .15288E-03   -1.5214    
  26  Prefactor     19.357        17.732        .91033E-04   -1.4828    
  27  Prefactor     23.645        9.7028        .82373E-04   -1.4735    
  28  Normalizat    .51577        .22030        .33967E-03   -1.1169    
  29  Prefactor     1.1045        .16965        .19754E-03   -.89323    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.05896e-09
Minuit parameter uncertainties:
  1  9.13343
  2  0.000139166
  3  47.1687
  4  0.000118677
  5  3.24324e-05
  6  15.2937
  7  1.40225e-06
  8  4.46854e-06
  9  0.00475955
  10  9.88818e-06
  11  37.3046
  12  3.02148e-06
  13  3.37593e-06
  14  1.14782
  15  4.36027
  16  51.3688
  17  47.6138
  18  0.00697408
  19  0.00206546
  20  3.27222e-05
  21  36.8641
  22  8.12015e-05
  23  0.0112387
  24  0.855859
  25  6.02275
  26  17.7364
  27  9.70345
  28  0.220672
  29  0.169733
Done.

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

Extracting fit parameters...

4FGL J2320.8-0823
   Spectrum: PowerLaw
360    Prefactor:  1.799e+01  3.730e+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:  1.104e+00  1.697e-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:  5.158e-01  2.207e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/752451/likelihoodResults_406771201_407030401_4FGL_J2320.8-0823_daily_bin646.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) = 6266.9986729
delta logL = 2.07461286824

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6266.95476629
delta logL = 2.11851947568

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .54186       1.0000         .10000E-03   10000.    
     2 'Index     '    6.0313       1.0000          .0000       10.000    
     3 'Normalizat'    .39031       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1743       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.

 FCN=   6266.955     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      277 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .54108        4.4836        .69626E-02    .84328E-03
   2  Index         6.0314        2.8428        .11362        .13979E-03
   3  Normalizat    .39012        .53154E-01    .87652E-01    .37272E-04
   4  Prefactor     1.1745        .43891E-01    .35269E-01   -.38870E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.541076
  Index      = 6.03135
  Normalizat = 0.390116
  Prefactor  = 1.1745
 **********
 **   18 **HESSE 
 **********

 FCN=   6266.955     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      310 TOTAL
                     EDM=   .41E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .54108        8.3391        .31422E-04   -1.5561    
   2  Index         6.0314        3.9686        .45973E-02    .20776    
   3  Normalizat    .39012        .18538        .38829E-03   -1.1782    
   4  Prefactor     1.1745        .15151        .19218E-03   -.87120    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.05547e-10
Minuit parameter uncertainties:
  1  4.24865
  2  4.62897
  3  0.185671
  4  0.151569
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/752451': 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) = 6266.95476189
delta logL = 2.11852387555

Extracting fit parameters...

4FGL J2320.8-0823
   Spectrum: PowerLaw
360    Prefactor:  5.411e-01  4.249e+00  1.000e-04  1.000e+04 ( 1.000e-13)
361        Index:  6.031e+00  4.629e+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:  1.174e+00  1.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:  3.901e-01  1.857e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.05
Ra Dec: 350.223 -8.392
Photon Index (Free Index): 6.03 +/- 4.63
Photon Flux (Free Index): 1.01e-07 +/- 5.60e-08
Energy Flux (Free Index): 1.26e-05 +/- 7.41e-06

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/752451/cmap_HighResolution_406771201_407030401_4FGL_J2320.8-0823_daily_bin646.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.53e-03', comment='SUCCESS', energy_flux2='1.26e-05', dlogl='2.12e+00', photon_flux2='1.01e-07', job_status='DONE', time_completed='2021-09-29 11:48:29.718076', photon_index_error2='4.63', photon_index2='6.03', ts='0.30', fit_tolerance='1e-08', GAL='1.10', photon_index_error='0.00', photon_flux_upper_limit='9.60e-08', energy_flux_error2='7.41e-06', EG='0.52', time_epoch_completed='1632941309.72', return_code='0', job_id='752451', GAL2='1.17', EG2='0.39', return_code2='102', photon_flux_error2='5.60e-08', ts2='5.05', photon_index='2.65' WHERE bin_id='646' AND source_name='4FGL J2320.8-0823' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 11:48:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0202>
Subject: Job 752451: <4FGL_J2320.8-0823_daily_bin646> in cluster <slac> Done

Job <4FGL_J2320.8-0823_daily_bin646> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 11:35:31 2021
Job was executed on host(s) <bullet0202>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 11:35:32 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:35:32 2021
Terminated at Wed Sep 29 11:48:32 2021
Results reported at Wed Sep 29 11:48:32 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2320.8-0823_daily_bin646 350.223 -8.3918 406771201 407030401 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 :                                   763.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             291.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   777 sec.
    Turnaround time :                            781 sec.

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

