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


Performing analysis on: 4FGL_J2323.5-0317_daily_bin996
RA = 350.888, Dec = -3.29
tmin = 497491201, tmax = 497750401
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='811277', job_status='RUN', time_executed='2021-09-29 14:37:15.007341', time_epoch_executed='1632951435.01' WHERE source_name='4FGL J2323.5-0317' and cadence='daily' and bin_id='996'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/811277

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/811277/ft1_4FGL_J2323.5-0317_daily_bin996.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/811277/ft2_4FGL_J2323.5-0317_daily_bin996.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/811277/ft1_4FGL_J2323.5-0317_daily_bin996.fits outfile=/scratch/kocevski/811277/ft1_filteredMKT_4FGL_J2323.5-0317_daily_bin996.fits ra=350.888 dec=-3.29 rad=12.0 tmin=497491201.0 tmax=497750401.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.93
user 3.68
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/811277/ft1_filtered_4FGL_J2323.5-0317_daily_bin996.fits" evtable="EVENTS" scfile=/scratch/kocevski/811277/ft2_4FGL_J2323.5-0317_daily_bin996.fits sctable="SC_DATA" outfile=/scratch/kocevski/811277/ltcube_497491201_497750401_4FGL_J2323.5-0317_daily_bin996.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/811277/ft2_4FGL_J2323.5-0317_daily_bin996.fits
.....................!
real 11.85
user 11.51
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/811277/ft1_filtered_4FGL_J2323.5-0317_daily_bin996.fits evtable="EVENTS" scfile=/scratch/kocevski/811277/ft2_4FGL_J2323.5-0317_daily_bin996.fits sctable="SC_DATA" expcube=/scratch/kocevski/811277/ltcube_497491201_497750401_4FGL_J2323.5-0317_daily_bin996.fits outfile=/scratch/kocevski/811277/expmap_497491201_497750401_4FGL_J2323.5-0317_daily_bin996.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/811277/ltcube_497491201_497750401_4FGL_J2323.5-0317_daily_bin996.fits
.....................!
real 189.68
user 184.78
sys 4.60

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/811277/ft1_filtered_4FGL_J2323.5-0317_daily_bin996.fits scfile=/scratch/kocevski/811277/ft2_4FGL_J2323.5-0317_daily_bin996.fits outfile=/scratch/kocevski/811277/cmap_497491201_497750401_4FGL_J2323.5-0317_daily_bin996.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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/811277/ft1_filtered_4FGL_J2323.5-0317_daily_bin996.fits scfile=/scratch/kocevski/811277/ft2_4FGL_J2323.5-0317_daily_bin996.fits outfile=/scratch/kocevski/811277/cmap_HighResolution_497491201_497750401_4FGL_J2323.5-0317_daily_bin996.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.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/811277/ft1_filtered_4FGL_J2323.5-0317_daily_bin996.fits evtable="EVENTS" scfile=/scratch/kocevski/811277/ft2_4FGL_J2323.5-0317_daily_bin996.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/811277/Model_4FGL_J2323.5-0317_daily_bin996.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/811277/ft1_filtered_4FGL_J2323.5-0317_daily_bin996.fits.....................!
real 58.34
user 57.05
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10401E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    30.723       1.0000         .10000E-03   10000.    
     3 'Prefactor '    178.50       1.0000         .10000E-03   10000.    
     4 'Prefactor '    12.561       1.0000         .10000E-03   10000.    
     5 'norm      '    51.664       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10078E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    27.163       1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.0336       1.0000         .10000E-03   10000.    
    10 'norm      '    .50786       1.0000         .10000E-03   10000.    
    11 'norm      '    5.4139       1.0000         .10000E-03   10000.    
    12 'Prefactor '    13.796       1.0000         .10000E-03   10000.    
    13 'Prefactor '    19.914       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10418E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .61049       1.0000         .10000E-03   10000.    
    17 'norm      '    .10036E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    33.246       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .26586       1.0000         .10000E-03   10000.    
    20 'Prefactor '    36.183       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .24744       1.0000         .10000E-03   10000.    
    22 'Prefactor '    15.895       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .77681       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .86785       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=   6183.417     FROM MIGRAD    STATUS=CONVERGED    629 CALLS     3024 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 11.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10002E-03    9.5491       -.62521E-05** at limit **
   2  Prefactor     30.819        41.905       -.30685E-06   -.11117E-03
   3  Prefactor     178.48        47.808       -.25577E-06   -.22261E-04
   4  Prefactor     12.560        9.0569       -.24154E-06    .15563E-04
   5  norm          51.657        15.505       -.68387E-06    .23405E-03
   6  Prefactor     .10000E-03    11.416       -.11586E-06** at limit **
   7  Prefactor     .10000E-03    23.885       -.81226E-06** at limit **
   8  Prefactor     27.157        29.610        .84379E-06   -.60521E-05
   9  Prefactor     2.0303        5.5777       -.22270E-05    .25841E-03
  10  norm          .50779        .55126       -.80412E-07    .92650E-04
  11  norm          5.4130        5.2508        .50914E-07    .13917E-03
  12  Prefactor     13.794        11.158        .71120E-06    .29449E-03
  13  Prefactor     19.920        38.644       -.21444E-05    .11700E-03
  14  Prefactor     .10000E-03    135.01        .71975E-07** at limit **
  15  Prefactor     .10000E-03    6.5188       -.24395E-06** at limit **
  16  Prefactor     .61983        236.15       -.42933E-04   -.21547E-04
  17  norm          .10000E-03    10.011       -.58184E-07** at limit **
  18  Prefactor     33.246        56.030       -.67391E-06    .45205E-04
  19  Prefactor     .27222        1.9191       -.61621E-06    .98681E-04
  20  Prefactor     36.205        35.102        .88746E-06    .35759E-03
  21  Prefactor     .16249E-03    43.546       -.14455E-04** at limit **
  22  Prefactor     15.893        12.533        .83613E-07    .88246E-04
  23  Prefactor     .10000E-03    10.163       -.10606E-05** at limit **
  24  Normalizat    .77697        .17979        .18340E-05    .32978E-03
  25  Prefactor     .86791        .12607        .21465E-05    .91204E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100016
  Prefactor  = 30.8194
  Prefactor  = 178.476
  Prefactor  = 12.5598
  norm       = 51.6568
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 27.1571
  Prefactor  = 2.03032
  norm       = 0.507786
  norm       = 5.41297
  Prefactor  = 13.7944
  Prefactor  = 19.9198
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.619826
  norm       = 0.0001
  Prefactor  = 33.2464
  Prefactor  = 0.272218
  Prefactor  = 36.2052
  Prefactor  = 0.000162487
  Prefactor  = 15.8927
  Prefactor  = 0.000100001
  Normalizat = 0.776966
  Prefactor  = 0.867912
 **********
 **   18 **HESSE 
 **********

 FCN=   6183.417     FROM HESSE     STATUS=OK           439 CALLS     3463 TOTAL
                     EDM=   .45E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10002E-03    46.266        .35591E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     30.819        42.154        .72287E-04   -1.4597    
   3  Prefactor     178.48        47.899        .30210E-04   -1.3028    
   4  Prefactor     12.560        9.0582        .11302E-03   -1.4999    
   5  norm          51.657        15.508        .55797E-04   -1.4269    
   6  Prefactor     .10000E-03    11.426        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    24.245        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     27.157        29.606        .76866E-04   -1.4665    
   9  Prefactor     2.0303        5.5957        .14268E-02   -1.5423    
  10  norm          .50779        .53198        .58138E-03   -1.5565    
  11  norm          5.4130        5.2325        .16367E-03   -1.5243    
  12  Prefactor     13.794        11.120        .10784E-03   -1.4965    
  13  Prefactor     19.920        38.481        .89753E-04   -1.4815    
  14  Prefactor     .10000E-03    135.09        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    6.5628        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .61983        266.08        .72905E-02   -1.5551    
  17  norm          .10000E-03    10.025        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     33.246        56.173        .69497E-04   -1.4554    
  19  Prefactor     .27222        9.8549        .20212E-02   -1.5604    
  20  Prefactor     36.205        35.129        .66625E-04   -1.4504    
  21  Prefactor     .16249E-03    28.709        .97454E-01   -1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     15.893        12.540        .10046E-03   -1.4910    
  23  Prefactor     .10000E-03    10.537        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .77697        .20256        .28170E-03   -1.0093    
  25  Prefactor     .86791        .14518        .20312E-03   -.97272    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.53686e-08
