/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 95 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 = 7472
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2323.5-0317_daily_bin380
RA = 350.888, Dec = -3.29
tmin = 337824001, tmax = 338083201
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='808430', job_status='RUN', time_executed='2021-09-29 14:27:26.838959', time_epoch_executed='1632950846.84' WHERE source_name='4FGL J2323.5-0317' and cadence='daily' and bin_id='380'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/808430

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/808430/ft1_4FGL_J2323.5-0317_daily_bin380.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/808430/ft2_4FGL_J2323.5-0317_daily_bin380.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/808430/ft1_4FGL_J2323.5-0317_daily_bin380.fits outfile=/scratch/kocevski/808430/ft1_filteredMKT_4FGL_J2323.5-0317_daily_bin380.fits ra=350.888 dec=-3.29 rad=12.0 tmin=337824001.0 tmax=338083201.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.45
user 3.25
sys 0.19

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/808430/ft1_filtered_4FGL_J2323.5-0317_daily_bin380.fits" evtable="EVENTS" scfile=/scratch/kocevski/808430/ft2_4FGL_J2323.5-0317_daily_bin380.fits sctable="SC_DATA" outfile=/scratch/kocevski/808430/ltcube_337824001_338083201_4FGL_J2323.5-0317_daily_bin380.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/808430/ft2_4FGL_J2323.5-0317_daily_bin380.fits
.....................!
real 12.25
user 11.90
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/808430/ft1_filtered_4FGL_J2323.5-0317_daily_bin380.fits evtable="EVENTS" scfile=/scratch/kocevski/808430/ft2_4FGL_J2323.5-0317_daily_bin380.fits sctable="SC_DATA" expcube=/scratch/kocevski/808430/ltcube_337824001_338083201_4FGL_J2323.5-0317_daily_bin380.fits outfile=/scratch/kocevski/808430/expmap_337824001_338083201_4FGL_J2323.5-0317_daily_bin380.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/808430/ltcube_337824001_338083201_4FGL_J2323.5-0317_daily_bin380.fits
.....................!
real 189.49
user 185.15
sys 4.01

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/808430/ft1_filtered_4FGL_J2323.5-0317_daily_bin380.fits scfile=/scratch/kocevski/808430/ft2_4FGL_J2323.5-0317_daily_bin380.fits outfile=/scratch/kocevski/808430/cmap_337824001_338083201_4FGL_J2323.5-0317_daily_bin380.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/808430/ft1_filtered_4FGL_J2323.5-0317_daily_bin380.fits scfile=/scratch/kocevski/808430/ft2_4FGL_J2323.5-0317_daily_bin380.fits outfile=/scratch/kocevski/808430/cmap_HighResolution_337824001_338083201_4FGL_J2323.5-0317_daily_bin380.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.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/808430/ft1_filtered_4FGL_J2323.5-0317_daily_bin380.fits evtable="EVENTS" scfile=/scratch/kocevski/808430/ft2_4FGL_J2323.5-0317_daily_bin380.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/808430/Model_4FGL_J2323.5-0317_daily_bin380.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/808430/ft1_filtered_4FGL_J2323.5-0317_daily_bin380.fits.....................!
real 60.20
user 58.91
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    18.379       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-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      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    108.00       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10017E-03   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.0755       1.0000         .10000E-03   10000.    
    11 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    18.631       1.0000         .10000E-03   10000.    
    17 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    12.874       1.0000         .10000E-03   10000.    
    21 'Prefactor '    11.033       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    9.7365       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0353       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .80369       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=   6109.970     FROM MIGRAD    STATUS=CONVERGED    567 CALLS     2850 TOTAL
                     EDM=   .59E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     18.379        9.7546       -.13646E-07    .22269E-04
   2  Prefactor     .10000E-03    39.627        .14034E-04** at limit **
   3  Prefactor     .10000E-03    9.4812        .40963E-05** at limit **
   4  Prefactor     .10000E-03    3.2498       -.31924E-07** at limit **
   5  norm          .10000E-03    5.9133        .80016E-06** at limit **
   6  Prefactor     108.00        52.311       -.42576E-06    .11311E-03
   7  Prefactor     .10000E-03    32.210       -.32273E-04** at limit **
   8  Prefactor     .10000E-03    13.096       -.65206E-05** at limit **
   9  Prefactor     .10000E-03    2.5119        .13022E-09** at limit **
  10  norm          2.0754        .98767       -.12228E-07    .61305E-04
  11  norm          .10000E-03    2.3912       -.59696E-09** at limit **
  12  Prefactor     .10000E-03    4.3518        .33779E-07** at limit **
  13  Prefactor     .10000E-03    16.949        .11670E-04** at limit **
  14  Prefactor     .10000E-03    110.20       -.17728E-04** at limit **
  15  Prefactor     .10000E-03    5.2540       -.38889E-06** at limit **
  16  Prefactor     18.629        27.747       -.49962E-06    .79407E-05
  17  norm          .10000E-03    7.7434       -.21898E-05** at limit **
  18  Prefactor     .10000E-03    40.745        .22400E-04** at limit **
  19  Prefactor     .10000E-03    3.4937       -.33212E-07** at limit **
  20  Prefactor     12.869        33.679       -.41610E-05    .56433E-05
  21  Prefactor     11.032        14.649        .23060E-06    .36839E-06
  22  Prefactor     .10000E-03    13.608       -.26162E-05** at limit **
  23  Prefactor     9.7362        7.6519       -.13920E-06   -.10405E-03
  24  Normalizat    1.0353        .18269        .51935E-06    .20241E-03
  25  Prefactor     .80368        .13278        .17776E-06    .24260E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 18.3791
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 108.002
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.07545
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 18.6288
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.8694
  Prefactor  = 11.0324
  Prefactor  = 0.0001
  Prefactor  = 9.7362
  Normalizat = 1.03531
  Prefactor  = 0.803684
 **********
 **   18 **HESSE 
 **********

 FCN=   6109.970     FROM HESSE     STATUS=OK           415 CALLS     3265 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     18.379        9.7540        .46712E-03   -1.4850    
   2  Prefactor     .10000E-03    39.747        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    9.4884        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    3.2546        .13762E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    5.9485        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     108.00        52.308        .38699E-04   -1.3626    
   7  Prefactor     .10000E-03    32.461        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    13.113        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    2.5193        .12097E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          2.0754        .98392        .51166E-04   -1.5420    
  11  norm          .10000E-03    2.4203        .11800E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    4.3624        .15922E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    16.978        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    110.28        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    5.2776        .17491E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     18.629        27.745        .92791E-04   -1.4844    
  17  norm          .10000E-03    7.7530        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    40.844        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    3.5907        .28489E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     12.869        33.691        .11164E-03   -1.4990    
  21  Prefactor     11.032        14.644        .12062E-03   -1.5044    
  22  Prefactor     .10000E-03    13.690        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     9.7362        7.6578        .12842E-03   -1.5084    
  24  Normalizat    1.0353        .21054        .25798E-03   -.91857    
  25  Prefactor     .80368        .15326        .21188E-03   -.99593    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.2026e-10
