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


Performing analysis on: 4FGL_J2323.5-0317_daily_bin629
RA = 350.888, Dec = -3.29
tmin = 402364801, tmax = 402624001
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='809635', job_status='RUN', time_executed='2021-09-29 14:32:46.506164', time_epoch_executed='1632951166.51' WHERE source_name='4FGL J2323.5-0317' and cadence='daily' and bin_id='629'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/809635

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

Retrieving the FT1 file...

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

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

Retrieving 50 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/809635/ft1_4FGL_J2323.5-0317_daily_bin629.fits


Retrieving the FT1 file...

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

Retrieving 50 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/809635/ft2_4FGL_J2323.5-0317_daily_bin629.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/809635/ft1_4FGL_J2323.5-0317_daily_bin629.fits outfile=/scratch/kocevski/809635/ft1_filteredMKT_4FGL_J2323.5-0317_daily_bin629.fits ra=350.888 dec=-3.29 rad=12.0 tmin=402364801.0 tmax=402624001.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.51
user 3.29
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/809635/ft2_4FGL_J2323.5-0317_daily_bin629.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/809635/ft1_filteredMKT_4FGL_J2323.5-0317_daily_bin629.fits evtable="EVENTS" outfile="/scratch/kocevski/809635/ft1_filtered_4FGL_J2323.5-0317_daily_bin629.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.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/809635/ft1_filtered_4FGL_J2323.5-0317_daily_bin629.fits" evtable="EVENTS" scfile=/scratch/kocevski/809635/ft2_4FGL_J2323.5-0317_daily_bin629.fits sctable="SC_DATA" outfile=/scratch/kocevski/809635/ltcube_402364801_402624001_4FGL_J2323.5-0317_daily_bin629.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/809635/ft2_4FGL_J2323.5-0317_daily_bin629.fits
.....................!
real 12.03
user 11.65
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/809635/ft1_filtered_4FGL_J2323.5-0317_daily_bin629.fits evtable="EVENTS" scfile=/scratch/kocevski/809635/ft2_4FGL_J2323.5-0317_daily_bin629.fits sctable="SC_DATA" expcube=/scratch/kocevski/809635/ltcube_402364801_402624001_4FGL_J2323.5-0317_daily_bin629.fits outfile=/scratch/kocevski/809635/expmap_402364801_402624001_4FGL_J2323.5-0317_daily_bin629.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/809635/ltcube_402364801_402624001_4FGL_J2323.5-0317_daily_bin629.fits
.....................!
real 190.99
user 186.18
sys 4.48

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/809635/ft1_filtered_4FGL_J2323.5-0317_daily_bin629.fits scfile=/scratch/kocevski/809635/ft2_4FGL_J2323.5-0317_daily_bin629.fits outfile=/scratch/kocevski/809635/cmap_402364801_402624001_4FGL_J2323.5-0317_daily_bin629.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/809635/ft1_filtered_4FGL_J2323.5-0317_daily_bin629.fits scfile=/scratch/kocevski/809635/ft2_4FGL_J2323.5-0317_daily_bin629.fits outfile=/scratch/kocevski/809635/cmap_HighResolution_402364801_402624001_4FGL_J2323.5-0317_daily_bin629.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.54
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/809635/ft1_filtered_4FGL_J2323.5-0317_daily_bin629.fits evtable="EVENTS" scfile=/scratch/kocevski/809635/ft2_4FGL_J2323.5-0317_daily_bin629.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/809635/Model_4FGL_J2323.5-0317_daily_bin629.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/809635/ft1_filtered_4FGL_J2323.5-0317_daily_bin629.fits.....................!
real 54.83
user 53.52
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/809635/ft1_filtered_4FGL_J2323.5-0317_daily_bin629.fits', '/scratch/kocevski/809635/ft2_4FGL_J2323.5-0317_daily_bin629.fits', expMap='/scratch/kocevski/809635/expmap_402364801_402624001_4FGL_J2323.5-0317_daily_bin629.fits', expCube='/scratch/kocevski/809635/ltcube_402364801_402624001_4FGL_J2323.5-0317_daily_bin629.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/809635/Model_4FGL_J2323.5-0317_daily_bin629.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/809635/ft1_filtered_4FGL_J2323.5-0317_daily_bin629.fits
Spacecraft file(s): /scratch/kocevski/809635/ft2_4FGL_J2323.5-0317_daily_bin629.fits
Exposure map: /scratch/kocevski/809635/expmap_402364801_402624001_4FGL_J2323.5-0317_daily_bin629.fits
Exposure cube: /scratch/kocevski/809635/ltcube_402364801_402624001_4FGL_J2323.5-0317_daily_bin629.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/809635/Model_4FGL_J2323.5-0317_daily_bin629.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) = 5560.85295705

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.452       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.7632       1.0000         .10000E-03   10000.    
     5 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    33.418       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.0823       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    1.0702       1.0000         .10000E-03   10000.    
    11 'norm      '    2.0928       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    130.12       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .12354E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    15.155       1.0000         .10000E-03   10000.    
    17 'norm      '    .10091E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    34.877       1.0000         .10000E-03   10000.    
    19 'Prefactor '    8.5649       1.0000         .10000E-03   10000.    
    20 'Prefactor '    19.572       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10128E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .11596E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0486       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .67557       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.

 FCN=   5560.851     FROM MIGRAD    STATUS=CONVERGED    569 CALLS     2871 TOTAL
                     EDM=   .28E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.453        10.702       -.26969E-06   -.19276E-03
   2  Prefactor     .10000E-03    36.706        .13738E-04** at limit **
   3  Prefactor     .10000E-03    8.7137        .11078E-05** at limit **
   4  Prefactor     3.7636        6.5675       -.50698E-06   -.20359E-03
   5  norm          .10000E-03    4.1542       -.28513E-07** at limit **
   6  Prefactor     33.420        33.244        .11795E-05    .54803E-05
   7  Prefactor     .10000E-03    10.696       -.24715E-05** at limit **
   8  Prefactor     3.0804        44.084       -.23104E-05   -.40663E-04
   9  Prefactor     .10000E-03    2.5672       -.22436E-07** at limit **
  10  norm          1.0705        .74431        .47769E-06    .10023E-02
  11  norm          2.0927        3.0436       -.60244E-08   -.13817E-03
  12  Prefactor     .10000E-03    5.5446       -.19148E-06** at limit **
  13  Prefactor     .10000E-03    32.073       -.57249E-05** at limit **
  14  Prefactor     130.01        185.73       -.97689E-04    .15896E-04
  15  Prefactor     .10000E-03    20.243       -.75174E-05** at limit **
  16  Prefactor     15.153        27.305       -.10534E-05    .12438E-04
  17  norm          .10000E-03    15.230        .40546E-05** at limit **
  18  Prefactor     34.879        42.475        .14591E-05   -.13766E-04
  19  Prefactor     8.5627        5.0052        .53574E-05    .22047E-03
  20  Prefactor     19.565        25.703       -.30322E-05    .25120E-04
  21  Prefactor     .10000E-03    69.116       -.73187E-05** at limit **
  22  Prefactor     .10000E-03    4.4674       -.22658E-06** at limit **
  23  Prefactor     .10001E-03    5.8084        .80927E-06** at limit **
  24  Normalizat    1.0486        .18351       -.20854E-05    .13748E-03
  25  Prefactor     .67551        .12888        .23602E-05   -.92957E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.4534
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.76357
  norm       = 0.0001
  Prefactor  = 33.4204
  Prefactor  = 0.0001
  Prefactor  = 3.08035
  Prefactor  = 0.0001
  norm       = 1.07046
  norm       = 2.09272
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 130.008
  Prefactor  = 0.000100001
  Prefactor  = 15.1531
  norm       = 0.0001
  Prefactor  = 34.8787
  Prefactor  = 8.56266
  Prefactor  = 19.565
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.00010001
  Normalizat = 1.04863
  Prefactor  = 0.675508
 **********
 **   18 **HESSE 
 **********

 FCN=   5560.851     FROM HESSE     STATUS=OK           425 CALLS     3296 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.453        10.550        .10921E-03   -1.4974    
   2  Prefactor     .10000E-03    36.731        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    8.7193        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     3.7636        6.5560        .20812E-03   -1.5320    
   5  norm          .10000E-03    4.1652        .14842E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     33.420        33.250        .69318E-04   -1.4551    
   7  Prefactor     .10000E-03    10.762        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     3.0804        43.953        .23102E-03   -1.5357    
   9  Prefactor     .10000E-03    2.5675        .11651E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.0705        .74397        .51018E-04   -1.5501    
  11  norm          2.0927        3.0232        .15196E-03   -1.5419    
  12  Prefactor     .10000E-03    5.5686        .17145E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    32.135        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     130.01        185.22        .17648E-03   -1.3423    
  15  Prefactor     .10000E-03    20.588        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     15.153        27.313        .10288E-03   -1.4929    
  17  norm          .10000E-03    15.274        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     34.879        42.531        .67857E-04   -1.4526    
  19  Prefactor     8.5627        5.0066        .11752E-03   -1.5123    
  20  Prefactor     19.565        25.697        .90534E-04   -1.4823    
  21  Prefactor     .10000E-03    70.269        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    4.4715        .15393E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10001E-03    17.709        .34078E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.0486        .20929        .24265E-03   -.91419    
  25  Prefactor     .67551        .14771        .21266E-03   -1.0449    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.00135e-09
