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


Performing analysis on: 4FGL_J2320.8-0823_daily_bin1018
RA = 350.223, Dec = -8.3918
tmin = 503193601, tmax = 503452801
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='754039', job_status='RUN', time_executed='2021-09-29 11:44:36.352271', time_epoch_executed='1632941076.35' WHERE source_name='4FGL J2320.8-0823' and cadence='daily' and bin_id='1018'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/754039

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/754039/ft1_4FGL_J2320.8-0823_daily_bin1018.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/754039/ft2_4FGL_J2320.8-0823_daily_bin1018.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/754039/ft1_4FGL_J2320.8-0823_daily_bin1018.fits outfile=/scratch/kocevski/754039/ft1_filteredMKT_4FGL_J2320.8-0823_daily_bin1018.fits ra=350.223 dec=-8.3918 rad=12.0 tmin=503193601.0 tmax=503452801.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.17
user 4.85
sys 0.25

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/754039/ft1_filtered_4FGL_J2320.8-0823_daily_bin1018.fits evtable="EVENTS" scfile=/scratch/kocevski/754039/ft2_4FGL_J2320.8-0823_daily_bin1018.fits sctable="SC_DATA" expcube=/scratch/kocevski/754039/ltcube_503193601_503452801_4FGL_J2320.8-0823_daily_bin1018.fits outfile=/scratch/kocevski/754039/expmap_503193601_503452801_4FGL_J2320.8-0823_daily_bin1018.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/754039/ltcube_503193601_503452801_4FGL_J2320.8-0823_daily_bin1018.fits
.....................!
real 190.69
user 184.82
sys 5.35

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/754039/ft1_filtered_4FGL_J2320.8-0823_daily_bin1018.fits scfile=/scratch/kocevski/754039/ft2_4FGL_J2320.8-0823_daily_bin1018.fits outfile=/scratch/kocevski/754039/cmap_503193601_503452801_4FGL_J2320.8-0823_daily_bin1018.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.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/754039/ft1_filtered_4FGL_J2320.8-0823_daily_bin1018.fits scfile=/scratch/kocevski/754039/ft2_4FGL_J2320.8-0823_daily_bin1018.fits outfile=/scratch/kocevski/754039/cmap_HighResolution_503193601_503452801_4FGL_J2320.8-0823_daily_bin1018.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.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/754039/ft1_filtered_4FGL_J2320.8-0823_daily_bin1018.fits evtable="EVENTS" scfile=/scratch/kocevski/754039/ft2_4FGL_J2320.8-0823_daily_bin1018.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/754039/Model_4FGL_J2320.8-0823_daily_bin1018.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/754039/ft1_filtered_4FGL_J2320.8-0823_daily_bin1018.fits.....................!
real 48.74
user 47.34
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.4877       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    43.006       1.0000         .10000E-03   10000.    
     5 'norm      '    13.467       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .97613       1.0000         .10000E-03   10000.    
     7 'Prefactor '    20.594       1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.3159       1.0000         .10000E-03   10000.    
     9 'norm      '    15.143       1.0000         .10000E-03   10000.    
    10 'Prefactor '    15.805       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10147E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .48530       1.0000         .10000E-03   10000.    
    15 'norm      '    7.8641       1.0000         .10000E-03   10000.    
    16 'Prefactor '    90.276       1.0000         .10000E-03   10000.    
    17 'Prefactor '    36.057       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .16225E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    12.877       1.0000         .10000E-03   10000.    
    21 'norm      '    .10239E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    6.3662       1.0000         .10000E-03   10000.    
    24 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .14552E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .83856       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .79956       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=   5173.134     FROM MIGRAD    STATUS=CONVERGED    144 CALLS     3135 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.4860        1.2449       -.55739E-06    .13470E-02
   2  Prefactor     .10244E-03    19.662       -.10681E-04** at limit **
   3  Prefactor     .10152E-03    26.169       -.68947E-05** at limit **
   4  Prefactor     43.261        53.775        .26808E-04   -.39361E-02
   5  norm          13.467        4.7975       -.41592E-05    .73735E-03
   6  Prefactor     .32382        6190.1       -.98891E-04   -.24389E-03
   7  Prefactor     20.614        3.5359        .43558E-06   -.26440E-02
   8  Prefactor     7.3197        1.2714       -.17186E-06   -.19923E-02
   9  norm          15.142        1.1123       -.18886E-07    .48774E-03
  10  Prefactor     15.815        8.9890        .58664E-05    .14641E-01
  11  Prefactor     .10086E-03    29.700       -.59223E-05** at limit **
  12  Prefactor     .10000E-03    9.3272       -.33546E-05** at limit **
  13  Prefactor     .10000E-03    10.849       -.27431E-04** at limit **
  14  norm          .48595        .98773       -.46577E-06   -.18578E-04
  15  norm          7.8629        6.3778       -.49039E-05    .69062E-03
  16  Prefactor     90.273        1.4130       -.33691E-06    .93904E-03
  17  Prefactor     36.049        6.3173       -.30260E-05   -.28890E-02
  18  Prefactor     .10000E-03    11.050        .11866E-04** at limit **
  19  Prefactor     .29341E-03    135.20       -.69410E-04** at limit **
  20  Prefactor     12.870        1.2378       -.49393E-07    .17656E-03
  21  norm          .10103E-03    23.534       -.78292E-05** at limit **
  22  Prefactor     .10015E-03    22.750        .10347E-04** at limit **
  23  Prefactor     6.3668        5.0576       -.90181E-06   -.88012E-04
  24  norm          .10000E-03    .22850        .11539E-05** at limit **
  25  norm          .10000E-03    2.2366       -.34541E-05** at limit **
  26  Prefactor     .10000E-03    7.9942       -.53332E-05** at limit **
  27  Prefactor     .10000E-03    15.601        .57629E-05** at limit **
  28  Normalizat    .83826        .23793        .52537E-05    .29180E-04
  29  Prefactor     .79977        .18948       -.28923E-05    .21252E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.486
  Prefactor  = 0.000102439
  Prefactor  = 0.000101523
  Prefactor  = 43.2609
  norm       = 13.4673
  Prefactor  = 0.323822
  Prefactor  = 20.6143
  Prefactor  = 7.31968
  norm       = 15.1418
  Prefactor  = 15.8152
  Prefactor  = 0.000100858
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  norm       = 0.485947
  norm       = 7.86294
  Prefactor  = 90.2727
  Prefactor  = 36.0492
  Prefactor  = 0.000100003
  Prefactor  = 0.000293407
  Prefactor  = 12.8704
  norm       = 0.000101031
  Prefactor  = 0.000100148
  Prefactor  = 6.36678
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.838256
  Prefactor  = 0.799766
 **********
 **   18 **HESSE 
 **********

 FCN=   5173.134     FROM HESSE     STATUS=OK           623 CALLS     3758 TOTAL
                     EDM=   .12E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.4860        7.5058        .39391E-02   -1.5199    
   2  Prefactor     .10244E-03    38.553        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10152E-03    30.900        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     43.261        58.855        .15283E-02   -1.4392    
   5  norm          13.467        4.8578        .27287E-02   -1.4974    
   6  Prefactor     .32382        89.979        .14032       -1.5594    
   7  Prefactor     20.614        13.563        .22065E-02   -1.4800    
   8  Prefactor     7.3197        8.5755        .37072E-02   -1.5167    
   9  norm          15.142        14.956        .25731E-02   -1.4930    
  10  Prefactor     15.815        21.666        .25186E-02   -1.4912    
  11  Prefactor     .10086E-03    40.764        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    9.3312        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    10.760        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .48595        1.0451        .11211E-01   -1.5569    
  15  norm          7.8629        6.4332        .35746E-02   -1.5147    
  16  Prefactor     90.273        67.123        .10573E-02   -1.3805    
  17  Prefactor     36.049        43.795        .16685E-02   -1.4506    
  18  Prefactor     .10000E-03    11.078        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .29341E-03    1125.3        .90712E-02   -1.5705    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     12.870        14.401        .27906E-02   -1.4990    
  21  norm          .10103E-03    25.982        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10015E-03    23.097        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     6.3668        5.3701        .39770E-02   -1.5203    
  24  norm          .10000E-03    .19214        .14548E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    2.2024        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    7.9800        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    15.040        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .83826        .20898        .65074E-01   -.98665    
  29  Prefactor     .79977        .16375        .43712E-01   -.99737    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.15126e-06
