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


Performing analysis on: 4FGL_J2323.5-0317_daily_bin587
RA = 350.888, Dec = -3.29
tmin = 391478401, tmax = 391737601
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='809572', job_status='RUN', time_executed='2021-09-29 14:31:26.136741', time_epoch_executed='1632951086.14' WHERE source_name='4FGL J2323.5-0317' and cadence='daily' and bin_id='587'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/809572

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/809572/ft1_4FGL_J2323.5-0317_daily_bin587.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/809572/ft2_4FGL_J2323.5-0317_daily_bin587.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/809572/ft1_4FGL_J2323.5-0317_daily_bin587.fits outfile=/scratch/kocevski/809572/ft1_filteredMKT_4FGL_J2323.5-0317_daily_bin587.fits ra=350.888 dec=-3.29 rad=12.0 tmin=391478401.0 tmax=391737601.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 4.41
user 4.16
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/809572/ft2_4FGL_J2323.5-0317_daily_bin587.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/809572/ft1_filteredMKT_4FGL_J2323.5-0317_daily_bin587.fits evtable="EVENTS" outfile="/scratch/kocevski/809572/ft1_filtered_4FGL_J2323.5-0317_daily_bin587.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.54
user 0.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/809572/ft1_filtered_4FGL_J2323.5-0317_daily_bin587.fits" evtable="EVENTS" scfile=/scratch/kocevski/809572/ft2_4FGL_J2323.5-0317_daily_bin587.fits sctable="SC_DATA" outfile=/scratch/kocevski/809572/ltcube_391478401_391737601_4FGL_J2323.5-0317_daily_bin587.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/809572/ft2_4FGL_J2323.5-0317_daily_bin587.fits
.....................!
real 12.07
user 11.54
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/809572/ft1_filtered_4FGL_J2323.5-0317_daily_bin587.fits evtable="EVENTS" scfile=/scratch/kocevski/809572/ft2_4FGL_J2323.5-0317_daily_bin587.fits sctable="SC_DATA" expcube=/scratch/kocevski/809572/ltcube_391478401_391737601_4FGL_J2323.5-0317_daily_bin587.fits outfile=/scratch/kocevski/809572/expmap_391478401_391737601_4FGL_J2323.5-0317_daily_bin587.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/809572/ltcube_391478401_391737601_4FGL_J2323.5-0317_daily_bin587.fits
.....................!
real 190.49
user 184.95
sys 5.16

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

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

