/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 6 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 = 7271
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2320.8-0823_daily_bin327
RA = 350.223, Dec = -8.3918
tmin = 324086401, tmax = 324345601
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='750897', job_status='RUN', time_executed='2021-09-29 11:30:50.043648', time_epoch_executed='1632940250.04' WHERE source_name='4FGL J2320.8-0823' and cadence='daily' and bin_id='327'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/750897

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/750897/ft1_4FGL_J2320.8-0823_daily_bin327.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/750897/ft2_4FGL_J2320.8-0823_daily_bin327.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/750897/ft1_4FGL_J2320.8-0823_daily_bin327.fits outfile=/scratch/kocevski/750897/ft1_filteredMKT_4FGL_J2320.8-0823_daily_bin327.fits ra=350.223 dec=-8.3918 rad=12.0 tmin=324086401.0 tmax=324345601.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 4.28
user 4.03
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/750897/ft1_filtered_4FGL_J2320.8-0823_daily_bin327.fits" evtable="EVENTS" scfile=/scratch/kocevski/750897/ft2_4FGL_J2320.8-0823_daily_bin327.fits sctable="SC_DATA" outfile=/scratch/kocevski/750897/ltcube_324086401_324345601_4FGL_J2320.8-0823_daily_bin327.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/750897/ft2_4FGL_J2320.8-0823_daily_bin327.fits
.....................!
real 11.55
user 11.17
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/750897/ft1_filtered_4FGL_J2320.8-0823_daily_bin327.fits evtable="EVENTS" scfile=/scratch/kocevski/750897/ft2_4FGL_J2320.8-0823_daily_bin327.fits sctable="SC_DATA" expcube=/scratch/kocevski/750897/ltcube_324086401_324345601_4FGL_J2320.8-0823_daily_bin327.fits outfile=/scratch/kocevski/750897/expmap_324086401_324345601_4FGL_J2320.8-0823_daily_bin327.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/750897/ltcube_324086401_324345601_4FGL_J2320.8-0823_daily_bin327.fits
.....................!
real 190.96
user 185.48
sys 5.15

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/750897/ft1_filtered_4FGL_J2320.8-0823_daily_bin327.fits scfile=/scratch/kocevski/750897/ft2_4FGL_J2320.8-0823_daily_bin327.fits outfile=/scratch/kocevski/750897/cmap_324086401_324345601_4FGL_J2320.8-0823_daily_bin327.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/750897/ft1_filtered_4FGL_J2320.8-0823_daily_bin327.fits scfile=/scratch/kocevski/750897/ft2_4FGL_J2320.8-0823_daily_bin327.fits outfile=/scratch/kocevski/750897/cmap_HighResolution_324086401_324345601_4FGL_J2320.8-0823_daily_bin327.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=350.223 yref=-8.3918 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/750897/ft1_filtered_4FGL_J2320.8-0823_daily_bin327.fits evtable="EVENTS" scfile=/scratch/kocevski/750897/ft2_4FGL_J2320.8-0823_daily_bin327.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/750897/Model_4FGL_J2320.8-0823_daily_bin327.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/750897/ft1_filtered_4FGL_J2320.8-0823_daily_bin327.fits.....................!
real 53.23
user 51.99
sys 1.14

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.891       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    20.944       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.5326       1.0000         .10000E-03   10000.    
     7 'Prefactor '    9.9176       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .70939       1.0000         .10000E-03   10000.    
     9 'norm      '    30.481       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    26.284       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .67666       1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    52.930       1.0000         .10000E-03   10000.    
    17 'Prefactor '    29.529       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .11542E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    117.02       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    6.9571       1.0000         .10000E-03   10000.    
    25 'norm      '    .44557       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .17670E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .92892       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .78692       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=   5812.401     FROM MIGRAD    STATUS=CONVERGED    693 CALLS     3671 TOTAL
                     EDM=   .53E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.889        10.135        .53377E-06    .10133E-03
   2  Prefactor     .10000E-03    26.387       -.17295E-04** at limit **
   3  Prefactor     20.931        109.08       -.27303E-04    .18046E-08
   4  Prefactor     .10000E-03    8.6260        .27067E-05** at limit **
   5  norm          .10000E-03    .35935       -.27401E-06** at limit **
   6  Prefactor     3.5345        25.208        .71100E-05    .23177E-04
   7  Prefactor     9.9180        8.6098       -.26180E-06    .33054E-04
   8  Prefactor     .70323        7.4405       -.21183E-05   -.17520E-03
   9  norm          30.483        14.704        .34078E-06   -.14609E-04
  10  Prefactor     .10000E-03    8.8106        .25242E-05** at limit **
  11  Prefactor     26.283        36.790       -.55202E-06   -.84183E-04
  12  Prefactor     .10000E-03    10.036       -.28761E-05** at limit **
  13  Prefactor     .10000E-03    7.6872        .21202E-05** at limit **
  14  norm          .67665        .72394       -.12482E-06   -.76852E-03
  15  norm          .10000E-03    1.3587        .36688E-06** at limit **
  16  Prefactor     52.927        44.360       -.25986E-05    .77433E-05
  17  Prefactor     29.535        44.397        .99067E-05    .81429E-04
  18  Prefactor     .10000E-03    11.219       -.48718E-05** at limit **
  19  Prefactor     117.04        120.41        .19898E-04    .74356E-05
  20  Prefactor     .10000E-03    7.2503       -.20272E-05** at limit **
  21  norm          .10000E-03    7.2555       -.28106E-05** at limit **
  22  Prefactor     .10000E-03    22.781        .18897E-04** at limit **
  23  Prefactor     .10000E-03    1.5253        .12071E-06** at limit **
  24  norm          6.9552        1.3527       -.14166E-07    .22465E-02
  25  norm          .46420        4.6698       -.69777E-06    .40141E-04
  26  Prefactor     .10000E-03    6.0970        .31712E-07** at limit **
  27  Prefactor     .10001E-03    6.0939       -.61858E-06** at limit **
  28  Normalizat    .92852        .19509       -.83840E-06    .31351E-03
  29  Prefactor     .78716        .14774        .41480E-06    .20375E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.8885
  Prefactor  = 0.0001
  Prefactor  = 20.9315
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 3.53446
  Prefactor  = 9.91802
  Prefactor  = 0.703227
  norm       = 30.4828
  Prefactor  = 0.0001
  Prefactor  = 26.2826
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.676654
  norm       = 0.0001
  Prefactor  = 52.9274
  Prefactor  = 29.5347
  Prefactor  = 0.0001
  Prefactor  = 117.037
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.95516
  norm       = 0.464201
  Prefactor  = 0.0001
  Prefactor  = 0.00010001
  Normalizat = 0.928522
  Prefactor  = 0.787162
 **********
 **   18 **HESSE 
 **********

 FCN=   5812.401     FROM HESSE     STATUS=OK           553 CALLS     4224 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.889        10.049        .11617E-03   -1.5018    
   2  Prefactor     .10000E-03    26.317        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     20.931        109.25        .87520E-04   -1.4793    
   4  Prefactor     .10000E-03    8.6802        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    .43014        .84040E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     3.5345        22.371        .21507E-03   -1.5332    
   7  Prefactor     9.9180        8.6004        .12724E-03   -1.5078    
   8  Prefactor     .70323        20.035        .39571E-02   -1.5540    
   9  norm          30.483        14.690        .72572E-04   -1.4603    
  10  Prefactor     .10000E-03    8.8304        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     26.283        36.499        .78139E-04   -1.4682    
  12  Prefactor     .10000E-03    10.042        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    7.7938        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .67665        .68982        .63957E-03   -1.5543    
  15  norm          .10000E-03    1.3608        .86764E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     52.927        44.358        .55129E-04   -1.4252    
  17  Prefactor     29.535        44.513        .73730E-04   -1.4621    
  18  Prefactor     .10000E-03    11.304        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     117.04        120.18        .18598E-03   -1.3540    
  20  Prefactor     .10000E-03    7.3348        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    7.2636        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    22.670        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    1.5367        .91889E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          6.9552        1.5150        .30448E-04   -1.5180    
  25  norm          .46420        40.314        .25714E-02   -1.5572    
  26  Prefactor     .10000E-03    6.1053        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10001E-03    24.814        .35413E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .92852        .22610        .26129E-03   -.95465    
  29  Prefactor     .78716        .17377        .22313E-03   -1.0020    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.36683e-09
