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


Performing analysis on: 4FGL_J2320.8-0823_daily_bin1368
RA = 350.223, Dec = -8.3918
tmin = 593913601, tmax = 594172801
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='755520', job_status='RUN', time_executed='2021-09-29 11:45:56.989083', time_epoch_executed='1632941156.99' WHERE source_name='4FGL J2320.8-0823' and cadence='daily' and bin_id='1368'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/755520

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/755520/ft1_4FGL_J2320.8-0823_daily_bin1368.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/755520/ft2_4FGL_J2320.8-0823_daily_bin1368.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/755520/ft1_4FGL_J2320.8-0823_daily_bin1368.fits outfile=/scratch/kocevski/755520/ft1_filteredMKT_4FGL_J2320.8-0823_daily_bin1368.fits ra=350.223 dec=-8.3918 rad=12.0 tmin=593913601.0 tmax=594172801.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.59
user 3.36
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/755520/ft1_filtered_4FGL_J2320.8-0823_daily_bin1368.fits" evtable="EVENTS" scfile=/scratch/kocevski/755520/ft2_4FGL_J2320.8-0823_daily_bin1368.fits sctable="SC_DATA" outfile=/scratch/kocevski/755520/ltcube_593913601_594172801_4FGL_J2320.8-0823_daily_bin1368.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/755520/ft2_4FGL_J2320.8-0823_daily_bin1368.fits
.....................!
real 11.68
user 11.35
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/755520/ft1_filtered_4FGL_J2320.8-0823_daily_bin1368.fits evtable="EVENTS" scfile=/scratch/kocevski/755520/ft2_4FGL_J2320.8-0823_daily_bin1368.fits sctable="SC_DATA" expcube=/scratch/kocevski/755520/ltcube_593913601_594172801_4FGL_J2320.8-0823_daily_bin1368.fits outfile=/scratch/kocevski/755520/expmap_593913601_594172801_4FGL_J2320.8-0823_daily_bin1368.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/755520/ltcube_593913601_594172801_4FGL_J2320.8-0823_daily_bin1368.fits
.....................!
real 191.58
user 187.33
sys 3.94

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/755520/ft1_filtered_4FGL_J2320.8-0823_daily_bin1368.fits scfile=/scratch/kocevski/755520/ft2_4FGL_J2320.8-0823_daily_bin1368.fits outfile=/scratch/kocevski/755520/cmap_593913601_594172801_4FGL_J2320.8-0823_daily_bin1368.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/755520/ft1_filtered_4FGL_J2320.8-0823_daily_bin1368.fits scfile=/scratch/kocevski/755520/ft2_4FGL_J2320.8-0823_daily_bin1368.fits outfile=/scratch/kocevski/755520/cmap_HighResolution_593913601_594172801_4FGL_J2320.8-0823_daily_bin1368.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.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/755520/ft1_filtered_4FGL_J2320.8-0823_daily_bin1368.fits evtable="EVENTS" scfile=/scratch/kocevski/755520/ft2_4FGL_J2320.8-0823_daily_bin1368.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/755520/Model_4FGL_J2320.8-0823_daily_bin1368.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/755520/ft1_filtered_4FGL_J2320.8-0823_daily_bin1368.fits.....................!
real 65.51
user 64.20
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.0338       1.0000         .10000E-03   10000.    
     2 'Prefactor '    20.686       1.0000         .10000E-03   10000.    
     3 'Prefactor '    62.644       1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.9492       1.0000         .10000E-03   10000.    
     5 'norm      '    9.5560       1.0000         .10000E-03   10000.    
     6 'Prefactor '    49.185       1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.3168       1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.8938       1.0000         .10000E-03   10000.    
     9 'norm      '    9.4237       1.0000         .10000E-03   10000.    
    10 'Prefactor '    12.256       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    10.562       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.2073       1.0000         .10000E-03   10000.    
    14 'norm      '    1.0152       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10805E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.6447       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    15.661       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    6.9543       1.0000         .10000E-03   10000.    
    24 'norm      '    .10089E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    36.515       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .97790       1.0000         .10000E-03   10000.    
    27 'Prefactor '    2.4776       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .97236       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .72876       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5240E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7543.447     FROM MIGRAD    STATUS=CONVERGED    118 CALLS     3151 TOTAL
                     EDM=   .39E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.0300        3.5508        .30201E-05    .20428E-02
   2  Prefactor     20.661        5.0606       -.25760E-05    .21812E-02
   3  Prefactor     62.636        2.7844       -.94150E-06    .28853E-02
   4  Prefactor     7.8888        9.3517       -.55281E-05    .10246E-02
   5  norm          9.5606        2.0245        .77828E-06   -.15842E-04
   6  Prefactor     49.099        16.065       -.49231E-05    .80237E-02
   7  Prefactor     2.3168        1.6796       -.64556E-06   -.83470E-03
   8  Prefactor     3.8905        5.8631        .74488E-06    .21742E-03
   9  norm          9.4213        1.9572       -.13333E-05   -.55435E-03
  10  Prefactor     12.255        1.1351       -.14852E-06    .33172E-03
  11  Prefactor     .10000E-03    13.426        .50004E-06** at limit **
  12  Prefactor     10.561        1.0638       -.21015E-06    .18221E-03
  13  Prefactor     1.2072        4.5902        .26101E-06    .25841E-04
  14  norm          1.0151        .64520       -.14849E-06   -.27765E-03
  15  norm          .10000E-03    1.6008        .10861E-06** at limit **
  16  Prefactor     .10004E-03    20.441        .16830E-04** at limit **
  17  Prefactor     .10064E-03    67.040        .59901E-05** at limit **
  18  Prefactor     4.6389        1.7054       -.18189E-05   -.80191E-04
  19  Prefactor     .10776E-03    98.619        .19674E-05** at limit **
  20  Prefactor     .10000E-03    4.4218        .23902E-06** at limit **
  21  norm          15.662        1.0641        .10098E-06    .53189E-04
  22  Prefactor     .10001E-03    19.702       -.14051E-04** at limit **
  23  Prefactor     6.9553        4.2598        .35572E-06    .18169E-03
  24  norm          .10000E-03    .39527        .22982E-06** at limit **
  25  norm          36.510        5.9426        .23034E-05    .53039E-02
  26  Prefactor     .89190        62.478       -.33189E-04   -.63637E-03
  27  Prefactor     2.4774        3.2989       -.11962E-06   -.83907E-04
  28  Normalizat    .97255        .19130       -.14410E-05   -.30124E-04
  29  Prefactor     .72870        .15205        .15904E-05   -.50296E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.02996
  Prefactor  = 20.6611
  Prefactor  = 62.6356
  Prefactor  = 7.88878
  norm       = 9.56063
  Prefactor  = 49.0992
  Prefactor  = 2.31682
  Prefactor  = 3.89054
  norm       = 9.42135
  Prefactor  = 12.2546
  Prefactor  = 0.0001
  Prefactor  = 10.5608
  Prefactor  = 1.20719
  norm       = 1.01513
  norm       = 0.0001
  Prefactor  = 0.000100035
  Prefactor  = 0.000100635
  Prefactor  = 4.63889
  Prefactor  = 0.000107764
  Prefactor  = 0.0001
  norm       = 15.6622
  Prefactor  = 0.000100014
  Prefactor  = 6.95527
  norm       = 0.0001
  norm       = 36.5097
  Prefactor  = 0.891904
  Prefactor  = 2.47744
  Normalizat = 0.972545
  Prefactor  = 0.728698
 **********
 **   18 **HESSE 
 **********

 FCN=   7543.447     FROM HESSE     STATUS=OK           623 CALLS     3774 TOTAL
                     EDM=   .36E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.0300        8.0464        .58241E-02   -1.5360    
   2  Prefactor     20.661        36.374        .22016E-02   -1.4799    
   3  Prefactor     62.636        61.576        .12675E-02   -1.4123    
   4  Prefactor     7.8888        31.509        .35553E-02   -1.5146    
   5  norm          9.5606        3.0544        .32409E-02   -1.5089    
   6  Prefactor     49.099        35.253        .14295E-02   -1.4305    
   7  Prefactor     2.3168        7.4888        .67378E-02   -1.5404    
   8  Prefactor     3.8905        5.8939        .51118E-02   -1.5313    
   9  norm          9.4213        10.560        .32637E-02   -1.5094    
  10  Prefactor     12.255        15.993        .28606E-02   -1.5008    
  11  Prefactor     .10000E-03    13.430        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     10.561        15.493        .30821E-02   -1.5058    
  13  Prefactor     1.2072        4.6494        .10305E-01   -1.5488    
  14  norm          1.0151        .64329        .12130E-01   -1.5506    
  15  norm          .10000E-03    1.5932        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10004E-03    22.145        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10064E-03    69.372        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     4.6389        11.068        .46686E-02   -1.5277    
  19  Prefactor     .10776E-03    127.77        .90712E-02   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    4.4160        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          15.662        17.763        .25302E-02   -1.4916    
  22  Prefactor     .10001E-03    20.892        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     6.9553        4.4809        .38033E-02   -1.5180    
  24  norm          .10000E-03    .19503        .20596E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          36.510        6.5740        .16581E-02   -1.4499    
  26  Prefactor     .89190        9.1694        .13087       -1.5519    
  27  Prefactor     2.4774        3.3281        .64936E-02   -1.5393    
  28  Normalizat    .97255        .17127        .45820E-01   -.93956    
  29  Prefactor     .72870        .13479        .42783E-01   -1.0241    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.59288e-07
