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


Performing analysis on: 4FGL_J2320.8-0823_daily_bin300
RA = 350.223, Dec = -8.3918
tmin = 317088001, tmax = 317347201
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='750852', job_status='RUN', time_executed='2021-09-29 11:30:46.556560', time_epoch_executed='1632940246.56' WHERE source_name='4FGL J2320.8-0823' and cadence='daily' and bin_id='300'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/750852

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/750852/ft1_4FGL_J2320.8-0823_daily_bin300.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/750852/ft2_4FGL_J2320.8-0823_daily_bin300.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/750852/ft1_4FGL_J2320.8-0823_daily_bin300.fits outfile=/scratch/kocevski/750852/ft1_filteredMKT_4FGL_J2320.8-0823_daily_bin300.fits ra=350.223 dec=-8.3918 rad=12.0 tmin=317088001.0 tmax=317347201.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.89
user 3.64
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/750852/ft1_filtered_4FGL_J2320.8-0823_daily_bin300.fits" evtable="EVENTS" scfile=/scratch/kocevski/750852/ft2_4FGL_J2320.8-0823_daily_bin300.fits sctable="SC_DATA" outfile=/scratch/kocevski/750852/ltcube_317088001_317347201_4FGL_J2320.8-0823_daily_bin300.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/750852/ft2_4FGL_J2320.8-0823_daily_bin300.fits
.....................!
real 12.05
user 11.71
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/750852/ft1_filtered_4FGL_J2320.8-0823_daily_bin300.fits evtable="EVENTS" scfile=/scratch/kocevski/750852/ft2_4FGL_J2320.8-0823_daily_bin300.fits sctable="SC_DATA" expcube=/scratch/kocevski/750852/ltcube_317088001_317347201_4FGL_J2320.8-0823_daily_bin300.fits outfile=/scratch/kocevski/750852/expmap_317088001_317347201_4FGL_J2320.8-0823_daily_bin300.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/750852/ltcube_317088001_317347201_4FGL_J2320.8-0823_daily_bin300.fits
.....................!
real 191.11
user 184.50
sys 6.18

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/750852/ft1_filtered_4FGL_J2320.8-0823_daily_bin300.fits scfile=/scratch/kocevski/750852/ft2_4FGL_J2320.8-0823_daily_bin300.fits outfile=/scratch/kocevski/750852/cmap_317088001_317347201_4FGL_J2320.8-0823_daily_bin300.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.14

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/750852/ft1_filtered_4FGL_J2320.8-0823_daily_bin300.fits evtable="EVENTS" scfile=/scratch/kocevski/750852/ft2_4FGL_J2320.8-0823_daily_bin300.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/750852/Model_4FGL_J2320.8-0823_daily_bin300.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/750852/ft1_filtered_4FGL_J2320.8-0823_daily_bin300.fits.....................!
real 52.17
user 50.80
sys 1.23

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/750852/ft1_filtered_4FGL_J2320.8-0823_daily_bin300.fits', '/scratch/kocevski/750852/ft2_4FGL_J2320.8-0823_daily_bin300.fits', expMap='/scratch/kocevski/750852/expmap_317088001_317347201_4FGL_J2320.8-0823_daily_bin300.fits', expCube='/scratch/kocevski/750852/ltcube_317088001_317347201_4FGL_J2320.8-0823_daily_bin300.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/750852/Model_4FGL_J2320.8-0823_daily_bin300.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/750852/ft1_filtered_4FGL_J2320.8-0823_daily_bin300.fits
Spacecraft file(s): /scratch/kocevski/750852/ft2_4FGL_J2320.8-0823_daily_bin300.fits
Exposure map: /scratch/kocevski/750852/expmap_317088001_317347201_4FGL_J2320.8-0823_daily_bin300.fits
Exposure cube: /scratch/kocevski/750852/ltcube_317088001_317347201_4FGL_J2320.8-0823_daily_bin300.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/750852/Model_4FGL_J2320.8-0823_daily_bin300.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 5548.05786142

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.3281       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.0990       1.0000         .10000E-03   10000.    
     5 'norm      '    .10200E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    24.633       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .27696E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    31.118       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10167E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10502E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    9.6446       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10681E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .14071E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10129E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10043E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10087E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    3.4365       1.0000         .10000E-03   10000.    
    24 'norm      '    2.7554       1.0000         .10000E-03   10000.    
    25 'norm      '    3.6483       1.0000         .10000E-03   10000.    
    26 'Prefactor '    2.4169       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .16995       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.4879       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .57506       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=   5547.864     FROM MIGRAD    STATUS=CONVERGED    755 CALLS     3223 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.3282        7.9412        .38469E-05    .12949E-03
   2  Prefactor     .10000E-03    14.700       -.11682E-05** at limit **
   3  Prefactor     .10000E-03    44.396        .61344E-06** at limit **
   4  Prefactor     4.1227        12.360       -.19301E-05   -.70610E-03
   5  norm          .10000E-03    .99751        .61877E-06** at limit **
   6  Prefactor     24.638        27.473       -.31702E-06   -.34660E-03
   7  Prefactor     .10000E-03    5.9881       -.78237E-07** at limit **
   8  Prefactor     .10000E-03    5.8858       -.83969E-07** at limit **
   9  norm          .10007E-03    10.407        .57391E-05** at limit **
  10  Prefactor     31.109        18.515        .21959E-06    .22044E-04
  11  Prefactor     .10000E-03    16.922        .13907E-05** at limit **
  12  Prefactor     .10000E-03    10.683       -.13269E-06** at limit **
  13  Prefactor     .10000E-03    3.0756       -.67604E-07** at limit **
  14  norm          .10000E-03    .50088        .10332E-06** at limit **
  15  norm          .10000E-03    3.8320       -.10114E-05** at limit **
  16  Prefactor     9.7445        37.134       -.54429E-05    .48467E-04
  17  Prefactor     .10000E-03    43.180       -.21269E-06** at limit **
  18  Prefactor     .10000E-03    12.300        .14019E-06** at limit **
  19  Prefactor     .10000E-03    163.81       -.34882E-05** at limit **
  20  Prefactor     .10000E-03    5.6122        .29000E-06** at limit **
  21  norm          .10000E-03    19.909       -.39878E-06** at limit **
  22  Prefactor     .10000E-03    67.075       -.65701E-06** at limit **
  23  Prefactor     3.4377        3.3932        .19731E-06    .30853E-03
  24  norm          2.7553        1.0619       -.63519E-06    .29475E-03
  25  norm          3.6480        7.9269        .63426E-05    .38163E-04
  26  Prefactor     2.4165        16.577        .21218E-06    .49708E-05
  27  Prefactor     .17353        7.7926       -.74829E-06   -.27142E-04
  28  Normalizat    1.4879        .20355       -.35464E-06    .12229E-03
  29  Prefactor     .57506        .15243        .45151E-06    .36442E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.32825
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.12268
  norm       = 0.0001
  Prefactor  = 24.6377
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100065
  Prefactor  = 31.1094
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 9.74454
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.43768
  norm       = 2.75534
  norm       = 3.64796
  Prefactor  = 2.4165
  Prefactor  = 0.173527
  Normalizat = 1.48791
  Prefactor  = 0.575065
 **********
 **   18 **HESSE 
 **********

 FCN=   5547.864     FROM HESSE     STATUS=OK           551 CALLS     3774 TOTAL
                     EDM=   .39E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.3282        8.0552        .11094E-02   -1.5343    
   2  Prefactor     .10000E-03    14.689        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    44.396        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     4.1227        10.713        .19912E-03   -1.5302    
   5  norm          .10000E-03    2.3648        .11795E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     24.638        27.305        .80710E-04   -1.4715    
   7  Prefactor     .10000E-03    6.0096        .17800E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    5.8994        .17647E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10007E-03    37.659        .40161E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     31.109        18.510        .71827E-04   -1.4592    
  11  Prefactor     .10000E-03    16.898        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    10.698        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    3.0820        .12755E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    .85263        .10133E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    12.252        .27954E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     9.7445        36.980        .12904E-03   -1.5084    
  17  Prefactor     .10000E-03    43.253        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    12.339        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    163.77        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    5.6401        .17224E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    20.073        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    67.286        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     3.4377        3.3883        .13084E-03   -1.5337    
  24  norm          2.7553        1.0757        .35688E-04   -1.5376    
  25  norm          3.6480        8.0569        .10575E-02   -1.5326    
  26  Prefactor     2.4165        16.551        .26330E-03   -1.5397    
  27  Prefactor     .17353        93.397        .38380E-02   -1.5625    
  28  Normalizat    1.4879        .24294        .23079E-03   -.78119    
  29  Prefactor     .57506        .17918        .26875E-03   -1.0865    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.8985e-08
