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


Performing analysis on: 4FGL_J2323.5-0317_daily_bin968
RA = 350.888, Dec = -3.29
tmin = 490233601, tmax = 490492801
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='811235', job_status='RUN', time_executed='2021-09-29 14:36:18.065165', time_epoch_executed='1632951378.07' WHERE source_name='4FGL J2323.5-0317' and cadence='daily' and bin_id='968'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/811235

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/811235/ft1_4FGL_J2323.5-0317_daily_bin968.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/811235/ft2_4FGL_J2323.5-0317_daily_bin968.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/811235/ft1_4FGL_J2323.5-0317_daily_bin968.fits outfile=/scratch/kocevski/811235/ft1_filteredMKT_4FGL_J2323.5-0317_daily_bin968.fits ra=350.888 dec=-3.29 rad=12.0 tmin=490233601.0 tmax=490492801.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.70
user 3.46
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/811235/ft2_4FGL_J2323.5-0317_daily_bin968.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/811235/ft1_filteredMKT_4FGL_J2323.5-0317_daily_bin968.fits evtable="EVENTS" outfile="/scratch/kocevski/811235/ft1_filtered_4FGL_J2323.5-0317_daily_bin968.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/811235/ft1_filtered_4FGL_J2323.5-0317_daily_bin968.fits" evtable="EVENTS" scfile=/scratch/kocevski/811235/ft2_4FGL_J2323.5-0317_daily_bin968.fits sctable="SC_DATA" outfile=/scratch/kocevski/811235/ltcube_490233601_490492801_4FGL_J2323.5-0317_daily_bin968.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/811235/ft2_4FGL_J2323.5-0317_daily_bin968.fits
.....................!
real 12.13
user 11.77
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/811235/ft1_filtered_4FGL_J2323.5-0317_daily_bin968.fits evtable="EVENTS" scfile=/scratch/kocevski/811235/ft2_4FGL_J2323.5-0317_daily_bin968.fits sctable="SC_DATA" expcube=/scratch/kocevski/811235/ltcube_490233601_490492801_4FGL_J2323.5-0317_daily_bin968.fits outfile=/scratch/kocevski/811235/expmap_490233601_490492801_4FGL_J2323.5-0317_daily_bin968.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/811235/ltcube_490233601_490492801_4FGL_J2323.5-0317_daily_bin968.fits
.....................!
real 191.24
user 185.30
sys 5.57

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/811235/ft1_filtered_4FGL_J2323.5-0317_daily_bin968.fits scfile=/scratch/kocevski/811235/ft2_4FGL_J2323.5-0317_daily_bin968.fits outfile=/scratch/kocevski/811235/cmap_490233601_490492801_4FGL_J2323.5-0317_daily_bin968.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.35
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/811235/ft1_filtered_4FGL_J2323.5-0317_daily_bin968.fits scfile=/scratch/kocevski/811235/ft2_4FGL_J2323.5-0317_daily_bin968.fits outfile=/scratch/kocevski/811235/cmap_HighResolution_490233601_490492801_4FGL_J2323.5-0317_daily_bin968.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/811235/ft1_filtered_4FGL_J2323.5-0317_daily_bin968.fits evtable="EVENTS" scfile=/scratch/kocevski/811235/ft2_4FGL_J2323.5-0317_daily_bin968.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/811235/Model_4FGL_J2323.5-0317_daily_bin968.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/811235/ft1_filtered_4FGL_J2323.5-0317_daily_bin968.fits.....................!
real 47.14
user 45.86
sys 1.14

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11086E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    53.981       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10284E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.1522       1.0000         .10000E-03   10000.    
     5 'norm      '    7.7094       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10158E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.0976       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10022E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    5.5775       1.0000         .10000E-03   10000.    
    12 'Prefactor '    18.201       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10136E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10123E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10102E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    39.058       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .38733E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .38346E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .47715       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.1137       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=   4776.092     FROM MIGRAD    STATUS=CONVERGED    590 CALLS     2922 TOTAL
                     EDM=   .36E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    29.374        .87231E-05** at limit **
   2  Prefactor     54.049        64.459        .10532E-05    .51791E-04
   3  Prefactor     .10000E-03    12.536        .70744E-07** at limit **
   4  Prefactor     1.1540        7.2457       -.96397E-06   -.96052E-04
   5  norm          7.7138        13.144        .32183E-06   -.68519E-04
   6  Prefactor     .10000E-03    40.134        .15363E-05** at limit **
   7  Prefactor     .10000E-03    6.3835        .30536E-06** at limit **
   8  Prefactor     4.1818        182.12        .21843E-05   -.31078E-04
   9  Prefactor     .10000E-03    6.3207       -.21869E-05** at limit **
  10  norm          .10000E-03    .39168        .20778E-06** at limit **
  11  norm          5.5753        6.0391       -.54382E-06   -.18155E-03
  12  Prefactor     18.203        13.824        .18118E-06   -.62241E-04
  13  Prefactor     .10000E-03    64.386        .53832E-06** at limit **
  14  Prefactor     .10000E-03    54.721       -.28111E-06** at limit **
  15  Prefactor     .10000E-03    3.6228        .21433E-06** at limit **
  16  Prefactor     .10000E-03    10.606        .14926E-06** at limit **
  17  norm          .10000E-03    7.3344        .15417E-06** at limit **
  18  Prefactor     .10000E-03    24.832       -.14409E-06** at limit **
  19  Prefactor     .10000E-03    1.4143        .21684E-06** at limit **
  20  Prefactor     39.058        36.672       -.69355E-06   -.64258E-04
  21  Prefactor     .10013E-03    79.095       -.13788E-04** at limit **
  22  Prefactor     .10001E-03    8.6349        .21091E-05** at limit **
  23  Prefactor     .10000E-03    3.3885        .22159E-06** at limit **
  24  Normalizat    .47691        .20937        .22182E-06   -.15938E-03
  25  Prefactor     1.1136        .15633       -.12568E-05    .16858E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010001
  Prefactor  = 54.0494
  Prefactor  = 0.0001
  Prefactor  = 1.15397
  norm       = 7.71375
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 4.1818
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 5.57528
  Prefactor  = 18.203
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 39.0583
  Prefactor  = 0.000100131
  Prefactor  = 0.000100006
  Prefactor  = 0.0001
  Normalizat = 0.476907
  Prefactor  = 1.11365
 **********
 **   18 **HESSE 
 **********

 FCN=   4776.092     FROM HESSE     STATUS=OK           425 CALLS     3347 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    47.374        .38967E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     54.049        64.459        .54593E-04   -1.4236    
   3  Prefactor     .10000E-03    12.550        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.1540        7.2082        .36290E-03   -1.5493    
   5  norm          7.7138        13.127        .14442E-03   -1.5152    
   6  Prefactor     .10000E-03    40.449        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    6.3947        .17060E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     4.1818        180.53        .19916E-03   -1.5299    
   9  Prefactor     .10000E-03    6.2692        .16846E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    .56662        .83226E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          5.5753        6.0075        .16339E-03   -1.5236    
  12  Prefactor     18.203        13.828        .93880E-04   -1.4854    
  13  Prefactor     .10000E-03    64.676        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    54.736        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    3.6344        .12849E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    10.629        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    7.3421        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    24.843        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    1.4267        .80311E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     39.058        36.497        .64134E-04   -1.4457    
  21  Prefactor     .10013E-03    152.92        .56549E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10001E-03    29.066        .37211E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    3.4003        .12421E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .47691        .22632        .33200E-03   -1.1350    
  25  Prefactor     1.1136        .16951        .17234E-03   -.89032    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.69798e-09
