/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 50 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 = 7484
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2323.5-0317_daily_bin364
RA = 350.888, Dec = -3.29
tmin = 333676801, tmax = 333936001
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='808405', job_status='RUN', time_executed='2021-09-29 14:26:40.937136', time_epoch_executed='1632950800.94' WHERE source_name='4FGL J2323.5-0317' and cadence='daily' and bin_id='364'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/808405

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/808405/ft1_4FGL_J2323.5-0317_daily_bin364.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/808405/ft2_4FGL_J2323.5-0317_daily_bin364.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/808405/ft1_4FGL_J2323.5-0317_daily_bin364.fits outfile=/scratch/kocevski/808405/ft1_filteredMKT_4FGL_J2323.5-0317_daily_bin364.fits ra=350.888 dec=-3.29 rad=12.0 tmin=333676801.0 tmax=333936001.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.85
user 3.57
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/808405/ft1_filtered_4FGL_J2323.5-0317_daily_bin364.fits" evtable="EVENTS" scfile=/scratch/kocevski/808405/ft2_4FGL_J2323.5-0317_daily_bin364.fits sctable="SC_DATA" outfile=/scratch/kocevski/808405/ltcube_333676801_333936001_4FGL_J2323.5-0317_daily_bin364.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/808405/ft2_4FGL_J2323.5-0317_daily_bin364.fits
.....................!
real 11.64
user 11.22
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/808405/ft1_filtered_4FGL_J2323.5-0317_daily_bin364.fits evtable="EVENTS" scfile=/scratch/kocevski/808405/ft2_4FGL_J2323.5-0317_daily_bin364.fits sctable="SC_DATA" expcube=/scratch/kocevski/808405/ltcube_333676801_333936001_4FGL_J2323.5-0317_daily_bin364.fits outfile=/scratch/kocevski/808405/expmap_333676801_333936001_4FGL_J2323.5-0317_daily_bin364.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/808405/ltcube_333676801_333936001_4FGL_J2323.5-0317_daily_bin364.fits
.....................!
real 189.67
user 184.84
sys 4.49

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/808405/ft1_filtered_4FGL_J2323.5-0317_daily_bin364.fits scfile=/scratch/kocevski/808405/ft2_4FGL_J2323.5-0317_daily_bin364.fits outfile=/scratch/kocevski/808405/cmap_333676801_333936001_4FGL_J2323.5-0317_daily_bin364.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.37
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/808405/ft1_filtered_4FGL_J2323.5-0317_daily_bin364.fits scfile=/scratch/kocevski/808405/ft2_4FGL_J2323.5-0317_daily_bin364.fits outfile=/scratch/kocevski/808405/cmap_HighResolution_333676801_333936001_4FGL_J2323.5-0317_daily_bin364.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.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/808405/ft1_filtered_4FGL_J2323.5-0317_daily_bin364.fits evtable="EVENTS" scfile=/scratch/kocevski/808405/ft2_4FGL_J2323.5-0317_daily_bin364.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/808405/Model_4FGL_J2323.5-0317_daily_bin364.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/808405/ft1_filtered_4FGL_J2323.5-0317_daily_bin364.fits.....................!
real 53.94
user 52.01
sys 1.61

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.2717       1.0000         .10000E-03   10000.    
     2 'Prefactor '    22.619       1.0000         .10000E-03   10000.    
     3 'Prefactor '    26.583       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .11091E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .15648E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    44.543       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10481E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    17.580       1.0000         .10000E-03   10000.    
    10 'norm      '    1.8433       1.0000         .10000E-03   10000.    
    11 'norm      '    .10074E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.4405       1.0000         .10000E-03   10000.    
    13 'Prefactor '    13.679       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .15192E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.1254       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .15291E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    52.776       1.0000         .10000E-03   10000.    
    19 'Prefactor '    6.4174       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.4542       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    3.1179       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .89335       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .84286       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=   5375.848     FROM MIGRAD    STATUS=CONVERGED    589 CALLS     2913 TOTAL
                     EDM=   .62E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.2732        8.2148        .43227E-07    .12344E-04
   2  Prefactor     22.613        41.939        .23436E-06    .72077E-05
   3  Prefactor     26.588        39.949        .22782E-07   -.52977E-05
   4  Prefactor     .10000E-03    4.9186       -.15410E-07** at limit **
   5  norm          .10037E-03    12.028        .27652E-05** at limit **
   6  Prefactor     .10000E-03    121.36       -.61422E-05** at limit **
   7  Prefactor     44.540        24.231        .12847E-06   -.96965E-05
   8  Prefactor     .10000E-03    73.332        .61212E-05** at limit **
   9  Prefactor     17.581        11.605       -.67059E-06   -.31731E-03
  10  norm          1.8435        1.1123       -.42180E-07   -.34907E-03
  11  norm          .10000E-03    3.3141        .29194E-06** at limit **
  12  Prefactor     4.4424        11.656       -.77457E-06   -.29514E-04
  13  Prefactor     13.686        44.787       -.77288E-06   -.10192E-04
  14  Prefactor     .10000E-03    270.22        .76152E-05** at limit **
  15  Prefactor     2.1280        27.627       -.75529E-06    .26917E-04
  16  Prefactor     .10000E-03    14.956        .39148E-07** at limit **
  17  norm          .10000E-03    45.506        .91154E-07** at limit **
  18  Prefactor     52.807        91.820       -.41471E-05   -.58387E-04
  19  Prefactor     6.4203        6.5915        .10319E-05    .45830E-03
  20  Prefactor     .10000E-03    13.309        .10649E-07** at limit **
  21  Prefactor     1.4587        66.941        .29226E-06    .58162E-05
  22  Prefactor     .10000E-03    9.6209       -.25968E-07** at limit **
  23  Prefactor     3.1211        7.7834        .41595E-06    .42956E-04
  24  Normalizat    .89292        .21387       -.96767E-06   -.11397E-03
  25  Prefactor     .84307        .14532        .10427E-05   -.12246E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.27324
  Prefactor  = 22.6129
  Prefactor  = 26.588
  Prefactor  = 0.0001
  norm       = 0.000100365
  Prefactor  = 0.000100002
  Prefactor  = 44.5402
  Prefactor  = 0.000100005
  Prefactor  = 17.5815
  norm       = 1.84349
  norm       = 0.0001
  Prefactor  = 4.44238
  Prefactor  = 13.6856
  Prefactor  = 0.000100004
  Prefactor  = 2.12797
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 52.8074
  Prefactor  = 6.42034
  Prefactor  = 0.0001
  Prefactor  = 1.45873
  Prefactor  = 0.0001
  Prefactor  = 3.12106
  Normalizat = 0.892924
  Prefactor  = 0.843067
 **********
 **   18 **HESSE 
 **********

 FCN=   5375.848     FROM HESSE     STATUS=OK           431 CALLS     3344 TOTAL
                     EDM=   .66E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.2732        8.2098        .13939E-03   -1.5133    
   2  Prefactor     22.613        41.928        .84221E-04   -1.4757    
   3  Prefactor     26.588        40.005        .77698E-04   -1.4676    
   4  Prefactor     .10000E-03    4.9438        .15878E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10037E-03    56.244        .37377E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    124.11        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     44.540        24.230        .60071E-04   -1.4372    
   8  Prefactor     .10000E-03    74.849        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     17.581        11.714        .95525E-04   -1.4869    
  10  norm          1.8435        1.1089        .30719E-04   -1.5436    
  11  norm          .10000E-03    3.3446        .13037E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     4.4424        11.625        .19110E-03   -1.5286    
  13  Prefactor     13.686        44.757        .10830E-03   -1.4968    
  14  Prefactor     .10000E-03    269.78        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     2.1280        27.191        .28285E-03   -1.5416    
  16  Prefactor     .10000E-03    14.977        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    45.607        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     52.807        92.356        .55209E-04   -1.4253    
  19  Prefactor     6.4203        6.7180        .76149E-03   -1.5201    
  20  Prefactor     .10000E-03    13.333        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     1.4587        67.719        .35710E-03   -1.5466    
  22  Prefactor     .10000E-03    9.6705        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     3.1211        7.7662        .22962E-03   -1.5355    
  24  Normalizat    .89292        .24903        .28325E-03   -.96709    
  25  Prefactor     .84307        .16920        .20844E-03   -.98160    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.6034e-09
