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


Performing analysis on: 4FGL_J2323.5-0317_daily_bin291
RA = 350.888, Dec = -3.29
tmin = 314755201, tmax = 315014401
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='808282', job_status='RUN', time_executed='2021-09-29 14:26:49.226796', time_epoch_executed='1632950809.23' WHERE source_name='4FGL J2323.5-0317' and cadence='daily' and bin_id='291'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/808282

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/808282/ft1_4FGL_J2323.5-0317_daily_bin291.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/808282/ft2_4FGL_J2323.5-0317_daily_bin291.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/808282/ft1_4FGL_J2323.5-0317_daily_bin291.fits outfile=/scratch/kocevski/808282/ft1_filteredMKT_4FGL_J2323.5-0317_daily_bin291.fits ra=350.888 dec=-3.29 rad=12.0 tmin=314755201.0 tmax=315014401.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.46
user 3.23
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/808282/ft2_4FGL_J2323.5-0317_daily_bin291.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/808282/ft1_filteredMKT_4FGL_J2323.5-0317_daily_bin291.fits evtable="EVENTS" outfile="/scratch/kocevski/808282/ft1_filtered_4FGL_J2323.5-0317_daily_bin291.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/808282/ft1_filtered_4FGL_J2323.5-0317_daily_bin291.fits" evtable="EVENTS" scfile=/scratch/kocevski/808282/ft2_4FGL_J2323.5-0317_daily_bin291.fits sctable="SC_DATA" outfile=/scratch/kocevski/808282/ltcube_314755201_315014401_4FGL_J2323.5-0317_daily_bin291.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/808282/ft2_4FGL_J2323.5-0317_daily_bin291.fits
.....................!
real 11.88
user 11.54
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/808282/ft1_filtered_4FGL_J2323.5-0317_daily_bin291.fits evtable="EVENTS" scfile=/scratch/kocevski/808282/ft2_4FGL_J2323.5-0317_daily_bin291.fits sctable="SC_DATA" expcube=/scratch/kocevski/808282/ltcube_314755201_315014401_4FGL_J2323.5-0317_daily_bin291.fits outfile=/scratch/kocevski/808282/expmap_314755201_315014401_4FGL_J2323.5-0317_daily_bin291.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/808282/ltcube_314755201_315014401_4FGL_J2323.5-0317_daily_bin291.fits
.....................!
real 189.72
user 184.90
sys 4.46

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/808282/ft1_filtered_4FGL_J2323.5-0317_daily_bin291.fits scfile=/scratch/kocevski/808282/ft2_4FGL_J2323.5-0317_daily_bin291.fits outfile=/scratch/kocevski/808282/cmap_314755201_315014401_4FGL_J2323.5-0317_daily_bin291.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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/808282/ft1_filtered_4FGL_J2323.5-0317_daily_bin291.fits scfile=/scratch/kocevski/808282/ft2_4FGL_J2323.5-0317_daily_bin291.fits outfile=/scratch/kocevski/808282/cmap_HighResolution_314755201_315014401_4FGL_J2323.5-0317_daily_bin291.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/808282/ft1_filtered_4FGL_J2323.5-0317_daily_bin291.fits evtable="EVENTS" scfile=/scratch/kocevski/808282/ft2_4FGL_J2323.5-0317_daily_bin291.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/808282/Model_4FGL_J2323.5-0317_daily_bin291.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/808282/ft1_filtered_4FGL_J2323.5-0317_daily_bin291.fits.....................!
real 66.81
user 65.45
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.3357       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10113E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    7.8550       1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.6765       1.0000         .10000E-03   10000.    
     7 'Prefactor '    9.5684       1.0000         .10000E-03   10000.    
     8 'Prefactor '    29.875       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .11239E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .33387       1.0000         .10000E-03   10000.    
    11 'norm      '    1.8120       1.0000         .10000E-03   10000.    
    12 'Prefactor '    15.581       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.6894       1.0000         .10000E-03   10000.    
    16 'Prefactor '    31.123       1.0000         .10000E-03   10000.    
    17 'norm      '    .10125E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    6.1403       1.0000         .10000E-03   10000.    
    20 'Prefactor '    28.207       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    1.0372       1.0000         .10000E-03   10000.    
    23 'Prefactor '    4.5340       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .60180       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.2131       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=   7321.746     FROM MIGRAD    STATUS=CONVERGED    573 CALLS     2894 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.3345        7.1208       -.14238E-06   -.86946E-04
   2  Prefactor     .10000E-03    46.171        .10681E-05** at limit **
   3  Prefactor     .10000E-03    14.047        .38266E-05** at limit **
   4  Prefactor     .10000E-03    3.1084       -.20389E-08** at limit **
   5  norm          7.8549        7.2081       -.28412E-06    .29853E-04
   6  Prefactor     7.6737        29.072       -.22744E-05    .32408E-05
   7  Prefactor     9.5683        12.173       -.18225E-05   -.94428E-03
   8  Prefactor     29.867        36.630       -.45083E-05    .12571E-03
   9  Prefactor     .10000E-03    4.8806        .24654E-06** at limit **
  10  norm          .33374        .62872       -.15183E-06   -.17585E-02
  11  norm          1.8108        3.7661       -.38793E-06   -.71605E-03
  12  Prefactor     15.582        9.5312       -.59404E-07    .82878E-05
  13  Prefactor     .10000E-03    18.040        .44793E-05** at limit **
  14  Prefactor     .10000E-03    121.02       -.11742E-05** at limit **
  15  Prefactor     3.6811        11.655       -.10907E-05   -.11558E-04
  16  Prefactor     31.120        23.547        .24776E-07   -.11301E-04
  17  norm          .10000E-03    20.800       -.49409E-05** at limit **
  18  Prefactor     .10000E-03    14.994       -.59514E-05** at limit **
  19  Prefactor     6.1421        4.8708        .16790E-06    .97689E-04
  20  Prefactor     28.203        35.358       -.27256E-05    .77555E-04
  21  Prefactor     .10000E-03    19.158        .22130E-05** at limit **
  22  Prefactor     1.0320        8.2886       -.16913E-05    .12750E-03
  23  Prefactor     4.5332        6.6699       -.13896E-05   -.14397E-03
  24  Normalizat    .60199        .18437        .22455E-05    .12397E-03
  25  Prefactor     1.2130        .13617        .14149E-06    .26565E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.33453
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 7.85492
  Prefactor  = 7.67368
  Prefactor  = 9.56827
  Prefactor  = 29.8668
  Prefactor  = 0.0001
  norm       = 0.333736
  norm       = 1.81082
  Prefactor  = 15.5819
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 3.68111
  Prefactor  = 31.1199
  norm       = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 6.14212
  Prefactor  = 28.2026
  Prefactor  = 0.0001
  Prefactor  = 1.032
  Prefactor  = 4.53322
  Normalizat = 0.601987
  Prefactor  = 1.21298
 **********
 **   18 **HESSE 
 **********

 FCN=   7321.746     FROM HESSE     STATUS=OK           433 CALLS     3327 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.3345        7.1093        .17399E-03   -1.5246    
   2  Prefactor     .10000E-03    46.319        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    13.839        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    3.1130        .14733E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          7.8549        7.2061        .14307E-03   -1.5147    
   6  Prefactor     7.6737        29.057        .14474E-03   -1.5154    
   7  Prefactor     9.5683        13.263        .64776E-03   -1.5089    
   8  Prefactor     29.867        35.976        .73303E-04   -1.4614    
   9  Prefactor     .10000E-03    4.9022        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .33374        .54932        .87322E-03   -1.5592    
  11  norm          1.8108        3.7739        .22962E-03   -1.5439    
  12  Prefactor     15.582        9.5304        .10147E-03   -1.4918    
  13  Prefactor     .10000E-03    17.775        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    121.02        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     3.6811        11.287        .21027E-03   -1.5324    
  16  Prefactor     31.120        23.541        .71821E-04   -1.4592    
  17  norm          .10000E-03    20.363        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    14.473        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     6.1421        4.7782        .13552E-03   -1.5212    
  20  Prefactor     28.203        35.269        .75433E-04   -1.4645    
  21  Prefactor     .10000E-03    19.294        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     1.0320        49.830        .46047E-02   -1.5505    
  23  Prefactor     4.5332        6.7229        .18906E-03   -1.5282    
  24  Normalizat    .60199        .20625        .33487E-03   -1.0790    
  25  Prefactor     1.2130        .15391        .18891E-03   -.85933    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.21852e-09
