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


Performing analysis on: 4FGL_J2323.5-0317_daily_bin754
RA = 350.888, Dec = -3.29
tmin = 434764801, tmax = 435024001
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='810923', job_status='RUN', time_executed='2021-09-29 14:38:57.388095', time_epoch_executed='1632951537.39' WHERE source_name='4FGL J2323.5-0317' and cadence='daily' and bin_id='754'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/810923

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/810923/ft1_4FGL_J2323.5-0317_daily_bin754.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/810923/ft2_4FGL_J2323.5-0317_daily_bin754.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/810923/ft1_4FGL_J2323.5-0317_daily_bin754.fits outfile=/scratch/kocevski/810923/ft1_filteredMKT_4FGL_J2323.5-0317_daily_bin754.fits ra=350.888 dec=-3.29 rad=12.0 tmin=434764801.0 tmax=435024001.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.68
user 5.41
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/810923/ft1_filtered_4FGL_J2323.5-0317_daily_bin754.fits" evtable="EVENTS" scfile=/scratch/kocevski/810923/ft2_4FGL_J2323.5-0317_daily_bin754.fits sctable="SC_DATA" outfile=/scratch/kocevski/810923/ltcube_434764801_435024001_4FGL_J2323.5-0317_daily_bin754.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/810923/ft2_4FGL_J2323.5-0317_daily_bin754.fits
.....................!
real 12.10
user 11.75
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/810923/ft1_filtered_4FGL_J2323.5-0317_daily_bin754.fits evtable="EVENTS" scfile=/scratch/kocevski/810923/ft2_4FGL_J2323.5-0317_daily_bin754.fits sctable="SC_DATA" expcube=/scratch/kocevski/810923/ltcube_434764801_435024001_4FGL_J2323.5-0317_daily_bin754.fits outfile=/scratch/kocevski/810923/expmap_434764801_435024001_4FGL_J2323.5-0317_daily_bin754.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/810923/ltcube_434764801_435024001_4FGL_J2323.5-0317_daily_bin754.fits
.....................!
real 190.95
user 185.83
sys 4.80

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/810923/ft1_filtered_4FGL_J2323.5-0317_daily_bin754.fits scfile=/scratch/kocevski/810923/ft2_4FGL_J2323.5-0317_daily_bin754.fits outfile=/scratch/kocevski/810923/cmap_434764801_435024001_4FGL_J2323.5-0317_daily_bin754.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.57
user 0.37
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/810923/ft1_filtered_4FGL_J2323.5-0317_daily_bin754.fits scfile=/scratch/kocevski/810923/ft2_4FGL_J2323.5-0317_daily_bin754.fits outfile=/scratch/kocevski/810923/cmap_HighResolution_434764801_435024001_4FGL_J2323.5-0317_daily_bin754.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.50
user 0.35
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/810923/ft1_filtered_4FGL_J2323.5-0317_daily_bin754.fits evtable="EVENTS" scfile=/scratch/kocevski/810923/ft2_4FGL_J2323.5-0317_daily_bin754.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/810923/Model_4FGL_J2323.5-0317_daily_bin754.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/810923/ft1_filtered_4FGL_J2323.5-0317_daily_bin754.fits......................!
real 28.88
user 27.63
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    147.50       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    10.552       1.0000         .10000E-03   10000.    
     5 'norm      '    .11979E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10620E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    28.861       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    22.662       1.0000         .10000E-03   10000.    
    12 'Prefactor '    29.184       1.0000         .10000E-03   10000.    
    13 'Prefactor '    100.60       1.0000         .10000E-03   10000.    
    14 'Prefactor '    177.68       1.0000         .10000E-03   10000.    
    15 'Prefactor '    13.259       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10355E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    69.436       1.0000         .10000E-03   10000.    
    18 'Prefactor '    237.19       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    69.745       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10076E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    26.880       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .67720       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .83808       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=   2027.377     FROM MIGRAD    STATUS=CONVERGED    552 CALLS     3342 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    22.680        .15576E-05** at limit **
   2  Prefactor     147.52        111.83       -.54662E-06   -.54361E-06
   3  Prefactor     .10000E-03    46.421        .13274E-06** at limit **
   4  Prefactor     10.533        18.036       -.23727E-07    .52887E-05
   5  norm          .10289E-03    19.944       -.48678E-05** at limit **
   6  Prefactor     .10000E-03    47.299        .34160E-06** at limit **
   7  Prefactor     .10000E-03    11.592        .55931E-07** at limit **
   8  Prefactor     28.628        99.626        .59066E-05    .56950E-04
   9  Prefactor     .10001E-03    28.362       -.18167E-04** at limit **
  10  norm          .10000E-03    .82846       -.23170E-06** at limit **
  11  norm          22.666        14.758        .56504E-06    .41611E-03
  12  Prefactor     29.164        32.566        .61763E-06    .90211E-05
  13  Prefactor     100.57        123.41        .35106E-07    .46274E-05
  14  Prefactor     177.39        389.45       -.15382E-06   -.55384E-05
  15  Prefactor     13.264        44.952       -.48298E-06    .31374E-04
  16  Prefactor     .10000E-03    77.052       -.59713E-06** at limit **
  17  norm          69.429        102.63        .61837E-06    .16885E-04
  18  Prefactor     237.22        145.04        .21372E-06    .52332E-04
  19  Prefactor     .10000E-03    2.9564       -.35023E-06** at limit **
  20  Prefactor     .10000E-03    47.058       -.43952E-06** at limit **
  21  Prefactor     69.700        63.704        .42209E-06   -.21631E-04
  22  Prefactor     .10000E-03    20.429        .90460E-06** at limit **
  23  Prefactor     26.871        15.038       -.12138E-06   -.14587E-04
  24  Normalizat    .67764        .33959        .39986E-06    .15362E-03
  25  Prefactor     .83796        .24318       -.13378E-05    .20517E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 147.516
  Prefactor  = 0.0001
  Prefactor  = 10.5333
  norm       = 0.000102892
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 28.6285
  Prefactor  = 0.000100007
  norm       = 0.0001
  norm       = 22.6662
  Prefactor  = 29.164
  Prefactor  = 100.57
  Prefactor  = 177.389
  Prefactor  = 13.2637
  Prefactor  = 0.0001
  norm       = 69.4289
  Prefactor  = 237.219
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 69.7001
  Prefactor  = 0.0001
  Prefactor  = 26.8706
  Normalizat = 0.67764
  Prefactor  = 0.83796
 **********
 **   18 **HESSE 
 **********

 FCN=   2027.377     FROM HESSE     STATUS=OK           421 CALLS     3763 TOTAL
                     EDM=   .21E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    22.788        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     147.52        111.83        .16591E-03   -1.3273    
   3  Prefactor     .10000E-03    46.488        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     10.533        18.046        .12334E-03   -1.5059    
   5  norm          .10289E-03    134.37        .35233E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    47.320        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    11.593        .14975E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     28.628        100.44        .37288E-03   -1.4637    
   9  Prefactor     .10001E-03    28.790        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    .84355        .39946E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          22.666        14.776        .84142E-04   -1.4755    
  12  Prefactor     29.164        32.550        .74163E-04   -1.4627    
  13  Prefactor     100.57        123.38        .20041E-03   -1.3699    
  14  Prefactor     177.39        389.41        .15139E-03   -1.3036    
  15  Prefactor     13.264        44.809        .11000E-03   -1.4979    
  16  Prefactor     .10000E-03    77.088        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          69.429        102.42        .48172E-04   -1.4040    
  18  Prefactor     237.22        145.03        .26286E-04   -1.2615    
  19  Prefactor     .10000E-03    2.9577        .75575E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    47.084        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     69.700        63.650        .48065E-04   -1.4036    
  22  Prefactor     .10000E-03    20.478        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     26.871        15.043        .77268E-04   -1.4671    
  24  Normalizat    .67764        .38566        .32514E-03   -1.0478    
  25  Prefactor     .83796        .27950        .21590E-03   -.98344    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.11537e-08
