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


Performing analysis on: 4FGL_J2320.8-0823_daily_bin1168
RA = 350.223, Dec = -8.3918
tmin = 542073601, tmax = 542332801
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='754278', job_status='RUN', time_executed='2021-09-29 11:41:24.328175', time_epoch_executed='1632940884.33' WHERE source_name='4FGL J2320.8-0823' and cadence='daily' and bin_id='1168'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/754278

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/754278/ft1_4FGL_J2320.8-0823_daily_bin1168.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/754278/ft2_4FGL_J2320.8-0823_daily_bin1168.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/754278/ft1_4FGL_J2320.8-0823_daily_bin1168.fits outfile=/scratch/kocevski/754278/ft1_filteredMKT_4FGL_J2320.8-0823_daily_bin1168.fits ra=350.223 dec=-8.3918 rad=12.0 tmin=542073601.0 tmax=542332801.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.64
user 3.39
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/754278/ft1_filtered_4FGL_J2320.8-0823_daily_bin1168.fits" evtable="EVENTS" scfile=/scratch/kocevski/754278/ft2_4FGL_J2320.8-0823_daily_bin1168.fits sctable="SC_DATA" outfile=/scratch/kocevski/754278/ltcube_542073601_542332801_4FGL_J2320.8-0823_daily_bin1168.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/754278/ft2_4FGL_J2320.8-0823_daily_bin1168.fits
.....................!
real 12.41
user 12.03
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/754278/ft1_filtered_4FGL_J2320.8-0823_daily_bin1168.fits evtable="EVENTS" scfile=/scratch/kocevski/754278/ft2_4FGL_J2320.8-0823_daily_bin1168.fits sctable="SC_DATA" expcube=/scratch/kocevski/754278/ltcube_542073601_542332801_4FGL_J2320.8-0823_daily_bin1168.fits outfile=/scratch/kocevski/754278/expmap_542073601_542332801_4FGL_J2320.8-0823_daily_bin1168.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/754278/ltcube_542073601_542332801_4FGL_J2320.8-0823_daily_bin1168.fits
.....................!
real 191.06
user 186.40
sys 4.26

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/754278/ft1_filtered_4FGL_J2320.8-0823_daily_bin1168.fits scfile=/scratch/kocevski/754278/ft2_4FGL_J2320.8-0823_daily_bin1168.fits outfile=/scratch/kocevski/754278/cmap_542073601_542332801_4FGL_J2320.8-0823_daily_bin1168.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.54
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/754278/ft1_filtered_4FGL_J2320.8-0823_daily_bin1168.fits scfile=/scratch/kocevski/754278/ft2_4FGL_J2320.8-0823_daily_bin1168.fits outfile=/scratch/kocevski/754278/cmap_HighResolution_542073601_542332801_4FGL_J2320.8-0823_daily_bin1168.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/754278/ft1_filtered_4FGL_J2320.8-0823_daily_bin1168.fits evtable="EVENTS" scfile=/scratch/kocevski/754278/ft2_4FGL_J2320.8-0823_daily_bin1168.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/754278/Model_4FGL_J2320.8-0823_daily_bin1168.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/754278/ft1_filtered_4FGL_J2320.8-0823_daily_bin1168.fits.....................!
real 57.87
user 56.61
sys 1.10

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/754278/ft1_filtered_4FGL_J2320.8-0823_daily_bin1168.fits', '/scratch/kocevski/754278/ft2_4FGL_J2320.8-0823_daily_bin1168.fits', expMap='/scratch/kocevski/754278/expmap_542073601_542332801_4FGL_J2320.8-0823_daily_bin1168.fits', expCube='/scratch/kocevski/754278/ltcube_542073601_542332801_4FGL_J2320.8-0823_daily_bin1168.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/754278/Model_4FGL_J2320.8-0823_daily_bin1168.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/754278/ft1_filtered_4FGL_J2320.8-0823_daily_bin1168.fits
Spacecraft file(s): /scratch/kocevski/754278/ft2_4FGL_J2320.8-0823_daily_bin1168.fits
Exposure map: /scratch/kocevski/754278/expmap_542073601_542332801_4FGL_J2320.8-0823_daily_bin1168.fits
Exposure cube: /scratch/kocevski/754278/ltcube_542073601_542332801_4FGL_J2320.8-0823_daily_bin1168.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/754278/Model_4FGL_J2320.8-0823_daily_bin1168.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 6360.07242887

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    15.065       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    11.600       1.0000         .10000E-03   10000.    
     5 'norm      '    .30312       1.0000         .10000E-03   10000.    
     6 'Prefactor '    35.534       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.7186       1.0000         .10000E-03   10000.    
     9 'norm      '    16.790       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    135.79       1.0000         .10000E-03   10000.    
    12 'Prefactor '    18.642       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    1.8463       1.0000         .10000E-03   10000.    
    15 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    8.6358       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    31.939       1.0000         .10000E-03   10000.    
    20 'Prefactor '    6.6739       1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    11.882       1.0000         .10000E-03   10000.    
    24 'norm      '    .65352       1.0000         .10000E-03   10000.    
    25 'norm      '    11.323       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10862E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .81958       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.4222       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5240E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6360.038     FROM MIGRAD    STATUS=FAILED      1278 CALLS     4886 TOTAL
                     EDM=   .33E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.064        12.535        .10319E-03    .23687E-04
   2  Prefactor     .10000E-03    19.913        .18142E-02** at limit **
   3  Prefactor     .10000E-03    58.862        .18142E-02** at limit **
   4  Prefactor     11.585        779.78        .11762E-03   -.38952E-04
   5  norm          .30457        243.89        .14504E-02    .57107E-02
   6  Prefactor     35.524        75.692        .67228E-04   -.25704E-04
   7  Prefactor     .10000E-03    6.2284        .18142E-02** at limit **
   8  Prefactor     5.7184        10.319        .16797E-03   -.10085E-04
   9  norm          16.789        17.018        .97745E-04   -.45361E-05
  10  Prefactor     .10000E-03    10.822        .18142E-02** at limit **
  11  Prefactor     135.79        65.434        .34562E-04    .23683E-04
  12  Prefactor     18.641        25.851        .92762E-04   -.40444E-05
  13  Prefactor     .10000E-03    19.494        .36285E-03** at limit **
  14  norm          1.8464        1.7444        .89486E-04    .25790E-04
  15  norm          .10000E-03    7.3781        .18142E-02** at limit **
  16  Prefactor     8.6325        70.074        .13640E-03    .26670E-05
  17  Prefactor     .10000E-03    25.595        .18142E-02** at limit **
  18  Prefactor     .10000E-03    6.4421        .18142E-02** at limit **
  19  Prefactor     31.895        947.51        .70900E-04    .24052E-05
  20  Prefactor     6.6735        17.306        .15533E-03   -.43842E-04
  21  norm          .10000E-03    17.222        .18142E-02** at limit **
  22  Prefactor     .10000E-03    23.817        .18142E-02** at limit **
  23  Prefactor     11.882        8.5031        .11622E-03   -.58694E-06
  24  norm          .65351        .53937        .50672E-03    .12371E-03
  25  norm          11.323        5.6811        .11906E-03   -.44880E-05
  26  Prefactor     .10000E-03    33.368        .18142E-02** at limit **
  27  Prefactor     .10003E-03    60.498        .32824E-02** at limit **
  28  Normalizat    .81948        .37943        .36636E-03   -.48099E-04
  29  Prefactor     1.4223        .27605        .23298E-03    .61698E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6360.038     FROM SIMPLEX   STATUS=UNCHANGED   1510 CALLS     6396 TOTAL
                     EDM=   .18E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.064        12.535        .12408E-06    .23687E-04
   2  Prefactor     .10000E-03    19.913        .55181E-03** at limit **
   3  Prefactor     .10000E-03    58.862        .11275E-02** at limit **
   4  Prefactor     11.585        779.78        .66143E-07   -.38952E-04
   5  norm          .30457        243.89        .19116E-06    .57107E-02
   6  Prefactor     35.524        75.692        .82516E-07   -.25704E-04
   7  Prefactor     .10000E-03    6.2284        .31443E-03** at limit **
   8  Prefactor     5.7184        10.319        .81914E-07   -.10085E-04
   9  norm          16.789        17.018        .80153E-07   -.45361E-05
  10  Prefactor     .10000E-03    10.822        .37857E-03** at limit **
  11  Prefactor     135.79        65.434        .72168E-07    .23683E-04
  12  Prefactor     18.641        25.851        .80566E-07   -.40444E-05
  13  Prefactor     .10000E-03    19.494        .10875E-03** at limit **
  14  norm          1.8464        1.7444        .83777E-07    .25790E-04
  15  norm          .10000E-03    7.3781        .12109E-03** at limit **
  16  Prefactor     8.6325        70.074        .80448E-07    .26670E-05
  17  Prefactor     .10000E-03    25.595        .37458E-03** at limit **
  18  Prefactor     .10000E-03    6.4421        .31463E-03** at limit **
  19  Prefactor     31.895        947.51        .80480E-07    .24052E-05
  20  Prefactor     6.6735        17.306        .82522E-07   -.43842E-04
  21  norm          .10000E-03    17.222        .23194E-03** at limit **
  22  Prefactor     .10000E-03    23.817        .27446E-03** at limit **
  23  Prefactor     11.882        8.5031        .81331E-07   -.58694E-06
  24  norm          .65351        .53937        .84073E-07    .12371E-03
  25  norm          11.323        5.6811        .81243E-07   -.44880E-05
  26  Prefactor     .10000E-03    33.368        .36888E-03** at limit **
  27  Prefactor     .10003E-03    60.498        .30020E-04** at limit **
  28  Normalizat    .81948        .37943        .52505E-07   -.48099E-04
  29  Prefactor     1.4223        .27605        .43010E-07    .61698E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6360.038     FROM MIGRAD    STATUS=CONVERGED    531 CALLS     6927 TOTAL
                     EDM=   .58E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.064        12.519        .41277E-05    .28093E-04
   2  Prefactor     .10000E-03    20.008        .36285E-03** at limit **
   3  Prefactor     .10000E-03    59.141        .36285E-03** at limit **
   4  Prefactor     11.585        83.172        .47048E-05    .17881E-04
   5  norm          .30453        23.982        .29007E-03   -.35744E-04
   6  Prefactor     35.524        51.140        .26891E-05    .12683E-04
   7  Prefactor     .10000E-03    6.2583        .36285E-03** at limit **
   8  Prefactor     5.7184        10.266        .67187E-05    .13537E-05
   9  norm          16.789        17.057        .39098E-05    .11631E-06
  10  Prefactor     .10000E-03    10.874        .36285E-03** at limit **
  11  Prefactor     135.79        65.467        .69124E-05    .46051E-05
  12  Prefactor     18.641        25.911        .37105E-05     .0000    
  13  Prefactor     .10000E-03    19.586        .72569E-04** at limit **
  14  norm          1.8464        1.7481        .35794E-05    .76226E-05
  15  norm          .10000E-03    7.4187        .36285E-03** at limit **
  16  Prefactor     8.6325        70.318        .54562E-05    .41673E-06
  17  Prefactor     .10000E-03    25.717        .36285E-03** at limit **
  18  Prefactor     .10000E-03    6.4729        .36285E-03** at limit **
  19  Prefactor     31.894        947.52        .14180E-04    .32070E-06
  20  Prefactor     6.6736        17.357        .62131E-05   -.29277E-05
  21  norm          .10000E-03    17.304        .36285E-03** at limit **
  22  Prefactor     .10000E-03    23.930        .36285E-03** at limit **
  23  Prefactor     11.882        8.4323        .46487E-05    .48912E-05
  24  norm          .65351        .54092        .20269E-04    .15144E-04
  25  norm          11.323        5.6805        .47623E-05    .62069E-05
  26  Prefactor     .10000E-03    33.538        .36285E-03** at limit **
  27  Prefactor     .10000E-03    62.230        .13130E-03** at limit **
  28  Normalizat    .81948        .29288        .14654E-04    .17223E-04
  29  Prefactor     1.4223        .22737        .46597E-04    .38305E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.0644
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.5849
  norm       = 0.304534
  Prefactor  = 35.5238
  Prefactor  = 0.0001
  Prefactor  = 5.71837
  norm       = 16.7891
  Prefactor  = 0.0001
  Prefactor  = 135.793
  Prefactor  = 18.6414
  Prefactor  = 0.0001
  norm       = 1.84641
  norm       = 0.0001
  Prefactor  = 8.63253
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 31.8941
  Prefactor  = 6.67359
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.8821
  norm       = 0.653505
  norm       = 11.3232
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.81948
  Prefactor  = 1.42228
 **********
 **   18 **HESSE 
 **********

 FCN=   6360.038     FROM HESSE     STATUS=OK           525 CALLS     7452 TOTAL
                     EDM=   .61E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.064        12.503        .82554E-06   -1.4932    
   2  Prefactor     .10000E-03    20.007        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    59.141        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     11.585        68.318        .94096E-06   -1.5027    
   5  norm          .30453        19.356        .11603E-04   -1.5598    
   6  Prefactor     35.524        50.127        .53783E-06   -1.4515    
   7  Prefactor     .10000E-03    6.2583        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     5.7184        10.254        .13437E-05   -1.5230    
   9  norm          16.789        17.058        .39098E-05   -1.4888    
  10  Prefactor     .10000E-03    10.874        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     135.79        65.431        .13825E-05   -1.3372    
  12  Prefactor     18.641        25.912        .37105E-05   -1.4844    
  13  Prefactor     .10000E-03    19.586        .14514E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.8464        1.7430        .71589E-06   -1.5436    
  15  norm          .10000E-03    7.4190        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     8.6325        70.810        .10912E-05   -1.5120    
  17  Prefactor     .10000E-03    25.717        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    6.4729        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     31.894        886.97        .28360E-05   -1.4578    
  20  Prefactor     6.6736        17.317        .12426E-05   -1.5191    
  21  norm          .10000E-03    17.304        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    23.930        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     11.882        8.4007        .92973E-06   -1.5018    
  24  norm          .65351        .54088        .81075E-06   -1.5546    
  25  norm          11.323        5.6784        .95245E-06   -1.5035    
  26  Prefactor     .10000E-03    33.539        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    62.228        .26259E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .81948        .29054        .29309E-05   -.99350    
  29  Prefactor     1.4223        .22653        .93193E-05   -.79740    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.13159e-11
