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


Performing analysis on: 4FGL_J2323.5-0317_daily_bin509
RA = 350.888, Dec = -3.29
tmin = 371260801, tmax = 371520001
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='809452', job_status='RUN', time_executed='2021-09-29 14:34:18.545459', time_epoch_executed='1632951258.55' WHERE source_name='4FGL J2323.5-0317' and cadence='daily' and bin_id='509'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/809452

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

Retrieving the FT1 file...

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

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

Retrieving 50 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/809452/ft1_4FGL_J2323.5-0317_daily_bin509.fits


Retrieving the FT1 file...

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

Retrieving 50 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/809452/ft2_4FGL_J2323.5-0317_daily_bin509.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/809452/ft1_4FGL_J2323.5-0317_daily_bin509.fits outfile=/scratch/kocevski/809452/ft1_filteredMKT_4FGL_J2323.5-0317_daily_bin509.fits ra=350.888 dec=-3.29 rad=12.0 tmin=371260801.0 tmax=371520001.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 5.30
user 5.05
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/809452/ft1_filtered_4FGL_J2323.5-0317_daily_bin509.fits" evtable="EVENTS" scfile=/scratch/kocevski/809452/ft2_4FGL_J2323.5-0317_daily_bin509.fits sctable="SC_DATA" outfile=/scratch/kocevski/809452/ltcube_371260801_371520001_4FGL_J2323.5-0317_daily_bin509.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/809452/ft2_4FGL_J2323.5-0317_daily_bin509.fits
.....................!
real 11.78
user 11.43
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/809452/ft1_filtered_4FGL_J2323.5-0317_daily_bin509.fits evtable="EVENTS" scfile=/scratch/kocevski/809452/ft2_4FGL_J2323.5-0317_daily_bin509.fits sctable="SC_DATA" expcube=/scratch/kocevski/809452/ltcube_371260801_371520001_4FGL_J2323.5-0317_daily_bin509.fits outfile=/scratch/kocevski/809452/expmap_371260801_371520001_4FGL_J2323.5-0317_daily_bin509.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/809452/ltcube_371260801_371520001_4FGL_J2323.5-0317_daily_bin509.fits
.....................!
real 190.54
user 185.08
sys 5.05

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/809452/ft1_filtered_4FGL_J2323.5-0317_daily_bin509.fits scfile=/scratch/kocevski/809452/ft2_4FGL_J2323.5-0317_daily_bin509.fits outfile=/scratch/kocevski/809452/cmap_371260801_371520001_4FGL_J2323.5-0317_daily_bin509.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=350.888 yref=-3.29 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.35
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/809452/ft1_filtered_4FGL_J2323.5-0317_daily_bin509.fits scfile=/scratch/kocevski/809452/ft2_4FGL_J2323.5-0317_daily_bin509.fits outfile=/scratch/kocevski/809452/cmap_HighResolution_371260801_371520001_4FGL_J2323.5-0317_daily_bin509.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.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/809452/ft1_filtered_4FGL_J2323.5-0317_daily_bin509.fits evtable="EVENTS" scfile=/scratch/kocevski/809452/ft2_4FGL_J2323.5-0317_daily_bin509.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/809452/Model_4FGL_J2323.5-0317_daily_bin509.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/809452/ft1_filtered_4FGL_J2323.5-0317_daily_bin509.fits.....................!
real 45.38
user 43.89
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    31.709       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10092E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    42.234       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10095E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    3.4974       1.0000         .10000E-03   10000.    
    11 'norm      '    4.0346       1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.9838       1.0000         .10000E-03   10000.    
    13 'Prefactor '    32.629       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .16112       1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.6394       1.0000         .10000E-03   10000.    
    17 'norm      '    16.016       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10079E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    33.139       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .75433       1.0000         .10000E-03   10000.    
    23 'Prefactor '    15.312       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.3857       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .47381       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=   4301.457     FROM MIGRAD    STATUS=CONVERGED    636 CALLS     2937 TOTAL
                     EDM=   .21E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.4058       -.34639E-07** at limit **
   2  Prefactor     31.678        52.165        .27884E-05    .60179E-05
   3  Prefactor     .10000E-03    25.009       -.63480E-07** at limit **
   4  Prefactor     .10000E-03    3.2924       -.31869E-08** at limit **
   5  norm          .10000E-03    7.0157        .94360E-07** at limit **
   6  Prefactor     42.242        32.487       -.31057E-05    .12443E-05
   7  Prefactor     .10000E-03    5.9981       -.57603E-07** at limit **
   8  Prefactor     .10000E-03    12.961        .73725E-07** at limit **
   9  Prefactor     .10000E-03    2.8661        .29182E-08** at limit **
  10  norm          3.4993        1.4697       -.42549E-07    .38198E-03
  11  norm          4.0327        6.4829       -.31405E-06   -.29091E-03
  12  Prefactor     2.9839        4.6555        .32650E-07   -.77715E-04
  13  Prefactor     32.657        48.920        .13460E-04    .30248E-04
  14  Prefactor     .10000E-03    76.908       -.64618E-06** at limit **
  15  Prefactor     .10005E-03    11.617       -.10786E-05** at limit **
  16  Prefactor     2.6374        37.546       -.64065E-05   -.56983E-04
  17  norm          16.210        25.028        .15641E-07    .17154E-03
  18  Prefactor     .10000E-03    28.524        .48568E-07** at limit **
  19  Prefactor     .10000E-03    3.2709        .72252E-08** at limit **
  20  Prefactor     33.137        31.502        .26728E-05    .41385E-04
  21  Prefactor     .10000E-03    11.138       -.28966E-07** at limit **
  22  Prefactor     .72954        11.914       -.10660E-05    .61532E-04
  23  Prefactor     15.309        12.831        .14422E-05   -.18629E-04
  24  Normalizat    1.3860        .21737       -.52799E-06    .22555E-03
  25  Prefactor     .47371        .14456       -.20594E-06    .10818E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 31.6775
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 42.2416
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.49926
  norm       = 4.03268
  Prefactor  = 2.98386
  Prefactor  = 32.657
  Prefactor  = 0.0001
  Prefactor  = 0.000100047
  Prefactor  = 2.63737
  norm       = 16.2097
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 33.1368
  Prefactor  = 0.0001
  Prefactor  = 0.729541
  Prefactor  = 15.3091
  Normalizat = 1.38599
  Prefactor  = 0.473714
 **********
 **   18 **HESSE 
 **********

 FCN=   4301.457     FROM HESSE     STATUS=OK           431 CALLS     3368 TOTAL
                     EDM=   .65E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.4165        .13443E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     31.678        52.123        .71156E-04   -1.4582    
   3  Prefactor     .10000E-03    25.051        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    3.2930        .11623E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    7.0599        .16964E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     42.242        32.501        .61685E-04   -1.4407    
   7  Prefactor     .10000E-03    6.0039        .15688E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    12.962        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    2.8670        .10841E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          3.4993        1.4699        .47412E-04   -1.5334    
  11  norm          4.0327        6.4901        .20055E-03   -1.5306    
  12  Prefactor     2.9839        4.6413        .17204E-03   -1.5362    
  13  Prefactor     32.657        48.721        .70149E-04   -1.4564    
  14  Prefactor     .10000E-03    76.909        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10005E-03    30.002        .58192E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     2.6374        38.411        .25097E-03   -1.5383    
  17  norm          16.210        27.163        .10008E-03   -1.4903    
  18  Prefactor     .10000E-03    28.533        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    3.2956        .11546E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     33.137        31.548        .69608E-04   -1.4556    
  21  Prefactor     .10000E-03    11.158        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .72954        97.923        .42790E-02   -1.5537    
  23  Prefactor     15.309        12.865        .10236E-03   -1.4925    
  24  Normalizat    1.3860        .25558        .22316E-03   -.81035    
  25  Prefactor     .47371        .16813        .25055E-03   -1.1320    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.54192e-10
