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


Performing analysis on: 4FGL_J2323.5-0317_daily_bin421
RA = 350.888, Dec = -3.29
tmin = 348451201, tmax = 348710401
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='809325', job_status='RUN', time_executed='2021-09-29 14:31:02.674665', time_epoch_executed='1632951062.67' WHERE source_name='4FGL J2323.5-0317' and cadence='daily' and bin_id='421'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/809325

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/809325/ft1_4FGL_J2323.5-0317_daily_bin421.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/809325/ft2_4FGL_J2323.5-0317_daily_bin421.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/809325/ft1_4FGL_J2323.5-0317_daily_bin421.fits outfile=/scratch/kocevski/809325/ft1_filteredMKT_4FGL_J2323.5-0317_daily_bin421.fits ra=350.888 dec=-3.29 rad=12.0 tmin=348451201.0 tmax=348710401.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.56
user 3.22
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/809325/ft1_filtered_4FGL_J2323.5-0317_daily_bin421.fits" evtable="EVENTS" scfile=/scratch/kocevski/809325/ft2_4FGL_J2323.5-0317_daily_bin421.fits sctable="SC_DATA" outfile=/scratch/kocevski/809325/ltcube_348451201_348710401_4FGL_J2323.5-0317_daily_bin421.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/809325/ft2_4FGL_J2323.5-0317_daily_bin421.fits
.....................!
real 12.37
user 12.00
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/809325/ft1_filtered_4FGL_J2323.5-0317_daily_bin421.fits evtable="EVENTS" scfile=/scratch/kocevski/809325/ft2_4FGL_J2323.5-0317_daily_bin421.fits sctable="SC_DATA" expcube=/scratch/kocevski/809325/ltcube_348451201_348710401_4FGL_J2323.5-0317_daily_bin421.fits outfile=/scratch/kocevski/809325/expmap_348451201_348710401_4FGL_J2323.5-0317_daily_bin421.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/809325/ltcube_348451201_348710401_4FGL_J2323.5-0317_daily_bin421.fits
.....................!
real 191.66
user 186.21
sys 4.97

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/809325/ft1_filtered_4FGL_J2323.5-0317_daily_bin421.fits scfile=/scratch/kocevski/809325/ft2_4FGL_J2323.5-0317_daily_bin421.fits outfile=/scratch/kocevski/809325/cmap_348451201_348710401_4FGL_J2323.5-0317_daily_bin421.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.54
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/809325/ft1_filtered_4FGL_J2323.5-0317_daily_bin421.fits scfile=/scratch/kocevski/809325/ft2_4FGL_J2323.5-0317_daily_bin421.fits outfile=/scratch/kocevski/809325/cmap_HighResolution_348451201_348710401_4FGL_J2323.5-0317_daily_bin421.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.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/809325/ft1_filtered_4FGL_J2323.5-0317_daily_bin421.fits evtable="EVENTS" scfile=/scratch/kocevski/809325/ft2_4FGL_J2323.5-0317_daily_bin421.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/809325/Model_4FGL_J2323.5-0317_daily_bin421.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/809325/ft1_filtered_4FGL_J2323.5-0317_daily_bin421.fits.....................!
real 47.79
user 46.47
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    18.057       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    6.0157       1.0000         .10000E-03   10000.    
     6 'Prefactor '    70.252       1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.1510       1.0000         .10000E-03   10000.    
     8 'Prefactor '    29.233       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10094E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    1.4162       1.0000         .10000E-03   10000.    
    11 'norm      '    .28657E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    26.243       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .85522E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    31.032       1.0000         .10000E-03   10000.    
    18 'Prefactor '    45.055       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    13.305       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    8.4762       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.2004       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .64645       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=   4591.100     FROM MIGRAD    STATUS=CONVERGED    566 CALLS     2958 TOTAL
                     EDM=   .13E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     18.058        14.541       -.36679E-07    .38004E-05
   2  Prefactor     .10000E-03    18.608        .12312E-06** at limit **
   3  Prefactor     .10000E-03    34.277       -.61312E-06** at limit **
   4  Prefactor     .10000E-03    7.3046       -.54142E-07** at limit **
   5  norm          6.0162        10.180        .32145E-05   -.38523E-04
   6  Prefactor     70.251        38.601       -.13628E-06   -.33736E-06
   7  Prefactor     5.1516        18.613       -.47074E-06   -.68885E-05
   8  Prefactor     29.192        49.265       -.22593E-05   -.64123E-04
   9  Prefactor     .10000E-03    6.6093       -.16832E-05** at limit **
  10  norm          1.4156        1.1396        .20017E-06   -.49239E-04
  11  norm          .10000E-03    4.4829       -.23639E-06** at limit **
  12  Prefactor     .10000E-03    2.4190        .22009E-07** at limit **
  13  Prefactor     26.245        46.390       -.66357E-06   -.68097E-05
  14  Prefactor     .10000E-03    72.105        .91442E-06** at limit **
  15  Prefactor     .10002E-03    10.106        .49834E-06** at limit **
  16  Prefactor     .10000E-03    36.962        .98735E-06** at limit **
  17  norm          31.040        27.976       -.93321E-06   -.63969E-04
  18  Prefactor     45.019        86.351       -.21211E-05   -.41070E-04
  19  Prefactor     .10000E-03    3.7774        .14641E-06** at limit **
  20  Prefactor     13.321        40.151        .17210E-05    .25857E-04
  21  Prefactor     .10000E-03    23.733        .90922E-06** at limit **
  22  Prefactor     .10000E-03    11.661        .17631E-07** at limit **
  23  Prefactor     8.4766        9.0977       -.11251E-07    .58028E-05
  24  Normalizat    1.2005        .22547        .16506E-05   -.74367E-04
  25  Prefactor     .64639        .15279       -.10144E-05    .53298E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 18.0575
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.01625
  Prefactor  = 70.2507
  Prefactor  = 5.15156
  Prefactor  = 29.1923
  Prefactor  = 0.0001
  norm       = 1.41556
  norm       = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 26.2447
  Prefactor  = 0.0001
  Prefactor  = 0.000100023
  Prefactor  = 0.0001
  norm       = 31.0403
  Prefactor  = 45.0188
  Prefactor  = 0.0001
  Prefactor  = 13.3214
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.47662
  Normalizat = 1.20052
  Prefactor  = 0.646393
 **********
 **   18 **HESSE 
 **********

 FCN=   4591.100     FROM HESSE     STATUS=OK           423 CALLS     3381 TOTAL
                     EDM=   .75E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     18.058        14.536        .94252E-04   -1.4858    
   2  Prefactor     .10000E-03    18.610        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    34.543        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    7.3686        .17885E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          6.0162        10.312        .81853E-03   -1.5217    
   6  Prefactor     70.251        38.606        .47893E-04   -1.4030    
   7  Prefactor     5.1516        18.619        .17714E-03   -1.5254    
   8  Prefactor     29.192        50.038        .74101E-04   -1.4627    
   9  Prefactor     .10000E-03    6.5899        .16938E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.4156        1.1242        .36375E-04   -1.5470    
  11  norm          .10000E-03    15.606        .26745E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    2.4212        .10292E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     26.245        46.163        .78199E-04   -1.4683    
  14  Prefactor     .10000E-03    72.137        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10002E-03    48.393        .36389E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    37.430        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          31.040        25.645        .71926E-04   -1.4593    
  18  Prefactor     45.019        87.164        .59731E-04   -1.4365    
  19  Prefactor     .10000E-03    3.8344        .12805E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     13.321        40.449        .10981E-03   -1.4978    
  21  Prefactor     .10000E-03    23.910        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    11.716        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     8.4766        9.1038        .13769E-03   -1.5126    
  24  Normalizat    1.2005        .26212        .24252E-03   -.86587    
  25  Prefactor     .64639        .17755        .22987E-03   -1.0567    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.5408e-10