Minuit parameter uncertainties:
  1  12.5053
  2  1.63511e-06
  3  4.14056e-06
  4  56.3629
  5  4.85656
  6  50.1864
  7  2.70298e-07
  8  10.2572
  9  17.0634
  10  1.08208e-07
  11  65.4663
  12  25.9275
  13  2.67439e-05
  14  1.74302
  15  4.24656e-06
  16  49.5274
  17  3.0566e-06
  18  2.05649e-07
  19  342.151
  20  17.3303
  21  4.96969e-07
  22  2.85554e-06
  23  8.40154
  24  0.540879
  25  5.67865
  26  3.28116e-06
  27  0.000278113
  28  0.291094
  29  0.226694
Done.

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

Extracting fit parameters...

4FGL J2320.8-0823
   Spectrum: PowerLaw
360    Prefactor:  1.358e+02  6.547e+01  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.422e+00  2.267e-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:  8.195e-01  2.911e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.76
Ra Dec: 350.223 -8.392
Photon Index (Fixed Index): 2.65 +/- 0.00
Photon Flux (Fixed Index): 1.25e-07 +/- 6.04e-08
Energy Flux (Fixed Index): 3.15e-05 +/- 1.52e-05

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) = 6360.00951492
delta logL = 0.0283145267013

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6359.98793135
delta logL = 0.0498980955581

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    150.06       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3982       1.0000          .0000       10.000    
     3 'Normalizat'    .85424       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4030       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=   6359.988     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      238 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     150.06        1450.3        .82253E-03    .24448E-03
   2  Index         2.3982        5.8465        .15916        .40585E-04
   3  Normalizat    .85424        .28578        .81224E-01    .43098E-05
   4  Prefactor     1.4030        .10790        .52992E-01    .26206E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 150.062
  Index      = 2.39825
  Normalizat = 0.85424
  Prefactor  = 1.40304
 **********
 **   18 **HESSE 
 **********

 FCN=   6359.988     FROM HESSE     STATUS=OK            29 CALLS      267 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     150.06        80.871        .32901E-04   -1.3252    
   2  Index         2.3982        .76747        .89984E-02   -.54726    
   3  Normalizat    .85424        .28740        .35960E-03   -.98087    
   4  Prefactor     1.4030        .22267        .23428E-03   -.80293    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.20212e-09
