/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 164 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_bin496
RA = 350.888, Dec = -3.29
tmin = 367891201, tmax = 368150401
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='809433', job_status='RUN', time_executed='2021-09-29 14:33:15.321126', time_epoch_executed='1632951195.32' WHERE source_name='4FGL J2323.5-0317' and cadence='daily' and bin_id='496'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/809433

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/809433/ft1_4FGL_J2323.5-0317_daily_bin496.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/809433/ft2_4FGL_J2323.5-0317_daily_bin496.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/809433/ft1_4FGL_J2323.5-0317_daily_bin496.fits outfile=/scratch/kocevski/809433/ft1_filteredMKT_4FGL_J2323.5-0317_daily_bin496.fits ra=350.888 dec=-3.29 rad=12.0 tmin=367891201.0 tmax=368150401.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.35
user 3.11
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/809433/ft2_4FGL_J2323.5-0317_daily_bin496.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/809433/ft1_filteredMKT_4FGL_J2323.5-0317_daily_bin496.fits evtable="EVENTS" outfile="/scratch/kocevski/809433/ft1_filtered_4FGL_J2323.5-0317_daily_bin496.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.52
user 0.31
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/809433/ft1_filtered_4FGL_J2323.5-0317_daily_bin496.fits" evtable="EVENTS" scfile=/scratch/kocevski/809433/ft2_4FGL_J2323.5-0317_daily_bin496.fits sctable="SC_DATA" outfile=/scratch/kocevski/809433/ltcube_367891201_368150401_4FGL_J2323.5-0317_daily_bin496.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/809433/ft2_4FGL_J2323.5-0317_daily_bin496.fits
.....................!
real 11.91
user 11.57
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/809433/ft1_filtered_4FGL_J2323.5-0317_daily_bin496.fits evtable="EVENTS" scfile=/scratch/kocevski/809433/ft2_4FGL_J2323.5-0317_daily_bin496.fits sctable="SC_DATA" expcube=/scratch/kocevski/809433/ltcube_367891201_368150401_4FGL_J2323.5-0317_daily_bin496.fits outfile=/scratch/kocevski/809433/expmap_367891201_368150401_4FGL_J2323.5-0317_daily_bin496.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/809433/ltcube_367891201_368150401_4FGL_J2323.5-0317_daily_bin496.fits
.....................!
real 189.85
user 185.04
sys 4.44

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/809433/ft1_filtered_4FGL_J2323.5-0317_daily_bin496.fits scfile=/scratch/kocevski/809433/ft2_4FGL_J2323.5-0317_daily_bin496.fits outfile=/scratch/kocevski/809433/cmap_367891201_368150401_4FGL_J2323.5-0317_daily_bin496.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/809433/ft1_filtered_4FGL_J2323.5-0317_daily_bin496.fits scfile=/scratch/kocevski/809433/ft2_4FGL_J2323.5-0317_daily_bin496.fits outfile=/scratch/kocevski/809433/cmap_HighResolution_367891201_368150401_4FGL_J2323.5-0317_daily_bin496.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/809433/ft1_filtered_4FGL_J2323.5-0317_daily_bin496.fits evtable="EVENTS" scfile=/scratch/kocevski/809433/ft2_4FGL_J2323.5-0317_daily_bin496.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/809433/Model_4FGL_J2323.5-0317_daily_bin496.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/809433/ft1_filtered_4FGL_J2323.5-0317_daily_bin496.fits.....................!
real 50.83
user 49.47
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    20.072       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    2.0091       1.0000         .10000E-03   10000.    
    11 'norm      '    .16193E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10426E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.2132       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10068E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    5.1296       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    14.503       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .42783       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.2804       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=   5058.448     FROM MIGRAD    STATUS=CONVERGED    567 CALLS     2437 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.1031       -.53685E-07** at limit **
   2  Prefactor     .10000E-03    11.568       -.59136E-05** at limit **
   3  Prefactor     .10000E-03    51.353        .28537E-04** at limit **
   4  Prefactor     .10000E-03    3.7919        .36509E-07** at limit **
   5  norm          .10000E-03    11.799        .30222E-05** at limit **
   6  Prefactor     .10000E-03    24.616        .12283E-04** at limit **
   7  Prefactor     20.071        18.273        .36733E-06   -.85229E-05
   8  Prefactor     .10000E-03    26.005        .75555E-05** at limit **
   9  Prefactor     .10000E-03    3.3954       -.59641E-08** at limit **
  10  norm          2.0091        1.1169        .13669E-07   -.42093E-03
  11  norm          .10019E-03    3.9907        .17882E-05** at limit **
  12  Prefactor     .10000E-03    3.5482        .33714E-07** at limit **
  13  Prefactor     .10000E-03    29.877       -.17303E-04** at limit **
  14  Prefactor     .10000E-03    208.15       -.22765E-04** at limit **
  15  Prefactor     1.1924        28.856       -.41046E-05   -.43414E-03
  16  Prefactor     .10000E-03    10.792        .17120E-05** at limit **
  17  norm          .10000E-03    14.570        .71364E-05** at limit **
  18  Prefactor     .10000E-03    26.271        .62788E-05** at limit **
  19  Prefactor     5.1312        4.7813       -.15970E-07    .22011E-04
  20  Prefactor     .10000E-03    45.872       -.16850E-04** at limit **
  21  Prefactor     .10000E-03    18.096       -.16798E-04** at limit **
  22  Prefactor     .10000E-03    28.903       -.13031E-04** at limit **
  23  Prefactor     14.502        9.5559        .35481E-07   -.39239E-04
  24  Normalizat    .42788        .21805        .27884E-06   -.18791E-04
  25  Prefactor     1.2804        .16431        .17090E-06    .13845E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 20.0707
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.00906
  norm       = 0.000100186
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.19236
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.13119
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.5021
  Normalizat = 0.427878
  Prefactor  = 1.28043
 **********
 **   18 **HESSE 
 **********

 FCN=   5058.448     FROM HESSE     STATUS=OK           419 CALLS     2856 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.1108        .12235E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    11.561        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    51.258        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    3.7935        .13526E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    11.901        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    24.634        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     20.071        18.283        .89401E-04   -1.4812    
   8  Prefactor     .10000E-03    26.015        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    3.4022        .12797E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          2.0091        1.1022        .52578E-04   -1.5424    
  11  norm          .10019E-03    21.791        .27370E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    3.5539        .13084E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    29.819        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    207.86        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1.1924        27.515        .41044E-03   -1.5490    
  16  Prefactor     .10000E-03    10.808        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    14.624        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    26.281        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     5.1312        4.5945        .12629E-03   -1.5255    
  20  Prefactor     .10000E-03    46.058        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    18.071        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    29.249        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     14.502        9.5495        .10517E-03   -1.4946    
  24  Normalizat    .42788        .23135        .38665E-03   -1.1588    
  25  Prefactor     1.2804        .17641        .17804E-03   -.83891    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.01677e-08
