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


Performing analysis on: 4FGL_J2320.8-0823_daily_bin1201
RA = 350.223, Dec = -8.3918
tmin = 550627201, tmax = 550886401
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='754329', job_status='RUN', time_executed='2021-09-29 11:43:39.413699', time_epoch_executed='1632941019.41' WHERE source_name='4FGL J2320.8-0823' and cadence='daily' and bin_id='1201'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/754329

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/754329/ft1_4FGL_J2320.8-0823_daily_bin1201.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/754329/ft2_4FGL_J2320.8-0823_daily_bin1201.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/754329/ft1_4FGL_J2320.8-0823_daily_bin1201.fits outfile=/scratch/kocevski/754329/ft1_filteredMKT_4FGL_J2320.8-0823_daily_bin1201.fits ra=350.223 dec=-8.3918 rad=12.0 tmin=550627201.0 tmax=550886401.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.92
user 3.70
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/754329/ft1_filtered_4FGL_J2320.8-0823_daily_bin1201.fits" evtable="EVENTS" scfile=/scratch/kocevski/754329/ft2_4FGL_J2320.8-0823_daily_bin1201.fits sctable="SC_DATA" outfile=/scratch/kocevski/754329/ltcube_550627201_550886401_4FGL_J2320.8-0823_daily_bin1201.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/754329/ft2_4FGL_J2320.8-0823_daily_bin1201.fits
.....................!
real 12.09
user 11.70
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/754329/ft1_filtered_4FGL_J2320.8-0823_daily_bin1201.fits evtable="EVENTS" scfile=/scratch/kocevski/754329/ft2_4FGL_J2320.8-0823_daily_bin1201.fits sctable="SC_DATA" expcube=/scratch/kocevski/754329/ltcube_550627201_550886401_4FGL_J2320.8-0823_daily_bin1201.fits outfile=/scratch/kocevski/754329/expmap_550627201_550886401_4FGL_J2320.8-0823_daily_bin1201.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/754329/ltcube_550627201_550886401_4FGL_J2320.8-0823_daily_bin1201.fits
.....................!
real 190.03
user 184.72
sys 4.97

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/754329/ft1_filtered_4FGL_J2320.8-0823_daily_bin1201.fits scfile=/scratch/kocevski/754329/ft2_4FGL_J2320.8-0823_daily_bin1201.fits outfile=/scratch/kocevski/754329/cmap_550627201_550886401_4FGL_J2320.8-0823_daily_bin1201.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.37
sys 0.15

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/754329/ft1_filtered_4FGL_J2320.8-0823_daily_bin1201.fits evtable="EVENTS" scfile=/scratch/kocevski/754329/ft2_4FGL_J2320.8-0823_daily_bin1201.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/754329/Model_4FGL_J2320.8-0823_daily_bin1201.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/754329/ft1_filtered_4FGL_J2320.8-0823_daily_bin1201.fits.......................!
real 25.99
user 24.71
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    117.06       1.0000         .10000E-03   10000.    
     4 'Prefactor '    65.088       1.0000         .10000E-03   10000.    
     5 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    135.54       1.0000         .10000E-03   10000.    
     7 'Prefactor '    33.305       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10115E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    110.65       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10128E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    3.1637       1.0000         .10000E-03   10000.    
    15 'norm      '    17.421       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10504E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10386E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10676E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10031E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    21.836       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .26276       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .71360       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.0961       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=   1840.971     FROM MIGRAD    STATUS=CONVERGED    735 CALLS     5088 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    17.548       -.21132E-06** at limit **
   2  Prefactor     .10000E-03    161.93       -.51538E-06** at limit **
   3  Prefactor     117.50        454.93        .28113E-05    .65373E-06
   4  Prefactor     65.080        55.562       -.13066E-05   -.54434E-03
   5  norm          .10000E-03    3.7605        .11665E-05** at limit **
   6  Prefactor     135.40        132.55       -.17786E-05   -.28752E-03
   7  Prefactor     33.325        43.350        .40442E-06   -.12094E-03
   8  Prefactor     .10000E-03    19.883       -.94764E-06** at limit **
   9  norm          .10000E-03    82.288        .11478E-05** at limit **
  10  Prefactor     110.73        321.27        .26128E-06   -.20255E-06
  11  Prefactor     .10000E-03    176.90       -.54631E-06** at limit **
  12  Prefactor     .10000E-03    13.893       -.73797E-07** at limit **
  13  Prefactor     .10000E-03    34.094       -.23840E-06** at limit **
  14  norm          3.1618        6.1945        .11130E-06   -.57430E-04
  15  norm          17.422        38.512        .19402E-06   -.27582E-04
  16  Prefactor     .10000E-03    635.10        .61196E-06** at limit **
  17  Prefactor     .10000E-03    90.403       -.66891E-07** at limit **
  18  Prefactor     .10000E-03    86.201       -.19946E-06** at limit **
  19  Prefactor     .10000E-03    687.90       -.10058E-05** at limit **
  20  Prefactor     .10000E-03    51.974       -.36964E-07** at limit **
  21  norm          .10000E-03    92.954       -.17353E-06** at limit **
  22  Prefactor     .10000E-03    351.55        .25518E-06** at limit **
  23  Prefactor     .10000E-03    32.679       -.28192E-06** at limit **
  24  norm          .10000E-03    .52129        .83093E-06** at limit **
  25  norm          21.832        8.9761       -.66985E-06   -.64565E-03
  26  Prefactor     .10000E-03    222.19        .17052E-06** at limit **
  27  Prefactor     .27681        10.751       -.88390E-06    .15421E-03
  28  Normalizat    .71471        .43244        .75067E-05   -.18510E-03
  29  Prefactor     1.0951        .34826       -.47176E-05   -.58642E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 117.496
  Prefactor  = 65.0799
  norm       = 0.0001
  Prefactor  = 135.403
  Prefactor  = 33.3254
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 110.726
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.16184
  norm       = 17.4217
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 21.832
  Prefactor  = 0.0001
  Prefactor  = 0.276808
  Normalizat = 0.714709
  Prefactor  = 1.09511
 **********
 **   18 **HESSE 
 **********

 FCN=   1840.971     FROM HESSE     STATUS=OK           539 CALLS     5627 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    17.606        .17553E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    162.07        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     117.50        454.50        .18594E-03   -1.3536    
   4  Prefactor     65.080        52.134        .49744E-04   -1.4093    
   5  norm          .10000E-03    10.117        .12898E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     135.40        132.72        .17296E-03   -1.3375    
   7  Prefactor     33.325        43.430        .69435E-04   -1.4553    
   8  Prefactor     .10000E-03    19.947        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    82.264        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     110.73        320.88        .19120E-03   -1.3600    
  11  Prefactor     .10000E-03    176.98        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    13.894        .15623E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    34.131        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          3.1618        6.1134        .10782E-03   -1.5352    
  15  norm          17.422        38.210        .95959E-04   -1.4873    
  16  Prefactor     .10000E-03    635.17        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    90.541        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    87.725        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    688.12        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    52.008        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    92.982        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    352.19        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    32.913        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    .51237        .56286E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          21.832        9.0228        .76475E-04   -1.4773    
  26  Prefactor     .10000E-03    224.08        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .27681        73.789        .26367E-02   -1.5603    
  28  Normalizat    .71471        .46788        .35213E-03   -1.0332    
  29  Prefactor     1.0951        .38651        .24048E-03   -.89623    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.3694e-09
