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


Performing analysis on: 4FGL_J2323.5-0317_daily_bin219
RA = 350.888, Dec = -3.29
tmin = 296092801, tmax = 296352001
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='808174', job_status='RUN', time_executed='2021-09-29 14:26:06.325710', time_epoch_executed='1632950766.33' WHERE source_name='4FGL J2323.5-0317' and cadence='daily' and bin_id='219'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/808174

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/808174/ft1_4FGL_J2323.5-0317_daily_bin219.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/808174/ft2_4FGL_J2323.5-0317_daily_bin219.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/808174/ft1_4FGL_J2323.5-0317_daily_bin219.fits outfile=/scratch/kocevski/808174/ft1_filteredMKT_4FGL_J2323.5-0317_daily_bin219.fits ra=350.888 dec=-3.29 rad=12.0 tmin=296092801.0 tmax=296352001.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 2.44
user 2.22
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/808174/ft1_filtered_4FGL_J2323.5-0317_daily_bin219.fits" evtable="EVENTS" scfile=/scratch/kocevski/808174/ft2_4FGL_J2323.5-0317_daily_bin219.fits sctable="SC_DATA" outfile=/scratch/kocevski/808174/ltcube_296092801_296352001_4FGL_J2323.5-0317_daily_bin219.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/808174/ft2_4FGL_J2323.5-0317_daily_bin219.fits
.....................!
real 13.15
user 12.79
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/808174/ft1_filtered_4FGL_J2323.5-0317_daily_bin219.fits evtable="EVENTS" scfile=/scratch/kocevski/808174/ft2_4FGL_J2323.5-0317_daily_bin219.fits sctable="SC_DATA" expcube=/scratch/kocevski/808174/ltcube_296092801_296352001_4FGL_J2323.5-0317_daily_bin219.fits outfile=/scratch/kocevski/808174/expmap_296092801_296352001_4FGL_J2323.5-0317_daily_bin219.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/808174/ltcube_296092801_296352001_4FGL_J2323.5-0317_daily_bin219.fits
.....................!
real 190.55
user 185.10
sys 5.06

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/808174/ft1_filtered_4FGL_J2323.5-0317_daily_bin219.fits scfile=/scratch/kocevski/808174/ft2_4FGL_J2323.5-0317_daily_bin219.fits outfile=/scratch/kocevski/808174/cmap_296092801_296352001_4FGL_J2323.5-0317_daily_bin219.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.36
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/808174/ft1_filtered_4FGL_J2323.5-0317_daily_bin219.fits scfile=/scratch/kocevski/808174/ft2_4FGL_J2323.5-0317_daily_bin219.fits outfile=/scratch/kocevski/808174/cmap_HighResolution_296092801_296352001_4FGL_J2323.5-0317_daily_bin219.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.58
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/808174/ft1_filtered_4FGL_J2323.5-0317_daily_bin219.fits evtable="EVENTS" scfile=/scratch/kocevski/808174/ft2_4FGL_J2323.5-0317_daily_bin219.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/808174/Model_4FGL_J2323.5-0317_daily_bin219.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/808174/ft1_filtered_4FGL_J2323.5-0317_daily_bin219.fits.....................!
real 65.03
user 63.56
sys 1.29

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11036E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    40.339       1.0000         .10000E-03   10000.    
     3 'Prefactor '    34.417       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10050E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    25.438       1.0000         .10000E-03   10000.    
     8 'Prefactor '    37.008       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10115E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    2.6670       1.0000         .10000E-03   10000.    
    11 'norm      '    .10023E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.2106       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10219E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.0474       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    14.451       1.0000         .10000E-03   10000.    
    18 'Prefactor '    65.430       1.0000         .10000E-03   10000.    
    19 'Prefactor '    7.3940       1.0000         .10000E-03   10000.    
    20 'Prefactor '    53.138       1.0000         .10000E-03   10000.    
    21 'Prefactor '    2.2141       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    20.123       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .60049       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .97483       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=   6770.074     FROM MIGRAD    STATUS=CONVERGED    561 CALLS     2877 TOTAL
                     EDM=   .14E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    18.384       -.50625E-06** at limit **
   2  Prefactor     40.320        46.397       -.14618E-04   -.26096E-06
   3  Prefactor     34.414        28.373       -.53467E-06   -.17869E-05
   4  Prefactor     .10000E-03    2.3088       -.23196E-07** at limit **
   5  norm          .10000E-03    8.5665       -.10380E-05** at limit **
   6  Prefactor     .10000E-03    10.752        .16706E-05** at limit **
   7  Prefactor     25.438        15.639       -.13582E-05   -.10975E-04
   8  Prefactor     36.990        32.511       -.32539E-05   -.41040E-05
   9  Prefactor     .10000E-03    3.0882        .68310E-07** at limit **
  10  norm          2.6667        1.0202       -.13441E-06   -.38041E-03
  11  norm          .10000E-03    1.9365        .65266E-07** at limit **
  12  Prefactor     .10000E-03    5.2696       -.63929E-07** at limit **
  13  Prefactor     6.2135        68.788        .23924E-05   -.20221E-04
  14  Prefactor     .10000E-03    185.69       -.85204E-05** at limit **
  15  Prefactor     5.0341        12.054        .14150E-04   -.47154E-04
  16  Prefactor     .10000E-03    9.3497       -.21766E-05** at limit **
  17  norm          14.456        16.779       -.12624E-04   -.39357E-04
  18  Prefactor     65.422        47.077       -.51538E-05   -.46506E-05
  19  Prefactor     7.3917        5.5249       -.15631E-05   -.58093E-03
  20  Prefactor     53.138        39.455       -.98865E-06   -.50319E-04
  21  Prefactor     2.2098        54.320        .82084E-05   -.69532E-04
  22  Prefactor     .10000E-03    8.4236        .16911E-05** at limit **
  23  Prefactor     20.118        9.8612       -.53714E-07   -.19325E-04
  24  Normalizat    .60065        .17903        .97039E-06   -.92984E-04
  25  Prefactor     .97472        .12476        .40455E-06   -.86204E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 40.3205
  Prefactor  = 34.414
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 25.4385
  Prefactor  = 36.9903
  Prefactor  = 0.0001
  norm       = 2.66667
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.21346
  Prefactor  = 0.0001
  Prefactor  = 5.03408
  Prefactor  = 0.0001
  norm       = 14.4562
  Prefactor  = 65.4217
  Prefactor  = 7.3917
  Prefactor  = 53.1377
  Prefactor  = 2.20976
  Prefactor  = 0.0001
  Prefactor  = 20.1181
  Normalizat = 0.600649
  Prefactor  = 0.974722
 **********
 **   18 **HESSE 
 **********

 FCN=   6770.074     FROM HESSE     STATUS=OK           425 CALLS     3302 TOTAL
                     EDM=   .29E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    19.130        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     40.320        46.377        .63112E-04   -1.4437    
   3  Prefactor     34.414        28.426        .68308E-04   -1.4534    
   4  Prefactor     .10000E-03    2.3105        .12210E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    8.6592        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    10.762        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     25.438        15.642        .79425E-04   -1.4699    
   8  Prefactor     36.990        32.589        .65881E-04   -1.4491    
   9  Prefactor     .10000E-03    3.0963        .14106E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          2.6667        1.0170        .48442E-04   -1.5381    
  11  norm          .10000E-03    1.9455        .11177E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    5.3025        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     6.2135        68.533        .16108E-03   -1.5209    
  14  Prefactor     .10000E-03    185.77        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     5.0341        11.933        .17898E-03   -1.5259    
  16  Prefactor     .10000E-03    9.3708        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          14.456        16.744        .10536E-03   -1.4947    
  18  Prefactor     65.422        47.068        .49614E-04   -1.4089    
  19  Prefactor     7.3917        5.4962        .13802E-03   -1.5164    
  20  Prefactor     53.138        39.378        .55022E-04   -1.4249    
  21  Prefactor     2.2098        53.773        .27641E-03   -1.5411    
  22  Prefactor     .10000E-03    8.4672        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     20.118        9.8823        .89286E-04   -1.4811    
  24  Normalizat    .60065        .20571        .31802E-03   -1.0796    
  25  Prefactor     .97472        .14452        .19074E-03   -.93577    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.88349e-10
