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


Performing analysis on: 4FGL_J2323.5-0317_daily_bin643
RA = 350.888, Dec = -3.29
tmin = 405993601, tmax = 406252801
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='809655', job_status='RUN', time_executed='2021-09-29 14:34:27.979147', time_epoch_executed='1632951267.98' WHERE source_name='4FGL J2323.5-0317' and cadence='daily' and bin_id='643'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/809655

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/809655/ft1_4FGL_J2323.5-0317_daily_bin643.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/809655/ft2_4FGL_J2323.5-0317_daily_bin643.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/809655/ft1_4FGL_J2323.5-0317_daily_bin643.fits outfile=/scratch/kocevski/809655/ft1_filteredMKT_4FGL_J2323.5-0317_daily_bin643.fits ra=350.888 dec=-3.29 rad=12.0 tmin=405993601.0 tmax=406252801.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.48
user 3.17
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/809655/ft2_4FGL_J2323.5-0317_daily_bin643.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/809655/ft2_4FGL_J2323.5-0317_daily_bin643.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/809655/ft1_filteredMKT_4FGL_J2323.5-0317_daily_bin643.fits evtable="EVENTS" outfile="/scratch/kocevski/809655/ft1_filtered_4FGL_J2323.5-0317_daily_bin643.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.50
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/809655/ft1_filtered_4FGL_J2323.5-0317_daily_bin643.fits" evtable="EVENTS" scfile=/scratch/kocevski/809655/ft2_4FGL_J2323.5-0317_daily_bin643.fits sctable="SC_DATA" outfile=/scratch/kocevski/809655/ltcube_405993601_406252801_4FGL_J2323.5-0317_daily_bin643.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/809655/ft2_4FGL_J2323.5-0317_daily_bin643.fits
.....................!
real 12.97
user 12.61
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/809655/ft1_filtered_4FGL_J2323.5-0317_daily_bin643.fits evtable="EVENTS" scfile=/scratch/kocevski/809655/ft2_4FGL_J2323.5-0317_daily_bin643.fits sctable="SC_DATA" expcube=/scratch/kocevski/809655/ltcube_405993601_406252801_4FGL_J2323.5-0317_daily_bin643.fits outfile=/scratch/kocevski/809655/expmap_405993601_406252801_4FGL_J2323.5-0317_daily_bin643.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/809655/ltcube_405993601_406252801_4FGL_J2323.5-0317_daily_bin643.fits
.....................!
real 190.36
user 185.66
sys 4.34

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 159 point sources and 0 extended sources

Setting source of interest to:
4FGL J2323.5-0317 @ 350.888 -3.29

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/809655/ft1_filtered_4FGL_J2323.5-0317_daily_bin643.fits scfile=/scratch/kocevski/809655/ft2_4FGL_J2323.5-0317_daily_bin643.fits outfile=/scratch/kocevski/809655/cmap_405993601_406252801_4FGL_J2323.5-0317_daily_bin643.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.888 yref=-3.29 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/809655/ft1_filtered_4FGL_J2323.5-0317_daily_bin643.fits scfile=/scratch/kocevski/809655/ft2_4FGL_J2323.5-0317_daily_bin643.fits outfile=/scratch/kocevski/809655/cmap_HighResolution_405993601_406252801_4FGL_J2323.5-0317_daily_bin643.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.888 yref=-3.29 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.56
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/809655/ft1_filtered_4FGL_J2323.5-0317_daily_bin643.fits evtable="EVENTS" scfile=/scratch/kocevski/809655/ft2_4FGL_J2323.5-0317_daily_bin643.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/809655/Model_4FGL_J2323.5-0317_daily_bin643.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/809655/ft1_filtered_4FGL_J2323.5-0317_daily_bin643.fits.....................!
real 64.16
user 62.86
sys 1.10

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/809655/ft1_filtered_4FGL_J2323.5-0317_daily_bin643.fits', '/scratch/kocevski/809655/ft2_4FGL_J2323.5-0317_daily_bin643.fits', expMap='/scratch/kocevski/809655/expmap_405993601_406252801_4FGL_J2323.5-0317_daily_bin643.fits', expCube='/scratch/kocevski/809655/ltcube_405993601_406252801_4FGL_J2323.5-0317_daily_bin643.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/809655/Model_4FGL_J2323.5-0317_daily_bin643.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2323.5-0317'

4FGL J2323.5-0317
   Spectrum: LogParabola
