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


Performing analysis on: 4FGL_J2323.5-0317_daily_bin583
RA = 350.888, Dec = -3.29
tmin = 390441601, tmax = 390700801
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='809566', job_status='RUN', time_executed='2021-09-29 14:32:59.326634', time_epoch_executed='1632951179.33' WHERE source_name='4FGL J2323.5-0317' and cadence='daily' and bin_id='583'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/809566

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/809566/ft1_4FGL_J2323.5-0317_daily_bin583.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/809566/ft2_4FGL_J2323.5-0317_daily_bin583.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/809566/ft1_4FGL_J2323.5-0317_daily_bin583.fits outfile=/scratch/kocevski/809566/ft1_filteredMKT_4FGL_J2323.5-0317_daily_bin583.fits ra=350.888 dec=-3.29 rad=12.0 tmin=390441601.0 tmax=390700801.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.63
user 3.40
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/809566/ft2_4FGL_J2323.5-0317_daily_bin583.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/809566/ft1_filteredMKT_4FGL_J2323.5-0317_daily_bin583.fits evtable="EVENTS" outfile="/scratch/kocevski/809566/ft1_filtered_4FGL_J2323.5-0317_daily_bin583.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.52
user 0.34
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/809566/ft1_filtered_4FGL_J2323.5-0317_daily_bin583.fits" evtable="EVENTS" scfile=/scratch/kocevski/809566/ft2_4FGL_J2323.5-0317_daily_bin583.fits sctable="SC_DATA" outfile=/scratch/kocevski/809566/ltcube_390441601_390700801_4FGL_J2323.5-0317_daily_bin583.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/809566/ft2_4FGL_J2323.5-0317_daily_bin583.fits
.....................!
real 12.08
user 11.72
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/809566/ft1_filtered_4FGL_J2323.5-0317_daily_bin583.fits evtable="EVENTS" scfile=/scratch/kocevski/809566/ft2_4FGL_J2323.5-0317_daily_bin583.fits sctable="SC_DATA" expcube=/scratch/kocevski/809566/ltcube_390441601_390700801_4FGL_J2323.5-0317_daily_bin583.fits outfile=/scratch/kocevski/809566/expmap_390441601_390700801_4FGL_J2323.5-0317_daily_bin583.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/809566/ltcube_390441601_390700801_4FGL_J2323.5-0317_daily_bin583.fits
.....................!
real 191.01
user 185.34
sys 5.31

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/809566/ft1_filtered_4FGL_J2323.5-0317_daily_bin583.fits scfile=/scratch/kocevski/809566/ft2_4FGL_J2323.5-0317_daily_bin583.fits outfile=/scratch/kocevski/809566/cmap_390441601_390700801_4FGL_J2323.5-0317_daily_bin583.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.55
user 0.36
sys 0.16

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/809566/ft1_filtered_4FGL_J2323.5-0317_daily_bin583.fits evtable="EVENTS" scfile=/scratch/kocevski/809566/ft2_4FGL_J2323.5-0317_daily_bin583.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/809566/Model_4FGL_J2323.5-0317_daily_bin583.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/809566/ft1_filtered_4FGL_J2323.5-0317_daily_bin583.fits.....................!
real 77.89
user 76.39
sys 1.30

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .11990E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.8305       1.0000         .10000E-03   10000.    
     5 'norm      '    5.8730       1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.6978       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.0555       1.0000         .10000E-03   10000.    
    10 'norm      '    1.3998       1.0000         .10000E-03   10000.    
    11 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.3725       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10493E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    20.706       1.0000         .10000E-03   10000.    
    16 'Prefactor '    38.230       1.0000         .10000E-03   10000.    
    17 'norm      '    .10021E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    33.144       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .16100       1.0000         .10000E-03   10000.    
    20 'Prefactor '    64.257       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10449       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    3.8909       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .77020       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0250       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=   8371.496     FROM MIGRAD    STATUS=CONVERGED   1044 CALLS     3000 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.7753        .17322E-02** at limit **
   2  Prefactor     .10000E-03    200.46        .18142E-02** at limit **
   3  Prefactor     .10000E-03    19.489        .18142E-02** at limit **
   4  Prefactor     6.8300        5.6966        .15352E-03   -.93309E-05
   5  norm          5.8709        7.7163        .16571E-03   -.93304E-05
   6  Prefactor     4.6932        27.532        .92831E-03   -.90135E-05
   7  Prefactor     .10000E-03    5.1889        .18142E-02** at limit **
   8  Prefactor     .10000E-03    75.277        .18142E-02** at limit **
   9  Prefactor     4.0568        6.2294        .20022E-03   -.11345E-03
  10  norm          1.3996        .71025        .52444E-04   -.11316E-03
  11  norm          .10000E-03    2.1435        .12946E-02** at limit **
  12  Prefactor     3.3673        7.7746        .22035E-03    .22805E-04
  13  Prefactor     .10000E-03    78.350        .18142E-02** at limit **
  14  Prefactor     .10000E-03    52.764        .18142E-02** at limit **
  15  Prefactor     20.706        9.3326        .44011E-03   -.14657E-03
  16  Prefactor     38.243        23.477        .64823E-04   -.33673E-04
  17  norm          .10000E-03    6.1792        .18142E-02** at limit **
  18  Prefactor     33.137        37.590        .69603E-04    .67294E-05
  19  Prefactor     .15797        9.6144        .20576E-02   -.61915E-03
  20  Prefactor     64.265        32.059        .50062E-04   -.54683E-04
  21  Prefactor     .51937E-01    12.718        .87097E-01    .15443E-03
  22  Prefactor     .10000E-03    14.823        .18142E-02** at limit **
  23  Prefactor     3.8891        7.6514        .10228E-02    .45241E-04
  24  Normalizat    .77047        .18888        .30182E-03    .26518E-04
  25  Prefactor     1.0250        .13528        .19551E-03    .35252E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.83
  norm       = 5.87091
  Prefactor  = 4.69315
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.05677
  norm       = 1.39964
  norm       = 0.0001
  Prefactor  = 3.36733
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 20.706
  Prefactor  = 38.2428
  norm       = 0.0001
  Prefactor  = 33.137
  Prefactor  = 0.157969
  Prefactor  = 64.265
  Prefactor  = 0.0519371
  Prefactor  = 0.0001
  Prefactor  = 3.88905
  Normalizat = 0.770468
  Prefactor  = 1.02496
 **********
 **   18 **HESSE 
 **********

 FCN=   8371.496     FROM HESSE     STATUS=OK           415 CALLS     3415 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.7759        .34643E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    200.63        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    19.491        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     6.8300        5.6965        .61407E-05   -1.5185    
   5  norm          5.8709        7.7156        .66284E-05   -1.5223    
   6  Prefactor     4.6932        27.503        .37132E-04   -1.5275    
   7  Prefactor     .10000E-03    5.1897        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    75.292        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     4.0568        6.2284        .80088E-05   -1.5305    
  10  norm          1.3996        .71021        .20978E-05   -1.5471    
  11  norm          .10000E-03    2.1443        .25892E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     3.3673        7.7737        .88138E-05   -1.5341    
  13  Prefactor     .10000E-03    78.382        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    52.764        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     20.706        9.2667        .17605E-04   -1.4798    
  16  Prefactor     38.243        23.480        .25929E-05   -1.4470    
  17  norm          .10000E-03    6.1793        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     33.137        37.591        .13921E-04   -1.4556    
  19  Prefactor     .15797        9.5097        .82303E-04   -1.5628    
  20  Prefactor     64.265        32.059        .10012E-04   -1.4103    
  21  Prefactor     .51937E-01    12.243        .89403E-01   -1.5662    
  22  Prefactor     .10000E-03    14.829        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     3.8891        7.6484        .40910E-04   -1.5314    
  24  Normalizat    .77047        .18889        .12073E-04   -1.0117    
  25  Prefactor     1.0250        .13537        .39102E-04   -.91902    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.34956e-09
