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


Performing analysis on: 4FGL_J2323.5-0317_daily_bin930
RA = 350.888, Dec = -3.29
tmin = 480384001, tmax = 480643201
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='811181', job_status='RUN', time_executed='2021-09-29 14:37:18.024393', time_epoch_executed='1632951438.02' WHERE source_name='4FGL J2323.5-0317' and cadence='daily' and bin_id='930'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/811181

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/811181/ft1_4FGL_J2323.5-0317_daily_bin930.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/811181/ft2_4FGL_J2323.5-0317_daily_bin930.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/811181/ft1_4FGL_J2323.5-0317_daily_bin930.fits outfile=/scratch/kocevski/811181/ft1_filteredMKT_4FGL_J2323.5-0317_daily_bin930.fits ra=350.888 dec=-3.29 rad=12.0 tmin=480384001.0 tmax=480643201.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.60
user 3.37
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/811181/ft1_filtered_4FGL_J2323.5-0317_daily_bin930.fits" evtable="EVENTS" scfile=/scratch/kocevski/811181/ft2_4FGL_J2323.5-0317_daily_bin930.fits sctable="SC_DATA" outfile=/scratch/kocevski/811181/ltcube_480384001_480643201_4FGL_J2323.5-0317_daily_bin930.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/811181/ft2_4FGL_J2323.5-0317_daily_bin930.fits
.....................!
real 11.93
user 11.55
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/811181/ft1_filtered_4FGL_J2323.5-0317_daily_bin930.fits evtable="EVENTS" scfile=/scratch/kocevski/811181/ft2_4FGL_J2323.5-0317_daily_bin930.fits sctable="SC_DATA" expcube=/scratch/kocevski/811181/ltcube_480384001_480643201_4FGL_J2323.5-0317_daily_bin930.fits outfile=/scratch/kocevski/811181/expmap_480384001_480643201_4FGL_J2323.5-0317_daily_bin930.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/811181/ltcube_480384001_480643201_4FGL_J2323.5-0317_daily_bin930.fits
.....................!
real 190.79
user 185.57
sys 4.85

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/811181/ft1_filtered_4FGL_J2323.5-0317_daily_bin930.fits scfile=/scratch/kocevski/811181/ft2_4FGL_J2323.5-0317_daily_bin930.fits outfile=/scratch/kocevski/811181/cmap_480384001_480643201_4FGL_J2323.5-0317_daily_bin930.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/811181/ft1_filtered_4FGL_J2323.5-0317_daily_bin930.fits scfile=/scratch/kocevski/811181/ft2_4FGL_J2323.5-0317_daily_bin930.fits outfile=/scratch/kocevski/811181/cmap_HighResolution_480384001_480643201_4FGL_J2323.5-0317_daily_bin930.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.36
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/811181/ft1_filtered_4FGL_J2323.5-0317_daily_bin930.fits evtable="EVENTS" scfile=/scratch/kocevski/811181/ft2_4FGL_J2323.5-0317_daily_bin930.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/811181/Model_4FGL_J2323.5-0317_daily_bin930.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/811181/ft1_filtered_4FGL_J2323.5-0317_daily_bin930.fits....................!
real 59.88
user 58.44
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .41496E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.2481       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    19.533       1.0000         .10000E-03   10000.    
     5 'norm      '    9.7875       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    10.445       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    1.0694       1.0000         .10000E-03   10000.    
    11 'norm      '    5.4004       1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.4171       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    38.472       1.0000         .10000E-03   10000.    
    17 'norm      '    .10095E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    34.004       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    36.545       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .80561       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.1018       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=   6168.629     FROM MIGRAD    STATUS=CONVERGED    568 CALLS     2876 TOTAL
                     EDM=   .20E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10022E-03    7.1419        .80599E-05** at limit **
   2  Prefactor     3.1964        185.75       -.16671E-03    .64063E-04
   3  Prefactor     .10000E-03    8.8712        .11831E-06** at limit **
   4  Prefactor     19.533        12.273       -.37492E-06   -.16829E-05
   5  norm          9.7863        14.471       -.34290E-05   -.10759E-02
   6  Prefactor     .10000E-03    8.2022        .71286E-07** at limit **
   7  Prefactor     10.445        16.963       -.84318E-06    .26059E-05
   8  Prefactor     .10000E-03    29.490       -.40478E-05** at limit **
   9  Prefactor     .10000E-03    2.6988        .13714E-06** at limit **
  10  norm          1.0693        1.1322       -.66033E-06   -.12289E-02
  11  norm          5.4003        5.5246        .73778E-06   -.37214E-03
  12  Prefactor     5.4160        7.9296       -.29007E-06   -.74297E-04
  13  Prefactor     .10000E-03    39.323       -.22558E-06** at limit **
  14  Prefactor     .10000E-03    109.80        .87405E-05** at limit **
  15  Prefactor     .10000E-03    6.7191        .13235E-07** at limit **
  16  Prefactor     38.470        29.197       -.13587E-05    .32389E-04
  17  norm          .10000E-03    27.035        .55848E-05** at limit **
  18  Prefactor     34.005        37.381        .77098E-06   -.52781E-04
  19  Prefactor     .10000E-03    2.8006       -.14496E-06** at limit **
  20  Prefactor     36.547        45.910        .12553E-06   -.36841E-04
  21  Prefactor     .10000E-03    15.300       -.47442E-06** at limit **
  22  Prefactor     .10000E-03    12.202        .19980E-06** at limit **
  23  Prefactor     .10000E-03    3.3104        .18116E-07** at limit **
  24  Normalizat    .80542        .20173        .61454E-05   -.48132E-03
  25  Prefactor     1.1020        .14429       -.44412E-06   -.25632E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100218
  Prefactor  = 3.19635
  Prefactor  = 0.0001
  Prefactor  = 19.5327
  norm       = 9.78627
  Prefactor  = 0.0001
  Prefactor  = 10.4452
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.0693
  norm       = 5.40035
  Prefactor  = 5.41598
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 38.4695
  norm       = 0.000100002
  Prefactor  = 34.0053
  Prefactor  = 0.0001
  Prefactor  = 36.5465
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.805421
  Prefactor  = 1.10197
 **********
 **   18 **HESSE 
 **********

 FCN=   6168.629     FROM HESSE     STATUS=OK           421 CALLS     3297 TOTAL
                     EDM=   .85E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10022E-03    40.653        .39649E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     3.1964        187.96        .22473E-03   -1.5350    
   3  Prefactor     .10000E-03    8.8757        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     19.533        12.275        .90623E-04   -1.4824    
   5  norm          9.7863        14.632        .64044E-03   -1.5082    
   6  Prefactor     .10000E-03    8.2039        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     10.445        16.956        .12397E-03   -1.5061    
   8  Prefactor     .10000E-03    29.534        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    2.7009        .12598E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.0693        1.0975        .79389E-04   -1.5501    
  11  norm          5.4003        5.4952        .17292E-03   -1.5243    
  12  Prefactor     5.4160        7.9217        .17265E-03   -1.5242    
  13  Prefactor     .10000E-03    39.510        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    109.82        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    6.7600        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     38.470        29.182        .64619E-04   -1.4467    
  17  norm          .10000E-03    27.478        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     34.005        37.399        .34360E-03   -1.4541    
  19  Prefactor     .10000E-03    2.8351        .12822E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     36.547        46.026        .66295E-04   -1.4498    
  21  Prefactor     .10000E-03    15.346        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    12.246        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    3.3293        .13953E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .80542        .23040        .30824E-03   -.99868    
  25  Prefactor     1.1020        .16686        .19948E-03   -.89404    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.52629e-09