Minuit parameter uncertainties:
  1  0.000283032
  2  46.4186
  3  28.437
  4  2.51232e-07
  5  1.21466e-05
  6  5.42144e-06
  7  15.6444
  8  32.6049
  9  1.84792e-05
  10  1.01701
  11  7.01621e-06
  12  8.21717e-06
  13  41.331
  14  5.93328e-05
  15  11.9384
  16  1.28892e-05
  17  16.7495
  18  47.0948
  19  5.49659
  20  39.3971
  21  21.823
  22  5.03425e-06
  23  9.88314
  24  0.205973
  25  0.144574
Done.

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

Extracting fit parameters...

4FGL J2323.5-0317
   Spectrum: LogParabola
373         norm:  2.667e+00  1.017e+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.747e-01  1.446e-01  0.000e+00  1.000e+01 ( 1.000e+00)
521        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
522        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
519   Normalization:  6.006e-01  2.060e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 18.38
Ra Dec: 350.888 -3.290
Photon Index (Fixed Index): 2.16 +/- 0.00
Photon Flux (Fixed Index): 1.03e-07 +/- 3.94e-08
Energy Flux (Fixed Index): 4.23e-05 +/- 1.61e-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) = 6769.53695554
delta logL = 0.537420511278

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6769.530809
delta logL = 0.543567055618

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.5667       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7635       1.0000          .0000       5.0000    
     3 'Normalizat'    .63656       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95921       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=   6769.531     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      206 TOTAL
                     EDM=   .27E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.5662        1.0301        .63699E-03    .36052E-04
   2  alpha         1.7635        .31790        .25793       -.33049E-04
   3  Normalizat    .63656        .16407        .69993E-01    .34839E-04
   4  Prefactor     .95921        .12279        .45755E-01    .67539E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 2.56615
  alpha      = 1.76355
  Normalizat = 0.636556
  Prefactor  = 0.959212
 **********
 **   18 **HESSE 
 **********

 FCN=   6769.531     FROM HESSE     STATUS=OK            33 CALLS      239 TOTAL
                     EDM=   .72E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.5662        1.1068        .25479E-04   -1.5388    
   2  alpha         1.7635        .37022        .10485E-01   -.29902    
   3  Normalizat    .63656        .18881        .30979E-03   -1.0645    
   4  Prefactor     .95921        .14127        .19216E-03   -.94102    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.22532e-13
