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


Performing analysis on: 4FGL_J2323.5-0317_daily_bin791
RA = 350.888, Dec = -3.29
tmin = 444355201, tmax = 444614401
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='810976', job_status='RUN', time_executed='2021-09-29 14:38:52.369632', time_epoch_executed='1632951532.37' WHERE source_name='4FGL J2323.5-0317' and cadence='daily' and bin_id='791'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/810976

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/810976/ft1_4FGL_J2323.5-0317_daily_bin791.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/810976/ft2_4FGL_J2323.5-0317_daily_bin791.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/810976/ft1_4FGL_J2323.5-0317_daily_bin791.fits outfile=/scratch/kocevski/810976/ft1_filteredMKT_4FGL_J2323.5-0317_daily_bin791.fits ra=350.888 dec=-3.29 rad=12.0 tmin=444355201.0 tmax=444614401.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.66
user 6.36
sys 0.26

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/810976/ft1_filtered_4FGL_J2323.5-0317_daily_bin791.fits" evtable="EVENTS" scfile=/scratch/kocevski/810976/ft2_4FGL_J2323.5-0317_daily_bin791.fits sctable="SC_DATA" outfile=/scratch/kocevski/810976/ltcube_444355201_444614401_4FGL_J2323.5-0317_daily_bin791.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/810976/ft2_4FGL_J2323.5-0317_daily_bin791.fits
.....................!
real 13.35
user 12.99
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/810976/ft1_filtered_4FGL_J2323.5-0317_daily_bin791.fits evtable="EVENTS" scfile=/scratch/kocevski/810976/ft2_4FGL_J2323.5-0317_daily_bin791.fits sctable="SC_DATA" expcube=/scratch/kocevski/810976/ltcube_444355201_444614401_4FGL_J2323.5-0317_daily_bin791.fits outfile=/scratch/kocevski/810976/expmap_444355201_444614401_4FGL_J2323.5-0317_daily_bin791.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/810976/ltcube_444355201_444614401_4FGL_J2323.5-0317_daily_bin791.fits
.....................!
real 191.30
user 186.00
sys 4.69

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/810976/ft1_filtered_4FGL_J2323.5-0317_daily_bin791.fits scfile=/scratch/kocevski/810976/ft2_4FGL_J2323.5-0317_daily_bin791.fits outfile=/scratch/kocevski/810976/cmap_444355201_444614401_4FGL_J2323.5-0317_daily_bin791.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/810976/ft1_filtered_4FGL_J2323.5-0317_daily_bin791.fits scfile=/scratch/kocevski/810976/ft2_4FGL_J2323.5-0317_daily_bin791.fits outfile=/scratch/kocevski/810976/cmap_HighResolution_444355201_444614401_4FGL_J2323.5-0317_daily_bin791.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/810976/ft1_filtered_4FGL_J2323.5-0317_daily_bin791.fits evtable="EVENTS" scfile=/scratch/kocevski/810976/ft2_4FGL_J2323.5-0317_daily_bin791.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/810976/Model_4FGL_J2323.5-0317_daily_bin791.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/810976/ft1_filtered_4FGL_J2323.5-0317_daily_bin791.fits.....................!
real 66.95
user 65.42
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.4137       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    13.453       1.0000         .10000E-03   10000.    
     6 'Prefactor '    13.863       1.0000         .10000E-03   10000.    
     7 'Prefactor '    13.292       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10251E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .79262       1.0000         .10000E-03   10000.    
    11 'norm      '    .10026E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .14535       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    115.66       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    10.355       1.0000         .10000E-03   10000.    
    17 'norm      '    7.5253       1.0000         .10000E-03   10000.    
    18 'Prefactor '    18.125       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    41.999       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    11.482       1.0000         .10000E-03   10000.    
    23 'Prefactor '    21.855       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .82578       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .95720       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=   7600.027     FROM MIGRAD    STATUS=CONVERGED    555 CALLS     2864 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.4141        7.0854       -.35345E-06   -.71970E-03
   2  Prefactor     .10000E-03    13.113        .54886E-05** at limit **
   3  Prefactor     .10000E-03    19.183        .11099E-04** at limit **
   4  Prefactor     .10000E-03    3.2243       -.63147E-07** at limit **
   5  norm          13.454        10.150        .17097E-06   -.25145E-04
   6  Prefactor     13.861        26.394       -.24401E-05   -.35582E-04
   7  Prefactor     13.293        13.017        .13772E-07   -.12398E-04
   8  Prefactor     .10000E-03    56.787        .41116E-05** at limit **
   9  Prefactor     .10000E-03    4.6699       -.35845E-05** at limit **
  10  norm          .79222        .79768       -.79920E-06   -.32773E-02
  11  norm          .10000E-03    4.6745        .48681E-05** at limit **
  12  Prefactor     .16955        4.7485        .23939E-05   -.10481E-02
  13  Prefactor     .10000E-03    16.166       -.15552E-04** at limit **
  14  Prefactor     115.71        192.20        .46484E-04    .10860E-04
  15  Prefactor     .10000E-03    3.3483       -.84532E-07** at limit **
  16  Prefactor     10.348        16.922       -.75100E-05   -.16561E-03
  17  norm          7.5265        10.716       -.13974E-05   -.99770E-05
  18  Prefactor     18.122        32.412       -.37881E-05   -.10340E-04
  19  Prefactor     .10000E-03    1.0425       -.15873E-06** at limit **
  20  Prefactor     42.001        30.251        .19196E-05   -.23012E-05
  21  Prefactor     .10000E-03    5.2840       -.13500E-05** at limit **
  22  Prefactor     11.483        13.451        .18520E-06   -.40624E-04
  23  Prefactor     21.855        8.3593        .66888E-07   -.35850E-04
  24  Normalizat    .82584        .16296       -.51477E-06   -.16658E-03
  25  Prefactor     .95710        .12068        .22095E-07   -.28857E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.41415
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 13.4544
  Prefactor  = 13.8613
  Prefactor  = 13.2933
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.792222
  norm       = 0.0001
  Prefactor  = 0.169549
  Prefactor  = 0.0001
  Prefactor  = 115.709
  Prefactor  = 0.0001
  Prefactor  = 10.3482
  norm       = 7.52654
  Prefactor  = 18.1216
  Prefactor  = 0.0001
  Prefactor  = 42.0012
  Prefactor  = 0.0001
  Prefactor  = 11.4833
  Prefactor  = 21.8553
  Normalizat = 0.825837
  Prefactor  = 0.957105
 **********
 **   18 **HESSE 
 **********

 FCN=   7600.027     FROM HESSE     STATUS=OK           433 CALLS     3297 TOTAL
                     EDM=   .29E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.4141        7.0993        .65309E-03   -1.5094    
   2  Prefactor     .10000E-03    13.107        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    19.195        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    3.2337        .15287E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          13.454        10.154        .10920E-03   -1.4974    
   6  Prefactor     13.861        26.393        .10758E-03   -1.4963    
   7  Prefactor     13.293        13.018        .10986E-03   -1.4979    
   8  Prefactor     .10000E-03    57.158        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    4.7090        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .79222        .76597        .71566E-03   -1.5530    
  11  norm          .10000E-03    4.8283        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .16955        69.443        .35998E-02   -1.5626    
  13  Prefactor     .10000E-03    16.077        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     115.71        191.87        .18706E-03   -1.3552    
  15  Prefactor     .10000E-03    3.3533        .15555E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     10.348        16.904        .12451E-03   -1.5064    
  17  norm          7.5265        10.694        .14619E-03   -1.5159    
  18  Prefactor     18.122        32.419        .94076E-04   -1.4856    
  19  Prefactor     .10000E-03    1.0470        .86875E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     42.001        30.269        .61857E-04   -1.4411    
  21  Prefactor     .10000E-03    5.2898        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     11.483        13.468        .11823E-03   -1.5030    
  23  Prefactor     21.855        8.3731        .85679E-04   -1.4773    
  24  Normalizat    .82584        .19031        .28325E-03   -.99117    
  25  Prefactor     .95710        .14257        .20075E-03   -.94173    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.85492e-08
