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


Performing analysis on: 4FGL_J2320.8-0823_daily_bin748
RA = 350.223, Dec = -8.3918
tmin = 433209601, tmax = 433468801
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='752604', job_status='RUN', time_executed='2021-09-29 11:39:37.437565', time_epoch_executed='1632940777.44' WHERE source_name='4FGL J2320.8-0823' and cadence='daily' and bin_id='748'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/752604

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/752604/ft1_4FGL_J2320.8-0823_daily_bin748.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/752604/ft2_4FGL_J2320.8-0823_daily_bin748.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/752604/ft1_4FGL_J2320.8-0823_daily_bin748.fits outfile=/scratch/kocevski/752604/ft1_filteredMKT_4FGL_J2320.8-0823_daily_bin748.fits ra=350.223 dec=-8.3918 rad=12.0 tmin=433209601.0 tmax=433468801.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 5.96
user 5.69
sys 0.25

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/752604/ft1_filtered_4FGL_J2320.8-0823_daily_bin748.fits" evtable="EVENTS" scfile=/scratch/kocevski/752604/ft2_4FGL_J2320.8-0823_daily_bin748.fits sctable="SC_DATA" outfile=/scratch/kocevski/752604/ltcube_433209601_433468801_4FGL_J2320.8-0823_daily_bin748.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/752604/ft2_4FGL_J2320.8-0823_daily_bin748.fits
.....................!
real 11.91
user 11.54
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/752604/ft1_filtered_4FGL_J2320.8-0823_daily_bin748.fits evtable="EVENTS" scfile=/scratch/kocevski/752604/ft2_4FGL_J2320.8-0823_daily_bin748.fits sctable="SC_DATA" expcube=/scratch/kocevski/752604/ltcube_433209601_433468801_4FGL_J2320.8-0823_daily_bin748.fits outfile=/scratch/kocevski/752604/expmap_433209601_433468801_4FGL_J2320.8-0823_daily_bin748.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/752604/ltcube_433209601_433468801_4FGL_J2320.8-0823_daily_bin748.fits
.....................!
real 191.93
user 186.73
sys 4.90

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/752604/ft1_filtered_4FGL_J2320.8-0823_daily_bin748.fits scfile=/scratch/kocevski/752604/ft2_4FGL_J2320.8-0823_daily_bin748.fits outfile=/scratch/kocevski/752604/cmap_433209601_433468801_4FGL_J2320.8-0823_daily_bin748.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.52
user 0.39
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/752604/ft1_filtered_4FGL_J2320.8-0823_daily_bin748.fits scfile=/scratch/kocevski/752604/ft2_4FGL_J2320.8-0823_daily_bin748.fits outfile=/scratch/kocevski/752604/cmap_HighResolution_433209601_433468801_4FGL_J2320.8-0823_daily_bin748.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=350.223 yref=-8.3918 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.55
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/752604/ft1_filtered_4FGL_J2320.8-0823_daily_bin748.fits evtable="EVENTS" scfile=/scratch/kocevski/752604/ft2_4FGL_J2320.8-0823_daily_bin748.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/752604/Model_4FGL_J2320.8-0823_daily_bin748.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/752604/ft1_filtered_4FGL_J2320.8-0823_daily_bin748.fits.....................!
real 33.91
user 32.53
sys 1.31

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10264E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    22.634       1.0000         .10000E-03   10000.    
     3 'Prefactor '    47.492       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    8.9185       1.0000         .10000E-03   10000.    
     8 'Prefactor '    9.8119       1.0000         .10000E-03   10000.    
     9 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    33.656       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    9.7970       1.0000         .10000E-03   10000.    
    14 'norm      '    3.1501       1.0000         .10000E-03   10000.    
    15 'norm      '    .85731       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10041E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    7.7917       1.0000         .10000E-03   10000.    
    24 'norm      '    2.8523       1.0000         .10000E-03   10000.    
    25 'norm      '    .10051E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10065E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    17.664       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .55315       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.0470       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=   3183.449     FROM MIGRAD    STATUS=CONVERGED    715 CALLS     3635 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.9508        .26513E-06** at limit **
   2  Prefactor     22.569        40.381       -.45733E-04   -.58005E-06
   3  Prefactor     47.486        73.582       -.67591E-05    .81057E-06
   4  Prefactor     .10000E-03    4.5442        .73468E-08** at limit **
   5  norm          .10000E-03    .38318       -.38794E-07** at limit **
   6  Prefactor     .10000E-03    16.289       -.81089E-06** at limit **
   7  Prefactor     8.9164        24.345       -.17934E-05   -.93383E-05
   8  Prefactor     9.8117        13.780       -.44310E-06   -.24611E-04
   9  norm          .10000E-03    7.9322       -.77113E-06** at limit **
  10  Prefactor     33.656        25.641       -.43469E-06    .47598E-05
  11  Prefactor     .10000E-03    22.389        .33743E-06** at limit **
  12  Prefactor     .10000E-03    44.750       -.48137E-05** at limit **
  13  Prefactor     9.7975        9.2891        .18134E-06    .52680E-04
  14  norm          3.1502        1.4193        .13451E-06    .13963E-03
  15  norm          .85655        8.3939       -.25805E-05   -.67313E-03
  16  Prefactor     .10000E-03    35.567       -.22444E-05** at limit **
  17  Prefactor     .10000E-03    34.976       -.86273E-06** at limit **
  18  Prefactor     .10000E-03    13.164        .37314E-06** at limit **
  19  Prefactor     .10000E-03    140.48        .18868E-04** at limit **
  20  Prefactor     .10000E-03    7.6233        .10567E-05** at limit **
  21  norm          .10001E-03    47.935        .59956E-05** at limit **
  22  Prefactor     .10000E-03    21.626       -.45300E-05** at limit **
  23  Prefactor     7.7893        5.9037       -.39826E-05   -.25509E-03
  24  norm          2.8527        .99681       -.12918E-06   -.14628E-02
  25  norm          .10008E-03    4.3588        .86031E-06** at limit **
  26  Prefactor     .10000E-03    46.086        .35299E-06** at limit **
  27  Prefactor     17.664        9.3049        .39320E-06   -.28438E-04
  28  Normalizat    .55305        .25019        .33597E-05   -.32569E-04
  29  Prefactor     1.0471        .20706        .15088E-05   -.36646E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 22.5693
  Prefactor  = 47.4863
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.9164
  Prefactor  = 9.81168
  norm       = 0.0001
  Prefactor  = 33.6558
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.79749
  norm       = 3.15016
  norm       = 0.85655
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100006
  Prefactor  = 0.0001
  Prefactor  = 7.78929
  norm       = 2.85266
  norm       = 0.000100082
  Prefactor  = 0.000100001
  Prefactor  = 17.6642
  Normalizat = 0.553054
  Prefactor  = 1.04708
 **********
 **   18 **HESSE 
 **********

 FCN=   3183.449     FROM HESSE     STATUS=OK           543 CALLS     4178 TOTAL
                     EDM=   .53E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.9681        .12260E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     22.569        40.161        .84193E-04   -1.4757    
   3  Prefactor     47.486        73.613        .58184E-04   -1.4329    
   4  Prefactor     .10000E-03    4.5471        .11746E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    .38563        .34084E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    16.306        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     8.9164        24.333        .13421E-03   -1.5111    
   8  Prefactor     9.8117        13.777        .12793E-03   -1.5081    
   9  norm          .10000E-03    7.9505        .15521E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     33.656        25.660        .69073E-04   -1.4547    
  11  Prefactor     .10000E-03    22.398        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    44.926        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     9.7975        9.2260        .12803E-03   -1.5082    
  14  norm          3.1502        1.4142        .42940E-04   -1.5353    
  15  norm          .85655        8.3644        .30613E-03   -1.5523    
  16  Prefactor     .10000E-03    35.580        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    35.004        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    13.212        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    140.53        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    7.6486        .15211E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10001E-03    48.390        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    21.625        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     7.7893        5.9005        .11324E-03   -1.5150    
  24  norm          2.8527        .93152        .29620E-04   -1.5370    
  25  norm          .10008E-03    23.367        .20999E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    46.851        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     17.664        9.3327        .95296E-04   -1.4867    
  28  Normalizat    .55305        .28628        .31611E-03   -1.1002    
  29  Prefactor     1.0471        .24035        .19994E-03   -.91176    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.26234e-09
