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


Performing analysis on: 4FGL_J2323.5-0317_daily_bin800
RA = 350.888, Dec = -3.29
tmin = 446688001, tmax = 446947201
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='810989', job_status='RUN', time_executed='2021-09-29 14:37:29.140280', time_epoch_executed='1632951449.14' WHERE source_name='4FGL J2323.5-0317' and cadence='daily' and bin_id='800'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/810989

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/810989/ft1_4FGL_J2323.5-0317_daily_bin800.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/810989/ft2_4FGL_J2323.5-0317_daily_bin800.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/810989/ft1_4FGL_J2323.5-0317_daily_bin800.fits outfile=/scratch/kocevski/810989/ft1_filteredMKT_4FGL_J2323.5-0317_daily_bin800.fits ra=350.888 dec=-3.29 rad=12.0 tmin=446688001.0 tmax=446947201.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.38
user 3.17
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/810989/ft2_4FGL_J2323.5-0317_daily_bin800.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/810989/ft1_filteredMKT_4FGL_J2323.5-0317_daily_bin800.fits evtable="EVENTS" outfile="/scratch/kocevski/810989/ft1_filtered_4FGL_J2323.5-0317_daily_bin800.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.51
user 0.34
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/810989/ft1_filtered_4FGL_J2323.5-0317_daily_bin800.fits" evtable="EVENTS" scfile=/scratch/kocevski/810989/ft2_4FGL_J2323.5-0317_daily_bin800.fits sctable="SC_DATA" outfile=/scratch/kocevski/810989/ltcube_446688001_446947201_4FGL_J2323.5-0317_daily_bin800.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/810989/ft2_4FGL_J2323.5-0317_daily_bin800.fits
.....................!
real 15.36
user 14.99
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/810989/ft1_filtered_4FGL_J2323.5-0317_daily_bin800.fits evtable="EVENTS" scfile=/scratch/kocevski/810989/ft2_4FGL_J2323.5-0317_daily_bin800.fits sctable="SC_DATA" expcube=/scratch/kocevski/810989/ltcube_446688001_446947201_4FGL_J2323.5-0317_daily_bin800.fits outfile=/scratch/kocevski/810989/expmap_446688001_446947201_4FGL_J2323.5-0317_daily_bin800.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/810989/ltcube_446688001_446947201_4FGL_J2323.5-0317_daily_bin800.fits
.....................!
real 190.48
user 185.08
sys 5.07

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/810989/ft1_filtered_4FGL_J2323.5-0317_daily_bin800.fits scfile=/scratch/kocevski/810989/ft2_4FGL_J2323.5-0317_daily_bin800.fits outfile=/scratch/kocevski/810989/cmap_446688001_446947201_4FGL_J2323.5-0317_daily_bin800.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/810989/ft1_filtered_4FGL_J2323.5-0317_daily_bin800.fits scfile=/scratch/kocevski/810989/ft2_4FGL_J2323.5-0317_daily_bin800.fits outfile=/scratch/kocevski/810989/cmap_HighResolution_446688001_446947201_4FGL_J2323.5-0317_daily_bin800.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.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/810989/ft1_filtered_4FGL_J2323.5-0317_daily_bin800.fits evtable="EVENTS" scfile=/scratch/kocevski/810989/ft2_4FGL_J2323.5-0317_daily_bin800.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/810989/Model_4FGL_J2323.5-0317_daily_bin800.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/810989/ft1_filtered_4FGL_J2323.5-0317_daily_bin800.fits.....................!
real 65.50
user 64.21
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10076E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10232E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.1848       1.0000         .10000E-03   10000.    
     5 'norm      '    .25018E-01   1.0000         .10000E-03   10000.    
     6 'Prefactor '    15.954       1.0000         .10000E-03   10000.    
     7 'Prefactor '    11.493       1.0000         .10000E-03   10000.    
     8 'Prefactor '    20.871       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10417E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    1.6290       1.0000         .10000E-03   10000.    
    11 'norm      '    4.0649       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10286E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    11.264       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .14586E-02   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10124E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10526E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    4.4787       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    5.0093       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .62306       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.5023       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=   7310.225     FROM MIGRAD    STATUS=CONVERGED    591 CALLS     2944 TOTAL
                     EDM=   .23E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9.4386        .50782E-05** at limit **
   2  Prefactor     .10000E-03    33.676        .89147E-05** at limit **
   3  Prefactor     .10000E-03    16.020       -.59403E-05** at limit **
   4  Prefactor     4.1854        8.3818       -.40135E-06   -.14256E-03
   5  norm          .10021E-03    10.337       -.90299E-06** at limit **
   6  Prefactor     15.958        30.730       -.81989E-06   -.13306E-05
   7  Prefactor     11.482        16.405       -.51000E-06    .69671E-06
   8  Prefactor     20.853        41.390       -.13656E-04   -.13985E-04
   9  Prefactor     .10000E-03    5.7435        .52049E-06** at limit **
  10  norm          1.6290        .85631        .10909E-07    .15787E-04
  11  norm          4.0629        3.9579        .52602E-06    .86585E-04
  12  Prefactor     .10000E-03    9.5565       -.54562E-05** at limit **
  13  Prefactor     .10000E-03    17.809        .34794E-05** at limit **
  14  Prefactor     .10000E-03    57.974        .60276E-05** at limit **
  15  Prefactor     11.283        10.077       -.83828E-06    .20110E-03
  16  Prefactor     .10000E-03    5.1337        .72350E-07** at limit **
  17  norm          .10000E-03    49.523       -.10648E-04** at limit **
  18  Prefactor     .10000E-03    13.428        .28834E-05** at limit **
  19  Prefactor     .10000E-03    2.6673        .35009E-06** at limit **
  20  Prefactor     .10000E-03    35.808       -.94640E-05** at limit **
  21  Prefactor     4.4744        32.753       -.11986E-05   -.18713E-04
  22  Prefactor     .10000E-03    5.8810       -.27084E-06** at limit **
  23  Prefactor     5.0081        7.9619       -.78286E-06   -.33353E-03
  24  Normalizat    .62335        .20032        .24566E-05    .94583E-05
  25  Prefactor     1.5022        .15133       -.20855E-06    .21997E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.18538
  norm       = 0.000100214
  Prefactor  = 15.9575
  Prefactor  = 11.4822
  Prefactor  = 20.8528
  Prefactor  = 0.000100001
  norm       = 1.62902
  norm       = 4.06285
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.283
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.47437
  Prefactor  = 0.0001
  Prefactor  = 5.00807
  Normalizat = 0.623348
  Prefactor  = 1.50222
 **********
 **   18 **HESSE 
 **********

 FCN=   7310.225     FROM HESSE     STATUS=OK           433 CALLS     3377 TOTAL
                     EDM=   .53E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9.5786        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    33.674        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    16.046        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     4.1854        8.3838        .19701E-03   -1.5299    
   5  norm          .10021E-03    13.566        .76198E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     15.958        30.786        .10027E-03   -1.4909    
   7  Prefactor     11.482        16.406        .11817E-03   -1.5030    
   8  Prefactor     20.853        41.502        .87673E-04   -1.4794    
   9  Prefactor     .10000E-03    5.7892        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.6290        .85173        .54881E-04   -1.5453    
  11  norm          4.0629        3.9552        .16076E-03   -1.5305    
  12  Prefactor     .10000E-03    9.6851        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    17.816        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    57.976        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     11.283        9.6504        .11937E-03   -1.5036    
  16  Prefactor     .10000E-03    5.1347        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    50.222        .40985E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    13.434        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    4.8928        .25796E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    35.939        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     4.4744        32.728        .19026E-03   -1.5285    
  22  Prefactor     .10000E-03    5.8933        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     5.0081        7.9930        .17967E-03   -1.5260    
  24  Normalizat    .62335        .22275        .37294E-03   -1.0700    
  25  Prefactor     1.5022        .17200        .19850E-03   -.77478    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.28102e-10
