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


Performing analysis on: 4FGL_J2320.8-0823_daily_bin818
RA = 350.223, Dec = -8.3918
tmin = 451353601, tmax = 451612801
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='752710', job_status='RUN', time_executed='2021-09-29 11:36:05.202201', time_epoch_executed='1632940565.2' WHERE source_name='4FGL J2320.8-0823' and cadence='daily' and bin_id='818'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/752710

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/752710/ft1_4FGL_J2320.8-0823_daily_bin818.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/752710/ft2_4FGL_J2320.8-0823_daily_bin818.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/752710/ft1_4FGL_J2320.8-0823_daily_bin818.fits outfile=/scratch/kocevski/752710/ft1_filteredMKT_4FGL_J2320.8-0823_daily_bin818.fits ra=350.223 dec=-8.3918 rad=12.0 tmin=451353601.0 tmax=451612801.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.80
user 3.57
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/752710/ft1_filtered_4FGL_J2320.8-0823_daily_bin818.fits" evtable="EVENTS" scfile=/scratch/kocevski/752710/ft2_4FGL_J2320.8-0823_daily_bin818.fits sctable="SC_DATA" outfile=/scratch/kocevski/752710/ltcube_451353601_451612801_4FGL_J2320.8-0823_daily_bin818.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/752710/ft2_4FGL_J2320.8-0823_daily_bin818.fits
.....................!
real 11.48
user 11.11
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/752710/ft1_filtered_4FGL_J2320.8-0823_daily_bin818.fits evtable="EVENTS" scfile=/scratch/kocevski/752710/ft2_4FGL_J2320.8-0823_daily_bin818.fits sctable="SC_DATA" expcube=/scratch/kocevski/752710/ltcube_451353601_451612801_4FGL_J2320.8-0823_daily_bin818.fits outfile=/scratch/kocevski/752710/expmap_451353601_451612801_4FGL_J2320.8-0823_daily_bin818.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/752710/ltcube_451353601_451612801_4FGL_J2320.8-0823_daily_bin818.fits
.....................!
real 189.93
user 184.91
sys 4.72

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/752710/ft1_filtered_4FGL_J2320.8-0823_daily_bin818.fits scfile=/scratch/kocevski/752710/ft2_4FGL_J2320.8-0823_daily_bin818.fits outfile=/scratch/kocevski/752710/cmap_451353601_451612801_4FGL_J2320.8-0823_daily_bin818.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/752710/ft1_filtered_4FGL_J2320.8-0823_daily_bin818.fits scfile=/scratch/kocevski/752710/ft2_4FGL_J2320.8-0823_daily_bin818.fits outfile=/scratch/kocevski/752710/cmap_HighResolution_451353601_451612801_4FGL_J2320.8-0823_daily_bin818.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.56
user 0.41
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/752710/ft1_filtered_4FGL_J2320.8-0823_daily_bin818.fits evtable="EVENTS" scfile=/scratch/kocevski/752710/ft2_4FGL_J2320.8-0823_daily_bin818.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/752710/Model_4FGL_J2320.8-0823_daily_bin818.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/752710/ft1_filtered_4FGL_J2320.8-0823_daily_bin818.fits.....................!
real 61.53
user 60.16
sys 1.26

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.3149       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10080E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    156.08       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.6207       1.0000         .10000E-03   10000.    
     5 'norm      '    .10255E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    19.880       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    238.22       1.0000         .10000E-03   10000.    
    10 'Prefactor '    27.109       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    8.4877       1.0000         .10000E-03   10000.    
    14 'norm      '    1.8345       1.0000         .10000E-03   10000.    
    15 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    59.414       1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.1605       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    63.766       1.0000         .10000E-03   10000.    
    23 'Prefactor '    2.2996       1.0000         .10000E-03   10000.    
    24 'norm      '    1.1256       1.0000         .10000E-03   10000.    
    25 'norm      '    .14650E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    16.218       1.0000         .10000E-03   10000.    
    27 'Prefactor '    8.4569       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .70174       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .97415       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=   7044.782     FROM MIGRAD    STATUS=CONVERGED    741 CALLS     3720 TOTAL
                     EDM=   .98E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.3151        8.7796        .77867E-07   -.10146E-05
   2  Prefactor     .10000E-03    63.365       -.21559E-05** at limit **
   3  Prefactor     156.08        87.819        .39387E-06    .52948E-05
   4  Prefactor     2.6139        8.3743        .21898E-06    .16492E-03
   5  norm          .10000E-03    .57365       -.33926E-06** at limit **
   6  Prefactor     19.874        22.583       -.25845E-06    .58229E-04
   7  Prefactor     .10000E-03    2.9273       -.76387E-08** at limit **
   8  Prefactor     .10000E-03    4.8039        .23341E-07** at limit **
   9  norm          238.22        28.335        .32368E-07   -.28331E-04
  10  Prefactor     27.106        22.947        .23349E-06   -.45736E-05
  11  Prefactor     .10000E-03    15.415        .19550E-05** at limit **
  12  Prefactor     .10000E-03    6.0515       -.48286E-06** at limit **
  13  Prefactor     8.4896        7.0021        .12654E-06   -.25670E-04
  14  norm          1.8344        1.0074        .35638E-07   -.52204E-04
  15  norm          .10000E-03    2.2979        .18375E-07** at limit **
  16  Prefactor     .10000E-03    30.402        .10595E-05** at limit **
  17  Prefactor     59.359        57.635        .48602E-05    .15928E-03
  18  Prefactor     3.1777        16.033        .29649E-05    .24736E-03
  19  Prefactor     .10000E-03    94.330        .15666E-05** at limit **
  20  Prefactor     .10000E-03    5.9334        .36758E-06** at limit **
  21  norm          .10000E-03    7.1093        .10899E-06** at limit **
  22  Prefactor     63.775        52.891       -.12664E-05   -.50841E-04
  23  Prefactor     2.2991        3.5985        .21639E-06    .34955E-04
  24  norm          1.1258        .60250        .18885E-07   -.20758E-02
  25  norm          .10020E-03    2.8865        .11886E-05** at limit **
  26  Prefactor     16.227        19.994        .19309E-06   -.73509E-05
  27  Prefactor     8.4587        6.7951       -.36484E-08   -.52694E-04
  28  Normalizat    .70126        .19286        .34070E-06   -.38659E-04
  29  Prefactor     .97451        .14926       -.10624E-05   -.11919E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.31509
  Prefactor  = 0.0001
  Prefactor  = 156.077
  Prefactor  = 2.61386
  norm       = 0.0001
  Prefactor  = 19.8743
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 238.218
  Prefactor  = 27.1057
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.48961
  norm       = 1.83444
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 59.3592
  Prefactor  = 3.17771
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 63.7751
  Prefactor  = 2.29915
  norm       = 1.12584
  norm       = 0.000100202
  Prefactor  = 16.2269
  Prefactor  = 8.45867
  Normalizat = 0.701257
  Prefactor  = 0.974513
 **********
 **   18 **HESSE 
 **********

 FCN=   7044.782     FROM HESSE     STATUS=OK           553 CALLS     4273 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.3151        8.7719        .13131E-03   -1.5097    
   2  Prefactor     .10000E-03    64.038        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     156.08        87.824        .16135E-03   -1.3203    
   4  Prefactor     2.6139        7.9151        .25194E-03   -1.5385    
   5  norm          .10000E-03    .98833        .10603E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     19.874        22.294        .89830E-04   -1.4816    
   7  Prefactor     .10000E-03    2.9302        .14023E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    4.8545        .17963E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          238.22        28.316        .26231E-04   -1.2609    
  10  Prefactor     27.106        22.965        .76943E-04   -1.4666    
  11  Prefactor     .10000E-03    15.427        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    6.0585        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     8.4896        6.9912        .13760E-03   -1.5125    
  14  norm          1.8344        1.0028        .59212E-04   -1.5437    
  15  norm          .10000E-03    2.3176        .12412E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    30.441        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     59.359        56.767        .52050E-04   -1.4166    
  18  Prefactor     3.1777        15.064        .11399E-02   -1.5351    
  19  Prefactor     .10000E-03    94.359        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    5.9541        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    7.1128        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     63.775        52.945        .50254E-04   -1.4109    
  23  Prefactor     2.2991        3.5698        .18688E-03   -1.5405    
  24  norm          1.1258        .54356        .41399E-04   -1.5496    
  25  norm          .10020E-03    16.609        .22086E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     16.227        20.041        .99454E-04   -1.4902    
  27  Prefactor     8.4587        6.7996        .13785E-03   -1.5126    
  28  Normalizat    .70126        .22009        .32276E-03   -1.0384    
  29  Prefactor     .97451        .17086        .23038E-03   -.93584    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.24535e-08
