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


Performing analysis on: 4FGL_J2323.5-0317_daily_bin876
RA = 350.888, Dec = -3.29
tmin = 466387201, tmax = 466646401
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='811101', job_status='RUN', time_executed='2021-09-29 14:38:19.282699', time_epoch_executed='1632951499.28' WHERE source_name='4FGL J2323.5-0317' and cadence='daily' and bin_id='876'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/811101

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/811101/ft1_4FGL_J2323.5-0317_daily_bin876.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/811101/ft2_4FGL_J2323.5-0317_daily_bin876.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/811101/ft1_4FGL_J2323.5-0317_daily_bin876.fits outfile=/scratch/kocevski/811101/ft1_filteredMKT_4FGL_J2323.5-0317_daily_bin876.fits ra=350.888 dec=-3.29 rad=12.0 tmin=466387201.0 tmax=466646401.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.63
user 3.41
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/811101/ft2_4FGL_J2323.5-0317_daily_bin876.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/811101/ft1_filteredMKT_4FGL_J2323.5-0317_daily_bin876.fits evtable="EVENTS" outfile="/scratch/kocevski/811101/ft1_filtered_4FGL_J2323.5-0317_daily_bin876.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/811101/ft1_filtered_4FGL_J2323.5-0317_daily_bin876.fits" evtable="EVENTS" scfile=/scratch/kocevski/811101/ft2_4FGL_J2323.5-0317_daily_bin876.fits sctable="SC_DATA" outfile=/scratch/kocevski/811101/ltcube_466387201_466646401_4FGL_J2323.5-0317_daily_bin876.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/811101/ft2_4FGL_J2323.5-0317_daily_bin876.fits
.....................!
real 12.17
user 11.80
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/811101/ft1_filtered_4FGL_J2323.5-0317_daily_bin876.fits evtable="EVENTS" scfile=/scratch/kocevski/811101/ft2_4FGL_J2323.5-0317_daily_bin876.fits sctable="SC_DATA" expcube=/scratch/kocevski/811101/ltcube_466387201_466646401_4FGL_J2323.5-0317_daily_bin876.fits outfile=/scratch/kocevski/811101/expmap_466387201_466646401_4FGL_J2323.5-0317_daily_bin876.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/811101/ltcube_466387201_466646401_4FGL_J2323.5-0317_daily_bin876.fits
.....................!
real 190.93
user 185.71
sys 4.83

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/811101/ft1_filtered_4FGL_J2323.5-0317_daily_bin876.fits scfile=/scratch/kocevski/811101/ft2_4FGL_J2323.5-0317_daily_bin876.fits outfile=/scratch/kocevski/811101/cmap_466387201_466646401_4FGL_J2323.5-0317_daily_bin876.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.55
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/811101/ft1_filtered_4FGL_J2323.5-0317_daily_bin876.fits scfile=/scratch/kocevski/811101/ft2_4FGL_J2323.5-0317_daily_bin876.fits outfile=/scratch/kocevski/811101/cmap_HighResolution_466387201_466646401_4FGL_J2323.5-0317_daily_bin876.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.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/811101/ft1_filtered_4FGL_J2323.5-0317_daily_bin876.fits evtable="EVENTS" scfile=/scratch/kocevski/811101/ft2_4FGL_J2323.5-0317_daily_bin876.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/811101/Model_4FGL_J2323.5-0317_daily_bin876.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/811101/ft1_filtered_4FGL_J2323.5-0317_daily_bin876.fits.....................!
real 61.59
user 60.08
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    68.776       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10226E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.6799       1.0000         .10000E-03   10000.    
     5 'norm      '    11.407       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    35.700       1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.2808       1.0000         .10000E-03   10000.    
    10 'norm      '    7.5953       1.0000         .10000E-03   10000.    
    11 'norm      '    .10036E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    13.239       1.0000         .10000E-03   10000.    
    16 'Prefactor '    8.9512       1.0000         .10000E-03   10000.    
    17 'norm      '    .10051E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .95640       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .42581E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    15.033       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    20.420       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .90144       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .88125       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=   6329.409     FROM MIGRAD    STATUS=CONVERGED    581 CALLS     2939 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.9657        .92889E-06** at limit **
   2  Prefactor     68.802        81.105       -.58186E-06    .10915E-03
   3  Prefactor     .10000E-03    31.253       -.73381E-06** at limit **
   4  Prefactor     1.6815        8.8017        .13275E-04   -.10294E-03
   5  norm          11.407        10.474       -.60114E-07    .98505E-04
   6  Prefactor     .10000E-03    8.0479       -.69577E-07** at limit **
   7  Prefactor     .10000E-03    9.6049       -.25632E-06** at limit **
   8  Prefactor     35.717        43.229       -.13121E-06    .59458E-04
   9  Prefactor     4.2772        9.9425        .70758E-07    .42589E-04
  10  norm          7.5951        1.5482        .25263E-08    .10359E-02
  11  norm          .10000E-03    1.8997       -.40601E-07** at limit **
  12  Prefactor     .10000E-03    11.266        .13501E-07** at limit **
  13  Prefactor     .10000E-03    42.228        .37161E-06** at limit **
  14  Prefactor     .10003E-03    339.36        .28016E-05** at limit **
  15  Prefactor     13.213        15.873        .12882E-05    .56732E-03
  16  Prefactor     8.9450        23.779        .45312E-06    .14540E-03
  17  norm          .10000E-03    54.689       -.12291E-05** at limit **
  18  Prefactor     .10000E-03    30.185        .59106E-06** at limit **
  19  Prefactor     .96242        6.4609       -.28967E-06   -.11348E-03
  20  Prefactor     .10014E-03    154.19        .19939E-06** at limit **
  21  Prefactor     15.008        28.553        .10102E-05    .39554E-03
  22  Prefactor     .10000E-03    8.3330       -.38994E-07** at limit **
  23  Prefactor     20.424        10.512       -.12267E-06    .40181E-03
  24  Normalizat    .90122        .19399       -.56026E-06    .55935E-03
  25  Prefactor     .88135        .13543        .52251E-06    .93556E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 68.8017
  Prefactor  = 0.000100003
  Prefactor  = 1.68151
  norm       = 11.4074
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 35.7168
  Prefactor  = 4.27722
  norm       = 7.59511
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.000100028
  Prefactor  = 13.2131
  Prefactor  = 8.94502
  norm       = 0.000100002
  Prefactor  = 0.000100001
  Prefactor  = 0.962424
  Prefactor  = 0.000100139
  Prefactor  = 15.0078
  Prefactor  = 0.0001
  Prefactor  = 20.4237
  Normalizat = 0.901217
  Prefactor  = 0.881353
 **********
 **   18 **HESSE 
 **********

 FCN=   6329.409     FROM HESSE     STATUS=OK           415 CALLS     3354 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.9965        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     68.802        81.455        .48401E-04   -1.4047    
   3  Prefactor     .10000E-03    32.158        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.6815        8.8062        .16252E-02   -1.5449    
   5  norm          11.407        10.485        .11862E-03   -1.5032    
   6  Prefactor     .10000E-03    8.0506        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    9.6542        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     35.717        43.000        .67073E-04   -1.4512    
   9  Prefactor     4.2772        9.8662        .19472E-03   -1.5294    
  10  norm          7.5951        1.5485        .41884E-04   -1.5157    
  11  norm          .10000E-03    1.9063        .10704E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    11.378        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    42.398        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10003E-03    340.49        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     13.213        14.828        .11009E-03   -1.4981    
  16  Prefactor     8.9450        23.770        .13397E-03   -1.5110    
  17  norm          .10000E-03    55.153        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    30.241        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .96242        5.5784        .30811E-03   -1.5512    
  20  Prefactor     .10014E-03    159.00        .42469E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     15.008        28.584        .10330E-03   -1.4933    
  22  Prefactor     .10000E-03    8.3515        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     20.424        10.572        .88634E-04   -1.4804    
  24  Normalizat    .90122        .22800        .28748E-03   -.96417    
  25  Prefactor     .88135        .16024        .21217E-03   -.96796    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.23914e-09
