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


Performing analysis on: 4FGL_J2323.5-0317_daily_bin670
RA = 350.888, Dec = -3.29
tmin = 412992001, tmax = 413251201
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='810796', job_status='RUN', time_executed='2021-09-29 14:35:37.513751', time_epoch_executed='1632951337.51' WHERE source_name='4FGL J2323.5-0317' and cadence='daily' and bin_id='670'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/810796

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/810796/ft1_4FGL_J2323.5-0317_daily_bin670.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/810796/ft2_4FGL_J2323.5-0317_daily_bin670.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/810796/ft1_4FGL_J2323.5-0317_daily_bin670.fits outfile=/scratch/kocevski/810796/ft1_filteredMKT_4FGL_J2323.5-0317_daily_bin670.fits ra=350.888 dec=-3.29 rad=12.0 tmin=412992001.0 tmax=413251201.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.58
user 3.34
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/810796/ft2_4FGL_J2323.5-0317_daily_bin670.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/810796/ft1_filteredMKT_4FGL_J2323.5-0317_daily_bin670.fits evtable="EVENTS" outfile="/scratch/kocevski/810796/ft1_filtered_4FGL_J2323.5-0317_daily_bin670.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/810796/ft1_filtered_4FGL_J2323.5-0317_daily_bin670.fits" evtable="EVENTS" scfile=/scratch/kocevski/810796/ft2_4FGL_J2323.5-0317_daily_bin670.fits sctable="SC_DATA" outfile=/scratch/kocevski/810796/ltcube_412992001_413251201_4FGL_J2323.5-0317_daily_bin670.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/810796/ft2_4FGL_J2323.5-0317_daily_bin670.fits
.....................!
real 11.95
user 11.58
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/810796/ft1_filtered_4FGL_J2323.5-0317_daily_bin670.fits evtable="EVENTS" scfile=/scratch/kocevski/810796/ft2_4FGL_J2323.5-0317_daily_bin670.fits sctable="SC_DATA" expcube=/scratch/kocevski/810796/ltcube_412992001_413251201_4FGL_J2323.5-0317_daily_bin670.fits outfile=/scratch/kocevski/810796/expmap_412992001_413251201_4FGL_J2323.5-0317_daily_bin670.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/810796/ltcube_412992001_413251201_4FGL_J2323.5-0317_daily_bin670.fits
.....................!
real 192.18
user 185.22
sys 5.34

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/810796/ft1_filtered_4FGL_J2323.5-0317_daily_bin670.fits scfile=/scratch/kocevski/810796/ft2_4FGL_J2323.5-0317_daily_bin670.fits outfile=/scratch/kocevski/810796/cmap_412992001_413251201_4FGL_J2323.5-0317_daily_bin670.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.61
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/810796/ft1_filtered_4FGL_J2323.5-0317_daily_bin670.fits scfile=/scratch/kocevski/810796/ft2_4FGL_J2323.5-0317_daily_bin670.fits outfile=/scratch/kocevski/810796/cmap_HighResolution_412992001_413251201_4FGL_J2323.5-0317_daily_bin670.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.55
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/810796/ft1_filtered_4FGL_J2323.5-0317_daily_bin670.fits evtable="EVENTS" scfile=/scratch/kocevski/810796/ft2_4FGL_J2323.5-0317_daily_bin670.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/810796/Model_4FGL_J2323.5-0317_daily_bin670.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/810796/ft1_filtered_4FGL_J2323.5-0317_daily_bin670.fits.....................!
real 81.51
user 80.10
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    33.938       1.0000         .10000E-03   10000.    
     6 'Prefactor '    34.418       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10937E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    1.2123       1.0000         .10000E-03   10000.    
    11 'norm      '    .14636E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.1461       1.0000         .10000E-03   10000.    
    14 'Prefactor '    11.715       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    5.0934       1.0000         .10000E-03   10000.    
    18 'Prefactor '    21.033       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10859E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    66.938       1.0000         .10000E-03   10000.    
    21 'Prefactor '    19.209       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    1.8241       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0327       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .94014       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=   9026.001     FROM MIGRAD    STATUS=CONVERGED    552 CALLS     2897 TOTAL
                     EDM=   .23E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.4704       -.47982E-08** at limit **
   2  Prefactor     .10000E-03    10.796       -.36690E-07** at limit **
   3  Prefactor     .10000E-03    11.489        .53488E-07** at limit **
   4  Prefactor     .10000E-03    3.4164       -.13164E-07** at limit **
   5  norm          33.939        13.732       -.49514E-07    .52936E-04
   6  Prefactor     34.419        24.781       -.80906E-07    .14145E-04
   7  Prefactor     .10000E-03    17.391        .24792E-06** at limit **
   8  Prefactor     .10000E-03    7.3836       -.86000E-07** at limit **
   9  Prefactor     .10000E-03    1.4921       -.85861E-07** at limit **
  10  norm          1.2127        .95811        .83137E-07    .10989E-02
  11  norm          .10000E-03    2.2805       -.78193E-06** at limit **
  12  Prefactor     .10000E-03    5.0006        .91836E-07** at limit **
  13  Prefactor     6.1407        68.570       -.91833E-07    .83929E-05
  14  Prefactor     11.686        273.88        .18604E-06    .13472E-04
  15  Prefactor     .10000E-03    5.4872       -.42232E-06** at limit **
  16  Prefactor     .10000E-03    4.8634        .45380E-07** at limit **
  17  norm          5.0906        9.4328        .40187E-05    .13696E-03
  18  Prefactor     20.992        44.382       -.51827E-06   -.78228E-04
  19  Prefactor     .10000E-03    1.6549       -.12601E-05** at limit **
  20  Prefactor     66.947        33.062        .66126E-07    .17840E-03
  21  Prefactor     19.211        14.982       -.43819E-07    .29958E-04
  22  Prefactor     .10000E-03    6.2262        .11603E-06** at limit **
  23  Prefactor     1.8255        6.0922        .12729E-05   -.27119E-04
  24  Normalizat    1.0325        .16433        .86859E-06    .31639E-03
  25  Prefactor     .94030        .11501       -.35987E-06    .44003E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 33.939
  Prefactor  = 34.4189
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.21267
  norm       = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 6.14069
  Prefactor  = 11.6862
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.09063
  Prefactor  = 20.992
  Prefactor  = 0.0001
  Prefactor  = 66.9469
  Prefactor  = 19.2106
  Prefactor  = 0.0001
  Prefactor  = 1.82553
  Normalizat = 1.03245
  Prefactor  = 0.9403
 **********
 **   18 **HESSE 
 **********

 FCN=   9026.001     FROM HESSE     STATUS=OK           423 CALLS     3320 TOTAL
                     EDM=   .70E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.5022        .17281E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    10.798        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    11.502        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    3.4379        .17150E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          33.939        13.749        .68787E-04   -1.4542    
   6  Prefactor     34.419        24.788        .68306E-04   -1.4534    
   7  Prefactor     .10000E-03    18.152        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    7.3854        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    1.4932        .11331E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.2127        .93363        .75102E-04   -1.5488    
  11  norm          .10000E-03    4.6173        .27114E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    5.1057        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     6.1407        68.430        .16194E-03   -1.5212    
  14  Prefactor     11.686        268.57        .11704E-03   -1.5024    
  15  Prefactor     .10000E-03    5.5426        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    4.8771        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          5.0906        9.5971        .89077E-03   -1.5257    
  18  Prefactor     20.992        44.414        .87336E-04   -1.4791    
  19  Prefactor     .10000E-03    2.8984        .22843E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     66.947        33.166        .49056E-04   -1.4070    
  21  Prefactor     19.211        14.987        .91384E-04   -1.4831    
  22  Prefactor     .10000E-03    6.2598        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     1.8255        6.0797        .30912E-03   -1.5438    
  24  Normalizat    1.0325        .19248        .27546E-03   -.91951    
  25  Prefactor     .94030        .13494        .21062E-03   -.94747    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.9651e-10