Minuit parameter uncertainties:
  1  5.73691e-06
  2  0.000145511
  3  3.136e-05
  4  5.69699
  5  7.71686
  6  22.7377
  7  1.17523e-05
  8  0.000250203
  9  6.22938
  10  0.710218
  11  8.38308e-06
  12  7.77603
  13  8.25216e-05
  14  7.92557e-05
  15  9.2673
  16  23.4853
  17  1.82269e-06
  18  37.6174
  19  2.45095
  20  32.0675
  21  1.59365
  22  8.34679e-05
  23  7.65036
  24  0.189051
  25  0.135414
Done.

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

Extracting fit parameters...

4FGL J2323.5-0317
   Spectrum: LogParabola
373         norm:  1.400e+00  7.102e-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.025e+00  1.354e-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:  7.705e-01  1.891e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 14.77
Ra Dec: 350.888 -3.290
Photon Index (Fixed Index): 2.16 +/- 0.00
Photon Flux (Fixed Index): 5.42e-08 +/- 2.75e-08
Energy Flux (Fixed Index): 2.22e-05 +/- 1.13e-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) = 8371.487015
delta logL = 0.00854230731602

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8371.4866635
delta logL = 0.00889381242268

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.3893       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0964       1.0000          .0000       5.0000    
     3 'Normalizat'    .77428       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0236       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=   8371.487     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      230 TOTAL
                     EDM=   .63E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.3894        17.363        .92190E-02    .13569E-03
   2  alpha         2.0965        3.1289        .38269        .18719E-05
   3  Normalizat    .77390        .11744        .68081E-01    .27816E-04
   4  Prefactor     1.0238        .76936E-01    .41799E-01   -.13111E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.38942
  alpha      = 2.09646
  Normalizat = 0.773901
  Prefactor  = 1.0238
 **********
 **   18 **HESSE 
 **********

 FCN=   8371.487     FROM HESSE     STATUS=OK            33 CALLS      263 TOTAL
                     EDM=   .22E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.3894        .71850        .53186E-04   -1.5472    
   2  alpha         2.0965        .47545        .14314E-01   -.16212    
   3  Normalizat    .77390        .18190        .30124E-03   -1.0104    
   4  Prefactor     1.0238        .13374        .19563E-03   -.91940    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.18955e-12
