/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 90 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 = 7485
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2323.5-0317_daily_bin381
RA = 350.888, Dec = -3.29
tmin = 338083201, tmax = 338342401
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='808432', job_status='RUN', time_executed='2021-09-29 14:27:20.204596', time_epoch_executed='1632950840.2' WHERE source_name='4FGL J2323.5-0317' and cadence='daily' and bin_id='381'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/808432

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

Retrieving the FT1 file...

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

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

Retrieving 52 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/808432/ft1_4FGL_J2323.5-0317_daily_bin381.fits


Retrieving the FT1 file...

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

Retrieving 52 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/808432/ft2_4FGL_J2323.5-0317_daily_bin381.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/808432/ft1_4FGL_J2323.5-0317_daily_bin381.fits outfile=/scratch/kocevski/808432/ft1_filteredMKT_4FGL_J2323.5-0317_daily_bin381.fits ra=350.888 dec=-3.29 rad=12.0 tmin=338083201.0 tmax=338342401.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 6.71
user 6.42
sys 0.26

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/808432/ft2_4FGL_J2323.5-0317_daily_bin381.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/808432/ft1_filteredMKT_4FGL_J2323.5-0317_daily_bin381.fits evtable="EVENTS" outfile="/scratch/kocevski/808432/ft1_filtered_4FGL_J2323.5-0317_daily_bin381.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.48
user 0.35
sys 0.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/808432/ft1_filtered_4FGL_J2323.5-0317_daily_bin381.fits" evtable="EVENTS" scfile=/scratch/kocevski/808432/ft2_4FGL_J2323.5-0317_daily_bin381.fits sctable="SC_DATA" outfile=/scratch/kocevski/808432/ltcube_338083201_338342401_4FGL_J2323.5-0317_daily_bin381.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/808432/ft2_4FGL_J2323.5-0317_daily_bin381.fits
.....................!
real 11.94
user 11.58
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/808432/ft1_filtered_4FGL_J2323.5-0317_daily_bin381.fits evtable="EVENTS" scfile=/scratch/kocevski/808432/ft2_4FGL_J2323.5-0317_daily_bin381.fits sctable="SC_DATA" expcube=/scratch/kocevski/808432/ltcube_338083201_338342401_4FGL_J2323.5-0317_daily_bin381.fits outfile=/scratch/kocevski/808432/expmap_338083201_338342401_4FGL_J2323.5-0317_daily_bin381.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/808432/ltcube_338083201_338342401_4FGL_J2323.5-0317_daily_bin381.fits
.....................!
real 191.28
user 186.25
sys 4.72

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/808432/ft1_filtered_4FGL_J2323.5-0317_daily_bin381.fits scfile=/scratch/kocevski/808432/ft2_4FGL_J2323.5-0317_daily_bin381.fits outfile=/scratch/kocevski/808432/cmap_338083201_338342401_4FGL_J2323.5-0317_daily_bin381.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.38
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.1556       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10234E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.6855       1.0000         .10000E-03   10000.    
     5 'norm      '    17.375       1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.0955       1.0000         .10000E-03   10000.    
     7 'Prefactor '    13.897       1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.2124       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .11321E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .69212       1.0000         .10000E-03   10000.    
    11 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.6449       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .28121E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    45.248       1.0000         .10000E-03   10000.    
    17 'norm      '    35.451       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    7.5866       1.0000         .10000E-03   10000.    
    20 'Prefactor '    24.424       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10133E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    3.5105       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .71491       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.1004       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=   5781.643     FROM MIGRAD    STATUS=CONVERGED    559 CALLS     2887 TOTAL
                     EDM=   .18E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.1552        7.4835       -.64163E-07   -.11681E-04
   2  Prefactor     .10000E-03    19.296       -.95063E-06** at limit **
   3  Prefactor     .10000E-03    40.337       -.99687E-07** at limit **
   4  Prefactor     5.6877        10.879        .46287E-05   -.43558E-04
   5  norm          17.372        16.817       -.10820E-06   -.43417E-05
   6  Prefactor     4.0804        48.138       -.16958E-05   -.25413E-04
   7  Prefactor     13.896        16.926        .11533E-07   -.10729E-05
   8  Prefactor     4.1853        93.228        .66033E-06   -.15117E-04
   9  Prefactor     .10003E-03    5.8750       -.66561E-06** at limit **
  10  norm          .69216        .62777        .19509E-07    .58543E-04
  11  norm          .10000E-03    1.5419       -.44339E-07** at limit **
  12  Prefactor     7.6413        20.111        .42641E-06    .67554E-05
  13  Prefactor     .10000E-03    17.695        .11754E-05** at limit **
  14  Prefactor     .10000E-03    73.164        .73929E-06** at limit **
  15  Prefactor     .10000E-03    22.715        .20081E-06** at limit **
  16  Prefactor     45.242        39.133       -.28778E-06   -.25600E-04
  17  norm          35.448        33.971       -.20185E-06    .32926E-05
  18  Prefactor     .10000E-03    18.759        .75222E-07** at limit **
  19  Prefactor     7.5856        6.7504        .47543E-06    .13334E-03
  20  Prefactor     24.383        37.221       -.42722E-05   -.16272E-03
  21  Prefactor     .10000E-03    15.838       -.54119E-06** at limit **
  22  Prefactor     .10000E-03    6.2759        .81682E-07** at limit **
  23  Prefactor     3.5090        7.0090        .16155E-06   -.26116E-04
  24  Normalizat    .71504        .20288        .40556E-06    .38240E-04
  25  Prefactor     1.1003        .14696       -.12774E-06    .79296E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.15518
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.68766
  norm       = 17.3722
  Prefactor  = 4.0804
  Prefactor  = 13.896
  Prefactor  = 4.18534
  Prefactor  = 0.000100026
  norm       = 0.692155
  norm       = 0.0001
  Prefactor  = 7.64134
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 45.2423
  norm       = 35.4479
  Prefactor  = 0.0001
  Prefactor  = 7.58563
  Prefactor  = 24.3832
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.50904
  Normalizat = 0.715039
  Prefactor  = 1.10032
 **********
 **   18 **HESSE 
 **********

 FCN=   5781.643     FROM HESSE     STATUS=OK           431 CALLS     3318 TOTAL
                     EDM=   .87E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.1552        7.4748        .16181E-03   -1.5212    
   2  Prefactor     .10000E-03    19.351        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    40.712        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     5.6877        11.010        .84231E-03   -1.5231    
   5  norm          17.372        16.838        .96085E-04   -1.4874    
   6  Prefactor     4.0804        48.488        .19921E-03   -1.5304    
   7  Prefactor     13.896        16.925        .10745E-03   -1.4962    
   8  Prefactor     4.1853        88.268        .19634E-03   -1.5299    
   9  Prefactor     .10003E-03    39.755        .33673E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .69216        .62505        .55310E-04   -1.5542    
  11  norm          .10000E-03    1.5440        .92188E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     7.6413        19.975        .14504E-03   -1.5155    
  13  Prefactor     .10000E-03    17.782        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    73.178        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    22.987        .42834E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     45.242        38.936        .59604E-04   -1.4362    
  17  norm          35.448        33.750        .67307E-04   -1.4516    
  18  Prefactor     .10000E-03    18.762        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     7.5856        6.7535        .14560E-03   -1.5157    
  20  Prefactor     24.383        38.379        .81054E-04   -1.4720    
  21  Prefactor     .10000E-03    15.888        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    6.2901        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     3.5090        7.0005        .21578E-03   -1.5333    
  24  Normalizat    .71504        .22696        .32160E-03   -1.0330    
  25  Prefactor     1.1003        .16631        .19840E-03   -.89456    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.73279e-10
