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


Performing analysis on: 4FGL_J2323.5-0317_daily_bin985
RA = 350.888, Dec = -3.29
tmin = 494640001, tmax = 494899201
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='811261', job_status='RUN', time_executed='2021-09-29 14:36:23.919014', time_epoch_executed='1632951383.92' WHERE source_name='4FGL J2323.5-0317' and cadence='daily' and bin_id='985'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/811261

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/811261/ft1_4FGL_J2323.5-0317_daily_bin985.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/811261/ft2_4FGL_J2323.5-0317_daily_bin985.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/811261/ft1_4FGL_J2323.5-0317_daily_bin985.fits outfile=/scratch/kocevski/811261/ft1_filteredMKT_4FGL_J2323.5-0317_daily_bin985.fits ra=350.888 dec=-3.29 rad=12.0 tmin=494640001.0 tmax=494899201.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 4.94
user 3.98
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/811261/ft1_filtered_4FGL_J2323.5-0317_daily_bin985.fits" evtable="EVENTS" scfile=/scratch/kocevski/811261/ft2_4FGL_J2323.5-0317_daily_bin985.fits sctable="SC_DATA" outfile=/scratch/kocevski/811261/ltcube_494640001_494899201_4FGL_J2323.5-0317_daily_bin985.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/811261/ft2_4FGL_J2323.5-0317_daily_bin985.fits
.....................!
real 11.62
user 11.26
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/811261/ft1_filtered_4FGL_J2323.5-0317_daily_bin985.fits evtable="EVENTS" scfile=/scratch/kocevski/811261/ft2_4FGL_J2323.5-0317_daily_bin985.fits sctable="SC_DATA" expcube=/scratch/kocevski/811261/ltcube_494640001_494899201_4FGL_J2323.5-0317_daily_bin985.fits outfile=/scratch/kocevski/811261/expmap_494640001_494899201_4FGL_J2323.5-0317_daily_bin985.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/811261/ltcube_494640001_494899201_4FGL_J2323.5-0317_daily_bin985.fits
.....................!
real 190.44
user 184.42
sys 5.67

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/811261/ft1_filtered_4FGL_J2323.5-0317_daily_bin985.fits scfile=/scratch/kocevski/811261/ft2_4FGL_J2323.5-0317_daily_bin985.fits outfile=/scratch/kocevski/811261/cmap_494640001_494899201_4FGL_J2323.5-0317_daily_bin985.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/811261/ft1_filtered_4FGL_J2323.5-0317_daily_bin985.fits scfile=/scratch/kocevski/811261/ft2_4FGL_J2323.5-0317_daily_bin985.fits outfile=/scratch/kocevski/811261/cmap_HighResolution_494640001_494899201_4FGL_J2323.5-0317_daily_bin985.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.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.1858       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    20.717       1.0000         .10000E-03   10000.    
     5 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    32.031       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .14086E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.8817       1.0000         .10000E-03   10000.    
    10 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    3.4370       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    46.038       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.7354       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    18.414       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.3072       1.0000         .10000E-03   10000.    
    20 'Prefactor '    48.812       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    4.2875       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .39666E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .84175       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .92680       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=   4574.899     FROM MIGRAD    STATUS=CONVERGED    573 CALLS     2892 TOTAL
                     EDM=   .80E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.1841        9.4817       -.49472E-06   -.16932E-03
   2  Prefactor     .10000E-03    26.325       -.11807E-04** at limit **
   3  Prefactor     .10000E-03    18.875       -.53950E-05** at limit **
   4  Prefactor     20.718        13.673       -.18637E-06   -.13665E-03
   5  norm          .10000E-03    6.7150       -.48213E-07** at limit **
   6  Prefactor     .10000E-03    62.699        .85457E-05** at limit **
   7  Prefactor     32.035        24.989       -.13586E-07   -.39482E-04
   8  Prefactor     .10000E-03    114.01       -.23864E-04** at limit **
   9  Prefactor     3.8672        8.8318       -.27293E-05   -.32412E-04
  10  norm          .10000E-03    .31826       -.68683E-07** at limit **
  11  norm          3.4373        3.8346        .17224E-06    .13931E-03
  12  Prefactor     .10000E-03    9.7447       -.17646E-06** at limit **
  13  Prefactor     46.036        49.641       -.10380E-05   -.34299E-04
  14  Prefactor     .10000E-03    96.722        .27401E-04** at limit **
  15  Prefactor     4.7489        16.438        .24801E-04    .42406E-04
  16  Prefactor     .10000E-03    22.706        .15132E-04** at limit **
  17  norm          18.368        46.748       -.60064E-04   -.19619E-03
  18  Prefactor     .10000E-03    58.517       -.10809E-04** at limit **
  19  Prefactor     3.3074        7.4767        .98825E-05   -.52391E-03
  20  Prefactor     48.805        46.313       -.60830E-05   -.82159E-04
  21  Prefactor     .10000E-03    5.7617        .91242E-07** at limit **
  22  Prefactor     4.2867        19.877       -.19420E-05   -.98903E-04
  23  Prefactor     .10002E-03    6.8246        .17453E-05** at limit **
  24  Normalizat    .84179        .21850       -.41851E-05   -.69946E-04
  25  Prefactor     .92674        .15450        .31171E-05   -.49725E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.1841
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 20.7176
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 32.0354
  Prefactor  = 0.000100003
  Prefactor  = 3.86717
  norm       = 0.0001
  norm       = 3.43725
  Prefactor  = 0.0001
  Prefactor  = 46.0359
  Prefactor  = 0.0001
  Prefactor  = 4.74887
  Prefactor  = 0.0001
  norm       = 18.368
  Prefactor  = 0.0001
  Prefactor  = 3.30739
  Prefactor  = 48.8046
  Prefactor  = 0.0001
  Prefactor  = 4.28669
  Prefactor  = 0.000100019
  Normalizat = 0.841788
  Prefactor  = 0.926735
 **********
 **   18 **HESSE 
 **********

 FCN=   4574.899     FROM HESSE     STATUS=OK           421 CALLS     3313 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.1841        9.4554        .17653E-03   -1.5253    
   2  Prefactor     .10000E-03    26.320        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    18.895        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     20.718        13.678        .43999E-03   -1.4797    
   5  norm          .10000E-03    6.7413        .17116E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    63.035        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     32.035        24.994        .70799E-04   -1.4575    
   8  Prefactor     .10000E-03    113.97        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     3.8672        8.7795        .20480E-03   -1.5315    
  10  norm          .10000E-03    .32809        .74440E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          3.4373        3.8264        .13185E-03   -1.5337    
  12  Prefactor     .10000E-03    9.8398        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     46.036        49.627        .59092E-04   -1.4350    
  14  Prefactor     .10000E-03    96.632        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     4.7489        16.174        .18491E-03   -1.5272    
  16  Prefactor     .10000E-03    22.772        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          18.368        46.328        .93335E-04   -1.4851    
  18  Prefactor     .10000E-03    58.610        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     3.3074        7.2897        .19211E-03   -1.5344    
  20  Prefactor     48.805        46.392        .57396E-04   -1.4310    
  21  Prefactor     .10000E-03    5.7633        .15857E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     4.2867        19.963        .19457E-03   -1.5294    
  23  Prefactor     .10002E-03    16.692        .34064E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .84179        .25629        .28620E-03   -.98537    
  25  Prefactor     .92674        .18242        .20092E-03   -.95213    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.41325e-09