Minuit parameter uncertainties:
  1  8.21091
  2  41.9831
  3  40.0458
  4  2.43543e-06
  5  0.00907522
  6  0.000906801
  7  24.2356
  8  0.00118999
  9  11.7158
  10  1.10886
  11  2.63188e-05
  12  11.6309
  13  44.8672
  14  0.00203531
  15  15.2215
  16  1.05543e-05
  17  0.000152892
  18  92.6082
  19  6.71875
  20  3.81541e-06
  21  19.9013
  22  7.60046e-06
  23  7.76872
  24  0.249348
  25  0.169302
Done.

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

Extracting fit parameters...

4FGL J2323.5-0317
   Spectrum: LogParabola
373         norm:  1.843e+00  1.109e+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:  8.431e-01  1.693e-01  0.000e+00  1.000e+01 ( 1.000e+00)
521        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
522        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
519   Normalization:  8.929e-01  2.493e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.67
Ra Dec: 350.888 -3.290
Photon Index (Fixed Index): 2.16 +/- 0.00
Photon Flux (Fixed Index): 7.14e-08 +/- 4.29e-08
Energy Flux (Fixed Index): 2.92e-05 +/- 1.76e-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) = 5375.56775724
delta logL = 0.279886015459

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5375.54923031
delta logL = 0.298412947503

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.5993       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6974       1.0000          .0000       5.0000    
     3 'Normalizat'    .92428       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83063       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=   5375.549     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      200 TOTAL
                     EDM=   .38E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.5991        1.0121        .83819E-02    .13044E-03
   2  alpha         1.6973        .42312        .32981       -.32919E-04
   3  Normalizat    .92431        .20013        .45211E-01    .13858E-04
   4  Prefactor     .83062        .14389        .44115E-01    .76089E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.59911
  alpha      = 1.6973
  Normalizat = 0.924313
  Prefactor  = 0.830621
 **********
 **   18 **HESSE 
 **********

 FCN=   5375.549     FROM HESSE     STATUS=OK            33 CALLS      233 TOTAL
                     EDM=   .16E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.5991        1.1973        .56479E-04   -1.5455    
   2  alpha         1.6973        .57188        .12722E-01   -.32687    
   3  Normalizat    .92431        .23201        .27883E-03   -.95611    
   4  Prefactor     .83062        .16654        .20990E-03   -.98609    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.64073e-12
