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


Performing analysis on: 4FGL_J2320.8-0823_daily_bin1476
RA = 350.223, Dec = -8.3918
tmin = 621907201, tmax = 622166401
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='755689', job_status='RUN', time_executed='2021-09-29 11:46:13.362083', time_epoch_executed='1632941173.36' WHERE source_name='4FGL J2320.8-0823' and cadence='daily' and bin_id='1476'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/755689

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

Retrieving the FT1 file...

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

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

Retrieving 42 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/755689/ft1_4FGL_J2320.8-0823_daily_bin1476.fits


Retrieving the FT1 file...

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

Retrieving 42 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/755689/ft2_4FGL_J2320.8-0823_daily_bin1476.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/755689/ft1_4FGL_J2320.8-0823_daily_bin1476.fits outfile=/scratch/kocevski/755689/ft1_filteredMKT_4FGL_J2320.8-0823_daily_bin1476.fits ra=350.223 dec=-8.3918 rad=12.0 tmin=621907201.0 tmax=622166401.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.49
user 3.27
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/755689/ft1_filtered_4FGL_J2320.8-0823_daily_bin1476.fits" evtable="EVENTS" scfile=/scratch/kocevski/755689/ft2_4FGL_J2320.8-0823_daily_bin1476.fits sctable="SC_DATA" outfile=/scratch/kocevski/755689/ltcube_621907201_622166401_4FGL_J2320.8-0823_daily_bin1476.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/755689/ft2_4FGL_J2320.8-0823_daily_bin1476.fits
.....................!
real 10.29
user 9.94
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/755689/ft1_filtered_4FGL_J2320.8-0823_daily_bin1476.fits evtable="EVENTS" scfile=/scratch/kocevski/755689/ft2_4FGL_J2320.8-0823_daily_bin1476.fits sctable="SC_DATA" expcube=/scratch/kocevski/755689/ltcube_621907201_622166401_4FGL_J2320.8-0823_daily_bin1476.fits outfile=/scratch/kocevski/755689/expmap_621907201_622166401_4FGL_J2320.8-0823_daily_bin1476.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/755689/ltcube_621907201_622166401_4FGL_J2320.8-0823_daily_bin1476.fits
.....................!
real 193.37
user 186.58
sys 6.34

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/755689/ft1_filtered_4FGL_J2320.8-0823_daily_bin1476.fits scfile=/scratch/kocevski/755689/ft2_4FGL_J2320.8-0823_daily_bin1476.fits outfile=/scratch/kocevski/755689/cmap_621907201_622166401_4FGL_J2320.8-0823_daily_bin1476.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.56
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/755689/ft1_filtered_4FGL_J2320.8-0823_daily_bin1476.fits scfile=/scratch/kocevski/755689/ft2_4FGL_J2320.8-0823_daily_bin1476.fits outfile=/scratch/kocevski/755689/cmap_HighResolution_621907201_622166401_4FGL_J2320.8-0823_daily_bin1476.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.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/755689/ft1_filtered_4FGL_J2320.8-0823_daily_bin1476.fits evtable="EVENTS" scfile=/scratch/kocevski/755689/ft2_4FGL_J2320.8-0823_daily_bin1476.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/755689/Model_4FGL_J2320.8-0823_daily_bin1476.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/755689/ft1_filtered_4FGL_J2320.8-0823_daily_bin1476.fits.....................!
real 54.93
user 53.63
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    27.441       1.0000         .10000E-03   10000.    
     4 'Prefactor '    97.923       1.0000         .10000E-03   10000.    
     5 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .13918E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    80.541       1.0000         .10000E-03   10000.    
    10 'Prefactor '    27.904       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .48901       1.0000         .10000E-03   10000.    
    15 'norm      '    2.2729       1.0000         .10000E-03   10000.    
    16 'Prefactor '    24.837       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    145.44       1.0000         .10000E-03   10000.    
    20 'Prefactor '    10.599       1.0000         .10000E-03   10000.    
    21 'norm      '    .10351E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    14.546       1.0000         .10000E-03   10000.    
    23 'Prefactor '    12.566       1.0000         .10000E-03   10000.    
    24 'norm      '    .10039E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    16.406       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .72132       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.2669       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=   5633.453     FROM MIGRAD    STATUS=CONVERGED    742 CALLS     3813 TOTAL
                     EDM=   .17E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.3831        .56608E-07** at limit **
   2  Prefactor     .10000E-03    25.038       -.55133E-07** at limit **
   3  Prefactor     27.374        76.975       -.76560E-06   -.25453E-04
   4  Prefactor     97.934        20.736        .11298E-05    .65264E-03
   5  norm          .10000E-03    1.2753       -.10590E-05** at limit **
   6  Prefactor     .10000E-03    259.91       -.33271E-05** at limit **
   7  Prefactor     .10000E-03    4.6205       -.34628E-08** at limit **
   8  Prefactor     .10000E-03    6.6428       -.75362E-08** at limit **
   9  norm          80.542        22.576       -.20571E-07    .16040E-04
  10  Prefactor     27.903        28.956       -.24072E-07    .72054E-05
  11  Prefactor     .10000E-03    68.545        .47351E-06** at limit **
  12  Prefactor     .10000E-03    33.231        .39082E-06** at limit **
  13  Prefactor     .10000E-03    4.5189        .20986E-07** at limit **
  14  norm          .48739        .67669        .11190E-07   -.11455E-03
  15  norm          2.2723        4.3285        .23465E-06   -.24027E-03
  16  Prefactor     24.831        55.713       -.13487E-06    .13178E-05
  17  Prefactor     .10000E-03    45.779       -.17628E-06** at limit **
  18  Prefactor     .10000E-03    9.4239        .39790E-07** at limit **
  19  Prefactor     145.45        167.90       -.49751E-07    .61797E-05
  20  Prefactor     10.600        17.608       -.70990E-07    .18298E-04
  21  norm          .10000E-03    14.714       -.10262E-06** at limit **
  22  Prefactor     14.507        41.345       -.16835E-06   -.88048E-05
  23  Prefactor     12.564        8.5652        .13667E-07   -.73337E-05
  24  norm          .10000E-03    .32961        .72682E-08** at limit **
  25  norm          16.402        7.4445       -.13574E-07    .33133E-04
  26  Prefactor     .10000E-03    15.098        .14317E-06** at limit **
  27  Prefactor     .10000E-03    4.5033        .55855E-07** at limit **
  28  Normalizat    .72111        .23223       -.60165E-06    .10311E-03
  29  Prefactor     1.2671        .18498        .44837E-06    .54661E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 27.3739
  Prefactor  = 97.9345
  norm       = 0.000100001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 80.542
  Prefactor  = 27.9025
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.487386
  norm       = 2.27229
  Prefactor  = 24.8309
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 145.45
  Prefactor  = 10.6003
  norm       = 0.0001
  Prefactor  = 14.5065
  Prefactor  = 12.5635
  norm       = 0.0001
  norm       = 16.4024
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.721114
  Prefactor  = 1.26714
 **********
 **   18 **HESSE 
 **********

 FCN=   5633.453     FROM HESSE     STATUS=OK           549 CALLS     4362 TOTAL
                     EDM=   .59E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.4975        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    25.047        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     27.374        77.031        .76476E-04   -1.4661    
   4  Prefactor     97.934        23.001        .40622E-04   -1.3725    
   5  norm          .10000E-03    1.9827        .15189E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    269.50        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    4.6288        .15757E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    6.6574        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          80.542        22.572        .44752E-04   -1.3911    
  10  Prefactor     27.903        28.956        .75841E-04   -1.4651    
  11  Prefactor     .10000E-03    69.568        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    33.375        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    4.5474        .15567E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .48739        .63098        .69722E-03   -1.5568    
  15  norm          2.2723        4.2863        .20742E-03   -1.5406    
  16  Prefactor     24.831        55.751        .80378E-04   -1.4711    
  17  Prefactor     .10000E-03    45.906        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    9.4609        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     145.45        167.84        .16706E-03   -1.3290    
  20  Prefactor     10.600        17.484        .12307E-03   -1.5057    
  21  norm          .10000E-03    14.714        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     14.507        41.348        .10502E-03   -1.4946    
  23  Prefactor     12.564        8.5344        .11300E-03   -1.4999    
  24  norm          .10000E-03    .45564        .77832E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          16.402        6.9670        .98882E-04   -1.4898    
  26  Prefactor     .10000E-03    15.119        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    4.5327        .15550E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .72111        .26436        .35882E-03   -1.0307    
  29  Prefactor     1.2671        .21284        .22949E-03   -.84290    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.87596e-10
