/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 5 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 = 7440
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2323.5-0317_daily_bin34
RA = 350.888, Dec = -3.29
tmin = 248140801, tmax = 248400001
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='806891', job_status='RUN', time_executed='2021-09-29 14:21:02.883286', time_epoch_executed='1632950462.88' WHERE source_name='4FGL J2323.5-0317' and cadence='daily' and bin_id='34'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/806891

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/806891/ft1_4FGL_J2323.5-0317_daily_bin34.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/806891/ft2_4FGL_J2323.5-0317_daily_bin34.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/806891/ft1_4FGL_J2323.5-0317_daily_bin34.fits outfile=/scratch/kocevski/806891/ft1_filteredMKT_4FGL_J2323.5-0317_daily_bin34.fits ra=350.888 dec=-3.29 rad=12.0 tmin=248140801.0 tmax=248400001.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 1.41
user 1.22
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/806891/ft1_filtered_4FGL_J2323.5-0317_daily_bin34.fits" evtable="EVENTS" scfile=/scratch/kocevski/806891/ft2_4FGL_J2323.5-0317_daily_bin34.fits sctable="SC_DATA" outfile=/scratch/kocevski/806891/ltcube_248140801_248400001_4FGL_J2323.5-0317_daily_bin34.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/806891/ft2_4FGL_J2323.5-0317_daily_bin34.fits
.....................!
real 13.25
user 12.88
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/806891/ft1_filtered_4FGL_J2323.5-0317_daily_bin34.fits evtable="EVENTS" scfile=/scratch/kocevski/806891/ft2_4FGL_J2323.5-0317_daily_bin34.fits sctable="SC_DATA" expcube=/scratch/kocevski/806891/ltcube_248140801_248400001_4FGL_J2323.5-0317_daily_bin34.fits outfile=/scratch/kocevski/806891/expmap_248140801_248400001_4FGL_J2323.5-0317_daily_bin34.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/806891/ltcube_248140801_248400001_4FGL_J2323.5-0317_daily_bin34.fits
.....................!
real 190.97
user 185.60
sys 4.65

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/806891/ft1_filtered_4FGL_J2323.5-0317_daily_bin34.fits scfile=/scratch/kocevski/806891/ft2_4FGL_J2323.5-0317_daily_bin34.fits outfile=/scratch/kocevski/806891/cmap_248140801_248400001_4FGL_J2323.5-0317_daily_bin34.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/806891/ft1_filtered_4FGL_J2323.5-0317_daily_bin34.fits scfile=/scratch/kocevski/806891/ft2_4FGL_J2323.5-0317_daily_bin34.fits outfile=/scratch/kocevski/806891/cmap_HighResolution_248140801_248400001_4FGL_J2323.5-0317_daily_bin34.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.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/806891/ft1_filtered_4FGL_J2323.5-0317_daily_bin34.fits evtable="EVENTS" scfile=/scratch/kocevski/806891/ft2_4FGL_J2323.5-0317_daily_bin34.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/806891/Model_4FGL_J2323.5-0317_daily_bin34.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/806891/ft1_filtered_4FGL_J2323.5-0317_daily_bin34.fits.....................!
real 72.06
user 70.66
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10089E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.4184       1.0000         .10000E-03   10000.    
     5 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    46.939       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    14.519       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .15696E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .90973       1.0000         .10000E-03   10000.    
    11 'norm      '    .10030E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.9901       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    7.4157       1.0000         .10000E-03   10000.    
    16 'Prefactor '    59.073       1.0000         .10000E-03   10000.    
    17 'norm      '    .10975E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.1348       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10108E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    29.833       1.0000         .10000E-03   10000.    
    22 'Prefactor '    12.372       1.0000         .10000E-03   10000.    
    23 'Prefactor '    4.0586       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .90339       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .94038       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=   7874.913     FROM MIGRAD    STATUS=CONVERGED    564 CALLS     2885 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10002E-03    4.3132       -.25216E-05** at limit **
   2  Prefactor     .10000E-03    12.503        .11367E-05** at limit **
   3  Prefactor     .10000E-03    6.9926       -.41972E-06** at limit **
   4  Prefactor     1.4179        4.2041        .12329E-05    .43579E-04
   5  norm          .10000E-03    7.0890        .69588E-06** at limit **
   6  Prefactor     46.931        35.678       -.71265E-06   -.20549E-03
   7  Prefactor     .10000E-03    7.9817        .40265E-06** at limit **
   8  Prefactor     14.507        34.847       -.64381E-06   -.12231E-03
   9  Prefactor     .10000E-03    4.9982       -.98042E-06** at limit **
  10  norm          .90969        .59669        .75524E-08   -.88751E-04
  11  norm          .10000E-03    .92276       -.63567E-07** at limit **
  12  Prefactor     5.9923        10.837        .55841E-05    .75780E-04
  13  Prefactor     .10000E-03    16.110       -.94272E-06** at limit **
  14  Prefactor     .10001E-03    57.037       -.17051E-05** at limit **
  15  Prefactor     7.4170        8.3297        .87821E-06    .54189E-04
  16  Prefactor     59.070        29.238       -.13977E-05   -.13656E-03
  17  norm          .10001E-03    33.426        .22789E-05** at limit **
  18  Prefactor     3.1324        50.547        .50102E-06   -.11007E-04
  19  Prefactor     .10000E-03    1.2363        .18357E-07** at limit **
  20  Prefactor     .10000E-03    26.973       -.92043E-06** at limit **
  21  Prefactor     29.833        20.588        .37209E-07   -.12113E-04
  22  Prefactor     12.371        12.188        .85169E-07    .21280E-04
  23  Prefactor     4.0580        5.6451        .23521E-06    .17400E-03
  24  Normalizat    .90360        .16697        .32919E-06    .11700E-03
  25  Prefactor     .94023        .12089       -.69340E-06    .20702E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100023
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 1.41793
  norm       = 0.000100001
  Prefactor  = 46.9309
  Prefactor  = 0.0001
  Prefactor  = 14.507
  Prefactor  = 0.0001
  norm       = 0.909686
  norm       = 0.0001
  Prefactor  = 5.99226
  Prefactor  = 0.000100002
  Prefactor  = 0.000100007
  Prefactor  = 7.41701
  Prefactor  = 59.0703
  norm       = 0.00010001
  Prefactor  = 3.13237
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 29.8331
  Prefactor  = 12.3712
  Prefactor  = 4.05797
  Normalizat = 0.903601
  Prefactor  = 0.940232
 **********
 **   18 **HESSE 
 **********

 FCN=   7874.913     FROM HESSE     STATUS=OK           423 CALLS     3308 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10002E-03    9.1061        .31677E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    12.578        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    7.0055        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.4179        4.1605        .30618E-03   -1.5470    
   5  norm          .10000E-03    7.2204        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     46.931        35.747        .58525E-04   -1.4337    
   7  Prefactor     .10000E-03    8.0209        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     14.507        34.820        .10512E-03   -1.4946    
   9  Prefactor     .10000E-03    5.0323        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .90969        .58506        .53261E-04   -1.5517    
  11  norm          .10000E-03    .92368        .83225E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     5.9923        11.080        .82031E-03   -1.5218    
  13  Prefactor     .10000E-03    16.169        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10001E-03    57.208        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     7.4170        8.2561        .14728E-03   -1.5163    
  16  Prefactor     59.070        29.301        .52200E-04   -1.4169    
  17  norm          .10001E-03    33.727        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     3.1324        50.579        .22897E-03   -1.5354    
  19  Prefactor     .10000E-03    1.2462        .96176E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    27.109        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     29.833        20.590        .73353E-04   -1.4615    
  22  Prefactor     12.371        12.192        .11389E-03   -1.5004    
  23  Prefactor     4.0580        5.6306        .20014E-03   -1.5305    
  24  Normalizat    .90360        .19409        .27442E-03   -.96334    
  25  Prefactor     .94023        .14070        .20286E-03   -.94749    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.95218e-09