Minuit parameter uncertainties:
  1  7.09996
  2  1.78522e-06
  3  1.13875e-05
  4  1.4684e-07
  5  10.1556
  6  26.415
  7  13.021
  8  4.34829e-05
  9  3.56451e-09
  10  0.765978
  11  2.92474e-05
  12  6.86864
  13  1.04068e-07
  14  192.917
  15  1.93841e-05
  16  16.9113
  17  10.6969
  18  32.45
  19  1.19001e-05
  20  30.2798
  21  1.28272e-06
  22  13.4712
  23  8.37355
  24  0.190463
  25  0.142628
Done.

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

Extracting fit parameters...

4FGL J2323.5-0317
   Spectrum: LogParabola
373         norm:  7.922e-01  7.660e-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:  9.571e-01  1.426e-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.258e-01  1.905e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.77
Ra Dec: 350.888 -3.290
Photon Index (Fixed Index): 2.16 +/- 0.00
Photon Flux (Fixed Index): 3.07e-08 +/- 2.96e-08
Energy Flux (Fixed Index): 1.26e-05 +/- 1.21e-05

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

Saving results to:
/scratch/kocevski/810976/likelihoodResults_444355201_444614401_4FGL_J2323.5-0317_daily_bin791.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) = 7598.3313655
delta logL = 1.69537774715

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7598.32072183
delta logL = 1.70602141628

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .47172       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.5461       1.0000          .0000       5.0000    
     3 'Normalizat'    .73584       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99733       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=   7598.321     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      239 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .47134        3.3764        .67147E-02    .10897E-02
   2  alpha         3.5477        4.1697        .31270        .58721E-04
   3  Normalizat    .73576        .50245E-01    .67429E-01    .26947E-04
   4  Prefactor     .99736        .37911E-01    .46234E-01    .51834E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.471336
  alpha      = 3.54773
  Normalizat = 0.73576
  Prefactor  = 0.99736
 **********
 **   18 **HESSE 
 **********

 FCN=   7598.321     FROM HESSE     STATUS=OK            33 CALLS      272 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .47134        .70138        .30218E-04   -1.5571    
   2  alpha         3.5477        1.0495        .13083E-01    .43245    
   3  Normalizat    .73576        .19258        .29836E-03   -1.0250    
   4  Prefactor     .99736        .14303        .19696E-03   -.92818    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.47028e-08