373         norm:  1.648e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-11)
374        alpha:  2.160e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
375         beta:  9.598e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
376           Eb:  6.247e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/809655/ft1_filtered_4FGL_J2323.5-0317_daily_bin643.fits
Spacecraft file(s): /scratch/kocevski/809655/ft2_4FGL_J2323.5-0317_daily_bin643.fits
Exposure map: /scratch/kocevski/809655/expmap_405993601_406252801_4FGL_J2323.5-0317_daily_bin643.fits
Exposure cube: /scratch/kocevski/809655/ltcube_405993601_406252801_4FGL_J2323.5-0317_daily_bin643.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/809655/Model_4FGL_J2323.5-0317_daily_bin643.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) = 6942.02764862

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .11064E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.1306       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .68604       1.0000         .10000E-03   10000.    
     5 'norm      '    .23637E-02   1.0000         .10000E-03   10000.    
     6 'Prefactor '    10.153       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10418E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10410E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.8197       1.0000         .10000E-03   10000.    
    10 'norm      '    .10036E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    3.0057       1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.3145       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .11063E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    29.393       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .33396       1.0000         .10000E-03   10000.    
    19 'Prefactor '    8.2958       1.0000         .10000E-03   10000.    
    20 'Prefactor '    95.653       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .24372       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .85398       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .90202       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5230E+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=   6942.007     FROM MIGRAD    STATUS=CONVERGED   1070 CALLS     3456 TOTAL
                     EDM=   .72E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.1936        .18142E-02** at limit **
   2  Prefactor     .10000E-03    198.42        .18142E-02** at limit **
   3  Prefactor     4.1301        13.818        .99168E-03    .82656E-05
   4  Prefactor     .68633        5.3057        .37595E-03    .24162E-04
   5  norm          .10021E-03    48.358        .35301E-02** at limit **
   6  Prefactor     10.157        23.885        .12575E-03   -.49723E-05
   7  Prefactor     .10000E-03    26.042        .36285E-03** at limit **
   8  Prefactor     .10000E-03    101.21        .18142E-02** at limit **
   9  Prefactor     2.8280        7.3236        .12111E-02   -.83263E-03
  10  norm          .10000E-03    1.2202        .10857E-02** at limit **
  11  norm          3.0023        3.9410        .16947E-03   -.49910E-03
  12  Prefactor     3.3158        9.2520        .11118E-02    .67888E-04
  13  Prefactor     .10000E-03    14.943        .18142E-02** at limit **
  14  Prefactor     .10000E-03    162.23        .18142E-02** at limit **
  15  Prefactor     .10000E-03    5.9507        .18142E-02** at limit **
  16  Prefactor     .10000E-03    6.2961        .18142E-02** at limit **
  17  norm          29.393        21.450        .73899E-04   -.20461E-04
  18  Prefactor     .46997        50.503        .14970        .82684E-04
  19  Prefactor     8.2935        4.5990        .11726E-03   -.52454E-04
  20  Prefactor     95.670        45.530        .41096E-04   -.52505E-04
  21  Prefactor     .10000E-03    6.9790        .18142E-02** at limit **
  22  Prefactor     .10000E-03    6.7681        .18142E-02** at limit **
  23  Prefactor     .24166        12.250        .29922E-02   -.56333E-03
  24  Normalizat    .85373        .18988        .26260E-03   -.36050E-03
  25  Prefactor     .90210        .13763        .19528E-03   -.38320E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 4.13005
  Prefactor  = 0.686332
  norm       = 0.000100208
  Prefactor  = 10.1568
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 2.828
  norm       = 0.0001
  norm       = 3.00234
  Prefactor  = 3.31583
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 29.3934
  Prefactor  = 0.469966
  Prefactor  = 8.2935
  Prefactor  = 95.6705
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.241658
  Normalizat = 0.853734
  Prefactor  = 0.902096
 **********
 **   18 **HESSE 
 **********

 FCN=   6942.007     FROM HESSE     STATUS=OK           417 CALLS     3873 TOTAL
                     EDM=   .81E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.1984        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    198.57        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     4.1301        13.816        .39667E-04   -1.5301    
   4  Prefactor     .68633        5.3048        .15038E-04   -1.5542    
   5  norm          .10021E-03    49.180        .70602E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     10.157        23.881        .50301E-05   -1.5070    
   7  Prefactor     .10000E-03    26.044        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    101.24        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.8280        7.3005        .48443E-04   -1.5372    
  10  norm          .10000E-03    1.2292        .21714E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          3.0023        3.9336        .67788E-05   -1.5361    
  12  Prefactor     3.3158        9.2494        .44471E-04   -1.5344    
  13  Prefactor     .10000E-03    14.943        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    162.23        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    5.9512        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    6.2964        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          29.393        21.453        .29560E-05   -1.4623    
  18  Prefactor     .46997        51.596        .14771       -1.5571    
  19  Prefactor     8.2935        4.5988        .46902E-05   -1.5132    
  20  Prefactor     95.670        45.521        .82193E-05   -1.3749    
  21  Prefactor     .10000E-03    6.9793        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    6.7689        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .24166        12.352        .11969E-03   -1.5610    
  24  Normalizat    .85373        .18984        .10504E-04   -.98105    
  25  Prefactor     .90210        .13772        .39056E-04   -.96068    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.14044e-09
