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


Performing analysis on: 4FGL_J2323.5-0317_daily_bin498
RA = 350.888, Dec = -3.29
tmin = 368409601, tmax = 368668801
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='809436', job_status='RUN', time_executed='2021-09-29 14:31:32.200189', time_epoch_executed='1632951092.2' WHERE source_name='4FGL J2323.5-0317' and cadence='daily' and bin_id='498'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/809436

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/809436/ft1_4FGL_J2323.5-0317_daily_bin498.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/809436/ft2_4FGL_J2323.5-0317_daily_bin498.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/809436/ft1_4FGL_J2323.5-0317_daily_bin498.fits outfile=/scratch/kocevski/809436/ft1_filteredMKT_4FGL_J2323.5-0317_daily_bin498.fits ra=350.888 dec=-3.29 rad=12.0 tmin=368409601.0 tmax=368668801.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.28
user 3.07
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/809436/ft2_4FGL_J2323.5-0317_daily_bin498.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/809436/ft1_filteredMKT_4FGL_J2323.5-0317_daily_bin498.fits evtable="EVENTS" outfile="/scratch/kocevski/809436/ft1_filtered_4FGL_J2323.5-0317_daily_bin498.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.48
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/809436/ft1_filtered_4FGL_J2323.5-0317_daily_bin498.fits" evtable="EVENTS" scfile=/scratch/kocevski/809436/ft2_4FGL_J2323.5-0317_daily_bin498.fits sctable="SC_DATA" outfile=/scratch/kocevski/809436/ltcube_368409601_368668801_4FGL_J2323.5-0317_daily_bin498.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/809436/ft2_4FGL_J2323.5-0317_daily_bin498.fits
.....................!
real 11.82
user 11.48
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/809436/ft1_filtered_4FGL_J2323.5-0317_daily_bin498.fits evtable="EVENTS" scfile=/scratch/kocevski/809436/ft2_4FGL_J2323.5-0317_daily_bin498.fits sctable="SC_DATA" expcube=/scratch/kocevski/809436/ltcube_368409601_368668801_4FGL_J2323.5-0317_daily_bin498.fits outfile=/scratch/kocevski/809436/expmap_368409601_368668801_4FGL_J2323.5-0317_daily_bin498.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/809436/ltcube_368409601_368668801_4FGL_J2323.5-0317_daily_bin498.fits
.....................!
real 191.19
user 186.22
sys 4.58

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/809436/ft1_filtered_4FGL_J2323.5-0317_daily_bin498.fits scfile=/scratch/kocevski/809436/ft2_4FGL_J2323.5-0317_daily_bin498.fits outfile=/scratch/kocevski/809436/cmap_368409601_368668801_4FGL_J2323.5-0317_daily_bin498.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.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/809436/ft1_filtered_4FGL_J2323.5-0317_daily_bin498.fits scfile=/scratch/kocevski/809436/ft2_4FGL_J2323.5-0317_daily_bin498.fits outfile=/scratch/kocevski/809436/cmap_HighResolution_368409601_368668801_4FGL_J2323.5-0317_daily_bin498.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/809436/ft1_filtered_4FGL_J2323.5-0317_daily_bin498.fits evtable="EVENTS" scfile=/scratch/kocevski/809436/ft2_4FGL_J2323.5-0317_daily_bin498.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/809436/Model_4FGL_J2323.5-0317_daily_bin498.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/809436/ft1_filtered_4FGL_J2323.5-0317_daily_bin498.fits.....................!
real 59.45
user 58.05
sys 1.28

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .39705       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    12.092       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    12.721       1.0000         .10000E-03   10000.    
     6 'Prefactor '    19.147       1.0000         .10000E-03   10000.    
     7 'Prefactor '    14.960       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10123E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .19149E-02   1.0000         .10000E-03   10000.    
    10 'norm      '    .75041       1.0000         .10000E-03   10000.    
    11 'norm      '    1.8002       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    31.206       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10413E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    15.857       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .14251E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10059E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    76.921       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10106E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    4.2518       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0065       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .82489       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=   5811.190     FROM MIGRAD    STATUS=CONVERGED    585 CALLS     2929 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .38873        5.6013       -.32468E-05    .18801E-03
   2  Prefactor     .10000E-03    49.781       -.12873E-04** at limit **
   3  Prefactor     12.092        14.710       -.63684E-06   -.44059E-05
   4  Prefactor     .10000E-03    2.7195       -.23367E-07** at limit **
   5  norm          12.719        10.951       -.86655E-06    .40767E-05
   6  Prefactor     19.104        44.128       -.41341E-04    .20106E-04
   7  Prefactor     14.958        23.455        .14989E-04    .10947E-03
   8  Prefactor     .10000E-03    36.394        .15666E-04** at limit **
   9  Prefactor     .10118E-03    10.040        .16195E-05** at limit **
  10  norm          .75033        1.0878        .40035E-06    .31225E-03
  11  norm          1.7858        5.9827       -.38505E-05   -.13410E-02
  12  Prefactor     .10000E-03    3.6767        .72885E-07** at limit **
  13  Prefactor     31.072        73.411       -.17727E-03    .17380E-04
  14  Prefactor     .10000E-03    133.34        .30418E-04** at limit **
  15  Prefactor     15.843        12.050        .57468E-05    .44752E-04
  16  Prefactor     .10000E-03    45.070       -.13437E-04** at limit **
  17  norm          .10000E-03    9.8261       -.46266E-07** at limit **
  18  Prefactor     .10000E-03    21.596       -.36592E-05** at limit **
  19  Prefactor     .10000E-03    1.5667       -.14659E-06** at limit **
  20  Prefactor     76.936        51.099        .14780E-04    .89360E-04
  21  Prefactor     .10000E-03    15.778        .15046E-05** at limit **
  22  Prefactor     .10000E-03    13.416       -.11596E-05** at limit **
  23  Prefactor     4.2522        6.6176       -.23794E-05   -.45896E-04
  24  Normalizat    1.0063        .19270        .47194E-05    .15920E-03
  25  Prefactor     .82508        .13615        .56064E-05   -.42833E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.388734
  Prefactor  = 0.0001
  Prefactor  = 12.0917
  Prefactor  = 0.0001
  norm       = 12.7193
  Prefactor  = 19.1037
  Prefactor  = 14.9579
  Prefactor  = 0.0001
  Prefactor  = 0.000101183
  norm       = 0.750326
  norm       = 1.78581
  Prefactor  = 0.0001
  Prefactor  = 31.072
  Prefactor  = 0.0001
  Prefactor  = 15.8433
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 76.9357
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 4.2522
  Normalizat = 1.00631
  Prefactor  = 0.825078
 **********
 **   18 **HESSE 
 **********

 FCN=   5811.190     FROM HESSE     STATUS=OK           431 CALLS     3360 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .38873        18.029        .34460E-02   -1.5583    
   2  Prefactor     .10000E-03    50.010        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     12.092        14.712        .11520E-03   -1.5012    
   4  Prefactor     .10000E-03    2.7212        .12277E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          12.719        10.950        .11231E-03   -1.4995    
   6  Prefactor     19.104        44.142        .91533E-04   -1.4834    
   7  Prefactor     14.958        23.442        .10355E-03   -1.4934    
   8  Prefactor     .10000E-03    36.420        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10118E-03    88.598        .39437E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .75033        1.0367        .85722E-04   -1.5535    
  11  norm          1.7858        5.1547        .27633E-03   -1.5441    
  12  Prefactor     .10000E-03    3.6814        .14275E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     31.072        73.426        .71726E-04   -1.4593    
  14  Prefactor     .10000E-03    133.34        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     15.843        11.956        .10058E-03   -1.4912    
  16  Prefactor     .10000E-03    46.110        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    9.8279        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    21.609        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    1.5725        .93037E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     76.936        51.088        .45785E-04   -1.3951    
  21  Prefactor     .10000E-03    15.827        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    13.506        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     4.2522        6.6006        .19541E-03   -1.5296    
  24  Normalizat    1.0063        .21923        .26208E-03   -.92819    
  25  Prefactor     .82508        .15673        .20960E-03   -.98810    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.47829e-08
