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


Performing analysis on: 4FGL_J2323.5-0317_daily_bin702
RA = 350.888, Dec = -3.29
tmin = 421286401, tmax = 421545601
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='810842', job_status='RUN', time_executed='2021-09-29 14:37:01.152058', time_epoch_executed='1632951421.15' WHERE source_name='4FGL J2323.5-0317' and cadence='daily' and bin_id='702'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/810842

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/810842/ft1_4FGL_J2323.5-0317_daily_bin702.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/810842/ft2_4FGL_J2323.5-0317_daily_bin702.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/810842/ft1_4FGL_J2323.5-0317_daily_bin702.fits outfile=/scratch/kocevski/810842/ft1_filteredMKT_4FGL_J2323.5-0317_daily_bin702.fits ra=350.888 dec=-3.29 rad=12.0 tmin=421286401.0 tmax=421545601.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.68
user 3.44
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/810842/ft2_4FGL_J2323.5-0317_daily_bin702.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/810842/ft1_filteredMKT_4FGL_J2323.5-0317_daily_bin702.fits evtable="EVENTS" outfile="/scratch/kocevski/810842/ft1_filtered_4FGL_J2323.5-0317_daily_bin702.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/810842/ft1_filtered_4FGL_J2323.5-0317_daily_bin702.fits" evtable="EVENTS" scfile=/scratch/kocevski/810842/ft2_4FGL_J2323.5-0317_daily_bin702.fits sctable="SC_DATA" outfile=/scratch/kocevski/810842/ltcube_421286401_421545601_4FGL_J2323.5-0317_daily_bin702.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/810842/ft2_4FGL_J2323.5-0317_daily_bin702.fits
.....................!
real 12.09
user 11.74
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/810842/ft1_filtered_4FGL_J2323.5-0317_daily_bin702.fits evtable="EVENTS" scfile=/scratch/kocevski/810842/ft2_4FGL_J2323.5-0317_daily_bin702.fits sctable="SC_DATA" expcube=/scratch/kocevski/810842/ltcube_421286401_421545601_4FGL_J2323.5-0317_daily_bin702.fits outfile=/scratch/kocevski/810842/expmap_421286401_421545601_4FGL_J2323.5-0317_daily_bin702.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/810842/ltcube_421286401_421545601_4FGL_J2323.5-0317_daily_bin702.fits
.....................!
real 189.81
user 184.81
sys 4.65

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/810842/ft1_filtered_4FGL_J2323.5-0317_daily_bin702.fits scfile=/scratch/kocevski/810842/ft2_4FGL_J2323.5-0317_daily_bin702.fits outfile=/scratch/kocevski/810842/cmap_421286401_421545601_4FGL_J2323.5-0317_daily_bin702.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.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/810842/ft1_filtered_4FGL_J2323.5-0317_daily_bin702.fits scfile=/scratch/kocevski/810842/ft2_4FGL_J2323.5-0317_daily_bin702.fits outfile=/scratch/kocevski/810842/cmap_HighResolution_421286401_421545601_4FGL_J2323.5-0317_daily_bin702.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.40
sys 0.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    46.924       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .28592       1.0000         .10000E-03   10000.    
    11 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10809E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    346.18       1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.7770       1.0000         .10000E-03   10000.    
    16 'Prefactor '    54.729       1.0000         .10000E-03   10000.    
    17 'norm      '    .19333E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.4803       1.0000         .10000E-03   10000.    
    20 'Prefactor '    34.461       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10525E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    3.8223       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.2544       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .72623       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=   6040.993     FROM MIGRAD    STATUS=CONVERGED    579 CALLS     2912 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.7750       -.74101E-07** at limit **
   2  Prefactor     .10000E-03    18.231       -.10797E-05** at limit **
   3  Prefactor     .10000E-03    20.826       -.89827E-06** at limit **
   4  Prefactor     .10000E-03    3.5229        .76046E-07** at limit **
   5  norm          .10000E-03    5.6496        .11063E-06** at limit **
   6  Prefactor     .10000E-03    16.273        .19155E-05** at limit **
   7  Prefactor     46.924        20.354        .16687E-06    .10443E-03
   8  Prefactor     .10000E-03    18.450       -.12130E-05** at limit **
   9  Prefactor     .10000E-03    5.4253        .13879E-06** at limit **
  10  norm          .28591        .76598       -.13982E-05   -.27136E-02
  11  norm          .10000E-03    3.0628       -.96140E-07** at limit **
  12  Prefactor     .10000E-03    3.3302        .28709E-07** at limit **
  13  Prefactor     .10000E-03    94.713       -.58252E-05** at limit **
  14  Prefactor     345.93        282.20        .97265E-05    .18602E-04
  15  Prefactor     1.8040        50.768        .34279E-04   -.35779E-04
  16  Prefactor     54.727        29.286        .50378E-08   -.14174E-04
  17  norm          .10000E-03    60.128       -.16701E-06** at limit **
  18  Prefactor     .10001E-03    130.52        .59506E-05** at limit **
  19  Prefactor     3.4760        6.0808       -.47471E-05    .33646E-03
  20  Prefactor     34.429        39.738        .12950E-05   -.23696E-04
  21  Prefactor     .10000E-03    23.038        .13689E-05** at limit **
  22  Prefactor     .10000E-03    11.318       -.22559E-07** at limit **
  23  Prefactor     3.8238        8.3693        .62138E-05    .83583E-04
  24  Normalizat    1.2543        .19594       -.22781E-05    .46990E-03
  25  Prefactor     .72626        .13574        .40519E-06    .22988E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 46.924
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.285912
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 345.935
  Prefactor  = 1.80397
  Prefactor  = 54.727
  norm       = 0.000100004
  Prefactor  = 0.000100007
  Prefactor  = 3.47598
  Prefactor  = 34.4286
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 3.82377
  Normalizat = 1.25433
  Prefactor  = 0.726263
 **********
 **   18 **HESSE 
 **********

 FCN=   6040.993     FROM HESSE     STATUS=OK           417 CALLS     3329 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.9606        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    18.240        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    20.853        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    3.5299        .14247E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    5.6732        .18040E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    16.306        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     46.924        20.360        .58534E-04   -1.4337    
   8  Prefactor     .10000E-03    18.453        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    5.4881        .17675E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .28591        .77830        .10177E-02   -1.5601    
  11  norm          .10000E-03    3.0908        .13277E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    3.3385        .13851E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    95.346        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     345.93        282.88        .10940E-03   -1.1966    
  15  Prefactor     1.8040        53.538        .15701E-02   -1.5439    
  16  Prefactor     54.727        29.284        .54220E-04   -1.4227    
  17  norm          .10000E-03    60.921        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10001E-03    131.13        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     3.4760        6.0712        .18190E-03   -1.5335    
  20  Prefactor     34.429        39.753        .68264E-04   -1.4534    
  21  Prefactor     .10000E-03    23.246        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    11.509        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     3.8238        8.2051        .10322E-02   -1.5317    
  24  Normalizat    1.2543        .22857        .24913E-03   -.84940    
  25  Prefactor     .72626        .15917        .22851E-03   -1.0251    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.26794e-09
