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


Performing analysis on: 4FGL_J2323.5-0317_daily_bin853
RA = 350.888, Dec = -3.29
tmin = 460425601, tmax = 460684801
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='811067', job_status='RUN', time_executed='2021-09-29 14:38:43.911425', time_epoch_executed='1632951523.91' WHERE source_name='4FGL J2323.5-0317' and cadence='daily' and bin_id='853'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/811067

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/811067/ft1_4FGL_J2323.5-0317_daily_bin853.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/811067/ft2_4FGL_J2323.5-0317_daily_bin853.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/811067/ft1_4FGL_J2323.5-0317_daily_bin853.fits outfile=/scratch/kocevski/811067/ft1_filteredMKT_4FGL_J2323.5-0317_daily_bin853.fits ra=350.888 dec=-3.29 rad=12.0 tmin=460425601.0 tmax=460684801.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.33
user 3.12
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/811067/ft1_filtered_4FGL_J2323.5-0317_daily_bin853.fits" evtable="EVENTS" scfile=/scratch/kocevski/811067/ft2_4FGL_J2323.5-0317_daily_bin853.fits sctable="SC_DATA" outfile=/scratch/kocevski/811067/ltcube_460425601_460684801_4FGL_J2323.5-0317_daily_bin853.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/811067/ft2_4FGL_J2323.5-0317_daily_bin853.fits
.....................!
real 12.16
user 11.84
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/811067/ft1_filtered_4FGL_J2323.5-0317_daily_bin853.fits evtable="EVENTS" scfile=/scratch/kocevski/811067/ft2_4FGL_J2323.5-0317_daily_bin853.fits sctable="SC_DATA" expcube=/scratch/kocevski/811067/ltcube_460425601_460684801_4FGL_J2323.5-0317_daily_bin853.fits outfile=/scratch/kocevski/811067/expmap_460425601_460684801_4FGL_J2323.5-0317_daily_bin853.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/811067/ltcube_460425601_460684801_4FGL_J2323.5-0317_daily_bin853.fits
.....................!
real 191.92
user 185.85
sys 5.66

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

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

