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


Performing analysis on: 4FGL_J2323.5-0317_daily_bin563
RA = 350.888, Dec = -3.29
tmin = 385257601, tmax = 385516801
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='809537', job_status='RUN', time_executed='2021-09-29 14:33:21.309669', time_epoch_executed='1632951201.31' WHERE source_name='4FGL J2323.5-0317' and cadence='daily' and bin_id='563'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/809537

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/809537/ft1_4FGL_J2323.5-0317_daily_bin563.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/809537/ft2_4FGL_J2323.5-0317_daily_bin563.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/809537/ft1_4FGL_J2323.5-0317_daily_bin563.fits outfile=/scratch/kocevski/809537/ft1_filteredMKT_4FGL_J2323.5-0317_daily_bin563.fits ra=350.888 dec=-3.29 rad=12.0 tmin=385257601.0 tmax=385516801.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.52
user 3.27
sys 0.22

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/809537/ft1_filtered_4FGL_J2323.5-0317_daily_bin563.fits" evtable="EVENTS" scfile=/scratch/kocevski/809537/ft2_4FGL_J2323.5-0317_daily_bin563.fits sctable="SC_DATA" outfile=/scratch/kocevski/809537/ltcube_385257601_385516801_4FGL_J2323.5-0317_daily_bin563.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/809537/ft2_4FGL_J2323.5-0317_daily_bin563.fits
.....................!
real 12.52
user 12.17
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/809537/ft1_filtered_4FGL_J2323.5-0317_daily_bin563.fits evtable="EVENTS" scfile=/scratch/kocevski/809537/ft2_4FGL_J2323.5-0317_daily_bin563.fits sctable="SC_DATA" expcube=/scratch/kocevski/809537/ltcube_385257601_385516801_4FGL_J2323.5-0317_daily_bin563.fits outfile=/scratch/kocevski/809537/expmap_385257601_385516801_4FGL_J2323.5-0317_daily_bin563.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/809537/ltcube_385257601_385516801_4FGL_J2323.5-0317_daily_bin563.fits
.....................!
real 190.06
user 184.97
sys 4.71

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/809537/ft1_filtered_4FGL_J2323.5-0317_daily_bin563.fits scfile=/scratch/kocevski/809537/ft2_4FGL_J2323.5-0317_daily_bin563.fits outfile=/scratch/kocevski/809537/cmap_385257601_385516801_4FGL_J2323.5-0317_daily_bin563.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.58
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/809537/ft1_filtered_4FGL_J2323.5-0317_daily_bin563.fits scfile=/scratch/kocevski/809537/ft2_4FGL_J2323.5-0317_daily_bin563.fits outfile=/scratch/kocevski/809537/cmap_HighResolution_385257601_385516801_4FGL_J2323.5-0317_daily_bin563.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.39
sys 0.14

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/809537/ft1_filtered_4FGL_J2323.5-0317_daily_bin563.fits', '/scratch/kocevski/809537/ft2_4FGL_J2323.5-0317_daily_bin563.fits', expMap='/scratch/kocevski/809537/expmap_385257601_385516801_4FGL_J2323.5-0317_daily_bin563.fits', expCube='/scratch/kocevski/809537/ltcube_385257601_385516801_4FGL_J2323.5-0317_daily_bin563.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/809537/Model_4FGL_J2323.5-0317_daily_bin563.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/809537/ft1_filtered_4FGL_J2323.5-0317_daily_bin563.fits
Spacecraft file(s): /scratch/kocevski/809537/ft2_4FGL_J2323.5-0317_daily_bin563.fits
Exposure map: /scratch/kocevski/809537/expmap_385257601_385516801_4FGL_J2323.5-0317_daily_bin563.fits
Exposure cube: /scratch/kocevski/809537/ltcube_385257601_385516801_4FGL_J2323.5-0317_daily_bin563.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/809537/Model_4FGL_J2323.5-0317_daily_bin563.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 5306.07232421

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10097E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    29.394       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.8057       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    27.282       1.0000         .10000E-03   10000.    
     8 'Prefactor '    62.236       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10888E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    2.3013       1.0000         .10000E-03   10000.    
    11 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    8.8167       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .85183       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .19789E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.4363       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .21448E-02   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    8.0421       1.0000         .10000E-03   10000.    
    20 'Prefactor '    14.369       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    46.954       1.0000         .10000E-03   10000.    
    23 'Prefactor '    4.8494       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.2097       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .96987       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=   5306.046     FROM MIGRAD    STATUS=CONVERGED    601 CALLS     3320 TOTAL
                     EDM=   .30E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    10.905        .19865E-06** at limit **
   2  Prefactor     29.380        62.492        .12191E-05    .30448E-04
   3  Prefactor     .10000E-03    43.429       -.51947E-07** at limit **
   4  Prefactor     .10000E-03    5.8884       -.16695E-07** at limit **
   5  norm          1.8072        6.8067        .12969E-05    .47412E-03
   6  Prefactor     .10000E-03    28.602       -.15799E-06** at limit **
   7  Prefactor     27.281        20.384        .17469E-06    .44580E-04
   8  Prefactor     62.190        62.314        .17249E-05    .41953E-04
   9  Prefactor     .10000E-03    8.2375        .27588E-05** at limit **
  10  norm          2.3010        1.1217        .25340E-07    .17670E-04
  11  norm          .10000E-03    2.0321        .28275E-06** at limit **
  12  Prefactor     8.8174        11.066        .78738E-07    .23677E-04
  13  Prefactor     .99004        218.66       -.10440E-04    .95579E-04
  14  Prefactor     .10000E-03    341.93        .26155E-05** at limit **
  15  Prefactor     4.4270        12.303       -.13651E-05   -.38719E-04
  16  Prefactor     .10000E-03    60.360       -.30055E-06** at limit **
  17  norm          .10001E-03    43.385        .36816E-05** at limit **
  18  Prefactor     .10000E-03    18.360        .10071E-06** at limit **
  19  Prefactor     8.0365        5.9240        .15206E-07   -.42559E-04
  20  Prefactor     14.365        27.914        .40866E-06    .25635E-04
  21  Prefactor     .10000E-03    15.280       -.11803E-06** at limit **
  22  Prefactor     46.956        25.813        .11143E-06   -.67640E-05
  23  Prefactor     4.8504        9.5892        .40205E-06    .15751E-03
  24  Normalizat    1.2098        .24548       -.19203E-05    .49976E-04
  25  Prefactor     .96976        .17396        .11173E-05   -.86066E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 29.3795
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.80716
  Prefactor  = 0.0001
  Prefactor  = 27.2814
  Prefactor  = 62.1899
  Prefactor  = 0.0001
  norm       = 2.30098
  norm       = 0.0001
  Prefactor  = 8.81737
  Prefactor  = 0.990038
  Prefactor  = 0.000100003
  Prefactor  = 4.42702
  Prefactor  = 0.0001
  norm       = 0.000100014
  Prefactor  = 0.0001
  Prefactor  = 8.03654
  Prefactor  = 14.3649
  Prefactor  = 0.0001
  Prefactor  = 46.9559
  Prefactor  = 4.85043
  Normalizat = 1.20976
  Prefactor  = 0.969763
 **********
 **   18 **HESSE 
 **********

 FCN=   5306.046     FROM HESSE     STATUS=OK           437 CALLS     3757 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    10.982        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     29.380        62.694        .73898E-04   -1.4623    
   3  Prefactor     .10000E-03    43.549        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    5.9026        .17263E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.8072        8.7921        .15550E-02   -1.5439    
   6  Prefactor     .10000E-03    28.671        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     27.281        20.378        .76699E-04   -1.4663    
   8  Prefactor     62.190        62.342        .50864E-04   -1.4129    
   9  Prefactor     .10000E-03    8.5406        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          2.3010        1.1188        .51791E-04   -1.5405    
  11  norm          .10000E-03    2.0378        .10146E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     8.8174        11.073        .13499E-03   -1.5114    
  13  Prefactor     .99004        530.98        .97056E-02   -1.5509    
  14  Prefactor     .10000E-03    343.92        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     4.4270        17.064        .19119E-03   -1.5287    
  16  Prefactor     .10000E-03    61.410        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10001E-03    73.775        .10722       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    18.364        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     8.0365        5.9575        .13386E-03   -1.5141    
  20  Prefactor     14.365        27.907        .10566E-03   -1.4950    
  21  Prefactor     .10000E-03    15.341        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     46.956        25.850        .58515E-04   -1.4336    
  23  Prefactor     4.8504        9.7132        .91336E-03   -1.5267    
  24  Normalizat    1.2098        .27287        .28810E-03   -.86302    
  25  Prefactor     .96976        .19439        .23168E-03   -.93744    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.9847e-09
