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


Performing analysis on: 4FGL_J2323.5-0317_daily_bin988
RA = 350.888, Dec = -3.29
tmin = 495417601, tmax = 495676801
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='811265', job_status='RUN', time_executed='2021-09-29 14:38:53.389972', time_epoch_executed='1632951533.39' WHERE source_name='4FGL J2323.5-0317' and cadence='daily' and bin_id='988'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/811265

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/811265/ft1_4FGL_J2323.5-0317_daily_bin988.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/811265/ft2_4FGL_J2323.5-0317_daily_bin988.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/811265/ft1_4FGL_J2323.5-0317_daily_bin988.fits outfile=/scratch/kocevski/811265/ft1_filteredMKT_4FGL_J2323.5-0317_daily_bin988.fits ra=350.888 dec=-3.29 rad=12.0 tmin=495417601.0 tmax=495676801.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.58
user 3.33
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/811265/ft1_filtered_4FGL_J2323.5-0317_daily_bin988.fits" evtable="EVENTS" scfile=/scratch/kocevski/811265/ft2_4FGL_J2323.5-0317_daily_bin988.fits sctable="SC_DATA" outfile=/scratch/kocevski/811265/ltcube_495417601_495676801_4FGL_J2323.5-0317_daily_bin988.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/811265/ft2_4FGL_J2323.5-0317_daily_bin988.fits
.....................!
real 11.83
user 11.46
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/811265/ft1_filtered_4FGL_J2323.5-0317_daily_bin988.fits evtable="EVENTS" scfile=/scratch/kocevski/811265/ft2_4FGL_J2323.5-0317_daily_bin988.fits sctable="SC_DATA" expcube=/scratch/kocevski/811265/ltcube_495417601_495676801_4FGL_J2323.5-0317_daily_bin988.fits outfile=/scratch/kocevski/811265/expmap_495417601_495676801_4FGL_J2323.5-0317_daily_bin988.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/811265/ltcube_495417601_495676801_4FGL_J2323.5-0317_daily_bin988.fits
.....................!
real 191.71
user 185.11
sys 6.06

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/811265/ft1_filtered_4FGL_J2323.5-0317_daily_bin988.fits scfile=/scratch/kocevski/811265/ft2_4FGL_J2323.5-0317_daily_bin988.fits outfile=/scratch/kocevski/811265/cmap_495417601_495676801_4FGL_J2323.5-0317_daily_bin988.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.52
user 0.35
sys 0.17

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/811265/ft1_filtered_4FGL_J2323.5-0317_daily_bin988.fits evtable="EVENTS" scfile=/scratch/kocevski/811265/ft2_4FGL_J2323.5-0317_daily_bin988.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/811265/Model_4FGL_J2323.5-0317_daily_bin988.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/811265/ft1_filtered_4FGL_J2323.5-0317_daily_bin988.fits.....................!
real 46.29
user 44.63
sys 1.39

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .66107E-01   1.0000         .10000E-03   10000.    
     2 'Prefactor '    71.023       1.0000         .10000E-03   10000.    
     3 'Prefactor '    78.054       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10069E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    38.876       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    15.407       1.0000         .10000E-03   10000.    
    10 'norm      '    .44045       1.0000         .10000E-03   10000.    
    11 'norm      '    7.7271       1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.2849       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10148E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.2399       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10109E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.0947       1.0000         .10000E-03   10000.    
    20 'Prefactor '    16.602       1.0000         .10000E-03   10000.    
    21 'Prefactor '    46.956       1.0000         .10000E-03   10000.    
    22 'Prefactor '    1.7155       1.0000         .10000E-03   10000.    
    23 'Prefactor '    9.5048       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .78320       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .89246       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=   4347.779     FROM MIGRAD    STATUS=CONVERGED    603 CALLS     2945 TOTAL
                     EDM=   .54E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10006E-03    14.113        .31882E-05** at limit **
   2  Prefactor     71.090        73.582       -.97609E-05   -.16643E-03
   3  Prefactor     78.048        50.840        .62148E-06   -.16584E-04
   4  Prefactor     .10000E-03    6.0912       -.75081E-07** at limit **
   5  norm          .10000E-03    29.485       -.62379E-06** at limit **
   6  Prefactor     .10000E-03    24.812       -.44734E-06** at limit **
   7  Prefactor     38.877        22.874        .27556E-06    .27274E-04
   8  Prefactor     .10000E-03    75.186        .26912E-05** at limit **
   9  Prefactor     15.408        13.297        .11677E-07   -.12192E-03
  10  norm          .44049        .71233       -.93303E-08   -.25115E-03
  11  norm          7.7269        7.4839        .97692E-07   -.82551E-04
  12  Prefactor     2.2851        6.3848        .40812E-05   -.29294E-03
  13  Prefactor     .10000E-03    63.373       -.21443E-05** at limit **
  14  Prefactor     .10000E-03    104.46       -.34286E-05** at limit **
  15  Prefactor     2.2401        8.1644        .40742E-06   -.38553E-04
  16  Prefactor     .10000E-03    10.338       -.27960E-08** at limit **
  17  norm          .10000E-03    26.631        .17363E-06** at limit **
  18  Prefactor     .10000E-03    89.655        .17130E-05** at limit **
  19  Prefactor     2.0947        2.5623       -.17099E-07   -.65751E-04
  20  Prefactor     16.602        20.426        .42118E-07    .12062E-05
  21  Prefactor     46.952        29.608        .11619E-06    .70795E-05
  22  Prefactor     1.7182        71.504        .14171E-04   -.74382E-04
  23  Prefactor     9.5074        10.313       -.35677E-06   -.66869E-03
  24  Normalizat    .78309        .22597       -.19408E-05   -.32812E-03
  25  Prefactor     .89253        .15624       -.71826E-07   -.43018E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100063
  Prefactor  = 71.0896
  Prefactor  = 78.0483
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 38.8769
  Prefactor  = 0.000100001
  Prefactor  = 15.4077
  norm       = 0.440485
  norm       = 7.72692
  Prefactor  = 2.2851
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 2.24008
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 2.09475
  Prefactor  = 16.602
  Prefactor  = 46.9517
  Prefactor  = 1.71822
  Prefactor  = 9.50741
  Normalizat = 0.78309
  Prefactor  = 0.892528
 **********
 **   18 **HESSE 
 **********

 FCN=   4347.779     FROM HESSE     STATUS=OK           437 CALLS     3382 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10006E-03    24.142        .67010E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     71.090        77.616        .23817E-03   -1.4020    
   3  Prefactor     78.048        50.934        .45454E-04   -1.3939    
   4  Prefactor     .10000E-03    6.1021        .15892E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    30.052        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    24.885        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     38.877        22.887        .64284E-04   -1.4460    
   8  Prefactor     .10000E-03    75.023        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     15.408        13.350        .10204E-03   -1.4923    
  10  norm          .44049        .65674        .67691E-03   -1.5575    
  11  norm          7.7269        7.4737        .14426E-03   -1.5152    
  12  Prefactor     2.2851        6.3951        .13572E-02   -1.5406    
  13  Prefactor     .10000E-03    63.723        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    104.13        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     2.2401        8.0655        .27462E-03   -1.5409    
  16  Prefactor     .10000E-03    10.358        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    26.738        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    89.959        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     2.0947        2.5457        .11154E-03   -1.5418    
  20  Prefactor     16.602        20.424        .98297E-04   -1.4893    
  21  Prefactor     46.952        29.620        .58514E-04   -1.4336    
  22  Prefactor     1.7182        72.450        .16042E-02   -1.5446    
  23  Prefactor     9.5074        10.341        .12999E-03   -1.5091    
  24  Normalizat    .78309        .26644        .28657E-03   -1.0070    
  25  Prefactor     .89253        .18554        .19931E-03   -.96403    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.00478e-09