Minuit parameter uncertainties:
  1  10.0507
  2  3.54591e-06
  3  95.9179
  4  8.71033e-05
  5  1.81423e-05
  6  17.7939
  7  8.60147
  8  7.50937
  9  14.6919
  10  3.11512e-06
  11  36.53
  12  1.52795e-05
  13  8.96779e-06
  14  0.689828
  15  1.25883e-06
  16  44.3855
  17  44.563
  18  0.000137368
  19  120.43
  20  3.16188e-05
  21  7.43001e-06
  22  1.27455e-05
  23  6.87366e-06
  24  1.51496
  25  8.65696
  26  6.39746e-08
  27  0.00100362
  28  0.22633
  29  0.173892
Done.

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

Extracting fit parameters...

4FGL J2320.8-0823
   Spectrum: PowerLaw
360    Prefactor:  2.628e+01  3.653e+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:  7.872e-01  1.739e-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.285e-01  2.263e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/750897/likelihoodResults_324086401_324345601_4FGL_J2320.8-0823_daily_bin327.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) = 5812.40109047
delta logL = 0.000196968735509

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5812.40103113
delta logL = 0.000256316209743

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    25.855       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6755       1.0000          .0000       10.000    
     3 'Normalizat'    .92778       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .78748       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.

 FCN=   5812.401     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      258 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     25.826        43.364        .78782E-04   -.18615E-04
   2  Index         2.6732        1.1537        .11631E-01    .18939E-03
   3  Normalizat    .92794        .21869        .26137E-03   -.15206E-03
   4  Prefactor     .78750        .17235        .22309E-03    .12954E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 25.8258
  Index      = 2.67322
  Normalizat = 0.92794
  Prefactor  = 0.787504
 **********
 **   18 **HESSE 
 **********

 FCN=   5812.401     FROM HESSE     STATUS=OK            25 CALLS      283 TOTAL
                     EDM=   .37E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     25.826        41.603        .31513E-05   -1.4691    
   2  Index         2.6732        1.1069        .23261E-02   -.48404    
   3  Normalizat    .92794        .21889        .10455E-04   -.95485    
   4  Prefactor     .78750        .17247        .89234E-05   -1.0019    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.67594e-10
