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


Performing analysis on: 4FGL_J2323.5-0317_daily_bin903
RA = 350.888, Dec = -3.29
tmin = 473385601, tmax = 473644801
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='811142', job_status='RUN', time_executed='2021-09-29 14:36:38.910434', time_epoch_executed='1632951398.91' WHERE source_name='4FGL J2323.5-0317' and cadence='daily' and bin_id='903'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/811142

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/811142/ft1_4FGL_J2323.5-0317_daily_bin903.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/811142/ft2_4FGL_J2323.5-0317_daily_bin903.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/811142/ft1_4FGL_J2323.5-0317_daily_bin903.fits outfile=/scratch/kocevski/811142/ft1_filteredMKT_4FGL_J2323.5-0317_daily_bin903.fits ra=350.888 dec=-3.29 rad=12.0 tmin=473385601.0 tmax=473644801.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.57
user 3.37
sys 0.18

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/811142/ft1_filtered_4FGL_J2323.5-0317_daily_bin903.fits evtable="EVENTS" scfile=/scratch/kocevski/811142/ft2_4FGL_J2323.5-0317_daily_bin903.fits sctable="SC_DATA" expcube=/scratch/kocevski/811142/ltcube_473385601_473644801_4FGL_J2323.5-0317_daily_bin903.fits outfile=/scratch/kocevski/811142/expmap_473385601_473644801_4FGL_J2323.5-0317_daily_bin903.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/811142/ltcube_473385601_473644801_4FGL_J2323.5-0317_daily_bin903.fits
.....................!
real 190.25
user 184.99
sys 4.91

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/811142/ft1_filtered_4FGL_J2323.5-0317_daily_bin903.fits scfile=/scratch/kocevski/811142/ft2_4FGL_J2323.5-0317_daily_bin903.fits outfile=/scratch/kocevski/811142/cmap_473385601_473644801_4FGL_J2323.5-0317_daily_bin903.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.54
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/811142/ft1_filtered_4FGL_J2323.5-0317_daily_bin903.fits scfile=/scratch/kocevski/811142/ft2_4FGL_J2323.5-0317_daily_bin903.fits outfile=/scratch/kocevski/811142/cmap_HighResolution_473385601_473644801_4FGL_J2323.5-0317_daily_bin903.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/811142/ft1_filtered_4FGL_J2323.5-0317_daily_bin903.fits evtable="EVENTS" scfile=/scratch/kocevski/811142/ft2_4FGL_J2323.5-0317_daily_bin903.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/811142/Model_4FGL_J2323.5-0317_daily_bin903.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/811142/ft1_filtered_4FGL_J2323.5-0317_daily_bin903.fits.....................!
real 49.70
user 48.37
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.239       1.0000         .10000E-03   10000.    
     2 'Prefactor '    20.755       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    14.697       1.0000         .10000E-03   10000.    
     6 'Prefactor '    95.088       1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.6158       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    11.478       1.0000         .10000E-03   10000.    
    10 'norm      '    2.2046       1.0000         .10000E-03   10000.    
    11 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    14.608       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    179.86       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10424E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10049E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.2481       1.0000         .10000E-03   10000.    
    19 'Prefactor '    7.4782       1.0000         .10000E-03   10000.    
    20 'Prefactor '    46.564       1.0000         .10000E-03   10000.    
    21 'Prefactor '    20.689       1.0000         .10000E-03   10000.    
    22 'Prefactor '    3.0271       1.0000         .10000E-03   10000.    
    23 'Prefactor '    18.241       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .95754       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .63218       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=   4798.959     FROM MIGRAD    STATUS=CONVERGED    554 CALLS     2856 TOTAL
                     EDM=   .44E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.238        11.421        .70481E-07    .63020E-05
   2  Prefactor     20.755        45.636        .10730E-06    .90713E-06
   3  Prefactor     .10000E-03    18.750        .21752E-06** at limit **
   4  Prefactor     .10000E-03    5.8896        .20518E-06** at limit **
   5  norm          14.696        14.179        .33213E-06   -.20176E-04
   6  Prefactor     95.090        47.551        .30983E-06   -.25591E-05
   7  Prefactor     1.5897        41.640        .42411E-05    .37401E-05
   8  Prefactor     .10000E-03    89.144       -.87238E-07** at limit **
   9  Prefactor     11.478        11.717        .11124E-05    .30242E-04
  10  norm          2.2046        1.1909       -.13139E-06   -.44140E-04
  11  norm          .10000E-03    5.2684       -.65353E-06** at limit **
  12  Prefactor     14.608        12.612        .21380E-06   -.10273E-04
  13  Prefactor     .10000E-03    15.469        .36275E-07** at limit **
  14  Prefactor     179.68        213.62       -.57707E-05   -.27630E-04
  15  Prefactor     .10000E-03    5.6938       -.61934E-06** at limit **
  16  Prefactor     .10000E-03    10.480        .89624E-07** at limit **
  17  norm          .10000E-03    7.1434       -.26261E-06** at limit **
  18  Prefactor     3.1328        376.34       -.16000E-04   -.16765E-04
  19  Prefactor     7.4795        6.1867        .26417E-05   -.18064E-03
  20  Prefactor     46.549        39.009       -.16388E-06   -.26362E-04
  21  Prefactor     20.689        15.202        .52131E-07   -.24596E-05
  22  Prefactor     3.0141        30.715        .20059E-06   -.78458E-05
  23  Prefactor     18.240        10.666       -.24232E-07    .19894E-04
  24  Normalizat    .95759        .21572       -.44142E-06   -.95291E-05
  25  Prefactor     .63226        .14169       -.15590E-05    .33061E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.2375
  Prefactor  = 20.755
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 14.6958
  Prefactor  = 95.0902
  Prefactor  = 1.58968
  Prefactor  = 0.0001
  Prefactor  = 11.4779
  norm       = 2.20456
  norm       = 0.0001
  Prefactor  = 14.6075
  Prefactor  = 0.0001
  Prefactor  = 179.685
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 3.13278
  Prefactor  = 7.47948
  Prefactor  = 46.5488
  Prefactor  = 20.6887
  Prefactor  = 3.01406
  Prefactor  = 18.2402
  Normalizat = 0.957593
  Prefactor  = 0.632264
 **********
 **   18 **HESSE 
 **********

 FCN=   4798.959     FROM HESSE     STATUS=OK           431 CALLS     3287 TOTAL
                     EDM=   .90E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.238        11.407        .12522E-03   -1.5068    
   2  Prefactor     20.755        45.603        .87917E-04   -1.4796    
   3  Prefactor     .10000E-03    18.774        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    5.9068        .16421E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          14.696        14.184        .10448E-03   -1.4941    
   6  Prefactor     95.090        47.566        .41217E-04   -1.3755    
   7  Prefactor     1.5897        41.734        .33308E-03   -1.5456    
   8  Prefactor     .10000E-03    89.356        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     11.478        11.704        .59123E-03   -1.5030    
  10  norm          2.2046        1.1860        .51708E-04   -1.5411    
  11  norm          .10000E-03    5.2917        .15475E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     14.608        12.610        .10479E-03   -1.4943    
  13  Prefactor     .10000E-03    15.472        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     179.68        214.08        .15049E-03   -1.3019    
  15  Prefactor     .10000E-03    5.7375        .16172E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    10.495        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    7.1499        .18088E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     3.1328        395.58        .22473E-03   -1.5354    
  19  Prefactor     7.4795        6.2291        .70034E-03   -1.5161    
  20  Prefactor     46.549        39.057        .58759E-04   -1.4342    
  21  Prefactor     20.689        15.202        .88058E-04   -1.4798    
  22  Prefactor     3.0141        30.619        .23324E-03   -1.5361    
  23  Prefactor     18.240        10.681        .93778E-04   -1.4854    
  24  Normalizat    .95759        .24742        .26105E-03   -.94465    
  25  Prefactor     .63226        .16122        .22137E-03   -1.0624    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.0127e-11
