/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 83 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 = 29
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2323.5-0317_daily_bin516
RA = 350.888, Dec = -3.29
tmin = 373075201, tmax = 373334401
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='809462', job_status='RUN', time_executed='2021-09-29 14:31:57.008702', time_epoch_executed='1632951117.01' WHERE source_name='4FGL J2323.5-0317' and cadence='daily' and bin_id='516'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/809462

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/809462/ft1_4FGL_J2323.5-0317_daily_bin516.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/809462/ft2_4FGL_J2323.5-0317_daily_bin516.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/809462/ft1_4FGL_J2323.5-0317_daily_bin516.fits outfile=/scratch/kocevski/809462/ft1_filteredMKT_4FGL_J2323.5-0317_daily_bin516.fits ra=350.888 dec=-3.29 rad=12.0 tmin=373075201.0 tmax=373334401.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.68
user 3.45
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/809462/ft1_filtered_4FGL_J2323.5-0317_daily_bin516.fits" evtable="EVENTS" scfile=/scratch/kocevski/809462/ft2_4FGL_J2323.5-0317_daily_bin516.fits sctable="SC_DATA" outfile=/scratch/kocevski/809462/ltcube_373075201_373334401_4FGL_J2323.5-0317_daily_bin516.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/809462/ft2_4FGL_J2323.5-0317_daily_bin516.fits
.....................!
real 12.15
user 11.80
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/809462/ft1_filtered_4FGL_J2323.5-0317_daily_bin516.fits evtable="EVENTS" scfile=/scratch/kocevski/809462/ft2_4FGL_J2323.5-0317_daily_bin516.fits sctable="SC_DATA" expcube=/scratch/kocevski/809462/ltcube_373075201_373334401_4FGL_J2323.5-0317_daily_bin516.fits outfile=/scratch/kocevski/809462/expmap_373075201_373334401_4FGL_J2323.5-0317_daily_bin516.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/809462/ltcube_373075201_373334401_4FGL_J2323.5-0317_daily_bin516.fits
.....................!
real 191.66
user 185.74
sys 5.60

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/809462/ft1_filtered_4FGL_J2323.5-0317_daily_bin516.fits scfile=/scratch/kocevski/809462/ft2_4FGL_J2323.5-0317_daily_bin516.fits outfile=/scratch/kocevski/809462/cmap_373075201_373334401_4FGL_J2323.5-0317_daily_bin516.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/809462/ft1_filtered_4FGL_J2323.5-0317_daily_bin516.fits scfile=/scratch/kocevski/809462/ft2_4FGL_J2323.5-0317_daily_bin516.fits outfile=/scratch/kocevski/809462/cmap_HighResolution_373075201_373334401_4FGL_J2323.5-0317_daily_bin516.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.55
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/809462/ft1_filtered_4FGL_J2323.5-0317_daily_bin516.fits evtable="EVENTS" scfile=/scratch/kocevski/809462/ft2_4FGL_J2323.5-0317_daily_bin516.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/809462/Model_4FGL_J2323.5-0317_daily_bin516.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/809462/ft1_filtered_4FGL_J2323.5-0317_daily_bin516.fits....................!
real 57.75
user 56.44
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .37112E-02   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    9.5262       1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    57.901       1.0000         .10000E-03   10000.    
     7 'Prefactor '    22.243       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    16.990       1.0000         .10000E-03   10000.    
    10 'norm      '    3.2225       1.0000         .10000E-03   10000.    
    11 'norm      '    7.4431       1.0000         .10000E-03   10000.    
    12 'Prefactor '    13.157       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10091E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    11.169       1.0000         .10000E-03   10000.    
    18 'Prefactor '    16.355       1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.6465       1.0000         .10000E-03   10000.    
    20 'Prefactor '    26.098       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    2.5757       1.0000         .10000E-03   10000.    
    23 'Prefactor '    24.450       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .91671       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .86734       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=   6277.327     FROM MIGRAD    STATUS=CONVERGED    566 CALLS     2864 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10106E-03    8.0402        .27051E-05** at limit **
   2  Prefactor     .10000E-03    29.009        .45683E-05** at limit **
   3  Prefactor     .10000E-03    10.846        .85071E-06** at limit **
   4  Prefactor     9.5266        8.0348       -.31774E-07   -.30988E-04
   5  norm          .10000E-03    5.5909        .90726E-07** at limit **
   6  Prefactor     57.903        45.086        .13047E-05    .70461E-04
   7  Prefactor     22.244        16.195       -.60699E-07   -.30981E-04
   8  Prefactor     .10001E-03    39.307       -.94123E-05** at limit **
   9  Prefactor     16.990        11.996        .31660E-06    .16470E-03
  10  norm          3.2224        1.1479        .76609E-08   -.72393E-04
  11  norm          7.4433        7.2089        .42662E-06    .16762E-03
  12  Prefactor     13.158        10.596       -.11386E-06   -.33954E-04
  13  Prefactor     .10000E-03    11.049       -.81622E-06** at limit **
  14  Prefactor     .10000E-03    102.36       -.52524E-05** at limit **
  15  Prefactor     .10000E-03    3.9563        .58458E-07** at limit **
  16  Prefactor     .10000E-03    29.699       -.38434E-05** at limit **
  17  norm          11.168        12.987       -.35531E-07   -.16182E-04
  18  Prefactor     16.351        45.533       -.38932E-05   -.84782E-04
  19  Prefactor     4.6454        3.8658        .56216E-07   -.59681E-04
  20  Prefactor     26.099        26.469        .33404E-06    .14830E-04
  21  Prefactor     .10000E-03    7.4154        .58396E-07** at limit **
  22  Prefactor     2.5735        9.0622        .18800E-05   -.47707E-03
  23  Prefactor     24.446        9.7167        .12198E-05    .18962E-03
  24  Normalizat    .91668        .19147       -.87512E-06   -.23791E-03
  25  Prefactor     .86734        .13407       -.21816E-06   -.31214E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101062
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 9.52664
  norm       = 0.0001
  Prefactor  = 57.9034
  Prefactor  = 22.2436
  Prefactor  = 0.000100014
  Prefactor  = 16.9904
  norm       = 3.22237
  norm       = 7.44333
  Prefactor  = 13.1583
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  norm       = 11.1682
  Prefactor  = 16.3512
  Prefactor  = 4.64543
  Prefactor  = 26.0994
  Prefactor  = 0.0001
  Prefactor  = 2.57347
  Prefactor  = 24.4462
  Normalizat = 0.916675
  Prefactor  = 0.867336
 **********
 **   18 **HESSE 
 **********

 FCN=   6277.327     FROM HESSE     STATUS=OK           427 CALLS     3291 TOTAL
                     EDM=   .22E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10106E-03    54.599        .38844E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    29.119        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    10.859        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     9.5266        8.0369        .12984E-03   -1.5091    
   5  norm          .10000E-03    5.6207        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     57.903        45.106        .52722E-04   -1.4185    
   7  Prefactor     22.244        16.205        .84929E-04   -1.4764    
   8  Prefactor     .10001E-03    39.861        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     16.990        12.027        .97167E-04   -1.4883    
  10  norm          3.2224        1.1467        .47994E-04   -1.5349    
  11  norm          7.4433        7.1951        .14701E-03   -1.5162    
  12  Prefactor     13.158        10.598        .11043E-03   -1.4982    
  13  Prefactor     .10000E-03    11.053        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    102.50        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    3.9626        .15384E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    29.888        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          11.168        12.978        .11987E-03   -1.5039    
  18  Prefactor     16.351        45.700        .99038E-04   -1.4899    
  19  Prefactor     4.6454        3.8723        .13424E-03   -1.5277    
  20  Prefactor     26.099        26.487        .78416E-04   -1.4686    
  21  Prefactor     .10000E-03    7.4237        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     2.5735        33.827        .12716E-02   -1.5387    
  23  Prefactor     24.446        9.5809        .81011E-04   -1.4719    
  24  Normalizat    .91668        .22412        .28676E-03   -.95877    
  25  Prefactor     .86734        .15606        .21545E-03   -.97292    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.23408e-08