Minuit parameter uncertainties:
  1  0.718501
  2  0.478445
  3  0.182045
  4  0.133781
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/809566': 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) = 8371.48666107
delta logL = 0.008896235473

Extracting fit parameters...

4FGL J2323.5-0317
   Spectrum: LogParabola
373         norm:  1.389e+00  7.185e-01  1.000e-04  1.000e+04 ( 1.000e-11)
374        alpha:  2.096e+00  4.784e-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:  1.024e+00  1.338e-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:  7.739e-01  1.820e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 14.79
Ra Dec: 350.888 -3.290
Photon Index (Free Index): 2.10 +/- 0.48
Photon Flux (Free Index): 5.07e-08 +/- 3.62e-08
Energy Flux (Free Index): 2.26e-05 +/- 1.23e-05

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/809566/cmap_HighResolution_390441601_390700801_4FGL_J2323.5-0317_daily_bin583.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.42e-08', energy_flux2='2.26e-05', photon_flux_error='2.75e-08', dlogl='8.90e-03', energy_flux='2.22e-05', photon_flux2='5.07e-08', job_status='DONE', time_completed='2021-09-29 14:45:06.998507', photon_index_error2='0.48', photon_index2='2.10', ts='14.77', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', energy_flux_error2='1.23e-05', EG='0.77', time_epoch_completed='1632951907.0', return_code='0', job_id='809566', GAL2='1.02', EG2='0.77', return_code2='0', energy_flux_error='1.13e-05', photon_flux_error2='3.62e-08', ts2='14.79', photon_index='2.16' WHERE bin_id='583' AND source_name='4FGL J2323.5-0317' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 14:45:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0043>
Subject: Job 809566: <4FGL_J2323.5-0317_daily_bin583> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2323.5-0317_daily_bin583 350.888 -3.29 390441601 390700801 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 :                                   714.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             335.31 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   872 sec.
    Turnaround time :                            874 sec.

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

