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


Performing analysis on: 4FGL_J2323.5-0317_daily_bin177
RA = 350.888, Dec = -3.29
tmin = 285206401, tmax = 285465601
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='808108', job_status='RUN', time_executed='2021-09-29 14:26:11.656780', time_epoch_executed='1632950771.66' WHERE source_name='4FGL J2323.5-0317' and cadence='daily' and bin_id='177'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/808108

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/808108/ft1_4FGL_J2323.5-0317_daily_bin177.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/808108/ft2_4FGL_J2323.5-0317_daily_bin177.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/808108/ft1_4FGL_J2323.5-0317_daily_bin177.fits outfile=/scratch/kocevski/808108/ft1_filteredMKT_4FGL_J2323.5-0317_daily_bin177.fits ra=350.888 dec=-3.29 rad=12.0 tmin=285206401.0 tmax=285465601.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.50
user 3.27
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/808108/ft1_filtered_4FGL_J2323.5-0317_daily_bin177.fits evtable="EVENTS" scfile=/scratch/kocevski/808108/ft2_4FGL_J2323.5-0317_daily_bin177.fits sctable="SC_DATA" expcube=/scratch/kocevski/808108/ltcube_285206401_285465601_4FGL_J2323.5-0317_daily_bin177.fits outfile=/scratch/kocevski/808108/expmap_285206401_285465601_4FGL_J2323.5-0317_daily_bin177.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/808108/ltcube_285206401_285465601_4FGL_J2323.5-0317_daily_bin177.fits
.....................!
real 190.56
user 185.17
sys 5.03

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/808108/ft1_filtered_4FGL_J2323.5-0317_daily_bin177.fits scfile=/scratch/kocevski/808108/ft2_4FGL_J2323.5-0317_daily_bin177.fits outfile=/scratch/kocevski/808108/cmap_285206401_285465601_4FGL_J2323.5-0317_daily_bin177.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.59
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/808108/ft1_filtered_4FGL_J2323.5-0317_daily_bin177.fits scfile=/scratch/kocevski/808108/ft2_4FGL_J2323.5-0317_daily_bin177.fits outfile=/scratch/kocevski/808108/cmap_HighResolution_285206401_285465601_4FGL_J2323.5-0317_daily_bin177.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=350.888 yref=-3.29 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/808108/ft1_filtered_4FGL_J2323.5-0317_daily_bin177.fits evtable="EVENTS" scfile=/scratch/kocevski/808108/ft2_4FGL_J2323.5-0317_daily_bin177.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/808108/Model_4FGL_J2323.5-0317_daily_bin177.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/808108/ft1_filtered_4FGL_J2323.5-0317_daily_bin177.fits.....................!
real 49.27
user 47.80
sys 1.28

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    14.296       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .18575E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .25191E-02   1.0000         .10000E-03   10000.    
     7 'Prefactor '    16.931       1.0000         .10000E-03   10000.    
     8 'Prefactor '    31.833       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    1.1460       1.0000         .10000E-03   10000.    
    11 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .35066E-02   1.0000         .10000E-03   10000.    
    20 'Prefactor '    103.47       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .18596E-02   1.0000         .10000E-03   10000.    
    23 'Prefactor '    20.700       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .87473       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .91040       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=   4643.268     FROM MIGRAD    STATUS=CONVERGED    604 CALLS     2975 TOTAL
                     EDM=   .47E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.7841       -.11085E-04** at limit **
   2  Prefactor     14.399        93.940       -.11173E-04    .40148E-04
   3  Prefactor     .10000E-03    11.874        .44887E-06** at limit **
   4  Prefactor     .10000E-03    5.5141       -.72850E-06** at limit **
   5  norm          .10000E-03    3.1429        .15233E-06** at limit **
   6  Prefactor     .10000E-03    376.56       -.95340E-04** at limit **
   7  Prefactor     16.929        21.232       -.14502E-05   -.35559E-04
   8  Prefactor     31.828        44.201       -.40597E-06    .11960E-04
   9  Prefactor     .10000E-03    3.6989        .35560E-06** at limit **
  10  norm          1.1464        .95420       -.90470E-07   -.10024E-03
  11  norm          .10000E-03    2.0248        .21235E-06** at limit **
  12  Prefactor     .10000E-03    6.7562        .28303E-06** at limit **
  13  Prefactor     .10000E-03    160.21       -.57269E-05** at limit **
  14  Prefactor     .10000E-03    189.27        .46106E-05** at limit **
  15  Prefactor     .10000E-03    10.795       -.49475E-06** at limit **
  16  Prefactor     .10000E-03    84.938        .89736E-05** at limit **
  17  norm          .10000E-03    9.5034        .70535E-06** at limit **
  18  Prefactor     .10001E-03    120.09       -.96888E-05** at limit **
  19  Prefactor     .10000E-03    2.7678        .11744E-05** at limit **
  20  Prefactor     103.49        52.481       -.11437E-05   -.10130E-03
  21  Prefactor     .10000E-03    8.2375        .20019E-06** at limit **
  22  Prefactor     .10000E-03    14.662        .42267E-06** at limit **
  23  Prefactor     20.702        12.211        .40675E-06    .53285E-03
  24  Normalizat    .87455        .22252        .94399E-06   -.44757E-04
  25  Prefactor     .91057        .15080       -.94720E-06    .24946E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 14.3991
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  norm       = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 16.9293
  Prefactor  = 31.8278
  Prefactor  = 0.0001
  norm       = 1.14639
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  norm       = 0.0001
  Prefactor  = 0.000100009
  Prefactor  = 0.000100001
  Prefactor  = 103.493
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 20.7018
  Normalizat = 0.874554
  Prefactor  = 0.910572
 **********
 **   18 **HESSE 
 **********

 FCN=   4643.268     FROM HESSE     STATUS=OK           423 CALLS     3398 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.8186        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     14.399        93.054        .10593E-03   -1.4949    
   3  Prefactor     .10000E-03    11.879        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    15.576        .31139E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    3.1445        .11798E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    363.50        .88302E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     16.929        21.202        .97336E-04   -1.4885    
   8  Prefactor     31.828        44.178        .71018E-04   -1.4579    
   9  Prefactor     .10000E-03    3.7036        .12795E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.1464        .94685        .57801E-04   -1.5494    
  11  norm          .10000E-03    2.0283        .94678E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    6.7788        .17298E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    161.21        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    189.55        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    10.854        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    86.696        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    9.5121        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10001E-03    121.53        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    41.683        .21118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     103.49        52.462        .39529E-04   -1.3670    
  21  Prefactor     .10000E-03    8.2608        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    216.01        .49416E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     20.702        12.268        .88035E-04   -1.4798    
  24  Normalizat    .87455        .24674        .27938E-03   -.97360    
  25  Prefactor     .91057        .17267        .20076E-03   -.95773    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.06782e-09
