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


Performing analysis on: 4FGL_J2320.8-0823_daily_bin1276
RA = 350.223, Dec = -8.3918
tmin = 570067201, tmax = 570326401
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='755377', job_status='RUN', time_executed='2021-09-29 11:47:29.962053', time_epoch_executed='1632941249.96' WHERE source_name='4FGL J2320.8-0823' and cadence='daily' and bin_id='1276'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/755377

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/755377/ft1_4FGL_J2320.8-0823_daily_bin1276.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/755377/ft2_4FGL_J2320.8-0823_daily_bin1276.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/755377/ft1_4FGL_J2320.8-0823_daily_bin1276.fits outfile=/scratch/kocevski/755377/ft1_filteredMKT_4FGL_J2320.8-0823_daily_bin1276.fits ra=350.223 dec=-8.3918 rad=12.0 tmin=570067201.0 tmax=570326401.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.62
user 3.41
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/755377/ft2_4FGL_J2320.8-0823_daily_bin1276.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/755377/ft1_filteredMKT_4FGL_J2320.8-0823_daily_bin1276.fits evtable="EVENTS" outfile="/scratch/kocevski/755377/ft1_filtered_4FGL_J2320.8-0823_daily_bin1276.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.52
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/755377/ft1_filtered_4FGL_J2320.8-0823_daily_bin1276.fits" evtable="EVENTS" scfile=/scratch/kocevski/755377/ft2_4FGL_J2320.8-0823_daily_bin1276.fits sctable="SC_DATA" outfile=/scratch/kocevski/755377/ltcube_570067201_570326401_4FGL_J2320.8-0823_daily_bin1276.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/755377/ft2_4FGL_J2320.8-0823_daily_bin1276.fits
.....................!
real 12.03
user 11.67
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/755377/ft1_filtered_4FGL_J2320.8-0823_daily_bin1276.fits evtable="EVENTS" scfile=/scratch/kocevski/755377/ft2_4FGL_J2320.8-0823_daily_bin1276.fits sctable="SC_DATA" expcube=/scratch/kocevski/755377/ltcube_570067201_570326401_4FGL_J2320.8-0823_daily_bin1276.fits outfile=/scratch/kocevski/755377/expmap_570067201_570326401_4FGL_J2320.8-0823_daily_bin1276.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/755377/ltcube_570067201_570326401_4FGL_J2320.8-0823_daily_bin1276.fits
.....................!
real 191.89
user 186.48
sys 5.03

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/755377/ft1_filtered_4FGL_J2320.8-0823_daily_bin1276.fits scfile=/scratch/kocevski/755377/ft2_4FGL_J2320.8-0823_daily_bin1276.fits outfile=/scratch/kocevski/755377/cmap_570067201_570326401_4FGL_J2320.8-0823_daily_bin1276.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.55
user 0.38
sys 0.14

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/755377/ft1_filtered_4FGL_J2320.8-0823_daily_bin1276.fits evtable="EVENTS" scfile=/scratch/kocevski/755377/ft2_4FGL_J2320.8-0823_daily_bin1276.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/755377/Model_4FGL_J2320.8-0823_daily_bin1276.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/755377/ft1_filtered_4FGL_J2320.8-0823_daily_bin1276.fits....................!
real 44.18
user 42.84
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .13275E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    113.57       1.0000         .10000E-03   10000.    
     5 'norm      '    3.6318       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .24270E-02   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .14607E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    24.504       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.2794       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10026E-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      '    2.4237       1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    32.411       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10809E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    15.219       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .14009E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .66106       1.0000         .10000E-03   10000.    
    25 'norm      '    16.112       1.0000         .10000E-03   10000.    
    26 'Prefactor '    12.004       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .91659       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .89667       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=   4404.315     FROM MIGRAD    STATUS=CONVERGED    751 CALLS     3779 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.4055       -.22497E-06** at limit **
   2  Prefactor     .10000E-03    25.978       -.17126E-06** at limit **
   3  Prefactor     .10007E-03    379.60       -.69846E-05** at limit **
   4  Prefactor     113.58        66.280        .42641E-06    .20410E-03
   5  norm          3.6340        5.2292       -.39072E-06    .42935E-03
   6  Prefactor     .10055E-03    270.53        .16631E-04** at limit **
   7  Prefactor     .10000E-03    3.6685        .44659E-07** at limit **
   8  Prefactor     .10006E-03    144.78        .39507E-04** at limit **
   9  norm          24.506        15.708        .12455E-06    .21831E-03
  10  Prefactor     1.2392        152.37       -.42757E-05   -.32628E-05
  11  Prefactor     .10000E-03    49.242       -.46756E-06** at limit **
  12  Prefactor     .10000E-03    12.613       -.91442E-07** at limit **
  13  Prefactor     .10000E-03    4.2374       -.27687E-06** at limit **
  14  norm          2.4233        1.3217        .38621E-08    .11378E-03
  15  norm          .10000E-03    2.5974       -.23900E-06** at limit **
  16  Prefactor     .10000E-03    68.751       -.16979E-05** at limit **
  17  Prefactor     32.396        60.917        .14726E-06    .39969E-04
  18  Prefactor     .10000E-03    9.0195       -.10845E-06** at limit **
  19  Prefactor     .10002E-03    110.92        .40729E-05** at limit **
  20  Prefactor     .10000E-03    18.489       -.12011E-05** at limit **
  21  norm          15.200        17.918        .86223E-07    .52067E-04
  22  Prefactor     .10004E-03    739.23        .80175E-05** at limit **
  23  Prefactor     .10000E-03    3.3977       -.56514E-06** at limit **
  24  norm          .66124        .68050       -.42114E-07   -.43775E-03
  25  norm          16.111        7.4743        .20788E-07    .10258E-03
  26  Prefactor     12.004        14.063       -.77472E-07   -.27526E-06
  27  Prefactor     .10000E-03    3.5328       -.31910E-06** at limit **
  28  Normalizat    .91669        .22953        .40574E-06    .31689E-04
  29  Prefactor     .89662        .17694        .79533E-06    .11460E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100065
  Prefactor  = 113.582
  norm       = 3.63402
  Prefactor  = 0.000100549
  Prefactor  = 0.0001
  Prefactor  = 0.000100059
  norm       = 24.5058
  Prefactor  = 1.23916
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.42335
  norm       = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 32.3965
  Prefactor  = 0.0001
  Prefactor  = 0.000100025
  Prefactor  = 0.000100002
  norm       = 15.1998
  Prefactor  = 0.000100039
  Prefactor  = 0.000100001
  norm       = 0.661238
  norm       = 16.1106
  Prefactor  = 12.0036
  Prefactor  = 0.0001
  Normalizat = 0.916688
  Prefactor  = 0.89662
 **********
 **   18 **HESSE 
 **********

 FCN=   4404.315     FROM HESSE     STATUS=OK           541 CALLS     4320 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.4155        .13609E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    25.988        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10007E-03    386.17        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     113.58        65.934        .37749E-04   -1.3572    
   5  norm          3.6340        5.2280        .77257E-04   -1.5327    
   6  Prefactor     .10055E-03    292.27        .40094E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    3.6696        .12415E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10006E-03    141.61        .45665E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          24.506        15.709        .80922E-04   -1.4717    
  10  Prefactor     1.2392        155.69        .39253E-03   -1.5485    
  11  Prefactor     .10000E-03    49.335        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    12.618        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    4.2481        .13349E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          2.4233        1.3174        .53510E-04   -1.5397    
  15  norm          .10000E-03    2.6064        .10452E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    69.195        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     32.396        61.498        .70384E-04   -1.4569    
  18  Prefactor     .10000E-03    9.0258        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10002E-03    112.20        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    18.760        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          15.200        17.853        .10267E-03   -1.4928    
  22  Prefactor     .10004E-03    745.03        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    3.4650        .11964E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .66124        .66217        .47976E-04   -1.5545    
  25  norm          16.111        7.4033        .99780E-04   -1.4905    
  26  Prefactor     12.004        14.061        .11562E-03   -1.5015    
  27  Prefactor     .10000E-03    3.5556        .12191E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .91669        .27001        .28622E-03   -.95876    
  29  Prefactor     .89662        .20872        .22967E-03   -.96259    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.41343e-09
