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


Performing analysis on: 4FGL_J2323.5-0317_daily_bin1016
RA = 350.888, Dec = -3.29
tmin = 502675201, tmax = 502934401
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='812446', job_status='RUN', time_executed='2021-09-29 14:42:39.671970', time_epoch_executed='1632951759.67' WHERE source_name='4FGL J2323.5-0317' and cadence='daily' and bin_id='1016'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/812446

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/812446/ft1_4FGL_J2323.5-0317_daily_bin1016.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/812446/ft2_4FGL_J2323.5-0317_daily_bin1016.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/812446/ft1_4FGL_J2323.5-0317_daily_bin1016.fits outfile=/scratch/kocevski/812446/ft1_filteredMKT_4FGL_J2323.5-0317_daily_bin1016.fits ra=350.888 dec=-3.29 rad=12.0 tmin=502675201.0 tmax=502934401.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.57
user 3.35
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/812446/ft2_4FGL_J2323.5-0317_daily_bin1016.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/812446/ft1_filteredMKT_4FGL_J2323.5-0317_daily_bin1016.fits evtable="EVENTS" outfile="/scratch/kocevski/812446/ft1_filtered_4FGL_J2323.5-0317_daily_bin1016.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/812446/ft1_filtered_4FGL_J2323.5-0317_daily_bin1016.fits" evtable="EVENTS" scfile=/scratch/kocevski/812446/ft2_4FGL_J2323.5-0317_daily_bin1016.fits sctable="SC_DATA" outfile=/scratch/kocevski/812446/ltcube_502675201_502934401_4FGL_J2323.5-0317_daily_bin1016.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/812446/ft2_4FGL_J2323.5-0317_daily_bin1016.fits
.....................!
real 11.93
user 11.57
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/812446/ft1_filtered_4FGL_J2323.5-0317_daily_bin1016.fits evtable="EVENTS" scfile=/scratch/kocevski/812446/ft2_4FGL_J2323.5-0317_daily_bin1016.fits sctable="SC_DATA" expcube=/scratch/kocevski/812446/ltcube_502675201_502934401_4FGL_J2323.5-0317_daily_bin1016.fits outfile=/scratch/kocevski/812446/expmap_502675201_502934401_4FGL_J2323.5-0317_daily_bin1016.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/812446/ltcube_502675201_502934401_4FGL_J2323.5-0317_daily_bin1016.fits
.....................!
real 192.04
user 186.88
sys 4.82

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/812446/ft1_filtered_4FGL_J2323.5-0317_daily_bin1016.fits scfile=/scratch/kocevski/812446/ft2_4FGL_J2323.5-0317_daily_bin1016.fits outfile=/scratch/kocevski/812446/cmap_502675201_502934401_4FGL_J2323.5-0317_daily_bin1016.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.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/812446/ft1_filtered_4FGL_J2323.5-0317_daily_bin1016.fits scfile=/scratch/kocevski/812446/ft2_4FGL_J2323.5-0317_daily_bin1016.fits outfile=/scratch/kocevski/812446/cmap_HighResolution_502675201_502934401_4FGL_J2323.5-0317_daily_bin1016.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.36
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    53.683       1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.1419       1.0000         .10000E-03   10000.    
     5 'norm      '    21.112       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .11005E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    15.206       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .81835       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    2.8427       1.0000         .10000E-03   10000.    
    11 'norm      '    3.8124       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10115E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .40323E-01   1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.3997       1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.1795       1.0000         .10000E-03   10000.    
    17 'norm      '    .10216E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10162E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    5.6150       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    15.824       1.0000         .10000E-03   10000.    
    22 'Prefactor '    6.4499       1.0000         .10000E-03   10000.    
    23 'Prefactor '    5.2664       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.4676       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .70276       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=   7518.317     FROM MIGRAD    STATUS=CONVERGED    637 CALLS     2941 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.7494       -.50264E-06** at limit **
   2  Prefactor     .10000E-03    16.700       -.14507E-06** at limit **
   3  Prefactor     53.703        36.747        .19054E-05    .22760E-03
   4  Prefactor     6.1415        5.9116        .27073E-06    .19583E-03
   5  norm          21.110        12.392       -.20609E-06   -.16166E-03
   6  Prefactor     .10000E-03    36.074       -.26461E-05** at limit **
   7  Prefactor     15.206        14.013       -.45155E-08   -.84555E-05
   8  Prefactor     .73381        772.02        .65493E-04   -.35452E-05
   9  Prefactor     .10000E-03    9.0686       -.37726E-06** at limit **
  10  norm          2.8427        1.2207        .53761E-07   -.20564E-03
  11  norm          3.8183        7.7639       -.68273E-06   -.16094E-04
  12  Prefactor     .10000E-03    5.4423       -.97033E-06** at limit **
  13  Prefactor     .10000E-03    13.995       -.26352E-06** at limit **
  14  Prefactor     .10002E-03    1705.0        .60767E-05** at limit **
  15  Prefactor     2.4066        8.3505       -.56500E-05   -.46125E-03
  16  Prefactor     1.1927        94.094       -.73147E-05    .52859E-04
  17  norm          .10000E-03    9.9666        .17351E-05** at limit **
  18  Prefactor     .10000E-03    20.913       -.47486E-06** at limit **
  19  Prefactor     5.6164        4.8180        .65814E-06    .85246E-05
  20  Prefactor     .10000E-03    6.4610       -.13037E-06** at limit **
  21  Prefactor     15.831        18.781        .60356E-07    .27374E-04
  22  Prefactor     6.4498        18.240        .17426E-05    .35746E-04
  23  Prefactor     5.2651        6.0184        .17655E-06   -.49593E-05
  24  Normalizat    1.4679        .22503       -.46569E-05    .59492E-03
  25  Prefactor     .70264        .15083        .50371E-05   -.60230E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 53.7026
  Prefactor  = 6.14151
  norm       = 21.1095
  Prefactor  = 0.000100001
  Prefactor  = 15.2059
  Prefactor  = 0.733812
  Prefactor  = 0.0001
  norm       = 2.84268
  norm       = 3.81831
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.00010002
  Prefactor  = 2.40655
  Prefactor  = 1.19269
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 5.61643
  Prefactor  = 0.0001
  Prefactor  = 15.8312
  Prefactor  = 6.44979
  Prefactor  = 5.26506
  Normalizat = 1.46794
  Prefactor  = 0.70264
 **********
 **   18 **HESSE 
 **********

 FCN=   7518.317     FROM HESSE     STATUS=OK           435 CALLS     3376 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.7690        .16403E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    16.706        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     53.703        36.745        .54743E-04   -1.4241    
   4  Prefactor     6.1415        5.9111        .16199E-03   -1.5212    
   5  norm          21.110        12.416        .87172E-04   -1.4789    
   6  Prefactor     .10000E-03    36.306        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     15.206        14.015        .10271E-03   -1.4928    
   8  Prefactor     .73381        58.625        .14347       -1.5537    
   9  Prefactor     .10000E-03    9.0920        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          2.8427        1.2125        .57181E-04   -1.5371    
  11  norm          3.8183        7.4789        .20672E-03   -1.5317    
  12  Prefactor     .10000E-03    5.4849        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    14.001        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10002E-03    1718.3        .18445E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     2.4066        8.5660        .26433E-03   -1.5398    
  16  Prefactor     1.1927        94.926        .21055E-02   -1.5490    
  17  norm          .10000E-03    10.067        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    20.928        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     5.6164        4.7735        .15586E-03   -1.5234    
  20  Prefactor     .10000E-03    6.4628        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     15.831        18.782        .10069E-03   -1.4912    
  22  Prefactor     6.4498        18.278        .15803E-03   -1.5200    
  23  Prefactor     5.2651        6.0193        .17515E-03   -1.5249    
  24  Normalizat    1.4679        .24109        .25143E-03   -.78683    
  25  Prefactor     .70264        .15904        .25172E-03   -1.0342    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.77524e-09
