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


Performing analysis on: 4FGL_J2323.5-0317_daily_bin542
RA = 350.888, Dec = -3.29
tmin = 379814401, tmax = 380073601
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='809501', job_status='RUN', time_executed='2021-09-29 14:32:08.672407', time_epoch_executed='1632951128.67' WHERE source_name='4FGL J2323.5-0317' and cadence='daily' and bin_id='542'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/809501

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/809501/ft1_4FGL_J2323.5-0317_daily_bin542.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/809501/ft2_4FGL_J2323.5-0317_daily_bin542.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/809501/ft1_4FGL_J2323.5-0317_daily_bin542.fits outfile=/scratch/kocevski/809501/ft1_filteredMKT_4FGL_J2323.5-0317_daily_bin542.fits ra=350.888 dec=-3.29 rad=12.0 tmin=379814401.0 tmax=380073601.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.51
user 3.29
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/809501/ft1_filtered_4FGL_J2323.5-0317_daily_bin542.fits" evtable="EVENTS" scfile=/scratch/kocevski/809501/ft2_4FGL_J2323.5-0317_daily_bin542.fits sctable="SC_DATA" outfile=/scratch/kocevski/809501/ltcube_379814401_380073601_4FGL_J2323.5-0317_daily_bin542.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/809501/ft2_4FGL_J2323.5-0317_daily_bin542.fits
.....................!
real 11.72
user 11.36
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/809501/ft1_filtered_4FGL_J2323.5-0317_daily_bin542.fits evtable="EVENTS" scfile=/scratch/kocevski/809501/ft2_4FGL_J2323.5-0317_daily_bin542.fits sctable="SC_DATA" expcube=/scratch/kocevski/809501/ltcube_379814401_380073601_4FGL_J2323.5-0317_daily_bin542.fits outfile=/scratch/kocevski/809501/expmap_379814401_380073601_4FGL_J2323.5-0317_daily_bin542.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/809501/ltcube_379814401_380073601_4FGL_J2323.5-0317_daily_bin542.fits
.....................!
real 190.80
user 185.82
sys 4.62

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/809501/ft1_filtered_4FGL_J2323.5-0317_daily_bin542.fits scfile=/scratch/kocevski/809501/ft2_4FGL_J2323.5-0317_daily_bin542.fits outfile=/scratch/kocevski/809501/cmap_379814401_380073601_4FGL_J2323.5-0317_daily_bin542.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.52
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/809501/ft1_filtered_4FGL_J2323.5-0317_daily_bin542.fits scfile=/scratch/kocevski/809501/ft2_4FGL_J2323.5-0317_daily_bin542.fits outfile=/scratch/kocevski/809501/cmap_HighResolution_379814401_380073601_4FGL_J2323.5-0317_daily_bin542.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/809501/ft1_filtered_4FGL_J2323.5-0317_daily_bin542.fits evtable="EVENTS" scfile=/scratch/kocevski/809501/ft2_4FGL_J2323.5-0317_daily_bin542.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/809501/Model_4FGL_J2323.5-0317_daily_bin542.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/809501/ft1_filtered_4FGL_J2323.5-0317_daily_bin542.fits.....................!
real 58.32
user 57.02
sys 1.13

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.0304       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    27.373       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    59.080       1.0000         .10000E-03   10000.    
     9 'Prefactor '    11.084       1.0000         .10000E-03   10000.    
    10 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .60536       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    85.880       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10214E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    33.481       1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    127.76       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    22.455       1.0000         .10000E-03   10000.    
    23 'Prefactor '    13.550       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .96335       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0721       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=   5810.423     FROM MIGRAD    STATUS=CONVERGED    572 CALLS     2913 TOTAL
                     EDM=   .18E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.0311        11.415        .32266E-06   -.41591E-05
   2  Prefactor     .10000E-03    29.612        .24760E-07** at limit **
   3  Prefactor     .10000E-03    8.7871        .32305E-07** at limit **
   4  Prefactor     .10000E-03    3.5737        .14823E-07** at limit **
   5  norm          27.377        18.349        .23041E-06   -.23173E-04
   6  Prefactor     .10000E-03    20.496       -.18828E-06** at limit **
   7  Prefactor     .10000E-03    37.408       -.11030E-05** at limit **
   8  Prefactor     59.204        98.210        .19219E-05   -.27099E-05
   9  Prefactor     11.072        17.457       -.11810E-05   -.23917E-03
  10  norm          .10000E-03    .43707       -.61425E-07** at limit **
  11  norm          .60562        9.2880        .49522E-05   -.45107E-06
  12  Prefactor     .10000E-03    6.1167       -.13859E-06** at limit **
  13  Prefactor     85.872        75.883        .18234E-06   -.85909E-05
  14  Prefactor     .10000E-03    179.93       -.72276E-07** at limit **
  15  Prefactor     .10000E-03    3.8183       -.25177E-07** at limit **
  16  Prefactor     33.471        37.470       -.50953E-07   -.12169E-05
  17  norm          .10000E-03    6.0509       -.14802E-07** at limit **
  18  Prefactor     .10000E-03    42.366        .16964E-06** at limit **
  19  Prefactor     .10000E-03    1.1255       -.11394E-07** at limit **
  20  Prefactor     127.77        61.654        .52034E-06    .10695E-04
  21  Prefactor     .10000E-03    30.772       -.10331E-06** at limit **
  22  Prefactor     22.458        17.182        .17204E-06   -.10961E-04
  23  Prefactor     13.552        9.9479        .21169E-06   -.17390E-04
  24  Normalizat    .96273        .25360       -.42022E-05    .40427E-04
  25  Prefactor     1.0725        .17249        .22227E-05   -.21733E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.03114
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 27.3774
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 59.2035
  Prefactor  = 11.0719
  norm       = 0.0001
  norm       = 0.605619
  Prefactor  = 0.0001
  Prefactor  = 85.872
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 33.471
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 127.773
  Prefactor  = 0.0001
  Prefactor  = 22.4581
  Prefactor  = 13.5524
  Normalizat = 0.962731
  Prefactor  = 1.0725
 **********
 **   18 **HESSE 
 **********

 FCN=   5810.423     FROM HESSE     STATUS=OK           419 CALLS     3332 TOTAL
                     EDM=   .46E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.0311        11.397        .15130E-03   -1.5178    
   2  Prefactor     .10000E-03    29.633        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    8.7892        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    3.5781        .14073E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          27.377        18.381        .76572E-04   -1.4661    
   6  Prefactor     .10000E-03    20.517        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    37.749        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     59.204        98.403        .52196E-04   -1.4168    
   9  Prefactor     11.072        17.224        .12034E-03   -1.5042    
  10  norm          .10000E-03    .69284        .96964E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .60562        9.7394        .41928E-03   -1.5552    
  12  Prefactor     .10000E-03    6.1292        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     85.872        75.859        .43351E-04   -1.3852    
  14  Prefactor     .10000E-03    180.09        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    3.8218        .14544E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     33.471        37.505        .69253E-04   -1.4550    
  17  norm          .10000E-03    6.0522        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    42.404        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    1.1272        .78962E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     127.77        61.733        .35617E-04   -1.3442    
  21  Prefactor     .10000E-03    30.957        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     22.458        17.186        .84529E-04   -1.4760    
  23  Prefactor     13.552        9.9492        .10881E-03   -1.4972    
  24  Normalizat    .96273        .27338        .31622E-03   -.94290    
  25  Prefactor     1.0725        .18769        .21853E-03   -.90350    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.59913e-10
