/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 0 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

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

number of points = 7232
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2320.8-0823_daily_bin400
RA = 350.223, Dec = -8.3918
tmin = 343008001, tmax = 343267201
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='751012', job_status='RUN', time_executed='2021-09-29 11:30:51.928445', time_epoch_executed='1632940251.93' WHERE source_name='4FGL J2320.8-0823' and cadence='daily' and bin_id='400'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/751012

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/751012/ft1_4FGL_J2320.8-0823_daily_bin400.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/751012/ft2_4FGL_J2320.8-0823_daily_bin400.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/751012/ft1_4FGL_J2320.8-0823_daily_bin400.fits outfile=/scratch/kocevski/751012/ft1_filteredMKT_4FGL_J2320.8-0823_daily_bin400.fits ra=350.223 dec=-8.3918 rad=12.0 tmin=343008001.0 tmax=343267201.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.82
user 3.60
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/751012/ft2_4FGL_J2320.8-0823_daily_bin400.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/751012/ft1_filteredMKT_4FGL_J2320.8-0823_daily_bin400.fits evtable="EVENTS" outfile="/scratch/kocevski/751012/ft1_filtered_4FGL_J2320.8-0823_daily_bin400.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/751012/ft1_filtered_4FGL_J2320.8-0823_daily_bin400.fits" evtable="EVENTS" scfile=/scratch/kocevski/751012/ft2_4FGL_J2320.8-0823_daily_bin400.fits sctable="SC_DATA" outfile=/scratch/kocevski/751012/ltcube_343008001_343267201_4FGL_J2320.8-0823_daily_bin400.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/751012/ft2_4FGL_J2320.8-0823_daily_bin400.fits
.....................!
real 11.49
user 11.14
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/751012/ft1_filtered_4FGL_J2320.8-0823_daily_bin400.fits evtable="EVENTS" scfile=/scratch/kocevski/751012/ft2_4FGL_J2320.8-0823_daily_bin400.fits sctable="SC_DATA" expcube=/scratch/kocevski/751012/ltcube_343008001_343267201_4FGL_J2320.8-0823_daily_bin400.fits outfile=/scratch/kocevski/751012/expmap_343008001_343267201_4FGL_J2320.8-0823_daily_bin400.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/751012/ltcube_343008001_343267201_4FGL_J2320.8-0823_daily_bin400.fits
.....................!
real 190.31
user 184.94
sys 5.00

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/751012/ft1_filtered_4FGL_J2320.8-0823_daily_bin400.fits scfile=/scratch/kocevski/751012/ft2_4FGL_J2320.8-0823_daily_bin400.fits outfile=/scratch/kocevski/751012/cmap_343008001_343267201_4FGL_J2320.8-0823_daily_bin400.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.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/751012/ft1_filtered_4FGL_J2320.8-0823_daily_bin400.fits scfile=/scratch/kocevski/751012/ft2_4FGL_J2320.8-0823_daily_bin400.fits outfile=/scratch/kocevski/751012/cmap_HighResolution_343008001_343267201_4FGL_J2320.8-0823_daily_bin400.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.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .33333E-02   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10203E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    27.783       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      '    .10033E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.3375       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .13588E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.2208       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    2.3430       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .22162E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10134E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    139.91       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10095E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10183E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    16.947       1.0000         .10000E-03   10000.    
    23 'Prefactor '    2.6094       1.0000         .10000E-03   10000.    
    24 'norm      '    .16085       1.0000         .10000E-03   10000.    
    25 'norm      '    32.624       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.3294       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .80447       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=   5381.033     FROM MIGRAD    STATUS=CONVERGED    734 CALLS     3780 TOTAL
                     EDM=   .92E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10336E-03    7.2726        .32085E-05** at limit **
   2  Prefactor     .10000E-03    26.539       -.19885E-05** at limit **
   3  Prefactor     .10001E-03    68.164        .80502E-05** at limit **
   4  Prefactor     .10000E-03    6.6837        .17702E-07** at limit **
   5  norm          .10000E-03    .45354       -.14688E-07** at limit **
   6  Prefactor     27.773        27.394        .55434E-06    .20353E-04
   7  Prefactor     .10000E-03    6.1654       -.60754E-07** at limit **
   8  Prefactor     .10000E-03    5.1829       -.24353E-06** at limit **
   9  norm          .10000E-03    21.357        .83348E-06** at limit **
  10  Prefactor     1.2907        107.39       -.26516E-05   -.42507E-04
  11  Prefactor     .10000E-03    161.11       -.56537E-05** at limit **
  12  Prefactor     6.2193        21.414        .75122E-06    .29818E-04
  13  Prefactor     .10000E-03    11.470        .60678E-06** at limit **
  14  norm          2.3432        1.1668       -.73608E-07   -.24395E-03
  15  norm          .10000E-03    2.9482       -.54874E-07** at limit **
  16  Prefactor     .10006E-03    213.17        .22183E-04** at limit **
  17  Prefactor     .10001E-03    93.092       -.11311E-04** at limit **
  18  Prefactor     .10000E-03    9.4325       -.71569E-07** at limit **
  19  Prefactor     139.90        222.41       -.70603E-05    .24700E-05
  20  Prefactor     .10000E-03    12.656       -.59759E-06** at limit **
  21  norm          .10000E-03    13.757        .28258E-06** at limit **
  22  Prefactor     16.942        56.479        .14065E-05    .20799E-04
  23  Prefactor     2.6125        5.8002        .61213E-05   -.22274E-03
  24  norm          .16120        .65552        .68413E-07   -.11994E-03
  25  norm          32.620        10.028        .22505E-06    .41714E-03
  26  Prefactor     .10000E-03    5.2508        .19102E-06** at limit **
  27  Prefactor     .10000E-03    5.0702        .15625E-07** at limit **
  28  Normalizat    1.3293        .22318       -.13264E-05   -.36263E-04
  29  Prefactor     .80455        .16969       -.27918E-06   -.12374E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000103358
  Prefactor  = 0.000100001
  Prefactor  = 0.000100008
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 27.7727
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 1.29067
  Prefactor  = 0.000100005
  Prefactor  = 6.21931
  Prefactor  = 0.0001
  norm       = 2.34321
  norm       = 0.0001
  Prefactor  = 0.000100056
  Prefactor  = 0.000100014
  Prefactor  = 0.0001
  Prefactor  = 139.902
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 16.942
  Prefactor  = 2.61249
  norm       = 0.161201
  norm       = 32.6204
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.32934
  Prefactor  = 0.804549
 **********
 **   18 **HESSE 
 **********

 FCN=   5381.033     FROM HESSE     STATUS=OK           553 CALLS     4333 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10336E-03    6.8408        .63385E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    26.575        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10001E-03    68.500        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    6.7008        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    .46193        .95728E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     27.773        27.217        .76005E-04   -1.4653    
   7  Prefactor     .10000E-03    6.1831        .17787E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    5.1965        .16310E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    22.236        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.2907        109.60        .37923E-03   -1.5481    
  11  Prefactor     .10000E-03    162.77        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     6.2193        21.404        .16095E-03   -1.5209    
  13  Prefactor     .10000E-03    11.648        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          2.3432        1.1650        .52709E-04   -1.5402    
  15  norm          .10000E-03    2.9665        .12297E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10006E-03    215.72        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10001E-03    93.949        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    9.4455        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     139.90        222.74        .34056E-04   -1.3337    
  20  Prefactor     .10000E-03    12.788        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    13.790        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     16.942        56.498        .97291E-04   -1.4885    
  23  Prefactor     2.6125        5.8571        .11982E-02   -1.5385    
  24  norm          .16120        .60129        .96263E-04   -1.5628    
  25  norm          32.620        9.4171        .70154E-04   -1.4565    
  26  Prefactor     .10000E-03    5.2541        .16417E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    5.1177        .16126E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.3293        .26718        .25935E-03   -.82695    
  29  Prefactor     .80455        .20230        .24908E-03   -.99561    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.60186e-09
