/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 198 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 = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2323.5-0317_daily_bin644
RA = 350.888, Dec = -3.29
tmin = 406252801, tmax = 406512001
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='809656', job_status='RUN', time_executed='2021-09-29 14:34:07.883545', time_epoch_executed='1632951247.88' WHERE source_name='4FGL J2323.5-0317' and cadence='daily' and bin_id='644'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/809656

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/809656/ft1_4FGL_J2323.5-0317_daily_bin644.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/809656/ft2_4FGL_J2323.5-0317_daily_bin644.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/809656/ft1_4FGL_J2323.5-0317_daily_bin644.fits outfile=/scratch/kocevski/809656/ft1_filteredMKT_4FGL_J2323.5-0317_daily_bin644.fits ra=350.888 dec=-3.29 rad=12.0 tmin=406252801.0 tmax=406512001.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.80
user 3.59
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/809656/ft1_filtered_4FGL_J2323.5-0317_daily_bin644.fits" evtable="EVENTS" scfile=/scratch/kocevski/809656/ft2_4FGL_J2323.5-0317_daily_bin644.fits sctable="SC_DATA" outfile=/scratch/kocevski/809656/ltcube_406252801_406512001_4FGL_J2323.5-0317_daily_bin644.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/809656/ft2_4FGL_J2323.5-0317_daily_bin644.fits
.....................!
real 11.88
user 11.53
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/809656/ft1_filtered_4FGL_J2323.5-0317_daily_bin644.fits evtable="EVENTS" scfile=/scratch/kocevski/809656/ft2_4FGL_J2323.5-0317_daily_bin644.fits sctable="SC_DATA" expcube=/scratch/kocevski/809656/ltcube_406252801_406512001_4FGL_J2323.5-0317_daily_bin644.fits outfile=/scratch/kocevski/809656/expmap_406252801_406512001_4FGL_J2323.5-0317_daily_bin644.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/809656/ltcube_406252801_406512001_4FGL_J2323.5-0317_daily_bin644.fits
.....................!
real 192.80
user 187.70
sys 4.73

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

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

