/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 218 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 = 29
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2323.5-0317_daily_bin462
RA = 350.888, Dec = -3.29
tmin = 359078401, tmax = 359337601
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='809384', job_status='RUN', time_executed='2021-09-29 14:34:04.792101', time_epoch_executed='1632951244.79' WHERE source_name='4FGL J2323.5-0317' and cadence='daily' and bin_id='462'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/809384

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/809384/ft1_4FGL_J2323.5-0317_daily_bin462.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/809384/ft2_4FGL_J2323.5-0317_daily_bin462.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/809384/ft1_4FGL_J2323.5-0317_daily_bin462.fits outfile=/scratch/kocevski/809384/ft1_filteredMKT_4FGL_J2323.5-0317_daily_bin462.fits ra=350.888 dec=-3.29 rad=12.0 tmin=359078401.0 tmax=359337601.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.74
user 3.51
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/809384/ft2_4FGL_J2323.5-0317_daily_bin462.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/809384/ft1_filteredMKT_4FGL_J2323.5-0317_daily_bin462.fits evtable="EVENTS" outfile="/scratch/kocevski/809384/ft1_filtered_4FGL_J2323.5-0317_daily_bin462.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/809384/ft1_filtered_4FGL_J2323.5-0317_daily_bin462.fits" evtable="EVENTS" scfile=/scratch/kocevski/809384/ft2_4FGL_J2323.5-0317_daily_bin462.fits sctable="SC_DATA" outfile=/scratch/kocevski/809384/ltcube_359078401_359337601_4FGL_J2323.5-0317_daily_bin462.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/809384/ft2_4FGL_J2323.5-0317_daily_bin462.fits
.....................!
real 12.47
user 12.10
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/809384/ft1_filtered_4FGL_J2323.5-0317_daily_bin462.fits evtable="EVENTS" scfile=/scratch/kocevski/809384/ft2_4FGL_J2323.5-0317_daily_bin462.fits sctable="SC_DATA" expcube=/scratch/kocevski/809384/ltcube_359078401_359337601_4FGL_J2323.5-0317_daily_bin462.fits outfile=/scratch/kocevski/809384/expmap_359078401_359337601_4FGL_J2323.5-0317_daily_bin462.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/809384/ltcube_359078401_359337601_4FGL_J2323.5-0317_daily_bin462.fits
.....................!
real 190.87
user 186.12
sys 4.36

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/809384/ft1_filtered_4FGL_J2323.5-0317_daily_bin462.fits scfile=/scratch/kocevski/809384/ft2_4FGL_J2323.5-0317_daily_bin462.fits outfile=/scratch/kocevski/809384/cmap_359078401_359337601_4FGL_J2323.5-0317_daily_bin462.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/809384/ft1_filtered_4FGL_J2323.5-0317_daily_bin462.fits scfile=/scratch/kocevski/809384/ft2_4FGL_J2323.5-0317_daily_bin462.fits outfile=/scratch/kocevski/809384/cmap_HighResolution_359078401_359337601_4FGL_J2323.5-0317_daily_bin462.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/809384/ft1_filtered_4FGL_J2323.5-0317_daily_bin462.fits evtable="EVENTS" scfile=/scratch/kocevski/809384/ft2_4FGL_J2323.5-0317_daily_bin462.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/809384/Model_4FGL_J2323.5-0317_daily_bin462.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/809384/ft1_filtered_4FGL_J2323.5-0317_daily_bin462.fits.....................!
real 62.97
user 61.63
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    16.525       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    7.1231       1.0000         .10000E-03   10000.    
     6 'Prefactor '    20.099       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10188E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .40125       1.0000         .10000E-03   10000.    
    11 'norm      '    .12431E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    18.187       1.0000         .10000E-03   10000.    
    13 'Prefactor '    19.299       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.0065       1.0000         .10000E-03   10000.    
    17 'norm      '    36.042       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .93687E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10206E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    5.9276       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    11.141       1.0000         .10000E-03   10000.    
    23 'Prefactor '    8.4825       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.1292       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .79094       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=   6527.879     FROM MIGRAD    STATUS=CONVERGED    578 CALLS     2920 TOTAL
                     EDM=   .99E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     16.524        9.8920        .15347E-06    .16826E-03
   2  Prefactor     .10000E-03    15.821       -.77378E-05** at limit **
   3  Prefactor     .10001E-03    122.28        .48927E-04** at limit **
   4  Prefactor     .10000E-03    3.2529       -.36482E-07** at limit **
   5  norm          7.1152        15.134       -.80520E-05   -.37236E-04
   6  Prefactor     20.069        36.219       -.16451E-04   -.95779E-06
   7  Prefactor     .10000E-03    16.048        .75337E-05** at limit **
   8  Prefactor     .10000E-03    151.36       -.28423E-04** at limit **
   9  Prefactor     .10000E-03    3.3950        .35671E-07** at limit **
  10  norm          .40142        .75411       -.17159E-06   -.90203E-03
  11  norm          .10000E-03    3.8034        .31476E-06** at limit **
  12  Prefactor     18.181        11.085        .18096E-06    .30544E-04
  13  Prefactor     19.302        40.127        .54415E-06    .14224E-04
  14  Prefactor     .10000E-03    85.402       -.11295E-04** at limit **
  15  Prefactor     .10000E-03    12.508        .13195E-05** at limit **
  16  Prefactor     1.9997        45.073       -.47517E-05   -.81032E-04
  17  norm          36.051        22.429       -.49670E-06    .15378E-03
  18  Prefactor     .10007E-03    527.77       -.23542E-03** at limit **
  19  Prefactor     .10000E-03    2.4958       -.18870E-06** at limit **
  20  Prefactor     5.9213        23.260       -.43167E-06   -.85904E-05
  21  Prefactor     .10000E-03    5.1671       -.19101E-07** at limit **
  22  Prefactor     11.141        15.666        .48744E-06    .63953E-04
  23  Prefactor     8.4828        7.5890        .19067E-05    .12835E-03
  24  Normalizat    1.1296        .17995        .93634E-06    .94339E-03
  25  Prefactor     .79091        .13050        .21893E-05    .61141E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 16.5244
  Prefactor  = 0.0001
  Prefactor  = 0.000100008
  Prefactor  = 0.0001
  norm       = 7.11519
  Prefactor  = 20.0689
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.401425
  norm       = 0.000100001
  Prefactor  = 18.1811
  Prefactor  = 19.3019
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.99968
  norm       = 36.0514
  Prefactor  = 0.000100073
  Prefactor  = 0.000100002
  Prefactor  = 5.92131
  Prefactor  = 0.0001
  Prefactor  = 11.1411
  Prefactor  = 8.48278
  Normalizat = 1.12956
  Prefactor  = 0.790914
 **********
 **   18 **HESSE 
 **********

 FCN=   6527.879     FROM HESSE     STATUS=OK           429 CALLS     3349 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     16.524        9.8872        .98525E-04   -1.4895    
   2  Prefactor     .10000E-03    15.832        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10001E-03    124.31        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    3.2578        .14231E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          7.1152        15.181        .15030E-03   -1.5174    
   6  Prefactor     20.069        36.369        .89340E-04   -1.4812    
   7  Prefactor     .10000E-03    16.140        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    154.61        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    3.4066        .14533E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .40142        .66168        .89306E-03   -1.5581    
  11  norm          .10000E-03    24.603        .30099E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     18.181        11.058        .93916E-04   -1.4855    
  13  Prefactor     19.302        40.102        .91170E-04   -1.4829    
  14  Prefactor     .10000E-03    85.417        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    12.598        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     1.9997        45.163        .29231E-03   -1.5425    
  17  norm          36.051        21.541        .66755E-04   -1.4506    
  18  Prefactor     .10007E-03    531.55        .41609E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    12.631        .22903E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     5.9213        23.241        .16494E-03   -1.5221    
  21  Prefactor     .10000E-03    5.1701        .17937E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     11.141        15.667        .12003E-03   -1.5040    
  23  Prefactor     8.4828        7.5975        .13764E-03   -1.5125    
  24  Normalizat    1.1296        .20568        .25269E-03   -.88808    
  25  Prefactor     .79091        .15172        .21741E-03   -1.0006    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.07756e-09
