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


Performing analysis on: 4FGL_J2320.8-0823_daily_bin543
RA = 350.223, Dec = -8.3918
tmin = 380073601, tmax = 380332801
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='752298', job_status='RUN', time_executed='2021-09-29 11:35:36.084914', time_epoch_executed='1632940536.08' WHERE source_name='4FGL J2320.8-0823' and cadence='daily' and bin_id='543'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/752298

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/752298/ft1_4FGL_J2320.8-0823_daily_bin543.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/752298/ft2_4FGL_J2320.8-0823_daily_bin543.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/752298/ft1_4FGL_J2320.8-0823_daily_bin543.fits outfile=/scratch/kocevski/752298/ft1_filteredMKT_4FGL_J2320.8-0823_daily_bin543.fits ra=350.223 dec=-8.3918 rad=12.0 tmin=380073601.0 tmax=380332801.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 4.46
user 4.24
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/752298/ft2_4FGL_J2320.8-0823_daily_bin543.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/752298/ft1_filteredMKT_4FGL_J2320.8-0823_daily_bin543.fits evtable="EVENTS" outfile="/scratch/kocevski/752298/ft1_filtered_4FGL_J2320.8-0823_daily_bin543.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/752298/ft1_filtered_4FGL_J2320.8-0823_daily_bin543.fits" evtable="EVENTS" scfile=/scratch/kocevski/752298/ft2_4FGL_J2320.8-0823_daily_bin543.fits sctable="SC_DATA" outfile=/scratch/kocevski/752298/ltcube_380073601_380332801_4FGL_J2320.8-0823_daily_bin543.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/752298/ft2_4FGL_J2320.8-0823_daily_bin543.fits
.....................!
real 11.72
user 11.35
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/752298/ft1_filtered_4FGL_J2320.8-0823_daily_bin543.fits evtable="EVENTS" scfile=/scratch/kocevski/752298/ft2_4FGL_J2320.8-0823_daily_bin543.fits sctable="SC_DATA" expcube=/scratch/kocevski/752298/ltcube_380073601_380332801_4FGL_J2320.8-0823_daily_bin543.fits outfile=/scratch/kocevski/752298/expmap_380073601_380332801_4FGL_J2320.8-0823_daily_bin543.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/752298/ltcube_380073601_380332801_4FGL_J2320.8-0823_daily_bin543.fits
.....................!
real 190.78
user 185.06
sys 5.33

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/752298/ft1_filtered_4FGL_J2320.8-0823_daily_bin543.fits scfile=/scratch/kocevski/752298/ft2_4FGL_J2320.8-0823_daily_bin543.fits outfile=/scratch/kocevski/752298/cmap_380073601_380332801_4FGL_J2320.8-0823_daily_bin543.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/752298/ft1_filtered_4FGL_J2320.8-0823_daily_bin543.fits scfile=/scratch/kocevski/752298/ft2_4FGL_J2320.8-0823_daily_bin543.fits outfile=/scratch/kocevski/752298/cmap_HighResolution_380073601_380332801_4FGL_J2320.8-0823_daily_bin543.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.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/752298/ft1_filtered_4FGL_J2320.8-0823_daily_bin543.fits evtable="EVENTS" scfile=/scratch/kocevski/752298/ft2_4FGL_J2320.8-0823_daily_bin543.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/752298/Model_4FGL_J2320.8-0823_daily_bin543.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/752298/ft1_filtered_4FGL_J2320.8-0823_daily_bin543.fits.....................!
real 47.54
user 46.33
sys 1.08

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    21.252       1.0000         .10000E-03   10000.    
     2 'Prefactor '    96.819       1.0000         .10000E-03   10000.    
     3 'Prefactor '    15.749       1.0000         .10000E-03   10000.    
     4 'Prefactor '    10.872       1.0000         .10000E-03   10000.    
     5 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    22.836       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    15.284       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10062E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    57.685       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    22.374       1.0000         .10000E-03   10000.    
    14 'norm      '    1.5587       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    122.14       1.0000         .10000E-03   10000.    
    18 'Prefactor '    32.238       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10213E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10092E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    18.252       1.0000         .10000E-03   10000.    
    22 'Prefactor '    63.848       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10495E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    10.707       1.0000         .10000E-03   10000.    
    25 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .16941E-01   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .57247       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.0579       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=   5033.232     FROM MIGRAD    STATUS=CONVERGED    714 CALLS     3785 TOTAL
                     EDM=   .24E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     21.254        14.133       -.30387E-06   -.17042E-03
   2  Prefactor     96.811        86.352       -.57162E-06   -.45096E-04
   3  Prefactor     15.735        80.088        .19645E-05   -.57481E-06
   4  Prefactor     10.867        21.262        .11440E-05   -.12658E-03
   5  norm          .10000E-03    .57422       -.27918E-06** at limit **
   6  Prefactor     22.854        46.671        .89679E-06   -.34937E-04
   7  Prefactor     .10000E-03    12.628       -.43161E-06** at limit **
   8  Prefactor     .10000E-03    6.3865       -.24833E-06** at limit **
   9  norm          15.284        11.132        .19150E-06   -.36512E-04
  10  Prefactor     .10000E-03    26.431        .96728E-06** at limit **
  11  Prefactor     57.669        85.275       -.21839E-06   -.29390E-05
  12  Prefactor     .10000E-03    15.003       -.17940E-05** at limit **
  13  Prefactor     22.377        17.485        .15465E-07   -.47876E-04
  14  norm          1.5582        1.1481        .96605E-07   -.53865E-04
  15  norm          .10000E-03    3.3776       -.14763E-07** at limit **
  16  Prefactor     .10000E-03    26.000        .26146E-06** at limit **
  17  Prefactor     122.44        144.98        .20024E-06   -.63609E-05
  18  Prefactor     32.175        48.021       -.61483E-06   -.15662E-04
  19  Prefactor     .10000E-03    160.98        .62539E-06** at limit **
  20  Prefactor     .10000E-03    5.6291        .60102E-07** at limit **
  21  norm          18.244        19.794        .27992E-06   -.28983E-04
  22  Prefactor     63.859        68.161       -.27339E-06   -.22670E-04
  23  Prefactor     .10000E-03    4.6780        .17347E-06** at limit **
  24  norm          10.707        1.5791        .37830E-07    .64109E-03
  25  norm          .10000E-03    2.6189       -.37595E-06** at limit **
  26  Prefactor     .10000E-03    138.72        .17891E-04** at limit **
  27  Prefactor     .10000E-03    6.2317        .52210E-06** at limit **
  28  Normalizat    .57175        .28025        .79300E-05   -.23010E-03
  29  Prefactor     1.0584        .20828       -.55002E-05   -.28525E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 21.2542
  Prefactor  = 96.8109
  Prefactor  = 15.7348
  Prefactor  = 10.8665
  norm       = 0.0001
  Prefactor  = 22.8543
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 15.2835
  Prefactor  = 0.0001
  Prefactor  = 57.6687
  Prefactor  = 0.000100001
  Prefactor  = 22.3772
  norm       = 1.5582
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 122.438
  Prefactor  = 32.1749
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 18.2441
  Prefactor  = 63.8592
  Prefactor  = 0.0001
  norm       = 10.7071
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.571747
  Prefactor  = 1.05835
 **********
 **   18 **HESSE 
 **********

 FCN=   5033.232     FROM HESSE     STATUS=OK           551 CALLS     4336 TOTAL
                     EDM=   .50E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     21.254        14.136        .86885E-04   -1.4786    
   2  Prefactor     96.811        86.290        .40851E-04   -1.3737    
   3  Prefactor     15.735        80.123        .10092E-03   -1.4914    
   4  Prefactor     10.867        21.547        .12151E-03   -1.5049    
   5  norm          .10000E-03    .91242        .10254E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     22.854        46.441        .83821E-04   -1.4751    
   7  Prefactor     .10000E-03    12.731        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    6.4090        .17512E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          15.284        11.130        .10245E-03   -1.4926    
  10  Prefactor     .10000E-03    26.852        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     57.669        85.434        .52820E-04   -1.4188    
  12  Prefactor     .10000E-03    15.162        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     22.377        17.490        .84680E-04   -1.4762    
  14  norm          1.5582        1.1347        .61701E-04   -1.5458    
  15  norm          .10000E-03    3.4021        .12716E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    26.052        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     122.44        144.88        .18209E-03   -1.3490    
  18  Prefactor     32.175        47.985        .70572E-04   -1.4573    
  19  Prefactor     .10000E-03    161.05        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    5.6418        .16428E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          18.244        19.726        .93750E-04   -1.4853    
  22  Prefactor     63.859        68.143        .50222E-04   -1.4108    
  23  Prefactor     .10000E-03    4.7799        .29842E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          10.707        1.5821        .32380E-04   -1.5053    
  25  norm          .10000E-03    2.6330        .11227E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    133.76        .57002E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    6.2903        .17305E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .57175        .28032        .37336E-03   -1.0920    
  29  Prefactor     1.0584        .20959        .22085E-03   -.90809    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.99678e-10
