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


Performing analysis on: 4FGL_J2323.5-0317_daily_bin479
RA = 350.888, Dec = -3.29
tmin = 363484801, tmax = 363744001
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='809408', job_status='RUN', time_executed='2021-09-29 14:34:21.476317', time_epoch_executed='1632951261.48' WHERE source_name='4FGL J2323.5-0317' and cadence='daily' and bin_id='479'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/809408

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/809408/ft1_4FGL_J2323.5-0317_daily_bin479.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/809408/ft2_4FGL_J2323.5-0317_daily_bin479.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/809408/ft1_4FGL_J2323.5-0317_daily_bin479.fits outfile=/scratch/kocevski/809408/ft1_filteredMKT_4FGL_J2323.5-0317_daily_bin479.fits ra=350.888 dec=-3.29 rad=12.0 tmin=363484801.0 tmax=363744001.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.69
user 3.48
sys 0.19

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/809408/ft1_filtered_4FGL_J2323.5-0317_daily_bin479.fits" evtable="EVENTS" scfile=/scratch/kocevski/809408/ft2_4FGL_J2323.5-0317_daily_bin479.fits sctable="SC_DATA" outfile=/scratch/kocevski/809408/ltcube_363484801_363744001_4FGL_J2323.5-0317_daily_bin479.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/809408/ft2_4FGL_J2323.5-0317_daily_bin479.fits
.....................!
real 11.57
user 11.21
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/809408/ft1_filtered_4FGL_J2323.5-0317_daily_bin479.fits evtable="EVENTS" scfile=/scratch/kocevski/809408/ft2_4FGL_J2323.5-0317_daily_bin479.fits sctable="SC_DATA" expcube=/scratch/kocevski/809408/ltcube_363484801_363744001_4FGL_J2323.5-0317_daily_bin479.fits outfile=/scratch/kocevski/809408/expmap_363484801_363744001_4FGL_J2323.5-0317_daily_bin479.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/809408/ltcube_363484801_363744001_4FGL_J2323.5-0317_daily_bin479.fits
.....................!
real 190.56
user 184.99
sys 5.25

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/809408/ft1_filtered_4FGL_J2323.5-0317_daily_bin479.fits scfile=/scratch/kocevski/809408/ft2_4FGL_J2323.5-0317_daily_bin479.fits outfile=/scratch/kocevski/809408/cmap_363484801_363744001_4FGL_J2323.5-0317_daily_bin479.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.54
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/809408/ft1_filtered_4FGL_J2323.5-0317_daily_bin479.fits scfile=/scratch/kocevski/809408/ft2_4FGL_J2323.5-0317_daily_bin479.fits outfile=/scratch/kocevski/809408/cmap_HighResolution_363484801_363744001_4FGL_J2323.5-0317_daily_bin479.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.54
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/809408/ft1_filtered_4FGL_J2323.5-0317_daily_bin479.fits evtable="EVENTS" scfile=/scratch/kocevski/809408/ft2_4FGL_J2323.5-0317_daily_bin479.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/809408/Model_4FGL_J2323.5-0317_daily_bin479.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/809408/ft1_filtered_4FGL_J2323.5-0317_daily_bin479.fits.....................!
real 58.15
user 56.79
sys 1.23

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/809408/ft1_filtered_4FGL_J2323.5-0317_daily_bin479.fits', '/scratch/kocevski/809408/ft2_4FGL_J2323.5-0317_daily_bin479.fits', expMap='/scratch/kocevski/809408/expmap_363484801_363744001_4FGL_J2323.5-0317_daily_bin479.fits', expCube='/scratch/kocevski/809408/ltcube_363484801_363744001_4FGL_J2323.5-0317_daily_bin479.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/809408/Model_4FGL_J2323.5-0317_daily_bin479.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/809408/ft1_filtered_4FGL_J2323.5-0317_daily_bin479.fits
Spacecraft file(s): /scratch/kocevski/809408/ft2_4FGL_J2323.5-0317_daily_bin479.fits
Exposure map: /scratch/kocevski/809408/expmap_363484801_363744001_4FGL_J2323.5-0317_daily_bin479.fits
Exposure cube: /scratch/kocevski/809408/ltcube_363484801_363744001_4FGL_J2323.5-0317_daily_bin479.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/809408/Model_4FGL_J2323.5-0317_daily_bin479.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) = 6070.41135052

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.8538       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .85167       1.0000         .10000E-03   10000.    
     5 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    13.944       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.1561       1.0000         .10000E-03   10000.    
    10 'norm      '    1.9554       1.0000         .10000E-03   10000.    
    11 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    152.87       1.0000         .10000E-03   10000.    
    15 'Prefactor '    10.854       1.0000         .10000E-03   10000.    
    16 'Prefactor '    51.951       1.0000         .10000E-03   10000.    
    17 'norm      '    .61005       1.0000         .10000E-03   10000.    
    18 'Prefactor '    82.519       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    48.441       1.0000         .10000E-03   10000.    
    21 'Prefactor '    5.1912       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    2.4232       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .61826       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0932       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=   6070.390     FROM MIGRAD    STATUS=CONVERGED    565 CALLS     2886 TOTAL
                     EDM=   .87E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.8481       -.27926E-05** at limit **
   2  Prefactor     2.8528        71.655       -.14733E-05    .37232E-05
   3  Prefactor     .10000E-03    8.6482       -.36515E-05** at limit **
   4  Prefactor     .85071        1.1582        .49326E-06   -.26746E-02
   5  norm          .10000E-03    4.5865        .19048E-05** at limit **
   6  Prefactor     13.937        37.450       -.96730E-05   -.19412E-04
   7  Prefactor     .10000E-03    11.214        .51904E-05** at limit **
   8  Prefactor     .10000E-03    15.029       -.59706E-05** at limit **
   9  Prefactor     4.1574        7.0240       -.40386E-06    .78715E-04
  10  norm          1.9555        1.1050       -.41667E-06   -.45982E-03
  11  norm          .10000E-03    4.3303       -.13625E-05** at limit **
  12  Prefactor     .10000E-03    6.6632        .17446E-05** at limit **
  13  Prefactor     .10000E-03    13.093        .16373E-05** at limit **
  14  Prefactor     152.97        280.71        .76891E-04   -.22888E-04
  15  Prefactor     10.837        14.651       -.11837E-04   -.45973E-03
  16  Prefactor     51.950        29.638       -.11411E-06   -.34403E-04
  17  norm          .70964        17.721        .26543E-05    .57452E-04
  18  Prefactor     82.529        54.510        .78481E-05    .22261E-04
  19  Prefactor     .10000E-03    3.4524        .22217E-06** at limit **
  20  Prefactor     48.444        43.728        .43157E-05   -.42019E-04
  21  Prefactor     5.1914        28.077        .12887E-05   -.12622E-04
  22  Prefactor     .10000E-03    4.6095        .17483E-05** at limit **
  23  Prefactor     2.4238        6.3945       -.31782E-06   -.15847E-04
  24  Normalizat    .61817        .19203        .12168E-05   -.12377E-03
  25  Prefactor     1.0933        .13777       -.79611E-06   -.88207E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 2.85281
  Prefactor  = 0.0001
  Prefactor  = 0.850714
  norm       = 0.0001
  Prefactor  = 13.9367
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.15745
  norm       = 1.95553
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 152.974
  Prefactor  = 10.8365
  Prefactor  = 51.9502
  norm       = 0.709645
  Prefactor  = 82.5291
  Prefactor  = 0.0001
  Prefactor  = 48.4435
  Prefactor  = 5.19144
  Prefactor  = 0.0001
  Prefactor  = 2.42382
  Normalizat = 0.618173
  Prefactor  = 1.09331
 **********
 **   18 **HESSE 
 **********

 FCN=   6070.390     FROM HESSE     STATUS=OK           425 CALLS     3311 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.8639        .16740E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     2.8528        71.710        .24066E-03   -1.5370    
   3  Prefactor     .10000E-03    8.6488        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .85071        6.0865        .18860E-02   -1.5524    
   5  norm          .10000E-03    4.5966        .16294E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     13.937        37.464        .10726E-03   -1.4961    
   7  Prefactor     .10000E-03    11.265        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    15.029        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     4.1574        6.9742        .19771E-03   -1.5300    
  10  norm          1.9555        1.1047        .14835E-03   -1.5428    
  11  norm          .10000E-03    4.3840        .15751E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    6.7019        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    13.096        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     152.97        278.39        .16301E-03   -1.3228    
  15  Prefactor     10.837        15.175        .12161E-03   -1.5049    
  16  Prefactor     51.950        29.627        .55643E-04   -1.4265    
  17  norm          .70964        106.91        .54485E-02   -1.5539    
  18  Prefactor     82.529        54.571        .44217E-04   -1.3889    
  19  Prefactor     .10000E-03    3.4887        .14053E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     48.444        43.746        .57615E-04   -1.4315    
  21  Prefactor     5.1914        27.952        .17644E-03   -1.5252    
  22  Prefactor     .10000E-03    4.6140        .16336E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     2.4238        6.3912        .26292E-03   -1.5397    
  24  Normalizat    .61817        .21605        .32497E-03   -1.0722    
  25  Prefactor     1.0933        .15690        .18935E-03   -.89681    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.80297e-08