Minuit parameter uncertainties:
  1  4.36424e-05
  2  111.987
  3  3.70325e-05
  4  18.0558
  5  0.0395141
  6  2.00537e-05
  7  5.23506e-06
  8  101.045
  9  0.000888814
  10  4.84452e-07
  11  14.7786
  12  32.57
  13  123.698
  14  395.294
  15  44.9228
  16  0.000289025
  17  102.686
  18  145.25
  19  4.54794e-06
  20  7.48343e-05
  21  63.7123
  22  6.151e-05
  23  15.045
  24  0.387214
  25  0.279976
Done.

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

Extracting fit parameters...

4FGL J2323.5-0317
   Spectrum: LogParabola
373         norm:  1.000e-04  4.845e-07  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:  8.380e-01  2.800e-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.776e-01  3.872e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 350.888 -3.290
Photon Flux Upper Limit: 1.38e-07 ph cm-2 s-1
Energy Flux Upper Limit: 5.67e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/810923/likelihoodResults_434764801_435024001_4FGL_J2323.5-0317_daily_bin754.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): 102
logL (Free Index) = 2027.38275274
delta logL = -0.00528999900121

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2027.37746379
delta logL = -1.05296271613e-06

Fit tolerance = 1e-08

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

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

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   2027.377     FROM MIGRAD    STATUS=CONVERGED    101 CALLS      237 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.0922        .89928E-04** at limit **
   2  alpha         1.7012        3.0536        .16682       -.26059E-06
   3  Normalizat    .67764        .36902        .32512E-03    .27012E-05
   4  Prefactor     .83796        .27319        .21590E-03    .14876E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.70119
  Normalizat = 0.67764
  Prefactor  = 0.837959
 **********
 **   18 **HESSE 
 **********

 FCN=   2027.377     FROM HESSE     STATUS=OK            27 CALLS      264 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.0818        .17986E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.7012        3.6785        .66728E-01   -.32523    
   3  Normalizat    .67764        .36931        .13005E-04   -1.0478    
   4  Prefactor     .83796        .27341        .86359E-05   -.98344    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.52643e-10
