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


Performing analysis on: 4FGL_J2323.5-0317_daily_bin616
RA = 350.888, Dec = -3.29
tmin = 398995201, tmax = 399254401
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='809614', job_status='RUN', time_executed='2021-09-29 14:33:03.078814', time_epoch_executed='1632951183.08' WHERE source_name='4FGL J2323.5-0317' and cadence='daily' and bin_id='616'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/809614

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/809614/ft1_4FGL_J2323.5-0317_daily_bin616.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/809614/ft2_4FGL_J2323.5-0317_daily_bin616.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/809614/ft1_4FGL_J2323.5-0317_daily_bin616.fits outfile=/scratch/kocevski/809614/ft1_filteredMKT_4FGL_J2323.5-0317_daily_bin616.fits ra=350.888 dec=-3.29 rad=12.0 tmin=398995201.0 tmax=399254401.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 5.49
user 5.22
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/809614/ft1_filtered_4FGL_J2323.5-0317_daily_bin616.fits" evtable="EVENTS" scfile=/scratch/kocevski/809614/ft2_4FGL_J2323.5-0317_daily_bin616.fits sctable="SC_DATA" outfile=/scratch/kocevski/809614/ltcube_398995201_399254401_4FGL_J2323.5-0317_daily_bin616.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/809614/ft2_4FGL_J2323.5-0317_daily_bin616.fits
.....................!
real 12.33
user 11.95
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/809614/ft1_filtered_4FGL_J2323.5-0317_daily_bin616.fits evtable="EVENTS" scfile=/scratch/kocevski/809614/ft2_4FGL_J2323.5-0317_daily_bin616.fits sctable="SC_DATA" expcube=/scratch/kocevski/809614/ltcube_398995201_399254401_4FGL_J2323.5-0317_daily_bin616.fits outfile=/scratch/kocevski/809614/expmap_398995201_399254401_4FGL_J2323.5-0317_daily_bin616.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/809614/ltcube_398995201_399254401_4FGL_J2323.5-0317_daily_bin616.fits
.....................!
real 192.81
user 187.49
sys 4.96

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 159 point sources and 0 extended sources

Setting source of interest to:
4FGL J2323.5-0317 @ 350.888 -3.29

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/809614/ft1_filtered_4FGL_J2323.5-0317_daily_bin616.fits scfile=/scratch/kocevski/809614/ft2_4FGL_J2323.5-0317_daily_bin616.fits outfile=/scratch/kocevski/809614/cmap_398995201_399254401_4FGL_J2323.5-0317_daily_bin616.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=350.888 yref=-3.29 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.53
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/809614/ft1_filtered_4FGL_J2323.5-0317_daily_bin616.fits scfile=/scratch/kocevski/809614/ft2_4FGL_J2323.5-0317_daily_bin616.fits outfile=/scratch/kocevski/809614/cmap_HighResolution_398995201_399254401_4FGL_J2323.5-0317_daily_bin616.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=350.888 yref=-3.29 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.55
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/809614/ft1_filtered_4FGL_J2323.5-0317_daily_bin616.fits evtable="EVENTS" scfile=/scratch/kocevski/809614/ft2_4FGL_J2323.5-0317_daily_bin616.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/809614/Model_4FGL_J2323.5-0317_daily_bin616.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/809614/ft1_filtered_4FGL_J2323.5-0317_daily_bin616.fits.....................!
real 76.21
user 74.79
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/809614/ft1_filtered_4FGL_J2323.5-0317_daily_bin616.fits', '/scratch/kocevski/809614/ft2_4FGL_J2323.5-0317_daily_bin616.fits', expMap='/scratch/kocevski/809614/expmap_398995201_399254401_4FGL_J2323.5-0317_daily_bin616.fits', expCube='/scratch/kocevski/809614/ltcube_398995201_399254401_4FGL_J2323.5-0317_daily_bin616.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/809614/Model_4FGL_J2323.5-0317_daily_bin616.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2323.5-0317'

4FGL J2323.5-0317
   Spectrum: LogParabola