Minuit parameter uncertainties:
  1  11.4002
  2  3.52423e-05
  3  1.14e-06
  4  3.54048e-07
  5  18.3851
  6  8.73415e-06
  7  2.20119e-05
  8  98.6747
  9  17.232
  10  1.06668e-06
  11  4.85786
  12  1.6921e-06
  13  75.9443
  14  2.49535e-05
  15  1.72068e-06
  16  37.5317
  17  3.22722e-07
  18  6.17224e-05
  19  5.47718e-07
  20  61.7636
  21  4.64652e-07
  22  17.19
  23  9.95046
  24  0.273777
  25  0.187804
Done.

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

Extracting fit parameters...

4FGL J2323.5-0317
   Spectrum: LogParabola
373         norm:  1.000e-04  1.067e-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.073e+00  1.878e-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.627e-01  2.738e-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: 7.97e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.27e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/809501/likelihoodResults_379814401_380073601_4FGL_J2323.5-0317_daily_bin542.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): 102
logL (Free Index) = 5809.56912243
delta logL = 0.854118833036

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5809.51987353
delta logL = 0.9033677345

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .53740E-01   1.0000         .10000E-03   10000.    
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    .84466       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1249       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=   5809.520     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      481 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .53710E-01    1.5412        .30959E-02   -.73826E-02
   2  alpha         5.0000        2.6280        .46268    ** at limit **
   3  Normalizat    .84436        .12020        .75712E-01   -.12079E-03
   4  Prefactor     1.1250        .79051E-01    .36710E-01   -.19682E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0537104
  alpha      = 5
  Normalizat = 0.844359
  Prefactor  = 1.12503
 **********
 **   18 **HESSE 
 **********

 FCN=   5809.520     FROM HESSE     STATUS=OK            35 CALLS      516 TOTAL
                     EDM=   .44E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .53710E-01    .54136E-01    .14083E-03   -1.5662    
   2  alpha         5.0000        3.2163        .50000        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .84436        .26905        .33510E-03   -.98444    
   4  Prefactor     1.1250        .19010        .21391E-03   -.88670    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.44986e-10
