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


Performing analysis on: 4FGL_J2323.5-0317_daily_bin551
RA = 350.888, Dec = -3.29
tmin = 382147201, tmax = 382406401
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='809514', job_status='RUN', time_executed='2021-09-29 14:33:16.579732', time_epoch_executed='1632951196.58' WHERE source_name='4FGL J2323.5-0317' and cadence='daily' and bin_id='551'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/809514

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/809514/ft1_4FGL_J2323.5-0317_daily_bin551.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/809514/ft2_4FGL_J2323.5-0317_daily_bin551.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/809514/ft1_4FGL_J2323.5-0317_daily_bin551.fits outfile=/scratch/kocevski/809514/ft1_filteredMKT_4FGL_J2323.5-0317_daily_bin551.fits ra=350.888 dec=-3.29 rad=12.0 tmin=382147201.0 tmax=382406401.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.39
user 3.18
sys 0.20

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/809514/ft1_filtered_4FGL_J2323.5-0317_daily_bin551.fits" evtable="EVENTS" scfile=/scratch/kocevski/809514/ft2_4FGL_J2323.5-0317_daily_bin551.fits sctable="SC_DATA" outfile=/scratch/kocevski/809514/ltcube_382147201_382406401_4FGL_J2323.5-0317_daily_bin551.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/809514/ft2_4FGL_J2323.5-0317_daily_bin551.fits
.....................!
real 11.75
user 11.39
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/809514/ft1_filtered_4FGL_J2323.5-0317_daily_bin551.fits evtable="EVENTS" scfile=/scratch/kocevski/809514/ft2_4FGL_J2323.5-0317_daily_bin551.fits sctable="SC_DATA" expcube=/scratch/kocevski/809514/ltcube_382147201_382406401_4FGL_J2323.5-0317_daily_bin551.fits outfile=/scratch/kocevski/809514/expmap_382147201_382406401_4FGL_J2323.5-0317_daily_bin551.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/809514/ltcube_382147201_382406401_4FGL_J2323.5-0317_daily_bin551.fits
.....................!
real 193.39
user 187.64
sys 5.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/809514/ft1_filtered_4FGL_J2323.5-0317_daily_bin551.fits scfile=/scratch/kocevski/809514/ft2_4FGL_J2323.5-0317_daily_bin551.fits outfile=/scratch/kocevski/809514/cmap_382147201_382406401_4FGL_J2323.5-0317_daily_bin551.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=350.888 yref=-3.29 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.53
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/809514/ft1_filtered_4FGL_J2323.5-0317_daily_bin551.fits scfile=/scratch/kocevski/809514/ft2_4FGL_J2323.5-0317_daily_bin551.fits outfile=/scratch/kocevski/809514/cmap_HighResolution_382147201_382406401_4FGL_J2323.5-0317_daily_bin551.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.53
user 0.38
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/809514/ft1_filtered_4FGL_J2323.5-0317_daily_bin551.fits evtable="EVENTS" scfile=/scratch/kocevski/809514/ft2_4FGL_J2323.5-0317_daily_bin551.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/809514/Model_4FGL_J2323.5-0317_daily_bin551.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/809514/ft1_filtered_4FGL_J2323.5-0317_daily_bin551.fits.....................!
real 63.22
user 61.86
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.9705       1.0000         .10000E-03   10000.    
     5 'norm      '    23.878       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-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.9076       1.0000         .10000E-03   10000.    
    11 'norm      '    .16115E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    18.998       1.0000         .10000E-03   10000.    
    13 'Prefactor '    72.215       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    7.5011       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    47.844       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    3.5843       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.4669       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .75984       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=   6344.808     FROM MIGRAD    STATUS=CONVERGED    584 CALLS     2890 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.4231        .13825E-06** at limit **
   2  Prefactor     .10000E-03    16.909       -.25133E-06** at limit **
   3  Prefactor     .10000E-03    13.495        .21760E-05** at limit **
   4  Prefactor     2.9707        6.1185        .17002E-05   -.14638E-02
   5  norm          23.879        21.138        .21966E-06   -.67772E-04
   6  Prefactor     .10001E-03    63.712        .21805E-04** at limit **
   7  Prefactor     .10000E-03    48.346       -.11103E-04** at limit **
   8  Prefactor     .10000E-03    14.747       -.20267E-05** at limit **
   9  Prefactor     .10000E-03    3.4047        .46505E-07** at limit **
  10  norm          1.9074        1.0043       -.17434E-08    .79300E-05
  11  norm          .10000E-03    3.1377        .11640E-06** at limit **
  12  Prefactor     18.997        10.482        .46044E-07    .17745E-05
  13  Prefactor     72.217        70.735        .13757E-05    .38556E-04
  14  Prefactor     .10000E-03    116.39       -.11290E-04** at limit **
  15  Prefactor     .10000E-03    4.7231       -.93665E-07** at limit **
  16  Prefactor     .10000E-03    7.4608       -.11123E-06** at limit **
  17  norm          7.5032        14.900        .38505E-06   -.19997E-03
  18  Prefactor     .10000E-03    31.334        .31962E-05** at limit **
  19  Prefactor     .10000E-03    4.5176       -.10313E-06** at limit **
  20  Prefactor     47.846        42.182        .73647E-06    .37686E-04
  21  Prefactor     .10000E-03    51.699       -.45509E-05** at limit **
  22  Prefactor     3.5845        6.6801        .70322E-06   -.10383E-02
  23  Prefactor     .10000E-03    10.854       -.53139E-06** at limit **
  24  Normalizat    1.4668        .20938       -.27934E-06    .44852E-04
  25  Prefactor     .75988        .14734       -.17436E-06    .33481E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.97065
  norm       = 23.8794
  Prefactor  = 0.000100012
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.90743
  norm       = 0.0001
  Prefactor  = 18.9969
  Prefactor  = 72.2172
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.5032
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 47.8456
  Prefactor  = 0.0001
  Prefactor  = 3.58454
  Prefactor  = 0.0001
  Normalizat = 1.46684
  Prefactor  = 0.759875
 **********
 **   18 **HESSE 
 **********

 FCN=   6344.808     FROM HESSE     STATUS=OK           419 CALLS     3309 TOTAL
                     EDM=   .77E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.4344        .14392E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    16.922        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    13.525        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.9707        8.8410        .11779E-02   -1.5363    
   5  norm          23.879        21.259        .40987E-03   -1.4730    
   6  Prefactor     .10001E-03    65.071        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    49.136        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    14.766        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    3.4141        .14349E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.9074        .99924        .55490E-04   -1.5432    
  11  norm          .10000E-03    8.9662        .27343E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     18.997        10.483        .91891E-04   -1.4836    
  13  Prefactor     72.217        70.798        .47242E-04   -1.4006    
  14  Prefactor     .10000E-03    116.81        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    4.7304        .16894E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    7.4641        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          7.5032        14.948        .73216E-03   -1.5160    
  18  Prefactor     .10000E-03    31.386        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    4.7005        .32922E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     47.846        42.254        .57971E-04   -1.4323    
  21  Prefactor     .10000E-03    52.447        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     3.5845        7.2369        .10672E-02   -1.5329    
  23  Prefactor     .10000E-03    11.309        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.4668        .24669        .25837E-03   -.78715    
  25  Prefactor     .75988        .17303        .24634E-03   -1.0122    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.72461e-09
