/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 24 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 = 7411
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2323.5-0317_daily_bin404
RA = 350.888, Dec = -3.29
tmin = 344044801, tmax = 344304001
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='808465', job_status='RUN', time_executed='2021-09-29 14:26:24.605727', time_epoch_executed='1632950784.61' WHERE source_name='4FGL J2323.5-0317' and cadence='daily' and bin_id='404'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/808465

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/808465/ft1_4FGL_J2323.5-0317_daily_bin404.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/808465/ft2_4FGL_J2323.5-0317_daily_bin404.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/808465/ft1_4FGL_J2323.5-0317_daily_bin404.fits outfile=/scratch/kocevski/808465/ft1_filteredMKT_4FGL_J2323.5-0317_daily_bin404.fits ra=350.888 dec=-3.29 rad=12.0 tmin=344044801.0 tmax=344304001.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.50
user 3.27
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/808465/ft1_filtered_4FGL_J2323.5-0317_daily_bin404.fits" evtable="EVENTS" scfile=/scratch/kocevski/808465/ft2_4FGL_J2323.5-0317_daily_bin404.fits sctable="SC_DATA" outfile=/scratch/kocevski/808465/ltcube_344044801_344304001_4FGL_J2323.5-0317_daily_bin404.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/808465/ft2_4FGL_J2323.5-0317_daily_bin404.fits
.....................!
real 13.18
user 12.81
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/808465/ft1_filtered_4FGL_J2323.5-0317_daily_bin404.fits evtable="EVENTS" scfile=/scratch/kocevski/808465/ft2_4FGL_J2323.5-0317_daily_bin404.fits sctable="SC_DATA" expcube=/scratch/kocevski/808465/ltcube_344044801_344304001_4FGL_J2323.5-0317_daily_bin404.fits outfile=/scratch/kocevski/808465/expmap_344044801_344304001_4FGL_J2323.5-0317_daily_bin404.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/808465/ltcube_344044801_344304001_4FGL_J2323.5-0317_daily_bin404.fits
.....................!
real 191.15
user 185.37
sys 5.33

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/808465/ft1_filtered_4FGL_J2323.5-0317_daily_bin404.fits scfile=/scratch/kocevski/808465/ft2_4FGL_J2323.5-0317_daily_bin404.fits outfile=/scratch/kocevski/808465/cmap_344044801_344304001_4FGL_J2323.5-0317_daily_bin404.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.39
sys 0.14

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/808465/ft1_filtered_4FGL_J2323.5-0317_daily_bin404.fits evtable="EVENTS" scfile=/scratch/kocevski/808465/ft2_4FGL_J2323.5-0317_daily_bin404.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/808465/Model_4FGL_J2323.5-0317_daily_bin404.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/808465/ft1_filtered_4FGL_J2323.5-0317_daily_bin404.fits.....................!
real 47.78
user 46.54
sys 1.14

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10203E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    33.156       1.0000         .10000E-03   10000.    
     3 'Prefactor '    17.198       1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.8247       1.0000         .10000E-03   10000.    
     5 'norm      '    1.4902       1.0000         .10000E-03   10000.    
     6 'Prefactor '    22.588       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .11856E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    4.1325       1.0000         .10000E-03   10000.    
    11 'norm      '    3.8076       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .11346E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10176E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10025E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10184E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    11.014       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    39.037       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    8.7194       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .74594       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .94011       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=   4562.602     FROM MIGRAD    STATUS=CONVERGED    581 CALLS     2888 TOTAL
                     EDM=   .16E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.0863       -.29230E-07** at limit **
   2  Prefactor     33.154        51.977        .67252E-06    .21236E-04
   3  Prefactor     17.175        46.110        .14742E-05   -.10310E-04
   4  Prefactor     4.8256        7.6240        .38297E-06   -.75044E-04
   5  norm          1.4889        25.603        .14301E-04   -.27517E-04
   6  Prefactor     22.577        29.422        .29554E-06   -.38827E-04
   7  Prefactor     .10000E-03    13.513        .69737E-06** at limit **
   8  Prefactor     .10000E-03    68.670       -.40062E-06** at limit **
   9  Prefactor     .10000E-03    3.6153        .45866E-07** at limit **
  10  norm          4.1316        1.4347       -.55746E-07   -.37817E-03
  11  norm          3.8073        4.5937        .83441E-07    .22666E-04
  12  Prefactor     .10000E-03    3.0296        .28956E-07** at limit **
  13  Prefactor     .10000E-03    30.039        .60713E-06** at limit **
  14  Prefactor     .10000E-03    133.82        .31090E-06** at limit **
  15  Prefactor     .10000E-03    5.1281       -.50799E-06** at limit **
  16  Prefactor     .10000E-03    23.699       -.15265E-06** at limit **
  17  norm          .10000E-03    8.9580       -.34332E-06** at limit **
  18  Prefactor     .10000E-03    65.310       -.56150E-07** at limit **
  19  Prefactor     11.010        5.9017        .25319E-06    .42487E-04
  20  Prefactor     .10000E-03    9.2460        .53006E-07** at limit **
  21  Prefactor     39.038        26.604        .34456E-06    .25039E-04
  22  Prefactor     .10000E-03    12.643       -.51274E-06** at limit **
  23  Prefactor     8.7197        9.6677        .13661E-06    .24020E-04
  24  Normalizat    .74582        .20852        .14618E-05    .11925E-03
  25  Prefactor     .94018        .15187       -.22245E-05   -.72670E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 33.1537
  Prefactor  = 17.1746
  Prefactor  = 4.82561
  norm       = 1.48888
  Prefactor  = 22.577
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.13164
  norm       = 3.80729
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.0098
  Prefactor  = 0.0001
  Prefactor  = 39.0383
  Prefactor  = 0.0001
  Prefactor  = 8.71968
  Normalizat = 0.745822
  Prefactor  = 0.940182
 **********
 **   18 **HESSE 
 **********

 FCN=   4562.602     FROM HESSE     STATUS=OK           423 CALLS     3311 TOTAL
                     EDM=   .36E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.1218        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     33.154        51.983        .69591E-04   -1.4556    
   3  Prefactor     17.175        46.161        .96578E-04   -1.4879    
   4  Prefactor     4.8256        7.6166        .91574E-03   -1.5269    
   5  norm          1.4889        25.911        .17560E-02   -1.5464    
   6  Prefactor     22.577        29.443        .84279E-04   -1.4757    
   7  Prefactor     .10000E-03    13.573        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    69.125        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    3.6221        .12541E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          4.1316        1.4358        .45030E-04   -1.5301    
  11  norm          3.8073        4.5842        .15385E-03   -1.5318    
  12  Prefactor     .10000E-03    3.0335        .11482E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    30.069        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    133.83        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    5.1573        .14965E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    23.831        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    8.9709        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    65.386        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     11.010        5.9207        .11264E-03   -1.5044    
  20  Prefactor     .10000E-03    9.2482        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     39.038        26.615        .64152E-04   -1.4458    
  22  Prefactor     .10000E-03    12.702        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     8.7197        9.6779        .13575E-03   -1.5117    
  24  Normalizat    .74582        .24465        .29316E-03   -1.0211    
  25  Prefactor     .94018        .17680        .19568E-03   -.94751    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.60684e-10