Minuit parameter uncertainties:
  1  5.45089e-05
  2  40.2094
  3  73.7541
  4  4.24427e-06
  5  1.03537e-06
  6  1.53894e-05
  7  24.3604
  8  13.7814
  9  1.59323e-05
  10  25.6685
  11  8.08764e-06
  12  0.00010735
  13  9.22734
  14  1.41421
  15  5.35401
  16  5.69968e-06
  17  5.68372e-05
  18  3.51242e-05
  19  0.000279803
  20  8.27195e-05
  21  0.00108562
  22  7.48802e-06
  23  5.90093
  24  0.93153
  25  0.00276404
  26  0.00030669
  27  9.33347
  28  0.287045
  29  0.240596
Done.

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

Extracting fit parameters...

4FGL J2320.8-0823
   Spectrum: PowerLaw
360    Prefactor:  1.000e-04  8.088e-06  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.047e+00  2.406e-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.531e-01  2.870e-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: 9.28e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.28e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/752604/likelihoodResults_433209601_433468801_4FGL_J2320.8-0823_daily_bin748.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) = 3183.44950592
delta logL = -0.000212307616039

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3183.44929576
delta logL = -2.14514966501e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.1945       1.0000          .0000       10.000    
     3 'Normalizat'    .55305       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0471       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=   3183.449     FROM MIGRAD    STATUS=CONVERGED    108 CALLS      294 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    142.29        .18142E-01** at limit **
   2  Index         1.8975        5.5055        .50000        .36403E-07
   3  Normalizat    .55306        .11468E-01    .31610E-03    .16273E-02
   4  Prefactor     1.0471        .98260E-02    .19994E-03    .25737E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  Index      = 1.89749
  Normalizat = 0.553061
  Prefactor  = 1.04708
 **********
 **   18 **HESSE 
 **********

 FCN=   3183.449     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      323 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    740.93        .33407E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8975        8.8844        .50000       -.66938    
   3  Normalizat    .55306        .26889E-01    .63221E-04   -1.1002    
   4  Prefactor     1.0471        .23039E-01    .39987E-04   -.91176    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.08402e-09