Minuit parameter uncertainties:
  1  8.04923
  2  36.4129
  3  61.6392
  4  31.5611
  5  3.05445
  6  35.2683
  7  7.49179
  8  5.89481
  9  10.5623
  10  15.9986
  11  7.26025e-05
  12  15.4984
  13  4.65076
  14  0.643297
  15  7.16341e-06
  16  0.00176964
  17  0.0132898
  18  11.0732
  19  0.063126
  20  1.65464e-05
  21  17.7692
  22  0.00109859
  23  4.48114
  24  2.51304e-07
  25  6.57413
  26  5.72034
  27  3.32832
  28  0.171367
  29  0.134849
Done.

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

Extracting fit parameters...

4FGL J2320.8-0823
   Spectrum: PowerLaw
360    Prefactor:  1.000e-04  7.260e-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:  7.287e-01  1.348e-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:  9.725e-01  1.714e-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: 5.47e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.29e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/755520/likelihoodResults_593913601_594172801_4FGL_J2320.8-0823_daily_bin1368.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) = 7543.44730767
delta logL = -0.000354510154466

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7543.44695328
delta logL = -1.18774551083e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6379       1.0000          .0000       10.000    
     3 'Normalizat'    .97246       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .72877       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=   7543.447     FROM MIGRAD    STATUS=CONVERGED    102 CALLS      252 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    119.34        .18142E-01** at limit **
   2  Index         2.1602        6.5332        .50000        .15091E-06
   3  Normalizat    .97255        .11623E-01    .26360E-03    .13370E-05
   4  Prefactor     .72870        .94505E-02    .24308E-03    .40221E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 2.16022
  Normalizat = 0.972545
  Prefactor  = 0.728698
 **********
 **   18 **HESSE 
 **********

 FCN=   7543.447     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      281 TOTAL
                     EDM=   .90E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    843.27        .32943E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1602        8.0910        .50000       -.60402    
   3  Normalizat    .97255        .33163E-01    .10544E-04   -.93956    
   4  Prefactor     .72870        .26965E-01    .97233E-05   -1.0241    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.03762e-10