Minuit parameter uncertainties:
  1  5.29572
  2  0.000111233
  3  14.716
  4  8.25771e-06
  5  10.9521
  6  44.2175
  7  23.4565
  8  0.000209715
  9  0.0205094
  10  1.03676
  11  5.15602
  12  1.28867e-05
  13  73.6407
  14  0.000306308
  15  11.9578
  16  3.36693e-06
  17  3.25998e-05
  18  6.01003e-05
  19  1.80053e-05
  20  51.1171
  21  0.000145225
  22  0.000178735
  23  6.6017
  24  0.219429
  25  0.15682
Done.

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

Extracting fit parameters...

4FGL J2323.5-0317
   Spectrum: LogParabola
373         norm:  7.503e-01  1.037e+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.251e-01  1.568e-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:  1.006e+00  2.194e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.72
Ra Dec: 350.888 -3.290
Photon Flux Upper Limit: 1.14e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.69e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/809436/likelihoodResults_368409601_368668801_4FGL_J2323.5-0317_daily_bin498.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) = 5810.60886339
delta logL = 0.580711971362

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5810.60813698
delta logL = 0.581438375193

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .78372       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.9481       1.0000          .0000       5.0000    
     3 'Normalizat'    .96447       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83885       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=   5810.608     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      203 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .78373        11.147        .11751E-01    .15606E-02
   2  alpha         2.9481        3.9715        .37432        .28193E-04
   3  Normalizat    .96446        .49653E-01    .45720E-01   -.78016E-04
   4  Prefactor     .83886        .37607E-01    .44221E-01    .61517E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.783728
  alpha      = 2.94811
  Normalizat = 0.96446
  Prefactor  = 0.83886
 **********
 **   18 **HESSE 
 **********

 FCN=   5810.608     FROM HESSE     STATUS=OK            33 CALLS      236 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .78373        .88933        .53236E-04   -1.5531    
   2  alpha         2.9481        .76672        .14477E-01    .18022    
   3  Normalizat    .96446        .21429        .26671E-03   -.94231    
   4  Prefactor     .83886        .15454        .20783E-03   -.98311    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.01563e-09
