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


Performing analysis on: 4FGL_J2323.5-0317_daily_bin549
RA = 350.888, Dec = -3.29
tmin = 381628801, tmax = 381888001
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='809511', job_status='RUN', time_executed='2021-09-29 14:34:30.381216', time_epoch_executed='1632951270.38' WHERE source_name='4FGL J2323.5-0317' and cadence='daily' and bin_id='549'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/809511

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/809511/ft1_4FGL_J2323.5-0317_daily_bin549.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/809511/ft2_4FGL_J2323.5-0317_daily_bin549.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/809511/ft1_4FGL_J2323.5-0317_daily_bin549.fits outfile=/scratch/kocevski/809511/ft1_filteredMKT_4FGL_J2323.5-0317_daily_bin549.fits ra=350.888 dec=-3.29 rad=12.0 tmin=381628801.0 tmax=381888001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 4.03
user 3.81
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/809511/ft2_4FGL_J2323.5-0317_daily_bin549.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/809511/ft1_filteredMKT_4FGL_J2323.5-0317_daily_bin549.fits evtable="EVENTS" outfile="/scratch/kocevski/809511/ft1_filtered_4FGL_J2323.5-0317_daily_bin549.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/809511/ft1_filtered_4FGL_J2323.5-0317_daily_bin549.fits" evtable="EVENTS" scfile=/scratch/kocevski/809511/ft2_4FGL_J2323.5-0317_daily_bin549.fits sctable="SC_DATA" outfile=/scratch/kocevski/809511/ltcube_381628801_381888001_4FGL_J2323.5-0317_daily_bin549.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/809511/ft2_4FGL_J2323.5-0317_daily_bin549.fits
.....................!
real 11.64
user 11.30
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/809511/ft1_filtered_4FGL_J2323.5-0317_daily_bin549.fits evtable="EVENTS" scfile=/scratch/kocevski/809511/ft2_4FGL_J2323.5-0317_daily_bin549.fits sctable="SC_DATA" expcube=/scratch/kocevski/809511/ltcube_381628801_381888001_4FGL_J2323.5-0317_daily_bin549.fits outfile=/scratch/kocevski/809511/expmap_381628801_381888001_4FGL_J2323.5-0317_daily_bin549.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/809511/ltcube_381628801_381888001_4FGL_J2323.5-0317_daily_bin549.fits
.....................!
real 190.80
user 186.10
sys 4.39

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/809511/ft1_filtered_4FGL_J2323.5-0317_daily_bin549.fits scfile=/scratch/kocevski/809511/ft2_4FGL_J2323.5-0317_daily_bin549.fits outfile=/scratch/kocevski/809511/cmap_381628801_381888001_4FGL_J2323.5-0317_daily_bin549.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/809511/ft1_filtered_4FGL_J2323.5-0317_daily_bin549.fits scfile=/scratch/kocevski/809511/ft2_4FGL_J2323.5-0317_daily_bin549.fits outfile=/scratch/kocevski/809511/cmap_HighResolution_381628801_381888001_4FGL_J2323.5-0317_daily_bin549.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.53
user 0.36
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/809511/ft1_filtered_4FGL_J2323.5-0317_daily_bin549.fits evtable="EVENTS" scfile=/scratch/kocevski/809511/ft2_4FGL_J2323.5-0317_daily_bin549.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/809511/Model_4FGL_J2323.5-0317_daily_bin549.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/809511/ft1_filtered_4FGL_J2323.5-0317_daily_bin549.fits.....................!
real 51.03
user 49.76
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.2179       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10074E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10224E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10089E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    25.216       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10255E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    19.415       1.0000         .10000E-03   10000.    
     8 'Prefactor '    15.075       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10349E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    2.2210       1.0000         .10000E-03   10000.    
    11 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    10.353       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10138E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .91188E-02   1.0000         .10000E-03   10000.    
    16 'Prefactor '    77.819       1.0000         .10000E-03   10000.    
    17 'norm      '    28.751       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.2408       1.0000         .10000E-03   10000.    
    20 'Prefactor '    31.473       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    3.4417       1.0000         .10000E-03   10000.    
    23 'Prefactor '    8.5575       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .90892       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .93780       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=   5152.359     FROM MIGRAD    STATUS=CONVERGED    562 CALLS     2850 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.2171        7.9654        .11724E-06   -.34731E-04
   2  Prefactor     .10000E-03    24.229        .15739E-07** at limit **
   3  Prefactor     .10000E-03    16.539       -.12181E-06** at limit **
   4  Prefactor     .10000E-03    7.7313       -.42201E-07** at limit **
   5  norm          25.223        17.531        .84435E-06   -.60528E-04
   6  Prefactor     .10000E-03    13.919       -.10201E-06** at limit **
   7  Prefactor     19.417        17.619        .40853E-06   -.47478E-04
   8  Prefactor     15.160        54.832        .74627E-05    .17443E-03
   9  Prefactor     .10000E-03    4.8271        .24457E-05** at limit **
  10  norm          2.2215        1.1373        .34931E-07   -.16433E-02
  11  norm          .10000E-03    3.7012        .10866E-05** at limit **
  12  Prefactor     10.355        9.8740        .15266E-06   -.17830E-04
  13  Prefactor     .10000E-03    31.517       -.21511E-06** at limit **
  14  Prefactor     .10000E-03    68.582        .15602E-06** at limit **
  15  Prefactor     .10073E-03    13.992        .31994E-05** at limit **
  16  Prefactor     77.815        37.580        .36431E-06   -.94036E-04
  17  norm          28.777        26.030       -.22790E-05   -.60126E-03
  18  Prefactor     .10000E-03    24.119        .39087E-06** at limit **
  19  Prefactor     1.2408        7.0294        .32946E-05   -.57233E-03
  20  Prefactor     31.523        42.394        .24582E-05    .12582E-03
  21  Prefactor     .10000E-03    33.215       -.22315E-06** at limit **
  22  Prefactor     3.4454        14.849        .14523E-04    .71020E-04
  23  Prefactor     8.5567        8.8531        .24050E-05    .27091E-04
  24  Normalizat    .90879        .23677       -.10547E-04   -.29961E-03
  25  Prefactor     .93786        .15735        .39718E-05   -.81512E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.21706
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 25.223
  Prefactor  = 0.0001
  Prefactor  = 19.417
  Prefactor  = 15.16
  Prefactor  = 0.0001
  norm       = 2.22145
  norm       = 0.0001
  Prefactor  = 10.3548
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100734
  Prefactor  = 77.8145
  norm       = 28.7766
  Prefactor  = 0.0001
  Prefactor  = 1.24082
  Prefactor  = 31.5229
  Prefactor  = 0.0001
  Prefactor  = 3.44545
  Prefactor  = 8.55671
  Normalizat = 0.908794
  Prefactor  = 0.937858
 **********
 **   18 **HESSE 
 **********

 FCN=   5152.359     FROM HESSE     STATUS=OK           419 CALLS     3269 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.2171        7.9551        .17598E-03   -1.5251    
   2  Prefactor     .10000E-03    24.240        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    16.552        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    7.7662        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          25.223        17.547        .79773E-04   -1.4703    
   6  Prefactor     .10000E-03    13.933        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     19.417        17.624        .90899E-04   -1.4826    
   8  Prefactor     15.160        54.872        .10316E-03   -1.4929    
   9  Prefactor     .10000E-03    4.8316        .15387E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          2.2215        1.1283        .51981E-04   -1.5410    
  11  norm          .10000E-03    3.7346        .13481E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     10.355        9.8717        .12453E-03   -1.5064    
  13  Prefactor     .10000E-03    31.538        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    68.584        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10073E-03    62.886        .41730E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     77.815        37.570        .45522E-04   -1.3941    
  17  norm          28.777        24.646        .74718E-04   -1.4635    
  18  Prefactor     .10000E-03    24.128        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     1.2408        5.7554        .28994E-03   -1.5485    
  20  Prefactor     31.523        42.386        .71422E-04   -1.4584    
  21  Prefactor     .10000E-03    33.540        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     3.4454        15.082        .10901E-02   -1.5337    
  23  Prefactor     8.5567        8.8484        .68516E-03   -1.5123    
  24  Normalizat    .90879        .26072        .29488E-03   -.96152    
  25  Prefactor     .93786        .17695        .21092E-03   -.94830    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.36954e-08