Minuit parameter uncertainties:
  1  0.00090918
  2  0.000404107
  3  0.000112511
  4  4.16133
  5  0.000134217
  6  35.7631
  7  0.000107454
  8  34.869
  9  6.77089e-06
  10  0.585069
  11  2.94952e-07
  12  11.0839
  13  0.000386533
  14  0.00129575
  15  8.25741
  16  29.3077
  17  0.00119056
  18  25.1988
  19  2.2809e-06
  20  0.000504476
  21  20.5949
  22  12.1946
  23  5.63129
  24  0.194242
  25  0.140757
Done.

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

Extracting fit parameters...

4FGL J2323.5-0317
   Spectrum: LogParabola
373         norm:  9.097e-01  5.851e-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.402e-01  1.408e-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:  9.036e-01  1.942e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.88
Ra Dec: 350.888 -3.290
Photon Index (Fixed Index): 2.16 +/- 0.00
Photon Flux (Fixed Index): 3.52e-08 +/- 2.26e-08
Energy Flux (Fixed Index): 1.44e-05 +/- 9.28e-06

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) = 7874.67950832
delta logL = 0.233168972146

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7874.67747177
delta logL = 0.235205523545

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .96036       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7986       1.0000          .0000       5.0000    
     3 'Normalizat'    .91405       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93469       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=   7874.677     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      225 TOTAL
                     EDM=   .37E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .96039        1.9629        .12038E-01    .12463E-03
   2  alpha         1.7987        1.2639        .40335        .67931E-05
   3  Normalizat    .91403        .16093        .45081E-01   -.38601E-03
   4  Prefactor     .93471        .12304        .45446E-01   -.80228E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.960391
  alpha      = 1.79869
  Normalizat = 0.914033
  Prefactor  = 0.934705
 **********
 **   18 **HESSE 
 **********

 FCN=   7874.677     FROM HESSE     STATUS=OK            31 CALLS      256 TOTAL
                     EDM=   .55E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .96039        .60961        .54027E-04   -1.5512    
   2  alpha         1.7987        .49601        .14974E-01   -.28434    
   3  Normalizat    .91403        .18425        .27301E-03   -.95969    
   4  Prefactor     .93471        .13938        .20336E-03   -.94939    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.47131e-10
