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


Performing analysis on: 4FGL_J2323.6-0617_daily_bin449
RA = 350.916, Dec = -6.2953
tmin = 355708801, tmax = 355968001
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='816141', job_status='RUN', time_executed='2021-09-29 14:53:24.917535', time_epoch_executed='1632952404.92' WHERE source_name='4FGL J2323.6-0617' and cadence='daily' and bin_id='449'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/816141

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/816141/ft1_4FGL_J2323.6-0617_daily_bin449.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/816141/ft2_4FGL_J2323.6-0617_daily_bin449.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/816141/ft1_4FGL_J2323.6-0617_daily_bin449.fits outfile=/scratch/kocevski/816141/ft1_filteredMKT_4FGL_J2323.6-0617_daily_bin449.fits ra=350.916 dec=-6.2953 rad=12.0 tmin=355708801.0 tmax=355968001.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 4.95
user 4.66
sys 0.25

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/816141/ft1_filtered_4FGL_J2323.6-0617_daily_bin449.fits" evtable="EVENTS" scfile=/scratch/kocevski/816141/ft2_4FGL_J2323.6-0617_daily_bin449.fits sctable="SC_DATA" outfile=/scratch/kocevski/816141/ltcube_355708801_355968001_4FGL_J2323.6-0617_daily_bin449.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/816141/ft2_4FGL_J2323.6-0617_daily_bin449.fits
.....................!
real 11.79
user 11.41
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/816141/ft1_filtered_4FGL_J2323.6-0617_daily_bin449.fits evtable="EVENTS" scfile=/scratch/kocevski/816141/ft2_4FGL_J2323.6-0617_daily_bin449.fits sctable="SC_DATA" expcube=/scratch/kocevski/816141/ltcube_355708801_355968001_4FGL_J2323.6-0617_daily_bin449.fits outfile=/scratch/kocevski/816141/expmap_355708801_355968001_4FGL_J2323.6-0617_daily_bin449.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/816141/ltcube_355708801_355968001_4FGL_J2323.6-0617_daily_bin449.fits
.....................!
real 191.55
user 186.74
sys 4.49

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/816141/ft1_filtered_4FGL_J2323.6-0617_daily_bin449.fits scfile=/scratch/kocevski/816141/ft2_4FGL_J2323.6-0617_daily_bin449.fits outfile=/scratch/kocevski/816141/cmap_355708801_355968001_4FGL_J2323.6-0617_daily_bin449.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.55
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/816141/ft1_filtered_4FGL_J2323.6-0617_daily_bin449.fits scfile=/scratch/kocevski/816141/ft2_4FGL_J2323.6-0617_daily_bin449.fits outfile=/scratch/kocevski/816141/cmap_HighResolution_355708801_355968001_4FGL_J2323.6-0617_daily_bin449.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/816141/ft1_filtered_4FGL_J2323.6-0617_daily_bin449.fits evtable="EVENTS" scfile=/scratch/kocevski/816141/ft2_4FGL_J2323.6-0617_daily_bin449.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/816141/Model_4FGL_J2323.6-0617_daily_bin449.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/816141/ft1_filtered_4FGL_J2323.6-0617_daily_bin449.fits.....................!
real 56.38
user 54.42
sys 1.34

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.8590       1.0000         .10000E-03   10000.    
     2 'Prefactor '    23.975       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    25.892       1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.3365       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    31.264       1.0000         .10000E-03   10000.    
     9 'Prefactor '    7.8765       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.9776       1.0000         .10000E-03   10000.    
    13 'norm      '    .96578       1.0000         .10000E-03   10000.    
    14 'norm      '    4.6383       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10074E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .18360E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.0071       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    11.294       1.0000         .10000E-03   10000.    
    20 'norm      '    3.6780       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    1.3281       1.0000         .10000E-03   10000.    
    25 'norm      '    4.9950       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .39901E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    8.0527       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .78268       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .95797       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=   6338.567     FROM MIGRAD    STATUS=CONVERGED    722 CALLS     3197 TOTAL
                     EDM=   .91E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.8591        8.9900        .72161E-06   -.74381E-04
   2  Prefactor     23.975        30.864       -.65299E-07   -.12537E-04
   3  Prefactor     .10000E-03    8.1100        .13137E-06** at limit **
   4  norm          .10000E-03    .26965        .46590E-08** at limit **
   5  Prefactor     25.892        18.597       -.25003E-06   -.28339E-04
   6  Prefactor     8.3364        7.9186        .10674E-05   -.66449E-04
   7  Prefactor     .10000E-03    4.7975       -.17938E-07** at limit **
   8  norm          31.264        13.626       -.19352E-06   -.33145E-04
   9  Prefactor     7.8761        15.846       -.53410E-06   -.73526E-04
  10  Prefactor     .10000E-03    44.222        .84787E-05** at limit **
  11  Prefactor     .10000E-03    8.0656       -.13459E-06** at limit **
  12  Prefactor     1.9773        4.9300        .13366E-05   -.65688E-03
  13  norm          .96564        .90005       -.75479E-07   -.10280E-02
  14  norm          4.6381        4.6801       -.13090E-05   -.37277E-03
  15  Prefactor     .10000E-03    78.208        .52393E-04** at limit **
  16  Prefactor     .10000E-03    144.60       -.37654E-04** at limit **
  17  Prefactor     1.0043        11.970        .27135E-05   -.46082E-03
  18  Prefactor     .10000E-03    60.299       -.12619E-04** at limit **
  19  Prefactor     11.294        14.588        .10931E-05   -.17283E-03
  20  norm          3.6780        26.650        .13503E-05   -.93218E-04
  21  Prefactor     .10000E-03    18.488        .59823E-07** at limit **
  22  Prefactor     .10000E-03    2.8241       -.12068E-06** at limit **
  23  Prefactor     .10000E-03    55.224       -.24916E-04** at limit **
  24  norm          1.3280        .55593        .12303E-06   -.71925E-03
  25  norm          4.9946        5.1302       -.17951E-05   -.18723E-03
  26  Prefactor     .10007E-03    10.898        .10864E-05** at limit **
  27  Prefactor     8.0524        6.5012       -.52148E-06   -.18516E-03
  28  Normalizat    .78271        .18496       -.34498E-06   -.22247E-03
  29  Prefactor     .95796        .13767        .62034E-07   -.21883E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.85914
  Prefactor  = 23.975
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 25.8915
  Prefactor  = 8.3364
  Prefactor  = 0.0001
  norm       = 31.2636
  Prefactor  = 7.87607
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.97728
  norm       = 0.96564
  norm       = 4.63812
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.00428
  Prefactor  = 0.0001
  Prefactor  = 11.2937
  norm       = 3.67798
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.328
  norm       = 4.99456
  Prefactor  = 0.000100071
  Prefactor  = 8.05243
  Normalizat = 0.782711
  Prefactor  = 0.957962
 **********
 **   18 **HESSE 
 **********

 FCN=   6338.567     FROM HESSE     STATUS=OK           557 CALLS     3754 TOTAL
                     EDM=   .48E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.8591        8.9809        .12762E-03   -1.5080    
   2  Prefactor     23.975        30.854        .81808E-04   -1.4728    
   3  Prefactor     .10000E-03    8.1751        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    .27319        .79966E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     25.892        18.430        .78727E-04   -1.4690    
   6  Prefactor     8.3364        7.9102        .13885E-03   -1.5130    
   7  Prefactor     .10000E-03    4.8269        .17029E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          31.264        13.619        .71660E-04   -1.4589    
   9  Prefactor     7.8761        15.841        .14287E-03   -1.5147    
  10  Prefactor     .10000E-03    44.397        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    8.0789        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.9773        4.8480        .26282E-03   -1.5427    
  13  norm          .96564        .85634        .67281E-03   -1.5511    
  14  norm          4.6381        4.6557        .16294E-03   -1.5277    
  15  Prefactor     .10000E-03    78.291        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    144.57        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     1.0043        47.459        .49589E-02   -1.5508    
  18  Prefactor     .10000E-03    60.318        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     11.294        14.499        .11921E-03   -1.5036    
  20  norm          3.6780        26.421        .21061E-03   -1.5324    
  21  Prefactor     .10000E-03    18.496        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    2.8765        .26006E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    55.825        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          1.3280        .56373        .34994E-04   -1.5477    
  25  norm          4.9946        5.1898        .16601E-03   -1.5261    
  26  Prefactor     .10007E-03    57.257        .49866E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     8.0524        6.5344        .14129E-03   -1.5140    
  28  Normalizat    .78271        .22155        .27535E-03   -1.0071    
  29  Prefactor     .95796        .16640        .20296E-03   -.94144    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.77862e-09