Minuit parameter uncertainties:
  1  7.95673
  2  9.84099e-05
  3  3.72729e-05
  4  8.17546e-06
  5  17.5507
  6  2.79854e-05
  7  17.6289
  8  55.0552
  9  2.55971e-05
  10  1.12833
  11  1.27877e-05
  12  9.87323
  13  0.000221859
  14  0.000149302
  15  0.0136066
  16  37.5812
  17  24.6551
  18  0.000119725
  19  5.34533
  20  42.4268
  21  0.000149492
  22  14.423
  23  8.84977
  24  0.261087
  25  0.17706
Done.

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

Extracting fit parameters...

4FGL J2323.5-0317
   Spectrum: LogParabola
373         norm:  2.221e+00  1.128e+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:  9.379e-01  1.771e-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.088e-01  2.611e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 9.68
Ra Dec: 350.888 -3.290
Photon Index (Fixed Index): 2.16 +/- 0.00
Photon Flux (Fixed Index): 8.60e-08 +/- 4.37e-08
Energy Flux (Fixed Index): 3.52e-05 +/- 1.79e-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) = 5152.33237922
delta logL = 0.0270902565289

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5152.33174977
delta logL = 0.0277197056812

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.2178       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2779       1.0000          .0000       5.0000    
     3 'Normalizat'    .89839       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94170       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=   5152.332     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      202 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.2174        25.432        .69037E-02    .12487E-03
   2  alpha         2.2780        3.0746        .30757        .10350E-04
   3  Normalizat    .89838        .22243        .66996E-01    .14804E-04
   4  Prefactor     .94170        .12426        .45534E-01    .44653E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 2.21744
  alpha      = 2.27795
  Normalizat = 0.898383
  Prefactor  = 0.941704
 **********
 **   18 **HESSE 
 **********

 FCN=   5152.332     FROM HESSE     STATUS=OK            33 CALLS      235 TOTAL
                     EDM=   .11E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.2174        1.1044        .50582E-04   -1.5410    
   2  alpha         2.2780        .49960        .12247E-01   -.88936E-01
   3  Normalizat    .89838        .24351        .29637E-03   -.96517    
   4  Prefactor     .94170        .17471        .21050E-03   -.94699    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.08468e-13
