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


Performing analysis on: 4FGL_J2323.5-0317_daily_bin941
RA = 350.888, Dec = -3.29
tmin = 483235201, tmax = 483494401
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='811196', job_status='RUN', time_executed='2021-09-29 14:38:43.581643', time_epoch_executed='1632951523.58' WHERE source_name='4FGL J2323.5-0317' and cadence='daily' and bin_id='941'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/811196

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/811196/ft1_4FGL_J2323.5-0317_daily_bin941.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/811196/ft2_4FGL_J2323.5-0317_daily_bin941.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/811196/ft1_4FGL_J2323.5-0317_daily_bin941.fits outfile=/scratch/kocevski/811196/ft1_filteredMKT_4FGL_J2323.5-0317_daily_bin941.fits ra=350.888 dec=-3.29 rad=12.0 tmin=483235201.0 tmax=483494401.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.44
user 3.22
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/811196/ft1_filtered_4FGL_J2323.5-0317_daily_bin941.fits" evtable="EVENTS" scfile=/scratch/kocevski/811196/ft2_4FGL_J2323.5-0317_daily_bin941.fits sctable="SC_DATA" outfile=/scratch/kocevski/811196/ltcube_483235201_483494401_4FGL_J2323.5-0317_daily_bin941.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/811196/ft2_4FGL_J2323.5-0317_daily_bin941.fits
.....................!
real 11.77
user 11.30
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/811196/ft1_filtered_4FGL_J2323.5-0317_daily_bin941.fits evtable="EVENTS" scfile=/scratch/kocevski/811196/ft2_4FGL_J2323.5-0317_daily_bin941.fits sctable="SC_DATA" expcube=/scratch/kocevski/811196/ltcube_483235201_483494401_4FGL_J2323.5-0317_daily_bin941.fits outfile=/scratch/kocevski/811196/expmap_483235201_483494401_4FGL_J2323.5-0317_daily_bin941.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/811196/ltcube_483235201_483494401_4FGL_J2323.5-0317_daily_bin941.fits
.....................!
real 190.63
user 185.79
sys 4.51

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/811196/ft1_filtered_4FGL_J2323.5-0317_daily_bin941.fits scfile=/scratch/kocevski/811196/ft2_4FGL_J2323.5-0317_daily_bin941.fits outfile=/scratch/kocevski/811196/cmap_483235201_483494401_4FGL_J2323.5-0317_daily_bin941.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/811196/ft1_filtered_4FGL_J2323.5-0317_daily_bin941.fits scfile=/scratch/kocevski/811196/ft2_4FGL_J2323.5-0317_daily_bin941.fits outfile=/scratch/kocevski/811196/cmap_HighResolution_483235201_483494401_4FGL_J2323.5-0317_daily_bin941.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.56
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/811196/ft1_filtered_4FGL_J2323.5-0317_daily_bin941.fits evtable="EVENTS" scfile=/scratch/kocevski/811196/ft2_4FGL_J2323.5-0317_daily_bin941.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/811196/Model_4FGL_J2323.5-0317_daily_bin941.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/811196/ft1_filtered_4FGL_J2323.5-0317_daily_bin941.fits.....................!
real 62.67
user 61.31
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.544       1.0000         .10000E-03   10000.    
     2 'Prefactor '    10.254       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10069E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    7.9089       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    15.242       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10237E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .15650E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    1.6427       1.0000         .10000E-03   10000.    
    11 'norm      '    4.2633       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .52991       1.0000         .10000E-03   10000.    
    13 'Prefactor '    12.275       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .32036E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    6.1063       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10095E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .11193E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    41.374       1.0000         .10000E-03   10000.    
    21 'Prefactor '    18.195       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10098E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    4.5287       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .76432       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0567       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=   6952.302     FROM MIGRAD    STATUS=CONVERGED    582 CALLS     2997 TOTAL
                     EDM=   .82E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.545        9.7526        .17818E-06    .83149E-05
   2  Prefactor     10.271        33.879       -.27744E-05   -.38350E-04
   3  Prefactor     .10000E-03    82.812       -.14924E-06** at limit **
   4  Prefactor     .10000E-03    3.3720        .27016E-07** at limit **
   5  norm          7.9081        9.3719        .16673E-06    .76849E-05
   6  Prefactor     .10000E-03    16.938       -.29215E-06** at limit **
   7  Prefactor     15.240        17.233        .12092E-06    .91688E-05
   8  Prefactor     .10000E-03    82.819       -.34474E-06** at limit **
   9  Prefactor     .10000E-03    4.3561       -.39475E-06** at limit **
  10  norm          1.6435        .92552       -.10723E-06   -.85546E-03
  11  norm          4.2630        4.3119        .14734E-05    .98545E-03
  12  Prefactor     .50675        16.371       -.44778E-05    .49951E-03
  13  Prefactor     12.276        24.270        .28912E-08   -.22836E-05
  14  Prefactor     .10003E-03    640.97        .27631E-04** at limit **
  15  Prefactor     .10000E-03    2.7223       -.41980E-07** at limit **
  16  Prefactor     6.1117        22.152        .71778E-06    .74322E-04
  17  norm          .10000E-03    5.5147        .11979E-07** at limit **
  18  Prefactor     .10000E-03    48.941       -.33053E-06** at limit **
  19  Prefactor     .10000E-03    2.4584       -.61831E-07** at limit **
  20  Prefactor     41.368        36.633        .73615E-06    .33428E-04
  21  Prefactor     18.193        25.363        .23450E-06    .18520E-04
  22  Prefactor     .10000E-03    15.063        .24627E-06** at limit **
  23  Prefactor     4.5273        6.7712        .11300E-06    .23089E-04
  24  Normalizat    .76429        .17322       -.70734E-06   -.60150E-04
  25  Prefactor     1.0568        .12949       -.13706E-06   -.10487E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.5448
  Prefactor  = 10.2707
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.90814
  Prefactor  = 0.0001
  Prefactor  = 15.2396
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 1.64347
  norm       = 4.26301
  Prefactor  = 0.506747
  Prefactor  = 12.2757
  Prefactor  = 0.000100031
  Prefactor  = 0.0001
  Prefactor  = 6.11168
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 41.3683
  Prefactor  = 18.1927
  Prefactor  = 0.0001
  Prefactor  = 4.52734
  Normalizat = 0.764293
  Prefactor  = 1.05677
 **********
 **   18 **HESSE 
 **********

 FCN=   6952.302     FROM HESSE     STATUS=OK           433 CALLS     3430 TOTAL
                     EDM=   .73E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.545        9.7391        .11310E-03   -1.4999    
   2  Prefactor     10.271        33.864        .12513E-03   -1.5067    
   3  Prefactor     .10000E-03    83.948        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    3.3772        .14953E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          7.9081        9.3720        .14258E-03   -1.5145    
   6  Prefactor     .10000E-03    16.961        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     15.240        17.233        .10259E-03   -1.4927    
   8  Prefactor     .10000E-03    84.081        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    11.455        .33013E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.6435        .92047        .56959E-04   -1.5452    
  11  norm          4.2630        4.5382        .87790E-03   -1.5295    
  12  Prefactor     .50675        53.153        .44815E-02   -1.5566    
  13  Prefactor     12.276        24.267        .11433E-03   -1.5007    
  14  Prefactor     .10003E-03    649.13        .21362E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    2.7280        .13433E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     6.1117        21.977        .16247E-03   -1.5213    
  17  norm          .10000E-03    5.5208        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    49.068        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    2.5695        .25496E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     41.368        36.666        .62320E-04   -1.4421    
  21  Prefactor     18.193        25.356        .93896E-04   -1.4855    
  22  Prefactor     .10000E-03    15.343        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     4.5273        6.7602        .18918E-03   -1.5282    
  24  Normalizat    .76429        .19698        .29690E-03   -1.0141    
  25  Prefactor     1.0568        .14942        .19582E-03   -.90860    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.25162e-09