Minuit parameter uncertainties:
  1  0.015241
  2  0.000578427
  3  7.16632e-05
  4  8.03777
  5  8.44827e-06
  6  45.133
  7  16.2084
  8  0.00148277
  9  12.0292
  10  1.14672
  11  7.19597
  12  10.5992
  13  6.65754e-05
  14  0.00131775
  15  3.79317e-06
  16  0.000492985
  17  12.9814
  18  45.7978
  19  3.87246
  20  26.499
  21  5.80522e-06
  22  18.6729
  23  9.58153
  24  0.224349
  25  0.156142
Done.

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

Extracting fit parameters...

4FGL J2323.5-0317
   Spectrum: LogParabola
373         norm:  3.222e+00  1.147e+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

GAL_V02
   Spectrum: PowerLaw
520    Prefactor:  8.673e-01  1.561e-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:  9.167e-01  2.243e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 22.47
Ra Dec: 350.888 -3.290
Photon Index (Fixed Index): 2.16 +/- 0.00
Photon Flux (Fixed Index): 1.25e-07 +/- 4.44e-08
Energy Flux (Fixed Index): 5.11e-05 +/- 1.82e-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) = 6277.24625717
delta logL = 0.0810875178022

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6277.24394771
delta logL = 0.0833969836367

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.1161       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3081       1.0000          .0000       5.0000    
     3 'Normalizat'    .90071       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87454       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=   6277.244     FROM MIGRAD    STATUS=CONVERGED     42 CALLS      227 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.1161        17.724        .57424E-02    .39594E-04
   2  alpha         2.3081        3.6021        .23395        .33283E-04
   3  Normalizat    .90071        .19312        .65303E-01    .81296E-05
   4  Prefactor     .87454        .12478        .44680E-01    .13772E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.11606
  alpha      = 2.30808
  Normalizat = 0.900708
  Prefactor  = 0.87454
 **********
 **   18 **HESSE 
 **********

 FCN=   6277.244     FROM HESSE     STATUS=OK            33 CALLS      260 TOTAL
                     EDM=   .37E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.1161        1.1462        .45953E-04   -1.5355    
   2  alpha         2.3081        .36812        .96494E-02   -.76844E-01
   3  Normalizat    .90071        .21317        .28886E-03   -.96435    
   4  Prefactor     .87454        .15501        .21463E-03   -.97036    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.7138e-12
