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


Performing analysis on: 4FGL_J2323.6-0617_daily_bin513
RA = 350.916, Dec = -6.2953
tmin = 372297601, tmax = 372556801
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='816238', job_status='RUN', time_executed='2021-09-29 14:50:54.596541', time_epoch_executed='1632952254.6' WHERE source_name='4FGL J2323.6-0617' and cadence='daily' and bin_id='513'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/816238

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/816238/ft1_4FGL_J2323.6-0617_daily_bin513.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/816238/ft2_4FGL_J2323.6-0617_daily_bin513.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/816238/ft1_4FGL_J2323.6-0617_daily_bin513.fits outfile=/scratch/kocevski/816238/ft1_filteredMKT_4FGL_J2323.6-0617_daily_bin513.fits ra=350.916 dec=-6.2953 rad=12.0 tmin=372297601.0 tmax=372556801.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.29
user 3.08
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/816238/ft2_4FGL_J2323.6-0617_daily_bin513.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/816238/ft1_filteredMKT_4FGL_J2323.6-0617_daily_bin513.fits evtable="EVENTS" outfile="/scratch/kocevski/816238/ft1_filtered_4FGL_J2323.6-0617_daily_bin513.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.89
user 0.33
sys 0.55

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/816238/ft1_filtered_4FGL_J2323.6-0617_daily_bin513.fits" evtable="EVENTS" scfile=/scratch/kocevski/816238/ft2_4FGL_J2323.6-0617_daily_bin513.fits sctable="SC_DATA" outfile=/scratch/kocevski/816238/ltcube_372297601_372556801_4FGL_J2323.6-0617_daily_bin513.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/816238/ft2_4FGL_J2323.6-0617_daily_bin513.fits
.....................!
real 11.78
user 11.41
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/816238/ft1_filtered_4FGL_J2323.6-0617_daily_bin513.fits evtable="EVENTS" scfile=/scratch/kocevski/816238/ft2_4FGL_J2323.6-0617_daily_bin513.fits sctable="SC_DATA" expcube=/scratch/kocevski/816238/ltcube_372297601_372556801_4FGL_J2323.6-0617_daily_bin513.fits outfile=/scratch/kocevski/816238/expmap_372297601_372556801_4FGL_J2323.6-0617_daily_bin513.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/816238/ltcube_372297601_372556801_4FGL_J2323.6-0617_daily_bin513.fits
.....................!
real 189.52
user 185.08
sys 4.08

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/816238/ft1_filtered_4FGL_J2323.6-0617_daily_bin513.fits scfile=/scratch/kocevski/816238/ft2_4FGL_J2323.6-0617_daily_bin513.fits outfile=/scratch/kocevski/816238/cmap_372297601_372556801_4FGL_J2323.6-0617_daily_bin513.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.53
user 0.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/816238/ft1_filtered_4FGL_J2323.6-0617_daily_bin513.fits scfile=/scratch/kocevski/816238/ft2_4FGL_J2323.6-0617_daily_bin513.fits outfile=/scratch/kocevski/816238/cmap_HighResolution_372297601_372556801_4FGL_J2323.6-0617_daily_bin513.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.54
user 0.40
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/816238/ft1_filtered_4FGL_J2323.6-0617_daily_bin513.fits evtable="EVENTS" scfile=/scratch/kocevski/816238/ft2_4FGL_J2323.6-0617_daily_bin513.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/816238/Model_4FGL_J2323.6-0617_daily_bin513.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/816238/ft1_filtered_4FGL_J2323.6-0617_daily_bin513.fits.....................!
real 43.15
user 41.91
sys 1.12

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/816238/ft1_filtered_4FGL_J2323.6-0617_daily_bin513.fits', '/scratch/kocevski/816238/ft2_4FGL_J2323.6-0617_daily_bin513.fits', expMap='/scratch/kocevski/816238/expmap_372297601_372556801_4FGL_J2323.6-0617_daily_bin513.fits', expCube='/scratch/kocevski/816238/ltcube_372297601_372556801_4FGL_J2323.6-0617_daily_bin513.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/816238/Model_4FGL_J2323.6-0617_daily_bin513.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/816238/ft1_filtered_4FGL_J2323.6-0617_daily_bin513.fits
Spacecraft file(s): /scratch/kocevski/816238/ft2_4FGL_J2323.6-0617_daily_bin513.fits
Exposure map: /scratch/kocevski/816238/expmap_372297601_372556801_4FGL_J2323.6-0617_daily_bin513.fits
Exposure cube: /scratch/kocevski/816238/ltcube_372297601_372556801_4FGL_J2323.6-0617_daily_bin513.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/816238/Model_4FGL_J2323.6-0617_daily_bin513.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) = 4268.6462879

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.920       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    7.2808       1.0000         .10000E-03   10000.    
     4 'norm      '    .10061E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    19.962       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    8.0253       1.0000         .10000E-03   10000.    
     8 'norm      '    10.967       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10131E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10169E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.0050       1.0000         .10000E-03   10000.    
    14 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .44089E-01   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10147E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10233E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10031E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .11531E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    85.185       1.0000         .10000E-03   10000.    
    24 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    4.0628       1.0000         .10000E-03   10000.    
    26 'Prefactor '    8.7572       1.0000         .10000E-03   10000.    
    27 'Prefactor '    41.937       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .55374       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.0220       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=   4268.537     FROM MIGRAD    STATUS=CONVERGED   1322 CALLS     4279 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.919        11.805        .10369E-03    .87711E-05
   2  Prefactor     .10000E-03    23.106        .18142E-02** at limit **
   3  Prefactor     7.3017        10.655        .14865E-03    .21942E-03
   4  norm          .10000E-03    1.1262        .98745E-03** at limit **
   5  Prefactor     19.973        22.110        .89645E-04    .65033E-04
   6  Prefactor     .10000E-03    5.4333        .14858E-02** at limit **
   7  Prefactor     8.0257        8.0331        .14153E-03    .60566E-04
   8  norm          10.966        12.384        .12098E-03   -.28473E-04
   9  Prefactor     .10000E-03    16.237        .18142E-02** at limit **
  10  Prefactor     .10000E-03    62.983        .18142E-02** at limit **
  11  Prefactor     .10000E-03    10.322        .18142E-02** at limit **
  12  Prefactor     .10000E-03    5.7667        .15289E-02** at limit **
  13  norm          1.0050        .94644        .59651E-04   -.40614E-03
  14  norm          .10000E-03    6.5621        .16178E-02** at limit **
  15  Prefactor     .10000E-03    12.617        .18142E-02** at limit **
  16  Prefactor     .10001E-03    57.479        .14555    ** at limit **
  17  Prefactor     .10000E-03    9.6134        .18142E-02** at limit **
  18  Prefactor     .10000E-03    64.628        .18142E-02** at limit **
  19  Prefactor     .10000E-03    6.5275        .16230E-02** at limit **
  20  norm          .10000E-03    7.3953        .17347E-02** at limit **
  21  Prefactor     .10000E-03    76.456        .18142E-02** at limit **
  22  Prefactor     .10000E-03    1.1596        .68648E-03** at limit **
  23  Prefactor     85.123        41.091        .21763E-03   -.70784E-04
  24  norm          .10000E-03    .39611        .69869E-03** at limit **
  25  norm          4.0636        7.2083        .20004E-03    .41920E-03
  26  Prefactor     8.7555        15.373        .13545E-03   -.61271E-04
  27  Prefactor     41.940        14.354        .61902E-04    .83564E-04
  28  Normalizat    .55364        .24624        .31934E-03    .13005E-03
  29  Prefactor     1.0221        .18606        .18906E-03    .33794E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.9186
  Prefactor  = 0.0001
  Prefactor  = 7.30174
  norm       = 0.0001
  Prefactor  = 19.9727
  Prefactor  = 0.0001
  Prefactor  = 8.02571
  norm       = 10.9663
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.00495
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100006
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 85.1228
  norm       = 0.0001
  norm       = 4.06365
  Prefactor  = 8.75554
  Prefactor  = 41.9395
  Normalizat = 0.553637
  Prefactor  = 1.02211
 **********
 **   18 **HESSE 
 **********

 FCN=   4268.537     FROM HESSE     STATUS=OK           533 CALLS     4812 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.919        11.806        .41477E-05   -1.4935    
   2  Prefactor     .10000E-03    23.106        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     7.3017        10.640        .59460E-05   -1.5167    
   4  norm          .10000E-03    1.1263        .19749E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     19.973        22.110        .17929E-04   -1.4814    
   6  Prefactor     .10000E-03    5.4336        .29717E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     8.0257        8.0332        .56613E-05   -1.5141    
   8  norm          10.966        12.384        .48392E-05   -1.5046    
   9  Prefactor     .10000E-03    16.241        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    62.992        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    10.322        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    5.7673        .30578E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.0050        .94640        .23860E-05   -1.5507    
  14  norm          .10000E-03    6.5659        .32357E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    12.617        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10001E-03    57.659        .14521       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    9.6139        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    64.628        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    6.5292        .32459E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    7.3955        .34695E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    76.460        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    1.1596        .13730E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     85.123        41.091        .87051E-05   -1.3860    
  24  norm          .10000E-03    .39616        .13974E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          4.0636        7.2063        .80014E-05   -1.5305    
  26  Prefactor     8.7555        15.373        .54180E-05   -1.5116    
  27  Prefactor     41.940        14.355        .24761E-05   -1.4412    
  28  Normalizat    .55364        .24640        .12774E-04   -1.0999    
  29  Prefactor     1.0221        .18619        .37812E-04   -.91996    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.71953e-09
