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


Performing analysis on: 4FGL_J2323.5-0317_daily_bin317
RA = 350.888, Dec = -3.29
tmin = 321494401, tmax = 321753601
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='808321', job_status='RUN', time_executed='2021-09-29 14:27:06.197066', time_epoch_executed='1632950826.2' WHERE source_name='4FGL J2323.5-0317' and cadence='daily' and bin_id='317'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/808321

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/808321/ft1_4FGL_J2323.5-0317_daily_bin317.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/808321/ft2_4FGL_J2323.5-0317_daily_bin317.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/808321/ft1_4FGL_J2323.5-0317_daily_bin317.fits outfile=/scratch/kocevski/808321/ft1_filteredMKT_4FGL_J2323.5-0317_daily_bin317.fits ra=350.888 dec=-3.29 rad=12.0 tmin=321494401.0 tmax=321753601.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.91
user 3.71
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/808321/ft1_filtered_4FGL_J2323.5-0317_daily_bin317.fits" evtable="EVENTS" scfile=/scratch/kocevski/808321/ft2_4FGL_J2323.5-0317_daily_bin317.fits sctable="SC_DATA" outfile=/scratch/kocevski/808321/ltcube_321494401_321753601_4FGL_J2323.5-0317_daily_bin317.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/808321/ft2_4FGL_J2323.5-0317_daily_bin317.fits
.....................!
real 12.06
user 11.63
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/808321/ft1_filtered_4FGL_J2323.5-0317_daily_bin317.fits evtable="EVENTS" scfile=/scratch/kocevski/808321/ft2_4FGL_J2323.5-0317_daily_bin317.fits sctable="SC_DATA" expcube=/scratch/kocevski/808321/ltcube_321494401_321753601_4FGL_J2323.5-0317_daily_bin317.fits outfile=/scratch/kocevski/808321/expmap_321494401_321753601_4FGL_J2323.5-0317_daily_bin317.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/808321/ltcube_321494401_321753601_4FGL_J2323.5-0317_daily_bin317.fits
.....................!
real 190.35
user 185.37
sys 4.66

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/808321/ft1_filtered_4FGL_J2323.5-0317_daily_bin317.fits scfile=/scratch/kocevski/808321/ft2_4FGL_J2323.5-0317_daily_bin317.fits outfile=/scratch/kocevski/808321/cmap_321494401_321753601_4FGL_J2323.5-0317_daily_bin317.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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/808321/ft1_filtered_4FGL_J2323.5-0317_daily_bin317.fits scfile=/scratch/kocevski/808321/ft2_4FGL_J2323.5-0317_daily_bin317.fits outfile=/scratch/kocevski/808321/cmap_HighResolution_321494401_321753601_4FGL_J2323.5-0317_daily_bin317.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=350.888 yref=-3.29 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/808321/ft1_filtered_4FGL_J2323.5-0317_daily_bin317.fits evtable="EVENTS" scfile=/scratch/kocevski/808321/ft2_4FGL_J2323.5-0317_daily_bin317.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/808321/Model_4FGL_J2323.5-0317_daily_bin317.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/808321/ft1_filtered_4FGL_J2323.5-0317_daily_bin317.fits.....................!
real 56.99
user 55.73
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10232E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    27.649       1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    24.474       1.0000         .10000E-03   10000.    
     7 'Prefactor '    18.162       1.0000         .10000E-03   10000.    
     8 'Prefactor '    72.999       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10090E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    4.7939       1.0000         .10000E-03   10000.    
    11 'norm      '    7.7967       1.0000         .10000E-03   10000.    
    12 'Prefactor '    15.581       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    504.79       1.0000         .10000E-03   10000.    
    15 'Prefactor '    31.770       1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.7620       1.0000         .10000E-03   10000.    
    17 'norm      '    50.210       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    9.3238       1.0000         .10000E-03   10000.    
    20 'Prefactor '    9.5219       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    1.4120       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .99475       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.1021       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=   5710.552     FROM MIGRAD    STATUS=CONVERGED    544 CALLS     2858 TOTAL
                     EDM=   .10E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.3754       -.11770E-06** at limit **
   2  Prefactor     .10000E-03    32.533       -.14019E-06** at limit **
   3  Prefactor     .10000E-03    139.04        .19146E-05** at limit **
   4  Prefactor     27.645        16.282        .22119E-06   -.84727E-06
   5  norm          .10000E-03    5.4583       -.49037E-07** at limit **
   6  Prefactor     24.473        27.357        .87977E-07   -.19012E-05
   7  Prefactor     18.161        16.070        .11636E-06    .69782E-06
   8  Prefactor     73.072        70.521       -.24522E-06   -.15941E-04
   9  Prefactor     .10000E-03    21.500        .83024E-05** at limit **
  10  norm          4.7938        2.0820        .16981E-07   -.25457E-03
  11  norm          7.7987        7.2177       -.36583E-07   -.12161E-03
  12  Prefactor     15.580        12.936       -.36295E-06   -.16316E-04
  13  Prefactor     .10000E-03    32.675       -.45486E-07** at limit **
  14  Prefactor     505.01        348.52        .94177E-06    .45010E-04
  15  Prefactor     31.774        28.399        .18549E-06   -.16810E-04
  16  Prefactor     4.7597        36.562        .83390E-05   -.22867E-04
  17  norm          50.198        44.930       -.30829E-06   -.29741E-04
  18  Prefactor     .10000E-03    157.57        .46422E-06** at limit **
  19  Prefactor     9.3244        8.3367        .24363E-06   -.29670E-04
  20  Prefactor     9.5220        31.423        .62343E-07   -.50086E-05
  21  Prefactor     .10000E-03    15.708       -.25530E-06** at limit **
  22  Prefactor     .10000E-03    15.771       -.10181E-06** at limit **
  23  Prefactor     1.4126        8.8090        .24021E-05   -.39918E-04
  24  Normalizat    .99446        .25316       -.34087E-05   -.32382E-04
  25  Prefactor     1.1023        .17759        .14757E-05   -.21249E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 27.6452
  norm       = 0.0001
  Prefactor  = 24.4733
  Prefactor  = 18.161
  Prefactor  = 73.0722
  Prefactor  = 0.0001
  norm       = 4.79379
  norm       = 7.79872
  Prefactor  = 15.5801
  Prefactor  = 0.0001
  Prefactor  = 505.011
  Prefactor  = 31.7737
  Prefactor  = 4.75974
  norm       = 50.1976
  Prefactor  = 0.000100001
  Prefactor  = 9.32442
  Prefactor  = 9.52203
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.41262
  Normalizat = 0.994462
  Prefactor  = 1.10233
 **********
 **   18 **HESSE 
 **********

 FCN=   5710.552     FROM HESSE     STATUS=OK           427 CALLS     3285 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.3822        .15437E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    32.563        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    140.69        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     27.645        16.285        .76189E-04   -1.4656    
   5  norm          .10000E-03    5.4719        .17241E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     24.473        27.363        .80971E-04   -1.4718    
   7  Prefactor     18.161        16.071        .93981E-04   -1.4855    
   8  Prefactor     73.072        70.446        .23495E-03   -1.3996    
   9  Prefactor     .10000E-03    21.834        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          4.7938        2.0779        .63491E-04   -1.5270    
  11  norm          7.7987        7.2098        .14361E-03   -1.5149    
  12  Prefactor     15.580        12.929        .10147E-03   -1.4918    
  13  Prefactor     .10000E-03    32.692        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     505.01        348.53        .91353E-04   -1.1175    
  15  Prefactor     31.774        28.406        .71088E-04   -1.4580    
  16  Prefactor     4.7597        36.752        .92189E-03   -1.5272    
  17  norm          50.198        45.026        .56595E-04   -1.4290    
  18  Prefactor     .10000E-03    158.33        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     9.3244        8.3270        .13125E-03   -1.5097    
  20  Prefactor     9.5220        31.408        .12987E-03   -1.5091    
  21  Prefactor     .10000E-03    15.748        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    15.858        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     1.4126        8.7829        .36452E-03   -1.5470    
  24  Normalizat    .99446        .28535        .33225E-03   -.93216    
  25  Prefactor     1.1023        .20171        .23191E-03   -.89392    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.43996e-10
