aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/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 11 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 make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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 = 7464
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2320.8-0823_daily_bin1773
RA = 350.223, Dec = -8.3918
tmin = 698889601, tmax = 699148801
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='807244', job_status='RUN', time_executed='2023-02-27 10:41:27.370338', time_epoch_executed='1677523287.37' WHERE source_name='4FGL J2320.8-0823' and cadence='daily' and bin_id='1773'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/807244

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/807244/ft1_4FGL_J2320.8-0823_daily_bin1773.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/807244/ft2_4FGL_J2320.8-0823_daily_bin1773.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/807244/ft1_4FGL_J2320.8-0823_daily_bin1773.fits outfile=/scratch/kocevski/807244/ft1_filteredMKT_4FGL_J2320.8-0823_daily_bin1773.fits ra=350.223 dec=-8.3918 rad=12.0 tmin=698889601.0 tmax=699148801.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 2.51
user 2.24
sys 0.19

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

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

Number of photons that the gtmktime cut: 126

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/807244/ft1_filtered_4FGL_J2320.8-0823_daily_bin1773.fits" evtable="EVENTS" scfile=/scratch/kocevski/807244/ft2_4FGL_J2320.8-0823_daily_bin1773.fits sctable="SC_DATA" outfile=/scratch/kocevski/807244/ltcube_698889601_699148801_4FGL_J2320.8-0823_daily_bin1773.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/807244/ft2_4FGL_J2320.8-0823_daily_bin1773.fits
.....................!
real 13.57
user 13.18
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/807244/ft1_filtered_4FGL_J2320.8-0823_daily_bin1773.fits evtable="EVENTS" scfile=/scratch/kocevski/807244/ft2_4FGL_J2320.8-0823_daily_bin1773.fits sctable="SC_DATA" expcube=/scratch/kocevski/807244/ltcube_698889601_699148801_4FGL_J2320.8-0823_daily_bin1773.fits outfile=/scratch/kocevski/807244/expmap_698889601_699148801_4FGL_J2320.8-0823_daily_bin1773.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/807244/ltcube_698889601_699148801_4FGL_J2320.8-0823_daily_bin1773.fits
.....................!
real 155.98
user 150.98
sys 3.82

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/807244/ft1_filtered_4FGL_J2320.8-0823_daily_bin1773.fits scfile=/scratch/kocevski/807244/ft2_4FGL_J2320.8-0823_daily_bin1773.fits outfile=/scratch/kocevski/807244/cmap_698889601_699148801_4FGL_J2320.8-0823_daily_bin1773.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.69
user 0.33
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/807244/ft1_filtered_4FGL_J2320.8-0823_daily_bin1773.fits scfile=/scratch/kocevski/807244/ft2_4FGL_J2320.8-0823_daily_bin1773.fits outfile=/scratch/kocevski/807244/cmap_HighResolution_698889601_699148801_4FGL_J2320.8-0823_daily_bin1773.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.50
user 0.31
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/807244/ft1_filtered_4FGL_J2320.8-0823_daily_bin1773.fits evtable="EVENTS" scfile=/scratch/kocevski/807244/ft2_4FGL_J2320.8-0823_daily_bin1773.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/807244/Model_4FGL_J2320.8-0823_daily_bin1773.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/807244/ft1_filtered_4FGL_J2320.8-0823_daily_bin1773.fits.....................!
real 21.75
user 20.39
sys 1.04

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/807244/ft1_filtered_4FGL_J2320.8-0823_daily_bin1773.fits', '/scratch/kocevski/807244/ft2_4FGL_J2320.8-0823_daily_bin1773.fits', expMap='/scratch/kocevski/807244/expmap_698889601_699148801_4FGL_J2320.8-0823_daily_bin1773.fits', expCube='/scratch/kocevski/807244/ltcube_698889601_699148801_4FGL_J2320.8-0823_daily_bin1773.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/807244/Model_4FGL_J2320.8-0823_daily_bin1773.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  0.000e+00  1.000e+06 ( 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/807244/ft1_filtered_4FGL_J2320.8-0823_daily_bin1773.fits
Spacecraft file(s): /scratch/kocevski/807244/ft2_4FGL_J2320.8-0823_daily_bin1773.fits
Exposure map: /scratch/kocevski/807244/expmap_698889601_699148801_4FGL_J2320.8-0823_daily_bin1773.fits
Exposure cube: /scratch/kocevski/807244/ltcube_698889601_699148801_4FGL_J2320.8-0823_daily_bin1773.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/807244/Model_4FGL_J2320.8-0823_daily_bin1773.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) = 1574.55668979

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.068       1.0000          .0000       .10000E+07
     2 'Prefactor '    3.2765       1.0000          .0000       .10000E+07
     3 'Prefactor '    4.5863       1.0000          .0000       .10000E+07
     4 'norm      '    .28492E-01   1.0000          .0000       .10000E+07
     5 'Prefactor '    2.7572       1.0000          .0000       .10000E+07
     6 'Prefactor '    .11442E-01   1.0000          .0000       .10000E+07
     7 'norm      '    40.028       1.0000          .0000       .10000E+07
     8 'Prefactor '    50.366       1.0000          .0000       .10000E+07
     9 'Prefactor '    .13347       1.0000          .0000       .10000E+07
    10 'Prefactor '    .80205E-01   1.0000          .0000       .10000E+07
    11 'Prefactor '    .21455E-06   1.0000          .0000       .10000E+07
    12 'norm      '    1.9534       1.0000          .0000       .10000E+07
    13 'norm      '    .61062E-09   1.0000          .0000       .10000E+07
    14 'Prefactor '    .17543E-01   1.0000          .0000       .10000E+07
    15 'Prefactor '    71.870       1.0000          .0000       .10000E+07
    16 'norm      '    .14540E-03   1.0000          .0000       .10000E+07
    17 'Prefactor '    4.9530       1.0000          .0000       .10000E+07
    18 'norm      '    1.3794       1.0000          .0000       .10000E+07
    19 'norm      '    2.0352       1.0000          .0000       .10000E+07
    20 'Prefactor '    .11951E-01   1.0000          .0000       .10000E+07
    21 'Normalizat'    .20185       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.4763       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5240E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   1574.338     FROM MIGRAD    STATUS=CONVERGED    230 CALLS     1815 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.454        22.471        .16208E-05    .97292E-03
   2  Prefactor     .16420E-02    772.21        .90674E-05** at limit **
   3  Prefactor     .20755E-02    2511.7        .19842E-04** at limit **
   4  norm           .0000        80.404        .17167E-05** at limit **
   5  Prefactor     .50803E-02    329.53       -.37000E-05** at limit **
   6  Prefactor     .64104E-05    130.21       -.82480E-06** at limit **
   7  norm          43.696        62.176       -.60250E-06   -.10354    
   8  Prefactor     48.822        45.926       -.11917E-07    .42241E-01
   9  Prefactor      .0000        63.541        .13563E-05** at limit **
  10  Prefactor      .0000        69.492        .12223E-06** at limit **
  11  Prefactor      .0000        10.024        .21994E-07** at limit **
  12  norm          1.9563        2.3155        .14497E-08    .51560E-04
  13  norm           .0000        5.8640       -.28073E-06** at limit **
  14  Prefactor      .0000        138.23        .18600E-05** at limit **
  15  Prefactor     77.810        63.623        .66195E-06    .25793    
  16  norm          .55511E-10    18.105       -.80716E-06** at limit **
  17  Prefactor     5.0012        8.0855       -.34529E-06    .29650E-03
  18  norm          1.3687        1.3027       -.17481E-06   -.12897E-02
  19  norm          2.0612        10.560        .97246E-06   -.99734E-03
  20  Prefactor     .15543E-08    68.725       -.82223E-06** at limit **
  21  Normalizat    .19416        .48243        .44915E-04   -.19383E-04
  22  Prefactor     1.4759        .39873        .48308E-05   -.26200E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.4536
  Prefactor  = 0.00164202
  Prefactor  = 0.00207546
  norm       = 0
  Prefactor  = 0.00508025
  Prefactor  = 6.41037e-06
  norm       = 43.6961
  Prefactor  = 48.8225
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 0
  norm       = 1.95626
  norm       = 0
  Prefactor  = 0
  Prefactor  = 77.8101
  norm       = 5.55112e-11
  Prefactor  = 5.00121
  norm       = 1.36865
  norm       = 2.06119
  Prefactor  = 1.55431e-09
  Normalizat = 0.194161
  Prefactor  = 1.47587
 **********
 **   18 **HESSE 
 **********

 FCN=   1574.338     FROM HESSE     STATUS=OK           382 CALLS     2197 TOTAL
                     EDM=   .17E-04    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.454        23.956        .26679E-03   -1.5632    
   2  Prefactor     .16420E-02    870.64        .55917E-03   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .20755E-02    2629.1        .46979E-03   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm           .0000        80.371        .16531E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .50803E-02    638.57        .61275E-03   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .64104E-05    130.57        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          43.696        64.531        .15807E-03   -1.5576    
   8  Prefactor     48.822        46.330        .14092E-03   -1.5568    
   9  Prefactor      .0000        63.540        .13105E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor      .0000        69.542        .14495E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor      .0000        10.029        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.9563        2.3685        .74213E-03   -1.5680    
  13  norm           .0000        5.8667        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor      .0000        137.16        .17204E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     77.810        81.760        .11797E-03   -1.5532    
  16  norm          .55511E-10    18.190        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     5.0012        8.7679        .45166E-03   -1.5663    
  18  norm          1.3687        1.2713        .84087E-03   -1.5685    
  19  norm          2.0612        10.346        .72474E-03   -1.5679    
  20  Prefactor     .15543E-08    68.125        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .19416        .98759        .14558       -1.2984    
  22  Prefactor     1.4759        .62358        .45058E-01   -.78218    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.71494e-05