Minuit parameter uncertainties:
  1  14.5391
  2  5.26459e-06
  3  5.53969e-05
  4  4.01248e-06
  5  10.315
  6  38.6201
  7  18.6396
  8  50.1096
  9  2.01023e-05
  10  1.12421
  11  0.000381363
  12  7.84738e-07
  13  46.2262
  14  0.000102798
  15  0.00210168
  16  7.87618e-06
  17  25.6545
  18  87.4124
  19  2.71817e-06
  20  40.5328
  21  1.48122e-05
  22  1.80613e-05
  23  9.10531
  24  0.262408
  25  0.177707
Done.

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

Extracting fit parameters...

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

EG_v02
   Spectrum: FileFunction
519   Normalization:  1.201e+00  2.624e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.40
Ra Dec: 350.888 -3.290
Photon Index (Fixed Index): 2.16 +/- 0.00
Photon Flux (Fixed Index): 5.48e-08 +/- 4.35e-08
Energy Flux (Fixed Index): 2.24e-05 +/- 1.78e-05

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

Saving results to:
/scratch/kocevski/809325/likelihoodResults_348451201_348710401_4FGL_J2323.5-0317_daily_bin421.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) = 4591.0135863
delta logL = 0.0868223022817

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4591.00737066
delta logL = 0.0930379457486

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.2872       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4518       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1838       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .65468       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=   4591.007     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      208 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.2869        23.455        .97653E-02    .42738E-03
   2  alpha         2.4520        3.3734        .35548        .24370E-04
   3  Normalizat    1.1838        .74620E-01    .55165E-01    .47109E-05
   4  Prefactor     .65470        .58396E-01    .41795E-01    .13671E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.28695
  alpha      = 2.45199
  Normalizat = 1.18385
  Prefactor  = 0.654702
 **********
 **   18 **HESSE 
 **********

 FCN=   4591.007     FROM HESSE     STATUS=OK            33 CALLS      241 TOTAL
                     EDM=   .80E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.2869        1.1699        .56515E-04   -1.5481    
   2  alpha         2.4520        .71556        .13555E-01   -.19206E-01
   3  Normalizat    1.1838        .24746        .24393E-03   -.87103    
   4  Prefactor     .65470        .17661        .22855E-03   -1.0533    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.98947e-10
