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


Performing analysis on: 4FGL_J2323.5-0317_daily_bin1544
RA = 350.888, Dec = -3.29
tmin = 639532801, tmax = 639792001
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='814219', job_status='RUN', time_executed='2021-09-29 14:47:47.611422', time_epoch_executed='1632952067.61' WHERE source_name='4FGL J2323.5-0317' and cadence='daily' and bin_id='1544'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/814219

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/814219/ft1_4FGL_J2323.5-0317_daily_bin1544.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/814219/ft2_4FGL_J2323.5-0317_daily_bin1544.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/814219/ft1_4FGL_J2323.5-0317_daily_bin1544.fits outfile=/scratch/kocevski/814219/ft1_filteredMKT_4FGL_J2323.5-0317_daily_bin1544.fits ra=350.888 dec=-3.29 rad=12.0 tmin=639532801.0 tmax=639792001.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.61
user 3.37
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/814219/ft1_filtered_4FGL_J2323.5-0317_daily_bin1544.fits" evtable="EVENTS" scfile=/scratch/kocevski/814219/ft2_4FGL_J2323.5-0317_daily_bin1544.fits sctable="SC_DATA" outfile=/scratch/kocevski/814219/ltcube_639532801_639792001_4FGL_J2323.5-0317_daily_bin1544.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/814219/ft2_4FGL_J2323.5-0317_daily_bin1544.fits
.....................!
real 12.06
user 11.67
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/814219/ft1_filtered_4FGL_J2323.5-0317_daily_bin1544.fits evtable="EVENTS" scfile=/scratch/kocevski/814219/ft2_4FGL_J2323.5-0317_daily_bin1544.fits sctable="SC_DATA" expcube=/scratch/kocevski/814219/ltcube_639532801_639792001_4FGL_J2323.5-0317_daily_bin1544.fits outfile=/scratch/kocevski/814219/expmap_639532801_639792001_4FGL_J2323.5-0317_daily_bin1544.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/814219/ltcube_639532801_639792001_4FGL_J2323.5-0317_daily_bin1544.fits
.....................!
real 191.09
user 185.18
sys 4.43

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/814219/ft1_filtered_4FGL_J2323.5-0317_daily_bin1544.fits scfile=/scratch/kocevski/814219/ft2_4FGL_J2323.5-0317_daily_bin1544.fits outfile=/scratch/kocevski/814219/cmap_639532801_639792001_4FGL_J2323.5-0317_daily_bin1544.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=350.888 yref=-3.29 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/814219/ft1_filtered_4FGL_J2323.5-0317_daily_bin1544.fits scfile=/scratch/kocevski/814219/ft2_4FGL_J2323.5-0317_daily_bin1544.fits outfile=/scratch/kocevski/814219/cmap_HighResolution_639532801_639792001_4FGL_J2323.5-0317_daily_bin1544.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/814219/ft1_filtered_4FGL_J2323.5-0317_daily_bin1544.fits evtable="EVENTS" scfile=/scratch/kocevski/814219/ft2_4FGL_J2323.5-0317_daily_bin1544.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/814219/Model_4FGL_J2323.5-0317_daily_bin1544.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/814219/ft1_filtered_4FGL_J2323.5-0317_daily_bin1544.fits.....................!
real 67.26
user 65.66
sys 1.25

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    18.950       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .18134E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .14714E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    13.881       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .19133E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    149.77       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .32449E-02   1.0000         .10000E-03   10000.    
    10 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    4.4186       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    104.17       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .76255E-02   1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.5757       1.0000         .10000E-03   10000.    
    16 'Prefactor '    25.634       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    14.894       1.0000         .10000E-03   10000.    
    19 'Prefactor '    6.8808       1.0000         .10000E-03   10000.    
    20 'Prefactor '    14.639       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.2703       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .67913       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=   7126.708     FROM MIGRAD    STATUS=CONVERGED    611 CALLS     2228 TOTAL
                     EDM=   .39E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     18.973        10.960        .15802E-06   -.19621E-04
   2  Prefactor     .10000E-03    24.484       -.12244E-06** at limit **
   3  Prefactor     .10000E-03    26.708        .18809E-06** at limit **
   4  Prefactor     .10000E-03    2.6732        .28354E-07** at limit **
   5  norm          13.870        10.743        .13617E-06   -.34330E-04
   6  Prefactor     .10000E-03    14.874       -.11794E-06** at limit **
   7  Prefactor     .10000E-03    5.0607        .13818E-06** at limit **
   8  Prefactor     150.34        61.507       -.23578E-06   -.41927E-03
   9  Prefactor     .10000E-03    17.352        .13025E-04** at limit **
  10  norm          .10000E-03    .34732        .47059E-07** at limit **
  11  norm          4.4081        5.5200        .18329E-06   -.60254E-03
  12  Prefactor     .10000E-03    9.7748        .51910E-07** at limit **
  13  Prefactor     103.74        49.593        .35642E-06    .12589E-03
  14  Prefactor     .10000E-03    50.646        .12724E-07** at limit **
  15  Prefactor     3.5789        5.4374        .27819E-06   -.38139E-04
  16  Prefactor     25.796        21.491        .79608E-07    .33550E-05
  17  norm          .10000E-03    6.2586        .16913E-06** at limit **
  18  Prefactor     14.698        73.176       -.12854E-06   -.81200E-04
  19  Prefactor     6.8835        3.8929        .23046E-07   -.16229E-03
  20  Prefactor     14.696        19.920        .25276E-06    .19425E-04
  21  Prefactor     .10000E-03    6.0258        .36907E-07** at limit **
  22  Prefactor     .10000E-03    9.1457       -.25538E-06** at limit **
  23  Prefactor     .10000E-03    7.1297       -.61862E-06** at limit **
  24  Normalizat    1.2700        .18611       -.24317E-05   -.13253E-03
  25  Prefactor     .67925        .12629        .18670E-05   -.32716E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 18.9733
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 13.8701
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 150.344
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 4.40814
  Prefactor  = 0.0001
  Prefactor  = 103.741
  Prefactor  = 0.0001
  Prefactor  = 3.57886
  Prefactor  = 25.7957
  norm       = 0.0001
  Prefactor  = 14.6978
  Prefactor  = 6.88355
  Prefactor  = 14.6959
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.26996
  Prefactor  = 0.679253
 **********
 **   18 **HESSE 
 **********

 FCN=   7126.708     FROM HESSE     STATUS=OK           419 CALLS     2647 TOTAL
                     EDM=   .95E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     18.973        10.974        .92007E-04   -1.4837    
   2  Prefactor     .10000E-03    24.512        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    26.814        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    2.6756        .13480E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          13.870        10.751        .10751E-03   -1.4963    
   6  Prefactor     .10000E-03    14.898        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    5.0656        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     150.34        62.164        .16466E-03   -1.3249    
   9  Prefactor     .10000E-03    17.632        .39483E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    2.1091        .95298E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          4.4081        5.4666        .19158E-03   -1.5288    
  12  Prefactor     .10000E-03    9.9594        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     103.74        49.672        .19698E-03   -1.3667    
  14  Prefactor     .10000E-03    50.648        .18559E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     3.5789        5.4163        .21372E-03   -1.5330    
  16  Prefactor     25.796        21.486        .79121E-04   -1.4692    
  17  norm          .10000E-03    6.2642        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     14.698        74.899        .10378E-03   -1.4941    
  19  Prefactor     6.8835        3.8889        .11900E-03   -1.5183    
  20  Prefactor     14.696        19.920        .10468E-03   -1.4941    
  21  Prefactor     .10000E-03    6.0338        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    9.1994        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    7.4453        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.2700        .21521        .24757E-03   -.84468    
  25  Prefactor     .67925        .14547        .23565E-03   -1.0435    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.52451e-10
