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


Performing analysis on: 4FGL_J2320.8-0823_daily_bin1221
RA = 350.223, Dec = -8.3918
tmin = 555811201, tmax = 556070401
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='755292', job_status='RUN', time_executed='2021-09-29 11:48:35.506189', time_epoch_executed='1632941315.51' WHERE source_name='4FGL J2320.8-0823' and cadence='daily' and bin_id='1221'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/755292

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/755292/ft1_4FGL_J2320.8-0823_daily_bin1221.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/755292/ft2_4FGL_J2320.8-0823_daily_bin1221.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/755292/ft1_4FGL_J2320.8-0823_daily_bin1221.fits outfile=/scratch/kocevski/755292/ft1_filteredMKT_4FGL_J2320.8-0823_daily_bin1221.fits ra=350.223 dec=-8.3918 rad=12.0 tmin=555811201.0 tmax=556070401.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.58
user 3.34
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/755292/ft1_filtered_4FGL_J2320.8-0823_daily_bin1221.fits" evtable="EVENTS" scfile=/scratch/kocevski/755292/ft2_4FGL_J2320.8-0823_daily_bin1221.fits sctable="SC_DATA" outfile=/scratch/kocevski/755292/ltcube_555811201_556070401_4FGL_J2320.8-0823_daily_bin1221.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/755292/ft2_4FGL_J2320.8-0823_daily_bin1221.fits
.....................!
real 12.12
user 11.76
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/755292/ft1_filtered_4FGL_J2320.8-0823_daily_bin1221.fits evtable="EVENTS" scfile=/scratch/kocevski/755292/ft2_4FGL_J2320.8-0823_daily_bin1221.fits sctable="SC_DATA" expcube=/scratch/kocevski/755292/ltcube_555811201_556070401_4FGL_J2320.8-0823_daily_bin1221.fits outfile=/scratch/kocevski/755292/expmap_555811201_556070401_4FGL_J2320.8-0823_daily_bin1221.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/755292/ltcube_555811201_556070401_4FGL_J2320.8-0823_daily_bin1221.fits
.....................!
real 192.40
user 187.21
sys 4.63

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/755292/ft1_filtered_4FGL_J2320.8-0823_daily_bin1221.fits scfile=/scratch/kocevski/755292/ft2_4FGL_J2320.8-0823_daily_bin1221.fits outfile=/scratch/kocevski/755292/cmap_555811201_556070401_4FGL_J2320.8-0823_daily_bin1221.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=350.223 yref=-8.3918 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.15

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/755292/ft1_filtered_4FGL_J2320.8-0823_daily_bin1221.fits evtable="EVENTS" scfile=/scratch/kocevski/755292/ft2_4FGL_J2320.8-0823_daily_bin1221.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/755292/Model_4FGL_J2320.8-0823_daily_bin1221.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/755292/ft1_filtered_4FGL_J2320.8-0823_daily_bin1221.fits.....................!
real 54.21
user 52.83
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .94543       1.0000         .10000E-03   10000.    
     2 'Prefactor '    40.055       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10065E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .16465E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    21.708       1.0000         .10000E-03   10000.    
     6 'Prefactor '    116.17       1.0000         .10000E-03   10000.    
     7 'Prefactor '    7.4958       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .23050       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    8.9582       1.0000         .10000E-03   10000.    
    14 'norm      '    .77461       1.0000         .10000E-03   10000.    
    15 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    22.224       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    179.87       1.0000         .10000E-03   10000.    
    20 'Prefactor '    36.183       1.0000         .10000E-03   10000.    
    21 'norm      '    .10160E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    2.8391       1.0000         .10000E-03   10000.    
    24 'norm      '    .72119       1.0000         .10000E-03   10000.    
    25 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    15.703       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .79234       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .94730       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=   5771.641     FROM MIGRAD    STATUS=CONVERGED    735 CALLS     3739 TOTAL
                     EDM=   .74E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .93814        22.718        .93800E-05   -.21133E-03
   2  Prefactor     40.045        58.618       -.17278E-05   -.11623E-03
   3  Prefactor     .10000E-03    164.53        .11260E-05** at limit **
   4  Prefactor     .10000E-03    73.006       -.16045E-05** at limit **
   5  norm          21.694        3.8333        .14385E-06    .71056E-03
   6  Prefactor     116.13        72.229       -.87196E-06   -.89190E-04
   7  Prefactor     7.4965        7.9028       -.98739E-07   -.84055E-04
   8  Prefactor     .10000E-03    5.6848       -.54430E-07** at limit **
   9  norm          .24932        6.6917       -.10246E-05    .20037E-03
  10  Prefactor     .10000E-03    15.360        .10836E-06** at limit **
  11  Prefactor     .10000E-03    20.139       -.22623E-07** at limit **
  12  Prefactor     .10000E-03    20.512        .12136E-06** at limit **
  13  Prefactor     8.9559        8.0591        .16439E-06    .24269E-04
  14  norm          .77508        .77227       -.32621E-06   -.25634E-02
  15  norm          .10000E-03    3.1066       -.17304E-06** at limit **
  16  Prefactor     22.155        43.980        .11282E-06   -.21279E-04
  17  Prefactor     .10000E-03    27.163        .16778E-06** at limit **
  18  Prefactor     .10000E-03    8.7226        .80716E-07** at limit **
  19  Prefactor     179.60        227.84       -.60261E-06   -.29337E-04
  20  Prefactor     36.189        17.895        .42340E-06    .24533E-03
  21  norm          .10000E-03    17.965       -.22555E-06** at limit **
  22  Prefactor     .10000E-03    32.158       -.19575E-07** at limit **
  23  Prefactor     2.8398        4.7414        .35125E-06    .30732E-03
  24  norm          .72131        .70942        .14461E-06    .11229E-02
  25  norm          .10000E-03    2.4570        .37344E-07** at limit **
  26  Prefactor     .10000E-03    12.151        .44600E-06** at limit **
  27  Prefactor     15.700        10.759       -.45761E-06   -.48767E-03
  28  Normalizat    .79248        .22169       -.11502E-05   -.23400E-03
  29  Prefactor     .94718        .16270        .84683E-07   -.26347E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.938143
  Prefactor  = 40.0449
  Prefactor  = 0.000100001
  Prefactor  = 0.000100002
  norm       = 21.6938
  Prefactor  = 116.126
  Prefactor  = 7.49653
  Prefactor  = 0.0001
  norm       = 0.249316
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.95591
  norm       = 0.775077
  norm       = 0.0001
  Prefactor  = 22.1552
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 179.598
  Prefactor  = 36.1889
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.83979
  norm       = 0.721314
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.6998
  Normalizat = 0.792481
  Prefactor  = 0.947178
 **********
 **   18 **HESSE 
 **********

 FCN=   5771.641     FROM HESSE     STATUS=OK           549 CALLS     4288 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .93814        23.716        .42893E-02   -1.5514    
   2  Prefactor     40.045        58.472        .63334E-04   -1.4441    
   3  Prefactor     .10000E-03    165.10        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    73.475        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          21.694        3.8822        .47723E-04   -1.4776    
   6  Prefactor     116.13        73.210        .37330E-04   -1.3549    
   7  Prefactor     7.4965        7.9054        .14648E-03   -1.5160    
   8  Prefactor     .10000E-03    5.6911        .17691E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .24932        95.315        .35881E-02   -1.5608    
  10  Prefactor     .10000E-03    15.544        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    20.144        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    20.538        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     8.9559        8.0637        .13391E-03   -1.5109    
  14  norm          .77508        .76989        .64654E-04   -1.5532    
  15  norm          .10000E-03    3.1240        .13065E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     22.155        44.037        .84966E-04   -1.4766    
  17  Prefactor     .10000E-03    27.174        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    8.7291        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     179.60        228.13        .15048E-03   -1.3020    
  20  Prefactor     36.189        17.809        .66625E-04   -1.4504    
  21  norm          .10000E-03    17.991        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    32.193        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     2.8398        4.6848        .18165E-03   -1.5371    
  24  norm          .72131        .67467        .61783E-03   -1.5538    
  25  norm          .10000E-03    2.4623        .11621E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    12.215        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     15.700        10.719        .10107E-03   -1.4915    
  28  Normalizat    .79248        .26079        .33163E-03   -1.0035    
  29  Prefactor     .94718        .19398        .23226E-03   -.94512    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.52129e-09
