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


Performing analysis on: 4FGL_J2323.5-0317_daily_bin232
RA = 350.888, Dec = -3.29
tmin = 299462401, tmax = 299721601
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='808193', job_status='RUN', time_executed='2021-09-29 14:25:50.178764', time_epoch_executed='1632950750.18' WHERE source_name='4FGL J2323.5-0317' and cadence='daily' and bin_id='232'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/808193

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

Retrieving the FT1 file...

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

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

Retrieving 44 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/808193/ft1_4FGL_J2323.5-0317_daily_bin232.fits


Retrieving the FT1 file...

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

Retrieving 44 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/808193/ft2_4FGL_J2323.5-0317_daily_bin232.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/808193/ft1_4FGL_J2323.5-0317_daily_bin232.fits outfile=/scratch/kocevski/808193/ft1_filteredMKT_4FGL_J2323.5-0317_daily_bin232.fits ra=350.888 dec=-3.29 rad=12.0 tmin=299462401.0 tmax=299721601.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.22
user 3.00
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/808193/ft2_4FGL_J2323.5-0317_daily_bin232.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/808193/ft1_filteredMKT_4FGL_J2323.5-0317_daily_bin232.fits evtable="EVENTS" outfile="/scratch/kocevski/808193/ft1_filtered_4FGL_J2323.5-0317_daily_bin232.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.48
user 0.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/808193/ft1_filtered_4FGL_J2323.5-0317_daily_bin232.fits" evtable="EVENTS" scfile=/scratch/kocevski/808193/ft2_4FGL_J2323.5-0317_daily_bin232.fits sctable="SC_DATA" outfile=/scratch/kocevski/808193/ltcube_299462401_299721601_4FGL_J2323.5-0317_daily_bin232.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/808193/ft2_4FGL_J2323.5-0317_daily_bin232.fits
.....................!
real 11.14
user 10.81
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/808193/ft1_filtered_4FGL_J2323.5-0317_daily_bin232.fits evtable="EVENTS" scfile=/scratch/kocevski/808193/ft2_4FGL_J2323.5-0317_daily_bin232.fits sctable="SC_DATA" expcube=/scratch/kocevski/808193/ltcube_299462401_299721601_4FGL_J2323.5-0317_daily_bin232.fits outfile=/scratch/kocevski/808193/expmap_299462401_299721601_4FGL_J2323.5-0317_daily_bin232.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/808193/ltcube_299462401_299721601_4FGL_J2323.5-0317_daily_bin232.fits
.....................!
real 190.14
user 185.71
sys 4.11

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/808193/ft1_filtered_4FGL_J2323.5-0317_daily_bin232.fits scfile=/scratch/kocevski/808193/ft2_4FGL_J2323.5-0317_daily_bin232.fits outfile=/scratch/kocevski/808193/cmap_299462401_299721601_4FGL_J2323.5-0317_daily_bin232.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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/808193/ft1_filtered_4FGL_J2323.5-0317_daily_bin232.fits scfile=/scratch/kocevski/808193/ft2_4FGL_J2323.5-0317_daily_bin232.fits outfile=/scratch/kocevski/808193/cmap_HighResolution_299462401_299721601_4FGL_J2323.5-0317_daily_bin232.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.51
user 0.37
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/808193/ft1_filtered_4FGL_J2323.5-0317_daily_bin232.fits evtable="EVENTS" scfile=/scratch/kocevski/808193/ft2_4FGL_J2323.5-0317_daily_bin232.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/808193/Model_4FGL_J2323.5-0317_daily_bin232.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/808193/ft1_filtered_4FGL_J2323.5-0317_daily_bin232.fits.....................!
real 53.67
user 52.41
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.3063       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .11292E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    11.301       1.0000         .10000E-03   10000.    
     5 'norm      '    8.1096       1.0000         .10000E-03   10000.    
     6 'Prefactor '    24.196       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    17.513       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .34565E-02   1.0000         .10000E-03   10000.    
    10 'norm      '    1.4351       1.0000         .10000E-03   10000.    
    11 'norm      '    2.1829       1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.9017       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    62.581       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .31556E-01   1.0000         .10000E-03   10000.    
    16 'Prefactor '    50.797       1.0000         .10000E-03   10000.    
    17 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10226E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.3889       1.0000         .10000E-03   10000.    
    20 'Prefactor '    6.5912       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    6.1517       1.0000         .10000E-03   10000.    
    23 'Prefactor '    4.3396       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .87642       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .88098       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=   5785.478     FROM MIGRAD    STATUS=CONVERGED    622 CALLS     2976 TOTAL
                     EDM=   .22E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.2995        10.187       -.16374E-06    .19279E-04
   2  Prefactor     .10000E-03    137.78       -.10925E-06** at limit **
   3  Prefactor     .10000E-03    17.015       -.86518E-07** at limit **
   4  Prefactor     11.300        9.4819        .36122E-08   -.16191E-05
   5  norm          8.1091        8.2218       -.28120E-06   -.48941E-05
   6  Prefactor     24.193        36.252       -.35189E-06    .47474E-05
   7  Prefactor     .10000E-03    4.4780       -.53481E-07** at limit **
   8  Prefactor     17.475        44.180       -.14785E-05   -.87364E-04
   9  Prefactor     .10010E-03    8.9183       -.57718E-06** at limit **
  10  norm          1.4353        .88823        .12366E-07   -.12217E-03
  11  norm          2.1812        6.6166        .44793E-05   -.66490E-04
  12  Prefactor     3.9010        8.5426       -.23597E-06   -.24592E-05
  13  Prefactor     .10000E-03    17.482       -.11408E-06** at limit **
  14  Prefactor     62.680        159.85       -.12988E-04   -.72345E-05
  15  Prefactor     .26753E-03    6.1893       -.62644E-06** at limit **
  16  Prefactor     50.797        29.095       -.17909E-06    .38530E-05
  17  norm          .10000E-03    8.0187        .31125E-07** at limit **
  18  Prefactor     .10000E-03    83.530       -.45710E-06** at limit **
  19  Prefactor     2.3911        2.3166        .80624E-07   -.46126E-04
  20  Prefactor     6.6068        33.864        .21438E-05   -.52919E-05
  21  Prefactor     .10000E-03    11.190       -.13499E-06** at limit **
  22  Prefactor     6.1513        15.919       -.11217E-06   -.60714E-05
  23  Prefactor     4.3391        8.9006        .70251E-06    .24789E-04
  24  Normalizat    .87641        .19366       -.59731E-06   -.92916E-04
  25  Prefactor     .88106        .13628        .77751E-06   -.26851E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.2995
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.3001
  norm       = 8.10913
  Prefactor  = 24.1927
  Prefactor  = 0.0001
  Prefactor  = 17.4752
  Prefactor  = 0.000100103
  norm       = 1.43535
  norm       = 2.18122
  Prefactor  = 3.90097
  Prefactor  = 0.0001
  Prefactor  = 62.6804
  Prefactor  = 0.000267526
  Prefactor  = 50.7968
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.39106
  Prefactor  = 6.60682
  Prefactor  = 0.0001
  Prefactor  = 6.15133
  Prefactor  = 4.33914
  Normalizat = 0.876406
  Prefactor  = 0.881062
 **********
 **   18 **HESSE 
 **********

 FCN=   5785.478     FROM HESSE     STATUS=OK           445 CALLS     3421 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.2995        10.143        .13910E-03   -1.5132    
   2  Prefactor     .10000E-03    139.83        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    17.138        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     11.300        9.4855        .11917E-03   -1.5036    
   5  norm          8.1091        8.2226        .14079E-03   -1.5138    
   6  Prefactor     24.193        36.263        .81434E-04   -1.4724    
   7  Prefactor     .10000E-03    4.4808        .15720E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     17.475        45.114        .95707E-04   -1.4872    
   9  Prefactor     .10010E-03    54.525        .38480E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.4353        .87727        .52927E-04   -1.5468    
  11  norm          2.1812        6.6525        .13931E-02   -1.5413    
  12  Prefactor     3.9010        8.5239        .20426E-03   -1.5313    
  13  Prefactor     .10000E-03    17.491        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     62.680        162.21        .25362E-03   -1.4123    
  15  Prefactor     .26753E-03    12.313        .56196E-01   -1.5705    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     50.797        29.070        .56269E-04   -1.4281    
  17  norm          .10000E-03    8.0256        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    83.846        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     2.3911        2.3274        .10867E-03   -1.5399    
  20  Prefactor     6.6068        33.721        .15631E-03   -1.5194    
  21  Prefactor     .10000E-03    11.214        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     6.1513        15.919        .16186E-03   -1.5212    
  23  Prefactor     4.3391        8.8681        .96682E-03   -1.5291    
  24  Normalizat    .87641        .22303        .26947E-03   -.97294    
  25  Prefactor     .88106        .15899        .20145E-03   -.96806    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.15713e-09