Minuit parameter uncertainties:
  1  8.37332e-06
  2  52.1985
  3  7.57359e-06
  4  5.57998e-07
  5  3.37322e-06
  6  32.5144
  7  7.79909e-07
  8  2.37134e-06
  9  2.03077e-06
  10  1.46995
  11  6.49126
  12  4.64182
  13  48.7799
  14  1.48992e-06
  15  0.00236976
  16  20.1451
  17  27.1837
  18  3.63222e-06
  19  9.68227e-07
  20  31.5637
  21  2.44911e-06
  22  16.9315
  23  12.8673
  24  0.255811
  25  0.168309
Done.

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

Extracting fit parameters...

4FGL J2323.5-0317
   Spectrum: LogParabola
373         norm:  3.499e+00  1.470e+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:  4.737e-01  1.683e-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.386e+00  2.558e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 12.96
Ra Dec: 350.888 -3.290
Photon Index (Fixed Index): 2.16 +/- 0.00
Photon Flux (Fixed Index): 1.35e-07 +/- 5.69e-08
Energy Flux (Fixed Index): 5.55e-05 +/- 2.33e-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) = 4299.68897393
delta logL = 1.76803129349

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4299.64846242
delta logL = 1.80854280284

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.3874       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.0156       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2567       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .53252       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=   4299.648     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      270 TOTAL
                     EDM=   .17E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.3874        1.4766        .31656E-04   -.52326E-03
   2  alpha         3.0156        .52743        .68697E-02   -.30947E-04
   3  Normalizat    1.2569        .25312        .23157E-03    .65296E-05
   4  Prefactor     .53239        .17143        .23719E-03    .40357E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.38742
  alpha      = 3.01563
  Normalizat = 1.25686
  Prefactor  = 0.532392
 **********
 **   18 **HESSE 
 **********

 FCN=   4299.648     FROM HESSE     STATUS=OK            25 CALLS      295 TOTAL
                     EDM=   .24E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.3874        1.3901        .12662E-05   -1.5399    
   2  alpha         3.0156        .49670        .27479E-03    .20774    
   3  Normalizat    1.2569        .25298        .92626E-05   -.84863    
   4  Prefactor     .53239        .17131        .94877E-05   -1.1051    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.4214e-11