Minuit parameter uncertainties:
  1  0.00225983
  2  1246.24
  3  0.0268893
  4  0.0230392
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/752604': 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) = 3183.44929275
delta logL = 8.6846330305e-07

Extracting fit parameters...

4FGL J2320.8-0823
   Spectrum: PowerLaw
360    Prefactor:  1.000e-04  2.260e-03  1.000e-04  1.000e+04 ( 1.000e-13)
361        Index:  1.897e+00  1.246e+03  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.047e+00  2.304e-02  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.531e-01  2.689e-02  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/752604/cmap_HighResolution_433209601_433468801_4FGL_J2320.8-0823_daily_bin748.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.28e-03', job_status='DONE', photon_flux_upper_limit='9.28e-08', time_completed='2021-09-29 11:48:46.280345', job_id='752604', GAL2='1.05', fit_tolerance='1e-08', EG2='0.55', EG='0.55', time_epoch_completed='1632941326.28', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.05', dlogl='8.68e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.65' WHERE bin_id='748' AND source_name='4FGL J2320.8-0823' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 11:48:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0035>
Subject: Job 752604: <4FGL_J2320.8-0823_daily_bin748> in cluster <slac> Done

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

Your job looked like:

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

Successfully completed.

Resource usage summary:

    CPU time :                                   547.25 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             235.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   780 sec.
    Turnaround time :                            783 sec.

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