Minuit parameter uncertainties:
  1  23.9566
  2  2.39167
  3  4.67387
  4  7.52806e-05
  5  3.60265
  6  0.0578632
  7  64.5322
  8  46.3304
  9  3.8509e-05
  10  3.29957e-05
  11  2.09286e-06
  12  2.36848
  13  5.05463e-06
  14  3.62573e-05
  15  81.7607
  16  5.66906e-05
  17  8.76794
  18  1.27134
  19  9.23599
  20  0.000653228
  21  0.876517
  22  0.626842
Done.

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

Extracting fit parameters...

4FGL J2320.8-0823
   Spectrum: PowerLaw
360    Prefactor:  0.000e+00  3.851e-05  0.000e+00  1.000e+06 ( 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.476e+00  6.268e-01  0.000e+00  1.000e+01 ( 1.000e+00)
522        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
523        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
520   Normalization:  1.942e-01  8.765e-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: 2.90e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.28e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/807244/likelihoodResults_698889601_699148801_4FGL_J2320.8-0823_daily_bin1773.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) = 1574.34511103
delta logL = -0.00750572886727

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1574.33760537
delta logL = -6.50088622933e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10022E-05   1.0000          .0000       .10000E+07
     2 'Index     '    2.4306       1.0000          .0000       10.000    
     3 'Normalizat'    .19401       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4760       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=   1574.338     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      266 TOTAL
                     EDM=   .26E-13    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .55511E-10    .80724        .42118E-03** at limit **
   2  Index         .66442        6.0235        .50000       -.23874E-10
   3  Normalizat    .19416        .29273E-02    .14558        .14808E-04
   4  Prefactor     1.4759        .24079E-02    .45058E-01   -.43388E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.55112e-11
  Index      = 0.664415
  Normalizat = 0.194164
  Prefactor  = 1.47586
 **********
 **   18 **HESSE 
 **********

 FCN=   1574.338     FROM HESSE     STATUS=NOT POSDEF    27 CALLS      293 TOTAL
                     EDM=   .13E-12    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .55511E-10    4.0326        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .66442        7.4828        .50000       -1.0494    
   3  Normalizat    .19416        .65921E-02    .63901E-03   -1.2984    
   4  Prefactor     1.4759        .53828E-02    .19915E-03   -.78218    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.28331e-13
