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


Performing analysis on: 4FGL_J2320.8-0823_daily_bin1401
RA = 350.223, Dec = -8.3918
tmin = 602467201, tmax = 602726401
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='755570', job_status='RUN', time_executed='2021-09-29 11:46:02.284422', time_epoch_executed='1632941162.28' WHERE source_name='4FGL J2320.8-0823' and cadence='daily' and bin_id='1401'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/755570

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/755570/ft1_4FGL_J2320.8-0823_daily_bin1401.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/755570/ft2_4FGL_J2320.8-0823_daily_bin1401.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/755570/ft1_4FGL_J2320.8-0823_daily_bin1401.fits outfile=/scratch/kocevski/755570/ft1_filteredMKT_4FGL_J2320.8-0823_daily_bin1401.fits ra=350.223 dec=-8.3918 rad=12.0 tmin=602467201.0 tmax=602726401.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.17
user 2.95
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/755570/ft1_filtered_4FGL_J2320.8-0823_daily_bin1401.fits" evtable="EVENTS" scfile=/scratch/kocevski/755570/ft2_4FGL_J2320.8-0823_daily_bin1401.fits sctable="SC_DATA" outfile=/scratch/kocevski/755570/ltcube_602467201_602726401_4FGL_J2320.8-0823_daily_bin1401.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/755570/ft2_4FGL_J2320.8-0823_daily_bin1401.fits
.....................!
real 13.02
user 12.66
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/755570/ft1_filtered_4FGL_J2320.8-0823_daily_bin1401.fits evtable="EVENTS" scfile=/scratch/kocevski/755570/ft2_4FGL_J2320.8-0823_daily_bin1401.fits sctable="SC_DATA" expcube=/scratch/kocevski/755570/ltcube_602467201_602726401_4FGL_J2320.8-0823_daily_bin1401.fits outfile=/scratch/kocevski/755570/expmap_602467201_602726401_4FGL_J2320.8-0823_daily_bin1401.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/755570/ltcube_602467201_602726401_4FGL_J2320.8-0823_daily_bin1401.fits
.....................!
real 192.30
user 187.34
sys 4.60

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/755570/ft1_filtered_4FGL_J2320.8-0823_daily_bin1401.fits scfile=/scratch/kocevski/755570/ft2_4FGL_J2320.8-0823_daily_bin1401.fits outfile=/scratch/kocevski/755570/cmap_602467201_602726401_4FGL_J2320.8-0823_daily_bin1401.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=350.223 yref=-8.3918 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.53
user 0.38
sys 0.14

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

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

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/755570/ft1_filtered_4FGL_J2320.8-0823_daily_bin1401.fits evtable="EVENTS" scfile=/scratch/kocevski/755570/ft2_4FGL_J2320.8-0823_daily_bin1401.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/755570/Model_4FGL_J2320.8-0823_daily_bin1401.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/755570/ft1_filtered_4FGL_J2320.8-0823_daily_bin1401.fits....................!
real 46.87
user 45.49
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    139.24       1.0000         .10000E-03   10000.    
     5 'norm      '    7.4483       1.0000         .10000E-03   10000.    
     6 'Prefactor '    120.14       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .33277E-02   1.0000         .10000E-03   10000.    
     9 'norm      '    25.700       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.7798       1.0000         .10000E-03   10000.    
    14 'norm      '    .17002       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10127E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    143.17       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .11579E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .13069E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    12.801       1.0000         .10000E-03   10000.    
    21 'norm      '    13.621       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10407E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .76172E-01   1.0000         .10000E-03   10000.    
    25 'norm      '    .25669E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    4.7611       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.2434       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .63103       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=   4552.218     FROM MIGRAD    STATUS=CONVERGED    732 CALLS     4013 TOTAL
                     EDM=   .50E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9.7287       -.62744E-06** at limit **
   2  Prefactor     .10000E-03    46.721       -.54460E-06** at limit **
   3  Prefactor     .10000E-03    52.396       -.25600E-06** at limit **
   4  Prefactor     139.29        129.32        .32127E-05   -.58161E-04
   5  norm          7.4456        10.738       -.11125E-05   -.28430E-03
   6  Prefactor     120.18        113.49        .41909E-06   -.12921E-04
   7  Prefactor     .10000E-03    6.5260        .66209E-07** at limit **
   8  Prefactor     .10009E-03    18.637        .23464E-05** at limit **
   9  norm          25.698        16.236        .18960E-06    .23757E-05
  10  Prefactor     .10000E-03    5.1657       -.18464E-07** at limit **
  11  Prefactor     .10000E-03    21.839       -.71073E-08** at limit **
  12  Prefactor     .10000E-03    16.862        .32775E-06** at limit **
  13  Prefactor     5.7809        7.7579        .23582E-06   -.45727E-04
  14  norm          .16883        1.0477       -.12319E-06   -.27410E-03
  15  norm          .10000E-03    4.7201       -.21971E-06** at limit **
  16  Prefactor     .10000E-03    51.558       -.54339E-06** at limit **
  17  Prefactor     143.23        107.95        .22090E-05   -.34499E-04
  18  Prefactor     .10001E-03    83.540        .10951E-04** at limit **
  19  Prefactor     .10000E-03    145.29       -.12236E-05** at limit **
  20  Prefactor     12.829        19.669        .42911E-05    .17334E-03
  21  norm          13.617        24.361       -.29926E-05   -.25427E-05
  22  Prefactor     .10000E-03    64.235       -.31303E-07** at limit **
  23  Prefactor     .10000E-03    3.6568       -.45380E-06** at limit **
  24  norm          .76967E-01    .77344        .63390E-06   -.80305E-03
  25  norm          .10003E-03    4.4122       -.46164E-06** at limit **
  26  Prefactor     .10000E-03    38.444        .54343E-06** at limit **
  27  Prefactor     4.7607        6.2006        .33551E-06   -.20439E-03
  28  Normalizat    1.2433        .26383       -.51294E-05   -.26715E-04
  29  Prefactor     .63122        .17849        .31590E-05   -.23574E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 139.289
  norm       = 7.44558
  Prefactor  = 120.183
  Prefactor  = 0.0001
  Prefactor  = 0.000100086
  norm       = 25.6982
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.78086
  norm       = 0.168832
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 143.226
  Prefactor  = 0.000100008
  Prefactor  = 0.000100003
  Prefactor  = 12.8293
  norm       = 13.6165
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0769672
  norm       = 0.000100031
  Prefactor  = 0.0001
  Prefactor  = 4.76071
  Normalizat = 1.24329
  Prefactor  = 0.631219
 **********
 **   18 **HESSE 
 **********

 FCN=   4552.218     FROM HESSE     STATUS=OK           555 CALLS     4568 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9.8051        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    46.822        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    52.442        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     139.29        133.74        .34137E-04   -1.3342    
   5  norm          7.4456        11.110        .92918E-04   -1.5162    
   6  Prefactor     120.18        113.43        .36715E-04   -1.3511    
   7  Prefactor     .10000E-03    6.5325        .16834E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10009E-03    74.825        .54075E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          25.698        16.239        .79019E-04   -1.4694    
  10  Prefactor     .10000E-03    5.1688        .14977E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    21.844        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    16.866        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     5.7809        7.7441        .16706E-03   -1.5227    
  14  norm          .16883        1.8189        .11803E-02   -1.5626    
  15  norm          .10000E-03    4.7575        .14291E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    51.768        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     143.23        105.89        .16836E-03   -1.3309    
  18  Prefactor     .10001E-03    85.298        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    145.89        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     12.829        19.780        .55979E-03   -1.4991    
  21  norm          13.617        24.451        .10853E-03   -1.4970    
  22  Prefactor     .10000E-03    64.446        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    3.7372        .12589E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .76967E-01    .94553        .87980E-03   -1.5653    
  25  norm          .10003E-03    32.537        .22133E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    40.049        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     4.7607        6.2242        .18249E-03   -1.5272    
  28  Normalizat    1.2433        .28606        .25530E-03   -.85275    
  29  Prefactor     .63122        .19774        .26027E-03   -1.0629    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.92154e-08