373         norm:  1.648e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-11)
374        alpha:  2.160e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
375         beta:  9.598e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
376           Eb:  6.247e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/809614/ft1_filtered_4FGL_J2323.5-0317_daily_bin616.fits
Spacecraft file(s): /scratch/kocevski/809614/ft2_4FGL_J2323.5-0317_daily_bin616.fits
Exposure map: /scratch/kocevski/809614/expmap_398995201_399254401_4FGL_J2323.5-0317_daily_bin616.fits
Exposure cube: /scratch/kocevski/809614/ltcube_398995201_399254401_4FGL_J2323.5-0317_daily_bin616.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/809614/Model_4FGL_J2323.5-0317_daily_bin616.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) = 8511.15721294

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10149E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.3818       1.0000         .10000E-03   10000.    
     5 'norm      '    16.584       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .68704E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .30440E-01   1.0000         .10000E-03   10000.    
    10 'norm      '    4.4370       1.0000         .10000E-03   10000.    
    11 'norm      '    5.6734       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .46246       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10278E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    188.54       1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.9804       1.0000         .10000E-03   10000.    
    16 'Prefactor '    14.119       1.0000         .10000E-03   10000.    
    17 'norm      '    29.323       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .11757E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.4321       1.0000         .10000E-03   10000.    
    20 'Prefactor '    9.1173       1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.3595       1.0000         .10000E-03   10000.    
    22 'Prefactor '    4.5922       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10586E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .72918       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.1683       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5230E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8510.826     FROM MIGRAD    STATUS=CONVERGED    615 CALLS     3207 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.2390       -.15270E-07** at limit **
   2  Prefactor     .10000E-03    34.112        .86440E-07** at limit **
   3  Prefactor     .10000E-03    9.0255        .12098E-07** at limit **
   4  Prefactor     4.3822        4.6172       -.11525E-05   -.21009E-03
   5  norm          16.585        9.2738       -.10103E-07    .14850E-03
   6  Prefactor     .10000E-03    12.423       -.51127E-07** at limit **
   7  Prefactor     .10099E-03    7.8367       -.21448E-05** at limit **
   8  Prefactor     .10003E-03    175.96        .83271E-05** at limit **
   9  Prefactor     .23581E-02    5.0658       -.17085E-05** at limit **
  10  norm          4.4364        1.2044       -.14881E-07    .56649E-03
  11  norm          5.6790        4.8269        .40200E-06    .77502E-03
  12  Prefactor     .46187        6.1865        .32137E-06   -.11217E-03
  13  Prefactor     .10000E-03    22.131       -.34918E-07** at limit **
  14  Prefactor     188.39        238.10       -.51163E-05   -.46368E-04
  15  Prefactor     1.9867        19.136        .59918E-05    .13242E-03
  16  Prefactor     14.119        15.594       -.15871E-06   -.15568E-04
  17  norm          29.307        28.536       -.30618E-05   -.79338E-04
  18  Prefactor     .10000E-03    27.559       -.16492E-06** at limit **
  19  Prefactor     1.4372        6.9800        .10287E-05   -.16552E-05
  20  Prefactor     9.1139        34.117       -.12706E-05   -.11697E-04
  21  Prefactor     1.3499        102.14        .27066E-05    .71470E-05
  22  Prefactor     4.5976        16.354        .23239E-07    .11490E-04
  23  Prefactor     .10000E-03    17.410       -.20091E-06** at limit **
  24  Normalizat    .72957        .17750        .43294E-06    .35633E-03
  25  Prefactor     1.1680        .12520        .66876E-07    .53128E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.38224
  norm       = 16.5852
  Prefactor  = 0.0001
  Prefactor  = 0.00010099
  Prefactor  = 0.000100026
  Prefactor  = 0.00235813
  norm       = 4.43643
  norm       = 5.67901
  Prefactor  = 0.461868
  Prefactor  = 0.0001
  Prefactor  = 188.386
  Prefactor  = 1.98666
  Prefactor  = 14.1185
  norm       = 29.3073
  Prefactor  = 0.0001
  Prefactor  = 1.43716
  Prefactor  = 9.11386
  Prefactor  = 1.34995
  Prefactor  = 4.5976
  Prefactor  = 0.0001
  Normalizat = 0.729571
  Prefactor  = 1.16797
 **********
 **   18 **HESSE 
 **********

 FCN=   8510.826     FROM HESSE     STATUS=OK           439 CALLS     3646 TOTAL
                     EDM=   .57E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.2603        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    34.147        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    9.0454        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     4.3822        4.5940        .96202E-03   -1.5289    
   5  norm          16.585        9.2723        .98351E-04   -1.4893    
   6  Prefactor     .10000E-03    12.447        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10099E-03    82.839        .46250E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10003E-03    179.72        .41980E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .23581E-02    9.4180        .56513E-01   -1.5698    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          4.4364        1.2044        .47871E-04   -1.5287    
  11  norm          5.6790        4.9219        .16864E-03   -1.5231    
  12  Prefactor     .46187        39.310        .43563E-02   -1.5572    
  13  Prefactor     .10000E-03    22.147        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     188.39        235.55        .14705E-03   -1.2954    
  15  Prefactor     1.9867        17.686        .29453E-03   -1.5426    
  16  Prefactor     14.119        15.564        .10659E-03   -1.4956    
  17  norm          29.307        28.309        .73987E-04   -1.4625    
  18  Prefactor     .10000E-03    27.583        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     1.4372        5.9105        .35765E-03   -1.5468    
  20  Prefactor     9.1139        33.973        .13273E-03   -1.5104    
  21  Prefactor     1.3499        102.26        .37465E-03   -1.5476    
  22  Prefactor     4.5976        16.318        .18783E-03   -1.5279    
  23  Prefactor     .10000E-03    17.903        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .72957        .19963        .32696E-03   -1.0274    
  25  Prefactor     1.1680        .14290        .19679E-03   -.87323    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.71862e-08