Minuit parameter uncertainties:
  1  8.98216
  2  30.8744
  3  5.51572e-06
  4  2.67771e-07
  5  18.4338
  6  7.91123
  7  8.55743e-07
  8  13.6207
  9  15.8495
  10  0.000134695
  11  2.63989e-06
  12  4.84893
  13  0.856349
  14  4.65603
  15  0.000317721
  16  0.000258911
  17  13.8186
  18  1.54214e-05
  19  14.5039
  20  19.7275
  21  2.42947e-06
  22  2.08118e-05
  23  0.00018487
  24  0.563737
  25  5.19023
  26  0.00403297
  27  6.53494
  28  0.221802
  29  0.166491
Done.

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

Extracting fit parameters...

4FGL J2323.6-0617
   Spectrum: LogParabola
388         norm:  4.638e+00  4.656e+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.580e-01  1.665e-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:  7.827e-01  2.218e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.65
Ra Dec: 350.916 -6.295
Photon Index (Fixed Index): 2.24 +/- 0.00
Photon Flux (Fixed Index): 2.45e-08 +/- 2.46e-08
Energy Flux (Fixed Index): 9.55e-06 +/- 9.59e-06

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

Saving results to:
/scratch/kocevski/816141/likelihoodResults_355708801_355968001_4FGL_J2323.6-0617_daily_bin449.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) = 6338.55985653
delta logL = 0.0067790455314

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6338.55916698
delta logL = 0.00746859196352

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.4850       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3329       1.0000          .0000       5.0000    
     3 'Normalizat'    .78068       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95882       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.

 FCN=   6338.559     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      204 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.4850        157.85        .47530E-02    .73076E-03
   2  alpha         2.3330        2.5286        .41268        .26775E-04
   3  Normalizat    .78068        .79926E-01    .62323E-01    .21200E-04
   4  Prefactor     .95882        .57289E-01    .45750E-01    .49469E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 4.48503
  alpha      = 2.33298
  Normalizat = 0.780679
  Prefactor  = 0.958818
 **********
 **   18 **HESSE 
 **********

 FCN=   6338.559     FROM HESSE     STATUS=OK            33 CALLS      237 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.4850        4.7233        .15824E-03   -1.5284    
   2  alpha         2.3330        .77479        .18985E-01   -.66857E-01
   3  Normalizat    .78068        .19682        .27567E-03   -1.0079    
   4  Prefactor     .95882        .15970        .20288E-03   -.94115    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.9544e-10