Minuit parameter uncertainties:
  1  11.4098
  2  45.6793
  3  5.86346e-06
  4  3.11269e-06
  5  14.1876
  6  47.5848
  7  16.3025
  8  0.000136821
  9  11.7061
  10  1.18601
  11  5.1188e-06
  12  12.6126
  13  8.1825e-06
  14  215.021
  15  3.24679e-05
  16  1.43429e-06
  17  1.34405e-05
  18  70.8893
  19  6.22965
  20  39.0789
  21  15.2053
  22  19.2255
  23  10.6818
  24  0.247712
  25  0.161341
Done.

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

Extracting fit parameters...

4FGL J2323.5-0317
   Spectrum: LogParabola
373         norm:  2.205e+00  1.186e+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:  6.323e-01  1.613e-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.576e-01  2.477e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.00
Ra Dec: 350.888 -3.290
Photon Index (Fixed Index): 2.16 +/- 0.00
Photon Flux (Fixed Index): 8.53e-08 +/- 4.59e-08
Energy Flux (Fixed Index): 3.50e-05 +/- 1.88e-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) = 4798.95822938
delta logL = 0.00115516440746

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4798.95816558
delta logL = 0.00121896961718

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.2046       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1857       1.0000          .0000       5.0000    
     3 'Normalizat'    .95532       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .63319       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=   4798.958     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      193 TOTAL
                     EDM=   .15E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.2050        28.927        .69268E-02    .18382E-03
   2  alpha         2.1857        2.9169        .30950        .63619E-05
   3  Normalizat    .95531        .21330        .45605E-01    .10262E-04
   4  Prefactor     .63319        .14262        .41505E-01    .12765E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.20499
  alpha      = 2.1857
  Normalizat = 0.955315
  Prefactor  = 0.633189
 **********
 **   18 **HESSE 
 **********

 FCN=   4798.958     FROM HESSE     STATUS=OK            33 CALLS      226 TOTAL
                     EDM=   .45E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.2050        1.1512        .51453E-04   -1.5411    
   2  alpha         2.1857        .51383        .12053E-01   -.12606    
   3  Normalizat    .95531        .23051        .26131E-03   -.94543    
   4  Prefactor     .63319        .15961        .22122E-03   -1.0621    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.49547e-14