Minuit parameter uncertainties:
  1  2.59704e-06
  2  0.000126544
  3  0.000195553
  4  134.03
  5  11.113
  6  113.636
  7  4.43289e-06
  8  0.00509191
  9  16.2415
  10  3.96163e-07
  11  9.48088e-06
  12  1.00447e-05
  13  7.74542
  14  1.10803
  15  2.57215e-06
  16  0.000273651
  17  106.03
  18  0.00163164
  19  0.00138101
  20  19.7896
  21  24.4686
  22  0.000166233
  23  4.47501e-05
  24  0.539197
  25  0.00199693
  26  0.000232295
  27  6.22509
  28  0.286423
  29  0.197959
Done.

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

Extracting fit parameters...

4FGL J2320.8-0823
   Spectrum: PowerLaw
360    Prefactor:  1.000e-04  9.481e-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:  6.312e-01  1.980e-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.243e+00  2.864e-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.52e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.47e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/755570/likelihoodResults_602467201_602726401_4FGL_J2320.8-0823_daily_bin1401.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) = 4552.21836955
delta logL = -0.000217605213948

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4552.21815417
delta logL = -2.21843947656e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.5349       1.0000          .0000       10.000    
     3 'Normalizat'    1.2433       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .63124       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=   4552.218     FROM MIGRAD    STATUS=CONVERGED    108 CALLS      294 TOTAL
                     EDM=   .13E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    187.71        .18142E-01** at limit **
   2  Index         2.0915        5.7621        .50000       -.11983E-07
   3  Normalizat    1.2433        .15458E-01    .25530E-03   -.87922E-04
   4  Prefactor     .63122        .11663E-01    .26027E-03   -.81857E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.0915
  Normalizat = 1.24329
  Prefactor  = 0.631222
 **********
 **   18 **HESSE 
 **********

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

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    985.69        .33550E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0915        7.5379        .50000       -.62082    
   3  Normalizat    1.2433        .37230E-01    .51060E-04   -.85275    
   4  Prefactor     .63122        .28089E-01    .10411E-04   -1.0629    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.02334e-12
