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


Performing analysis on: 4FGL_J2323.5-0317_daily_bin712
RA = 350.888, Dec = -3.29
tmin = 423878401, tmax = 424137601
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='810856', job_status='RUN', time_executed='2021-09-29 14:39:09.993084', time_epoch_executed='1632951549.99' WHERE source_name='4FGL J2323.5-0317' and cadence='daily' and bin_id='712'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/810856

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/810856/ft1_4FGL_J2323.5-0317_daily_bin712.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/810856/ft2_4FGL_J2323.5-0317_daily_bin712.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/810856/ft1_4FGL_J2323.5-0317_daily_bin712.fits outfile=/scratch/kocevski/810856/ft1_filteredMKT_4FGL_J2323.5-0317_daily_bin712.fits ra=350.888 dec=-3.29 rad=12.0 tmin=423878401.0 tmax=424137601.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 5.31
user 5.09
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/810856/ft1_filtered_4FGL_J2323.5-0317_daily_bin712.fits" evtable="EVENTS" scfile=/scratch/kocevski/810856/ft2_4FGL_J2323.5-0317_daily_bin712.fits sctable="SC_DATA" outfile=/scratch/kocevski/810856/ltcube_423878401_424137601_4FGL_J2323.5-0317_daily_bin712.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/810856/ft2_4FGL_J2323.5-0317_daily_bin712.fits
.....................!
real 12.75
user 12.39
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/810856/ft1_filtered_4FGL_J2323.5-0317_daily_bin712.fits evtable="EVENTS" scfile=/scratch/kocevski/810856/ft2_4FGL_J2323.5-0317_daily_bin712.fits sctable="SC_DATA" expcube=/scratch/kocevski/810856/ltcube_423878401_424137601_4FGL_J2323.5-0317_daily_bin712.fits outfile=/scratch/kocevski/810856/expmap_423878401_424137601_4FGL_J2323.5-0317_daily_bin712.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/810856/ltcube_423878401_424137601_4FGL_J2323.5-0317_daily_bin712.fits
.....................!
real 190.35
user 185.35
sys 4.61

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/810856/ft1_filtered_4FGL_J2323.5-0317_daily_bin712.fits scfile=/scratch/kocevski/810856/ft2_4FGL_J2323.5-0317_daily_bin712.fits outfile=/scratch/kocevski/810856/cmap_423878401_424137601_4FGL_J2323.5-0317_daily_bin712.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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/810856/ft1_filtered_4FGL_J2323.5-0317_daily_bin712.fits scfile=/scratch/kocevski/810856/ft2_4FGL_J2323.5-0317_daily_bin712.fits outfile=/scratch/kocevski/810856/cmap_HighResolution_423878401_424137601_4FGL_J2323.5-0317_daily_bin712.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.56
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/810856/ft1_filtered_4FGL_J2323.5-0317_daily_bin712.fits evtable="EVENTS" scfile=/scratch/kocevski/810856/ft2_4FGL_J2323.5-0317_daily_bin712.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/810856/Model_4FGL_J2323.5-0317_daily_bin712.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/810856/ft1_filtered_4FGL_J2323.5-0317_daily_bin712.fits.....................!
real 55.82
user 54.46
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    8.4367       1.0000         .10000E-03   10000.    
     5 'norm      '    .93656       1.0000         .10000E-03   10000.    
     6 'Prefactor '    16.118       1.0000         .10000E-03   10000.    
     7 'Prefactor '    23.498       1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.9524       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .33000       1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    37.708       1.0000         .10000E-03   10000.    
    15 'Prefactor '    8.7238       1.0000         .10000E-03   10000.    
    16 'Prefactor '    22.611       1.0000         .10000E-03   10000.    
    17 'norm      '    31.581       1.0000         .10000E-03   10000.    
    18 'Prefactor '    36.113       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10124E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    8.6329       1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.7590       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .97802       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .86646       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=   5673.299     FROM MIGRAD    STATUS=CONVERGED    561 CALLS     3312 TOTAL
                     EDM=   .16E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.1298        .11204E-07** at limit **
   2  Prefactor     .10000E-03    15.688       -.60692E-07** at limit **
   3  Prefactor     .10000E-03    10.014       -.27684E-07** at limit **
   4  Prefactor     8.4374        8.7134        .70187E-06   -.88883E-04
   5  norm          .93031        12.053        .43340E-06   -.71912E-04
   6  Prefactor     16.102        36.178       -.40064E-05   -.20648E-04
   7  Prefactor     23.501        22.211        .33809E-06   -.18454E-04
   8  Prefactor     3.9524        14.820        .26994E-06   -.98476E-05
   9  Prefactor     .10000E-03    1.7843       -.26737E-08** at limit **
  10  norm          .32969        .63887        .53695E-06    .64807E-03
  11  norm          .10000E-03    1.9328        .87363E-08** at limit **
  12  Prefactor     .10000E-03    9.9252       -.44359E-07** at limit **
  13  Prefactor     .10000E-03    35.533        .76013E-07** at limit **
  14  Prefactor     37.805        261.30        .11769E-04   -.26516E-05
  15  Prefactor     8.7117        15.111        .16272E-05   -.25008E-03
  16  Prefactor     22.610        28.420        .19568E-06   -.41256E-05
  17  norm          31.583        27.586       -.10023E-05   -.29215E-04
  18  Prefactor     36.105        53.207       -.19269E-05   -.16321E-04
  19  Prefactor     .10000E-03    4.7607        .52917E-07** at limit **
  20  Prefactor     8.6296        30.809       -.13472E-05   -.10177E-04
  21  Prefactor     1.7545        55.552        .68002E-06   -.66854E-05
  22  Prefactor     .10000E-03    8.7613       -.45591E-07** at limit **
  23  Prefactor     .10000E-03    1.9851        .42075E-07** at limit **
  24  Normalizat    .97830        .18567       -.80466E-07   -.12264E-03
  25  Prefactor     .86628        .13917       -.77710E-06   -.50877E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.43738
  norm       = 0.930307
  Prefactor  = 16.1017
  Prefactor  = 23.5008
  Prefactor  = 3.95241
  Prefactor  = 0.0001
  norm       = 0.329692
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 37.8046
  Prefactor  = 8.71169
  Prefactor  = 22.6104
  norm       = 31.5828
  Prefactor  = 36.1047
  Prefactor  = 0.0001
  Prefactor  = 8.62963
  Prefactor  = 1.75451
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.9783
  Prefactor  = 0.866281
 **********
 **   18 **HESSE 
 **********

 FCN=   5673.299     FROM HESSE     STATUS=OK           433 CALLS     3745 TOTAL
                     EDM=   .31E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.1456        .13013E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    15.702        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    10.020        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     8.4374        8.7213        .69007E-03   -1.5127    
   5  norm          .93031        45.910        .48000E-02   -1.5515    
   6  Prefactor     16.102        36.389        .99763E-04   -1.4905    
   7  Prefactor     23.501        22.197        .82633E-04   -1.4738    
   8  Prefactor     3.9524        14.799        .20290E-03   -1.5310    
   9  Prefactor     .10000E-03    1.7854        .98233E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .32969        .56980        .83618E-03   -1.5593    
  11  norm          .10000E-03    1.9540        .10224E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    9.9905        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    35.591        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     37.805        268.19        .65269E-04   -1.4477    
  15  Prefactor     8.7117        15.375        .67856E-03   -1.5118    
  16  Prefactor     22.610        28.411        .84237E-04   -1.4757    
  17  norm          31.583        27.773        .71300E-04   -1.4583    
  18  Prefactor     36.105        53.407        .66689E-04   -1.4505    
  19  Prefactor     .10000E-03    4.8974        .31903E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     8.6296        30.740        .13643E-03   -1.5120    
  21  Prefactor     1.7545        56.076        .31596E-03   -1.5443    
  22  Prefactor     .10000E-03    8.7918        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    1.9917        .10363E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .97830        .21467        .25684E-03   -.93761    
  25  Prefactor     .86628        .16133        .20535E-03   -.97329    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.13271e-08
