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


Performing analysis on: 4FGL_J2323.5-0317_daily_bin373
RA = 350.888, Dec = -3.29
tmin = 336009601, tmax = 336268801
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='808419', job_status='RUN', time_executed='2021-09-29 14:27:36.824046', time_epoch_executed='1632950856.82' WHERE source_name='4FGL J2323.5-0317' and cadence='daily' and bin_id='373'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/808419

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/808419/ft1_4FGL_J2323.5-0317_daily_bin373.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/808419/ft2_4FGL_J2323.5-0317_daily_bin373.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/808419/ft1_4FGL_J2323.5-0317_daily_bin373.fits outfile=/scratch/kocevski/808419/ft1_filteredMKT_4FGL_J2323.5-0317_daily_bin373.fits ra=350.888 dec=-3.29 rad=12.0 tmin=336009601.0 tmax=336268801.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.30
user 3.08
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/808419/ft1_filtered_4FGL_J2323.5-0317_daily_bin373.fits" evtable="EVENTS" scfile=/scratch/kocevski/808419/ft2_4FGL_J2323.5-0317_daily_bin373.fits sctable="SC_DATA" outfile=/scratch/kocevski/808419/ltcube_336009601_336268801_4FGL_J2323.5-0317_daily_bin373.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/808419/ft2_4FGL_J2323.5-0317_daily_bin373.fits
.....................!
real 12.35
user 12.00
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/808419/ft1_filtered_4FGL_J2323.5-0317_daily_bin373.fits evtable="EVENTS" scfile=/scratch/kocevski/808419/ft2_4FGL_J2323.5-0317_daily_bin373.fits sctable="SC_DATA" expcube=/scratch/kocevski/808419/ltcube_336009601_336268801_4FGL_J2323.5-0317_daily_bin373.fits outfile=/scratch/kocevski/808419/expmap_336009601_336268801_4FGL_J2323.5-0317_daily_bin373.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/808419/ltcube_336009601_336268801_4FGL_J2323.5-0317_daily_bin373.fits
.....................!
real 191.07
user 186.16
sys 4.38

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/808419/ft1_filtered_4FGL_J2323.5-0317_daily_bin373.fits scfile=/scratch/kocevski/808419/ft2_4FGL_J2323.5-0317_daily_bin373.fits outfile=/scratch/kocevski/808419/cmap_336009601_336268801_4FGL_J2323.5-0317_daily_bin373.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/808419/ft1_filtered_4FGL_J2323.5-0317_daily_bin373.fits scfile=/scratch/kocevski/808419/ft2_4FGL_J2323.5-0317_daily_bin373.fits outfile=/scratch/kocevski/808419/cmap_HighResolution_336009601_336268801_4FGL_J2323.5-0317_daily_bin373.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/808419/ft1_filtered_4FGL_J2323.5-0317_daily_bin373.fits evtable="EVENTS" scfile=/scratch/kocevski/808419/ft2_4FGL_J2323.5-0317_daily_bin373.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/808419/Model_4FGL_J2323.5-0317_daily_bin373.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/808419/ft1_filtered_4FGL_J2323.5-0317_daily_bin373.fits.....................!
real 54.93
user 53.68
sys 1.14

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    16.674       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    12.461       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    6.3118       1.0000         .10000E-03   10000.    
     8 'Prefactor '    19.649       1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.6952       1.0000         .10000E-03   10000.    
    10 'norm      '    1.2522       1.0000         .10000E-03   10000.    
    11 'norm      '    .10387E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    5.0338       1.0000         .10000E-03   10000.    
    20 'Prefactor '    13.763       1.0000         .10000E-03   10000.    
    21 'Prefactor '    36.992       1.0000         .10000E-03   10000.    
    22 'Prefactor '    9.7512       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .96469       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .94632       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=   5721.606     FROM MIGRAD    STATUS=CONVERGED    559 CALLS     2842 TOTAL
                     EDM=   .64E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     16.674        10.525        .67136E-07   -.53828E-04
   2  Prefactor     .10001E-03    44.081        .19250E-05** at limit **
   3  Prefactor     12.459        21.136       -.57383E-07    .29427E-05
   4  Prefactor     .10000E-03    25.584       -.67132E-06** at limit **
   5  norm          .10000E-03    12.810        .76804E-06** at limit **
   6  Prefactor     .10000E-03    18.104        .51470E-06** at limit **
   7  Prefactor     6.3118        17.435        .18064E-06   -.18346E-04
   8  Prefactor     19.630        58.094       -.95866E-05   -.81841E-04
   9  Prefactor     6.7043        11.326        .54869E-05   -.41950E-03
  10  norm          1.2523        .99848        .18126E-07    .40182E-03
  11  norm          .10000E-03    3.9838       -.18385E-05** at limit **
  12  Prefactor     .10000E-03    3.4192        .17718E-08** at limit **
  13  Prefactor     .10000E-03    21.277       -.57442E-06** at limit **
  14  Prefactor     .10001E-03    59.449       -.23878E-05** at limit **
  15  Prefactor     .10000E-03    6.0127        .58529E-07** at limit **
  16  Prefactor     .10000E-03    25.266       -.69405E-06** at limit **
  17  norm          .10000E-03    11.813       -.48429E-06** at limit **
  18  Prefactor     .10000E-03    33.590        .11681E-05** at limit **
  19  Prefactor     5.0343        5.2896        .10119E-06    .24202E-03
  20  Prefactor     13.759        44.056       -.52120E-06   -.23179E-04
  21  Prefactor     36.991        27.112       -.23636E-07   -.76857E-05
  22  Prefactor     9.7511        11.992        .58582E-08    .24210E-05
  23  Prefactor     .10000E-03    1.7470        .14386E-08** at limit **
  24  Normalizat    .96465        .20045        .42144E-06    .71272E-04
  25  Prefactor     .94636        .13893       -.36283E-06    .16354E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 16.6736
  Prefactor  = 0.000100009
  Prefactor  = 12.4595
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 6.31183
  Prefactor  = 19.63
  Prefactor  = 6.70427
  norm       = 1.25231
  norm       = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100015
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.000100001
  Prefactor  = 0.000100003
  Prefactor  = 5.03435
  Prefactor  = 13.759
  Prefactor  = 36.9914
  Prefactor  = 9.75111
  Prefactor  = 0.0001
  Normalizat = 0.964647
  Prefactor  = 0.946357
 **********
 **   18 **HESSE 
 **********

 FCN=   5721.606     FROM HESSE     STATUS=OK           423 CALLS     3265 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     16.674        10.531        .98085E-04   -1.4891    
   2  Prefactor     .10001E-03    44.978        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     12.459        21.130        .11348E-03   -1.5002    
   4  Prefactor     .10000E-03    26.498        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    13.050        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    18.185        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     6.3118        17.431        .15977E-03   -1.5205    
   8  Prefactor     19.630        57.469        .90357E-04   -1.4822    
   9  Prefactor     6.7043        11.588        .77538E-03   -1.5190    
  10  norm          1.2523        .98296        .63358E-04   -1.5484    
  11  norm          .10000E-03    8.4215        .28665E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    3.4228        .13660E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    21.372        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10001E-03    60.890        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    6.0252        .18094E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    25.544        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    11.926        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    33.952        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     5.0343        5.2768        .16520E-03   -1.5259    
  20  Prefactor     13.759        44.091        .10797E-03   -1.4966    
  21  Prefactor     36.991        27.107        .65895E-04   -1.4491    
  22  Prefactor     9.7511        12.000        .12833E-03   -1.5083    
  23  Prefactor     .10000E-03    1.7485        .97637E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .96465        .22818        .28192E-03   -.94224    
  25  Prefactor     .94636        .15840        .20697E-03   -.94540    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.58732e-09