Minuit parameter uncertainties:
  1  1.697e-06
  2  28.6438
  3  6.69768e-06
  4  4.55137
  5  5.24787e-06
  6  37.5271
  7  2.98621e-05
  8  2.21151e-05
  9  6.97561
  10  1.10468
  11  7.38537e-06
  12  9.36931e-06
  13  1.78531e-05
  14  280.838
  15  15.1809
  16  29.6356
  17  17.4507
  18  54.6041
  19  3.127e-05
  20  43.7747
  21  24.1097
  22  3.44223e-06
  23  6.39303
  24  0.216345
  25  0.156961
Done.

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

Extracting fit parameters...

4FGL J2323.5-0317
   Spectrum: LogParabola
373         norm:  1.956e+00  1.105e+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.093e+00  1.570e-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.182e-01  2.163e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.69
Ra Dec: 350.888 -3.290
Photon Index (Fixed Index): 2.16 +/- 0.00
Photon Flux (Fixed Index): 7.57e-08 +/- 4.27e-08
Energy Flux (Fixed Index): 3.10e-05 +/- 1.75e-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) = 6068.426851
delta logL = 1.9630593427

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6068.39581218
delta logL = 1.99409815728

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.2735       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.1948       1.0000          .0000       5.0000    
     3 'Normalizat'    .51819       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1371       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=   6068.396     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      239 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.2738        6.9157        .75030E-02    .45457E-03
   2  alpha         3.1947        4.0019        .21799        .53102E-04
   3  Normalizat    .51815        .77025E-01    .79510E-01    .37743E-04
   4  Prefactor     1.1371        .55314E-01    .36320E-01   -.28289E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.27379
  alpha      = 3.19473
  Normalizat = 0.518153
  Prefactor  = 1.13715
 **********
 **   18 **HESSE 
 **********

 FCN=   6068.396     FROM HESSE     STATUS=OK            33 CALLS      272 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.2738        .97559        .33471E-04   -1.5482    
   2  alpha         3.1947        .60551        .92608E-02    .28160    
   3  Normalizat    .51815        .20926        .35213E-03   -1.1158    
   4  Prefactor     1.1371        .15568        .18583E-03   -.88288    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.92034e-09