Minuit parameter uncertainties:
  1  11.8075
  2  3.16458e-05
  3  10.6431
  4  2.50471e-05
  5  22.1187
  6  2.29387e-05
  7  8.03426
  8  12.3874
  9  4.96434e-06
  10  0.000293094
  11  9.43118e-06
  12  3.2453e-05
  13  0.946412
  14  5.66195e-05
  15  7.17692e-05
  16  0.00114929
  17  1.09622e-05
  18  4.96057e-05
  19  0.000160026
  20  5.91088e-05
  21  0.000276872
  22  1.73028e-05
  23  41.1045
  24  2.39814e-05
  25  7.20783
  26  15.38
  27  14.3565
  28  0.246892
  29  0.186312
Done.

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

Extracting fit parameters...

4FGL J2323.6-0617
   Spectrum: LogParabola
388         norm:  1.000e-04  5.662e-05  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:  1.022e+00  1.863e-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:  5.536e-01  2.469e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 350.916 -6.295
Photon Flux Upper Limit: 8.16e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.19e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/816238/likelihoodResults_372297601_372556801_4FGL_J2323.6-0617_daily_bin513.txt

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) = 4268.53773697
delta logL = -0.000726348041098

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4268.53700975
delta logL = 8.64035428094e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10059E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2932       1.0000          .0000       5.0000    
     3 'Normalizat'    .55365       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0221       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=   4268.537     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      243 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10002E-03    8.8730        .36285E-03** at limit **
   2  alpha         2.3560        3.5173        .16532       -.44132E-04
   3  Normalizat    .55363        .22844        .31935E-03   -.11783E-04
   4  Prefactor     1.0221        .18152        .18906E-03   -.29140E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100018
  alpha      = 2.35601
  Normalizat = 0.553635
  Prefactor  = 1.02211
 **********
 **   18 **HESSE 
 **********

 FCN=   4268.537     FROM HESSE     STATUS=OK            23 CALLS      266 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10002E-03    8.8659        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.3560        3.5170        .66130E-02   -.57626E-01
   3  Normalizat    .55363        .22859        .12774E-04   -1.0999    
   4  Prefactor     1.0221        .18164        .37812E-04   -.91996    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.99335e-09
