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


Performing analysis on: 4FGL_J2323.5-0317_daily_bin548
RA = 350.888, Dec = -3.29
tmin = 381369601, tmax = 381628801
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='809509', job_status='RUN', time_executed='2021-09-29 14:33:33.514970', time_epoch_executed='1632951213.51' WHERE source_name='4FGL J2323.5-0317' and cadence='daily' and bin_id='548'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/809509

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/809509/ft1_4FGL_J2323.5-0317_daily_bin548.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/809509/ft2_4FGL_J2323.5-0317_daily_bin548.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/809509/ft1_4FGL_J2323.5-0317_daily_bin548.fits outfile=/scratch/kocevski/809509/ft1_filteredMKT_4FGL_J2323.5-0317_daily_bin548.fits ra=350.888 dec=-3.29 rad=12.0 tmin=381369601.0 tmax=381628801.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.60
user 3.35
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/809509/ft1_filtered_4FGL_J2323.5-0317_daily_bin548.fits" evtable="EVENTS" scfile=/scratch/kocevski/809509/ft2_4FGL_J2323.5-0317_daily_bin548.fits sctable="SC_DATA" outfile=/scratch/kocevski/809509/ltcube_381369601_381628801_4FGL_J2323.5-0317_daily_bin548.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/809509/ft2_4FGL_J2323.5-0317_daily_bin548.fits
.....................!
real 11.82
user 11.49
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/809509/ft1_filtered_4FGL_J2323.5-0317_daily_bin548.fits evtable="EVENTS" scfile=/scratch/kocevski/809509/ft2_4FGL_J2323.5-0317_daily_bin548.fits sctable="SC_DATA" expcube=/scratch/kocevski/809509/ltcube_381369601_381628801_4FGL_J2323.5-0317_daily_bin548.fits outfile=/scratch/kocevski/809509/expmap_381369601_381628801_4FGL_J2323.5-0317_daily_bin548.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/809509/ltcube_381369601_381628801_4FGL_J2323.5-0317_daily_bin548.fits
.....................!
real 189.72
user 185.40
sys 4.01

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 159 point sources and 0 extended sources