Minuit parameter uncertainties:
  1  3.74412e-05
  2  3.28455e-05
  3  3.47411e-06
  4  8.38619
  5  0.00341013
  6  30.8162
  7  16.4122
  8  41.5597
  9  0.00011317
  10  0.851732
  11  3.95547
  12  1.91616e-05
  13  8.31872e-08
  14  9.35046e-06
  15  9.65169
  16  3.96397e-08
  17  0.000540355
  18  5.86574e-06
  19  4.70132e-05
  20  3.56873e-06
  21  24.2205
  22  5.78337e-06
  23  7.99471
  24  0.223071
  25  0.172062
Done.

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

Extracting fit parameters...

4FGL J2323.5-0317
   Spectrum: LogParabola
373         norm:  1.629e+00  8.517e-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:  1.502e+00  1.721e-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:  6.233e-01  2.231e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 9.87
Ra Dec: 350.888 -3.290
Photon Index (Fixed Index): 2.16 +/- 0.00
Photon Flux (Fixed Index): 6.31e-08 +/- 3.30e-08
Energy Flux (Fixed Index): 2.58e-05 +/- 1.35e-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) = 7310.08968498
delta logL = 0.135660158776

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7310.08846117
delta logL = 0.136883972389

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.6274       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9233       1.0000          .0000       5.0000    
     3 'Normalizat'    .63434       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4981       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=   7310.088     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      208 TOTAL
                     EDM=   .27E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.6278        1.2025        .82895E-02    .93115E-04
   2  alpha         1.9232        .54873        .33981       -.13648E-04
   3  Normalizat    .63443        .18950        .83528E-01    .38302E-04
   4  Prefactor     1.4980        .14968        .44965E-01   -.59558E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.62776
  alpha      = 1.92324
  Normalizat = 0.634432
  Prefactor  = 1.49802
 **********
 **   18 **HESSE 
 **********

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

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.6278        .87175        .56109E-04   -1.5453    
   2  alpha         1.9232        .44295        .13488E-01   -.23280    
   3  Normalizat    .63443        .21278        .36995E-03   -1.0654    
   4  Prefactor     1.4980        .16875        .19875E-03   -.77595    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.00463e-10