Minuit parameter uncertainties:
  1  0.00595424
  2  49.1836
  3  1.30514e-05
  4  12.2761
  5  14.6375
  6  8.93301e-06
  7  16.9637
  8  0.00014112
  9  1.18596e-05
  10  1.09752
  11  5.49566
  12  7.92323
  13  5.30638e-05
  14  0.000969083
  15  3.08043e-05
  16  29.1925
  17  0.000436588
  18  37.4245
  19  1.72061e-05
  20  46.0711
  21  2.12337e-05
  22  1.50402e-05
  23  8.34096e-06
  24  0.230678
  25  0.166944
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
520    Prefactor:  1.102e+00  1.669e-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.054e-01  2.307e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.25
Ra Dec: 350.888 -3.290
Photon Index (Fixed Index): 2.16 +/- 0.00
Photon Flux (Fixed Index): 4.14e-08 +/- 4.25e-08
Energy Flux (Fixed Index): 1.70e-05 +/- 1.74e-05

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

Saving results to:
/scratch/kocevski/811181/likelihoodResults_480384001_480643201_4FGL_J2323.5-0317_daily_bin930.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) = 6166.96327596
delta logL = 1.6656880128

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6166.86089333
delta logL = 1.76807063701

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .20879       1.0000         .10000E-03   10000.    
     2 'alpha     '    4.4666       1.0000          .0000       5.0000    
     3 'Normalizat'    .62602       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1948       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=   6166.861     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      234 TOTAL
                     EDM=   .39E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .20791        1.6299        .38322E-02   -.37550E-02
   2  alpha         4.4697        4.7133        .36381       -.37127E-04
   3  Normalizat    .62566        .70398E-01    .78107E-01   -.46291E-04
   4  Prefactor     1.1950        .53282E-01    .34756E-01   -.65539E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.20791
  alpha      = 4.46966
  Normalizat = 0.625655
  Prefactor  = 1.195
 **********
 **   18 **HESSE 
 **********

 FCN=   6166.861     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      265 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .20791        2.3933        .17164E-04   -1.5617    
   2  alpha         4.4697        4.6039        .17936E-01    .90733    
   3  Normalizat    .62566        .22665        .34584E-03   -1.0691    
   4  Prefactor     1.1950        .17046        .19242E-03   -.86485    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.17287e-10
