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


Performing analysis on: 4FGL_J2320.8-0823_daily_bin1403
RA = 350.223, Dec = -8.3918
tmin = 602985601, tmax = 603244801
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='755573', job_status='RUN', time_executed='2021-09-29 11:45:58.425488', time_epoch_executed='1632941158.43' WHERE source_name='4FGL J2320.8-0823' and cadence='daily' and bin_id='1403'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/755573

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/755573/ft1_4FGL_J2320.8-0823_daily_bin1403.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/755573/ft2_4FGL_J2320.8-0823_daily_bin1403.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/755573/ft1_4FGL_J2320.8-0823_daily_bin1403.fits outfile=/scratch/kocevski/755573/ft1_filteredMKT_4FGL_J2320.8-0823_daily_bin1403.fits ra=350.223 dec=-8.3918 rad=12.0 tmin=602985601.0 tmax=603244801.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.02
user 2.81
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/755573/ft1_filtered_4FGL_J2320.8-0823_daily_bin1403.fits" evtable="EVENTS" scfile=/scratch/kocevski/755573/ft2_4FGL_J2320.8-0823_daily_bin1403.fits sctable="SC_DATA" outfile=/scratch/kocevski/755573/ltcube_602985601_603244801_4FGL_J2320.8-0823_daily_bin1403.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/755573/ft2_4FGL_J2320.8-0823_daily_bin1403.fits
.....................!
real 15.76
user 15.39
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/755573/ft1_filtered_4FGL_J2320.8-0823_daily_bin1403.fits evtable="EVENTS" scfile=/scratch/kocevski/755573/ft2_4FGL_J2320.8-0823_daily_bin1403.fits sctable="SC_DATA" expcube=/scratch/kocevski/755573/ltcube_602985601_603244801_4FGL_J2320.8-0823_daily_bin1403.fits outfile=/scratch/kocevski/755573/expmap_602985601_603244801_4FGL_J2320.8-0823_daily_bin1403.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/755573/ltcube_602985601_603244801_4FGL_J2320.8-0823_daily_bin1403.fits
.....................!
real 192.12
user 185.85
sys 5.90

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/755573/ft1_filtered_4FGL_J2320.8-0823_daily_bin1403.fits scfile=/scratch/kocevski/755573/ft2_4FGL_J2320.8-0823_daily_bin1403.fits outfile=/scratch/kocevski/755573/cmap_602985601_603244801_4FGL_J2320.8-0823_daily_bin1403.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/755573/ft1_filtered_4FGL_J2320.8-0823_daily_bin1403.fits scfile=/scratch/kocevski/755573/ft2_4FGL_J2320.8-0823_daily_bin1403.fits outfile=/scratch/kocevski/755573/cmap_HighResolution_602985601_603244801_4FGL_J2320.8-0823_daily_bin1403.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/755573/ft1_filtered_4FGL_J2320.8-0823_daily_bin1403.fits evtable="EVENTS" scfile=/scratch/kocevski/755573/ft2_4FGL_J2320.8-0823_daily_bin1403.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/755573/Model_4FGL_J2320.8-0823_daily_bin1403.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/755573/ft1_filtered_4FGL_J2320.8-0823_daily_bin1403.fits.....................!
real 41.13
user 39.75
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .11856E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    80.306       1.0000         .10000E-03   10000.    
     5 'norm      '    7.3706       1.0000         .10000E-03   10000.    
     6 'Prefactor '    96.507       1.0000         .10000E-03   10000.    
     7 'Prefactor '    15.712       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    1.4169       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10501E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    1.9003       1.0000         .10000E-03   10000.    
    15 'norm      '    6.3238       1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.9564       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10066E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    9.0962       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .11310E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    15.853       1.0000         .10000E-03   10000.    
    24 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    21.434       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.1590       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .86598       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=   3611.307     FROM MIGRAD    STATUS=CONVERGED    742 CALLS     4996 TOTAL
                     EDM=   .16E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    39.723        .83402E-06** at limit **
   2  Prefactor     .10000E-03    110.34        .48268E-05** at limit **
   3  Prefactor     .10000E-03    142.67       -.63900E-05** at limit **
   4  Prefactor     80.353        172.04       -.36708E-05    .59259E-04
   5  norm          7.3643        13.752        .12174E-05   -.76616E-04
   6  Prefactor     96.521        98.956       -.60280E-06    .12676E-04
   7  Prefactor     15.709        16.098        .47416E-07    .24022E-05
   8  Prefactor     .10000E-03    38.250       -.19469E-05** at limit **
   9  norm          1.4226        129.49        .19417E-04    .73329E-05
  10  Prefactor     .10000E-03    12.476       -.11387E-07** at limit **
  11  Prefactor     .10000E-03    81.289        .14177E-05** at limit **
  12  Prefactor     .10000E-03    55.302        .28914E-06** at limit **
  13  Prefactor     .10000E-03    11.996       -.22959E-07** at limit **
  14  norm          1.9004        1.4403       -.40606E-07   -.11536E-03
  15  norm          6.3233        7.4164        .12548E-06   -.17375E-04
  16  Prefactor     4.9143        254.55        .66112E-05    .39960E-06
  17  Prefactor     .10000E-03    66.672       -.27865E-05** at limit **
  18  Prefactor     9.1002        26.918        .13563E-05    .24299E-04
  19  Prefactor     .10000E-03    676.35        .69476E-05** at limit **
  20  Prefactor     .10000E-03    8.7298       -.96647E-07** at limit **
  21  norm          .10000E-03    11.331       -.29020E-07** at limit **
  22  Prefactor     .10000E-03    31.509        .10031E-06** at limit **
  23  Prefactor     15.854        7.7087        .12701E-06   -.67036E-04
  24  norm          .10000E-03    .30659        .17236E-08** at limit **
  25  norm          21.434        7.6491        .10209E-06    .71937E-04
  26  Prefactor     .10000E-03    7.9884       -.12163E-06** at limit **
  27  Prefactor     .10000E-03    10.694       -.27556E-06** at limit **
  28  Normalizat    1.1590        .28469       -.16523E-05   -.73309E-04
  29  Prefactor     .86595        .21631       -.51101E-06   -.50603E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 80.3529
  norm       = 7.3643
  Prefactor  = 96.5213
  Prefactor  = 15.7095
  Prefactor  = 0.0001
  norm       = 1.42265
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.90045
  norm       = 6.3233
  Prefactor  = 4.91428
  Prefactor  = 0.0001
  Prefactor  = 9.10016
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.8543
  norm       = 0.0001
  norm       = 21.4343
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.15899
  Prefactor  = 0.86595
 **********
 **   18 **HESSE 
 **********

 FCN=   3611.307     FROM HESSE     STATUS=OK           549 CALLS     5545 TOTAL
                     EDM=   .37E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    41.006        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    110.80        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    143.45        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     80.353        196.81        .44817E-04   -1.3913    
   5  norm          7.3643        15.741        .50273E-03   -1.5165    
   6  Prefactor     96.521        98.905        .40916E-04   -1.3740    
   7  Prefactor     15.709        16.099        .10104E-03   -1.4915    
   8  Prefactor     .10000E-03    38.391        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.4226        132.04        .18181E-02   -1.5469    
  10  Prefactor     .10000E-03    12.490        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    81.439        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    55.621        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    12.063        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.9004        1.4357        .58729E-04   -1.5432    
  15  norm          6.3233        7.4046        .15962E-03   -1.5205    
  16  Prefactor     4.9143        256.60        .18065E-03   -1.5265    
  17  Prefactor     .10000E-03    66.886        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     9.1002        27.007        .13289E-03   -1.5105    
  19  Prefactor     .10000E-03    677.57        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    8.7467        .17333E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    11.335        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    31.516        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     15.854        7.7227        .10059E-03   -1.4911    
  24  norm          .10000E-03    .33935        .63445E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          21.434        7.5013        .86516E-04   -1.4782    
  26  Prefactor     .10000E-03    7.9992        .16589E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    10.906        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.1590        .33914        .28724E-03   -.87880    
  29  Prefactor     .86595        .25779        .25146E-03   -.97341    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.72749e-10