Minuit parameter uncertainties:
  1  6.05345e-07
  2  1.10611e-06
  3  0.000962001
  4  16.2876
  5  4.75919e-06
  6  27.3773
  7  16.0751
  8  70.5263
  9  0.000141141
  10  2.0779
  11  7.2106
  12  12.9314
  13  1.10992e-05
  14  350.017
  15  28.4184
  16  26.4745
  17  45.0562
  18  0.000925733
  19  8.32803
  20  31.4627
  21  2.07497e-05
  22  4.31665e-05
  23  7.04595
  24  0.285787
  25  0.201853
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
520    Prefactor:  1.102e+00  2.019e-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.945e-01  2.858e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.49
Ra Dec: 350.888 -3.290
Photon Index (Fixed Index): 2.16 +/- 0.00
Photon Flux (Fixed Index): 1.86e-07 +/- 8.04e-08
Energy Flux (Fixed Index): 7.60e-05 +/- 3.29e-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) = 5709.29139039
delta logL = 1.26059799454

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5709.2601993
delta logL = 1.29178908654

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.9805       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.9984       1.0000          .0000       5.0000    
     3 'Normalizat'    .84921       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1830       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=   5709.260     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      236 TOTAL
                     EDM=   .72E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.9795        14.442        .58791E-03    .31834E-02
   2  alpha         2.9990        3.9300        .19214        .22808E-03
   3  Normalizat    .84902        .14545        .80198E-01    .87395E-04
   4  Prefactor     1.1830        .10205        .50912E-01    .11957E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.97954
  alpha      = 2.99903
  Normalizat = 0.849016
  Prefactor  = 1.18302
 **********
 **   18 **HESSE 
 **********

 FCN=   5709.260     FROM HESSE     STATUS=OK            31 CALLS      267 TOTAL
                     EDM=   .45E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.9795        2.6640        .23516E-04   -1.5363    
   2  alpha         2.9990        .74892        .81322E-02    .20096    
   3  Normalizat    .84902        .28849        .35504E-03   -.98276    
   4  Prefactor     1.1830        .20872        .22507E-03   -.86855    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.50378e-10