This is gtbin version HEAD
real 0.53
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/811067/ft1_filtered_4FGL_J2323.5-0317_daily_bin853.fits scfile=/scratch/kocevski/811067/ft2_4FGL_J2323.5-0317_daily_bin853.fits outfile=/scratch/kocevski/811067/cmap_HighResolution_460425601_460684801_4FGL_J2323.5-0317_daily_bin853.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.36
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/811067/ft1_filtered_4FGL_J2323.5-0317_daily_bin853.fits evtable="EVENTS" scfile=/scratch/kocevski/811067/ft2_4FGL_J2323.5-0317_daily_bin853.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/811067/Model_4FGL_J2323.5-0317_daily_bin853.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/811067/ft1_filtered_4FGL_J2323.5-0317_daily_bin853.fits.....................!
real 60.54
user 59.18
sys 1.25

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    52.871       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.9509       1.0000         .10000E-03   10000.    
     5 'norm      '    8.9499       1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.3582       1.0000         .10000E-03   10000.    
     7 'Prefactor '    14.321       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    12.195       1.0000         .10000E-03   10000.    
    10 'norm      '    1.0206       1.0000         .10000E-03   10000.    
    11 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.1644       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    328.57       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    9.9508       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    29.019       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    1.8226       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .95192       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .78282       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=   6404.867     FROM MIGRAD    STATUS=CONVERGED    550 CALLS     2836 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.6399       -.20996E-07** at limit **
   2  Prefactor     52.871        42.145       -.74821E-07    .59608E-05
   3  Prefactor     .10000E-03    14.922       -.28054E-05** at limit **
   4  Prefactor     7.9508        8.1959        .17277E-07    .38026E-05
   5  norm          8.9499        8.7975        .17801E-06   -.25514E-04
   6  Prefactor     5.3011        56.275       -.24656E-04   -.28277E-03
   7  Prefactor     14.323        12.704        .46204E-06   -.26857E-04
   8  Prefactor     .10000E-03    63.004        .95287E-06** at limit **
   9  Prefactor     12.182        7.9021       -.74100E-07   -.82816E-04
  10  norm          1.0206        .68095        .53338E-08   -.54125E-04
  11  norm          .10000E-03    2.6376        .62946E-07** at limit **
  12  Prefactor     3.1663        8.0756        .95566E-05   -.77669E-03
  13  Prefactor     .10000E-03    17.068        .19426E-05** at limit **
  14  Prefactor     328.57        191.80        .31814E-06    .99002E-05
  15  Prefactor     .10000E-03    3.2328        .95121E-07** at limit **
  16  Prefactor     9.9520        19.275       -.12692E-06   -.10669E-03
  17  norm          .10000E-03    7.5145        .21516E-07** at limit **
  18  Prefactor     .10000E-03    16.632        .52003E-06** at limit **
  19  Prefactor     .10000E-03    1.4944        .14387E-06** at limit **
  20  Prefactor     .10000E-03    11.539        .93476E-06** at limit **
  21  Prefactor     29.017        25.232       -.27338E-06   -.26047E-04
  22  Prefactor     .10000E-03    4.7136        .14047E-06** at limit **
  23  Prefactor     1.8216        6.3663        .12877E-05   -.11852E-03
  24  Normalizat    .95194        .16946        .57722E-06   -.46707E-04
  25  Prefactor     .78282        .12330       -.72189E-06    .51012E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 52.8707
  Prefactor  = 0.000100002
  Prefactor  = 7.95084
  norm       = 8.94986
  Prefactor  = 5.30113
  Prefactor  = 14.3226
  Prefactor  = 0.0001
  Prefactor  = 12.1822
  norm       = 1.02064
  norm       = 0.0001
  Prefactor  = 3.1663
  Prefactor  = 0.000100001
  Prefactor  = 328.568
  Prefactor  = 0.0001
  Prefactor  = 9.95202
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 29.0174
  Prefactor  = 0.0001
  Prefactor  = 1.82161
  Normalizat = 0.951945
  Prefactor  = 0.78282
 **********
 **   18 **HESSE 
 **********

 FCN=   6404.867     FROM HESSE     STATUS=OK           423 CALLS     3259 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.6448        .12694E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     52.871        42.139        .55160E-04   -1.4252    
   3  Prefactor     .10000E-03    15.081        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     7.9508        8.1953        .14220E-03   -1.5144    
   5  norm          8.9499        8.8013        .66988E-03   -1.5110    
   6  Prefactor     5.3011        64.323        .17362E-03   -1.5247    
   7  Prefactor     14.323        12.704        .52921E-03   -1.4951    
   8  Prefactor     .10000E-03    63.430        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     12.182        7.8945        .11471E-03   -1.5010    
  10  norm          1.0206        .69051        .51313E-04   -1.5506    
  11  norm          .10000E-03    2.6726        .12674E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     3.1663        8.4094        .11392E-02   -1.5352    
  13  Prefactor     .10000E-03    17.128        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     328.57        191.42        .11219E-03   -1.2063    
  15  Prefactor     .10000E-03    3.2411        .14049E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     9.9520        19.267        .63514E-03   -1.5077    
  17  norm          .10000E-03    7.5304        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    16.643        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    1.5049        .95461E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    11.561        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     29.017        25.248        .74373E-04   -1.4630    
  22  Prefactor     .10000E-03    4.7232        .16969E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     1.8216        6.3871        .30927E-03   -1.5438    
  24  Normalizat    .95194        .19419        .25508E-03   -.94658    
  25  Prefactor     .78282        .14189        .20615E-03   -1.0036    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.55893e-09
Minuit parameter uncertainties:
  1  4.25961e-06
  2  42.1626
  3  0.000355323
  4  8.1965
  5  8.80254
  6  36.9807
  7  12.7064
  8  0.000192717
  9  7.89514
  10  0.690511
  11  6.8633e-07
  12  8.41257
  13  0.000239442
  14  191.786
  15  2.9733e-06
  16  19.2792
  17  1.11085e-05
  18  5.05657e-05
  19  2.51196e-06
  20  8.54508e-05
  21  25.2572
  22  1.83252e-06
  23  6.38945
  24  0.194331
  25  0.14196