Minuit parameter uncertainties:
  1  8.96525e-06
  2  52.0546
  3  46.2568
  4  7.61815
  5  12.4281
  6  29.4619
  7  2.07561e-05
  8  0.000273236
  9  4.19922e-06
  10  1.43577
  11  4.58457
  12  5.33724e-06
  13  5.5572e-05
  14  0.00046131
  15  8.09101e-05
  16  0.000163304
  17  8.02849e-05
  18  6.31099e-05
  19  5.92101
  20  9.78675e-06
  21  26.6235
  22  4.01081e-05
  23  9.67968
  24  0.245014
  25  0.176909
Done.

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

Extracting fit parameters...

4FGL J2323.5-0317
   Spectrum: LogParabola
373         norm:  4.132e+00  1.436e+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.402e-01  1.769e-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.458e-01  2.450e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 23.98
Ra Dec: 350.888 -3.290
Photon Index (Fixed Index): 2.16 +/- 0.00
Photon Flux (Fixed Index): 1.60e-07 +/- 5.56e-08
Energy Flux (Fixed Index): 6.55e-05 +/- 2.28e-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) = 4562.32110198
delta logL = 0.280934967748

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4562.31990655
delta logL = 0.28213039919

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.8465       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4604       1.0000          .0000       5.0000    
     3 'Normalizat'    .69539       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96307       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=   4562.320     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      240 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.8446        17.275        .51442E-02    .75825E-04
   2  alpha         2.4605        3.7121        .19556        .35315E-04
   3  Normalizat    .69505        .22876        .68291E-01    .16158E-04
   4  Prefactor     .96332        .11098        .45804E-01   -.33619E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 3.84465
  alpha      = 2.46048
  Normalizat = 0.695046
  Prefactor  = 0.963324
 **********
 **   18 **HESSE 
 **********

 FCN=   4562.320     FROM HESSE     STATUS=OK            33 CALLS      273 TOTAL
                     EDM=   .55E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.8446        1.4290        .40224E-04   -1.5316    
   2  alpha         2.4605        .40678        .81832E-02   -.15807E-01
   3  Normalizat    .69505        .24505        .30220E-03   -1.0409    
   4  Prefactor     .96332        .17754        .19343E-03   -.93962    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.49164e-10