Minuit parameter uncertainties:
  1  2.66411
  2  0.761108
  3  0.289013
  4  0.208869
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/808321': 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) = 5709.26019794
delta logL = 1.2917904431

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
520    Prefactor:  1.183e+00  2.089e-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:  8.490e-01  2.890e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 11.76
Ra Dec: 350.888 -3.290
Photon Index (Free Index): 3.00 +/- 0.76
Photon Flux (Free Index): 3.00e-07 +/- 1.18e-07
Energy Flux (Free Index): 6.25e-05 +/- 2.54e-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/808321/cmap_HighResolution_321494401_321753601_4FGL_J2323.5-0317_daily_bin317.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.86e-07', energy_flux2='6.25e-05', photon_flux_error='8.04e-08', dlogl='1.29e+00', energy_flux='7.60e-05', photon_flux2='3.00e-07', job_status='DONE', time_completed='2021-09-29 14:37:12.523939', photon_index_error2='0.76', photon_index2='3.00', ts='8.49', fit_tolerance='1e-08', GAL='1.10', photon_index_error='0.00', energy_flux_error2='2.54e-05', EG='0.99', time_epoch_completed='1632951432.52', return_code='0', job_id='808321', GAL2='1.18', EG2='0.85', return_code2='0', energy_flux_error='3.29e-05', photon_flux_error2='1.18e-07', ts2='11.76', photon_index='2.16' WHERE bin_id='317' AND source_name='4FGL J2323.5-0317' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 14:37:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0227>
Subject: Job 808321: <4FGL_J2323.5-0317_daily_bin317> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2323.5-0317_daily_bin317 350.888 -3.29 321494401 321753601 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 :                                   580.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             289.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   700 sec.
    Turnaround time :                            702 sec.

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