Minuit parameter uncertainties:
  1  9.8882
  2  1.44167e-05
  3  0.00195033
  4  8.36362e-06
  5  15.1892
  6  36.4087
  7  3.35813e-05
  8  0.000773467
  9  1.235e-05
  10  0.661689
  11  0.000252889
  12  11.0597
  13  40.1583
  14  1.76153e-05
  15  1.57575e-05
  16  19.0222
  17  21.546
  18  0.0125891
  19  0.000302973
  20  23.2761
  21  3.35087e-06
  22  15.6726
  23  7.59835
  24  0.205831
  25  0.151803
Done.

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

Extracting fit parameters...

4FGL J2323.5-0317
   Spectrum: LogParabola
373         norm:  4.014e-01  6.617e-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:  7.909e-01  1.518e-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:  1.130e+00  2.058e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/809384/likelihoodResults_359078401_359337601_4FGL_J2323.5-0317_daily_bin462.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) = 6527.80196141
delta logL = 0.0772036427197

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6527.79773416
delta logL = 0.0814308945928

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .35401       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6645       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1385       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .78671       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=   6527.798     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      215 TOTAL
                     EDM=   .65E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .35337        .66628        .17207E-01    .14923E-02
   2  alpha         1.6642        .78667        .44517       -.43267E-04
   3  Normalizat    1.1385        .17128        .56942E-01    .86668E-05
   4  Prefactor     .78675        .12631        .43544E-01    .13736E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.353367
  alpha      = 1.66422
  Normalizat = 1.13847
  Prefactor  = 0.786748
 **********
 **   18 **HESSE 
 **********

 FCN=   6527.798     FROM HESSE     STATUS=OK            35 CALLS      250 TOTAL
                     EDM=   .54E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .35337        .59583        .82863E-03   -1.5589    
   2  alpha         1.6642        1.0222        .25358E-01   -.34088    
   3  Normalizat    1.1385        .19921        .25180E-03   -.88526    
   4  Prefactor     .78675        .14690        .21790E-03   -1.0022    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.3823e-09