Minuit parameter uncertainties:
  1  1.87092e-05
  2  73.376
  3  1.44313e-05
  4  0.000446474
  5  1.25486e-06
  6  0.00246795
  7  21.2111
  8  44.2235
  9  4.60501e-06
  10  0.946863
  11  2.52593e-06
  12  2.78951e-06
  13  0.000998877
  14  0.00123635
  15  1.87279e-05
  16  0.00106985
  17  4.78009e-05
  18  0.00209182
  19  0.000429887
  20  52.4857
  21  1.11976e-05
  22  0.000489724
  23  12.269
  24  0.247058
  25  0.172769
Done.

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

Extracting fit parameters...

4FGL J2323.5-0317
   Spectrum: LogParabola
373         norm:  1.146e+00  9.469e-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:  9.106e-01  1.728e-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.746e-01  2.471e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.76
Ra Dec: 350.888 -3.290
Photon Index (Fixed Index): 2.16 +/- 0.00
Photon Flux (Fixed Index): 4.44e-08 +/- 3.66e-08
Energy Flux (Fixed Index): 1.82e-05 +/- 1.50e-05

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

Saving results to:
/scratch/kocevski/808108/likelihoodResults_285206401_285465601_4FGL_J2323.5-0317_daily_bin177.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) = 4643.18583997
delta logL = 0.0822942023624

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4643.18350071
delta logL = 0.0846334672315

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.1305       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4726       1.0000          .0000       5.0000    
     3 'Normalizat'    .85704       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91716       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=   4643.184     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      199 TOTAL
                     EDM=   .29E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.1306        19.320        .10986E-01    .33244E-03
   2  alpha         2.4726        3.1692        .41155        .18283E-04
   3  Normalizat    .85718        .79629E-01    .63783E-01    .42404E-04
   4  Prefactor     .91706        .52473E-01    .45223E-01   -.18863E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.13059
  alpha      = 2.47259
  Normalizat = 0.857181
  Prefactor  = 0.917059
 **********
 **   18 **HESSE 
 **********

 FCN=   4643.184     FROM HESSE     STATUS=OK            33 CALLS      232 TOTAL
                     EDM=   .75E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.1306        .91481        .53044E-04   -1.5495    
   2  alpha         2.4726        .75713        .15365E-01   -.10965E-01
   3  Normalizat    .85718        .23713        .28213E-03   -.97981    
   4  Prefactor     .91706        .17151        .20009E-03   -.95548    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.51861e-12