Done.

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

Extracting fit parameters...

4FGL J2323.5-0317
   Spectrum: LogParabola
373         norm:  1.021e+00  6.905e-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.828e-01  1.420e-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.519e-01  1.943e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.49
Ra Dec: 350.888 -3.290
Photon Index (Fixed Index): 2.16 +/- 0.00
Photon Flux (Fixed Index): 3.95e-08 +/- 2.67e-08
Energy Flux (Fixed Index): 1.62e-05 +/- 1.09e-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) = 6403.74897245
delta logL = 1.11826837854

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6403.74333919
delta logL = 1.12390163691

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .49005       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.1968       1.0000          .0000       5.0000    
     3 'Normalizat'    .97430       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .77825       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=   6403.743     FROM MIGRAD    STATUS=CONVERGED     43 CALLS      205 TOTAL
                     EDM=   .33E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .49005        .38987        .90200E-02   -.18949E-02
   2  alpha         1.1968        .39814        .31310       -.52990E-04
   3  Normalizat    .97430        .16312        .45844E-01    .50338E-04
   4  Prefactor     .77825        .12131        .43434E-01    .12273E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.490051
  alpha      = 1.19676
  Normalizat = 0.974302
  Prefactor  = 0.778253
 **********
 **   18 **HESSE 
 **********

 FCN=   6403.743     FROM HESSE     STATUS=OK            35 CALLS      240 TOTAL
                     EDM=   .29E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .49005        .55666        .38362E-03   -1.5568    
   2  alpha         1.1968        .58185        .12942E-01   -.54837    
   3  Normalizat    .97430        .18754        .25256E-03   -.93896    
   4  Prefactor     .77825        .13952        .20680E-03   -1.0053    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.86774e-10
Minuit parameter uncertainties:
  1  0.556669
  2  0.589311
  3  0.187666
  4  0.139582
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/811067': 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) = 6403.74333919
delta logL = 1.1239016374

Extracting fit parameters...

4FGL J2323.5-0317
   Spectrum: LogParabola
373         norm:  4.901e-01  5.567e-01  1.000e-04  1.000e+04 ( 1.000e-11)
374        alpha:  1.197e+00  5.893e-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.783e-01  1.396e-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.743e-01  1.877e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.75
Ra Dec: 350.888 -3.290
Photon Index (Free Index): 1.20 +/- 0.59
Photon Flux (Free Index): 1.23e-08 +/- 1.25e-08
Energy Flux (Free Index): 3.80e-05 +/- 4.27e-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/811067/cmap_HighResolution_460425601_460684801_4FGL_J2323.5-0317_daily_bin853.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.95e-08', energy_flux2='3.80e-05', photon_flux_error='2.67e-08', dlogl='1.12e+00', energy_flux='1.62e-05', photon_flux2='1.23e-08', job_status='DONE', time_completed='2021-09-29 14:48:55.230784', photon_index_error2='0.59', photon_index2='1.20', ts='8.49', fit_tolerance='1e-08', GAL='0.78', photon_index_error='0.00', energy_flux_error2='4.27e-05', EG='0.95', time_epoch_completed='1632952135.23', return_code='0', job_id='811067', GAL2='0.78', EG2='0.97', return_code2='0', energy_flux_error='1.09e-05', photon_flux_error2='1.25e-08', ts2='10.75', photon_index='2.16' WHERE bin_id='853' AND source_name='4FGL J2323.5-0317' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 14:48:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0106>
Subject: Job 811067: <4FGL_J2323.5-0317_daily_bin853> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2323.5-0317_daily_bin853 350.888 -3.29 460425601 460684801 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 :                                   600.17 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             241.64 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   802 sec.
    Turnaround time :                            805 sec.

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

