/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 211 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 = 7405
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2323.6-0617_daily_bin13
RA = 350.916, Dec = -6.2953
tmin = 242697601, tmax = 242956801
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='814335', job_status='RUN', time_executed='2021-09-29 14:49:04.569306', time_epoch_executed='1632952144.57' WHERE source_name='4FGL J2323.6-0617' and cadence='daily' and bin_id='13'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/814335

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/814335/ft1_4FGL_J2323.6-0617_daily_bin13.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/814335/ft2_4FGL_J2323.6-0617_daily_bin13.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/814335/ft1_4FGL_J2323.6-0617_daily_bin13.fits outfile=/scratch/kocevski/814335/ft1_filteredMKT_4FGL_J2323.6-0617_daily_bin13.fits ra=350.916 dec=-6.2953 rad=12.0 tmin=242697601.0 tmax=242956801.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 1.43
user 1.24
sys 0.17

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/814335/ft2_4FGL_J2323.6-0617_daily_bin13.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/814335/ft2_4FGL_J2323.6-0617_daily_bin13.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/814335/ft1_filteredMKT_4FGL_J2323.6-0617_daily_bin13.fits evtable="EVENTS" outfile="/scratch/kocevski/814335/ft1_filtered_4FGL_J2323.6-0617_daily_bin13.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.48
user 0.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/814335/ft1_filtered_4FGL_J2323.6-0617_daily_bin13.fits" evtable="EVENTS" scfile=/scratch/kocevski/814335/ft2_4FGL_J2323.6-0617_daily_bin13.fits sctable="SC_DATA" outfile=/scratch/kocevski/814335/ltcube_242697601_242956801_4FGL_J2323.6-0617_daily_bin13.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/814335/ft2_4FGL_J2323.6-0617_daily_bin13.fits
.....................!
real 12.46
user 12.06
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/814335/ft1_filtered_4FGL_J2323.6-0617_daily_bin13.fits evtable="EVENTS" scfile=/scratch/kocevski/814335/ft2_4FGL_J2323.6-0617_daily_bin13.fits sctable="SC_DATA" expcube=/scratch/kocevski/814335/ltcube_242697601_242956801_4FGL_J2323.6-0617_daily_bin13.fits outfile=/scratch/kocevski/814335/expmap_242697601_242956801_4FGL_J2323.6-0617_daily_bin13.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/814335/ltcube_242697601_242956801_4FGL_J2323.6-0617_daily_bin13.fits
.....................!
real 190.76
user 185.64
sys 4.75

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 162 point sources and 0 extended sources

Setting source of interest to:
4FGL J2323.6-0617 @ 350.916 -6.2953

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/814335/ft1_filtered_4FGL_J2323.6-0617_daily_bin13.fits scfile=/scratch/kocevski/814335/ft2_4FGL_J2323.6-0617_daily_bin13.fits outfile=/scratch/kocevski/814335/cmap_242697601_242956801_4FGL_J2323.6-0617_daily_bin13.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.916 yref=-6.2953 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.52
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/814335/ft1_filtered_4FGL_J2323.6-0617_daily_bin13.fits scfile=/scratch/kocevski/814335/ft2_4FGL_J2323.6-0617_daily_bin13.fits outfile=/scratch/kocevski/814335/cmap_HighResolution_242697601_242956801_4FGL_J2323.6-0617_daily_bin13.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.916 yref=-6.2953 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.53
user 0.37
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/814335/ft1_filtered_4FGL_J2323.6-0617_daily_bin13.fits evtable="EVENTS" scfile=/scratch/kocevski/814335/ft2_4FGL_J2323.6-0617_daily_bin13.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/814335/Model_4FGL_J2323.6-0617_daily_bin13.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/814335/ft1_filtered_4FGL_J2323.6-0617_daily_bin13.fits.....................!
real 56.24
user 54.90
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/814335/ft1_filtered_4FGL_J2323.6-0617_daily_bin13.fits', '/scratch/kocevski/814335/ft2_4FGL_J2323.6-0617_daily_bin13.fits', expMap='/scratch/kocevski/814335/expmap_242697601_242956801_4FGL_J2323.6-0617_daily_bin13.fits', expCube='/scratch/kocevski/814335/ltcube_242697601_242956801_4FGL_J2323.6-0617_daily_bin13.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/814335/Model_4FGL_J2323.6-0617_daily_bin13.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2323.6-0617'