Minuit parameter uncertainties:
  1  80.9308
  2  0.771665
  3  0.287913
  4  0.222818
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/754278': 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) = 6359.98793135
delta logL = 0.0498980960483

Extracting fit parameters...

4FGL J2320.8-0823
   Spectrum: PowerLaw
360    Prefactor:  1.501e+02  8.093e+01  1.000e-04  1.000e+04 ( 1.000e-13)
361        Index:  2.398e+00  7.717e-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.403e+00  2.228e-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:  8.542e-01  2.879e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.75
Ra Dec: 350.223 -8.392
Photon Index (Free Index): 2.40 +/- 0.77
Photon Flux (Free Index): 1.02e-07 +/- 8.87e-08
Energy Flux (Free Index): 3.34e-05 +/- 1.96e-05

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/754278/cmap_HighResolution_542073601_542332801_4FGL_J2320.8-0823_daily_bin1168.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.25e-07', energy_flux2='3.34e-05', photon_flux_error='6.04e-08', dlogl='4.99e-02', energy_flux='3.15e-05', photon_flux2='1.02e-07', job_status='DONE', time_completed='2021-09-29 11:56:29.344961', photon_index_error2='0.77', photon_index2='2.40', ts='8.76', fit_tolerance='1e-08', GAL='1.42', photon_index_error='0.00', energy_flux_error2='1.96e-05', EG='0.82', time_epoch_completed='1632941789.35', return_code='0', job_id='754278', GAL2='1.40', EG2='0.85', return_code2='0', energy_flux_error='1.52e-05', photon_flux_error2='8.87e-08', ts2='8.75', photon_index='2.65' WHERE bin_id='1168' AND source_name='4FGL J2320.8-0823' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 11:56:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0216>
Subject: Job 754278: <4FGL_J2320.8-0823_daily_bin1168> in cluster <slac> Done

Job <4FGL_J2320.8-0823_daily_bin1168> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep 29 11:41:13 2021
Job was executed on host(s) <bullet0216>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 11:41:14 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:41:14 2021
Terminated at Wed Sep 29 11:56:29 2021
Results reported at Wed Sep 29 11:56:29 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2320.8-0823_daily_bin1168 350.223 -8.3918 542073601 542332801 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 :                                   889.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             327.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   915 sec.
    Turnaround time :                            916 sec.

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

