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


Performing analysis on: 4FGL_J2323.5-0317_daily_bin455
RA = 350.888, Dec = -3.29
tmin = 357264001, tmax = 357523201
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='809374', job_status='RUN', time_executed='2021-09-29 14:33:32.967244', time_epoch_executed='1632951212.97' WHERE source_name='4FGL J2323.5-0317' and cadence='daily' and bin_id='455'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/809374

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/809374/ft1_4FGL_J2323.5-0317_daily_bin455.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/809374/ft2_4FGL_J2323.5-0317_daily_bin455.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/809374/ft1_4FGL_J2323.5-0317_daily_bin455.fits outfile=/scratch/kocevski/809374/ft1_filteredMKT_4FGL_J2323.5-0317_daily_bin455.fits ra=350.888 dec=-3.29 rad=12.0 tmin=357264001.0 tmax=357523201.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.66
user 3.43
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/809374/ft2_4FGL_J2323.5-0317_daily_bin455.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/809374/ft1_filteredMKT_4FGL_J2323.5-0317_daily_bin455.fits evtable="EVENTS" outfile="/scratch/kocevski/809374/ft1_filtered_4FGL_J2323.5-0317_daily_bin455.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.51
user 0.31
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/809374/ft1_filtered_4FGL_J2323.5-0317_daily_bin455.fits" evtable="EVENTS" scfile=/scratch/kocevski/809374/ft2_4FGL_J2323.5-0317_daily_bin455.fits sctable="SC_DATA" outfile=/scratch/kocevski/809374/ltcube_357264001_357523201_4FGL_J2323.5-0317_daily_bin455.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/809374/ft2_4FGL_J2323.5-0317_daily_bin455.fits
.....................!
real 11.95
user 11.57
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/809374/ft1_filtered_4FGL_J2323.5-0317_daily_bin455.fits evtable="EVENTS" scfile=/scratch/kocevski/809374/ft2_4FGL_J2323.5-0317_daily_bin455.fits sctable="SC_DATA" expcube=/scratch/kocevski/809374/ltcube_357264001_357523201_4FGL_J2323.5-0317_daily_bin455.fits outfile=/scratch/kocevski/809374/expmap_357264001_357523201_4FGL_J2323.5-0317_daily_bin455.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/809374/ltcube_357264001_357523201_4FGL_J2323.5-0317_daily_bin455.fits
.....................!
real 190.99
user 185.29
sys 5.38

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/809374/ft1_filtered_4FGL_J2323.5-0317_daily_bin455.fits scfile=/scratch/kocevski/809374/ft2_4FGL_J2323.5-0317_daily_bin455.fits outfile=/scratch/kocevski/809374/cmap_357264001_357523201_4FGL_J2323.5-0317_daily_bin455.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.56
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/809374/ft1_filtered_4FGL_J2323.5-0317_daily_bin455.fits scfile=/scratch/kocevski/809374/ft2_4FGL_J2323.5-0317_daily_bin455.fits outfile=/scratch/kocevski/809374/cmap_HighResolution_357264001_357523201_4FGL_J2323.5-0317_daily_bin455.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.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/809374/ft1_filtered_4FGL_J2323.5-0317_daily_bin455.fits evtable="EVENTS" scfile=/scratch/kocevski/809374/ft2_4FGL_J2323.5-0317_daily_bin455.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/809374/Model_4FGL_J2323.5-0317_daily_bin455.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/809374/ft1_filtered_4FGL_J2323.5-0317_daily_bin455.fits.....................!
real 52.78
user 50.82
sys 1.37

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.0449       1.0000         .10000E-03   10000.    
     2 'Prefactor '    14.015       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10198E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    10.679       1.0000         .10000E-03   10000.    
     5 'norm      '    7.8645       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .76342E-02   1.0000         .10000E-03   10000.    
     7 'Prefactor '    20.532       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10361E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .73861       1.0000         .10000E-03   10000.    
    11 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.9789       1.0000         .10000E-03   10000.    
    13 'Prefactor '    25.206       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10677E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    11.107       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10085E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    51.400       1.0000         .10000E-03   10000.    
    21 'Prefactor '    25.974       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    9.4790       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0610       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .70861       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=   5033.345     FROM MIGRAD    STATUS=CONVERGED   1042 CALLS     3347 TOTAL
                     EDM=   .50E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.0675        14.267        .14136E-03    .41660E-04
   2  Prefactor     13.741        113.30        .10699E-03    .48878E-05
   3  Prefactor     .10000E-03    11.355        .18142E-02** at limit **
   4  Prefactor     10.678        9.3783        .12261E-03   -.89944E-05
   5  norm          7.8626        11.190        .14298E-03   -.89053E-05
   6  Prefactor     .10000E-03    44.610        .11701    ** at limit **
   7  Prefactor     20.505        25.022        .88394E-04   -.32668E-04
   8  Prefactor     .10000E-03    15.740        .18142E-02** at limit **
   9  Prefactor     .10000E-03    2.7249        .11422E-02** at limit **
  10  norm          .73848        .70827        .58438E-03   -.49820E-03
  11  norm          .10000E-03    1.4271        .82684E-03** at limit **
  12  Prefactor     4.9785        5.6675        .17567E-03    .88663E-05
  13  Prefactor     25.212        51.826        .79788E-04    .79792E-05
  14  Prefactor     .10000E-03    44.778        .18142E-02** at limit **
  15  Prefactor     11.106        9.2654        .12021E-03    .44827E-04
  16  Prefactor     .10000E-03    33.744        .18142E-02** at limit **
  17  norm          .10000E-03    9.6137        .18142E-02** at limit **
  18  Prefactor     .10000E-03    18.100        .18142E-02** at limit **
  19  Prefactor     .10000E-03    .92792        .66655E-03** at limit **
  20  Prefactor     51.375        37.383        .55939E-04   -.46174E-04
  21  Prefactor     25.956        25.867        .78602E-04    .78103E-05
  22  Prefactor     .10000E-03    5.3370        .15994E-02** at limit **
  23  Prefactor     9.4801        10.569        .13016E-03   -.64283E-04
  24  Normalizat    1.0611        .23953        .24893E-03   -.26406E-03
  25  Prefactor     .70859        .16532        .21475E-03    .28058E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.06745
  Prefactor  = 13.7415
  Prefactor  = 0.0001
  Prefactor  = 10.6784
  norm       = 7.86263
  Prefactor  = 0.000100001
  Prefactor  = 20.5045
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.738482
  norm       = 0.0001
  Prefactor  = 4.97848
  Prefactor  = 25.2119
  Prefactor  = 0.0001
  Prefactor  = 11.1058
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 51.3754
  Prefactor  = 25.9558
  Prefactor  = 0.0001
  Prefactor  = 9.48011
  Normalizat = 1.06113
  Prefactor  = 0.708594
 **********
 **   18 **HESSE 
 **********

 FCN=   5033.345     FROM HESSE     STATUS=OK           413 CALLS     3760 TOTAL
                     EDM=   .51E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.0675        14.266        .56543E-05   -1.5140    
   2  Prefactor     13.741        113.38        .42797E-05   -1.4966    
   3  Prefactor     .10000E-03    11.355        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     10.678        9.3782        .49042E-05   -1.5054    
   5  norm          7.8626        11.190        .57193E-05   -1.5147    
   6  Prefactor     .10000E-03    43.860        .11825       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     20.505        25.022        .35358E-05   -1.4802    
   8  Prefactor     .10000E-03    15.741        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    2.7250        .22845E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .73848        .70811        .23375E-04   -1.5536    
  11  norm          .10000E-03    1.4271        .16537E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     4.9785        5.6675        .70267E-05   -1.5262    
  13  Prefactor     25.212        51.818        .31915E-05   -1.4703    
  14  Prefactor     .10000E-03    44.778        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     11.106        9.2645        .48085E-05   -1.5041    
  16  Prefactor     .10000E-03    33.757        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    9.6139        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    18.100        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    .92793        .13331E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     51.375        37.383        .11188E-04   -1.4273    
  21  Prefactor     25.956        25.866        .31441E-05   -1.4689    
  22  Prefactor     .10000E-03    5.3372        .31987E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     9.4801        10.568        .52066E-05   -1.5092    
  24  Normalizat    1.0611        .23973        .49786E-04   -.91010    
  25  Prefactor     .70859        .16548        .85900E-05   -1.0319    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.0531e-10