Minuit parameter uncertainties:
  1  1.72706e-06
  2  1.19282e-05
  3  6.09702e-06
  4  6.41607e-06
  5  13.7505
  6  24.7956
  7  1.35918e-05
  8  5.60843e-06
  9  1.19999e-06
  10  0.93364
  11  0.000178643
  12  6.11604e-06
  13  41.0573
  14  112.62
  15  2.423e-05
  16  4.6004e-06
  17  9.59995
  18  44.4838
  19  3.4551e-05
  20  33.1756
  21  14.9895
  22  3.80184e-06
  23  6.08173
  24  0.192612
  25  0.134987
Done.

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

Extracting fit parameters...

4FGL J2323.5-0317
   Spectrum: LogParabola
373         norm:  1.213e+00  9.336e-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:  9.403e-01  1.350e-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.032e+00  1.926e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.37
Ra Dec: 350.888 -3.290
Photon Index (Fixed Index): 2.16 +/- 0.00
Photon Flux (Fixed Index): 4.69e-08 +/- 3.61e-08
Energy Flux (Fixed Index): 1.92e-05 +/- 1.48e-05

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

Saving results to:
/scratch/kocevski/810796/likelihoodResults_412992001_413251201_4FGL_J2323.5-0317_daily_bin670.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) = 9022.94993037
delta logL = 3.05130025458

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9022.94577291
delta logL = 3.05545772268

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .47806       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.7183       1.0000          .0000       5.0000    
     3 'Normalizat'    .91813       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99583       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=   9022.946     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      210 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .47850        2.4665        .58062E-02    .24315E-02
   2  alpha         3.7181        4.0613        .26253        .24717E-04
   3  Normalizat    .91817        .55179E-01    .65452E-01    .36758E-04
   4  Prefactor     .99577        .41166E-01    .46215E-01   -.17468E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.478498
  alpha      = 3.71806
  Normalizat = 0.918169
  Prefactor  = 0.995773
 **********
 **   18 **HESSE 
 **********

 FCN=   9022.946     FROM HESSE     STATUS=OK            31 CALLS      241 TOTAL
                     EDM=   .70E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .47850        .57042        .26037E-04   -1.5570    
   2  alpha         3.7181        .79512        .11402E-02    .50891    
   3  Normalizat    .91817        .18880        .28952E-03   -.95825    
   4  Prefactor     .99577        .13645        .20514E-03   -.92871    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.04034e-10
