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


Performing analysis on: 4FGL_J2320.8-0823_daily_bin1177
RA = 350.223, Dec = -8.3918
tmin = 544406401, tmax = 544665601
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='754292', job_status='RUN', time_executed='2021-09-29 11:41:23.690155', time_epoch_executed='1632940883.69' WHERE source_name='4FGL J2320.8-0823' and cadence='daily' and bin_id='1177'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/754292

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

Retrieving the FT1 file...

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

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

Retrieving 36 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/754292/ft1_4FGL_J2320.8-0823_daily_bin1177.fits


Retrieving the FT1 file...

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

Retrieving 36 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/754292/ft2_4FGL_J2320.8-0823_daily_bin1177.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/754292/ft1_4FGL_J2320.8-0823_daily_bin1177.fits outfile=/scratch/kocevski/754292/ft1_filteredMKT_4FGL_J2320.8-0823_daily_bin1177.fits ra=350.223 dec=-8.3918 rad=12.0 tmin=544406401.0 tmax=544665601.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 7.77
user 7.43
sys 0.31

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/754292/ft1_filtered_4FGL_J2320.8-0823_daily_bin1177.fits" evtable="EVENTS" scfile=/scratch/kocevski/754292/ft2_4FGL_J2320.8-0823_daily_bin1177.fits sctable="SC_DATA" outfile=/scratch/kocevski/754292/ltcube_544406401_544665601_4FGL_J2320.8-0823_daily_bin1177.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/754292/ft2_4FGL_J2320.8-0823_daily_bin1177.fits
.....................!
real 7.62
user 7.29
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/754292/ft1_filtered_4FGL_J2320.8-0823_daily_bin1177.fits evtable="EVENTS" scfile=/scratch/kocevski/754292/ft2_4FGL_J2320.8-0823_daily_bin1177.fits sctable="SC_DATA" expcube=/scratch/kocevski/754292/ltcube_544406401_544665601_4FGL_J2320.8-0823_daily_bin1177.fits outfile=/scratch/kocevski/754292/expmap_544406401_544665601_4FGL_J2320.8-0823_daily_bin1177.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/754292/ltcube_544406401_544665601_4FGL_J2320.8-0823_daily_bin1177.fits
.....................!
real 190.32
user 185.54
sys 4.41

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/754292/ft1_filtered_4FGL_J2320.8-0823_daily_bin1177.fits scfile=/scratch/kocevski/754292/ft2_4FGL_J2320.8-0823_daily_bin1177.fits outfile=/scratch/kocevski/754292/cmap_544406401_544665601_4FGL_J2320.8-0823_daily_bin1177.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.35
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/754292/ft1_filtered_4FGL_J2320.8-0823_daily_bin1177.fits scfile=/scratch/kocevski/754292/ft2_4FGL_J2320.8-0823_daily_bin1177.fits outfile=/scratch/kocevski/754292/cmap_HighResolution_544406401_544665601_4FGL_J2320.8-0823_daily_bin1177.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.53
user 0.36
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/754292/ft1_filtered_4FGL_J2320.8-0823_daily_bin1177.fits evtable="EVENTS" scfile=/scratch/kocevski/754292/ft2_4FGL_J2320.8-0823_daily_bin1177.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/754292/Model_4FGL_J2320.8-0823_daily_bin1177.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/754292/ft1_filtered_4FGL_J2320.8-0823_daily_bin1177.fits.....................!
real 43.77
user 42.45
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    46.248       1.0000         .10000E-03   10000.    
     5 'norm      '    3.8275       1.0000         .10000E-03   10000.    
     6 'Prefactor '    58.384       1.0000         .10000E-03   10000.    
     7 'Prefactor '    8.3002       1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.2627       1.0000         .10000E-03   10000.    
     9 'norm      '    18.773       1.0000         .10000E-03   10000.    
    10 'Prefactor '    25.854       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .49507E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10126E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .34881E-02   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10416E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    133.13       1.0000         .10000E-03   10000.    
    20 'Prefactor '    9.7019       1.0000         .10000E-03   10000.    
    21 'norm      '    36.630       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .68367       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10369E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    1.0530       1.0000         .10000E-03   10000.    
    25 'norm      '    7.4660       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10172E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.3353       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .67115       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=   4134.251     FROM MIGRAD    STATUS=CONVERGED    775 CALLS     4446 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.6030       -.11926E-06** at limit **
   2  Prefactor     .10000E-03    29.540       -.39553E-07** at limit **
   3  Prefactor     .10000E-03    121.33       -.22673E-07** at limit **
   4  Prefactor     46.158        47.007        .14504E-06    .18824E-03
   5  norm          3.8348        3.5361       -.12320E-06   -.77346E-03
   6  Prefactor     58.406        56.246       -.48795E-07    .31091E-04
   7  Prefactor     8.3000        13.908       -.39059E-06   -.86765E-05
   8  Prefactor     3.2623        9.0761       -.64088E-06   -.37814E-04
   9  norm          18.772        14.734       -.53186E-07    .11263E-03
  10  Prefactor     25.867        47.719       -.14007E-06    .11254E-03
  11  Prefactor     .10000E-03    45.304        .17249E-06** at limit **
  12  Prefactor     .10000E-03    11.279       -.74155E-07** at limit **
  13  Prefactor     .10001E-03    48.363        .13878E-04** at limit **
  14  norm          .10000E-03    .54480       -.39707E-06** at limit **
  15  norm          .10012E-03    9.8243       -.12615E-05** at limit **
  16  Prefactor     .10000E-03    76.012       -.46301E-08** at limit **
  17  Prefactor     .10000E-03    17.197       -.74662E-07** at limit **
  18  Prefactor     .10000E-03    5.3549       -.54765E-07** at limit **
  19  Prefactor     133.83        253.64       -.39621E-05   -.21881E-04
  20  Prefactor     9.6986        26.453        .13697E-05    .31167E-03
  21  norm          36.615        55.916       -.28617E-06    .18763E-03
  22  Prefactor     .15204E-03    228.74       -.24778E-04** at limit **
  23  Prefactor     .10000E-03    3.5883       -.80283E-06** at limit **
  24  norm          1.0526        1.1202       -.71174E-07    .49822E-04
  25  norm          7.4665        8.7972       -.47762E-07    .10790E-03
  26  Prefactor     .10000E-03    13.940       -.98466E-07** at limit **
  27  Prefactor     .10000E-03    13.097       -.47577E-06** at limit **
  28  Normalizat    1.3355        .26023       -.36186E-06    .67732E-03
  29  Prefactor     .67103        .19101        .32335E-05    .80809E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 46.1578
  norm       = 3.83481
  Prefactor  = 58.4061
  Prefactor  = 8.3
  Prefactor  = 3.26228
  norm       = 18.7719
  Prefactor  = 25.8666
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.00010001
  norm       = 0.0001
  norm       = 0.000100123
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 133.828
  Prefactor  = 9.69863
  norm       = 36.6145
  Prefactor  = 0.000152037
  Prefactor  = 0.0001
  norm       = 1.05258
  norm       = 7.46648
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.33555
  Prefactor  = 0.671035
 **********
 **   18 **HESSE 
 **********

 FCN=   4134.251     FROM HESSE     STATUS=OK           553 CALLS     4999 TOTAL
                     EDM=   .51E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.6271        .17318E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    29.541        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    121.45        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     46.158        47.900        .58959E-04   -1.4348    
   5  norm          3.8348        3.6140        .55943E-04   -1.5316    
   6  Prefactor     58.406        56.226        .52505E-04   -1.4178    
   7  Prefactor     8.3000        13.912        .13915E-03   -1.5132    
   8  Prefactor     3.2623        9.0754        .22420E-03   -1.5347    
   9  norm          18.772        14.737        .92438E-04   -1.4841    
  10  Prefactor     25.867        47.778        .78785E-04   -1.4690    
  11  Prefactor     .10000E-03    45.335        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    11.290        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10001E-03    53.184        .40665E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    .56497        .93211E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10012E-03    60.906        .36406E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    76.066        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    17.204        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    5.3574        .14532E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     133.83        255.65        .17450E-03   -1.3389    
  20  Prefactor     9.6986        26.623        .12865E-03   -1.5085    
  21  norm          36.615        55.968        .66219E-04   -1.4497    
  22  Prefactor     .15204E-03    99.031        .17870       -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    3.6416        .11950E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          1.0526        1.0828        .53693E-04   -1.5503    
  25  norm          7.4665        8.7059        .14678E-03   -1.5161    
  26  Prefactor     .10000E-03    13.954        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    13.332        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.3355        .30854        .26157E-03   -.82511    
  29  Prefactor     .67103        .22973        .27638E-03   -1.0467    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.13121e-09
