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


Performing analysis on: 4FGL_J2323.5-0317_daily_bin738
RA = 350.888, Dec = -3.29
tmin = 430617601, tmax = 430876801
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='810892', job_status='RUN', time_executed='2021-09-29 14:38:15.574244', time_epoch_executed='1632951495.57' WHERE source_name='4FGL J2323.5-0317' and cadence='daily' and bin_id='738'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/810892

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/810892/ft1_4FGL_J2323.5-0317_daily_bin738.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/810892/ft2_4FGL_J2323.5-0317_daily_bin738.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/810892/ft1_4FGL_J2323.5-0317_daily_bin738.fits outfile=/scratch/kocevski/810892/ft1_filteredMKT_4FGL_J2323.5-0317_daily_bin738.fits ra=350.888 dec=-3.29 rad=12.0 tmin=430617601.0 tmax=430876801.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.32
user 5.08
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/810892/ft2_4FGL_J2323.5-0317_daily_bin738.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/810892/ft1_filteredMKT_4FGL_J2323.5-0317_daily_bin738.fits evtable="EVENTS" outfile="/scratch/kocevski/810892/ft1_filtered_4FGL_J2323.5-0317_daily_bin738.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/810892/ft1_filtered_4FGL_J2323.5-0317_daily_bin738.fits" evtable="EVENTS" scfile=/scratch/kocevski/810892/ft2_4FGL_J2323.5-0317_daily_bin738.fits sctable="SC_DATA" outfile=/scratch/kocevski/810892/ltcube_430617601_430876801_4FGL_J2323.5-0317_daily_bin738.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/810892/ft2_4FGL_J2323.5-0317_daily_bin738.fits
.....................!
real 12.46
user 12.16
sys 0.27

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/810892/ft1_filtered_4FGL_J2323.5-0317_daily_bin738.fits evtable="EVENTS" scfile=/scratch/kocevski/810892/ft2_4FGL_J2323.5-0317_daily_bin738.fits sctable="SC_DATA" expcube=/scratch/kocevski/810892/ltcube_430617601_430876801_4FGL_J2323.5-0317_daily_bin738.fits outfile=/scratch/kocevski/810892/expmap_430617601_430876801_4FGL_J2323.5-0317_daily_bin738.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/810892/ltcube_430617601_430876801_4FGL_J2323.5-0317_daily_bin738.fits
.....................!
real 190.30
user 185.88
sys 4.09

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/810892/ft1_filtered_4FGL_J2323.5-0317_daily_bin738.fits scfile=/scratch/kocevski/810892/ft2_4FGL_J2323.5-0317_daily_bin738.fits outfile=/scratch/kocevski/810892/cmap_430617601_430876801_4FGL_J2323.5-0317_daily_bin738.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.52
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/810892/ft1_filtered_4FGL_J2323.5-0317_daily_bin738.fits scfile=/scratch/kocevski/810892/ft2_4FGL_J2323.5-0317_daily_bin738.fits outfile=/scratch/kocevski/810892/cmap_HighResolution_430617601_430876801_4FGL_J2323.5-0317_daily_bin738.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/810892/ft1_filtered_4FGL_J2323.5-0317_daily_bin738.fits evtable="EVENTS" scfile=/scratch/kocevski/810892/ft2_4FGL_J2323.5-0317_daily_bin738.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/810892/Model_4FGL_J2323.5-0317_daily_bin738.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/810892/ft1_filtered_4FGL_J2323.5-0317_daily_bin738.fits......................!
real 32.24
user 30.97
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10161E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    53.345       1.0000         .10000E-03   10000.    
     6 'Prefactor '    70.261       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    132.64       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10074E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.1663       1.0000         .10000E-03   10000.    
    13 'Prefactor '    47.728       1.0000         .10000E-03   10000.    
    14 'Prefactor '    53.436       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    78.021       1.0000         .10000E-03   10000.    
    17 'norm      '    .10055E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    124.66       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    76.819       1.0000         .10000E-03   10000.    
    21 'Prefactor '    63.247       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    8.2085       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .12663       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.1189       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=   2352.192     FROM MIGRAD    STATUS=CONVERGED    971 CALLS     3638 TOTAL
                     EDM=   .59E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    13.602        .17456E-02** at limit **
   2  Prefactor     .10000E-03    67.943        .18142E-02** at limit **
   3  Prefactor     .10000E-03    26.670        .18142E-02** at limit **
   4  Prefactor     .10000E-03    6.0469        .11647E-02** at limit **
   5  norm          53.342        30.651        .54915E-04    .11713E-03
   6  Prefactor     70.213        67.743        .47890E-04    .13413E-04
   7  Prefactor     .10000E-03    28.696        .18142E-02** at limit **
   8  Prefactor     132.65        124.52        .34964E-04    .28581E-04
   9  Prefactor     .10000E-03    9.2519        .14397E-02** at limit **
  10  norm          .10000E-03    .55567        .35153E-03** at limit **
  11  norm          .10000E-03    4.0645        .95458E-03** at limit **
  12  Prefactor     4.1610        25.907        .19746E-03    .17733E-04
  13  Prefactor     47.681        100.13        .58041E-04    .11615E-04
  14  Prefactor     53.208        372.19        .27434E-03    .31701E-05
  15  Prefactor     .10000E-03    6.8314        .12377E-02** at limit **
  16  Prefactor     77.998        76.452        .45464E-04    .16279E-04
  17  norm          .10000E-03    19.177        .18142E-02** at limit **
  18  Prefactor     124.54        155.54        .18026E-03   -.25228E-05
  19  Prefactor     .10000E-03    4.1248        .95950E-03** at limit **
  20  Prefactor     76.822        64.296        .45815E-04    .21762E-04
  21  Prefactor     63.239        65.064        .50458E-04    .23162E-04
  22  Prefactor     .10000E-03    10.956        .15679E-02** at limit **
  23  Prefactor     8.1951        16.090        .13993E-03    .28720E-04
  24  Normalizat    .12642        .36241        .69261E-02    .30154E-04
  25  Prefactor     1.1191        .25405        .17241E-03    .71069E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 53.3419
  Prefactor  = 70.2125
  Prefactor  = 0.0001
  Prefactor  = 132.652
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 4.16098
  Prefactor  = 47.6809
  Prefactor  = 53.2077
  Prefactor  = 0.0001
  Prefactor  = 77.9985
  norm       = 0.0001
  Prefactor  = 124.543
  Prefactor  = 0.0001
  Prefactor  = 76.822
  Prefactor  = 63.2393
  Prefactor  = 0.0001
  Prefactor  = 8.19509
  Normalizat = 0.126423
  Prefactor  = 1.11914
 **********
 **   18 **HESSE 
 **********

 FCN=   2352.192     FROM HESSE     STATUS=OK           403 CALLS     4041 TOTAL
                     EDM=   .47E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    13.602        .34913E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    67.944        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    26.671        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    6.0470        .23295E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          53.342        30.591        .10983E-04   -1.4246    
   6  Prefactor     70.213        67.719        .95780E-05   -1.4030    
   7  Prefactor     .10000E-03    28.700        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     132.65        124.25        .69929E-05   -1.3399    
   9  Prefactor     .10000E-03    9.2520        .28794E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    .55567        .70307E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    4.0645        .19092E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     4.1610        25.887        .78984E-05   -1.5300    
  13  Prefactor     47.681        100.14        .11608E-04   -1.4326    
  14  Prefactor     53.208        371.96        .10974E-04   -1.4248    
  15  Prefactor     .10000E-03    6.8315        .24755E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     77.998        76.431        .90927E-05   -1.3939    
  17  norm          .10000E-03    19.177        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     124.54        155.36        .72102E-05   -1.3471    
  19  Prefactor     .10000E-03    4.1250        .19190E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     76.822        64.266        .91630E-05   -1.3953    
  21  Prefactor     63.239        65.030        .10092E-04   -1.4116    
  22  Prefactor     .10000E-03    10.956        .31358E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     8.1951        16.082        .55973E-05   -1.5135    
  24  Normalizat    .12642        .34699        .27704E-03   -1.3545    
  25  Prefactor     1.1191        .24465        .34482E-04   -.88857    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.70702e-11