Setting source of interest to:
4FGL J2323.5-0317 @ 350.888 -3.29

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/809509/ft1_filtered_4FGL_J2323.5-0317_daily_bin548.fits scfile=/scratch/kocevski/809509/ft2_4FGL_J2323.5-0317_daily_bin548.fits outfile=/scratch/kocevski/809509/cmap_381369601_381628801_4FGL_J2323.5-0317_daily_bin548.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.57
user 0.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/809509/ft1_filtered_4FGL_J2323.5-0317_daily_bin548.fits scfile=/scratch/kocevski/809509/ft2_4FGL_J2323.5-0317_daily_bin548.fits outfile=/scratch/kocevski/809509/cmap_HighResolution_381369601_381628801_4FGL_J2323.5-0317_daily_bin548.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/809509/ft1_filtered_4FGL_J2323.5-0317_daily_bin548.fits evtable="EVENTS" scfile=/scratch/kocevski/809509/ft2_4FGL_J2323.5-0317_daily_bin548.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/809509/Model_4FGL_J2323.5-0317_daily_bin548.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/809509/ft1_filtered_4FGL_J2323.5-0317_daily_bin548.fits.....................!
real 49.13
user 47.89
sys 1.13

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    96.298       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .25993       1.0000         .10000E-03   10000.    
     5 'norm      '    17.190       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    9.5267       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    1.0367       1.0000         .10000E-03   10000.    
    11 'norm      '    4.3349       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    57.292       1.0000         .10000E-03   10000.    
    17 'norm      '    12.416       1.0000         .10000E-03   10000.    
    18 'Prefactor '    22.718       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    37.143       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10095E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    11.218       1.0000         .10000E-03   10000.    
    23 'Prefactor '    3.1958       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .90254       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .87419       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=   4751.284     FROM MIGRAD    STATUS=CONVERGED    569 CALLS     2894 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9.6152       -.19909E-06** at limit **
   2  Prefactor     96.312        74.652        .11299E-04   -.30345E-05
   3  Prefactor     .10000E-03    42.443       -.46845E-04** at limit **
   4  Prefactor     .29451        8.0185        .28228E-05   -.94533E-03
   5  norm          17.191        13.905        .17879E-06   -.26481E-04
   6  Prefactor     .10000E-03    17.189       -.73850E-06** at limit **
   7  Prefactor     9.5276        14.747       -.10157E-06   -.48279E-04
   8  Prefactor     .10000E-03    29.225        .12027E-04** at limit **
   9  Prefactor     .10000E-03    3.9101       -.78755E-07** at limit **
  10  norm          1.0364        1.0680        .78722E-08   -.65722E-03
  11  norm          4.3357        4.9592       -.85969E-06   -.14755E-03
  12  Prefactor     .10000E-03    4.5605       -.11381E-07** at limit **
  13  Prefactor     .10000E-03    54.974        .37048E-04** at limit **
  14  Prefactor     .10000E-03    128.40       -.36840E-04** at limit **
  15  Prefactor     .10000E-03    5.6867        .85722E-07** at limit **
  16  Prefactor     57.295        32.019        .92542E-06   -.84051E-04
  17  norm          12.401        19.411        .17959E-05   -.30862E-04
  18  Prefactor     22.715        45.951       -.24182E-05   -.65347E-05
  19  Prefactor     .10000E-03    2.8979        .58263E-07** at limit **
  20  Prefactor     37.140        35.736       -.11687E-05   -.84926E-04
  21  Prefactor     .10000E-03    51.930        .23057E-04** at limit **
  22  Prefactor     11.218        15.835       -.65042E-06   -.45068E-04
  23  Prefactor     3.1969        8.1266        .11607E-05   -.27176E-03
  24  Normalizat    .90255        .21607       -.89653E-06   -.18694E-03
  25  Prefactor     .87416        .15486       -.39966E-06   -.26228E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 96.3119
  Prefactor  = 0.0001
  Prefactor  = 0.294511
  norm       = 17.1908
  Prefactor  = 0.0001
  Prefactor  = 9.52764
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.0364
  norm       = 4.33568
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 57.2949
  norm       = 12.4013
  Prefactor  = 22.7155
  Prefactor  = 0.0001
  Prefactor  = 37.1403
  Prefactor  = 0.000100001
  Prefactor  = 11.2178
  Prefactor  = 3.19694
  Normalizat = 0.902545
  Prefactor  = 0.874161
 **********
 **   18 **HESSE 
 **********

 FCN=   4751.284     FROM HESSE     STATUS=OK           425 CALLS     3319 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9.6871        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     96.312        74.662        .40960E-04   -1.3742    
   3  Prefactor     .10000E-03    42.440        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .29451        45.040        .37520E-02   -1.5599    
   5  norm          17.191        13.912        .96600E-04   -1.4878    
   6  Prefactor     .10000E-03    17.214        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     9.5276        14.749        .12984E-03   -1.5091    
   8  Prefactor     .10000E-03    29.267        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    3.9193        .13308E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.0364        1.0321        .68101E-03   -1.5504    
  11  norm          4.3357        4.9478        .15769E-03   -1.5291    
  12  Prefactor     .10000E-03    4.5744        .14374E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    55.138        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    128.50        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    5.7011        .16031E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     57.295        32.008        .53000E-04   -1.4193    
  17  norm          12.401        19.310        .11368E-03   -1.5004    
  18  Prefactor     22.715        45.992        .84038E-04   -1.4754    
  19  Prefactor     .10000E-03    2.9402        .11408E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     37.140        35.756        .65761E-04   -1.4488    
  21  Prefactor     .10000E-03    53.198        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     11.218        15.847        .11961E-03   -1.5038    
  23  Prefactor     3.1969        8.0993        .22666E-03   -1.5350    
  24  Normalizat    .90255        .25098        .27522E-03   -.96371    
  25  Prefactor     .87416        .18133        .20441E-03   -.97050    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.44951e-08
Minuit parameter uncertainties:
  1  0.000118281
  2  74.7352
  3  7.18481e-05
  4  7.2885
  5  13.9143
  6  9.76461e-06
  7  14.7549
  8  2.57872e-05
  9  8.45869e-06
  10  1.03217
  11  4.94822
  12  3.972e-07
  13  5.78929e-05
  14  1.72497e-05
  15  1.18679e-05
  16  32.0176
  17  19.3199
  18  46.0638
  19  1.03693e-05
  20  35.7771
  21  0.000414821
  22  15.8531
  23  8.10211
  24  0.251309
  25  0.181459