4FGL J2323.6-0617
   Spectrum: LogParabola
388         norm:  1.612e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
389        alpha:  2.239e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
390         beta:  1.822e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
391           Eb:  7.592e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/814335/ft1_filtered_4FGL_J2323.6-0617_daily_bin13.fits
Spacecraft file(s): /scratch/kocevski/814335/ft2_4FGL_J2323.6-0617_daily_bin13.fits
Exposure map: /scratch/kocevski/814335/expmap_242697601_242956801_4FGL_J2323.6-0617_daily_bin13.fits
Exposure cube: /scratch/kocevski/814335/ltcube_242697601_242956801_4FGL_J2323.6-0617_daily_bin13.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/814335/Model_4FGL_J2323.6-0617_daily_bin13.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) = 5832.08410708

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    51.228       1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.2448       1.0000         .10000E-03   10000.    
     4 'norm      '    .10176E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .43125E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    8.4012       1.0000         .10000E-03   10000.    
    10 'Prefactor '    21.616       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .38628E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .18315       1.0000         .10000E-03   10000.    
    14 'norm      '    9.5487       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    32.962       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .14808E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    17.495       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10357E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10033E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10229E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    1.0427       1.0000         .10000E-03   10000.    
    25 'norm      '    13.122       1.0000         .10000E-03   10000.    
    26 'Prefactor '    14.579       1.0000         .10000E-03   10000.    
    27 'Prefactor '    3.2797       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.0330       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .97936       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5310E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5832.072     FROM MIGRAD    STATUS=CONVERGED    735 CALLS     4292 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.0940       -.10988E-06** at limit **
   2  Prefactor     51.228        55.455       -.21595E-06    .28442E-04
   3  Prefactor     5.2465        10.462       -.15858E-05    .10216E-03
   4  norm          .10000E-03    1.0220       -.10452E-05** at limit **
   5  Prefactor     .10001E-03    210.45       -.10615E-04** at limit **
   6  Prefactor     .10000E-03    6.2629       -.32799E-07** at limit **
   7  Prefactor     .10000E-03    8.2076        .17255E-07** at limit **
   8  norm          .10000E-03    8.0925       -.25218E-06** at limit **
   9  Prefactor     8.4014        19.505       -.25999E-06    .28601E-04
  10  Prefactor     21.623        48.676        .46207E-05    .21950E-03
  11  Prefactor     .10000E-03    8.3192        .12678E-06** at limit **
  12  Prefactor     .10003E-03    9.6089       -.31134E-05** at limit **
  13  norm          .18384        1.1539       -.13741E-05   -.14803E-03
  14  norm          9.5465        6.3681        .39695E-06    .55791E-03
  15  Prefactor     .10000E-03    23.030       -.39945E-06** at limit **
  16  Prefactor     32.920        57.850       -.18387E-05   -.65224E-05
  17  Prefactor     .10000E-03    16.318       -.27645E-06** at limit **
  18  Prefactor     17.250        575.98        .11731E-04    .11724E-04
  19  Prefactor     .10000E-03    22.221       -.32009E-05** at limit **
  20  norm          .10000E-03    14.643       -.30147E-06** at limit **
  21  Prefactor     .10000E-03    48.152       -.28536E-06** at limit **
  22  Prefactor     .10001E-03    3.3163        .12374E-05** at limit **
  23  Prefactor     .10000E-03    11.987       -.23117E-06** at limit **
  24  norm          1.0429        .63501       -.13784E-07    .48033E-03
  25  norm          13.124        7.7920        .15714E-07    .68403E-04
  26  Prefactor     14.580        12.468        .94070E-07    .50263E-04
  27  Prefactor     3.2805        6.3303       -.22736E-07   -.30506E-04
  28  Normalizat    1.0328        .20661       -.11691E-06    .48868E-03
  29  Prefactor     .97945        .14961        .16153E-05    .89584E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 51.228
  Prefactor  = 5.24655
  norm       = 0.000100001
  Prefactor  = 0.000100009
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 8.4014
  Prefactor  = 21.6231
  Prefactor  = 0.0001
  Prefactor  = 0.000100034
  norm       = 0.183837
  norm       = 9.54654
  Prefactor  = 0.0001
  Prefactor  = 32.9199
  Prefactor  = 0.000100002
  Prefactor  = 17.2501
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100013
  Prefactor  = 0.0001
  norm       = 1.04288
  norm       = 13.124
  Prefactor  = 14.5798
  Prefactor  = 3.28047
  Normalizat = 1.03276
  Prefactor  = 0.979447
 **********
 **   18 **HESSE 
 **********

 FCN=   5832.072     FROM HESSE     STATUS=OK           555 CALLS     4847 TOTAL
                     EDM=   .25E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.1986        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     51.228        55.478        .56033E-04   -1.4275    
   3  Prefactor     5.2465        10.786        .87758E-03   -1.5250    
   4  norm          .10000E-03    1.4977        .11626E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10001E-03    221.72        .64389E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    6.2958        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    8.2671        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    8.1471        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     8.4014        19.503        .13831E-03   -1.5128    
  10  Prefactor     21.623        50.915        .86152E-04   -1.4778    
  11  Prefactor     .10000E-03    8.3248        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10003E-03    21.009        .38500E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .18384        1.4581        .11923E-02   -1.5622    
  14  norm          9.5465        6.3641        .12969E-03   -1.5090    
  15  Prefactor     .10000E-03    23.053        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     32.920        58.267        .69794E-04   -1.4560    
  17  Prefactor     .10000E-03    16.326        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     17.250        602.52        .95756E-04   -1.4877    
  19  Prefactor     .10000E-03    22.398        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    14.686        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    48.245        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10001E-03    34.200        .21411E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    12.008        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          1.0429        .64301        .41450E-04   -1.5504    
  25  norm          13.124        7.9275        .11058E-03   -1.4983    
  26  Prefactor     14.580        12.467        .10490E-03   -1.4944    
  27  Prefactor     3.2805        6.3217        .22359E-03   -1.5346    
  28  Normalizat    1.0328        .24050        .26546E-03   -.91941    
  29  Prefactor     .97945        .17722        .21440E-03   -.93418    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.53356e-08