Minuit parameter uncertainties:
  1  1.92091e-05
  2  82.6885
  3  0.370671
  4  0.273853
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/810923': 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) = 2027.37744969
delta logL = 1.30479850213e-05

Extracting fit parameters...

4FGL J2323.5-0317
   Spectrum: LogParabola
373         norm:  1.000e-04  1.921e-05  1.000e-04  1.000e+04 ( 1.000e-11)
374        alpha:  1.701e+00  8.269e+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:  8.380e-01  2.739e-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.776e-01  3.707e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 350.888 -3.290

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/810923/cmap_HighResolution_434764801_435024001_4FGL_J2323.5-0317_daily_bin754.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.67e-05', job_status='DONE', photon_flux_upper_limit='1.38e-07', time_completed='2021-09-29 14:46:24.072698', job_id='810923', GAL2='0.84', fit_tolerance='1e-08', EG2='0.68', EG='0.68', time_epoch_completed='1632951984.07', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.84', dlogl='1.30e-05', ts2='-0.00', photon_index_error='0.00', photon_index='2.16' WHERE bin_id='754' AND source_name='4FGL J2323.5-0317' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 14:46:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0040>
Subject: Job 810923: <4FGL_J2323.5-0317_daily_bin754> in cluster <slac> Done

Job <4FGL_J2323.5-0317_daily_bin754> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Sep 29 14:35:21 2021
Job was executed on host(s) <bullet0040>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 14:35:23 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:35:23 2021
Terminated at Wed Sep 29 14:46:24 2021
Results reported at Wed Sep 29 14:46:24 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2323.5-0317_daily_bin754 350.888 -3.29 434764801 435024001 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 :                                   443.55 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             298.65 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   661 sec.
    Turnaround time :                            663 sec.

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