Minuit parameter uncertainties:
  1  8.77313
  2  0.000156697
  3  87.8973
  4  7.91824
  5  2.60784e-05
  6  22.3036
  7  1.7519e-06
  8  3.78662e-06
  9  28.318
  10  22.9721
  11  9.89643e-05
  12  2.37493e-05
  13  6.99188
  14  1.00278
  15  1.83629e-06
  16  8.37619e-05
  17  56.8186
  18  13.8427
  19  0.000198372
  20  1.06039e-05
  21  2.61354e-06
  22  52.9843
  23  3.5701
  24  0.543567
  25  0.00365982
  26  20.0489
  27  6.80024
  28  0.220367
  29  0.170952
Done.

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

Extracting fit parameters...

4FGL J2320.8-0823
   Spectrum: PowerLaw
360    Prefactor:  1.000e-04  9.896e-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:  9.745e-01  1.710e-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:  7.013e-01  2.204e-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: 6.21e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.88e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/752710/likelihoodResults_451353601_451612801_4FGL_J2320.8-0823_daily_bin818.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) = 7044.78221968
delta logL = -0.000308728765049

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7044.7819139
delta logL = -2.9463935789e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.1715       1.0000          .0000       10.000    
     3 'Normalizat'    .70125       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97452       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=   7044.782     FROM MIGRAD    STATUS=CONVERGED    109 CALLS      297 TOTAL
                     EDM=   .73E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10002E-03    64.023        .18142E-01** at limit **
   2  Index         2.0723        5.1196        .50000        .20939E-06
   3  Normalizat    .70126        .76745E-02    .32275E-03    .67745E-03
   4  Prefactor     .97451        .64191E-02    .23038E-03    .94831E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100016
  Index      = 2.07228
  Normalizat = 0.701257
  Prefactor  = 0.974515
 **********
 **   18 **HESSE 
 **********

 FCN=   7044.782     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      326 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10002E-03    320.15        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0723        8.9276        .50000       -.62555    
   3  Normalizat    .70126        .17435E-01    .64551E-04   -1.0384    
   4  Prefactor     .97451        .14583E-01    .46076E-04   -.93584    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.66714e-09