This is gtbin version HEAD
real 0.53
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/809656/ft1_filtered_4FGL_J2323.5-0317_daily_bin644.fits scfile=/scratch/kocevski/809656/ft2_4FGL_J2323.5-0317_daily_bin644.fits outfile=/scratch/kocevski/809656/cmap_HighResolution_406252801_406512001_4FGL_J2323.5-0317_daily_bin644.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.53
user 0.36
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/809656/ft1_filtered_4FGL_J2323.5-0317_daily_bin644.fits evtable="EVENTS" scfile=/scratch/kocevski/809656/ft2_4FGL_J2323.5-0317_daily_bin644.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/809656/Model_4FGL_J2323.5-0317_daily_bin644.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/809656/ft1_filtered_4FGL_J2323.5-0317_daily_bin644.fits.....................!
real 60.01
user 58.70
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.9447       1.0000         .10000E-03   10000.    
     4 'Prefactor '    11.914       1.0000         .10000E-03   10000.    
     5 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    11.650       1.0000         .10000E-03   10000.    
     8 'Prefactor '    56.284       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    3.4404       1.0000         .10000E-03   10000.    
    11 'norm      '    .19400E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    11.736       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .83591E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    47.059       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    5.8384       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    5.8475       1.0000         .10000E-03   10000.    
    22 'Prefactor '    16.892       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .54262       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .99016       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5230E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6489.456     FROM MIGRAD    STATUS=CONVERGED   1011 CALLS     3370 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.5215        .12470E-02** at limit **
   2  Prefactor     .10000E-03    19.932        .18142E-02** at limit **
   3  Prefactor     6.9427        23.229        .15224E-03    .44806E-05
   4  Prefactor     11.914        7.1593        .11606E-03    .26448E-05
   5  norm          .10000E-03    5.4020        .18142E-02** at limit **
   6  Prefactor     .10000E-03    8.6746        .18142E-02** at limit **
   7  Prefactor     11.650        19.637        .11737E-03    .22859E-04
   8  Prefactor     56.267        41.029        .53470E-04    .33041E-04
   9  Prefactor     .10000E-03    6.8965        .18142E-02** at limit **
  10  norm          3.4402        1.1340        .46216E-04   -.42286E-03
  11  norm          .10000E-03    26.036        .30121E-02** at limit **
  12  Prefactor     11.736        13.633        .58470E-03    .16325E-03
  13  Prefactor     .10000E-03    17.376        .18142E-02** at limit **
  14  Prefactor     .10000E-03    73.529        .18142E-02** at limit **
  15  Prefactor     .10000E-03    13.490        .18142E-02** at limit **
  16  Prefactor     .10000E-03    207.38        .71118E-02** at limit **
  17  norm          47.060        29.325        .58450E-04   -.25285E-05
  18  Prefactor     .10000E-03    13.068        .18142E-02** at limit **
  19  Prefactor     5.8373        5.0631        .13760E-03    .63618E-05
  20  Prefactor     .10000E-03    14.879        .18142E-02** at limit **
  21  Prefactor     5.8512        20.346        .83038E-03    .24151E-04
  22  Prefactor     16.889        15.288        .97450E-04    .13649E-04
  23  Prefactor     .10000E-03    2.1825        .11557E-02** at limit **
  24  Normalizat    .54265        .19103        .31093E-03    .76125E-04
  25  Prefactor     .99015        .14210        .18273E-03    .55498E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.94268
  Prefactor  = 11.9143
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.6504
  Prefactor  = 56.267
  Prefactor  = 0.0001
  norm       = 3.44019
  norm       = 0.0001
  Prefactor  = 11.7364
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 47.0604
  Prefactor  = 0.0001
  Prefactor  = 5.83729
  Prefactor  = 0.0001
  Prefactor  = 5.8512
  Prefactor  = 16.8895
  Prefactor  = 0.0001
  Normalizat = 0.542648
  Prefactor  = 0.990155
 **********
 **   18 **HESSE 
 **********

 FCN=   6489.456     FROM HESSE     STATUS=OK           401 CALLS     3771 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.5217        .24940E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    19.933        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     6.9427        23.224        .60895E-05   -1.5181    
   4  Prefactor     11.914        7.1591        .46424E-05   -1.5017    
   5  norm          .10000E-03    5.4039        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    8.6748        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     11.650        19.635        .46948E-05   -1.5025    
   8  Prefactor     56.267        40.996        .10694E-04   -1.4206    
   9  Prefactor     .10000E-03    6.8975        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          3.4402        1.1336        .18486E-05   -1.5337    
  11  norm          .10000E-03    26.923        .12048E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     11.736        13.601        .23388E-04   -1.5023    
  13  Prefactor     .10000E-03    17.376        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    73.529        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    13.493        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    214.37        .28447E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          47.060        29.318        .23380E-05   -1.4335    
  18  Prefactor     .10000E-03    13.068        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     5.8373        5.0624        .55040E-05   -1.5225    
  20  Prefactor     .10000E-03    14.880        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     5.8512        20.334        .33215E-04   -1.5224    
  22  Prefactor     16.889        15.287        .38980E-05   -1.4886    
  23  Prefactor     .10000E-03    2.1829        .23115E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .54265        .19110        .12437E-04   -1.1048    
  25  Prefactor     .99015        .14217        .36545E-04   -.93058    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.14275e-10
Minuit parameter uncertainties:
  1  3.16047e-06
  2  0.000138223
  3  23.2543
  4  7.15965
  5  1.61996e-05
  6  1.41757e-05
  7  19.6455
  8  41.0168
  9  0.000106836
  10  1.13357
  11  0.000103676
  12  13.605
  13  7.19814e-05
  14  0.000476931
  15  2.26085e-06
  16  0.000297685
  17  29.3268
  18  7.99314e-05
  19  5.06274
  20  0.000133341
  21  20.3581
  22  15.2901
  23  3.48564e-06
  24  0.191329
  25  0.142223