Minuit parameter uncertainties:
  1  0.000809045
  2  2.49588
  3  0.228979
  4  0.181745
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/816238': 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) = 4268.53700862
delta logL = 1.99418900593e-06

Extracting fit parameters...

4FGL J2323.6-0617
   Spectrum: LogParabola
388         norm:  1.000e-04  8.090e-04  1.000e-04  1.000e+04 ( 1.000e-12)
389        alpha:  2.356e+00  2.496e+00  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:  1.022e+00  1.817e-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:  5.536e-01  2.290e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 350.916 -6.295

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/816238/cmap_HighResolution_372297601_372556801_4FGL_J2323.6-0617_daily_bin513.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.19e-05', job_status='DONE', photon_flux_upper_limit='8.16e-08', time_completed='2021-09-29 15:01:28.536568', job_id='816238', GAL2='1.02', fit_tolerance='1e-08', EG2='0.55', EG='0.55', time_epoch_completed='1632952888.54', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.02', dlogl='1.99e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.24' WHERE bin_id='513' AND source_name='4FGL J2323.6-0617' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 15:01:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0124>
Subject: Job 816238: <4FGL_J2323.6-0617_daily_bin513> in cluster <slac> Done

Job <4FGL_J2323.6-0617_daily_bin513> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Sep 29 14:50:38 2021
Job was executed on host(s) <bullet0124>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 14:50:40 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:50:40 2021
Terminated at Wed Sep 29 15:01:29 2021
Results reported at Wed Sep 29 15:01:29 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2323.6-0617_daily_bin513 350.916 -6.2953 372297601 372556801 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 :                                   629.24 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             332.95 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   648 sec.
    Turnaround time :                            651 sec.

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