Minuit parameter uncertainties:
  1  0.570428
  2  0.813837
  3  0.188935
  4  0.136497
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/810796': 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) = 9022.94577175
delta logL = 3.05545887739

Extracting fit parameters...

4FGL J2323.5-0317
   Spectrum: LogParabola
373         norm:  4.785e-01  5.704e-01  1.000e-04  1.000e+04 ( 1.000e-11)
374        alpha:  3.718e+00  8.138e-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:  9.958e-01  1.365e-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.182e-01  1.889e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.95
Ra Dec: 350.888 -3.290
Photon Index (Free Index): 3.72 +/- 0.81
Photon Flux (Free Index): 1.29e-07 +/- 5.48e-08
Energy Flux (Free Index): 2.12e-05 +/- 9.38e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/810796/cmap_HighResolution_412992001_413251201_4FGL_J2323.5-0317_daily_bin670.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.75e-05', comment='SUCCESS', photon_flux='4.69e-08', energy_flux2='2.12e-05', photon_flux_error='3.61e-08', dlogl='3.06e+00', energy_flux='1.92e-05', photon_flux2='1.29e-07', job_status='DONE', time_completed='2021-09-29 14:49:37.514485', photon_index_error2='0.81', photon_index2='3.72', ts='2.37', fit_tolerance='1e-08', GAL='0.94', photon_index_error='0.00', photon_flux_upper_limit='1.16e-07', energy_flux_error2='9.38e-06', EG='1.03', time_epoch_completed='1632952177.51', return_code='0', job_id='810796', GAL2='1.00', EG2='0.92', return_code2='0', energy_flux_error='1.48e-05', photon_flux_error2='5.48e-08', ts2='8.95', photon_index='2.16' WHERE bin_id='670' AND source_name='4FGL J2323.5-0317' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 14:49:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0057>
Subject: Job 810796: <4FGL_J2323.5-0317_daily_bin670> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2323.5-0317_daily_bin670 350.888 -3.29 412992001 413251201 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 :                                   836.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             366.28 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   864 sec.
    Turnaround time :                            867 sec.

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