Minuit parameter uncertainties:
  1  2.08045e-05
  2  1.05053e-05
  3  36.76
  4  5.9117
  5  12.4177
  6  0.000381356
  7  14.0178
  8  13.1303
  9  3.98465e-05
  10  1.21252
  11  7.48068
  12  5.35764e-05
  13  2.05738e-05
  14  0.0119977
  15  8.57038
  16  21.3148
  17  0.000183063
  18  4.64868e-05
  19  4.77384
  20  6.37621e-06
  21  18.7894
  22  18.2938
  23  6.01994
  24  0.241282
  25  0.159145
Done.

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

Extracting fit parameters...

4FGL J2323.5-0317
   Spectrum: LogParabola
373         norm:  2.843e+00  1.213e+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:  7.026e-01  1.591e-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.468e+00  2.413e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 16.93
Ra Dec: 350.888 -3.290
Photon Index (Fixed Index): 2.16 +/- 0.00
Photon Flux (Fixed Index): 1.10e-07 +/- 4.69e-08
Energy Flux (Fixed Index): 4.51e-05 +/- 1.92e-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) = 7517.47458214
delta logL = 0.842154981844

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7517.46373547
delta logL = 0.853001653598

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.4930       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.7266       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3853       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .73861       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=   7517.464     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      236 TOTAL
                     EDM=   .66E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.4925        10.225        .64717E-02    .16202E-03
   2  alpha         2.7269        3.8261        .23596        .64441E-04
   3  Normalizat    1.3853        .10117        .58107E-01   -.48578E-05
   4  Prefactor     .73858        .59719E-01    .42913E-01    .20452E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.49248
  alpha      = 2.72694
  Normalizat = 1.3853
  Prefactor  = 0.73858
 **********
 **   18 **HESSE 
 **********

 FCN=   7517.464     FROM HESSE     STATUS=OK            33 CALLS      269 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.4925        1.1237        .43596E-04   -1.5392    
   2  alpha         2.7269        .43722        .95962E-02    .90903E-01
   3  Normalizat    1.3853        .22181        .25697E-03   -.81055    
   4  Prefactor     .73858        .15563        .24585E-03   -1.0203    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.57877e-09