Minuit parameter uncertainties:
  1  2.12874e-05
  2  156208
  3  0.00659215
  4  0.00538278
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/807244': 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) = 1574.3376053
delta logL = 4.32009983342e-12

Extracting fit parameters...

4FGL J2320.8-0823
   Spectrum: PowerLaw
360    Prefactor:  5.551e-11  2.129e-05  0.000e+00  1.000e+06 ( 1.000e-13)
361        Index:  6.644e-01  1.562e+05  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.476e+00  5.383e-03  0.000e+00  1.000e+01 ( 1.000e+00)
522        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
523        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
520   Normalization:  1.942e-01  6.592e-03  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 350.223 -8.392

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/807244/cmap_HighResolution_698889601_699148801_4FGL_J2320.8-0823_daily_bin1773.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.28e-02', job_status='DONE', photon_flux_upper_limit='2.90e-07', time_completed='2023-02-27 10:46:43.159138', job_id='807244', GAL2='1.48', fit_tolerance='1e-08', EG2='0.19', EG='0.19', time_epoch_completed='1677523603.16', return_code2='102', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.48', dlogl='4.32e-12', ts2='-0.00', photon_index_error='0.00', photon_index='2.65' WHERE bin_id='1773' AND source_name='4FGL J2320.8-0823' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Feb 27 10:46:43 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0189>
Subject: Job 807244: <4FGL_J2320.8-0823_daily_bin1773> in cluster <slac> Done

Job <4FGL_J2320.8-0823_daily_bin1773> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Feb 27 10:40:19 2023
Job was executed on host(s) <bullet0189>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Feb 27 10:40:20 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Feb 27 10:40:20 2023
Terminated at Mon Feb 27 10:47:04 2023
Results reported at Mon Feb 27 10:47:04 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2320.8-0823_daily_bin1773 350.223 -8.3918 698889601 699148801 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 :                                   315.22 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             306.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   403 sec.
    Turnaround time :                            405 sec.

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