Minuit parameter uncertainties:
  1  14.1378
  2  86.4019
  3  71.1648
  4  21.5626
  5  2.15118e-05
  6  46.514
  7  2.59625e-05
  8  1.54261e-05
  9  11.1311
  10  0.000170821
  11  85.6161
  12  0.000233151
  13  17.4937
  14  1.13474
  15  8.46754e-07
  16  7.48062e-05
  17  145.298
  18  48.0431
  19  0.000521551
  20  2.71435e-06
  21  19.733
  22  68.2261
  23  4.4687e-06
  24  1.5821
  25  2.38193e-05
  26  0.000516039
  27  3.5189e-05
  28  0.281018
  29  0.209751
Done.

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

Extracting fit parameters...

4FGL J2320.8-0823
   Spectrum: PowerLaw
360    Prefactor:  5.767e+01  8.562e+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.058e+00  2.098e-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.717e-01  2.810e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.98
Ra Dec: 350.223 -8.392
Photon Flux Upper Limit: 1.88e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.48e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/752298/likelihoodResults_380073601_380332801_4FGL_J2320.8-0823_daily_bin543.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) = 5033.22851249
delta logL = 0.00348753406615

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5033.22707811
delta logL = 0.00492191529247

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    53.900       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7325       1.0000          .0000       10.000    
     3 'Normalizat'    .56846       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0604       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=   5033.227     FROM MIGRAD    STATUS=CONVERGED     82 CALLS      256 TOTAL
                     EDM=   .91E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     53.892        78.362        .54633E-04    .23531E-03
   2  Index         2.7326        .90154        .82153E-02    .14673E-03
   3  Normalizat    .56898        .26309        .37424E-03   -.15456E-03
   4  Prefactor     1.0600        .20553        .22070E-03   -.10007E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 53.892
  Index      = 2.73257
  Normalizat = 0.568984
  Prefactor  = 1.05996
 **********
 **   18 **HESSE 
 **********

 FCN=   5033.227     FROM HESSE     STATUS=OK            25 CALLS      281 TOTAL
                     EDM=   .89E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     53.892        74.997        .10927E-04   -1.4238    
   2  Index         2.7326        .86247        .32861E-03   -.47067    
   3  Normalizat    .56898        .26328        .14970E-04   -1.0932    
   4  Prefactor     1.0600        .20561        .44141E-04   -.90757    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.86092e-10