Minuit parameter uncertainties:
  1  0.975607
  2  0.612115
  3  0.20958
  4  0.15574
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/809408': 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) = 6068.39581212
delta logL = 1.9940982193

Extracting fit parameters...

4FGL J2323.5-0317
   Spectrum: LogParabola
373         norm:  1.274e+00  9.756e-01  1.000e-04  1.000e+04 ( 1.000e-11)
374        alpha:  3.195e+00  6.121e-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.137e+00  1.557e-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:  5.182e-01  2.096e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.07
Ra Dec: 350.888 -3.290
Photon Index (Free Index): 3.19 +/- 0.61
Photon Flux (Free Index): 1.66e-07 +/- 7.31e-08
Energy Flux (Free Index): 3.18e-05 +/- 1.31e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/809408/cmap_HighResolution_363484801_363744001_4FGL_J2323.5-0317_daily_bin479.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.57e-08', energy_flux2='3.18e-05', photon_flux_error='4.27e-08', dlogl='1.99e+00', energy_flux='3.10e-05', photon_flux2='1.66e-07', job_status='DONE', time_completed='2021-09-29 14:44:07.141498', photon_index_error2='0.61', photon_index2='3.19', ts='5.69', fit_tolerance='1e-08', GAL='1.09', photon_index_error='0.00', energy_flux_error2='1.31e-05', EG='0.62', time_epoch_completed='1632951847.14', return_code='0', job_id='809408', GAL2='1.14', EG2='0.52', return_code2='0', energy_flux_error='1.75e-05', photon_flux_error2='7.31e-08', ts2='10.07', photon_index='2.16' WHERE bin_id='479' AND source_name='4FGL J2323.5-0317' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 14:44:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0094>
Subject: Job 809408: <4FGL_J2323.5-0317_daily_bin479> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2323.5-0317_daily_bin479 350.888 -3.29 363484801 363744001 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 :                                   585.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             295.84 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   825 sec.
    Turnaround time :                            827 sec.

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