Minuit parameter uncertainties:
  1  3.26456e-06
  2  1.02075e-05
  3  8.51891e-05
  4  8.84488
  5  21.2655
  6  0.0017979
  7  0.000764127
  8  8.18226e-05
  9  1.15463e-06
  10  0.999253
  11  3.77237e-05
  12  10.4836
  13  70.8804
  14  0.00129752
  15  4.03506e-06
  16  3.66002e-06
  17  14.9553
  18  0.000191898
  19  3.45728e-06
  20  42.2807
  21  0.000320606
  22  7.23862
  23  6.33415e-06
  24  0.24689
  25  0.173152
Done.

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

Extracting fit parameters...

4FGL J2323.5-0317
   Spectrum: LogParabola
373         norm:  1.907e+00  9.993e-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:  7.599e-01  1.732e-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.467e+00  2.469e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.07
Ra Dec: 350.888 -3.290
Photon Index (Fixed Index): 2.16 +/- 0.00
Photon Flux (Fixed Index): 7.38e-08 +/- 3.87e-08
Energy Flux (Fixed Index): 3.02e-05 +/- 1.58e-05

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) = 6344.80740755
delta logL = 0.000278855703982

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6344.80739151
delta logL = 0.00029489967892

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.9103       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1469       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4678       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .75940       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=   6344.807     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      199 TOTAL
                     EDM=   .15E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.9112        24.963        .75195E-02    .18646E-03
   2  alpha         2.1475        2.9737        .36042        .74305E-05
   3  Normalizat    1.4678        .16798        .58413E-01    .26231E-05
   4  Prefactor     .75943        .11507        .43187E-01    .16794E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.91117
  alpha      = 2.14745
  Normalizat = 1.46776
  Prefactor  = 0.759425
 **********
 **   18 **HESSE 
 **********

 FCN=   6344.807     FROM HESSE     STATUS=OK            33 CALLS      232 TOTAL
                     EDM=   .11E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.9112        1.0153        .55606E-04   -1.5431    
   2  alpha         2.1475        .52083        .13601E-01   -.14149    
   3  Normalizat    1.4678        .24338        .25831E-03   -.78688    
   4  Prefactor     .75943        .17292        .24640E-03   -1.0124    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.10989e-13