Minuit parameter uncertainties:
  1  1.35226e-05
  2  1.09097e-05
  3  9.25917e-06
  4  5.54687e-07
  5  30.6004
  6  67.7939
  7  4.18208e-05
  8  124.499
  9  1.31565e-05
  10  1.73748e-06
  11  3.31795e-06
  12  20.7702
  13  100.493
  14  283.915
  15  5.30533e-06
  16  76.5275
  17  2.72042e-06
  18  155.877
  19  4.44992e-06
  20  64.3246
  21  65.1035
  22  9.37294e-06
  23  16.09
  24  0.353356
  25  0.244895
Done.

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

Extracting fit parameters...

4FGL J2323.5-0317
   Spectrum: LogParabola
373         norm:  1.000e-04  1.737e-06  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.119e+00  2.449e-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:  1.264e-01  3.534e-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.11e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.57e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/810892/likelihoodResults_430617601_430876801_4FGL_J2323.5-0317_daily_bin738.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) = 2352.19180893
delta logL = -3.43913143297e-07

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2352.19180907
delta logL = -4.83204985358e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1512       1.0000          .0000       5.0000    
     3 'Normalizat'    .12672       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1190       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=   2352.192     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      236 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .60936        .35199E-03** at limit **
   2  alpha         2.0050        3.3029        .16668       -.17096E-06
   3  Normalizat    .12642        .34078        .69252E-02    .45885E-04
   4  Prefactor     1.1191        .24633        .17241E-03    .17244E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.00499
  Normalizat = 0.126423
  Prefactor  = 1.11914
 **********
 **   18 **HESSE 
 **********

 FCN=   2352.192     FROM HESSE     STATUS=OK            25 CALLS      261 TOTAL
                     EDM=   .94E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .56374        .70399E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.0050        3.4622        .66671E-02   -.19932    
   3  Normalizat    .12642        .32829        .27701E-03   -1.3545    
   4  Prefactor     1.1191        .23699        .34482E-04   -.88857    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.38414e-11