Minuit parameter uncertainties:
  1  7.11038
  2  9.28364e-05
  3  0.00017508
  4  2.98799e-06
  5  7.20691
  6  29.1108
  7  13.2668
  8  36.0018
  9  5.28015e-05
  10  0.549331
  11  3.77438
  12  9.53131
  13  0.000207954
  14  0.000202666
  15  11.2938
  16  23.5478
  17  0.000326601
  18  0.00025681
  19  4.77853
  20  35.2955
  21  0.000130109
  22  14.3541
  23  6.72405
  24  0.206514
  25  0.153971
Done.

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

Extracting fit parameters...

4FGL J2323.5-0317
   Spectrum: LogParabola
373         norm:  3.337e-01  5.493e-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:  1.213e+00  1.540e-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:  6.020e-01  2.065e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/808282/likelihoodResults_314755201_315014401_4FGL_J2323.5-0317_daily_bin291.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) = 7321.64885987
delta logL = 0.0967411350221

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7321.64711212
delta logL = 0.0984888907906

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .33446       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.7373       1.0000          .0000       5.0000    
     3 'Normalizat'    .58868       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2184       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=   7321.647     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      207 TOTAL
                     EDM=   .72E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .33449        10.931        .10575E-01    .19158E-02
   2  alpha         2.7371        2.9109        .41388        .33497E-04
   3  Normalizat    .58880        .38598E-01    .76418E-01    .44184E-04
   4  Prefactor     1.2183        .29885E-01    .34210E-01   -.36688E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.334493
  alpha      = 2.73713
  Normalizat = 0.5888
  Prefactor  = 1.21829
 **********
 **   18 **HESSE 
 **********

 FCN=   7321.647     FROM HESSE     STATUS=OK            35 CALLS      242 TOTAL
                     EDM=   .75E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .33449        .58528        .66676E-03   -1.5592    
   2  alpha         2.7371        1.4258        .30242E-01    .94997E-01
   3  Normalizat    .58880        .19798        .33835E-03   -1.0846    
   4  Prefactor     1.2183        .15300        .18853E-03   -.85770    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.48705e-12