Minuit parameter uncertainties:
  1  0.609613
  2  0.499614
  3  0.184374
  4  0.139435
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/806891': 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) = 7874.67747176
delta logL = 0.235205528937

Extracting fit parameters...

4FGL J2323.5-0317
   Spectrum: LogParabola
373         norm:  9.604e-01  6.096e-01  1.000e-04  1.000e+04 ( 1.000e-11)
374        alpha:  1.799e+00  4.996e-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:  9.347e-01  1.394e-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:  9.140e-01  1.844e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.35
Ra Dec: 350.888 -3.290
Photon Index (Free Index): 1.80 +/- 0.50
Photon Flux (Free Index): 2.78e-08 +/- 2.07e-08
Energy Flux (Free Index): 2.04e-05 +/- 1.74e-05

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

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.52e-08', energy_flux2='2.04e-05', photon_flux_error='2.26e-08', dlogl='2.35e-01', energy_flux='1.44e-05', photon_flux2='2.78e-08', job_status='DONE', time_completed='2021-09-29 14:32:14.534242', photon_index_error2='0.50', photon_index2='1.80', ts='5.88', fit_tolerance='1e-08', GAL='0.94', photon_index_error='0.00', energy_flux_error2='1.74e-05', EG='0.90', time_epoch_completed='1632951134.53', return_code='0', job_id='806891', GAL2='0.93', EG2='0.91', return_code2='0', energy_flux_error='9.28e-06', photon_flux_error2='2.07e-08', ts2='6.35', photon_index='2.16' WHERE bin_id='34' AND source_name='4FGL J2323.5-0317' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 14:32:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0240>
Subject: Job 806891: <4FGL_J2323.5-0317_daily_bin34> in cluster <slac> Done

Job <4FGL_J2323.5-0317_daily_bin34> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Wed Sep 29 14:20:48 2021
Job was executed on host(s) <bullet0240>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 14:20:50 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:20:50 2021
Terminated at Wed Sep 29 14:32:15 2021
Results reported at Wed Sep 29 14:32:15 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2323.5-0317_daily_bin34 350.888 -3.29 248140801 248400001 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 :                                   670.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             364.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   684 sec.
    Turnaround time :                            687 sec.

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