Minuit parameter uncertainties:
  1  1.19024e-06
  2  9.4015e-07
  3  1.02854e-06
  4  8.72264
  5  13.0806
  6  36.4394
  7  22.2048
  8  14.8126
  9  2.14252e-07
  10  0.569813
  11  1.97287e-06
  12  1.4825e-05
  13  8.33365e-06
  14  202.685
  15  15.3818
  16  28.4275
  17  27.7842
  18  53.4779
  19  6.03048e-05
  20  30.7965
  21  19.8577
  22  9.68639e-07
  23  7.92272e-07
  24  0.214863
  25  0.161414
Done.

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

Extracting fit parameters...

4FGL J2323.5-0317
   Spectrum: LogParabola
373         norm:  3.297e-01  5.698e-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.663e-01  1.614e-01  0.000e+00  1.000e+01 ( 1.000e+00)
521        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
522        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
519   Normalization:  9.783e-01  2.149e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/810856/likelihoodResults_423878401_424137601_4FGL_J2323.5-0317_daily_bin712.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) = 5673.24138253
delta logL = 0.0580944012327

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5673.24075174
delta logL = 0.0587251901134

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .32547       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.6458       1.0000          .0000       5.0000    
     3 'Normalizat'    .96912       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86985       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=   5673.241     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      207 TOTAL
                     EDM=   .60E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .32546        12.960        .15067E-01    .14337E-02
   2  alpha         2.6458        2.5314        .41240        .79507E-05
   3  Normalizat    .96912        .37676E-01    .45779E-01    .11783E-04
   4  Prefactor     .86985        .28815E-01    .44620E-01    .71603E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.32546
  alpha      = 2.64582
  Normalizat = 0.969117
  Prefactor  = 0.869851
 **********
 **   18 **HESSE 
 **********

 FCN=   5673.241     FROM HESSE     STATUS=OK            35 CALLS      242 TOTAL
                     EDM=   .52E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .32546        .58875        .69582E-03   -1.5594    
   2  alpha         2.6458        1.4999        .31240E-01    .58360E-01
   3  Normalizat    .96912        .20866        .25788E-03   -.94072    
   4  Prefactor     .86985        .15718        .20495E-03   -.97203    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.24783e-11