Minuit parameter uncertainties:
  1  0.00958644
  2  0.000245573
  3  0.00152023
  4  4.52169e-07
  5  5.43247e-07
  6  27.2292
  7  4.89395e-06
  8  1.32493e-05
  9  5.27875e-06
  10  23.8316
  11  0.00176106
  12  21.4307
  13  3.41027e-05
  14  1.16502
  15  5.5646e-06
  16  0.00696274
  17  0.00231659
  18  1.92816e-06
  19  224.094
  20  7.78323e-05
  21  1.33142e-05
  22  56.6773
  23  5.85839
  24  0.601316
  25  9.41757
  26  8.90839e-06
  27  6.73134e-06
  28  0.267461
  29  0.202483
Done.

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

Extracting fit parameters...

4FGL J2320.8-0823
   Spectrum: PowerLaw
360    Prefactor:  1.000e-04  1.761e-03  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:  8.045e-01  2.025e-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.329e+00  2.675e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 350.223 -8.392
Photon Flux Upper Limit: 1.18e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.27e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/751012/likelihoodResults_343008001_343267201_4FGL_J2320.8-0823_daily_bin400.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) = 5381.03306596
delta logL = -2.91374708468e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5381.03302645
delta logL = 1.03755983218e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .98603E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    3.0022       1.0000          .0000       10.000    
     3 'Normalizat'    1.3293       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80454       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.

 FCN=   5381.018     FROM MIGRAD    STATUS=CONVERGED     99 CALLS      292 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.2581        204.30        .90723E-02    .37270E-03
   2  Index         3.8109        1.9625        .50000        .76853E-05
   3  Normalizat    1.3155        .19095E-01    .58913E-01   -.32413E-03
   4  Prefactor     .81081        .14751E-01    .43776E-01   -.24644E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.25805
  Index      = 3.81085
  Normalizat = 1.31548
  Prefactor  = 0.810808
 **********
 **   18 **HESSE 
 **********

 FCN=   5381.018     FROM HESSE     STATUS=OK            29 CALLS      321 TOTAL
                     EDM=   .50E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.2581        112.75        .36289E-03   -1.5407    
   2  Index         3.8109        6.8529        .86472E-02   -.24013    
   3  Normalizat    1.3155        .27168        .26054E-03   -.83106    
   4  Prefactor     .81081        .20376        .24822E-03   -.99331    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.04349e-10