Minuit parameter uncertainties:
  1  7.50687
  2  0.0194054
  3  0.0137278
  4  58.9338
  5  4.85795
  6  10.8105
  7  13.5648
  8  8.57696
  9  14.9597
  10  21.6772
  11  0.0118348
  12  2.04765e-05
  13  0.000404357
  14  1.0451
  15  6.43378
  16  67.1799
  17  43.8343
  18  0.000377181
  19  0.951497
  20  14.4048
  21  0.010354
  22  0.00370085
  23  5.37048
  24  2.19593e-07
  25  4.344e-06
  26  1.88353e-05
  27  8.01617e-05
  28  0.209181
  29  0.163852
Done.

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

Extracting fit parameters...

4FGL J2320.8-0823
   Spectrum: PowerLaw
360    Prefactor:  1.009e-04  1.183e-02  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:  7.998e-01  1.639e-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.383e-01  2.092e-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: 9.45e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.41e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/754039/likelihoodResults_503193601_503452801_4FGL_J2320.8-0823_daily_bin1018.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) = 5173.13394283
delta logL = -0.000116483331112

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5173.13382672
delta logL = -3.78348886443e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.1036       1.0000          .0000       10.000    
     3 'Normalizat'    .83825       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79977       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=   5173.134     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      278 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10254E-03    25.543        .18142E-01** at limit **
   2  Index         3.0231        7.0426        .50000        .60182E-05
   3  Normalizat    .83826        .44617E-02    .28786E-03    .17614E-04
   4  Prefactor     .79977        .35919E-02    .23511E-03    .13153E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102539
  Index      = 3.02309
  Normalizat = 0.838256
  Prefactor  = 0.799766
 **********
 **   18 **HESSE 
 **********

 FCN=   5173.134     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      307 TOTAL
                     EDM=   .73E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10254E-03    151.24        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.0231        8.4859        .50000       -.40648    
   3  Normalizat    .83826        .10795E-01    .11515E-04   -.98665    
   4  Prefactor     .79977        .86908E-02    .94044E-05   -.99737    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.27195e-10
