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


Performing analysis on: 4FGL_J2320.8-0823_daily_bin1659
RA = 350.223, Dec = -8.3918
tmin = 669340801, tmax = 669600001
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='909807', job_status='RUN', time_executed='2022-03-22 01:25:53.761386', time_epoch_executed='1647937553.76' WHERE source_name='4FGL J2320.8-0823' and cadence='daily' and bin_id='1659'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/909807

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/909807/ft1_4FGL_J2320.8-0823_daily_bin1659.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/909807/ft2_4FGL_J2320.8-0823_daily_bin1659.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/909807/ft1_4FGL_J2320.8-0823_daily_bin1659.fits outfile=/scratch/kocevski/909807/ft1_filteredMKT_4FGL_J2320.8-0823_daily_bin1659.fits ra=350.223 dec=-8.3918 rad=12.0 tmin=669340801.0 tmax=669600001.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 5.56
user 5.26
sys 0.24

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

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

Number of photons that the gtmktime cut: 414

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/909807/ft1_filtered_4FGL_J2320.8-0823_daily_bin1659.fits" evtable="EVENTS" scfile=/scratch/kocevski/909807/ft2_4FGL_J2320.8-0823_daily_bin1659.fits sctable="SC_DATA" outfile=/scratch/kocevski/909807/ltcube_669340801_669600001_4FGL_J2320.8-0823_daily_bin1659.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/909807/ft2_4FGL_J2320.8-0823_daily_bin1659.fits
.....................!
real 15.79
user 15.12
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/909807/ft1_filtered_4FGL_J2320.8-0823_daily_bin1659.fits evtable="EVENTS" scfile=/scratch/kocevski/909807/ft2_4FGL_J2320.8-0823_daily_bin1659.fits sctable="SC_DATA" expcube=/scratch/kocevski/909807/ltcube_669340801_669600001_4FGL_J2320.8-0823_daily_bin1659.fits outfile=/scratch/kocevski/909807/expmap_669340801_669600001_4FGL_J2320.8-0823_daily_bin1659.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/909807/ltcube_669340801_669600001_4FGL_J2320.8-0823_daily_bin1659.fits
.....................!
real 195.52
user 187.65
sys 5.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/909807/ft1_filtered_4FGL_J2320.8-0823_daily_bin1659.fits scfile=/scratch/kocevski/909807/ft2_4FGL_J2320.8-0823_daily_bin1659.fits outfile=/scratch/kocevski/909807/cmap_669340801_669600001_4FGL_J2320.8-0823_daily_bin1659.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.55
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/909807/ft1_filtered_4FGL_J2320.8-0823_daily_bin1659.fits scfile=/scratch/kocevski/909807/ft2_4FGL_J2320.8-0823_daily_bin1659.fits outfile=/scratch/kocevski/909807/cmap_HighResolution_669340801_669600001_4FGL_J2320.8-0823_daily_bin1659.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.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.6191       1.0000         .10000E-03   10000.    
     2 'Prefactor '    17.336       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10261E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    9.0143       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    30.066       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10104E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10226E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10239E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    2.8817       1.0000         .10000E-03   10000.    
    15 'norm      '    .10055E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    7.2498       1.0000         .10000E-03   10000.    
    17 'Prefactor '    105.03       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .14585E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    29.858       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10265E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    16.621       1.0000         .10000E-03   10000.    
    26 'Prefactor '    67.587       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .71995       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.3573       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=   4757.126     FROM MIGRAD    STATUS=CONVERGED    743 CALLS     3777 TOTAL
                     EDM=   .65E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.6166        8.7563        .51838E-05    .16302E-04
   2  Prefactor     17.391        68.032       -.90823E-05   -.41018E-05
   3  Prefactor     .10000E-03    46.827        .31874E-04** at limit **
   4  Prefactor     .10000E-03    11.117        .33866E-06** at limit **
   5  norm          .10000E-03    .56911        .57516E-07** at limit **
   6  Prefactor     .10000E-03    49.414        .70440E-05** at limit **
   7  Prefactor     9.0203        11.026       -.12982E-04   -.44307E-04
   8  Prefactor     .10000E-03    7.4189       -.23144E-06** at limit **
   9  norm          30.065        17.748       -.84506E-06    .25730E-04
  10  Prefactor     .10000E-03    6.0655        .61926E-07** at limit **
  11  Prefactor     .10000E-03    53.615       -.38489E-04** at limit **
  12  Prefactor     .10000E-03    32.512       -.39048E-05** at limit **
  13  Prefactor     .10000E-03    7.6046        .49949E-06** at limit **
  14  norm          2.8818        1.4936       -.11178E-06    .16225E-03
  15  norm          .10000E-03    3.1052        .48422E-07** at limit **
  16  Prefactor     6.9556        164.40       -.52849E-04   -.14075E-05
  17  Prefactor     104.97        90.666       -.29080E-04   -.19146E-04
  18  Prefactor     .10001E-03    37.891       -.18510E-05** at limit **
  19  Prefactor     .10000E-03    96.757        .84286E-05** at limit **
  20  Prefactor     .10000E-03    4.0244        .85434E-07** at limit **
  21  norm          .10000E-03    8.0671       -.14904E-06** at limit **
  22  Prefactor     29.892        52.449       -.31800E-04    .13109E-04
  23  Prefactor     .10000E-03    2.3494        .14410E-07** at limit **
  24  norm          .10000E-03    .41297        .44542E-06** at limit **
  25  norm          16.597        8.1474       -.66535E-06   -.59443E-03
  26  Prefactor     67.583        31.182       -.16218E-05    .13035E-04
  27  Prefactor     .10000E-03    4.5820       -.11071E-06** at limit **
  28  Normalizat    .71970        .25154        .93378E-05   -.36896E-04
  29  Prefactor     1.3576        .19853        .14073E-05    .25812E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.6166
  Prefactor  = 17.3913
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.02031
  Prefactor  = 0.0001
  norm       = 30.0652
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.88179
  norm       = 0.0001
  Prefactor  = 6.95562
  Prefactor  = 104.975
  Prefactor  = 0.000100012
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 29.8922
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 16.5966
  Prefactor  = 67.5831
  Prefactor  = 0.0001
  Normalizat = 0.719695
  Prefactor  = 1.35761
 **********
 **   18 **HESSE 
 **********

 FCN=   4757.126     FROM HESSE     STATUS=OK           547 CALLS     4324 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.6166        8.7498        .14528E-03   -1.5156    
   2  Prefactor     17.391        68.021        .96193E-04   -1.4874    
   3  Prefactor     .10000E-03    46.791        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    11.158        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    .81372        .10044E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    49.836        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     9.0203        11.019        .13349E-03   -1.5107    
   8  Prefactor     .10000E-03    7.4269        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          30.065        17.755        .73070E-04   -1.4611    
  10  Prefactor     .10000E-03    6.0682        .16591E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    53.633        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    32.552        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    7.6544        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          2.8818        1.4880        .57368E-04   -1.5368    
  15  norm          .10000E-03    3.1166        .11867E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     6.9556        164.84        .14897E-03   -1.5180    
  17  Prefactor     104.97        90.771        .19618E-03   -1.3655    
  18  Prefactor     .10001E-03    37.957        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    96.762        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    4.0279        .13512E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    8.0697        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     29.892        52.382        .73323E-04   -1.4614    
  23  Prefactor     .10000E-03    2.3674        .10320E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    .50165        .81913E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          16.597        7.7788        .98240E-04   -1.4893    
  26  Prefactor     67.583        31.169        .48822E-04   -1.4062    
  27  Prefactor     .10000E-03    4.6012        .14416E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .71970        .28907        .36017E-03   -1.0312    
  29  Prefactor     1.3576        .23116        .21879E-03   -.81610    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.24994e-09