Minuit parameter uncertainties:
  1  0.585289
  2  1.5182
  3  0.198217
  4  0.153054
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/808282': 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) = 7321.64711189
delta logL = 0.0984891142652

Extracting fit parameters...

4FGL J2323.5-0317
   Spectrum: LogParabola
373         norm:  3.345e-01  5.853e-01  1.000e-04  1.000e+04 ( 1.000e-11)
374        alpha:  2.737e+00  1.518e+00  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:  1.218e+00  1.531e-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:  5.888e-01  1.982e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.54
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/808282/cmap_HighResolution_314755201_315014401_4FGL_J2323.5-0317_daily_bin291.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.84e-05', job_status='DONE', photon_flux_upper_limit='6.92e-08', time_completed='2021-09-29 14:39:22.991477', job_id='808282', GAL2='1.22', fit_tolerance='1e-08', EG2='0.59', EG='0.60', time_epoch_completed='1632951562.99', return_code2='0', ts='0.54', comment='SUCCESS', return_code='0', GAL='1.21', dlogl='9.85e-02', ts2='0.74', photon_index_error='0.00', photon_index='2.16' WHERE bin_id='291' AND source_name='4FGL J2323.5-0317' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 14:39:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0101>
Subject: Job 808282: <4FGL_J2323.5-0317_daily_bin291> in cluster <slac> Done

Job <4FGL_J2323.5-0317_daily_bin291> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 14:25:28 2021
Job was executed on host(s) <bullet0101>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 14:25:30 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:30 2021
Terminated at Wed Sep 29 14:39:23 2021
Results reported at Wed Sep 29 14:39:23 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2323.5-0317_daily_bin291 350.888 -3.29 314755201 315014401 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 :                                   723.15 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             349.80 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   833 sec.
    Turnaround time :                            835 sec.

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