Minuit parameter uncertainties:
  1  0.588757
  2  1.60902
  3  0.208836
  4  0.157262
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/810856': 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) = 5673.24075174
delta logL = 0.0587251917314

Extracting fit parameters...

4FGL J2323.5-0317
   Spectrum: LogParabola
373         norm:  3.255e-01  5.888e-01  1.000e-04  1.000e+04 ( 1.000e-11)
374        alpha:  2.646e+00  1.609e+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:  8.699e-01  1.573e-01  0.000e+00  1.000e+01 ( 1.000e+00)
521        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
522        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
519   Normalization:  9.691e-01  2.088e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.52
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/810856/cmap_HighResolution_423878401_424137601_4FGL_J2323.5-0317_daily_bin712.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.15e-05', job_status='DONE', photon_flux_upper_limit='7.68e-08', time_completed='2021-09-29 14:50:22.225662', job_id='810856', GAL2='0.87', fit_tolerance='1e-08', EG2='0.97', EG='0.98', time_epoch_completed='1632952222.23', return_code2='0', ts='0.52', comment='SUCCESS', return_code='0', GAL='0.87', dlogl='5.87e-02', ts2='0.64', photon_index_error='0.00', photon_index='2.16' WHERE bin_id='712' AND source_name='4FGL J2323.5-0317' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 14:50:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0083>
Subject: Job 810856: <4FGL_J2323.5-0317_daily_bin712> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2323.5-0317_daily_bin712 350.888 -3.29 423878401 424137601 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 :                                   668.46 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             255.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   905 sec.
    Turnaround time :                            907 sec.

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