Minuit parameter uncertainties:
  1  1.01528
  2  0.524751
  3  0.243574
  4  0.17304
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/809514': 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) = 6344.80739054
delta logL = 0.000295866438137

Extracting fit parameters...

4FGL J2323.5-0317
   Spectrum: LogParabola
373         norm:  1.911e+00  1.015e+00  1.000e-04  1.000e+04 ( 1.000e-11)
374        alpha:  2.147e+00  5.248e-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:  7.594e-01  1.730e-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.468e+00  2.436e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.06
Ra Dec: 350.888 -3.290
Photon Index (Free Index): 2.15 +/- 0.52
Photon Flux (Free Index): 7.31e-08 +/- 4.80e-08
Energy Flux (Free Index): 3.04e-05 +/- 1.83e-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/809514/cmap_HighResolution_382147201_382406401_4FGL_J2323.5-0317_daily_bin551.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.38e-08', energy_flux2='3.04e-05', photon_flux_error='3.87e-08', dlogl='2.96e-04', energy_flux='3.02e-05', photon_flux2='7.31e-08', job_status='DONE', time_completed='2021-09-29 14:43:16.947864', photon_index_error2='0.52', photon_index2='2.15', ts='8.07', fit_tolerance='1e-08', GAL='0.76', photon_index_error='0.00', energy_flux_error2='1.83e-05', EG='1.47', time_epoch_completed='1632951796.95', return_code='0', job_id='809514', GAL2='0.76', EG2='1.47', return_code2='0', energy_flux_error='1.58e-05', photon_flux_error2='4.80e-08', ts2='8.06', photon_index='2.16' WHERE bin_id='551' AND source_name='4FGL J2323.5-0317' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 14:43:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0284>
Subject: Job 809514: <4FGL_J2323.5-0317_daily_bin551> in cluster <slac> Done

Job <4FGL_J2323.5-0317_daily_bin551> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Wed Sep 29 14:30:28 2021
Job was executed on host(s) <bullet0284>, 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:17 2021
Results reported at Wed Sep 29 14:43:17 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2323.5-0317_daily_bin551 350.888 -3.29 382147201 382406401 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 :                                   597.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             248.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   768 sec.
    Turnaround time :                            769 sec.

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