Minuit parameter uncertainties:
  1  1.14622
  2  0.369474
  3  0.213371
  4  0.155086
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/809462': 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) = 6277.24394771
delta logL = 0.0833969837804

Extracting fit parameters...

4FGL J2323.5-0317
   Spectrum: LogParabola
373         norm:  3.116e+00  1.146e+00  1.000e-04  1.000e+04 ( 1.000e-11)
374        alpha:  2.308e+00  3.695e-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.745e-01  1.551e-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:  9.007e-01  2.134e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 22.63
Ra Dec: 350.888 -3.290
Photon Index (Free Index): 2.31 +/- 0.37
Photon Flux (Free Index): 1.40e-07 +/- 5.88e-08
Energy Flux (Free Index): 4.79e-05 +/- 1.80e-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/809462/cmap_HighResolution_373075201_373334401_4FGL_J2323.5-0317_daily_bin516.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.25e-07', energy_flux2='4.79e-05', photon_flux_error='4.44e-08', dlogl='8.34e-02', energy_flux='5.11e-05', photon_flux2='1.40e-07', job_status='DONE', time_completed='2021-09-29 14:42:00.297210', photon_index_error2='0.37', photon_index2='2.31', ts='22.47', fit_tolerance='1e-08', GAL='0.87', photon_index_error='0.00', energy_flux_error2='1.80e-05', EG='0.92', time_epoch_completed='1632951720.3', return_code='0', job_id='809462', GAL2='0.87', EG2='0.90', return_code2='0', energy_flux_error='1.82e-05', photon_flux_error2='5.88e-08', ts2='22.63', photon_index='2.16' WHERE bin_id='516' AND source_name='4FGL J2323.5-0317' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 14:42:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0296>
Subject: Job 809462: <4FGL_J2323.5-0317_daily_bin516> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2323.5-0317_daily_bin516 350.888 -3.29 373075201 373334401 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 :                                   590.38 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             349.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   695 sec.
    Turnaround time :                            697 sec.

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