Minuit parameter uncertainties:
  1  0.889341
  2  0.779713
  3  0.21448
  4  0.154622
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/809436': 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) = 5810.60813698
delta logL = 0.58143838122

Extracting fit parameters...

4FGL J2323.5-0317
   Spectrum: LogParabola
373         norm:  7.837e-01  8.893e-01  1.000e-04  1.000e+04 ( 1.000e-11)
374        alpha:  2.948e+00  7.797e-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.389e-01  1.546e-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.645e-01  2.145e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.91
Ra Dec: 350.888 -3.290
Photon Index (Free Index): 2.95 +/- 0.78
Photon Flux (Free Index): 7.40e-08 +/- 6.33e-08
Energy Flux (Free Index): 1.58e-05 +/- 1.33e-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/809436/cmap_HighResolution_368409601_368668801_4FGL_J2323.5-0317_daily_bin498.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.69e-05', comment='SUCCESS', energy_flux2='1.58e-05', dlogl='5.81e-01', photon_flux2='7.40e-08', job_status='DONE', time_completed='2021-09-29 14:42:27.763446', photon_index_error2='0.78', photon_index2='2.95', ts='0.72', fit_tolerance='1e-08', GAL='0.83', photon_index_error='0.00', photon_flux_upper_limit='1.14e-07', energy_flux_error2='1.33e-05', EG='1.01', time_epoch_completed='1632951747.76', return_code='0', job_id='809436', GAL2='0.84', EG2='0.96', return_code2='0', photon_flux_error2='6.33e-08', ts2='1.91', photon_index='2.16' WHERE bin_id='498' AND source_name='4FGL J2323.5-0317' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 14:42:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0227>
Subject: Job 809436: <4FGL_J2323.5-0317_daily_bin498> in cluster <slac> Done

Job <4FGL_J2323.5-0317_daily_bin498> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Wed Sep 29 14:30:22 2021
Job was executed on host(s) <bullet0227>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 14:30:23 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:30:23 2021
Terminated at Wed Sep 29 14:42:28 2021
Results reported at Wed Sep 29 14:42:28 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2323.5-0317_daily_bin498 350.888 -3.29 368409601 368668801 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 :                                   636.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             331.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   725 sec.
    Turnaround time :                            726 sec.

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