Minuit parameter uncertainties:
  1  9.74036
  2  33.9277
  3  7.62655e-05
  4  1.88236e-06
  5  9.3737
  6  6.04976e-06
  7  17.2388
  8  0.000128805
  9  0.000231038
  10  0.920475
  11  4.53852
  12  10.3883
  13  24.2865
  14  0.00913246
  15  1.71798e-06
  16  22.0061
  17  2.25034e-07
  18  1.20144e-05
  19  9.7304e-07
  20  36.6855
  21  25.3705
  22  2.93397e-05
  23  6.76132
  24  0.19716
  25  0.149475
Done.

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

Extracting fit parameters...

4FGL J2323.5-0317
   Spectrum: LogParabola
373         norm:  1.643e+00  9.205e-01  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.057e+00  1.495e-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.643e-01  1.972e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.44
Ra Dec: 350.888 -3.290
Photon Index (Fixed Index): 2.16 +/- 0.00
Photon Flux (Fixed Index): 6.36e-08 +/- 3.56e-08
Energy Flux (Fixed Index): 2.61e-05 +/- 1.46e-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) = 6951.19780294
delta logL = 1.10456668792

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6951.1937684
delta logL = 1.10860123026

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.2830       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.9236       1.0000          .0000       5.0000    
     3 'Normalizat'    .70134       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0839       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=   6951.194     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      208 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.2829        7.7590        .87667E-02    .51243E-03
   2  alpha         2.9239        3.9298        .25857        .60297E-04
   3  Normalizat    .70135        .66387E-01    .69667E-01    .27005E-04
   4  Prefactor     1.0839        .48696E-01    .38234E-01   -.89783E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 1.28287
  alpha      = 2.92386
  Normalizat = 0.701354
  Prefactor  = 1.08386
 **********
 **   18 **HESSE 
 **********

 FCN=   6951.194     FROM HESSE     STATUS=OK            33 CALLS      241 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.2829        .87522        .39213E-04   -1.5481    
   2  alpha         2.9239        .56387        .10638E-01    .17037    
   3  Normalizat    .70135        .19725        .30831E-03   -1.0384    
   4  Prefactor     1.0839        .14888        .19348E-03   -.89984    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.19349e-09