Minuit parameter uncertainties:
  1  10.5516
  2  2.80072e-05
  3  1.63739e-06
  4  6.55723
  5  1.94446e-06
  6  33.2688
  7  4.24204e-06
  8  23.2919
  9  4.69879e-06
  10  0.743974
  11  3.02346
  12  1.11218e-07
  13  2.0462e-05
  14  186.06
  15  0.000257865
  16  27.3359
  17  5.18896e-05
  18  42.5675
  19  5.00687
  20  25.7113
  21  9.26244e-05
  22  1.00265e-05
  23  0.000849088
  24  0.20945
  25  0.147797
Done.

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

Extracting fit parameters...

4FGL J2323.5-0317
   Spectrum: LogParabola
373         norm:  1.070e+00  7.440e-01  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:  6.755e-01  1.478e-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:  1.049e+00  2.095e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.26
Ra Dec: 350.888 -3.290
Photon Index (Fixed Index): 2.16 +/- 0.00
Photon Flux (Fixed Index): 4.14e-08 +/- 2.88e-08
Energy Flux (Fixed Index): 1.70e-05 +/- 1.18e-05

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) = 5560.54421787
delta logL = 0.306395690503

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5560.52021472
delta logL = 0.330398842374

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .89928       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6429       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0653       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .67002       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=   5560.520     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      200 TOTAL
                     EDM=   .33E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .89930        .63791        .11176E-01   -.14798E-03
   2  alpha         1.6428        .45690        .36313       -.29169E-04
   3  Normalizat    1.0653        .17658        .39631E-01    .75912E-05
   4  Prefactor     .67003        .12717        .42001E-01    .13679E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.899298
  alpha      = 1.64282
  Normalizat = 1.06529
  Prefactor  = 0.670029
 **********
 **   18 **HESSE 
 **********

 FCN=   5560.520     FROM HESSE     STATUS=OK            33 CALLS      233 TOTAL
                     EDM=   .92E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .89930        .75809        .48685E-04   -1.5518    
   2  alpha         1.6428        .60265        .14192E-01   -.34997    
   3  Normalizat    1.0653        .20169        .24105E-03   -.90874    
   4  Prefactor     .67003        .14521        .21350E-03   -1.0471    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.19868e-10