Minuit parameter uncertainties:
  1  14.2722
  2  79.1466
  3  2.9444e-06
  4  9.37947
  5  11.193
  6  0.000455444
  7  25.0347
  8  7.2677e-06
  9  2.96998e-06
  10  0.708115
  11  2.27338e-06
  12  5.66809
  13  51.9106
  14  1.31744e-05
  15  9.26571
  16  8.89994e-05
  17  1.88812e-05
  18  5.57364e-06
  19  1.89679e-06
  20  37.4003
  21  25.8771
  22  7.54951e-06
  23  10.5706
  24  0.239974
  25  0.165592
Done.

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

Extracting fit parameters...

4FGL J2323.5-0317
   Spectrum: LogParabola
373         norm:  7.385e-01  7.081e-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:  7.086e-01  1.656e-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.061e+00  2.400e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.09
Ra Dec: 350.888 -3.290
Photon Index (Fixed Index): 2.16 +/- 0.00
Photon Flux (Fixed Index): 2.86e-08 +/- 2.74e-08
Energy Flux (Fixed Index): 1.17e-05 +/- 1.12e-05

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

Saving results to:
/scratch/kocevski/809374/likelihoodResults_357264001_357523201_4FGL_J2323.5-0317_daily_bin455.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) = 5032.98631865
delta logL = 0.358252177719

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5032.95887507
delta logL = 0.38569575988

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .55509       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.4533       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0777       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .70252       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=   5032.959     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      201 TOTAL
                     EDM=   .45E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .55482        .55879        .11494E-01    .25522E-04
   2  alpha         1.4528        .49945        .40181       -.30269E-04
   3  Normalizat    1.0777        .19269        .55950E-01    .79147E-05
   4  Prefactor     .70254        .13907        .42435E-01    .12390E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.554818
  alpha      = 1.45284
  Normalizat = 1.07766
  Prefactor  = 0.702537
 **********
 **   18 **HESSE 
 **********

 FCN=   5032.959     FROM HESSE     STATUS=OK            33 CALLS      234 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .55482        .73215        .51636E-04   -1.5559    
   2  alpha         1.4528        .76380        .15312E-01   -.43219    
   3  Normalizat    1.0777        .22711        .24740E-03   -.90472    
   4  Prefactor     .70254        .16398        .21556E-03   -1.0343    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.74954e-09