Minuit parameter uncertainties:
  1  1.44385e-05
  2  4.82001e-05
  3  77.3128
  4  23.0028
  5  6.69407e-05
  6  0.00150999
  7  1.40957e-06
  8  5.31847e-06
  9  22.5742
  10  28.9703
  11  0.000107247
  12  2.54129e-05
  13  9.83008e-06
  14  0.630988
  15  4.28692
  16  55.8679
  17  0.000218762
  18  7.71772e-06
  19  168.397
  20  17.4926
  21  2.0883e-05
  22  41.4294
  23  8.53527
  24  7.62396e-08
  25  6.96736
  26  1.77779e-05
  27  1.0138e-05
  28  0.264833
  29  0.212981
Done.

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

Extracting fit parameters...

4FGL J2320.8-0823
   Spectrum: PowerLaw
360    Prefactor:  1.000e-04  1.072e-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.267e+00  2.130e-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.211e-01  2.648e-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: 7.46e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.85e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/755689/likelihoodResults_621907201_622166401_4FGL_J2320.8-0823_daily_bin1476.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) = 5633.45268097
delta logL = -6.83896132614e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5633.45268095
delta logL = -6.83720245434e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96350E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6480       1.0000          .0000       10.000    
     3 'Normalizat'    .72111       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2671       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5633.353     FROM MIGRAD    STATUS=CONVERGED    165 CALLS      315 TOTAL
                     EDM=   .44E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     16.834        41.473        .18143E-02    .78830E-05
   2  Index         1.7913        .92631        .12664E-01    .11649E-04
   3  Normalizat    .72631        .25122        .35762E-03   -.62244E-04
   4  Prefactor     1.2579        .20925        .23019E-03   -.16672E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 16.8336
  Index      = 1.7913
  Normalizat = 0.726311
  Prefactor  = 1.25787
 **********
 **   18 **HESSE 
 **********

 FCN=   5633.353     FROM HESSE     STATUS=OK            27 CALLS      342 TOTAL
                     EDM=   .49E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     16.834        41.458        .72571E-04   -1.6529    
   2  Index         1.7913        .92643        .50657E-03   -.69676    
   3  Normalizat    .72631        .25137        .14305E-04   -1.0286    
   4  Prefactor     1.2579        .20937        .46039E-04   -.84569    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.85503e-11