Minuit parameter uncertainties:
  1  10.5322
  2  0.00124249
  3  21.1431
  4  0.000214928
  5  0.000214271
  6  0.000204546
  7  17.4453
  8  57.6313
  9  11.5914
  10  0.982977
  11  0.000364767
  12  6.87045e-09
  13  0.000261158
  14  0.00189029
  15  1.25306e-05
  16  0.000319408
  17  0.000221922
  18  0.000676849
  19  5.2773
  20  44.196
  21  27.1161
  22  12.0031
  23  7.131e-07
  24  0.228408
  25  0.158473
Done.

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

Extracting fit parameters...

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

EG_v02
   Spectrum: FileFunction
519   Normalization:  9.646e-01  2.284e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.25
Ra Dec: 350.888 -3.290
Photon Index (Fixed Index): 2.16 +/- 0.00
Photon Flux (Fixed Index): 4.85e-08 +/- 3.80e-08
Energy Flux (Fixed Index): 1.99e-05 +/- 1.56e-05

TS (Fixed Index): 3.25
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/808419/likelihoodResults_336009601_336268801_4FGL_J2323.5-0317_daily_bin373.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) = 5719.99443265
delta logL = 1.61108493789

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5719.92527792
delta logL = 1.68023966381

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .96636E-01   1.0000         .10000E-03   10000.    
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    .79652       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0354       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=   5719.925     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      339 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .96643E-01    1.0015        .23428E-02   -.49234E-02
   2  alpha         5.0000        3.6183        .46305    ** at limit **
   3  Normalizat    .79677        .13591        .69292E-01   -.23566E-04
   4  Prefactor     1.0353        .99224E-01    .40850E-01   -.30609E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0966427
  alpha      = 5
  Normalizat = 0.796774
  Prefactor  = 1.03527
 **********
 **   18 **HESSE 
 **********

 FCN=   5719.925     FROM HESSE     STATUS=OK            33 CALLS      372 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .96643E-01    .65271E-01    .10470E-04   -1.5646    
   2  alpha         5.0000        .92850        .40694        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .79677        .22803        .30660E-03   -1.0019    
   4  Prefactor     1.0353        .16237        .19911E-03   -.91563    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.93431e-10