Minuit parameter uncertainties:
  1  41.65
  2  1.11878
  3  0.219101
  4  0.172591
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/750897': 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) = 5812.40102613
delta logL = 0.00026131548384

Extracting fit parameters...

4FGL J2320.8-0823
   Spectrum: PowerLaw
360    Prefactor:  2.583e+01  4.165e+01  1.000e-04  1.000e+04 ( 1.000e-13)
361        Index:  2.673e+00  1.119e+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:  7.875e-01  1.726e-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.279e-01  2.191e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.73
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/750897/cmap_HighResolution_324086401_324345601_4FGL_J2320.8-0823_daily_bin327.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.31e-03', job_status='DONE', photon_flux_upper_limit='1.06e-07', time_completed='2021-09-29 11:42:56.747285', job_id='750897', GAL2='0.79', fit_tolerance='1e-08', EG2='0.93', EG='0.93', time_epoch_completed='1632940976.75', return_code2='0', ts='0.73', comment='SUCCESS', return_code='0', GAL='0.79', dlogl='2.61e-04', ts2='0.73', photon_index_error='0.00', photon_index='2.65' WHERE bin_id='327' AND source_name='4FGL J2320.8-0823' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 11:42:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0101>
Subject: Job 750897: <4FGL_J2320.8-0823_daily_bin327> in cluster <slac> Done

Job <4FGL_J2320.8-0823_daily_bin327> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 11:30:31 2021
Job was executed on host(s) <bullet0101>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 11:30:33 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 11:30:33 2021
Terminated at Wed Sep 29 11:42:57 2021
Results reported at Wed Sep 29 11:42:57 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2320.8-0823_daily_bin327 350.223 -8.3918 324086401 324345601 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 :                                   718.15 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             361.88 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   744 sec.
    Turnaround time :                            746 sec.

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