Minuit parameter uncertainties:
  1  1.72275e-07
  2  4.33531e-07
  3  9.98729e-05
  4  1.89115e-06
  5  1.84755e-05
  6  2.36635e-05
  7  18.2878
  8  2.34558e-05
  9  6.02585e-06
  10  1.10223
  11  0.00402973
  12  3.32304e-07
  13  2.00079e-05
  14  0.00026989
  15  11.4612
  16  1.423e-06
  17  7.01515e-05
  18  8.35448e-06
  19  4.59482
  20  0.000129579
  21  3.01913e-05
  22  0.000123961
  23  9.55047
  24  0.231872
  25  0.176491
Done.

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

Extracting fit parameters...

4FGL J2323.5-0317
   Spectrum: LogParabola
373         norm:  2.009e+00  1.102e+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

GAL_V02
   Spectrum: PowerLaw
520    Prefactor:  1.280e+00  1.765e-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:  4.279e-01  2.319e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.61
Ra Dec: 350.888 -3.290
Photon Index (Fixed Index): 2.16 +/- 0.00
Photon Flux (Fixed Index): 7.78e-08 +/- 4.26e-08
Energy Flux (Fixed Index): 3.19e-05 +/- 1.75e-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) = 5058.44217738
delta logL = 0.00546251934156

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5058.44183888
delta logL = 0.00580101962441

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.9861       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2075       1.0000          .0000       5.0000    
     3 'Normalizat'    .42537       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2815       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=   5058.442     FROM MIGRAD    STATUS=CONVERGED     43 CALLS      192 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.9861        3.5904        .73509E-03   -.17753E-02
   2  alpha         2.2075        1.2940        .26852       -.37938E-05
   3  Normalizat    .42537        .22211        .87514E-01    .20852E-04
   4  Prefactor     1.2815        .17244        .32940E-01    .62961E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.98612
  alpha      = 2.20753
  Normalizat = 0.425368
  Prefactor  = 1.28151
 **********
 **   18 **HESSE 
 **********

 FCN=   5058.442     FROM HESSE     STATUS=OK            31 CALLS      223 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.9861        1.1054        .29404E-04   -1.5426    
   2  alpha         2.2075        .44179        .11118E-01   -.11726    
   3  Normalizat    .42537        .22765        .38773E-03   -1.1601    
   4  Prefactor     1.2815        .17530        .17797E-03   -.83858    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.01326e-10
Minuit parameter uncertainties:
  1  1.10542
  2  0.444158
  3  0.228152
  4  0.175383
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/809433': 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) = 5058.44183888
delta logL = 0.00580102000004

Extracting fit parameters...

4FGL J2323.5-0317
   Spectrum: LogParabola
373         norm:  1.986e+00  1.105e+00  1.000e-04  1.000e+04 ( 1.000e-11)
374        alpha:  2.208e+00  4.442e-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:  1.282e+00  1.754e-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:  4.254e-01  2.282e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.62
Ra Dec: 350.888 -3.290
Photon Index (Free Index): 2.21 +/- 0.44
Photon Flux (Free Index): 8.04e-08 +/- 4.92e-08
Energy Flux (Free Index): 3.10e-05 +/- 1.85e-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/809433/cmap_HighResolution_367891201_368150401_4FGL_J2323.5-0317_daily_bin496.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.78e-08', energy_flux2='3.10e-05', photon_flux_error='4.26e-08', dlogl='5.80e-03', energy_flux='3.19e-05', photon_flux2='8.04e-08', job_status='DONE', time_completed='2021-09-29 14:41:44.749204', photon_index_error2='0.44', photon_index2='2.21', ts='6.61', fit_tolerance='1e-08', GAL='1.28', photon_index_error='0.00', energy_flux_error2='1.85e-05', EG='0.43', time_epoch_completed='1632951704.75', return_code='0', job_id='809433', GAL2='1.28', EG2='0.43', return_code2='0', energy_flux_error='1.75e-05', photon_flux_error2='4.92e-08', ts2='6.62', photon_index='2.16' WHERE bin_id='496' AND source_name='4FGL J2323.5-0317' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 14:41:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0031>
Subject: Job 809433: <4FGL_J2323.5-0317_daily_bin496> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2323.5-0317_daily_bin496 350.888 -3.29 367891201 368150401 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 :                                   506.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             300.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   682 sec.
    Turnaround time :                            684 sec.

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