Minuit parameter uncertainties:
  1  41.5286
  2  0.935691
  3  0.251771
  4  0.209512
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/755689': 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) = 5633.35256541
delta logL = 0.100047168478

Extracting fit parameters...

4FGL J2320.8-0823
   Spectrum: PowerLaw
360    Prefactor:  1.683e+01  4.153e+01  1.000e-04  1.000e+04 ( 1.000e-13)
361        Index:  1.791e+00  9.357e-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.258e+00  2.095e-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.263e-01  2.518e-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/755689/cmap_HighResolution_621907201_622166401_4FGL_J2320.8-0823_daily_bin1476.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.85e-03', job_status='DONE', photon_flux_upper_limit='7.46e-08', time_completed='2021-09-29 11:58:47.917601', job_id='755689', GAL2='1.26', fit_tolerance='1e-08', EG2='0.73', EG='0.72', time_epoch_completed='1632941927.92', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.27', dlogl='1.00e-01', ts2='0.20', photon_index_error='0.00', photon_index='2.65' WHERE bin_id='1476' AND source_name='4FGL J2320.8-0823' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 11:58:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0264>
Subject: Job 755689: <4FGL_J2320.8-0823_daily_bin1476> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2320.8-0823_daily_bin1476 350.223 -8.3918 621907201 622166401 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 :                                   721.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             323.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   771 sec.
    Turnaround time :                            772 sec.

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