Minuit parameter uncertainties:
  1  1.1699
  2  0.725717
  3  0.247703
  4  0.176762
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/809325': 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) = 4591.00737053
delta logL = 0.0930380764885

Extracting fit parameters...

4FGL J2323.5-0317
   Spectrum: LogParabola
373         norm:  1.287e+00  1.170e+00  1.000e-04  1.000e+04 ( 1.000e-11)
374        alpha:  2.452e+00  7.257e-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:  6.547e-01  1.768e-01  0.000e+00  1.000e+01 ( 1.000e+00)
521        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
522        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
519   Normalization:  1.184e+00  2.477e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.58
Ra Dec: 350.888 -3.290
Photon Index (Free Index): 2.45 +/- 0.73
Photon Flux (Free Index): 6.71e-08 +/- 5.51e-08
Energy Flux (Free Index): 2.00e-05 +/- 1.68e-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/809325/cmap_HighResolution_348451201_348710401_4FGL_J2323.5-0317_daily_bin421.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.08e-05', comment='SUCCESS', photon_flux='5.48e-08', energy_flux2='2.00e-05', photon_flux_error='4.35e-08', dlogl='9.30e-02', energy_flux='2.24e-05', photon_flux2='6.71e-08', job_status='DONE', time_completed='2021-09-29 14:40:42.980984', photon_index_error2='0.73', photon_index2='2.45', ts='2.40', fit_tolerance='1e-08', GAL='0.65', photon_index_error='0.00', photon_flux_upper_limit='1.48e-07', energy_flux_error2='1.68e-05', EG='1.20', time_epoch_completed='1632951642.98', return_code='0', job_id='809325', GAL2='0.65', EG2='1.18', return_code2='0', energy_flux_error='1.78e-05', photon_flux_error2='5.51e-08', ts2='2.58', photon_index='2.16' WHERE bin_id='421' AND source_name='4FGL J2323.5-0317' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 14:40:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0117>
Subject: Job 809325: <4FGL_J2323.5-0317_daily_bin421> in cluster <slac> Done

Job <4FGL_J2323.5-0317_daily_bin421> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Wed Sep 29 14:30:14 2021
Job was executed on host(s) <bullet0117>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 14:30:16 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 14:30:16 2021
Terminated at Wed Sep 29 14:40:43 2021
Results reported at Wed Sep 29 14:40:43 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2323.5-0317_daily_bin421 350.888 -3.29 348451201 348710401 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 :                                   578.25 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             321.05 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   627 sec.
    Turnaround time :                            629 sec.

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