Minuit parameter uncertainties:
  1  1.42897
  2  0.408594
  3  0.245436
  4  0.177651
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/808465': 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) = 4562.31990415
delta logL = 0.282132793323

Extracting fit parameters...

4FGL J2323.5-0317
   Spectrum: LogParabola
373         norm:  3.845e+00  1.429e+00  1.000e-04  1.000e+04 ( 1.000e-11)
374        alpha:  2.460e+00  4.086e-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.633e-01  1.777e-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.950e-01  2.454e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 24.67
Ra Dec: 350.888 -3.290
Photon Index (Free Index): 2.46 +/- 0.41
Photon Flux (Free Index): 2.02e-07 +/- 8.38e-08
Energy Flux (Free Index): 5.99e-05 +/- 2.01e-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/808465/cmap_HighResolution_344044801_344304001_4FGL_J2323.5-0317_daily_bin404.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.60e-07', energy_flux2='5.99e-05', photon_flux_error='5.56e-08', dlogl='2.82e-01', energy_flux='6.55e-05', photon_flux2='2.02e-07', job_status='DONE', time_completed='2021-09-29 14:35:43.388685', photon_index_error2='0.41', photon_index2='2.46', ts='23.98', fit_tolerance='1e-08', GAL='0.94', photon_index_error='0.00', energy_flux_error2='2.01e-05', EG='0.75', time_epoch_completed='1632951343.39', return_code='0', job_id='808465', GAL2='0.96', EG2='0.70', return_code2='0', energy_flux_error='2.28e-05', photon_flux_error2='8.38e-08', ts2='24.67', photon_index='2.16' WHERE bin_id='404' AND source_name='4FGL J2323.5-0317' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 14:35:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0037>
Subject: Job 808465: <4FGL_J2323.5-0317_daily_bin404> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2323.5-0317_daily_bin404 350.888 -3.29 344044801 344304001 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 :                                   529.00 sec.
    Max Memory :                                 1194 MB
    Average Memory :                             306.72 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   600 sec.
    Turnaround time :                            602 sec.

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