Minuit parameter uncertainties:
  1  0.0652709
  2  1.63387e-06
  3  0.228301
  4  0.162448
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/808419': 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) = 5719.92527664
delta logL = 1.68024094206

Extracting fit parameters...

4FGL J2323.5-0317
   Spectrum: LogParabola
373         norm:  9.664e-02  6.527e-02  1.000e-04  1.000e+04 ( 1.000e-11)
374        alpha:  5.000e+00  1.634e-06  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.035e+00  1.624e-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.968e-01  2.283e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.24
Ra Dec: 350.888 -3.290
Photon Index (Free Index): 5.00 +/- 0.00
Photon Flux (Free Index): 1.81e-07 +/- 1.22e-07
Energy Flux (Free Index): 2.46e-05 +/- 1.66e-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/808419/cmap_HighResolution_336009601_336268801_4FGL_J2323.5-0317_daily_bin373.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.38e-05', comment='SUCCESS', photon_flux='4.85e-08', energy_flux2='2.46e-05', photon_flux_error='3.80e-08', dlogl='1.68e+00', energy_flux='1.99e-05', photon_flux2='1.81e-07', job_status='DONE', time_completed='2021-09-29 14:38:24.210238', photon_index_error2='0.00', photon_index2='5.00', ts='3.25', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', photon_flux_upper_limit='1.31e-07', energy_flux_error2='1.66e-05', EG='0.96', time_epoch_completed='1632951504.21', return_code='0', job_id='808419', GAL2='1.04', EG2='0.80', return_code2='0', energy_flux_error='1.56e-05', photon_flux_error2='1.22e-07', ts2='7.24', photon_index='2.16' WHERE bin_id='373' AND source_name='4FGL J2323.5-0317' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 14:38:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0123>
Subject: Job 808419: <4FGL_J2323.5-0317_daily_bin373> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2323.5-0317_daily_bin373 350.888 -3.29 336009601 336268801 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 :                                   632.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             285.21 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   764 sec.
    Turnaround time :                            766 sec.

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