Minuit parameter uncertainties:
  1  10.9755
  2  8.5065e-06
  3  1.39552e-05
  4  6.77924e-07
  5  10.752
  6  1.6149e-05
  7  6.18788e-07
  8  62.1911
  9  7.96009e-05
  10  4.02662e-05
  11  5.46717
  12  1.91364e-06
  13  49.6917
  14  3.51732e-05
  15  5.41705
  16  21.4927
  17  1.44839e-06
  18  66.4902
  19  3.88906
  20  19.9292
  21  1.42485e-06
  22  6.79051e-06
  23  2.17066e-05
  24  0.215359
  25  0.145547
Done.

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

Extracting fit parameters...

4FGL J2323.5-0317
   Spectrum: LogParabola
373         norm:  1.000e-04  4.027e-05  1.000e-04  1.000e+04 ( 1.000e-11)
374        alpha:  2.160e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
375         beta:  9.598e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
376           Eb:  6.247e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
520    Prefactor:  6.793e-01  1.455e-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.270e+00  2.154e-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.19e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.54e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/814219/likelihoodResults_639532801_639792001_4FGL_J2323.5-0317_daily_bin1544.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) = 7126.37759891
delta logL = 0.330228230601

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7126.37572757
delta logL = 0.332099568428

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .11939       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.7831       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2332       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .69234       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=   7126.376     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      417 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .11847        2.5844        .83320E-02    .72935E-02
   2  alpha         3.7854        4.2421        .50000        .87225E-04
   3  Normalizat    1.2330        .32780E-01    .56650E-01    .39600E-03
   4  Prefactor     .69249        .23726E-01    .42299E-01    .49479E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.11847
  alpha      = 3.78542
  Normalizat = 1.23303
  Prefactor  = 0.692487
 **********
 **   18 **HESSE 
 **********

 FCN=   7126.376     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      448 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .11847        10.517        .38101E-03   -1.5639    
   2  alpha         3.7854        2.8892        .30894E-01    .54004    
   3  Normalizat    1.2330        .16073        .25052E-03   -.85588    
   4  Prefactor     .69249        .11840        .23348E-03   -1.0382    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.59707e-09