Minuit parameter uncertainties:
  1  0.758102
  2  0.609465
  3  0.201831
  4  0.14529
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/809635': 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) = 5560.5202147
delta logL = 0.33039885834

Extracting fit parameters...

4FGL J2323.5-0317
   Spectrum: LogParabola
373         norm:  8.993e-01  7.581e-01  1.000e-04  1.000e+04 ( 1.000e-11)
374        alpha:  1.643e+00  6.095e-01  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:  6.700e-01  1.453e-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:  1.065e+00  2.018e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.94
Ra Dec: 350.888 -3.290
Photon Index (Free Index): 1.64 +/- 0.61
Photon Flux (Free Index): 2.39e-08 +/- 2.44e-08
Energy Flux (Free Index): 2.43e-05 +/- 2.32e-05

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/809635/cmap_HighResolution_402364801_402624001_4FGL_J2323.5-0317_daily_bin629.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.14e-08', energy_flux2='2.43e-05', photon_flux_error='2.88e-08', dlogl='3.30e-01', energy_flux='1.70e-05', photon_flux2='2.39e-08', job_status='DONE', time_completed='2021-09-29 14:42:10.173736', photon_index_error2='0.61', photon_index2='1.64', ts='6.26', fit_tolerance='1e-08', GAL='0.68', photon_index_error='0.00', energy_flux_error2='2.32e-05', EG='1.05', time_epoch_completed='1632951730.17', return_code='0', job_id='809635', GAL2='0.67', EG2='1.07', return_code2='0', energy_flux_error='1.18e-05', photon_flux_error2='2.44e-08', ts2='6.94', photon_index='2.16' WHERE bin_id='629' AND source_name='4FGL J2323.5-0317' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 14:42:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0258>
Subject: Job 809635: <4FGL_J2323.5-0317_daily_bin629> in cluster <slac> Done

Job <4FGL_J2323.5-0317_daily_bin629> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Wed Sep 29 14:30:38 2021
Job was executed on host(s) <bullet0258>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 14:30:40 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:40 2021
Terminated at Wed Sep 29 14:42:10 2021
Results reported at Wed Sep 29 14:42:10 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2323.5-0317_daily_bin629 350.888 -3.29 402364801 402624001 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 :                                   562.09 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             282.42 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   690 sec.
    Turnaround time :                            692 sec.

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