Minuit parameter uncertainties:
  1  9.13515e-06
  2  62.8346
  3  2.29967e-06
  4  7.07176e-07
  5  7.97381
  6  1.03813e-05
  7  20.3833
  8  62.4073
  9  0.000125463
  10  1.11878
  11  6.25289e-06
  12  11.0754
  13  46.2716
  14  0.00199167
  15  17.0828
  16  2.2505e-06
  17  0.0020707
  18  7.9667e-06
  19  5.95793
  20  27.9326
  21  4.47259e-06
  22  25.8566
  23  9.71638
  24  0.273196
  25  0.194534
Done.

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

Extracting fit parameters...

4FGL J2323.5-0317
   Spectrum: LogParabola
373         norm:  2.301e+00  1.119e+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:  9.698e-01  1.945e-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.210e+00  2.732e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 9.77
Ra Dec: 350.888 -3.290
Photon Index (Fixed Index): 2.16 +/- 0.00
Photon Flux (Fixed Index): 8.91e-08 +/- 4.33e-08
Energy Flux (Fixed Index): 3.65e-05 +/- 1.77e-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) = 5305.94378867
delta logL = 0.102459773158

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5305.94130897
delta logL = 0.104939466812

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.3657       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9636       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2220       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96436       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=   5305.941     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      202 TOTAL
                     EDM=   .20E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.3658        1.6414        .66605E-02    .73409E-04
   2  alpha         1.9635        .54933        .27610       -.31407E-05
   3  Normalizat    1.2219        .22496        .64865E-01    .79035E-05
   4  Prefactor     .96442        .16450        .45820E-01    .69551E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 2.36577
  alpha      = 1.96347
  Normalizat = 1.22191
  Prefactor  = 0.964417
 **********
 **   18 **HESSE 
 **********

 FCN=   5305.941     FROM HESSE     STATUS=OK            33 CALLS      235 TOTAL
                     EDM=   .81E-14    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.3658        1.1615        .53324E-04   -1.5400    
   2  alpha         1.9635        .42025        .11329E-01   -.21629    
   3  Normalizat    1.2219        .26140        .28694E-03   -.85928    
   4  Prefactor     .96442        .19102        .23224E-03   -.93925    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.06306e-15