Minuit parameter uncertainties:
  1  0.00143933
  2  2114.79
  3  0.0331639
  4  0.026966
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/755520': 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) = 7543.44695275
delta logL = 4.09959284298e-07

Extracting fit parameters...

4FGL J2320.8-0823
   Spectrum: PowerLaw
360    Prefactor:  1.000e-04  1.439e-03  1.000e-04  1.000e+04 ( 1.000e-13)
361        Index:  2.160e+00  2.115e+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:  7.287e-01  2.697e-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:  9.725e-01  3.316e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/755520/cmap_HighResolution_593913601_594172801_4FGL_J2320.8-0823_daily_bin1368.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.29e-03', job_status='DONE', photon_flux_upper_limit='5.47e-08', time_completed='2021-09-29 11:59:56.986996', job_id='755520', GAL2='0.73', fit_tolerance='1e-08', EG2='0.97', EG='0.97', time_epoch_completed='1632941996.99', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.73', dlogl='4.10e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.65' WHERE bin_id='1368' AND source_name='4FGL J2320.8-0823' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 11:59:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0228>
Subject: Job 755520: <4FGL_J2320.8-0823_daily_bin1368> in cluster <slac> Done

Job <4FGL_J2320.8-0823_daily_bin1368> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Wed Sep 29 11:45:38 2021
Job was executed on host(s) <bullet0228>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 11:45:39 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:45:39 2021
Terminated at Wed Sep 29 11:59:57 2021
Results reported at Wed Sep 29 11:59:57 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2320.8-0823_daily_bin1368 350.223 -8.3918 593913601 594172801 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 :                                   832.05 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             329.29 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   858 sec.
    Turnaround time :                            859 sec.

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