Minuit parameter uncertainties:
  1  2.63937e-05
  2  1.65518e-05
  3  8.80859e-05
  4  47.9403
  5  3.61416
  6  56.2774
  7  13.9179
  8  9.07919
  9  14.7395
  10  47.8486
  11  3.70918e-05
  12  2.26783e-05
  13  0.00148764
  14  1.22451e-05
  15  0.00548199
  16  0.000118664
  17  2.67757e-05
  18  1.09171e-05
  19  257.812
  20  26.6555
  21  56.0486
  22  0.143811
  23  6.57797e-05
  24  1.08282
  25  8.70741
  26  2.84582e-05
  27  0.000141938
  28  0.30897
  29  0.230058
Done.

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

Extracting fit parameters...

4FGL J2320.8-0823
   Spectrum: PowerLaw
360    Prefactor:  1.000e-04  3.709e-05  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:  6.710e-01  2.301e-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:  1.336e+00  3.090e-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: 1.18e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.27e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/754292/likelihoodResults_544406401_544665601_4FGL_J2320.8-0823_daily_bin1177.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) = 4134.25062274
delta logL = -0.000105011575215

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4134.25051791
delta logL = -1.83763404493e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.2361       1.0000          .0000       10.000    
     3 'Normalizat'    1.3355       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .67103       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=   4134.251     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      284 TOTAL
                     EDM=   .89E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10148E-03    389.23        .18142E-02** at limit **
   2  Index         3.1709        7.8160        .50000        .34751E-05
   3  Normalizat    1.3355        .19846E-01    .26157E-03    .13604E-04
   4  Prefactor     .67103        .15467E-01    .27638E-03    .64582E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101476
  Index      = 3.17092
  Normalizat = 1.33555
  Prefactor  = 0.67103
 **********
 **   18 **HESSE 
 **********

 FCN=   4134.251     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      313 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10148E-03    1590.3        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.1709        5.5888        .50000       -.37451    
   3  Normalizat    1.3355        .42503E-01    .10463E-04   -.82511    
   4  Prefactor     .67103        .33124E-01    .11055E-04   -1.0467    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.01902e-09
