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


Performing analysis on: 4FGL_J2320.8-0823_daily_bin1055
RA = 350.223, Dec = -8.3918
tmin = 512784001, tmax = 513043201
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='754100', job_status='RUN', time_executed='2021-09-29 11:44:03.649588', time_epoch_executed='1632941043.65' WHERE source_name='4FGL J2320.8-0823' and cadence='daily' and bin_id='1055'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/754100

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/754100/ft1_4FGL_J2320.8-0823_daily_bin1055.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/754100/ft2_4FGL_J2320.8-0823_daily_bin1055.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/754100/ft1_4FGL_J2320.8-0823_daily_bin1055.fits outfile=/scratch/kocevski/754100/ft1_filteredMKT_4FGL_J2320.8-0823_daily_bin1055.fits ra=350.223 dec=-8.3918 rad=12.0 tmin=512784001.0 tmax=513043201.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 4.44
user 4.20
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/754100/ft1_filtered_4FGL_J2320.8-0823_daily_bin1055.fits" evtable="EVENTS" scfile=/scratch/kocevski/754100/ft2_4FGL_J2320.8-0823_daily_bin1055.fits sctable="SC_DATA" outfile=/scratch/kocevski/754100/ltcube_512784001_513043201_4FGL_J2320.8-0823_daily_bin1055.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/754100/ft2_4FGL_J2320.8-0823_daily_bin1055.fits
.....................!
real 11.77
user 11.42
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/754100/ft1_filtered_4FGL_J2320.8-0823_daily_bin1055.fits evtable="EVENTS" scfile=/scratch/kocevski/754100/ft2_4FGL_J2320.8-0823_daily_bin1055.fits sctable="SC_DATA" expcube=/scratch/kocevski/754100/ltcube_512784001_513043201_4FGL_J2320.8-0823_daily_bin1055.fits outfile=/scratch/kocevski/754100/expmap_512784001_513043201_4FGL_J2320.8-0823_daily_bin1055.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/754100/ltcube_512784001_513043201_4FGL_J2320.8-0823_daily_bin1055.fits
.....................!
real 191.36
user 185.50
sys 5.51

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

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