Minuit parameter uncertainties:
  1  1.19727
  2  0.577593
  3  0.232258
  4  0.166645
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/808405': 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) = 5375.54923029
delta logL = 0.298412964872

Extracting fit parameters...

4FGL J2323.5-0317
   Spectrum: LogParabola
373         norm:  1.599e+00  1.197e+00  1.000e-04  1.000e+04 ( 1.000e-11)
374        alpha:  1.697e+00  5.776e-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:  8.306e-01  1.666e-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.243e-01  2.323e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.30
Ra Dec: 350.888 -3.290
Photon Index (Free Index): 1.70 +/- 0.58
Photon Flux (Free Index): 4.36e-08 +/- 4.15e-08
Energy Flux (Free Index): 3.94e-05 +/- 3.21e-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/808405/cmap_HighResolution_333676801_333936001_4FGL_J2323.5-0317_daily_bin364.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.14e-08', energy_flux2='3.94e-05', photon_flux_error='4.29e-08', dlogl='2.98e-01', energy_flux='2.92e-05', photon_flux2='4.36e-08', job_status='DONE', time_completed='2021-09-29 14:36:12.453691', photon_index_error2='0.58', photon_index2='1.70', ts='6.67', fit_tolerance='1e-08', GAL='0.84', photon_index_error='0.00', energy_flux_error2='3.21e-05', EG='0.89', time_epoch_completed='1632951372.45', return_code='0', job_id='808405', GAL2='0.83', EG2='0.92', return_code2='0', energy_flux_error='1.76e-05', photon_flux_error2='4.15e-08', ts2='7.30', photon_index='2.16' WHERE bin_id='364' AND source_name='4FGL J2323.5-0317' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 14:36:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0137>
Subject: Job 808405: <4FGL_J2323.5-0317_daily_bin364> in cluster <slac> Done

Job <4FGL_J2323.5-0317_daily_bin364> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 14:25:37 2021
Job was executed on host(s) <bullet0137>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 14:25:38 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:25:38 2021
Terminated at Wed Sep 29 14:36:13 2021
Results reported at Wed Sep 29 14:36:13 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2323.5-0317_daily_bin364 350.888 -3.29 333676801 333936001 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 :                                   551.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             258.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   634 sec.
    Turnaround time :                            636 sec.

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