Minuit parameter uncertainties:
  1  1.07599e-05
  2  0.000681832
  3  13.8265
  4  3.8164
  5  0.00640533
  6  23.9032
  7  3.98749e-05
  8  0.000615853
  9  7.30279
  10  5.77886e-06
  11  3.93398
  12  9.25343
  13  1.97717e-05
  14  0.00140544
  15  3.01837e-05
  16  2.87561e-06
  17  21.4586
  18  9.85617
  19  4.59904
  20  45.5372
  21  1.54394e-05
  22  2.40638e-05
  23  3.45549
  24  0.189992
  25  0.137769
Done.

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

Extracting fit parameters...

4FGL J2323.5-0317
   Spectrum: LogParabola
373         norm:  1.000e-04  5.779e-06  1.000e-04  1.000e+04 ( 1.000e-11)
374        alpha:  2.160e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
375         beta:  9.598e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
376           Eb:  6.247e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
520    Prefactor:  9.021e-01  1.378e-01  0.000e+00  1.000e+01 ( 1.000e+00)
521        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
522        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
519   Normalization:  8.537e-01  1.900e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 350.888 -3.290
Photon Flux Upper Limit: 5.95e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.44e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/809655/likelihoodResults_405993601_406252801_4FGL_J2323.5-0317_daily_bin643.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) = 6942.01051006
delta logL = -0.00397198891096

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6942.00654322
delta logL = -5.14880048286e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .11119E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1928       1.0000          .0000       5.0000    
     3 'Normalizat'    .85392       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90211       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5230E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6942.007     FROM MIGRAD    STATUS=CONVERGED     73 CALLS      229 TOTAL
                     EDM=   .31E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .31247        .23699E-01** at limit **
   2  alpha         2.5909        3.1601        .41551       -.60345E-06
   3  Normalizat    .85373        .44690E-02    .44310E-01    .21533E-03
   4  Prefactor     .90210        .34270E-02    .45032E-01    .33907E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.59093
  Normalizat = 0.853732
  Prefactor  = 0.902097
 **********
 **   18 **HESSE 
 **********

 FCN=   6942.007     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      260 TOTAL
                     EDM=   .34E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    191.02        .81661E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.5909        3.4988        .50000        .36381E-01
   3  Normalizat    .85373        .49635E-01    .26261E-03   -.98106    
   4  Prefactor     .90210        .38094E-01    .19528E-03   -.96068    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.3774e-08
Minuit parameter uncertainties:
  1  0.000409453
  2  842.382
  3  0.0496374
  4  0.0380953
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/809655': 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) = 6942.00652614
delta logL = 1.19292453746e-05

Extracting fit parameters...

4FGL J2323.5-0317
   Spectrum: LogParabola
373         norm:  1.000e-04  4.095e-04  1.000e-04  1.000e+04 ( 1.000e-11)
374        alpha:  2.591e+00  8.424e+02  0.000e+00  5.000e+00 ( 1.000e+00)
375         beta:  9.598e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
376           Eb:  6.247e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
520    Prefactor:  9.021e-01  3.810e-02  0.000e+00  1.000e+01 ( 1.000e+00)
521        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
522        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
519   Normalization:  8.537e-01  4.964e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 350.888 -3.290

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/809655/cmap_HighResolution_405993601_406252801_4FGL_J2323.5-0317_daily_bin643.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.44e-05', job_status='DONE', photon_flux_upper_limit='5.95e-08', time_completed='2021-09-29 14:46:56.739193', job_id='809655', GAL2='0.90', fit_tolerance='1e-08', EG2='0.85', EG='0.85', time_epoch_completed='1632952016.74', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.90', dlogl='1.19e-05', ts2='-0.00', photon_index_error='0.00', photon_index='2.16' WHERE bin_id='643' AND source_name='4FGL J2323.5-0317' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 14:46:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0225>
Subject: Job 809655: <4FGL_J2323.5-0317_daily_bin643> in cluster <slac> Done

Job <4FGL_J2323.5-0317_daily_bin643> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Wed Sep 29 14:30:40 2021
Job was executed on host(s) <bullet0225>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 14:30:42 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 14:30:42 2021
Terminated at Wed Sep 29 14:46:57 2021
Results reported at Wed Sep 29 14:46:57 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2323.5-0317_daily_bin643 350.888 -3.29 405993601 406252801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2323.5-0317 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   748.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             268.03 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   975 sec.
    Turnaround time :                            977 sec.

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