Minuit parameter uncertainties:
  1  1.12368
  2  0.439502
  3  0.221962
  4  0.155723
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/812446': 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) = 7517.46373515
delta logL = 0.853001976218

Extracting fit parameters...

4FGL J2323.5-0317
   Spectrum: LogParabola
373         norm:  2.492e+00  1.124e+00  1.000e-04  1.000e+04 ( 1.000e-11)
374        alpha:  2.727e+00  4.395e-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:  7.386e-01  1.557e-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.385e+00  2.220e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 18.82
Ra Dec: 350.888 -3.290
Photon Index (Free Index): 2.73 +/- 0.44
Photon Flux (Free Index): 1.79e-07 +/- 7.38e-08
Energy Flux (Free Index): 4.32e-05 +/- 1.48e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/812446/cmap_HighResolution_502675201_502934401_4FGL_J2323.5-0317_daily_bin1016.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.10e-07', energy_flux2='4.32e-05', photon_flux_error='4.69e-08', dlogl='8.53e-01', energy_flux='4.51e-05', photon_flux2='1.79e-07', job_status='DONE', time_completed='2021-09-29 14:54:09.996338', photon_index_error2='0.44', photon_index2='2.73', ts='16.93', fit_tolerance='1e-08', GAL='0.70', photon_index_error='0.00', energy_flux_error2='1.48e-05', EG='1.47', time_epoch_completed='1632952450.0', return_code='0', job_id='812446', GAL2='0.74', EG2='1.39', return_code2='0', energy_flux_error='1.92e-05', photon_flux_error2='7.38e-08', ts2='18.82', photon_index='2.16' WHERE bin_id='1016' AND source_name='4FGL J2323.5-0317' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 14:54:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0203>
Subject: Job 812446: <4FGL_J2323.5-0317_daily_bin1016> in cluster <slac> Done

Job <4FGL_J2323.5-0317_daily_bin1016> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep 29 14:40:16 2021
Job was executed on host(s) <bullet0203>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 14:40:17 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:40:17 2021
Terminated at Wed Sep 29 14:54:10 2021
Results reported at Wed Sep 29 14:54:10 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2323.5-0317_daily_bin1016 350.888 -3.29 502675201 502934401 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 :                                   687.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             314.65 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   833 sec.
    Turnaround time :                            834 sec.

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