Minuit parameter uncertainties:
  1  2.78362e-06
  2  3.97612e-05
  3  3.03654e-06
  4  4.59439
  5  9.27308
  6  1.62154e-06
  7  0.018135
  8  0.00437683
  9  0.29171
  10  1.20438
  11  4.92225
  12  8.5269
  13  6.43218e-06
  14  236.741
  15  11.8596
  16  15.5681
  17  28.3224
  18  5.25018e-05
  19  5.82982
  20  34.0453
  21  23.5393
  22  16.3334
  23  3.05385e-05
  24  0.199832
  25  0.14295
Done.

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

Extracting fit parameters...

4FGL J2323.5-0317
   Spectrum: LogParabola
373         norm:  4.436e+00  1.204e+00  1.000e-04  1.000e+04 ( 1.000e-11)
374        alpha:  2.160e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
375         beta:  9.598e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
376           Eb:  6.247e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
520    Prefactor:  1.168e+00  1.429e-01  0.000e+00  1.000e+01 ( 1.000e+00)
521        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
522        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
519   Normalization:  7.296e-01  1.998e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 31.03
Ra Dec: 350.888 -3.290
Photon Index (Fixed Index): 2.16 +/- 0.00
Photon Flux (Fixed Index): 1.72e-07 +/- 4.66e-08
Energy Flux (Fixed Index): 7.03e-05 +/- 1.91e-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) = 8509.84162418
delta logL = 0.98476085951

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8509.83727181
delta logL = 0.989113229029

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.7791       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5570       1.0000          .0000       5.0000    
     3 'Normalizat'    .66384       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2006       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5230E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8509.837     FROM MIGRAD    STATUS=CONVERGED     61 CALLS      221 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.7790        12.026        .51915E-02    .22484E-03
   2  alpha         2.5573        3.6567        .17708        .69034E-04
   3  Normalizat    .66374        .13936        .76979E-01    .41016E-04
   4  Prefactor     1.2007        .86983E-01    .34617E-01   -.26716E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 3.77897
  alpha      = 2.5573
  Normalizat = 0.663745
  Prefactor  = 1.20065
 **********
 **   18 **HESSE 
 **********

 FCN=   8509.837     FROM HESSE     STATUS=OK            33 CALLS      254 TOTAL
                     EDM=   .19E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.7790        1.2167        .41006E-04   -1.5319    
   2  alpha         2.5573        .30591        .75374E-02    .22923E-01
   3  Normalizat    .66374        .19562        .34082E-03   -1.0534    
   4  Prefactor     1.2007        .14364        .19438E-03   -.86311    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.87713e-12
Minuit parameter uncertainties:
  1  1.21666
  2  0.306681
  3  0.195826
  4  0.143688
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/809614': 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) = 8509.83727099
delta logL = 0.98911404968

Extracting fit parameters...

4FGL J2323.5-0317
   Spectrum: LogParabola
373         norm:  3.779e+00  1.217e+00  1.000e-04  1.000e+04 ( 1.000e-11)
374        alpha:  2.557e+00  3.067e-01  0.000e+00  5.000e+00 ( 1.000e+00)
375         beta:  9.598e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
376           Eb:  6.247e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
520    Prefactor:  1.201e+00  1.437e-01  0.000e+00  1.000e+01 ( 1.000e+00)
521        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
522        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
519   Normalization:  6.637e-01  1.958e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 33.59
Ra Dec: 350.888 -3.290
Photon Index (Free Index): 2.56 +/- 0.31
Photon Flux (Free Index): 2.22e-07 +/- 6.17e-08
Energy Flux (Free Index): 6.05e-05 +/- 1.59e-05

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/809614/cmap_HighResolution_398995201_399254401_4FGL_J2323.5-0317_daily_bin616.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.72e-07', energy_flux2='6.05e-05', photon_flux_error='4.66e-08', dlogl='9.89e-01', energy_flux='7.03e-05', photon_flux2='2.22e-07', job_status='DONE', time_completed='2021-09-29 14:45:36.801428', photon_index_error2='0.31', photon_index2='2.56', ts='31.03', fit_tolerance='1e-08', GAL='1.17', photon_index_error='0.00', energy_flux_error2='1.59e-05', EG='0.73', time_epoch_completed='1632951936.8', return_code='0', job_id='809614', GAL2='1.20', EG2='0.66', return_code2='0', energy_flux_error='1.91e-05', photon_flux_error2='6.17e-08', ts2='33.59', photon_index='2.16' WHERE bin_id='616' AND source_name='4FGL J2323.5-0317' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 14:45:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0202>
Subject: Job 809614: <4FGL_J2323.5-0317_daily_bin616> in cluster <slac> Done

Job <4FGL_J2323.5-0317_daily_bin616> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Wed Sep 29 14:30:37 2021
Job was executed on host(s) <bullet0202>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 14:30:39 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:30:39 2021
Terminated at Wed Sep 29 14:45:37 2021
Results reported at Wed Sep 29 14:45:37 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2323.5-0317_daily_bin616 350.888 -3.29 398995201 399254401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2323.5-0317 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   747.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             265.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   898 sec.
    Turnaround time :                            900 sec.

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