Minuit parameter uncertainties:
  1  10.1451
  2  0.00040237
  3  2.30398e-05
  4  9.48677
  5  8.22374
  6  36.296
  7  5.33778e-06
  8  45.2019
  9  0.00474546
  10  0.877281
  11  6.6547
  12  8.52656
  13  2.12447e-05
  14  163.375
  15  0.090853
  16  29.0782
  17  1.78016e-05
  18  0.000195968
  19  2.32751
  20  29.8786
  21  2.86116e-05
  22  15.9298
  23  8.87081
  24  0.223269
  25  0.15907
Done.

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

Extracting fit parameters...

4FGL J2323.5-0317
   Spectrum: LogParabola
373         norm:  1.435e+00  8.773e-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:  8.811e-01  1.591e-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.764e-01  2.233e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.38
Ra Dec: 350.888 -3.290
Photon Index (Fixed Index): 2.16 +/- 0.00
Photon Flux (Fixed Index): 5.56e-08 +/- 3.39e-08
Energy Flux (Fixed Index): 2.28e-05 +/- 1.39e-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) = 5785.41340798
delta logL = 0.064429845319

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5785.4115675
delta logL = 0.0662703234439

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.4662       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9374       1.0000          .0000       5.0000    
     3 'Normalizat'    .88836       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87502       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=   5785.412     FROM MIGRAD    STATUS=CONVERGED     80 CALLS      234 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.4662        .88959        .54234E-04   -.13955E-02
   2  alpha         1.9374        .58283        .14092E-01   -.36361E-04
   3  Normalizat    .88836        .20862        .26787E-03   -.14684E-04
   4  Prefactor     .87502        .15617        .20205E-03    .64368E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.46624
  alpha      = 1.93737
  Normalizat = 0.88836
  Prefactor  = 0.875021
 **********
 **   18 **HESSE 
 **********

 FCN=   5785.412     FROM HESSE     STATUS=OK            25 CALLS      259 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.4662        .89233        .21694E-05   -1.5466    
   2  alpha         1.9374        .58452        .56366E-03   -.22700    
   3  Normalizat    .88836        .20879        .10715E-04   -.96870    
   4  Prefactor     .87502        .15628        .80821E-05   -.97019    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.06614e-10