Done.

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

Extracting fit parameters...

4FGL J2323.5-0317
   Spectrum: LogParabola
373         norm:  3.440e+00  1.134e+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:  9.902e-01  1.422e-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:  5.426e-01  1.913e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 18.56
Ra Dec: 350.888 -3.290
Photon Index (Fixed Index): 2.16 +/- 0.00
Photon Flux (Fixed Index): 1.33e-07 +/- 4.39e-08
Energy Flux (Fixed Index): 5.45e-05 +/- 1.80e-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) = 6487.44977881
delta logL = 2.00607580093

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6487.42502725
delta logL = 2.03082736105

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.4581       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.8555       1.0000          .0000       5.0000    
     3 'Normalizat'    .45255       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0343       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=   6487.425     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      213 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.4580        8.6569        .65217E-02   -.15016E-03
   2  alpha         2.8555        3.7410        .16115        .31613E-04
   3  Normalizat    .45254        .93861E-01    .76220E-01    .53775E-04
   4  Prefactor     1.0343        .66176E-01    .40931E-01    .32925E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.45799
  alpha      = 2.85552
  Normalizat = 0.452542
  Prefactor  = 1.03432
 **********
 **   18 **HESSE 
 **********

 FCN=   6487.425     FROM HESSE     STATUS=OK            33 CALLS      246 TOTAL
                     EDM=   .47E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.4580        1.1300        .33206E-04   -1.5394    
   2  alpha         2.8555        .38981        .69377E-02    .14269    
   3  Normalizat    .45254        .18461        .33753E-03   -1.1467    
   4  Prefactor     1.0343        .14183        .17896E-03   -.91594    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.69283e-12
Minuit parameter uncertainties:
  1  1.13006
  2  0.391444
  3  0.18486
  4  0.141877
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/809656': 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) = 6487.42502723
delta logL = 2.03082738346

Extracting fit parameters...

4FGL J2323.5-0317
   Spectrum: LogParabola
373         norm:  2.458e+00  1.130e+00  1.000e-04  1.000e+04 ( 1.000e-11)
374        alpha:  2.856e+00  3.914e-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.034e+00  1.419e-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:  4.525e-01  1.849e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 23.14
Ra Dec: 350.888 -3.290
Photon Index (Free Index): 2.86 +/- 0.39
Photon Flux (Free Index): 2.06e-07 +/- 6.31e-08
Energy Flux (Free Index): 4.62e-05 +/- 1.36e-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/809656/cmap_HighResolution_406252801_406512001_4FGL_J2323.5-0317_daily_bin644.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.33e-07', energy_flux2='4.62e-05', photon_flux_error='4.39e-08', dlogl='2.03e+00', energy_flux='5.45e-05', photon_flux2='2.06e-07', job_status='DONE', time_completed='2021-09-29 14:44:52.861976', photon_index_error2='0.39', photon_index2='2.86', ts='18.56', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', energy_flux_error2='1.36e-05', EG='0.54', time_epoch_completed='1632951892.86', return_code='0', job_id='809656', GAL2='1.03', EG2='0.45', return_code2='0', energy_flux_error='1.80e-05', photon_flux_error2='6.31e-08', ts2='23.14', photon_index='2.16' WHERE bin_id='644' AND source_name='4FGL J2323.5-0317' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 14:44:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0238>
Subject: Job 809656: <4FGL_J2323.5-0317_daily_bin644> in cluster <slac> Done

Job <4FGL_J2323.5-0317_daily_bin644> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Wed Sep 29 14:30:40 2021
Job was executed on host(s) <bullet0238>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 14:30: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:30:42 2021
Terminated at Wed Sep 29 14:44:53 2021
Results reported at Wed Sep 29 14:44:53 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2323.5-0317_daily_bin644 350.888 -3.29 406252801 406512001 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 :                                   641.17 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             263.15 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   851 sec.
    Turnaround time :                            853 sec.

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