Minuit parameter uncertainties:
  1  3.25762e-05
  2  7.87943e-05
  3  0.000124697
  4  5.41354e-06
  5  2.13942e-05
  6  0.000114321
  7  20.3632
  8  0.000104599
  9  3.86692e-06
  10  0.778328
  11  5.44087e-06
  12  1.65062e-06
  13  0.000933284
  14  284.025
  15  19.6739
  16  29.2922
  17  0.00102662
  18  0.00190318
  19  6.07231
  20  39.7837
  21  0.000305192
  22  2.511e-05
  23  8.20749
  24  0.228752
  25  0.159274
Done.

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

Extracting fit parameters...

4FGL J2323.5-0317
   Spectrum: LogParabola
373         norm:  2.859e-01  7.783e-01  1.000e-04  1.000e+04 ( 1.000e-11)
374        alpha:  2.160e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
375         beta:  9.598e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
376           Eb:  6.247e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
520    Prefactor:  7.263e-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.254e+00  2.288e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.17
Ra Dec: 350.888 -3.290
Photon Flux Upper Limit: 9.12e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.74e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/810842/likelihoodResults_421286401_421545601_4FGL_J2323.5-0317_daily_bin702.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) = 6040.9882022
delta logL = 0.00477952606889

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6040.98756773
delta logL = 0.00541399392569

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .30815       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4128       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2495       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .72807       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6040.988     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      272 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .31029        .79359        .10412E-03    .10035E-03
   2  alpha         2.4229        3.5605        .50346E-01   -.13835E-04
   3  Normalizat    1.2491        .22641        .24957E-03    .73795E-05
   4  Prefactor     .72828        .15969        .22822E-03    .49815E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.310295
  alpha      = 2.42292
  Normalizat = 1.24905
  Prefactor  = 0.728276
 **********
 **   18 **HESSE 
 **********

 FCN=   6040.988     FROM HESSE     STATUS=OK            25 CALLS      297 TOTAL
                     EDM=   .21E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .31029        .78100        .41647E-05   -1.5597    
   2  alpha         2.4229        3.5519        .10069E-01   -.30837E-01
   3  Normalizat    1.2491        .22634        .99829E-05   -.85100    
   4  Prefactor     .72828        .15949        .91287E-05   -1.0243    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.13252e-12
Minuit parameter uncertainties:
  1  0.78103
  2  2.57147
  3  0.226523
  4  0.159594
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/810842': 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) = 6040.98755607
delta logL = 0.00542565004616

Extracting fit parameters...

4FGL J2323.5-0317
   Spectrum: LogParabola
373         norm:  3.103e-01  7.810e-01  1.000e-04  1.000e+04 ( 1.000e-11)
374        alpha:  2.423e+00  2.571e+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:  7.283e-01  1.596e-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.249e+00  2.265e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.17
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/810842/cmap_HighResolution_421286401_421545601_4FGL_J2323.5-0317_daily_bin702.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.74e-05', job_status='DONE', photon_flux_upper_limit='9.12e-08', time_completed='2021-09-29 14:48:02.074635', job_id='810842', GAL2='0.73', fit_tolerance='1e-08', EG2='1.25', EG='1.25', time_epoch_completed='1632952082.07', return_code2='0', ts='0.17', comment='SUCCESS', return_code='0', GAL='0.73', dlogl='5.43e-03', ts2='0.19', photon_index_error='0.00', photon_index='2.16' WHERE bin_id='702' AND source_name='4FGL J2323.5-0317' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 14:48:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0126>
Subject: Job 810842: <4FGL_J2323.5-0317_daily_bin702> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2323.5-0317_daily_bin702 350.888 -3.29 421286401 421545601 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 :                                   656.14 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             301.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   766 sec.
    Turnaround time :                            768 sec.

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