Minuit parameter uncertainties:
  1  1.41052
  2  4.52627
  3  0.226986
  4  0.170535
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/811181': 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): 102
logL (Free Index) = 6166.86089109
delta logL = 1.76807288303

Extracting fit parameters...

4FGL J2323.5-0317
   Spectrum: LogParabola
373         norm:  2.079e-01  1.411e+00  1.000e-04  1.000e+04 ( 1.000e-11)
374        alpha:  4.470e+00  4.526e+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:  1.195e+00  1.705e-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.257e-01  2.270e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.48
Ra Dec: 350.888 -3.290
Photon Index (Free Index): 4.47 +/- 4.53
Photon Flux (Free Index): 1.71e-07 +/- 9.15e-08
Energy Flux (Free Index): 2.47e-05 +/- 1.70e-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/811181/cmap_HighResolution_480384001_480643201_4FGL_J2323.5-0317_daily_bin930.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.29e-05', comment='SUCCESS', photon_flux='4.14e-08', energy_flux2='2.47e-05', photon_flux_error='4.25e-08', dlogl='1.77e+00', energy_flux='1.70e-05', photon_flux2='1.71e-07', job_status='DONE', time_completed='2021-09-29 14:48:12.407834', photon_index_error2='4.53', photon_index2='4.47', ts='1.25', fit_tolerance='1e-08', GAL='1.10', photon_index_error='0.00', photon_flux_upper_limit='1.29e-07', energy_flux_error2='1.70e-05', EG='0.81', time_epoch_completed='1632952092.41', return_code='0', job_id='811181', GAL2='1.20', EG2='0.63', return_code2='102', energy_flux_error='1.74e-05', photon_flux_error2='9.15e-08', ts2='5.48', photon_index='2.16' WHERE bin_id='930' AND source_name='4FGL J2323.5-0317' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 14:48:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0055>
Subject: Job 811181: <4FGL_J2323.5-0317_daily_bin930> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2323.5-0317_daily_bin930 350.888 -3.29 480384001 480643201 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 :                                   645.25 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             307.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   748 sec.
    Turnaround time :                            751 sec.

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