This is gtbin version HEAD
real 0.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/754100/ft1_filtered_4FGL_J2320.8-0823_daily_bin1055.fits scfile=/scratch/kocevski/754100/ft2_4FGL_J2320.8-0823_daily_bin1055.fits outfile=/scratch/kocevski/754100/cmap_HighResolution_512784001_513043201_4FGL_J2320.8-0823_daily_bin1055.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.36
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/754100/ft1_filtered_4FGL_J2320.8-0823_daily_bin1055.fits evtable="EVENTS" scfile=/scratch/kocevski/754100/ft2_4FGL_J2320.8-0823_daily_bin1055.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/754100/Model_4FGL_J2320.8-0823_daily_bin1055.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/754100/ft1_filtered_4FGL_J2320.8-0823_daily_bin1055.fits.....................!
real 51.85
user 50.39
sys 1.27

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.0453       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    24.694       1.0000         .10000E-03   10000.    
     4 'Prefactor '    22.595       1.0000         .10000E-03   10000.    
     5 'norm      '    12.091       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    15.367       1.0000         .10000E-03   10000.    
     8 'Prefactor '    8.6290       1.0000         .10000E-03   10000.    
     9 'norm      '    26.663       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .75663E-01   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    27.035       1.0000         .10000E-03   10000.    
    14 'norm      '    1.3338       1.0000         .10000E-03   10000.    
    15 'norm      '    5.5468       1.0000         .10000E-03   10000.    
    16 'Prefactor '    105.42       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    17.607       1.0000         .10000E-03   10000.    
    19 'Prefactor '    339.39       1.0000         .10000E-03   10000.    
    20 'Prefactor '    5.7058       1.0000         .10000E-03   10000.    
    21 'norm      '    9.2623       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .62490       1.0000         .10000E-03   10000.    
    25 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    14.348       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .85583       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .85601       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=   5485.799     FROM MIGRAD    STATUS=CONVERGED    111 CALLS     3192 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.0455        5.9916       -.40824E-06    .87425E-02
   2  Prefactor     .10007E-03    65.393        .47833E-05** at limit **
   3  Prefactor     24.714        2.2821        .49561E-07   -.11644E-02
   4  Prefactor     22.573        2.4453       -.50288E-07    .10592E-02
   5  norm          12.092        2.1508        .65749E-07    .61674E-03
   6  Prefactor     .10020E-03    22.003       -.31152E-05** at limit **
   7  Prefactor     15.366        1.0276        .27149E-07   -.30011E-04
   8  Prefactor     8.6275        1.0319       -.18948E-07   -.35815E-03
   9  norm          26.666        1.0432       -.38424E-08   -.48128E-03
  10  Prefactor     .10047E-03    592.15       -.11606E-05** at limit **
  11  Prefactor     .10009E-03    32.056       -.46969E-05** at limit **
  12  Prefactor     .10000E-03    11.110        .22300E-05** at limit **
  13  Prefactor     27.031        2.2825        .23903E-07    .23689E-02
  14  norm          1.3332        1.1327       -.19247E-06   -.25389E-03
  15  norm          5.5473        6.4031        .14738E-06    .36676E-02
  16  Prefactor     105.42        1.0399        .75664E-08   -.12622E-02
  17  Prefactor     .10033E-03    22.249        .73920E-06** at limit **
  18  Prefactor     17.600        1.2380        .57177E-07   -.28667E-03
  19  Prefactor     339.39        1.0571       -.50225E-08    .14079E-02
  20  Prefactor     5.7339        4.0965       -.46146E-06    .10452E-02
  21  norm          9.2388        5.1442        .50173E-06   -.32331E-02
  22  Prefactor     .10022E-03    55.824       -.21285E-05** at limit **
  23  Prefactor     .10000E-03    1.5173        .49073E-06** at limit **
  24  norm          .62480        .49998        .35731E-08    .17956E-03
  25  norm          .10000E-03    2.7828       -.86814E-06** at limit **
  26  Prefactor     14.336        2.2709        .14576E-06   -.12339E-02
  27  Prefactor     .10000E-03    9.8825        .23072E-05** at limit **
  28  Normalizat    .85596        .23888       -.28044E-06    .17531E-03
  29  Prefactor     .85604        .18744        .18259E-05    .27297E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.04547
  Prefactor  = 0.000100072
  Prefactor  = 24.7143
  Prefactor  = 22.5732
  norm       = 12.0917
  Prefactor  = 0.0001002
  Prefactor  = 15.3657
  Prefactor  = 8.62747
  norm       = 26.6661
  Prefactor  = 0.000100467
  Prefactor  = 0.000100089
  Prefactor  = 0.0001
  Prefactor  = 27.0313
  norm       = 1.33317
  norm       = 5.54732
  Prefactor  = 105.418
  Prefactor  = 0.000100332
  Prefactor  = 17.5999
  Prefactor  = 339.393
  Prefactor  = 5.7339
  norm       = 9.23879
  Prefactor  = 0.000100219
  Prefactor  = 0.0001
  norm       = 0.624801
  norm       = 0.0001
  Prefactor  = 14.3359
  Prefactor  = 0.0001
  Normalizat = 0.855955
  Prefactor  = 0.856036
 **********
 **   18 **HESSE 
 **********

 FCN=   5485.799     FROM HESSE     STATUS=OK           623 CALLS     3815 TOTAL
                     EDM=   .29E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.0455        8.8921        .35339E-02   -1.5141    
   2  Prefactor     .10007E-03    73.820        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     24.714        76.473        .20153E-02   -1.4713    
   4  Prefactor     22.573        52.675        .21066E-02   -1.4757    
   5  norm          12.092        4.5950        .28801E-02   -1.5012    
   6  Prefactor     .10020E-03    23.569        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     15.366        11.853        .25543E-02   -1.4924    
   8  Prefactor     8.6275        10.088        .34115E-02   -1.5120    
   9  norm          26.666        16.074        .19396E-02   -1.4675    
  10  Prefactor     .10047E-03    19.491        .11254       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10009E-03    32.831        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    11.105        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     27.031        14.322        .19262E-02   -1.4668    
  14  norm          1.3332        1.1726        .95005E-03   -1.5477    
  15  norm          5.5473        8.1460        .42647E-02   -1.5237    
  16  Prefactor     105.42        76.171        .97916E-03   -1.3651    
  17  Prefactor     .10033E-03    25.003        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     17.600        18.912        .23862E-02   -1.4869    
  19  Prefactor     339.39        252.72        .55226E-03   -1.2002    
  20  Prefactor     5.7339        18.906        .42039E-02   -1.5229    
  21  norm          9.2388        22.416        .32922E-02   -1.5100    
  22  Prefactor     .10022E-03    62.259        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    1.5160        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .62480        .52429        .10245E-01   -1.5550    
  25  norm          .10000E-03    2.7556        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     14.336        23.912        .26435E-02   -1.4951    
  27  Prefactor     .10000E-03    9.6442        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .85596        .22134        .69413E-01   -.98026    
  29  Prefactor     .85604        .16563        .44442E-01   -.97695    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.94328e-07