Minuit parameter uncertainties:
  1  9.75482
  2  3.40285e-05
  3  3.3176e-06
  4  1.34479e-06
  5  1.61296e-06
  6  52.3308
  7  0.000405458
  8  2.78798e-06
  9  1.00576e-06
  10  0.983929
  11  1.66978e-06
  12  2.13446e-06
  13  5.8777e-06
  14  7.90439e-06
  15  5.19905e-06
  16  27.7641
  17  2.5352e-06
  18  3.49002e-05
  19  4.25129e-06
  20  33.7404
  21  14.649
  22  6.51689e-08
  23  7.65857
  24  0.21071
  25  0.153344
Done.

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

Extracting fit parameters...

4FGL J2323.5-0317
   Spectrum: LogParabola
373         norm:  2.075e+00  9.839e-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:  8.037e-01  1.533e-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.035e+00  2.107e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 9.46
Ra Dec: 350.888 -3.290
Photon Index (Fixed Index): 2.16 +/- 0.00
Photon Flux (Fixed Index): 8.03e-08 +/- 3.81e-08
Energy Flux (Fixed Index): 3.29e-05 +/- 1.56e-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) = 6109.2212126
delta logL = 0.748563822141

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6109.19071102
delta logL = 0.77906540708

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.7670       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.5682       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0764       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .78753       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=   6109.191     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      208 TOTAL
                     EDM=   .43E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.7668        .91354        .78774E-02    .10400E-03
   2  alpha         1.5681        .33540        .26632       -.45399E-04
   3  Normalizat    1.0764        .17646        .57390E-01    .94019E-05
   4  Prefactor     .78753        .12961        .43555E-01    .11414E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.76683
  alpha      = 1.56805
  Normalizat = 1.07637
  Prefactor  = 0.787527
 **********
 **   18 **HESSE 
 **********

 FCN=   6109.191     FROM HESSE     STATUS=OK            33 CALLS      241 TOTAL
                     EDM=   .20E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.7668        1.1342        .51445E-04   -1.5442    
   2  alpha         1.5681        .44870        .10919E-01   -.38200    
   3  Normalizat    1.0764        .20799        .25379E-03   -.90514    
   4  Prefactor     .78753        .15260        .21387E-03   -1.0019    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.04218e-12
