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


Performing analysis on: 4FGL_J2323.5-0317_daily_bin920
RA = 350.888, Dec = -3.29
tmin = 477792001, tmax = 478051201
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='811166', job_status='RUN', time_executed='2021-09-29 14:37:50.236031', time_epoch_executed='1632951470.24' WHERE source_name='4FGL J2323.5-0317' and cadence='daily' and bin_id='920'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/811166

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/811166/ft1_4FGL_J2323.5-0317_daily_bin920.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/811166/ft2_4FGL_J2323.5-0317_daily_bin920.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/811166/ft1_4FGL_J2323.5-0317_daily_bin920.fits outfile=/scratch/kocevski/811166/ft1_filteredMKT_4FGL_J2323.5-0317_daily_bin920.fits ra=350.888 dec=-3.29 rad=12.0 tmin=477792001.0 tmax=478051201.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.72
user 3.41
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/811166/ft1_filtered_4FGL_J2323.5-0317_daily_bin920.fits" evtable="EVENTS" scfile=/scratch/kocevski/811166/ft2_4FGL_J2323.5-0317_daily_bin920.fits sctable="SC_DATA" outfile=/scratch/kocevski/811166/ltcube_477792001_478051201_4FGL_J2323.5-0317_daily_bin920.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/811166/ft2_4FGL_J2323.5-0317_daily_bin920.fits
.....................!
real 12.16
user 11.72
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/811166/ft1_filtered_4FGL_J2323.5-0317_daily_bin920.fits evtable="EVENTS" scfile=/scratch/kocevski/811166/ft2_4FGL_J2323.5-0317_daily_bin920.fits sctable="SC_DATA" expcube=/scratch/kocevski/811166/ltcube_477792001_478051201_4FGL_J2323.5-0317_daily_bin920.fits outfile=/scratch/kocevski/811166/expmap_477792001_478051201_4FGL_J2323.5-0317_daily_bin920.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/811166/ltcube_477792001_478051201_4FGL_J2323.5-0317_daily_bin920.fits
.....................!
real 190.81
user 185.31
sys 4.15

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/811166/ft1_filtered_4FGL_J2323.5-0317_daily_bin920.fits scfile=/scratch/kocevski/811166/ft2_4FGL_J2323.5-0317_daily_bin920.fits outfile=/scratch/kocevski/811166/cmap_477792001_478051201_4FGL_J2323.5-0317_daily_bin920.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/811166/ft1_filtered_4FGL_J2323.5-0317_daily_bin920.fits scfile=/scratch/kocevski/811166/ft2_4FGL_J2323.5-0317_daily_bin920.fits outfile=/scratch/kocevski/811166/cmap_HighResolution_477792001_478051201_4FGL_J2323.5-0317_daily_bin920.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.57
user 0.37
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/811166/ft1_filtered_4FGL_J2323.5-0317_daily_bin920.fits evtable="EVENTS" scfile=/scratch/kocevski/811166/ft2_4FGL_J2323.5-0317_daily_bin920.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/811166/Model_4FGL_J2323.5-0317_daily_bin920.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/811166/ft1_filtered_4FGL_J2323.5-0317_daily_bin920.fits.....................!
real 53.36
user 51.66
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.6580       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    53.680       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.8714       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10941E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    10.615       1.0000         .10000E-03   10000.    
    10 'norm      '    .12927E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10023E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10795E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .84233E-02   1.0000         .10000E-03   10000.    
    15 'Prefactor '    15.672       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10232E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10645E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.6617       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10192E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    26.962       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0300       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .93590       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5085.738     FROM MIGRAD    STATUS=CONVERGED    606 CALLS     2898 TOTAL
                     EDM=   .36E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.6573        8.0956         .0000       -.13616E-03
   2  Prefactor     .10000E-03    32.652         .0000    ** at limit **
   3  Prefactor     53.662        55.839         .0000       -.10123E-02
   4  Prefactor     .10000E-03    13.699         .0000    ** at limit **
   5  norm          .10000E-03    8.2126         .0000    ** at limit **
   6  Prefactor     6.8677        35.802         .0000       -.21445E-03
   7  Prefactor     .10009E-03    11.618         .0000    ** at limit **
   8  Prefactor     .10000E-03    75.887         .0000    ** at limit **
   9  Prefactor     10.615        10.432         .0000       -.16538E-03
  10  norm          .10000E-03    .78486         .0000    ** at limit **
  11  norm          .10000E-03    3.0466         .0000    ** at limit **
  12  Prefactor     .10000E-03    8.4289         .0000    ** at limit **
  13  Prefactor     .10009E-03    116.68         .0000    ** at limit **
  14  Prefactor     .10068E-03    1014.0         .0000    ** at limit **
  15  Prefactor     15.716        26.867         .0000        .18754E-02
  16  Prefactor     .10003E-03    11.447         .0000    ** at limit **
  17  norm          .10001E-03    12.205         .0000    ** at limit **
  18  Prefactor     .10000E-03    26.059         .0000    ** at limit **
  19  Prefactor     2.6399        10.128         .0000        .15020E-01
  20  Prefactor     .10000E-03    8.6681         .0000    ** at limit **
  21  Prefactor     .10000E-03    19.201         .0000    ** at limit **
  22  Prefactor     .10000E-03    8.4851         .0000    ** at limit **
  23  Prefactor     26.961        11.510         .0000        .16509E-03
  24  Normalizat    1.0301        .21973         .0000       -.50928E-04
  25  Prefactor     .93586        .14945         .0000       -.76835E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.65725
  Prefactor  = 0.0001
  Prefactor  = 53.6616
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 6.86772
  Prefactor  = 0.000100086
  Prefactor  = 0.0001
  Prefactor  = 10.6145
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 0.000100085
  Prefactor  = 0.000100685
  Prefactor  = 15.7164
  Prefactor  = 0.000100034
  norm       = 0.000100012
  Prefactor  = 0.0001
  Prefactor  = 2.63994
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 26.9611
  Normalizat = 1.03015
  Prefactor  = 0.935856
 **********
 **   18 **HESSE 
 **********

 FCN=   5085.738     FROM HESSE     STATUS=OK           415 CALLS     3313 TOTAL
                     EDM=   .35E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.6573        8.0881        .16888E-03   -1.5232    
   2  Prefactor     .10000E-03    32.672        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     53.662        56.134        .54745E-04   -1.4242    
   4  Prefactor     .10000E-03    13.991        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    8.2548        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     6.8677        35.791        .15306E-03   -1.5184    
   7  Prefactor     .10009E-03    11.654        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    76.011        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     10.615        10.432        .12298E-03   -1.5056    
  10  norm          .10000E-03    1.3990        .11842E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    3.0533        .12145E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    8.4791        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10009E-03    117.51        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10068E-03    1015.9        .18387E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     15.716        24.486        .10117E-03   -1.4915    
  16  Prefactor     .10003E-03    11.466        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10001E-03    12.207        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    26.067        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     2.6399        9.3191        .12038E-02   -1.5383    
  20  Prefactor     .10000E-03    8.6713        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    19.375        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    8.5005        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     26.961        11.536        .77151E-04   -1.4669    
  24  Normalizat    1.0301        .26195        .27813E-03   -.92027    
  25  Prefactor     .93586        .17772        .20850E-03   -.94899    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.54392e-08