Minuit parameter uncertainties:
  1  0.000130763
  2  81.5871
  3  0.000648492
  4  7.69772
  5  10.4872
  6  1.38344e-05
  7  5.34883e-05
  8  43.037
  9  9.86999
  10  1.54846
  11  3.494e-06
  12  1.46248e-06
  13  0.0005147
  14  0.00624119
  15  14.8321
  16  23.7956
  17  0.00058699
  18  0.00037345
  19  4.63456
  20  0.0094398
  21  28.61
  22  4.1474e-06
  23  10.5728
  24  0.228243
  25  0.16033
Done.

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

Extracting fit parameters...

4FGL J2323.5-0317
   Spectrum: LogParabola
373         norm:  7.595e+00  1.548e+00  1.000e-04  1.000e+04 ( 1.000e-11)
374        alpha:  2.160e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
375         beta:  9.598e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
376           Eb:  6.247e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
520    Prefactor:  8.814e-01  1.603e-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:  9.012e-01  2.282e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 86.48
Ra Dec: 350.888 -3.290
Photon Index (Fixed Index): 2.16 +/- 0.00
Photon Flux (Fixed Index): 2.94e-07 +/- 5.99e-08
Energy Flux (Fixed Index): 1.20e-04 +/- 2.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) = 6329.09851762
delta logL = 0.310020453746

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6329.06790323
delta logL = 0.340634847593

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.8108       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9957       1.0000          .0000       5.0000    
     3 'Normalizat'    .93397       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86703       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=   6329.068     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      197 TOTAL
                     EDM=   .90E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.8114        1.7250        .35869E-02   -.50709E-05
   2  alpha         1.9959        .20872        .13770        .79999E-05
   3  Normalizat    .93391        .18794        .45334E-01    .16345E-04
   4  Prefactor     .86704        .13612        .44583E-01    .80679E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 7.81142
  alpha      = 1.99595
  Normalizat = 0.933911
  Prefactor  = 0.867039
 **********
 **   18 **HESSE 
 **********

 FCN=   6329.068     FROM HESSE     STATUS=OK            31 CALLS      228 TOTAL
                     EDM=   .77E-16    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.8114        1.5971        .43494E-04   -1.5149    
   2  alpha         1.9959        .19707        .59641E-03   -.20301    
   3  Normalizat    .93391        .21688        .28303E-03   -.95279    
   4  Prefactor     .86704        .15680        .21379E-03   -.97303    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.72809e-17