Minuit parameter uncertainties:
  1  9.43746
  2  58.5558
  3  0.000929297
  4  0.000775283
  5  3.88226
  6  73.2667
  7  7.90654
  8  6.27432e-06
  9  9.76331
  10  3.50288e-05
  11  7.63046e-06
  12  2.7463e-05
  13  8.06466
  14  0.7699
  15  1.43026e-05
  16  44.1014
  17  6.79659e-05
  18  1.33261e-05
  19  229.269
  20  17.8118
  21  6.36818e-05
  22  2.25982e-05
  23  4.68539
  24  0.674681
  25  2.10052e-06
  26  8.04293e-05
  27  10.7208
  28  0.261198
  29  0.194125
Done.

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

Extracting fit parameters...

4FGL J2320.8-0823
   Spectrum: PowerLaw
360    Prefactor:  1.000e-04  7.630e-06  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.472e-01  1.941e-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.925e-01  2.612e-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: 8.83e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.93e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/755292/likelihoodResults_555811201_556070401_4FGL_J2320.8-0823_daily_bin1221.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) = 5771.64165301
delta logL = -0.000236269081142

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5771.64141846
delta logL = -1.72047111846e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10220E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.1817       1.0000          .0000       10.000    
     3 'Normalizat'    .79247       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94718       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=   5771.641     FROM MIGRAD    STATUS=CONVERGED    109 CALLS      292 TOTAL
                     EDM=   .85E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    68.621        .18142E-01** at limit **
   2  Index         2.1993        8.8271        .50000        .33492E-07
   3  Normalizat    .79248        .91842E-02    .33163E-03    .72230E-04
   4  Prefactor     .94718        .70293E-02    .23226E-03    .10895E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.19927
  Normalizat = 0.792483
  Prefactor  = 0.947178
 **********
 **   18 **HESSE 
 **********

 FCN=   5771.641     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      321 TOTAL
                     EDM=   .43E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    341.43        .35941E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1993        7.2863        .50000       -.59456    
   3  Normalizat    .79248        .20828E-01    .13265E-04   -1.0035    
   4  Prefactor     .94718        .15941E-01    .46452E-04   -.94512    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.26771e-10