Minuit parameter uncertainties:
  1  0.732165
  2  0.778998
  3  0.227314
  4  0.164093
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/809374': 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) = 5032.95887487
delta logL = 0.385695958909

Extracting fit parameters...

4FGL J2323.5-0317
   Spectrum: LogParabola
373         norm:  5.548e-01  7.322e-01  1.000e-04  1.000e+04 ( 1.000e-11)
374        alpha:  1.453e+00  7.790e-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.025e-01  1.641e-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.078e+00  2.273e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.87
Ra Dec: 350.888 -3.290
Photon Index (Free Index): 1.45 +/- 0.78
Photon Flux (Free Index): 1.38e-08 +/- 1.97e-08
Energy Flux (Free Index): 2.20e-05 +/- 2.96e-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/809374/cmap_HighResolution_357264001_357523201_4FGL_J2323.5-0317_daily_bin455.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.96e-05', comment='SUCCESS', photon_flux='2.86e-08', energy_flux2='2.20e-05', photon_flux_error='2.74e-08', dlogl='3.86e-01', energy_flux='1.17e-05', photon_flux2='1.38e-08', job_status='DONE', time_completed='2021-09-29 14:43:59.096432', photon_index_error2='0.78', photon_index2='1.45', ts='2.09', fit_tolerance='1e-08', GAL='0.71', photon_index_error='0.00', photon_flux_upper_limit='9.67e-08', energy_flux_error2='2.96e-05', EG='1.06', time_epoch_completed='1632951839.1', return_code='0', job_id='809374', GAL2='0.70', EG2='1.08', return_code2='0', energy_flux_error='1.12e-05', photon_flux_error2='1.97e-08', ts2='2.87', photon_index='2.16' WHERE bin_id='455' AND source_name='4FGL J2323.5-0317' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 14:43:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0040>
Subject: Job 809374: <4FGL_J2323.5-0317_daily_bin455> in cluster <slac> Done

Job <4FGL_J2323.5-0317_daily_bin455> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Wed Sep 29 14:30:17 2021
Job was executed on host(s) <bullet0040>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 14:30:19 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:19 2021
Terminated at Wed Sep 29 14:43:59 2021
Results reported at Wed Sep 29 14:43:59 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2323.5-0317_daily_bin455 350.888 -3.29 357264001 357523201 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 :                                   620.35 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             271.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   820 sec.
    Turnaround time :                            822 sec.

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