Minuit parameter uncertainties:
  1  1.16153
  2  0.422352
  3  0.261678
  4  0.191151
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/809537': 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) = 5305.94130883
delta logL = 0.104939615845

Extracting fit parameters...

4FGL J2323.5-0317
   Spectrum: LogParabola
373         norm:  2.366e+00  1.162e+00  1.000e-04  1.000e+04 ( 1.000e-11)
374        alpha:  1.963e+00  4.224e-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:  9.644e-01  1.912e-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.222e+00  2.617e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.98
Ra Dec: 350.888 -3.290
Photon Index (Free Index): 1.96 +/- 0.42
Photon Flux (Free Index): 7.72e-08 +/- 4.59e-08
Energy Flux (Free Index): 4.22e-05 +/- 2.56e-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/809537/cmap_HighResolution_385257601_385516801_4FGL_J2323.5-0317_daily_bin563.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.91e-08', energy_flux2='4.22e-05', photon_flux_error='4.33e-08', dlogl='1.05e-01', energy_flux='3.65e-05', photon_flux2='7.72e-08', job_status='DONE', time_completed='2021-09-29 14:43:11.728563', photon_index_error2='0.42', photon_index2='1.96', ts='9.77', fit_tolerance='1e-08', GAL='0.97', photon_index_error='0.00', energy_flux_error2='2.56e-05', EG='1.21', time_epoch_completed='1632951791.73', return_code='0', job_id='809537', GAL2='0.96', EG2='1.22', return_code2='0', energy_flux_error='1.77e-05', photon_flux_error2='4.59e-08', ts2='9.98', photon_index='2.16' WHERE bin_id='563' AND source_name='4FGL J2323.5-0317' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 14:43:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0304>
Subject: Job 809537: <4FGL_J2323.5-0317_daily_bin563> in cluster <slac> Done

Job <4FGL_J2323.5-0317_daily_bin563> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Wed Sep 29 14:30:31 2021
Job was executed on host(s) <bullet0304>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 14:30:33 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:33 2021
Terminated at Wed Sep 29 14:43:12 2021
Results reported at Wed Sep 29 14:43:12 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2323.5-0317_daily_bin563 350.888 -3.29 385257601 385516801 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 :                                   588.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             263.59 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   759 sec.
    Turnaround time :                            761 sec.

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

