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


Performing analysis on: 4FGL_J2323.6-0617_daily_bin162
RA = 350.916, Dec = -6.2953
tmin = 281318401, tmax = 281577601
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='814587', job_status='RUN', time_executed='2021-09-29 14:46:01.187613', time_epoch_executed='1632951961.19' WHERE source_name='4FGL J2323.6-0617' and cadence='daily' and bin_id='162'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/814587

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/814587/ft1_4FGL_J2323.6-0617_daily_bin162.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/814587/ft2_4FGL_J2323.6-0617_daily_bin162.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/814587/ft1_4FGL_J2323.6-0617_daily_bin162.fits outfile=/scratch/kocevski/814587/ft1_filteredMKT_4FGL_J2323.6-0617_daily_bin162.fits ra=350.916 dec=-6.2953 rad=12.0 tmin=281318401.0 tmax=281577601.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.46
user 3.25
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/814587/ft2_4FGL_J2323.6-0617_daily_bin162.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/814587/ft1_filteredMKT_4FGL_J2323.6-0617_daily_bin162.fits evtable="EVENTS" outfile="/scratch/kocevski/814587/ft1_filtered_4FGL_J2323.6-0617_daily_bin162.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.50
user 0.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/814587/ft1_filtered_4FGL_J2323.6-0617_daily_bin162.fits" evtable="EVENTS" scfile=/scratch/kocevski/814587/ft2_4FGL_J2323.6-0617_daily_bin162.fits sctable="SC_DATA" outfile=/scratch/kocevski/814587/ltcube_281318401_281577601_4FGL_J2323.6-0617_daily_bin162.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/814587/ft2_4FGL_J2323.6-0617_daily_bin162.fits
.....................!
real 11.69
user 11.35
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/814587/ft1_filtered_4FGL_J2323.6-0617_daily_bin162.fits evtable="EVENTS" scfile=/scratch/kocevski/814587/ft2_4FGL_J2323.6-0617_daily_bin162.fits sctable="SC_DATA" expcube=/scratch/kocevski/814587/ltcube_281318401_281577601_4FGL_J2323.6-0617_daily_bin162.fits outfile=/scratch/kocevski/814587/expmap_281318401_281577601_4FGL_J2323.6-0617_daily_bin162.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/814587/ltcube_281318401_281577601_4FGL_J2323.6-0617_daily_bin162.fits
.....................!
real 189.53
user 185.20
sys 3.95

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/814587/ft1_filtered_4FGL_J2323.6-0617_daily_bin162.fits scfile=/scratch/kocevski/814587/ft2_4FGL_J2323.6-0617_daily_bin162.fits outfile=/scratch/kocevski/814587/cmap_281318401_281577601_4FGL_J2323.6-0617_daily_bin162.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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/814587/ft1_filtered_4FGL_J2323.6-0617_daily_bin162.fits scfile=/scratch/kocevski/814587/ft2_4FGL_J2323.6-0617_daily_bin162.fits outfile=/scratch/kocevski/814587/cmap_HighResolution_281318401_281577601_4FGL_J2323.6-0617_daily_bin162.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.56
user 0.40
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/814587/ft1_filtered_4FGL_J2323.6-0617_daily_bin162.fits evtable="EVENTS" scfile=/scratch/kocevski/814587/ft2_4FGL_J2323.6-0617_daily_bin162.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/814587/Model_4FGL_J2323.6-0617_daily_bin162.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/814587/ft1_filtered_4FGL_J2323.6-0617_daily_bin162.fits.....................!
real 63.23
user 61.87
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .70204E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10087E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.5143       1.0000         .10000E-03   10000.    
     7 'Prefactor '    20.283       1.0000         .10000E-03   10000.    
     8 'norm      '    .10037E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .11077E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.2390       1.0000         .10000E-03   10000.    
    14 'norm      '    .10041E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    48.298       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10209E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    16.665       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10079E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    23.564       1.0000         .10000E-03   10000.    
    22 'Prefactor '    4.0596       1.0000         .10000E-03   10000.    
    23 'Prefactor '    34.591       1.0000         .10000E-03   10000.    
    24 'norm      '    .21887       1.0000         .10000E-03   10000.    
    25 'norm      '    .10023E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10086E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.1604       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .68871       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=   6880.138     FROM MIGRAD    STATUS=CONVERGED    760 CALLS     3730 TOTAL
                     EDM=   .81E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10011E-03    4.2915       -.11522E-05** at limit **
   2  Prefactor     .10000E-03    45.467        .14142E-04** at limit **
   3  Prefactor     .10000E-03    3.2040       -.40465E-08** at limit **
   4  norm          .10000E-03    .17281       -.17362E-07** at limit **
   5  Prefactor     .10000E-03    7.8499        .90451E-07** at limit **
   6  Prefactor     5.5141        5.3032       -.24283E-05    .50117E-04
   7  Prefactor     20.284        11.556        .22260E-05   -.17176E-04
   8  norm          .10000E-03    2.9517        .10223E-06** at limit **
   9  Prefactor     .10000E-03    17.469        .19294E-05** at limit **
  10  Prefactor     .10000E-03    9.3253       -.37931E-05** at limit **
  11  Prefactor     .10000E-03    6.7873       -.49869E-06** at limit **
  12  Prefactor     .10000E-03    2.2145        .32621E-06** at limit **
  13  norm          1.2391        .80315        .49288E-08   -.38434E-03
  14  norm          .10000E-03    2.0936        .16659E-06** at limit **
  15  Prefactor     48.303        43.448       -.37955E-06   -.12366E-04
  16  Prefactor     .10001E-03    58.579       -.18161E-04** at limit **
  17  Prefactor     16.682        12.351        .10967E-04    .18984E-03
  18  Prefactor     .10000E-03    115.77        .15929E-05** at limit **
  19  Prefactor     .10000E-03    3.8631       -.68805E-07** at limit **
  20  norm          .10000E-03    6.3212        .20355E-06** at limit **
  21  Prefactor     23.397        52.743       -.48242E-04    .78460E-06
  22  Prefactor     4.0619        3.5343       -.14788E-06   -.45490E-03
  23  Prefactor     34.497        35.389        .21594E-04   -.10725E-04
  24  norm          .21884        .23875       -.90765E-07   -.94822E-03
  25  norm          .10000E-03    1.6079        .38972E-07** at limit **
  26  Prefactor     .10000E-03    9.0870        .40258E-05** at limit **
  27  Prefactor     .10000E-03    2.1848       -.51529E-07** at limit **
  28  Normalizat    1.1599        .16121       -.14030E-05    .14288E-03
  29  Prefactor     .68917        .12169        .40253E-06   -.42890E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100108
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.51408
  Prefactor  = 20.2841
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.23907
  norm       = 0.0001
  Prefactor  = 48.3027
  Prefactor  = 0.000100015
  Prefactor  = 16.6824
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 23.3966
  Prefactor  = 4.06191
  Prefactor  = 34.4974
  norm       = 0.218841
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.15993
  Prefactor  = 0.689165
 **********
 **   18 **HESSE 
 **********

 FCN=   6880.138     FROM HESSE     STATUS=OK           545 CALLS     4275 TOTAL
                     EDM=   .56E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10011E-03    21.121        .33306E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    45.690        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    3.2464        .14497E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    .17738        .67301E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    7.9018        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     5.5141        5.3025        .17110E-03   -1.5238    
   7  Prefactor     20.284        11.557        .88934E-04   -1.4807    
   8  norm          .10000E-03    2.9588        .13916E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    17.600        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    9.3228        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    6.7914        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    2.2212        .12054E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.2391        .78507        .57051E-04   -1.5485    
  14  norm          .10000E-03    2.1435        .11717E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     48.303        43.439        .57699E-04   -1.4317    
  16  Prefactor     .10001E-03    59.239        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     16.682        12.391        .98109E-04   -1.4891    
  18  Prefactor     .10000E-03    115.86        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    3.8741        .15910E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    6.3240        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     23.397        52.841        .82517E-04   -1.4740    
  22  Prefactor     4.0619        3.5244        .13785E-03   -1.5305    
  23  Prefactor     34.497        35.382        .68136E-04   -1.4533    
  24  norm          .21884        .22819        .41020E-03   -1.5614    
  25  norm          .10000E-03    1.6176        .10263E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    9.3755        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    2.2111        .11968E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.1599        .18367        .22458E-03   -.87850    
  29  Prefactor     .68917        .13845        .22283E-03   -1.0395    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.58897e-09