Minuit parameter uncertainties:
  1  0.701391
  2  1.09108
  3  0.192755
  4  0.143085
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/810976': 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) = 7598.32071786
delta logL = 1.70602538499

Extracting fit parameters...

4FGL J2323.5-0317
   Spectrum: LogParabola
373         norm:  4.713e-01  7.014e-01  1.000e-04  1.000e+04 ( 1.000e-11)
374        alpha:  3.548e+00  1.091e+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.974e-01  1.431e-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.358e-01  1.928e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.43
Ra Dec: 350.888 -3.290
Photon Index (Free Index): 3.55 +/- 1.09
Photon Flux (Free Index): 9.99e-08 +/- 5.56e-08
Energy Flux (Free Index): 1.71e-05 +/- 9.51e-06

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/810976/cmap_HighResolution_444355201_444614401_4FGL_J2323.5-0317_daily_bin791.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.86e-05', comment='SUCCESS', photon_flux='3.07e-08', energy_flux2='1.71e-05', photon_flux_error='2.96e-08', dlogl='1.71e+00', energy_flux='1.26e-05', photon_flux2='9.99e-08', job_status='DONE', time_completed='2021-09-29 14:51:19.039681', photon_index_error2='1.09', photon_index2='3.55', ts='1.77', fit_tolerance='1e-08', GAL='0.96', photon_index_error='0.00', photon_flux_upper_limit='9.43e-08', energy_flux_error2='9.51e-06', EG='0.83', time_epoch_completed='1632952279.04', return_code='0', job_id='810976', GAL2='1.00', EG2='0.74', return_code2='0', energy_flux_error='1.21e-05', photon_flux_error2='5.56e-08', ts2='5.43', photon_index='2.16' WHERE bin_id='791' AND source_name='4FGL J2323.5-0317' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 14:51:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0043>
Subject: Job 810976: <4FGL_J2323.5-0317_daily_bin791> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2323.5-0317_daily_bin791 350.888 -3.29 444355201 444614401 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 :                                   743.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             273.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   952 sec.
    Turnaround time :                            954 sec.

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