Minuit parameter uncertainties:
  1  8.0578
  2  5.21933e-05
  3  8.69747e-05
  4  10.7175
  5  4.85299e-05
  6  27.3189
  7  1.38435e-05
  8  1.01568e-05
  9  0.00313799
  10  18.5134
  11  9.31313e-05
  12  8.45316e-06
  13  6.17749e-06
  14  1.97548e-06
  15  5.21178e-05
  16  37.0672
  17  6.077e-05
  18  3.6952e-05
  19  0.00052814
  20  3.82656e-05
  21  0.000133656
  22  8.28422e-05
  23  3.38849
  24  1.0757
  25  8.05929
  26  12.6531
  27  8.06189
  28  0.243134
  29  0.179357
Done.

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

Extracting fit parameters...

4FGL J2320.8-0823
   Spectrum: PowerLaw
360    Prefactor:  1.000e-04  9.313e-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:  5.751e-01  1.794e-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.488e+00  2.431e-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: 7.40e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.81e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/750852/likelihoodResults_317088001_317347201_4FGL_J2320.8-0823_daily_bin300.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) = 5547.86414725
delta logL = -0.000281625416392

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5547.86386825
delta logL = -2.62365847448e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10663E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.3084       1.0000          .0000       10.000    
     3 'Normalizat'    1.4879       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .57507       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=   5547.864     FROM MIGRAD    STATUS=CONVERGED    108 CALLS      292 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10004E-03    86.174        .18142E-01** at limit **
   2  Index         2.1200        5.9670        .50000        .34595E-06
   3  Normalizat    1.4879        .10414E-01    .23079E-03    .77726E-02
   4  Prefactor     .57508        .79487E-02    .26875E-03    .67215E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100038
  Index      = 2.12
  Normalizat = 1.48792
  Prefactor  = 0.575077
 **********
 **   18 **HESSE 
 **********

 FCN=   5547.864     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      321 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10004E-03    471.88        .32778E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1200        5.5238        .50000       -.61383    
   3  Normalizat    1.4879        .25033E-01    .46159E-04   -.78118    
   4  Prefactor     .57508        .19107E-01    .53750E-04   -1.0865    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.51501e-08