Minuit parameter uncertainties:
  1  0.914823
  2  0.769213
  3  0.237417
  4  0.17161
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/808108': 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) = 4643.18350049
delta logL = 0.0846336821833

Extracting fit parameters...

4FGL J2323.5-0317
   Spectrum: LogParabola
373         norm:  1.131e+00  9.148e-01  1.000e-04  1.000e+04 ( 1.000e-11)
374        alpha:  2.473e+00  7.692e-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.171e-01  1.716e-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.572e-01  2.374e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.92
Ra Dec: 350.888 -3.290
Photon Index (Free Index): 2.47 +/- 0.77
Photon Flux (Free Index): 6.03e-08 +/- 5.81e-08
Energy Flux (Free Index): 1.77e-05 +/- 1.36e-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/808108/cmap_HighResolution_285206401_285465601_4FGL_J2323.5-0317_daily_bin177.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.38e-05', comment='SUCCESS', photon_flux='4.44e-08', energy_flux2='1.77e-05', photon_flux_error='3.66e-08', dlogl='8.46e-02', energy_flux='1.82e-05', photon_flux2='6.03e-08', job_status='DONE', time_completed='2021-09-29 14:36:45.348023', photon_index_error2='0.77', photon_index2='2.47', ts='3.76', fit_tolerance='1e-08', GAL='0.91', photon_index_error='0.00', photon_flux_upper_limit='1.31e-07', energy_flux_error2='1.36e-05', EG='0.87', time_epoch_completed='1632951405.35', return_code='0', job_id='808108', GAL2='0.92', EG2='0.86', return_code2='0', energy_flux_error='1.50e-05', photon_flux_error2='5.81e-08', ts2='3.92', photon_index='2.16' WHERE bin_id='177' AND source_name='4FGL J2323.5-0317' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 14:36:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0066>
Subject: Job 808108: <4FGL_J2323.5-0317_daily_bin177> in cluster <slac> Done

Job <4FGL_J2323.5-0317_daily_bin177> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 14:25:12 2021
Job was executed on host(s) <bullet0066>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 14:25:14 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:25:14 2021
Terminated at Wed Sep 29 14:36:46 2021
Results reported at Wed Sep 29 14:36:46 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2323.5-0317_daily_bin177 350.888 -3.29 285206401 285465601 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 :                                   576.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             304.38 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   691 sec.
    Turnaround time :                            694 sec.

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