Minuit parameter uncertainties:
  1  6.11181e-05
  2  55.5338
  3  10.7896
  4  5.49046e-05
  5  0.00286525
  6  2.3732e-05
  7  2.9573e-05
  8  7.85597e-05
  9  19.5178
  10  51.0172
  11  2.77322e-05
  12  0.00169261
  13  1.03525
  14  6.36455
  15  8.24231e-05
  16  58.3679
  17  0.000316142
  18  206.188
  19  0.000322058
  20  7.77496e-05
  21  0.000140434
  22  0.00132204
  23  4.72044e-05
  24  0.643019
  25  7.92816
  26  12.4696
  27  6.32296
  28  0.240755
  29  0.177327
Done.

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

Extracting fit parameters...

4FGL J2323.6-0617
   Spectrum: LogParabola
388         norm:  9.547e+00  6.365e+00  1.000e-04  1.000e+04 ( 1.000e-12)
389        alpha:  2.239e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
390         beta:  1.822e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
391           Eb:  7.592e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
528    Prefactor:  9.794e-01  1.773e-01  0.000e+00  1.000e+01 ( 1.000e+00)
529        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
530        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
527   Normalization:  1.033e+00  2.408e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.99
Ra Dec: 350.916 -6.295
Photon Index (Fixed Index): 2.24 +/- 0.00
Photon Flux (Fixed Index): 5.04e-08 +/- 3.36e-08
Energy Flux (Fixed Index): 1.97e-05 +/- 1.31e-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) = 5832.06356255
delta logL = 0.00873776700973

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5832.06314923
delta logL = 0.0091510922166

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    9.6769       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1405       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0381       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97719       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5310E+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=   5832.063     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      234 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          9.6767        6.3286        .12882E-03    .34436E-03
   2  alpha         2.1405        .71946        .16865E-01    .28641E-04
   3  Normalizat    1.0381        .22246        .26486E-03    .90354E-04
   4  Prefactor     .97717        .17428        .21463E-03   -.24472E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 9.67674
  alpha      = 2.14045
  Normalizat = 1.03809
  Prefactor  = 0.977171
 **********
 **   18 **HESSE 
 **********

 FCN=   5832.063     FROM HESSE     STATUS=OK            25 CALLS      259 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          9.6767        6.3071        .51528E-05   -1.5086    
   2  alpha         2.1405        .71641        .67459E-03   -.14432    
   3  Normalizat    1.0381        .22253        .10594E-04   -.91765    
   4  Prefactor     .97717        .17439        .85850E-05   -.93494    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.41867e-10