Minuit parameter uncertainties:
  1  9.45816
  2  2.75882e-06
  3  1.04949e-05
  4  13.6802
  5  3.94355e-06
  6  8.0379e-05
  7  25.0019
  8  0.00118414
  9  8.78245
  10  7.37825e-07
  11  3.82672
  12  1.1252e-05
  13  49.672
  14  6.17436e-05
  15  16.1888
  16  2.02846e-05
  17  46.4191
  18  3.79983e-05
  19  7.29166
  20  46.4265
  21  5.30182e-06
  22  18.5112
  23  0.00111631
  24  0.256657
  25  0.182539
Done.

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

Extracting fit parameters...

4FGL J2323.5-0317
   Spectrum: LogParabola
373         norm:  1.000e-04  7.378e-07  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.267e-01  1.825e-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.418e-01  2.567e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/811261/likelihoodResults_494640001_494899201_4FGL_J2323.5-0317_daily_bin985.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) = 4574.8990446
delta logL = -4.07573388657e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4574.89900481
delta logL = -9.66735569818e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1584       1.0000          .0000       5.0000    
     3 'Normalizat'    .84177       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92686       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4574.899     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      241 TOTAL
                     EDM=   .28E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .32967        .74447E-04** at limit **
   2  alpha         2.1356        3.5378        .16659       -.22957E-07
   3  Normalizat    .84178        .24243        .28620E-03    .33328E-04
   4  Prefactor     .92674        .17912        .20092E-03    .50189E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.13561
  Normalizat = 0.841783
  Prefactor  = 0.92674
 **********
 **   18 **HESSE 
 **********

 FCN=   4574.899     FROM HESSE     STATUS=OK            25 CALLS      266 TOTAL
                     EDM=   .24E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .32824        .14889E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.1356        3.3226        .33318E-01   -.14628    
   3  Normalizat    .84178        .24265        .11448E-04   -.98537    
   4  Prefactor     .92674        .17928        .80368E-05   -.95213    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.39435e-12
Minuit parameter uncertainties:
  1  2.11719e-08
  2  67.2596
  3  0.242961
  4  0.179398
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/811261': 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) = 4574.89900377
delta logL = 6.68069333187e-08

Extracting fit parameters...

4FGL J2323.5-0317
   Spectrum: LogParabola
373         norm:  1.000e-04  2.117e-08  1.000e-04  1.000e+04 ( 1.000e-11)
374        alpha:  2.136e+00  6.726e+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.267e-01  1.794e-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.418e-01  2.430e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 350.888 -3.290

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/811261/cmap_HighResolution_494640001_494899201_4FGL_J2323.5-0317_daily_bin985.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.42e-05', job_status='DONE', photon_flux_upper_limit='5.91e-08', time_completed='2021-09-29 14:45:54.995725', job_id='811261', GAL2='0.93', fit_tolerance='1e-08', EG2='0.84', EG='0.84', time_epoch_completed='1632951955.0', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.93', dlogl='6.68e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.16' WHERE bin_id='985' AND source_name='4FGL J2323.5-0317' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 14:45:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0221>
Subject: Job 811261: <4FGL_J2323.5-0317_daily_bin985> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2323.5-0317_daily_bin985 350.888 -3.29 494640001 494899201 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 :                                   561.00 sec.
    Max Memory :                                 1158 MB
    Average Memory :                             326.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   605 sec.
    Turnaround time :                            608 sec.

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