Minuit parameter uncertainties:
  1  1.59707
  2  0.197287
  3  0.217081
  4  0.15688
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/811101': 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) = 6329.06790257
delta logL = 0.34063550324

Extracting fit parameters...

4FGL J2323.5-0317
   Spectrum: LogParabola
373         norm:  7.811e+00  1.597e+00  1.000e-04  1.000e+04 ( 1.000e-11)
374        alpha:  1.996e+00  1.973e-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.670e-01  1.569e-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:  9.339e-01  2.171e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 87.21
Ra Dec: 350.888 -3.290
Photon Index (Free Index): 2.00 +/- 0.20
Photon Flux (Free Index): 2.62e-07 +/- 6.66e-08
Energy Flux (Free Index): 1.36e-04 +/- 3.52e-05

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

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.94e-07', energy_flux2='1.36e-04', photon_flux_error='5.99e-08', dlogl='3.41e-01', energy_flux='1.20e-04', photon_flux2='2.62e-07', job_status='DONE', time_completed='2021-09-29 14:48:34.450722', photon_index_error2='0.20', photon_index2='2.00', ts='86.48', fit_tolerance='1e-08', GAL='0.88', photon_index_error='0.00', energy_flux_error2='3.52e-05', EG='0.90', time_epoch_completed='1632952114.45', return_code='0', job_id='811101', GAL2='0.87', EG2='0.93', return_code2='0', energy_flux_error='2.46e-05', photon_flux_error2='6.66e-08', ts2='87.21', photon_index='2.16' WHERE bin_id='876' AND source_name='4FGL J2323.5-0317' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 14:48:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0034>
Subject: Job 811101: <4FGL_J2323.5-0317_daily_bin876> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2323.5-0317_daily_bin876 350.888 -3.29 466387201 466646401 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 :                                   612.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             249.92 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   778 sec.
    Turnaround time :                            781 sec.

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