Minuit parameter uncertainties:
  1  1.15123
  2  0.517579
  3  0.230747
  4  0.159726
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/811142': 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) = 4798.95816554
delta logL = 0.00121901295734

Extracting fit parameters...

4FGL J2323.5-0317
   Spectrum: LogParabola
373         norm:  2.205e+00  1.151e+00  1.000e-04  1.000e+04 ( 1.000e-11)
374        alpha:  2.186e+00  5.176e-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:  6.332e-01  1.597e-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.553e-01  2.307e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.01
Ra Dec: 350.888 -3.290
Photon Index (Free Index): 2.19 +/- 0.52
Photon Flux (Free Index): 8.74e-08 +/- 6.15e-08
Energy Flux (Free Index): 3.47e-05 +/- 1.91e-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/811142/cmap_HighResolution_473385601_473644801_4FGL_J2323.5-0317_daily_bin903.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.53e-08', energy_flux2='3.47e-05', photon_flux_error='4.59e-08', dlogl='1.22e-03', energy_flux='3.50e-05', photon_flux2='8.74e-08', job_status='DONE', time_completed='2021-09-29 14:45:33.481754', photon_index_error2='0.52', photon_index2='2.19', ts='7.00', fit_tolerance='1e-08', GAL='0.63', photon_index_error='0.00', energy_flux_error2='1.91e-05', EG='0.96', time_epoch_completed='1632951933.48', return_code='0', job_id='811142', GAL2='0.63', EG2='0.96', return_code2='0', energy_flux_error='1.88e-05', photon_flux_error2='6.15e-08', ts2='7.01', photon_index='2.16' WHERE bin_id='903' AND source_name='4FGL J2323.5-0317' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 14:45:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0079>
Subject: Job 811142: <4FGL_J2323.5-0317_daily_bin903> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2323.5-0317_daily_bin903 350.888 -3.29 473385601 473644801 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 :                                   525.08 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             289.26 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   593 sec.
    Turnaround time :                            596 sec.

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