Minuit parameter uncertainties:
  1  2.23191
  2  12.5481
  3  0.160792
  4  0.118446
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/814219': 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) = 7126.37571946
delta logL = 0.332107681073

Extracting fit parameters...

4FGL J2323.5-0317
   Spectrum: LogParabola
373         norm:  1.185e-01  2.232e+00  1.000e-04  1.000e+04 ( 1.000e-11)
374        alpha:  3.785e+00  1.255e+01  0.000e+00  5.000e+00 ( 1.000e+00)
375         beta:  9.598e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
376           Eb:  6.247e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
520    Prefactor:  6.925e-01  1.184e-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.233e+00  1.608e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/814219/cmap_HighResolution_639532801_639792001_4FGL_J2323.5-0317_daily_bin1544.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.54e-05', job_status='DONE', photon_flux_upper_limit='6.19e-08', time_completed='2021-09-29 15:00:11.719892', job_id='814219', GAL2='0.69', fit_tolerance='1e-08', EG2='1.23', EG='1.27', time_epoch_completed='1632952811.72', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.68', dlogl='3.32e-01', ts2='0.70', photon_index_error='0.00', photon_index='2.16' WHERE bin_id='1544' AND source_name='4FGL J2323.5-0317' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 15:00:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0241>
Subject: Job 814219: <4FGL_J2323.5-0317_daily_bin1544> in cluster <slac> Done

Job <4FGL_J2323.5-0317_daily_bin1544> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep 29 14:45:12 2021
Job was executed on host(s) <bullet0241>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 14:45:14 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:45:14 2021
Terminated at Wed Sep 29 15:00:12 2021
Results reported at Wed Sep 29 15:00:12 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2323.5-0317_daily_bin1544 350.888 -3.29 639532801 639792001 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 :                                   689.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             281.14 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   898 sec.
    Turnaround time :                            900 sec.

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