Minuit parameter uncertainties:
  1  4.13041e-05
  2  7.55216e-05
  3  0.0101041
  4  65.9769
  5  5.22862
  6  0.0254563
  7  7.81379e-06
  8  0.00580894
  9  15.712
  10  27.8523
  11  0.000341034
  12  3.4382e-05
  13  5.58497e-05
  14  1.31737
  15  3.76649e-05
  16  0.00109196
  17  61.619
  18  4.8567e-05
  19  0.00334121
  20  0.000424748
  21  17.8592
  22  0.0109158
  23  9.2123e-05
  24  0.662175
  25  7.40371
  26  14.0645
  27  5.28932e-05
  28  0.270405
  29  0.208903
Done.

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

Extracting fit parameters...

4FGL J2320.8-0823
   Spectrum: PowerLaw
360    Prefactor:  1.000e-04  3.410e-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:  8.966e-01  2.089e-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.167e-01  2.704e-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.21e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.46e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/755377/likelihoodResults_570067201_570326401_4FGL_J2320.8-0823_daily_bin1276.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4404.31540601
delta logL = -9.64888695307e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4404.31530958
delta logL = -6.11426003161e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5860       1.0000          .0000       10.000    
     3 'Normalizat'    .91670       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89662       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=   4404.315     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      237 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8731.3        .90712E-02** at limit **
   2  Index         2.6067        6.3499        .50000       -.40817E-05
   3  Normalizat    .91669        .16828        .64710E-01    .23144E-04
   4  Prefactor     .89662        .13315        .44962E-01    .15693E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 2.60673
  Normalizat = 0.91669
  Prefactor  = 0.896618
 **********
 **   18 **HESSE 
 **********

 FCN=   4404.315     FROM HESSE     STATUS=OK            33 CALLS      270 TOTAL
                     EDM=   .23E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    49.888        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6067        6.3016        .50000       -.49912    
   3  Normalizat    .91669        .25098        .28622E-03   -.95876    
   4  Prefactor     .89662        .20085        .22967E-03   -.96259    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.30695e-11