Minuit parameter uncertainties:
  1  0.0085445
  2  1342.05
  3  0.0250331
  4  0.0191072
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/750852': 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) = 5547.86386516
delta logL = 4.6364039008e-07

Extracting fit parameters...

4FGL J2320.8-0823
   Spectrum: PowerLaw
360    Prefactor:  1.000e-04  8.545e-03  1.000e-04  1.000e+04 ( 1.000e-13)
361        Index:  2.120e+00  1.342e+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:  5.751e-01  1.911e-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:  1.488e+00  2.503e-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/750852/cmap_HighResolution_317088001_317347201_4FGL_J2320.8-0823_daily_bin300.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.81e-03', job_status='DONE', photon_flux_upper_limit='7.40e-08', time_completed='2021-09-29 11:42:09.507839', job_id='750852', GAL2='0.58', fit_tolerance='1e-08', EG2='1.49', EG='1.49', time_epoch_completed='1632940929.51', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.58', dlogl='4.64e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.65' WHERE bin_id='300' AND source_name='4FGL J2320.8-0823' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 11:42:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0016>
Subject: Job 750852: <4FGL_J2320.8-0823_daily_bin300> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2320.8-0823_daily_bin300 350.223 -8.3918 317088001 317347201 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 :                                   674.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             330.08 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   701 sec.
    Turnaround time :                            704 sec.

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