Minuit parameter uncertainties:
  1  0.000181668
  2  1963.3
  3  0.0372305
  4  0.0280897
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/755570': 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) = 4552.21815159
delta logL = 3.60069861927e-07

Extracting fit parameters...

4FGL J2320.8-0823
   Spectrum: PowerLaw
360    Prefactor:  1.000e-04  1.817e-04  1.000e-04  1.000e+04 ( 1.000e-13)
361        Index:  2.092e+00  1.963e+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.312e-01  2.809e-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.243e+00  3.723e-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/755570/cmap_HighResolution_602467201_602726401_4FGL_J2320.8-0823_daily_bin1401.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.47e-03', job_status='DONE', photon_flux_upper_limit='9.52e-08', time_completed='2021-09-29 11:57:11.473351', job_id='755570', GAL2='0.63', fit_tolerance='1e-08', EG2='1.24', EG='1.24', time_epoch_completed='1632941831.47', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.63', dlogl='3.60e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.65' WHERE bin_id='1401' AND source_name='4FGL J2320.8-0823' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 11:57:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0279>
Subject: Job 755570: <4FGL_J2320.8-0823_daily_bin1401> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2320.8-0823_daily_bin1401 350.223 -8.3918 602467201 602726401 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 :                                   650.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             310.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   686 sec.
    Turnaround time :                            688 sec.

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