Minuit parameter uncertainties:
  1  8.08969
  2  0.00016719
  3  56.1895
  4  0.000204436
  5  4.6635e-06
  6  31.3857
  7  0.00200373
  8  3.80304e-05
  9  10.4336
  10  4.66448e-06
  11  9.58395e-06
  12  0.000354255
  13  0.00635162
  14  0.0536887
  15  24.5014
  16  0.00125208
  17  0.000775904
  18  0.000126403
  19  9.32426
  20  1.05732e-05
  21  4.75234e-05
  22  0.000338236
  23  11.5372
  24  0.262276
  25  0.177828
Done.

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

Extracting fit parameters...

4FGL J2323.5-0317
   Spectrum: LogParabola
373         norm:  1.000e-04  4.664e-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:  9.359e-01  1.778e-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.030e+00  2.623e-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: 9.47e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.88e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/811166/likelihoodResults_477792001_478051201_4FGL_J2323.5-0317_daily_bin920.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) = 5085.56215405
delta logL = 0.175763238535

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5085.53464189
delta logL = 0.203275391496

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .19527       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.6204       1.0000          .0000       5.0000    
     3 'Normalizat'    .98503       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95128       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=   5085.535     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      254 TOTAL
                     EDM=   .82E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .19602        5.4460        .99561E-02    .31085E-02
   2  alpha         3.6204        4.0905        .48215        .52774E-04
   3  Normalizat    .98504        .39164E-01    .45979E-01   -.61326E-04
   4  Prefactor     .95117        .28403E-01    .45655E-01    .19979E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.19602
  alpha      = 3.62039
  Normalizat = 0.985037
  Prefactor  = 0.95117
 **********
 **   18 **HESSE 
 **********

 FCN=   5085.535     FROM HESSE     STATUS=OK            33 CALLS      287 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .19602        1.1130        .47535E-04   -1.5619    
   2  alpha         3.6204        4.0236        .26867E-01    .46470    
   3  Normalizat    .98504        .25084        .28330E-03   -.93533    
   4  Prefactor     .95117        .17682        .20690E-03   -.94375    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.82017e-10
Minuit parameter uncertainties:
  1  0.933971
  2  3.00523
  3  0.251143
  4  0.176922
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/811166': 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) = 5085.53463869
delta logL = 0.203278592523

Extracting fit parameters...

4FGL J2323.5-0317
   Spectrum: LogParabola
373         norm:  1.960e-01  9.340e-01  1.000e-04  1.000e+04 ( 1.000e-11)
374        alpha:  3.620e+00  3.005e+00  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.512e-01  1.769e-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.850e-01  2.511e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

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

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.88e-05', job_status='DONE', photon_flux_upper_limit='9.47e-08', time_completed='2021-09-29 14:48:09.960050', job_id='811166', GAL2='0.95', fit_tolerance='1e-08', EG2='0.99', EG='1.03', time_epoch_completed='1632952089.96', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.94', dlogl='2.03e-01', ts2='0.43', photon_index_error='0.00', photon_index='2.16' WHERE bin_id='920' AND source_name='4FGL J2323.5-0317' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 14:48:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0269>
Subject: Job 811166: <4FGL_J2323.5-0317_daily_bin920> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2323.5-0317_daily_bin920 350.888 -3.29 477792001 478051201 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 :                                   601.22 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             283.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   747 sec.
    Turnaround time :                            749 sec.

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