Minuit parameter uncertainties:
  1  1.13424
  2  0.451542
  3  0.208149
  4  0.152683
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/808430': 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) = 6109.19071098
delta logL = 0.77906544616

Extracting fit parameters...

4FGL J2323.5-0317
   Spectrum: LogParabola
373         norm:  1.767e+00  1.134e+00  1.000e-04  1.000e+04 ( 1.000e-11)
374        alpha:  1.568e+00  4.515e-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.875e-01  1.527e-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.076e+00  2.081e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 11.01
Ra Dec: 350.888 -3.290
Photon Index (Free Index): 1.57 +/- 0.45
Photon Flux (Free Index): 4.54e-08 +/- 3.43e-08
Energy Flux (Free Index): 5.49e-05 +/- 3.93e-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/808430/cmap_HighResolution_337824001_338083201_4FGL_J2323.5-0317_daily_bin380.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.03e-08', energy_flux2='5.49e-05', photon_flux_error='3.81e-08', dlogl='7.79e-01', energy_flux='3.29e-05', photon_flux2='4.54e-08', job_status='DONE', time_completed='2021-09-29 14:37:30.193322', photon_index_error2='0.45', photon_index2='1.57', ts='9.46', fit_tolerance='1e-08', GAL='0.80', photon_index_error='0.00', energy_flux_error2='3.93e-05', EG='1.04', time_epoch_completed='1632951450.19', return_code='0', job_id='808430', GAL2='0.79', EG2='1.08', return_code2='0', energy_flux_error='1.56e-05', photon_flux_error2='3.43e-08', ts2='11.01', photon_index='2.16' WHERE bin_id='380' AND source_name='4FGL J2323.5-0317' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 14:37:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0103>
Subject: Job 808430: <4FGL_J2323.5-0317_daily_bin380> in cluster <slac> Done

Job <4FGL_J2323.5-0317_daily_bin380> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 14:25:39 2021
Job was executed on host(s) <bullet0103>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 14:25:42 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:25:42 2021
Terminated at Wed Sep 29 14:37:31 2021
Results reported at Wed Sep 29 14:37:31 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2323.5-0317_daily_bin380 350.888 -3.29 337824001 338083201 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 :                                   584.15 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             284.87 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   708 sec.
    Turnaround time :                            712 sec.

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