Minuit parameter uncertainties:
  1  31.975
  2  7.45999
  3  0.271975
  4  0.203945
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/751012': 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) = 5381.0182432
delta logL = 0.0147936230305

Extracting fit parameters...

4FGL J2320.8-0823
   Spectrum: PowerLaw
360    Prefactor:  2.258e+00  3.198e+01  1.000e-04  1.000e+04 ( 1.000e-13)
361        Index:  3.811e+00  7.460e+00  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:  8.108e-01  2.039e-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.315e+00  2.720e-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/751012/cmap_HighResolution_343008001_343267201_4FGL_J2320.8-0823_daily_bin400.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.27e-03', job_status='DONE', photon_flux_upper_limit='1.18e-07', time_completed='2021-09-29 11:42:28.137917', job_id='751012', GAL2='0.81', fit_tolerance='1e-08', EG2='1.32', EG='1.33', time_epoch_completed='1632940948.14', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.80', dlogl='1.48e-02', ts2='0.03', photon_index_error='0.00', photon_index='2.65' WHERE bin_id='400' AND source_name='4FGL J2320.8-0823' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 11:42:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0085>
Subject: Job 751012: <4FGL_J2320.8-0823_daily_bin400> in cluster <slac> Done

Job <4FGL_J2320.8-0823_daily_bin400> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 11:30:41 2021
Job was executed on host(s) <bullet0085>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 11:30:43 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:30:43 2021
Terminated at Wed Sep 29 11:42:28 2021
Results reported at Wed Sep 29 11:42:28 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2320.8-0823_daily_bin400 350.223 -8.3918 343008001 343267201 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 :                                   687.32 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             334.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   705 sec.
    Turnaround time :                            707 sec.

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