Minuit parameter uncertainties:
  1  6.3075
  2  0.726824
  3  0.222729
  4  0.174493
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/814335': 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) = 5832.06314922
delta logL = 0.00915109707603

Extracting fit parameters...

4FGL J2323.6-0617
   Spectrum: LogParabola
388         norm:  9.677e+00  6.308e+00  1.000e-04  1.000e+04 ( 1.000e-12)
389        alpha:  2.140e+00  7.268e-01  0.000e+00  5.000e+00 ( 1.000e+00)
390         beta:  1.822e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
391           Eb:  7.592e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
528    Prefactor:  9.772e-01  1.745e-01  0.000e+00  1.000e+01 ( 1.000e+00)
529        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
530        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
527   Normalization:  1.038e+00  2.227e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.00
Ra Dec: 350.916 -6.295
Photon Index (Free Index): 2.14 +/- 0.73
Photon Flux (Free Index): 4.60e-08 +/- 4.38e-08
Energy Flux (Free Index): 2.00e-05 +/- 1.32e-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/814335/cmap_HighResolution_242697601_242956801_4FGL_J2323.6-0617_daily_bin13.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.04e-08', energy_flux2='2.00e-05', photon_flux_error='3.36e-08', dlogl='9.15e-03', energy_flux='1.97e-05', photon_flux2='4.60e-08', job_status='DONE', time_completed='2021-09-29 15:00:27.961369', photon_index_error2='0.73', photon_index2='2.14', ts='5.99', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', energy_flux_error2='1.32e-05', EG='1.03', time_epoch_completed='1632952827.96', return_code='0', job_id='814335', GAL2='0.98', EG2='1.04', return_code2='0', energy_flux_error='1.31e-05', photon_flux_error2='4.38e-08', ts2='6.00', photon_index='2.24' WHERE bin_id='13' AND source_name='4FGL J2323.6-0617' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 15:00:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0085>
Subject: Job 814335: <4FGL_J2323.6-0617_daily_bin13> in cluster <slac> Done

Job <4FGL_J2323.6-0617_daily_bin13> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep 29 14:45:22 2021
Job was executed on host(s) <bullet0085>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 14:45:24 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:45:24 2021
Terminated at Wed Sep 29 15:00:28 2021
Results reported at Wed Sep 29 15:00:28 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2323.6-0617_daily_bin13 350.916 -6.2953 242697601 242956801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2323.6-0617 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   682.23 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             229.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   904 sec.
    Turnaround time :                            906 sec.

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