Minuit parameter uncertainties:
  1  0.00171989
  2  42.1948
  3  47.9091
  4  9.05914
  5  15.5091
  6  4.0025e-05
  7  0.00024547
  8  29.6223
  9  5.59718
  10  0.531986
  11  5.23294
  12  11.1219
  13  38.5289
  14  0.000164487
  15  3.46407e-05
  16  25.7983
  17  2.60846e-05
  18  56.2623
  19  3.27576
  20  35.1487
  21  0.0847508
  22  12.5422
  23  0.000214737
  24  0.202757
  25  0.145242
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
520    Prefactor:  8.679e-01  1.452e-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:  7.770e-01  2.028e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.32
Ra Dec: 350.888 -3.290
Photon Index (Fixed Index): 2.16 +/- 0.00
Photon Flux (Fixed Index): 1.97e-08 +/- 2.06e-08
Energy Flux (Fixed Index): 8.05e-06 +/- 8.43e-06

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

Saving results to:
/scratch/kocevski/811277/likelihoodResults_497491201_497750401_4FGL_J2323.5-0317_daily_bin996.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) = 6183.41704735
delta logL = 6.06429239269e-07

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6183.41704683
delta logL = 1.12865018309e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .50779       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1606       1.0000          .0000       5.0000    
     3 'Normalizat'    .77698       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86790       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=   6183.417     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      190 TOTAL
                     EDM=   .44E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .50806        .57106        .11303E-01    .16110E-03
   2  alpha         2.1634        1.0423        .41641E-01   -.47026E-04
   3  Normalizat    .77690        .16459        .63682E-01    .24541E-04
   4  Prefactor     .86793        .12488        .44595E-01    .18142E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.508059
  alpha      = 2.16339
  Normalizat = 0.776897
  Prefactor  = 0.867932
 **********
 **   18 **HESSE 
 **********

 FCN=   6183.417     FROM HESSE     STATUS=OK            33 CALLS      223 TOTAL
                     EDM=   .26E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .50806        .53376        .58120E-03   -1.5565    
   2  alpha         2.1634        1.0094        .83282E-02   -.13505    
   3  Normalizat    .77690        .18872        .28171E-03   -1.0093    
   4  Prefactor     .86793        .14311        .20311E-03   -.97271    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.55216e-11