Minuit parameter uncertainties:
  1  7.47594
  2  9.89751e-05
  3  0.000129345
  4  11.0141
  5  16.8426
  6  28.1601
  7  16.9307
  8  38.5057
  9  0.00203234
  10  0.625059
  11  2.01361e-07
  12  19.9922
  13  0.000127735
  14  0.000116577
  15  1.6502e-05
  16  38.9575
  17  33.7679
  18  1.13088e-06
  19  6.75422
  20  38.4179
  21  1.77984e-05
  22  7.37772e-07
  23  7.00215
  24  0.227258
  25  0.166391
Done.

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

Extracting fit parameters...

4FGL J2323.5-0317
   Spectrum: LogParabola
373         norm:  6.922e-01  6.251e-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.100e+00  1.664e-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.150e-01  2.273e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.72
Ra Dec: 350.888 -3.290
Photon Index (Fixed Index): 2.16 +/- 0.00
Photon Flux (Fixed Index): 2.68e-08 +/- 2.42e-08
Energy Flux (Fixed Index): 1.10e-05 +/- 9.91e-06

TS (Fixed Index): 3.72
Ra Dec: 350.888 -3.290
Photon Flux Upper Limit: 9.23e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.78e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/808432/likelihoodResults_338083201_338342401_4FGL_J2323.5-0317_daily_bin381.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5779.32839592
delta logL = 2.31486151908

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5779.29015657
delta logL = 2.35310086603

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .38968       1.0000         .10000E-03   10000.    
     2 'alpha     '    .91949       1.0000          .0000       5.0000    
     3 'Normalizat'    .73323       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0907       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=   5779.290     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      206 TOTAL
                     EDM=   .69E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .38948        .32210        .74865E-02   -.28145E-03
   2  alpha         .91931        .34728        .26601       -.40452E-04
   3  Normalizat    .73328        .19083        .71767E-01    .23155E-04
   4  Prefactor     1.0907        .14403        .37950E-01    .41144E-07
                               ERR DEF=  .500    