Minuit parameter uncertainties:
  1  0.871756
  2  0.445436
  3  0.213051
  4  0.168815
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/810989': 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) = 7310.08846095
delta logL = 0.136884193665

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
520    Prefactor:  1.498e+00  1.688e-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:  6.344e-01  2.131e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.16
Ra Dec: 350.888 -3.290
Photon Index (Free Index): 1.92 +/- 0.45
Photon Flux (Free Index): 5.15e-08 +/- 3.47e-08
Energy Flux (Free Index): 3.01e-05 +/- 1.91e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/810989/cmap_HighResolution_446688001_446947201_4FGL_J2323.5-0317_daily_bin800.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.31e-08', energy_flux2='3.01e-05', photon_flux_error='3.30e-08', dlogl='1.37e-01', energy_flux='2.58e-05', photon_flux2='5.15e-08', job_status='DONE', time_completed='2021-09-29 14:48:18.319226', photon_index_error2='0.45', photon_index2='1.92', ts='9.87', fit_tolerance='1e-08', GAL='1.50', photon_index_error='0.00', energy_flux_error2='1.91e-05', EG='0.62', time_epoch_completed='1632952098.32', return_code='0', job_id='810989', GAL2='1.50', EG2='0.63', return_code2='0', energy_flux_error='1.35e-05', photon_flux_error2='3.47e-08', ts2='10.16', photon_index='2.16' WHERE bin_id='800' AND source_name='4FGL J2323.5-0317' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 14:48:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0213>
Subject: Job 810989: <4FGL_J2323.5-0317_daily_bin800> in cluster <slac> Done

Job <4FGL_J2323.5-0317_daily_bin800> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Sep 29 14:35:26 2021
Job was executed on host(s) <bullet0213>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 14:35:28 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:28 2021
Terminated at Wed Sep 29 14:48:19 2021
Results reported at Wed Sep 29 14:48:19 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2323.5-0317_daily_bin800 350.888 -3.29 446688001 446947201 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 :                                   643.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             314.36 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   770 sec.
    Turnaround time :                            773 sec.

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