Minuit parameter uncertainties:
  1  0.875229
  2  0.568914
  3  0.197449
  4  0.148932
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/811196': 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) = 6951.19376823
delta logL = 1.10860140271

Extracting fit parameters...

4FGL J2323.5-0317
   Spectrum: LogParabola
373         norm:  1.283e+00  8.752e-01  1.000e-04  1.000e+04 ( 1.000e-11)
374        alpha:  2.924e+00  5.689e-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.084e+00  1.489e-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.014e-01  1.974e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.79
Ra Dec: 350.888 -3.290
Photon Index (Free Index): 2.92 +/- 0.57
Photon Flux (Free Index): 1.17e-07 +/- 5.62e-08
Energy Flux (Free Index): 2.53e-05 +/- 1.13e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/811196/cmap_HighResolution_483235201_483494401_4FGL_J2323.5-0317_daily_bin941.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.36e-08', energy_flux2='2.53e-05', photon_flux_error='3.56e-08', dlogl='1.11e+00', energy_flux='2.61e-05', photon_flux2='1.17e-07', job_status='DONE', time_completed='2021-09-29 14:49:21.675218', photon_index_error2='0.57', photon_index2='2.92', ts='6.44', fit_tolerance='1e-08', GAL='1.06', photon_index_error='0.00', energy_flux_error2='1.13e-05', EG='0.76', time_epoch_completed='1632952161.68', return_code='0', job_id='811196', GAL2='1.08', EG2='0.70', return_code2='0', energy_flux_error='1.46e-05', photon_flux_error2='5.62e-08', ts2='8.79', photon_index='2.16' WHERE bin_id='941' AND source_name='4FGL J2323.5-0317' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 14:49:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0274>
Subject: Job 811196: <4FGL_J2323.5-0317_daily_bin941> in cluster <slac> Done

Job <4FGL_J2323.5-0317_daily_bin941> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Sep 29 14:35:43 2021
Job was executed on host(s) <bullet0274>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 14:35:45 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:45 2021
Terminated at Wed Sep 29 14:49:22 2021
Results reported at Wed Sep 29 14:49:22 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2323.5-0317_daily_bin941 350.888 -3.29 483235201 483494401 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 :                                   633.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             242.15 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   816 sec.
    Turnaround time :                            819 sec.

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