This is gtbin version HEAD
real 0.54
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/809572/ft1_filtered_4FGL_J2323.5-0317_daily_bin587.fits scfile=/scratch/kocevski/809572/ft2_4FGL_J2323.5-0317_daily_bin587.fits outfile=/scratch/kocevski/809572/cmap_HighResolution_391478401_391737601_4FGL_J2323.5-0317_daily_bin587.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.55
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/809572/ft1_filtered_4FGL_J2323.5-0317_daily_bin587.fits evtable="EVENTS" scfile=/scratch/kocevski/809572/ft2_4FGL_J2323.5-0317_daily_bin587.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/809572/Model_4FGL_J2323.5-0317_daily_bin587.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/809572/ft1_filtered_4FGL_J2323.5-0317_daily_bin587.fits.....................!
real 60.16
user 58.75
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .80402E-02   1.0000         .10000E-03   10000.    
     2 'Prefactor '    27.580       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.2709       1.0000         .10000E-03   10000.    
     5 'norm      '    17.995       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10070E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10155E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    3.0639       1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10242E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .12224E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    12.744       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .12897E-02   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    36.062       1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.3220       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10136E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10083E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    19.897       1.0000         .10000E-03   10000.    
    23 'Prefactor '    10.677       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.1341       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .83018       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=   6116.404     FROM MIGRAD    STATUS=CONVERGED    587 CALLS     2896 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10073E-03    7.6759        .34882E-05** at limit **
   2  Prefactor     27.658        56.381       -.82890E-05   -.74352E-04
   3  Prefactor     .10000E-03    13.172       -.53319E-07** at limit **
   4  Prefactor     5.2704        5.4528        .26481E-07    .94969E-04
   5  norm          17.994        13.544        .43465E-06   -.15975E-04
   6  Prefactor     .10000E-03    19.666       -.12872E-06** at limit **
   7  Prefactor     .10000E-03    9.6384       -.11182E-06** at limit **
   8  Prefactor     .10000E-03    44.576       -.23613E-06** at limit **
   9  Prefactor     .10000E-03    7.1424       -.49018E-07** at limit **
  10  norm          3.0636        1.1831        .19800E-07   -.40103E-04
  11  norm          .10000E-03    2.3860       -.15746E-07** at limit **
  12  Prefactor     .10000E-03    4.7982       -.84145E-07** at limit **
  13  Prefactor     .10000E-03    46.090       -.22993E-06** at limit **
  14  Prefactor     .10000E-03    72.179       -.12669E-06** at limit **
  15  Prefactor     12.741        13.872       -.22933E-05   -.51164E-05
  16  Prefactor     .10000E-03    64.957       -.11086E-05** at limit **
  17  norm          .10000E-03    9.4931       -.64817E-07** at limit **
  18  Prefactor     36.074        49.408        .11990E-06    .26100E-04
  19  Prefactor     2.3227        5.1616        .55839E-05   -.63263E-03
  20  Prefactor     .10000E-03    11.105       -.91874E-07** at limit **
  21  Prefactor     .10001E-03    49.944       -.11714E-05** at limit **
  22  Prefactor     19.915        18.940       -.58928E-07   -.18106E-03
  23  Prefactor     10.695        9.0950       -.13388E-05   -.13160E-02
  24  Normalizat    1.1341        .20006       -.30178E-05   -.80195E-03
  25  Prefactor     .83025        .13652        .86334E-06   -.76574E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100733
  Prefactor  = 27.6579
  Prefactor  = 0.0001
  Prefactor  = 5.2704
  norm       = 17.9935
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 3.06355
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 12.741
  Prefactor  = 0.000100003
  norm       = 0.0001
  Prefactor  = 36.0735
  Prefactor  = 2.32269
  Prefactor  = 0.0001
  Prefactor  = 0.00010001
  Prefactor  = 19.9148
  Prefactor  = 10.6951
  Normalizat = 1.13411
  Prefactor  = 0.830248
 **********
 **   18 **HESSE 
 **********

 FCN=   6116.404     FROM HESSE     STATUS=OK           427 CALLS     3323 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10073E-03    13.091        .62834E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     27.658        58.740        .76284E-04   -1.4656    
   3  Prefactor     .10000E-03    13.189        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     5.2704        5.4565        .17507E-03   -1.5249    
   5  norm          17.994        13.553        .47208E-03   -1.4859    
   6  Prefactor     .10000E-03    19.693        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    9.6994        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    44.719        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    7.2445        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          3.0636        1.1821        .49765E-04   -1.5358    
  11  norm          .10000E-03    2.4005        .11794E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    4.8186        .16730E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    46.159        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    72.179        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     12.741        13.989        .11221E-03   -1.4994    
  16  Prefactor     .10000E-03    67.395        .41171E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    9.4950        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     36.074        49.487        .66736E-04   -1.4506    
  19  Prefactor     2.3227        5.1974        .11287E-02   -1.5403    
  20  Prefactor     .10000E-03    11.111        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10001E-03    51.292        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     19.915        19.022        .89792E-04   -1.4815    
  23  Prefactor     10.695        9.3794        .12262E-03   -1.5054    
  24  Normalizat    1.1341        .23436        .26732E-03   -.88664    
  25  Prefactor     .83025        .15921        .22238E-03   -.98623    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.46562e-09