Minuit parameter uncertainties:
  1  0.533765
  2  1.03961
  3  0.188875
  4  0.143171
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/811277': 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) = 6183.41704319
delta logL = 4.76976856589e-06

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
520    Prefactor:  8.679e-01  1.432e-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:  7.769e-01  1.889e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.31
Ra Dec: 350.888 -3.290
Photon Index (Free Index): 2.16 +/- 1.04
Photon Flux (Free Index): 1.97e-08 +/- 3.02e-08
Energy Flux (Free Index): 8.05e-06 +/- 8.57e-06

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/811277/cmap_HighResolution_497491201_497750401_4FGL_J2323.5-0317_daily_bin996.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.14e-05', comment='SUCCESS', photon_flux='1.97e-08', energy_flux2='8.05e-06', photon_flux_error='2.06e-08', dlogl='4.77e-06', energy_flux='8.05e-06', photon_flux2='1.97e-08', job_status='DONE', time_completed='2021-09-29 14:48:39.586178', photon_index_error2='1.04', photon_index2='2.16', ts='2.32', fit_tolerance='1e-08', GAL='0.87', photon_index_error='0.00', photon_flux_upper_limit='7.67e-08', energy_flux_error2='8.57e-06', EG='0.78', time_epoch_completed='1632952119.59', return_code='0', job_id='811277', GAL2='0.87', EG2='0.78', return_code2='0', energy_flux_error='8.43e-06', photon_flux_error2='3.02e-08', ts2='2.31', photon_index='2.16' WHERE bin_id='996' AND source_name='4FGL J2323.5-0317' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 14:48:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0094>
Subject: Job 811277: <4FGL_J2323.5-0317_daily_bin996> in cluster <slac> Done

Job <4FGL_J2323.5-0317_daily_bin996> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Sep 29 14:35:49 2021
Job was executed on host(s) <bullet0094>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 14:35:52 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 14:35:52 2021
Terminated at Wed Sep 29 14:48:40 2021
Results reported at Wed Sep 29 14:48:40 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2323.5-0317_daily_bin996 350.888 -3.29 497491201 497750401 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 :                                   674.29 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             320.09 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   767 sec.
    Turnaround time :                            771 sec.

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