Minuit parameter uncertainties:
  1  0.00302803
  2  5.13655e-05
  3  4.52367e-07
  4  7.90985e-08
  5  8.00047e-06
  6  5.30293
  7  11.5578
  8  2.67829e-06
  9  1.45836e-05
  10  4.42365e-05
  11  1.84619e-05
  12  3.12578e-05
  13  0.785079
  14  4.09045e-05
  15  43.4675
  16  0.00187663
  17  12.3933
  18  9.82349e-05
  19  1.68158e-05
  20  8.18389e-06
  21  52.9465
  22  3.52461
  23  35.4035
  24  0.228192
  25  9.71863e-06
  26  4.55334e-05
  27  1.24239e-05
  28  0.183769
  29  0.138522
Done.

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

Extracting fit parameters...

4FGL J2323.6-0617
   Spectrum: LogParabola
388         norm:  1.000e-04  4.090e-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:  6.892e-01  1.385e-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.160e+00  1.838e-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: 3.95e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.54e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/814587/likelihoodResults_281318401_281577601_4FGL_J2323.6-0617_daily_bin162.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) = 6880.14069922
delta logL = -0.00221969725499

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6880.13847952
delta logL = 3.99268174078e-10

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2383       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1599       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .68917       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=   6880.138     FROM MIGRAD    STATUS=CONVERGED     80 CALLS      217 TOTAL
                     EDM=   .53E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10001E-03    2.1803        .11718E-02** at limit **
   2  alpha         2.2255        3.4899        .16576E-01    .61905E-06
   3  Normalizat    1.1599        .17488        .22458E-03    .86058E-05
   4  Prefactor     .68917        .13780        .22283E-03    .68875E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100006
  alpha      = 2.22546
  Normalizat = 1.15993
  Prefactor  = 0.689167
 **********
 **   18 **HESSE 
 **********

 FCN=   6880.138     FROM HESSE     STATUS=OK            23 CALLS      240 TOTAL
                     EDM=   .59E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10001E-03    2.1451        .23435E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.2255        2.9059        .33152E-02   -.11004    
   3  Normalizat    1.1599        .17504        .89832E-05   -.87850    
   4  Prefactor     .68917        .13793        .89134E-05   -1.0395    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.93051e-09