Minuit parameter uncertainties:
  1  8.75131
  2  68.3269
  3  5.37301e-05
  4  1.03456e-05
  5  6.36399e-06
  6  2.90949e-05
  7  11.0211
  8  1.45446e-05
  9  17.7579
  10  2.0261e-06
  11  1.43404e-05
  12  0.000169574
  13  1.04497e-05
  14  1.48801
  15  2.49892e-06
  16  67.9324
  17  90.891
  18  0.00135643
  19  5.14302e-06
  20  5.89942e-06
  21  4.99409e-06
  22  52.4625
  23  9.85215e-07
  24  2.70801e-05
  25  7.7793
  26  31.1762
  27  2.87804e-05
  28  0.289683
  29  0.231336
Done.

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

Extracting fit parameters...

4FGL J2320.8-0823
   Spectrum: PowerLaw
360    Prefactor:  1.000e-04  1.434e-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:  1.358e+00  2.313e-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.197e-01  2.897e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 350.223 -8.392
Photon Flux Upper Limit: 1.36e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.07e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/909807/likelihoodResults_669340801_669600001_4FGL_J2320.8-0823_daily_bin1659.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) = 4757.12654872
delta logL = -8.87364185473e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4757.12646004
delta logL = -6.1752871261e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10194E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.5233       1.0000          .0000       10.000    
     3 'Normalizat'    .71969       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3576       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=   4757.126     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      240 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    66.614        .90712E-02** at limit **
   2  Index         3.5195        6.5125        .50000        .72864E-06
   3  Normalizat    .71970        .70437E-02    .81334E-01    .24996E-04
   4  Prefactor     1.3576        .57110E-02    .49493E-01    .15277E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 3.51949
  Normalizat = 0.719697
  Prefactor  = 1.35761
 **********
 **   18 **HESSE 
 **********

 FCN=   4757.126     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      273 TOTAL
                     EDM=   .14E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    912.35        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.5195        6.1881        .50000       -.30061    
   3  Normalizat    .71970        .26677E-01    .36016E-03   -1.0312    
   4  Prefactor     1.3576        .21679E-01    .21879E-03   -.81610    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.39874e-07