Minuit parameter uncertainties:
  1  0.89234
  2  0.590285
  3  0.208985
  4  0.156362
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/808193': 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) = 5785.4115675
delta logL = 0.0662703239504

Extracting fit parameters...

4FGL J2323.5-0317
   Spectrum: LogParabola
373         norm:  1.466e+00  8.923e-01  1.000e-04  1.000e+04 ( 1.000e-11)
374        alpha:  1.937e+00  5.903e-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:  8.750e-01  1.564e-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.884e-01  2.090e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.52
Ra Dec: 350.888 -3.290
Photon Index (Free Index): 1.94 +/- 0.59
Photon Flux (Free Index): 4.69e-08 +/- 3.75e-08
Energy Flux (Free Index): 2.68e-05 +/- 2.06e-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/808193/cmap_HighResolution_299462401_299721601_4FGL_J2323.5-0317_daily_bin232.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.56e-08', energy_flux2='2.68e-05', photon_flux_error='3.39e-08', dlogl='6.63e-02', energy_flux='2.28e-05', photon_flux2='4.69e-08', job_status='DONE', time_completed='2021-09-29 14:36:05.826801', photon_index_error2='0.59', photon_index2='1.94', ts='5.38', fit_tolerance='1e-08', GAL='0.88', photon_index_error='0.00', energy_flux_error2='2.06e-05', EG='0.88', time_epoch_completed='1632951365.83', return_code='0', job_id='808193', GAL2='0.88', EG2='0.89', return_code2='0', energy_flux_error='1.39e-05', photon_flux_error2='3.75e-08', ts2='5.52', photon_index='2.16' WHERE bin_id='232' AND source_name='4FGL J2323.5-0317' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 14:36:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0297>
Subject: Job 808193: <4FGL_J2323.5-0317_daily_bin232> in cluster <slac> Done

Job <4FGL_J2323.5-0317_daily_bin232> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 14:25:18 2021
Job was executed on host(s) <bullet0297>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 14:25:19 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:25:19 2021
Terminated at Wed Sep 29 14:36:06 2021
Results reported at Wed Sep 29 14:36:06 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2323.5-0317_daily_bin232 350.888 -3.29 299462401 299721601 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 :                                   576.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             310.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   647 sec.
    Turnaround time :                            648 sec.

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