Minuit parameter uncertainties:
  1  75.1283
  2  0.867952
  3  0.263864
  4  0.205768
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/752298': 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) = 5033.22707592
delta logL = 0.00492410208517

Extracting fit parameters...

4FGL J2320.8-0823
   Spectrum: PowerLaw
360    Prefactor:  5.389e+01  7.513e+01  1.000e-04  1.000e+04 ( 1.000e-13)
361        Index:  2.733e+00  8.680e-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:  1.060e+00  2.058e-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.690e-01  2.639e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.02
Ra Dec: 350.223 -8.392
Photon Index (Free Index): 2.73 +/- 0.87
Photon Flux (Free Index): 5.56e-08 +/- 6.75e-08
Energy Flux (Free Index): 1.30e-05 +/- 1.55e-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/752298/cmap_HighResolution_380073601_380332801_4FGL_J2320.8-0823_daily_bin543.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.48e-02', comment='SUCCESS', energy_flux2='1.30e-05', dlogl='4.92e-03', photon_flux2='5.56e-08', job_status='DONE', time_completed='2021-09-29 11:46:48.157283', photon_index_error2='0.87', photon_index2='2.73', ts='0.98', fit_tolerance='1e-08', GAL='1.06', photon_index_error='0.00', photon_flux_upper_limit='1.88e-07', energy_flux_error2='1.55e-05', EG='0.57', time_epoch_completed='1632941208.16', return_code='0', job_id='752298', GAL2='1.06', EG2='0.57', return_code2='0', photon_flux_error2='6.75e-08', ts2='1.02', photon_index='2.65' WHERE bin_id='543' AND source_name='4FGL J2320.8-0823' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 11:46:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0259>
Subject: Job 752298: <4FGL_J2320.8-0823_daily_bin543> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2320.8-0823_daily_bin543 350.223 -8.3918 380073601 380332801 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 :                                   668.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             327.18 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   690 sec.
    Turnaround time :                            691 sec.

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