Minuit parameter uncertainties:
  1  0.0061948
  2  58.8629
  3  1.63023e-05
  4  5.457
  5  13.5548
  6  9.84037e-07
  7  0.000164778
  8  0.00056566
  9  3.76486e-06
  10  1.1821
  11  2.8015e-08
  12  5.43336e-06
  13  2.68632e-05
  14  0.000760787
  15  13.9925
  16  0.000832964
  17  0.000104136
  18  49.5433
  19  5.19844
  20  3.65986e-05
  21  0.00143908
  22  19.0279
  23  9.38071
  24  0.234579
  25  0.159298
Done.

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

Extracting fit parameters...

4FGL J2323.5-0317
   Spectrum: LogParabola
373         norm:  3.064e+00  1.182e+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:  8.302e-01  1.593e-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.134e+00  2.346e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 20.14
Ra Dec: 350.888 -3.290
Photon Index (Fixed Index): 2.16 +/- 0.00
Photon Flux (Fixed Index): 1.19e-07 +/- 4.57e-08
Energy Flux (Fixed Index): 4.86e-05 +/- 1.87e-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) = 6116.12156226
delta logL = 0.282692492507

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6116.09979263
delta logL = 0.304462124712

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.8966       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5110       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0849       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85154       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=   6116.100     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      234 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.8966        14.277        .59690E-02   -.11947E-02
   2  alpha         2.5110        3.7338        .25923        .27216E-04
   3  Normalizat    1.0849        .15400        .61539E-01   -.40201E-04
   4  Prefactor     .85153        .74091E-01    .44384E-01   -.19225E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.89664
  alpha      = 2.511
  Normalizat = 1.08487
  Prefactor  = 0.851531
 **********
 **   18 **HESSE 
 **********

 FCN=   6116.100     FROM HESSE     STATUS=OK            31 CALLS      265 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.8966        1.1708        .44449E-04   -1.5368    
   2  alpha         2.5110        .46167        .10239E-01    .43990E-02
   3  Normalizat    1.0849        .22761        .27218E-03   -.90239    
   4  Prefactor     .85153        .16015        .21981E-03   -.97856    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.38298e-10
Minuit parameter uncertainties:
  1  1.17085
  2  0.464339
  3  0.227812
  4  0.160242
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/809572': 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) = 6116.09979263
delta logL = 0.304462125026

Extracting fit parameters...

4FGL J2323.5-0317
   Spectrum: LogParabola
373         norm:  2.897e+00  1.171e+00  1.000e-04  1.000e+04 ( 1.000e-11)
374        alpha:  2.511e+00  4.643e-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:  8.515e-01  1.602e-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.085e+00  2.278e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 20.79
Ra Dec: 350.888 -3.290
Photon Index (Free Index): 2.51 +/- 0.46
Photon Flux (Free Index): 1.61e-07 +/- 7.71e-08
Energy Flux (Free Index): 4.57e-05 +/- 1.64e-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/809572/cmap_HighResolution_391478401_391737601_4FGL_J2323.5-0317_daily_bin587.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.19e-07', energy_flux2='4.57e-05', photon_flux_error='4.57e-08', dlogl='3.04e-01', energy_flux='4.86e-05', photon_flux2='1.61e-07', job_status='DONE', time_completed='2021-09-29 14:41:35.150059', photon_index_error2='0.46', photon_index2='2.51', ts='20.14', fit_tolerance='1e-08', GAL='0.83', photon_index_error='0.00', energy_flux_error2='1.64e-05', EG='1.13', time_epoch_completed='1632951695.15', return_code='0', job_id='809572', GAL2='0.85', EG2='1.08', return_code2='0', energy_flux_error='1.87e-05', photon_flux_error2='7.71e-08', ts2='20.79', photon_index='2.16' WHERE bin_id='587' AND source_name='4FGL J2323.5-0317' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 14:41:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0077>
Subject: Job 809572: <4FGL_J2323.5-0317_daily_bin587> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2323.5-0317_daily_bin587 350.888 -3.29 391478401 391737601 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 :                                   599.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             342.95 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   660 sec.
    Turnaround time :                            661 sec.

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