Minuit parameter uncertainties:
  1  0.000579722
  2  1027.02
  3  0.0208282
  4  0.0159411
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/755292': 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) = 5771.64141639
delta logL = 3.51529706677e-07

Extracting fit parameters...

4FGL J2320.8-0823
   Spectrum: PowerLaw
360    Prefactor:  1.000e-04  5.797e-04  1.000e-04  1.000e+04 ( 1.000e-13)
361        Index:  2.199e+00  1.027e+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:  9.472e-01  1.594e-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.925e-01  2.083e-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/755292/cmap_HighResolution_555811201_556070401_4FGL_J2320.8-0823_daily_bin1221.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.93e-03', job_status='DONE', photon_flux_upper_limit='8.83e-08', time_completed='2021-09-29 12:00:42.346985', job_id='755292', GAL2='0.95', fit_tolerance='1e-08', EG2='0.79', EG='0.79', time_epoch_completed='1632942042.35', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.95', dlogl='3.52e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.65' WHERE bin_id='1221' AND source_name='4FGL J2320.8-0823' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 12:00:42 PDT 2021


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

Job <4FGL_J2320.8-0823_daily_bin1221> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Wed Sep 29 11:45:15 2021
Job was executed on host(s) <bullet0216>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 11:45:17 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:45:17 2021
Terminated at Wed Sep 29 12:00:42 2021
Results reported at Wed Sep 29 12:00:42 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2320.8-0823_daily_bin1221 350.223 -8.3918 555811201 556070401 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 :                                   724.40 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             257.89 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   925 sec.
    Turnaround time :                            927 sec.

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