Minuit parameter uncertainties:
  1  1.10446
  2  0.503018
  3  0.243807
  4  0.174818
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/809511': 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) = 5152.33174971
delta logL = 0.0277197681144

Extracting fit parameters...

4FGL J2323.5-0317
   Spectrum: LogParabola
373         norm:  2.217e+00  1.104e+00  1.000e-04  1.000e+04 ( 1.000e-11)
374        alpha:  2.278e+00  5.030e-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:  9.417e-01  1.748e-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.984e-01  2.438e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.71
Ra Dec: 350.888 -3.290
Photon Index (Free Index): 2.28 +/- 0.50
Photon Flux (Free Index): 9.63e-08 +/- 6.37e-08
Energy Flux (Free Index): 3.42e-05 +/- 1.74e-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/809511/cmap_HighResolution_381628801_381888001_4FGL_J2323.5-0317_daily_bin549.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.60e-08', energy_flux2='3.42e-05', photon_flux_error='4.37e-08', dlogl='2.77e-02', energy_flux='3.52e-05', photon_flux2='9.63e-08', job_status='DONE', time_completed='2021-09-29 14:43:32.156045', photon_index_error2='0.50', photon_index2='2.28', ts='9.68', fit_tolerance='1e-08', GAL='0.94', photon_index_error='0.00', energy_flux_error2='1.74e-05', EG='0.91', time_epoch_completed='1632951812.16', return_code='0', job_id='809511', GAL2='0.94', EG2='0.90', return_code2='0', energy_flux_error='1.79e-05', photon_flux_error2='6.37e-08', ts2='9.71', photon_index='2.16' WHERE bin_id='549' AND source_name='4FGL J2323.5-0317' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 14:43:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0105>
Subject: Job 809511: <4FGL_J2323.5-0317_daily_bin549> in cluster <slac> Done

Job <4FGL_J2323.5-0317_daily_bin549> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Wed Sep 29 14:30:28 2021
Job was executed on host(s) <bullet0105>, 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:32 2021
Results reported at Wed Sep 29 14:43:32 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2323.5-0317_daily_bin549 350.888 -3.29 381628801 381888001 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 :                                   541.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             284.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   783 sec.
    Turnaround time :                            784 sec.

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