Minuit parameter uncertainties:
  1  0.595843
  2  1.05729
  3  0.199344
  4  0.146973
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/809384': 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) = 6527.79773344
delta logL = 0.0814316207752

Extracting fit parameters...

4FGL J2323.5-0317
   Spectrum: LogParabola
373         norm:  3.534e-01  5.958e-01  1.000e-04  1.000e+04 ( 1.000e-11)
374        alpha:  1.664e+00  1.057e+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:  7.867e-01  1.470e-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:  1.138e+00  1.993e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.51
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/809384/cmap_HighResolution_359078401_359337601_4FGL_J2323.5-0317_daily_bin462.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.36e-05', job_status='DONE', photon_flux_upper_limit='8.21e-08', time_completed='2021-09-29 14:45:29.301562', job_id='809384', GAL2='0.79', fit_tolerance='1e-08', EG2='1.14', EG='1.13', time_epoch_completed='1632951929.3', return_code2='0', ts='0.51', comment='SUCCESS', return_code='0', GAL='0.79', dlogl='8.14e-02', ts2='0.67', photon_index_error='0.00', photon_index='2.16' WHERE bin_id='462' AND source_name='4FGL J2323.5-0317' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 14:45:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0067>
Subject: Job 809384: <4FGL_J2323.5-0317_daily_bin462> in cluster <slac> Done

Job <4FGL_J2323.5-0317_daily_bin462> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Wed Sep 29 14:30:18 2021
Job was executed on host(s) <bullet0067>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 14:30:20 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:30:20 2021
Terminated at Wed Sep 29 14:45:30 2021
Results reported at Wed Sep 29 14:45:30 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2323.5-0317_daily_bin462 350.888 -3.29 359078401 359337601 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 :                                   679.43 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             281.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   909 sec.
    Turnaround time :                            912 sec.

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