Minuit parameter uncertainties:
  1  8.89357
  2  0.00460764
  3  76.7788
  4  52.784
  5  4.59512
  6  0.00434815
  7  11.8544
  8  10.0901
  9  16.0765
  10  0.00603267
  11  0.00343006
  12  0.000115647
  13  14.3238
  14  1.17266
  15  8.14765
  16  76.2417
  17  0.00576693
  18  18.9183
  19  253.544
  20  18.926
  21  22.436
  22  0.00738869
  23  1.17053e-05
  24  0.524297
  25  2.8336e-05
  26  23.9281
  27  0.000133836
  28  0.221576
  29  0.165726
Done.

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

Extracting fit parameters...

4FGL J2320.8-0823
   Spectrum: PowerLaw
360    Prefactor:  1.001e-04  3.430e-03  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:  8.560e-01  1.657e-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:  8.560e-01  2.216e-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.08e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.47e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/754100/likelihoodResults_512784001_513043201_4FGL_J2320.8-0823_daily_bin1055.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) = 5485.79913365
delta logL = -0.000144982962411

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5485.79898887
delta logL = -2.03701347345e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11021E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5834       1.0000          .0000       10.000    
     3 'Normalizat'    .85600       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85603       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=   5485.678     FROM MIGRAD    STATUS=CONVERGED    153 CALLS      300 TOTAL
                     EDM=   .34E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .48508E-01    .12100        .71514E-02   -.41480E-02
   2  Index         6.9176        1.1411        .20000        .85036E-04
   3  Normalizat    .81094        .27061        .30712E-03   -.29243E-05
   4  Prefactor     .87929        .19937        .24052E-03    .60503E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.048508
  Index      = 6.91758
  Normalizat = 0.810941
  Prefactor  = 0.879292
 **********
 **   18 **HESSE 
 **********

 FCN=   5485.678     FROM HESSE     STATUS=OK            31 CALLS      331 TOTAL
                     EDM=   .87E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .48508E-01    .61349        .30049E-03   -1.5752    
   2  Index         6.9176        3.5297        .12261E-01    .39360    
   3  Normalizat    .81094        .25361        .12285E-04   -.99664    
   4  Prefactor     .87929        .19328        .96206E-05   -.96868    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.68002e-09
Minuit parameter uncertainties:
  1  0.344666
  2  4.01776
  3  0.253981
  4  0.193427
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/754100': 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): 0
logL (Free Index) = 5485.67842747
delta logL = 0.12056119008

Extracting fit parameters...

4FGL J2320.8-0823
   Spectrum: PowerLaw
360    Prefactor:  4.851e-02  3.447e-01  1.000e-04  1.000e+04 ( 1.000e-13)
361        Index:  6.918e+00  4.018e+00  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:  8.793e-01  1.934e-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:  8.109e-01  2.540e-01  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/754100/cmap_HighResolution_512784001_513043201_4FGL_J2320.8-0823_daily_bin1055.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.47e-03', job_status='DONE', photon_flux_upper_limit='1.08e-07', time_completed='2021-09-29 11:57:26.718035', job_id='754100', GAL2='0.88', fit_tolerance='1e-08', EG2='0.81', EG='0.86', time_epoch_completed='1632941846.72', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.86', dlogl='1.21e-01', ts2='0.27', photon_index_error='0.00', photon_index='2.65' WHERE bin_id='1055' AND source_name='4FGL J2320.8-0823' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 11:57:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0280>
Subject: Job 754100: <4FGL_J2320.8-0823_daily_bin1055> in cluster <slac> Done

Job <4FGL_J2320.8-0823_daily_bin1055> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep 29 11:40:55 2021
Job was executed on host(s) <bullet0280>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 11:40:56 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:40:56 2021
Terminated at Wed Sep 29 11:57:27 2021
Results reported at Wed Sep 29 11:57:27 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2320.8-0823_daily_bin1055 350.223 -8.3918 512784001 513043201 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 :                                   680.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             257.44 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   991 sec.
    Turnaround time :                            992 sec.

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