Final values: 
  norm       = 0.389483
  alpha      = 0.919311
  Normalizat = 0.733282
  Prefactor  = 1.0907
 **********
 **   18 **HESSE 
 **********

 FCN=   5779.290     FROM HESSE     STATUS=OK            33 CALLS      239 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .38948        .41361        .32804E-04   -1.5583    
   2  alpha         .91931        .45249        .11462E-01   -.68449    
   3  Normalizat    .73328        .21569        .31763E-03   -1.0259    
   4  Prefactor     1.0907        .16317        .19895E-03   -.89764    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.46296e-09
Minuit parameter uncertainties:
  1  0.413614
  2  0.456709
  3  0.215941
  4  0.16324
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/808432': 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) = 5779.29015644
delta logL = 2.35310099876

Extracting fit parameters...

4FGL J2323.5-0317
   Spectrum: LogParabola
373         norm:  3.895e-01  4.136e-01  1.000e-04  1.000e+04 ( 1.000e-11)
374        alpha:  9.193e-01  4.567e-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.091e+00  1.632e-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.333e-01  2.159e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.43
Ra Dec: 350.888 -3.290
Photon Index (Free Index): 0.92 +/- 0.46
Photon Flux (Free Index): 1.16e-08 +/- 9.18e-09
Energy Flux (Free Index): 7.35e-05 +/- 7.83e-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/808432/cmap_HighResolution_338083201_338342401_4FGL_J2323.5-0317_daily_bin381.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.78e-05', comment='SUCCESS', photon_flux='2.68e-08', energy_flux2='7.35e-05', photon_flux_error='2.42e-08', dlogl='2.35e+00', energy_flux='1.10e-05', photon_flux2='1.16e-08', job_status='DONE', time_completed='2021-09-29 14:38:28.490263', photon_index_error2='0.46', photon_index2='0.92', ts='3.72', fit_tolerance='1e-08', GAL='1.10', photon_index_error='0.00', photon_flux_upper_limit='9.23e-08', energy_flux_error2='7.83e-05', EG='0.72', time_epoch_completed='1632951508.49', return_code='0', job_id='808432', GAL2='1.09', EG2='0.73', return_code2='0', energy_flux_error='9.91e-06', photon_flux_error2='9.18e-09', ts2='8.43', photon_index='2.16' WHERE bin_id='381' AND source_name='4FGL J2323.5-0317' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 14:38:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0110>
Subject: Job 808432: <4FGL_J2323.5-0317_daily_bin381> in cluster <slac> Done

Job <4FGL_J2323.5-0317_daily_bin381> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 14:25:39 2021
Job was executed on host(s) <bullet0110>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 14:25:42 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:25:42 2021
Terminated at Wed Sep 29 14:38:29 2021
Results reported at Wed Sep 29 14:38:29 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2323.5-0317_daily_bin381 350.888 -3.29 338083201 338342401 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 :                                   644.30 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             299.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   766 sec.
    Turnaround time :                            770 sec.

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