Minuit parameter uncertainties:
  1  0.000304741
  2  7.03014e-05
  3  0.000172287
  4  198.444
  5  15.7496
  6  99.0743
  7  16.1032
  8  3.58348e-05
  9  27.4727
  10  7.54817e-06
  11  1.80153e-05
  12  6.18455e-06
  13  7.07647e-06
  14  1.43575
  15  7.40568
  16  71.3458
  17  7.73024e-05
  18  27.0431
  19  0.000274114
  20  1.30207e-05
  21  6.26349e-06
  22  2.32397e-06
  23  7.72318
  24  9.70856e-08
  25  7.50161
  26  3.01004e-06
  27  2.28276e-05
  28  0.339781
  29  0.258149
Done.

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

Extracting fit parameters...

4FGL J2320.8-0823
   Spectrum: PowerLaw
360    Prefactor:  1.000e-04  1.802e-05  1.000e-04  1.000e+04 ( 1.000e-13)
361        Index:  2.648e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
362        Scale:  6.667e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
521    Prefactor:  8.660e-01  2.581e-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.159e+00  3.398e-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.68e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.32e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/755573/likelihoodResults_602985601_603244801_4FGL_J2320.8-0823_daily_bin1403.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) = 3611.30717845
delta logL = -5.83882624596e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3611.30712013
delta logL = -6.62821548758e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5993       1.0000          .0000       10.000    
     3 'Normalizat'    1.1590       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86595       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=   3611.307     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      240 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9197.8        .90712E-02** at limit **
   2  Index         2.6454        5.9260        .50000       -.58896E-05
   3  Normalizat    1.1590        .12448        .64933E-01    .38139E-04
   4  Prefactor     .86595        .95740E-01    .44570E-01    .40911E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  Index      = 2.64542
  Normalizat = 1.15899
  Prefactor  = 0.86595
 **********
 **   18 **HESSE 
 **********

 FCN=   3611.307     FROM HESSE     STATUS=OK            33 CALLS      273 TOTAL
                     EDM=   .96E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    94.821        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6454        6.3222        .50000       -.49033    
   3  Normalizat    1.1590        .31861        .28724E-03   -.87880    
   4  Prefactor     .86595        .24644        .25146E-03   -.97341    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.62753e-11