Minuit parameter uncertainties:
  1  2.601e-06
  2  0.000294288
  3  468.633
  4  52.1704
  5  0.000101562
  6  133.011
  7  43.4716
  8  5.7427e-05
  9  3.7554e-05
  10  326.139
  11  0.000124528
  12  1.15738e-06
  13  2.66615e-05
  14  6.11458
  15  38.264
  16  0.00211303
  17  0.000179452
  18  0.000249084
  19  0.00248271
  20  4.17121e-05
  21  0.000105559
  22  0.000916316
  23  1.82754e-05
  24  7.6695e-06
  25  9.02332
  26  0.00062796
  27  9.04857
  28  0.470526
  29  0.387504
Done.

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

Extracting fit parameters...

4FGL J2320.8-0823
   Spectrum: PowerLaw
360    Prefactor:  1.000e-04  1.245e-04  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.095e+00  3.875e-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:  7.147e-01  4.705e-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: 3.57e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.80e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/754329/likelihoodResults_550627201_550886401_4FGL_J2320.8-0823_daily_bin1201.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) = 1840.97092284
delta logL = -2.67789141617e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1840.97089587
delta logL = 1.99216401597e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10214E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.4187       1.0000          .0000       10.000    
     3 'Normalizat'    .71471       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0951       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=   1840.970     FROM MIGRAD    STATUS=CONVERGED    172 CALLS      371 TOTAL
                     EDM=   .88E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.2789        1552.9        .36285E-02   -.40688E-04
   2  Index         4.1562        6.9308        .50000        .31531E-05
   3  Normalizat    .70590        .33315E-01    .35212E-03    .68125E-04
   4  Prefactor     1.0991        .27834E-01    .24049E-03    .95405E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.27893
  Index      = 4.15623
  Normalizat = 0.705898
  Prefactor  = 1.09912
 **********
 **   18 **HESSE 
 **********

 FCN=   1840.970     FROM HESSE     STATUS=OK            29 CALLS      400 TOTAL
                     EDM=   .91E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.2789        312.38        .14514E-03   -1.5934    
   2  Index         4.1562        6.5664        .12888E-01   -.16956    
   3  Normalizat    .70590        .48784        .14085E-04   -1.0366    
   4  Prefactor     1.0991        .38100        .48098E-04   -.89495    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.06771e-11
Minuit parameter uncertainties:
  1  40.1879
  2  10.1155
  3  0.490882
  4  0.381949
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/754329': 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) = 1840.97003038
delta logL = 0.00086568527513

Extracting fit parameters...

4FGL J2320.8-0823
   Spectrum: PowerLaw
360    Prefactor:  1.279e+00  4.019e+01  1.000e-04  1.000e+04 ( 1.000e-13)
361        Index:  4.156e+00  1.012e+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.099e+00  3.819e-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:  7.059e-01  4.909e-01  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/754329/cmap_HighResolution_550627201_550886401_4FGL_J2320.8-0823_daily_bin1201.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.80e-02', job_status='DONE', photon_flux_upper_limit='3.57e-07', time_completed='2021-09-29 11:53:40.857129', job_id='754329', GAL2='1.10', fit_tolerance='1e-08', EG2='0.71', EG='0.71', time_epoch_completed='1632941620.86', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.10', dlogl='8.66e-04', ts2='0.00', photon_index_error='0.00', photon_index='2.65' WHERE bin_id='1201' AND source_name='4FGL J2320.8-0823' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 11:53:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0238>
Subject: Job 754329: <4FGL_J2320.8-0823_daily_bin1201> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2320.8-0823_daily_bin1201 350.223 -8.3918 550627201 550886401 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 :                                   475.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             199.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   743 sec.
    Turnaround time :                            744 sec.

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