Minuit parameter uncertainties:
  1  0.00139855
  2  64.5428
  3  1.46737e-05
  4  5.76898
  5  13.1314
  6  0.000395416
  7  2.49736e-05
  8  55.1299
  9  4.65655e-05
  10  2.82924e-06
  11  6.00817
  12  13.8309
  13  5.84793e-06
  14  0.000178892
  15  7.51042e-06
  16  1.03941e-05
  17  8.86044e-06
  18  1.05416e-05
  19  4.69095e-06
  20  36.5176
  21  0.00898682
  22  0.00086008
  23  5.50071e-06
  24  0.226758
  25  0.169592
Done.

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

Extracting fit parameters...

4FGL J2323.5-0317
   Spectrum: LogParabola
373         norm:  1.000e-04  2.829e-06  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:  1.114e+00  1.696e-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:  4.769e-01  2.268e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/811235/likelihoodResults_490233601_490492801_4FGL_J2323.5-0317_daily_bin968.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) = 4775.99619113
delta logL = 0.0953645992322

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4775.99614088
delta logL = 0.0954148522305

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .47926E-01   1.0000         .10000E-03   10000.    
     2 'alpha     '    4.0490       1.0000          .0000       5.0000    
     3 'Normalizat'    .45179       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1239       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=   4775.996     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      405 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .48084E-01    2.2644        .77678E-02    .39003E-02
   2  alpha         4.0456        2.5102        .50000        .39208E-04
   3  Normalizat    .45193        .29923E-01    .76951E-01    .39262E-04
   4  Prefactor     1.1238        .23155E-01    .36741E-01   -.69420E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0480844
  alpha      = 4.04562
  Normalizat = 0.451926
  Prefactor  = 1.12381
 **********
 **   18 **HESSE 
 **********

 FCN=   4775.996     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      436 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .48084E-01    13.580        .33027E-03   -1.5664    
   2  alpha         4.0456        2.9001        .48998E-02    .66651    
   3  Normalizat    .45193        .19042        .34079E-03   -1.1470    
   4  Prefactor     1.1238        .14124        .17163E-03   -.88709    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.57087e-09
Minuit parameter uncertainties:
  1  1.61485
  2  20.4239
  3  0.190697
  4  0.141282
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/811235': 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): 102
logL (Free Index) = 4775.99613995
delta logL = 0.095415785845

Extracting fit parameters...

4FGL J2323.5-0317
   Spectrum: LogParabola
373         norm:  4.808e-02  1.615e+00  1.000e-04  1.000e+04 ( 1.000e-11)
374        alpha:  4.046e+00  2.042e+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:  1.124e+00  1.413e-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:  4.519e-01  1.907e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/811235/cmap_HighResolution_490233601_490492801_4FGL_J2323.5-0317_daily_bin968.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.77e-05', job_status='DONE', photon_flux_upper_limit='6.76e-08', time_completed='2021-09-29 14:46:18.279418', job_id='811235', GAL2='1.12', fit_tolerance='1e-08', EG2='0.45', EG='0.48', time_epoch_completed='1632951978.28', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.11', dlogl='9.54e-02', ts2='0.21', photon_index_error='0.00', photon_index='2.16' WHERE bin_id='968' AND source_name='4FGL J2323.5-0317' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 14:46:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0050>
Subject: Job 811235: <4FGL_J2323.5-0317_daily_bin968> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2323.5-0317_daily_bin968 350.888 -3.29 490233601 490492801 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 :                                   580.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             287.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   629 sec.
    Turnaround time :                            632 sec.

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