Minuit parameter uncertainties:
  1  0.00454314
  2  857.668
  3  0.0174355
  4  0.0145833
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/752710': 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): 102
logL (Free Index) = 7044.78191002
delta logL = 9.39597157412e-07

Extracting fit parameters...

4FGL J2320.8-0823
   Spectrum: PowerLaw
360    Prefactor:  1.000e-04  4.543e-03  1.000e-04  1.000e+04 ( 1.000e-13)
361        Index:  2.072e+00  8.577e+02  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:  9.745e-01  1.458e-02  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:  7.013e-01  1.744e-02  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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/752710/cmap_HighResolution_451353601_451612801_4FGL_J2320.8-0823_daily_bin818.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.88e-03', job_status='DONE', photon_flux_upper_limit='6.21e-08', time_completed='2021-09-29 11:49:51.896976', job_id='752710', GAL2='0.97', fit_tolerance='1e-08', EG2='0.70', EG='0.70', time_epoch_completed='1632941391.9', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='9.40e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.65' WHERE bin_id='818' AND source_name='4FGL J2320.8-0823' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 11:49:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0104>
Subject: Job 752710: <4FGL_J2320.8-0823_daily_bin818> in cluster <slac> Done

Job <4FGL_J2320.8-0823_daily_bin818> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 11:35:53 2021
Job was executed on host(s) <bullet0104>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 11:35:55 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:35:55 2021
Terminated at Wed Sep 29 11:49:52 2021
Results reported at Wed Sep 29 11:49:52 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2320.8-0823_daily_bin818 350.223 -8.3918 451353601 451612801 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 :                                   814.30 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             351.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   837 sec.
    Turnaround time :                            839 sec.

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