Minuit parameter uncertainties:
  1  1.10685
  2  0.371722
  3  0.189002
  4  0.141324
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/808174': 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) = 6769.5308088
delta logL = 0.543567255319

Extracting fit parameters...

4FGL J2323.5-0317
   Spectrum: LogParabola
373         norm:  2.566e+00  1.107e+00  1.000e-04  1.000e+04 ( 1.000e-11)
374        alpha:  1.764e+00  3.717e-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.592e-01  1.413e-01  0.000e+00  1.000e+01 ( 1.000e+00)
521        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
522        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
519   Normalization:  6.366e-01  1.890e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 19.50
Ra Dec: 350.888 -3.290
Photon Index (Free Index): 1.76 +/- 0.37
Photon Flux (Free Index): 7.27e-08 +/- 4.06e-08
Energy Flux (Free Index): 5.73e-05 +/- 3.06e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/808174/cmap_HighResolution_296092801_296352001_4FGL_J2323.5-0317_daily_bin219.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.03e-07', energy_flux2='5.73e-05', photon_flux_error='3.94e-08', dlogl='5.44e-01', energy_flux='4.23e-05', photon_flux2='7.27e-08', job_status='DONE', time_completed='2021-09-29 14:37:02.133976', photon_index_error2='0.37', photon_index2='1.76', ts='18.38', fit_tolerance='1e-08', GAL='0.97', photon_index_error='0.00', energy_flux_error2='3.06e-05', EG='0.60', time_epoch_completed='1632951422.13', return_code='0', job_id='808174', GAL2='0.96', EG2='0.64', return_code2='0', energy_flux_error='1.61e-05', photon_flux_error2='4.06e-08', ts2='19.50', photon_index='2.16' WHERE bin_id='219' AND source_name='4FGL J2323.5-0317' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 14:37:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0246>
Subject: Job 808174: <4FGL_J2323.5-0317_daily_bin219> in cluster <slac> Done

Job <4FGL_J2323.5-0317_daily_bin219> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 14:25:17 2021
Job was executed on host(s) <bullet0246>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 14:25:18 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 14:25:18 2021
Terminated at Wed Sep 29 14:37:03 2021
Results reported at Wed Sep 29 14:37:03 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2323.5-0317_daily_bin219 350.888 -3.29 296092801 296352001 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 :                                   622.27 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             269.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   705 sec.
    Turnaround time :                            706 sec.

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