Minuit parameter uncertainties:
  1  0.00246317
  2  77.7268
  3  50.9627
  4  5.55353e-06
  5  6.62844e-05
  6  1.81545e-05
  7  22.8921
  8  0.000562527
  9  13.3531
  10  0.656747
  11  7.47458
  12  6.39703
  13  0.000336167
  14  0.000668101
  15  8.06942
  16  3.41819e-06
  17  7.31316e-05
  18  0.00047718
  19  2.54578
  20  20.4325
  21  29.6291
  22  22.343
  23  10.3426
  24  0.266885
  25  0.185669
Done.

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

Extracting fit parameters...

4FGL J2323.5-0317
   Spectrum: LogParabola
373         norm:  4.405e-01  6.567e-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:  8.925e-01  1.857e-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.831e-01  2.669e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/811265/likelihoodResults_495417601_495676801_4FGL_J2323.5-0317_daily_bin988.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) = 4347.77900847
delta logL = 0.000321423462992

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4347.77898626
delta logL = 0.000343625346432

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .43953       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1889       1.0000          .0000       5.0000    
     3 'Normalizat'    .78259       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89273       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=   4347.779     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      229 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .43980        37.918        .11021E-01    .51622E-03
   2  alpha         2.1894        3.9005        .41562        .31355E-05
   3  Normalizat    .78260        .78219E-01    .64796E-01    .15166E-04
   4  Prefactor     .89272        .62065E-01    .44912E-01    .40342E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.439801
  alpha      = 2.18944
  Normalizat = 0.782598
  Prefactor  = 0.892724
 **********
 **   18 **HESSE 
 **********

 FCN=   4347.779     FROM HESSE     STATUS=OK            35 CALLS      264 TOTAL
                     EDM=   .70E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .43980        .65643        .67412E-03   -1.5575    
   2  alpha         2.1894        1.0857        .24639E-01   -.12455    
   3  Normalizat    .78260        .24562        .28665E-03   -1.0072    
   4  Prefactor     .89272        .18238        .19929E-03   -.96396    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.99992e-13
Minuit parameter uncertainties:
  1  0.656439
  2  1.12379
  3  0.245966
  4  0.1825
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/811265': 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) = 4347.77898603
delta logL = 0.000343857207554

Extracting fit parameters...

4FGL J2323.5-0317
   Spectrum: LogParabola
373         norm:  4.398e-01  6.564e-01  1.000e-04  1.000e+04 ( 1.000e-11)
374        alpha:  2.189e+00  1.124e+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:  8.927e-01  1.825e-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.826e-01  2.460e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.77
Ra Dec: 350.888 -3.290

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/811265/cmap_HighResolution_495417601_495676801_4FGL_J2323.5-0317_daily_bin988.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.82e-05', job_status='DONE', photon_flux_upper_limit='9.32e-08', time_completed='2021-09-29 14:48:21.663611', job_id='811265', GAL2='0.89', fit_tolerance='1e-08', EG2='0.78', EG='0.78', time_epoch_completed='1632952101.66', return_code2='0', ts='0.77', comment='SUCCESS', return_code='0', GAL='0.89', dlogl='3.44e-04', ts2='0.77', photon_index_error='0.00', photon_index='2.16' WHERE bin_id='988' AND source_name='4FGL J2323.5-0317' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 14:48:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0231>
Subject: Job 811265: <4FGL_J2323.5-0317_daily_bin988> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2323.5-0317_daily_bin988 350.888 -3.29 495417601 495676801 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 :                                   562.35 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             235.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   751 sec.
    Turnaround time :                            754 sec.

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