Minuit parameter uncertainties:
  1  0.0541362
  2  5.27565e-05
  3  0.269474
  4  0.190217
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/809501': 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) = 5809.51987037
delta logL = 0.903370888363

Extracting fit parameters...

4FGL J2323.5-0317
   Spectrum: LogParabola
373         norm:  5.371e-02  5.414e-02  1.000e-04  1.000e+04 ( 1.000e-11)
374        alpha:  5.000e+00  5.276e-05  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.125e+00  1.902e-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:  8.444e-01  2.695e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.99
Ra Dec: 350.888 -3.290
Photon Index (Free Index): 5.00 +/- 0.00
Photon Flux (Free Index): 1.01e-07 +/- 1.01e-07
Energy Flux (Free Index): 1.37e-05 +/- 1.37e-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/809501/cmap_HighResolution_379814401_380073601_4FGL_J2323.5-0317_daily_bin542.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.27e-05', comment='SUCCESS', energy_flux2='1.37e-05', dlogl='9.03e-01', photon_flux2='1.01e-07', job_status='DONE', time_completed='2021-09-29 14:43:07.949426', photon_index_error2='0.00', photon_index2='5.00', ts='-0.00', fit_tolerance='1e-08', GAL='1.07', photon_index_error='0.00', photon_flux_upper_limit='7.97e-08', energy_flux_error2='1.37e-05', EG='0.96', time_epoch_completed='1632951787.95', return_code='0', job_id='809501', GAL2='1.13', EG2='0.84', return_code2='0', photon_flux_error2='1.01e-07', ts2='1.99', photon_index='2.16' WHERE bin_id='542' AND source_name='4FGL J2323.5-0317' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 14:43:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0259>
Subject: Job 809501: <4FGL_J2323.5-0317_daily_bin542> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2323.5-0317_daily_bin542 350.888 -3.29 379814401 380073601 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 :                                   655.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             278.39 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   759 sec.
    Turnaround time :                            761 sec.

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

