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


Performing analysis on: 4FGL_J2323.5-0317_daily_bin461
RA = 350.888, Dec = -3.29
tmin = 358819201, tmax = 359078401
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='809383', job_status='RUN', time_executed='2021-09-29 14:34:21.803717', time_epoch_executed='1632951261.8' WHERE source_name='4FGL J2323.5-0317' and cadence='daily' and bin_id='461'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/809383

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

Retrieving the FT1 file...

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

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

Retrieving 49 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/809383/ft1_4FGL_J2323.5-0317_daily_bin461.fits


Retrieving the FT1 file...

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

Retrieving 49 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/809383/ft2_4FGL_J2323.5-0317_daily_bin461.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/809383/ft1_4FGL_J2323.5-0317_daily_bin461.fits outfile=/scratch/kocevski/809383/ft1_filteredMKT_4FGL_J2323.5-0317_daily_bin461.fits ra=350.888 dec=-3.29 rad=12.0 tmin=358819201.0 tmax=359078401.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.33
user 5.06
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/809383/ft1_filtered_4FGL_J2323.5-0317_daily_bin461.fits" evtable="EVENTS" scfile=/scratch/kocevski/809383/ft2_4FGL_J2323.5-0317_daily_bin461.fits sctable="SC_DATA" outfile=/scratch/kocevski/809383/ltcube_358819201_359078401_4FGL_J2323.5-0317_daily_bin461.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/809383/ft2_4FGL_J2323.5-0317_daily_bin461.fits
.....................!
real 11.99
user 11.61
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/809383/ft1_filtered_4FGL_J2323.5-0317_daily_bin461.fits evtable="EVENTS" scfile=/scratch/kocevski/809383/ft2_4FGL_J2323.5-0317_daily_bin461.fits sctable="SC_DATA" expcube=/scratch/kocevski/809383/ltcube_358819201_359078401_4FGL_J2323.5-0317_daily_bin461.fits outfile=/scratch/kocevski/809383/expmap_358819201_359078401_4FGL_J2323.5-0317_daily_bin461.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/809383/ltcube_358819201_359078401_4FGL_J2323.5-0317_daily_bin461.fits
.....................!
real 191.89
user 186.70
sys 4.66

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/809383/ft1_filtered_4FGL_J2323.5-0317_daily_bin461.fits scfile=/scratch/kocevski/809383/ft2_4FGL_J2323.5-0317_daily_bin461.fits outfile=/scratch/kocevski/809383/cmap_358819201_359078401_4FGL_J2323.5-0317_daily_bin461.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=350.888 yref=-3.29 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.53
user 0.37
sys 0.15

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

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

This is gtbin version HEAD
real 0.55
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/809383/ft1_filtered_4FGL_J2323.5-0317_daily_bin461.fits evtable="EVENTS" scfile=/scratch/kocevski/809383/ft2_4FGL_J2323.5-0317_daily_bin461.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/809383/Model_4FGL_J2323.5-0317_daily_bin461.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/809383/ft1_filtered_4FGL_J2323.5-0317_daily_bin461.fits.....................!
real 52.39
user 51.01
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.1364       1.0000         .10000E-03   10000.    
     2 'Prefactor '    53.738       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .95112E-01   1.0000         .10000E-03   10000.    
     5 'norm      '    21.607       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    38.638       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.5767       1.0000         .10000E-03   10000.    
    13 'Prefactor '    14.007       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .65850       1.0000         .10000E-03   10000.    
    16 'Prefactor '    17.555       1.0000         .10000E-03   10000.    
    17 'norm      '    2.6862       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    13.137       1.0000         .10000E-03   10000.    
    21 'Prefactor '    17.168       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .42892E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .87729       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .91737       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=   5442.402     FROM MIGRAD    STATUS=CONVERGED    636 CALLS     2991 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.1390        8.3522        .40136E-06    .30084E-04
   2  Prefactor     53.728        59.804       -.50375E-05    .18753E-03
   3  Prefactor     .10000E-03    39.193        .35371E-06** at limit **
   4  Prefactor     .15649E-03    7.5262       -.11936E-06** at limit **
   5  norm          21.604        13.555       -.26800E-06    .11213E-03
   6  Prefactor     .10000E-03    10.055        .17729E-06** at limit **
   7  Prefactor     38.630        23.397        .21160E-05   -.23204E-03
   8  Prefactor     .10000E-03    35.903       -.27154E-06** at limit **
   9  Prefactor     .10000E-03    3.3302        .72981E-07** at limit **
  10  norm          .10000E-03    .38652        .10176E-06** at limit **
  11  norm          .10000E-03    2.4229        .34589E-07** at limit **
  12  Prefactor     7.5736        12.173       -.29175E-05    .26598E-03
  13  Prefactor     13.997        34.242        .73702E-05   -.95182E-04
  14  Prefactor     .10000E-03    83.900        .20792E-05** at limit **
  15  Prefactor     .65761        19.346       -.99160E-05    .59369E-03
  16  Prefactor     17.551        23.728        .14658E-05   -.25534E-04
  17  norm          2.6705        46.052        .18397E-04    .34958E-03
  18  Prefactor     .10000E-03    96.866       -.24215E-05** at limit **
  19  Prefactor     .10000E-03    3.6172       -.25566E-06** at limit **
  20  Prefactor     13.131        22.781        .19237E-05    .36184E-04
  21  Prefactor     17.163        19.113       -.47054E-06   -.15136E-03
  22  Prefactor     .10000E-03    6.2586        .91585E-07** at limit **
  23  Prefactor     .10000E-03    5.9231        .38278E-07** at limit **
  24  Normalizat    .87743        .19081        .10188E-05    .63079E-03
  25  Prefactor     .91742        .14325       -.59178E-06    .75826E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.13902
  Prefactor  = 53.7283
  Prefactor  = 0.0001
  Prefactor  = 0.000156488
  norm       = 21.6036
  Prefactor  = 0.0001
  Prefactor  = 38.6303
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 7.57363
  Prefactor  = 13.9969
  Prefactor  = 0.0001
  Prefactor  = 0.657615
  Prefactor  = 17.5514
  norm       = 2.67053
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 13.1315
  Prefactor  = 17.1634
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.877432
  Prefactor  = 0.917423
 **********
 **   18 **HESSE 
 **********

 FCN=   5442.402     FROM HESSE     STATUS=OK           435 CALLS     3426 TOTAL
                     EDM=   .81E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.1390        8.3105        .14056E-03   -1.5137    
   2  Prefactor     53.728        59.402        .54715E-04   -1.4241    
   3  Prefactor     .10000E-03    39.327        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .15649E-03    10.925        .69134E-01   -1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          21.604        13.560        .86168E-04   -1.4778    
   6  Prefactor     .10000E-03    10.060        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     38.630        23.243        .64481E-04   -1.4464    
   8  Prefactor     .10000E-03    35.958        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    3.3369        .13145E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    .68115        .88616E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    2.4394        .11211E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     7.5736        12.153        .14569E-03   -1.5157    
  13  Prefactor     13.997        34.084        .10702E-03   -1.4960    
  14  Prefactor     .10000E-03    83.879        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .65761        118.06        .39862E-02   -1.5546    
  16  Prefactor     17.551        23.678        .95592E-04   -1.4870    
  17  norm          2.6705        107.75        .24860E-03   -1.5381    
  18  Prefactor     .10000E-03    97.172        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    3.6960        .27286E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     13.131        22.799        .11051E-03   -1.4983    
  21  Prefactor     17.163        19.184        .48331E-03   -1.4879    
  22  Prefactor     .10000E-03    6.2672        .18024E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    15.448        .34376E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .87743        .21949        .27431E-03   -.97258    
  25  Prefactor     .91742        .16616        .20181E-03   -.95535    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.0946e-09