Minuit parameter uncertainties:
  1  0.000235616
  2  219.425
  3  0.175125
  4  0.137993
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/814587': 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) = 6880.13847951
delta logL = 3.79986886401e-09

Extracting fit parameters...

4FGL J2323.6-0617
   Spectrum: LogParabola
388         norm:  1.000e-04  2.356e-04  1.000e-04  1.000e+04 ( 1.000e-12)
389        alpha:  2.225e+00  2.194e+02  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:  6.892e-01  1.380e-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.160e+00  1.751e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/814587/cmap_HighResolution_281318401_281577601_4FGL_J2323.6-0617_daily_bin162.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.54e-05', job_status='DONE', photon_flux_upper_limit='3.95e-08', time_completed='2021-09-29 14:59:25.411607', job_id='814587', GAL2='0.69', fit_tolerance='1e-08', EG2='1.16', EG='1.16', time_epoch_completed='1632952765.41', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.69', dlogl='3.80e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.24' WHERE bin_id='162' AND source_name='4FGL J2323.6-0617' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 14:59:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0044>
Subject: Job 814587: <4FGL_J2323.6-0617_daily_bin162> in cluster <slac> Done

Job <4FGL_J2323.6-0617_daily_bin162> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep 29 14:45:49 2021
Job was executed on host(s) <bullet0044>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 14:45:51 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:51 2021
Terminated at Wed Sep 29 14:59:26 2021
Results reported at Wed Sep 29 14:59:26 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2323.6-0617_daily_bin162 350.916 -6.2953 281318401 281577601 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 :                                   801.22 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             330.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   814 sec.
    Turnaround time :                            817 sec.

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