Minuit parameter uncertainties:
  1  0.0392904
  2  452.41
  3  0.0107952
  4  0.00869084
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/754039': 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) = 5173.13382665
delta logL = -3.02248736261e-07

Extracting fit parameters...

4FGL J2320.8-0823
   Spectrum: PowerLaw
360    Prefactor:  1.025e-04  3.929e-02  1.000e-04  1.000e+04 ( 1.000e-13)
361        Index:  3.023e+00  4.524e+02  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:  7.998e-01  8.691e-03  0.000e+00  1.000e+01 ( 1.000e+00)
522        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
523        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
520   Normalization:  8.383e-01  1.080e-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/754039/cmap_HighResolution_503193601_503452801_4FGL_J2320.8-0823_daily_bin1018.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.41e-03', job_status='DONE', photon_flux_upper_limit='9.45e-08', time_completed='2021-09-29 11:56:42.084220', job_id='754039', GAL2='0.80', fit_tolerance='1e-08', EG2='0.84', EG='0.84', time_epoch_completed='1632941802.08', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.80', dlogl='-3.02e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.65' WHERE bin_id='1018' AND source_name='4FGL J2320.8-0823' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 11:56:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0037>
Subject: Job 754039: <4FGL_J2320.8-0823_daily_bin1018> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2320.8-0823_daily_bin1018 350.223 -8.3918 503193601 503452801 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 :                                   660.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             259.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   951 sec.
    Turnaround time :                            953 sec.

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