Minuit parameter uncertainties:
  1  0.0996725
  2  1678.86
  3  0.0425043
  4  0.0331254
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/754292': 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) = 4134.25051787
delta logL = -1.48366780195e-07

Extracting fit parameters...

4FGL J2320.8-0823
   Spectrum: PowerLaw
360    Prefactor:  1.015e-04  9.967e-02  1.000e-04  1.000e+04 ( 1.000e-13)
361        Index:  3.171e+00  1.679e+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:  6.710e-01  3.313e-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:  1.336e+00  4.250e-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/754292/cmap_HighResolution_544406401_544665601_4FGL_J2320.8-0823_daily_bin1177.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.27e-03', job_status='DONE', photon_flux_upper_limit='1.18e-07', time_completed='2021-09-29 11:52:27.045460', job_id='754292', GAL2='0.67', fit_tolerance='1e-08', EG2='1.34', EG='1.34', time_epoch_completed='1632941547.05', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.67', dlogl='-1.48e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.65' WHERE bin_id='1177' AND source_name='4FGL J2320.8-0823' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 11:52:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0236>
Subject: Job 754292: <4FGL_J2320.8-0823_daily_bin1177> in cluster <slac> Done

Job <4FGL_J2320.8-0823_daily_bin1177> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep 29 11:41:14 2021
Job was executed on host(s) <bullet0236>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 11:41:15 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:41:15 2021
Terminated at Wed Sep 29 11:52:27 2021
Results reported at Wed Sep 29 11:52:27 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2320.8-0823_daily_bin1177 350.223 -8.3918 544406401 544665601 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 :                                   653.40 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             296.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   672 sec.
    Turnaround time :                            673 sec.

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