Done.

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

Extracting fit parameters...

4FGL J2323.5-0317
   Spectrum: LogParabola
373         norm:  1.036e+00  1.032e+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.742e-01  1.815e-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.025e-01  2.513e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.34
Ra Dec: 350.888 -3.290
Photon Index (Fixed Index): 2.16 +/- 0.00
Photon Flux (Fixed Index): 4.01e-08 +/- 3.99e-08
Energy Flux (Fixed Index): 1.64e-05 +/- 1.64e-05

TS (Fixed Index): 1.34
Ra Dec: 350.888 -3.290
Photon Flux Upper Limit: 1.26e-07 ph cm-2 s-1
Energy Flux Upper Limit: 5.17e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/809509/likelihoodResults_381369601_381628801_4FGL_J2323.5-0317_daily_bin548.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) = 4751.2814825
delta logL = 0.00262786683197

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4751.28128408
delta logL = 0.00282628846799

Fit tolerance = 1e-08

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

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

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4751.281     FROM MIGRAD    STATUS=CONVERGED     79 CALLS      234 TOTAL
                     EDM=   .60E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.0214        1.0584        .67410E-03    .18135E-03
   2  alpha         2.2206        .81344        .17010E-01    .19877E-04
   3  Normalizat    .89984        .24641        .27559E-03   -.74750E-04
   4  Prefactor     .87561        .18073        .20427E-03   -.65730E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.0214
  alpha      = 2.22056
  Normalizat = 0.899836
  Prefactor  = 0.875607
 **********
 **   18 **HESSE 
 **********

 FCN=   4751.281     FROM HESSE     STATUS=OK            25 CALLS      259 TOTAL
                     EDM=   .55E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.0214        1.0383        .26964E-04   -1.5506    
   2  alpha         2.2206        .79848        .68041E-03   -.11201    
   3  Normalizat    .89984        .24654        .11023E-04   -.96466    
   4  Prefactor     .87561        .18076        .81706E-05   -.96999    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.54076e-11
Minuit parameter uncertainties:
  1  1.03827
  2  0.812906
  3  0.246847
  4  0.180887
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/809509': 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) = 4751.28128408
delta logL = 0.0028262885171

Extracting fit parameters...

4FGL J2323.5-0317
   Spectrum: LogParabola
373         norm:  1.021e+00  1.038e+00  1.000e-04  1.000e+04 ( 1.000e-11)
374        alpha:  2.221e+00  8.129e-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.756e-01  1.809e-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.998e-01  2.468e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.35
Ra Dec: 350.888 -3.290
Photon Index (Free Index): 2.22 +/- 0.81
Photon Flux (Free Index): 4.19e-08 +/- 4.70e-08
Energy Flux (Free Index): 1.59e-05 +/- 1.72e-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/809509/cmap_HighResolution_381369601_381628801_4FGL_J2323.5-0317_daily_bin548.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.17e-05', comment='SUCCESS', photon_flux='4.01e-08', energy_flux2='1.59e-05', photon_flux_error='3.99e-08', dlogl='2.83e-03', energy_flux='1.64e-05', photon_flux2='4.19e-08', job_status='DONE', time_completed='2021-09-29 14:43:09.900289', photon_index_error2='0.81', photon_index2='2.22', ts='1.34', fit_tolerance='1e-08', GAL='0.87', photon_index_error='0.00', photon_flux_upper_limit='1.26e-07', energy_flux_error2='1.72e-05', EG='0.90', time_epoch_completed='1632951789.9', return_code='0', job_id='809509', GAL2='0.88', EG2='0.90', return_code2='0', energy_flux_error='1.64e-05', photon_flux_error2='4.70e-08', ts2='1.35', photon_index='2.16' WHERE bin_id='548' AND source_name='4FGL J2323.5-0317' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 14:43:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0268>
Subject: Job 809509: <4FGL_J2323.5-0317_daily_bin548> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2323.5-0317_daily_bin548 350.888 -3.29 381369601 381628801 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 :                                   575.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             275.12 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   761 sec.
    Turnaround time :                            763 sec.

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