Minuit parameter uncertainties:
  1  8.31165
  2  59.4676
  3  5.74651e-05
  4  0.0496928
  5  13.5615
  6  1.39686e-05
  7  23.2488
  8  4.09984e-05
  9  1.54724e-06
  10  4.04694e-06
  11  7.90766e-07
  12  12.1566
  13  34.1318
  14  0.000371558
  15  17.6569
  16  23.6911
  17  33.9909
  18  0.000611528
  19  3.2131e-05
  20  22.8144
  21  19.1904
  22  1.97288e-06
  23  1.76652e-05
  24  0.219718
  25  0.166253
Done.

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

Extracting fit parameters...

4FGL J2323.5-0317
   Spectrum: LogParabola
373         norm:  1.000e-04  4.047e-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:  9.174e-01  1.663e-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:  8.774e-01  2.197e-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: 5.94e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.43e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/809383/likelihoodResults_358819201_359078401_4FGL_J2323.5-0317_daily_bin461.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) = 5442.40926325
delta logL = -0.00704352154571

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5442.34648901
delta logL = 0.0557307199688

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .71437E-01   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.0804       1.0000          .0000       5.0000    
     3 'Normalizat'    .88058       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91325       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=   5442.346     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      329 TOTAL
                     EDM=   .28E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .71345E-01    .29457        .64635E-04    .75633E-05
   2  alpha         1.0800        1.3191        .22956E-02   -.81713E-06
   3  Normalizat    .88057        .21197        .27386E-03    .41513E-07
   4  Prefactor     .91325        .16035        .20221E-03   -.56222E-07
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0713449
  alpha      = 1.08004
  Normalizat = 0.88057
  Prefactor  = 0.913248
 **********
 **   18 **HESSE 
 **********

 FCN=   5442.346     FROM HESSE     STATUS=OK            25 CALLS      354 TOTAL
                     EDM=   .95E-15    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .71345E-01    .29211        .25854E-05   -1.5655    
   2  alpha         1.0800        1.3145        .45913E-03   -.60406    
   3  Normalizat    .88057        .21216        .10954E-04   -.97146    
   4  Prefactor     .91325        .16049        .80885E-05   -.95680    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.51401e-16
Minuit parameter uncertainties:
  1  0.288527
  2  1.42597
  3  0.212356
  4  0.160576
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/809383': 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) = 5442.34648895
delta logL = 0.0557307804993

Extracting fit parameters...

4FGL J2323.5-0317
   Spectrum: LogParabola
373         norm:  7.134e-02  2.885e-01  1.000e-04  1.000e+04 ( 1.000e-11)
374        alpha:  1.080e+00  1.426e+00  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:  9.132e-01  1.606e-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:  8.806e-01  2.124e-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/809383/cmap_HighResolution_358819201_359078401_4FGL_J2323.5-0317_daily_bin461.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.43e-05', job_status='DONE', photon_flux_upper_limit='5.94e-08', time_completed='2021-09-29 14:45:01.541847', job_id='809383', GAL2='0.91', fit_tolerance='1e-08', EG2='0.88', EG='0.88', time_epoch_completed='1632951901.54', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.92', dlogl='5.57e-02', ts2='0.11', photon_index_error='0.00', photon_index='2.16' WHERE bin_id='461' AND source_name='4FGL J2323.5-0317' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 14:45:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0066>
Subject: Job 809383: <4FGL_J2323.5-0317_daily_bin461> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2323.5-0317_daily_bin461 350.888 -3.29 358819201 359078401 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 :                                   638.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             256.82 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   881 sec.
    Turnaround time :                            885 sec.

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