Minuit parameter uncertainties:
  1  0.00080949
  2  4.85088
  3  0.319146
  4  0.246759
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/755573': 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) = 3611.30712007
delta logL = -3.44198269886e-09

Extracting fit parameters...

4FGL J2320.8-0823
   Spectrum: PowerLaw
360    Prefactor:  1.000e-04  8.095e-04  1.000e-04  1.000e+04 ( 1.000e-13)
361        Index:  2.645e+00  4.851e+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.659e-01  2.468e-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.159e+00  3.191e-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/755573/cmap_HighResolution_602985601_603244801_4FGL_J2320.8-0823_daily_bin1403.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.32e-02', job_status='DONE', photon_flux_upper_limit='1.68e-07', time_completed='2021-09-29 11:56:49.427439', job_id='755573', GAL2='0.87', fit_tolerance='1e-08', EG2='1.16', EG='1.16', time_epoch_completed='1632941809.43', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.87', dlogl='-3.44e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.65' WHERE bin_id='1403' AND source_name='4FGL J2320.8-0823' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 11:56:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0034>
Subject: Job 755573: <4FGL_J2320.8-0823_daily_bin1403> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2320.8-0823_daily_bin1403 350.223 -8.3918 602985601 603244801 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 :                                   644.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             296.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   663 sec.
    Turnaround time :                            666 sec.

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