Minuit parameter uncertainties:
  1  0.000337513
  2  4.5408
  3  0.251299
  4  0.201013
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/755377': 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) = 4404.31530956
delta logL = -3.86626197724e-08

Extracting fit parameters...

4FGL J2320.8-0823
   Spectrum: PowerLaw
360    Prefactor:  1.000e-04  3.375e-04  1.000e-04  1.000e+04 ( 1.000e-13)
361        Index:  2.607e+00  4.541e+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.966e-01  2.010e-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.167e-01  2.513e-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/755377/cmap_HighResolution_570067201_570326401_4FGL_J2320.8-0823_daily_bin1276.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.46e-03', job_status='DONE', photon_flux_upper_limit='1.21e-07', time_completed='2021-09-29 11:59:43.603407', job_id='755377', GAL2='0.90', fit_tolerance='1e-08', EG2='0.92', EG='0.92', time_epoch_completed='1632941983.6', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.90', dlogl='-3.87e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.65' WHERE bin_id='1276' AND source_name='4FGL J2320.8-0823' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 11:59:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0236>
Subject: Job 755377: <4FGL_J2320.8-0823_daily_bin1276> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2320.8-0823_daily_bin1276 350.223 -8.3918 570067201 570326401 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 :                                   632.31 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             278.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   857 sec.
    Turnaround time :                            860 sec.

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