Minuit parameter uncertainties:
  1  4.72366
  2  0.787822
  3  0.197001
  4  0.159775
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/816141': 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) = 6338.55916698
delta logL = 0.00746859587889

Extracting fit parameters...

4FGL J2323.6-0617
   Spectrum: LogParabola
388         norm:  4.485e+00  4.724e+00  1.000e-04  1.000e+04 ( 1.000e-12)
389        alpha:  2.333e+00  7.878e-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.588e-01  1.598e-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:  7.807e-01  1.970e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.66
Ra Dec: 350.916 -6.295
Photon Index (Free Index): 2.33 +/- 0.79
Photon Flux (Free Index): 2.63e-08 +/- 2.88e-08
Energy Flux (Free Index): 9.36e-06 +/- 9.37e-06

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/816141/cmap_HighResolution_355708801_355968001_4FGL_J2323.6-0617_daily_bin449.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.18e-05', comment='SUCCESS', photon_flux='2.45e-08', energy_flux2='9.36e-06', photon_flux_error='2.46e-08', dlogl='7.47e-03', energy_flux='9.55e-06', photon_flux2='2.63e-08', job_status='DONE', time_completed='2021-09-29 15:05:43.007407', photon_index_error2='0.79', photon_index2='2.33', ts='1.65', fit_tolerance='1e-08', GAL='0.96', photon_index_error='0.00', photon_flux_upper_limit='8.16e-08', energy_flux_error2='9.37e-06', EG='0.78', time_epoch_completed='1632953143.01', return_code='0', job_id='816141', GAL2='0.96', EG2='0.78', return_code2='0', energy_flux_error='9.59e-06', photon_flux_error2='2.88e-08', ts2='1.66', photon_index='2.24' WHERE bin_id='449' AND source_name='4FGL J2323.6-0617' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 15:05:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0114>
Subject: Job 816141: <4FGL_J2323.6-0617_daily_bin449> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2323.6-0617_daily_bin449 350.916 -6.2953 355708801 355968001 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 :                                   735.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             275.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   911 sec.
    Turnaround time :                            912 sec.

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