Minuit parameter uncertainties:
  1  1.39008
  2  0.500179
  3  0.253226
  4  0.171478
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/809452': 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) = 4299.64846207
delta logL = 1.80854314677

Extracting fit parameters...

4FGL J2323.5-0317
   Spectrum: LogParabola
373         norm:  2.387e+00  1.390e+00  1.000e-04  1.000e+04 ( 1.000e-11)
374        alpha:  3.016e+00  5.002e-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:  5.324e-01  1.715e-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.257e+00  2.532e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 16.89
Ra Dec: 350.888 -3.290
Photon Index (Free Index): 3.02 +/- 0.50
Photon Flux (Free Index): 2.46e-07 +/- 9.20e-08
Energy Flux (Free Index): 5.08e-05 +/- 1.72e-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/809452/cmap_HighResolution_371260801_371520001_4FGL_J2323.5-0317_daily_bin509.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.35e-07', energy_flux2='5.08e-05', photon_flux_error='5.69e-08', dlogl='1.81e+00', energy_flux='5.55e-05', photon_flux2='2.46e-07', job_status='DONE', time_completed='2021-09-29 14:43:07.244099', photon_index_error2='0.50', photon_index2='3.02', ts='12.96', fit_tolerance='1e-08', GAL='0.47', photon_index_error='0.00', energy_flux_error2='1.72e-05', EG='1.39', time_epoch_completed='1632951787.24', return_code='0', job_id='809452', GAL2='0.53', EG2='1.26', return_code2='0', energy_flux_error='2.33e-05', photon_flux_error2='9.20e-08', ts2='16.89', photon_index='2.16' WHERE bin_id='509' AND source_name='4FGL J2323.5-0317' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 14:43:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0218>
Subject: Job 809452: <4FGL_J2323.5-0317_daily_bin509> in cluster <slac> Done

Job <4FGL_J2323.5-0317_daily_bin509> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Wed Sep 29 14:30:23 2021
Job was executed on host(s) <bullet0218>, 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:43:07 2021
Results reported at Wed Sep 29 14:43:07 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2323.5-0317_daily_bin509 350.888 -3.29 371260801 371520001 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 :                                   526.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             257.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   762 sec.
    Turnaround time :                            764 sec.

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