Minuit parameter uncertainties:
  1  0.000660623
  2  2493.36
  3  0.0266776
  4  0.0216793
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/909807': 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) = 4757.12646002
delta logL = -4.14520400227e-08

Extracting fit parameters...

4FGL J2320.8-0823
   Spectrum: PowerLaw
360    Prefactor:  1.000e-04  6.606e-04  1.000e-04  1.000e+04 ( 1.000e-13)
361        Index:  3.519e+00  2.493e+03  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.358e+00  2.168e-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.197e-01  2.668e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/909807/cmap_HighResolution_669340801_669600001_4FGL_J2320.8-0823_daily_bin1659.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.07e-02', job_status='DONE', photon_flux_upper_limit='1.36e-07', time_completed='2022-03-22 01:37:09.141498', job_id='909807', GAL2='1.36', fit_tolerance='1e-08', EG2='0.72', EG='0.72', time_epoch_completed='1647938229.14', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.36', dlogl='-4.15e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.65' WHERE bin_id='1659' AND source_name='4FGL J2320.8-0823' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Mar 22 01:37:09 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0230>
Subject: Job 909807: <4FGL_J2320.8-0823_daily_bin1659> in cluster <slac> Done

Job <4FGL_J2320.8-0823_daily_bin1659> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Tue Mar 22 01:25:16 2022
Job was executed on host(s) <bullet0230>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Mar 22 01:25:43 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Mar 22 01:25:43 2022
Terminated at Tue Mar 22 01:37:09 2022
Results reported at Tue Mar 22 01:37:09 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2320.8-0823_daily_bin1659 350.223 -8.3918 669340801 669600001 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 :                                   670.38 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             324.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   686 sec.
    Turnaround time :                            713 sec.

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