Minuit parameter uncertainties:
  1  3.88218e-06
  2  95.1189
  3  0.33365
  4  0.237219
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/810892': 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) = 2352.19180729
delta logL = 1.2877512745e-06

Extracting fit parameters...

4FGL J2323.5-0317
   Spectrum: LogParabola
373         norm:  1.000e-04  3.882e-06  1.000e-04  1.000e+04 ( 1.000e-11)
374        alpha:  2.005e+00  9.512e+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.119e+00  2.372e-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:  1.264e-01  3.336e-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/810892/cmap_HighResolution_430617601_430876801_4FGL_J2323.5-0317_daily_bin738.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.57e-05', job_status='DONE', photon_flux_upper_limit='1.11e-07', time_completed='2021-09-29 14:46:23.865194', job_id='810892', GAL2='1.12', fit_tolerance='1e-08', EG2='0.13', EG='0.13', time_epoch_completed='1632951983.87', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.12', dlogl='1.29e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.16' WHERE bin_id='738' AND source_name='4FGL J2323.5-0317' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 14:46:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0264>
Subject: Job 810892: <4FGL_J2323.5-0317_daily_bin738> in cluster <slac> Done

Job <4FGL_J2323.5-0317_daily_bin738> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Sep 29 14:35:18 2021
Job was executed on host(s) <bullet0264>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 14:35:20 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:20 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_bin738 350.888 -3.29 430617601 430876801 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 :                                   474.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             273.55 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   664 sec.
    Turnaround time :                            666 sec.

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

