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


Performing analysis on: 4FGL_J2323.5-0317_daily_bin130
RA = 350.888, Dec = -3.29
tmin = 273024001, tmax = 273283201
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='807045', job_status='RUN', time_executed='2021-09-29 14:24:06.780345', time_epoch_executed='1632950646.78' WHERE source_name='4FGL J2323.5-0317' and cadence='daily' and bin_id='130'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/807045

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/807045/ft1_4FGL_J2323.5-0317_daily_bin130.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/807045/ft2_4FGL_J2323.5-0317_daily_bin130.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/807045/ft1_4FGL_J2323.5-0317_daily_bin130.fits outfile=/scratch/kocevski/807045/ft1_filteredMKT_4FGL_J2323.5-0317_daily_bin130.fits ra=350.888 dec=-3.29 rad=12.0 tmin=273024001.0 tmax=273283201.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 2.96
user 2.74
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/807045/ft2_4FGL_J2323.5-0317_daily_bin130.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/807045/ft1_filteredMKT_4FGL_J2323.5-0317_daily_bin130.fits evtable="EVENTS" outfile="/scratch/kocevski/807045/ft1_filtered_4FGL_J2323.5-0317_daily_bin130.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 1.04
user 0.31
sys 0.72

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/807045/ft1_filtered_4FGL_J2323.5-0317_daily_bin130.fits" evtable="EVENTS" scfile=/scratch/kocevski/807045/ft2_4FGL_J2323.5-0317_daily_bin130.fits sctable="SC_DATA" outfile=/scratch/kocevski/807045/ltcube_273024001_273283201_4FGL_J2323.5-0317_daily_bin130.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/807045/ft2_4FGL_J2323.5-0317_daily_bin130.fits
.....................!
real 12.81
user 12.40
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/807045/ft1_filtered_4FGL_J2323.5-0317_daily_bin130.fits evtable="EVENTS" scfile=/scratch/kocevski/807045/ft2_4FGL_J2323.5-0317_daily_bin130.fits sctable="SC_DATA" expcube=/scratch/kocevski/807045/ltcube_273024001_273283201_4FGL_J2323.5-0317_daily_bin130.fits outfile=/scratch/kocevski/807045/expmap_273024001_273283201_4FGL_J2323.5-0317_daily_bin130.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/807045/ltcube_273024001_273283201_4FGL_J2323.5-0317_daily_bin130.fits
.....................!
real 192.22
user 186.65
sys 5.18

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/807045/ft1_filtered_4FGL_J2323.5-0317_daily_bin130.fits scfile=/scratch/kocevski/807045/ft2_4FGL_J2323.5-0317_daily_bin130.fits outfile=/scratch/kocevski/807045/cmap_273024001_273283201_4FGL_J2323.5-0317_daily_bin130.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.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/807045/ft1_filtered_4FGL_J2323.5-0317_daily_bin130.fits scfile=/scratch/kocevski/807045/ft2_4FGL_J2323.5-0317_daily_bin130.fits outfile=/scratch/kocevski/807045/cmap_HighResolution_273024001_273283201_4FGL_J2323.5-0317_daily_bin130.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/807045/ft1_filtered_4FGL_J2323.5-0317_daily_bin130.fits evtable="EVENTS" scfile=/scratch/kocevski/807045/ft2_4FGL_J2323.5-0317_daily_bin130.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/807045/Model_4FGL_J2323.5-0317_daily_bin130.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/807045/ft1_filtered_4FGL_J2323.5-0317_daily_bin130.fits.....................!
real 73.22
user 71.86
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10175E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    7.1411       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    6.8145       1.0000         .10000E-03   10000.    
     8 'Prefactor '    31.509       1.0000         .10000E-03   10000.    
     9 'Prefactor '    8.4635       1.0000         .10000E-03   10000.    
    10 'norm      '    .10065E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    26.204       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    71.294       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10065E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    61.863       1.0000         .10000E-03   10000.    
    17 'norm      '    17.910       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.0611       1.0000         .10000E-03   10000.    
    20 'Prefactor '    60.219       1.0000         .10000E-03   10000.    
    21 'Prefactor '    4.9989       1.0000         .10000E-03   10000.    
    22 'Prefactor '    8.7219       1.0000         .10000E-03   10000.    
    23 'Prefactor '    2.1670       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .55142       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0912       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=   8001.060     FROM MIGRAD    STATUS=CONVERGED    570 CALLS     2901 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.6765        .15936E-06** at limit **
   2  Prefactor     .10000E-03    81.706       -.44330E-04** at limit **
   3  Prefactor     .10000E-03    20.600        .79274E-05** at limit **
   4  Prefactor     .10000E-03    2.4792        .31997E-07** at limit **
   5  norm          7.1434        9.3130       -.74800E-06   -.23682E-03
   6  Prefactor     .10000E-03    45.485        .54887E-04** at limit **
   7  Prefactor     6.8158        10.323       -.38172E-06   -.17856E-03
   8  Prefactor     31.517        45.227        .91431E-05   -.71811E-04
   9  Prefactor     8.4600        9.5215       -.21194E-05   -.40509E-03
  10  norm          .10000E-03    .27414        .82782E-06** at limit **
  11  norm          .10000E-03    3.0729        .14866E-06** at limit **
  12  Prefactor     26.205        13.008       -.63804E-06   -.46234E-03
  13  Prefactor     .10000E-03    13.934       -.94077E-06** at limit **
  14  Prefactor     71.189        131.31       -.11823E-03   -.11640E-03
  15  Prefactor     .10000E-03    4.2062        .31277E-06** at limit **
  16  Prefactor     61.867        31.094        .15802E-05   -.45626E-04
  17  norm          17.892        18.030        .30002E-05   -.35867E-03
  18  Prefactor     .10000E-03    30.955       -.33424E-04** at limit **
  19  Prefactor     1.0667        3.7243        .44298E-05   -.80397E-03
  20  Prefactor     60.218        34.697       -.59206E-06   -.11420E-03
  21  Prefactor     4.9995        27.534       -.22714E-05   -.49469E-04
  22  Prefactor     8.7199        11.596       -.53131E-06   -.13082E-03
  23  Prefactor     2.1672        5.0968        .17820E-05   -.78697E-03
  24  Normalizat    .55131        .16259       -.17088E-05   -.56281E-03
  25  Prefactor     1.0912        .11835        .16348E-05   -.11754E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.1434
  Prefactor  = 0.000100001
  Prefactor  = 6.81577
  Prefactor  = 31.5169
  Prefactor  = 8.46004
  norm       = 0.000100001
  norm       = 0.0001
  Prefactor  = 26.2048
  Prefactor  = 0.0001
  Prefactor  = 71.1894
  Prefactor  = 0.0001
  Prefactor  = 61.867
  norm       = 17.8922
  Prefactor  = 0.0001
  Prefactor  = 1.06674
  Prefactor  = 60.2182
  Prefactor  = 4.99946
  Prefactor  = 8.71993
  Prefactor  = 2.16719
  Normalizat = 0.551307
  Prefactor  = 1.09119
 **********
 **   18 **HESSE 
 **********

 FCN=   8001.060     FROM HESSE     STATUS=OK           423 CALLS     3324 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.6969        .16745E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    82.316        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    20.672        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    2.4826        .13754E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          7.1434        9.3034        .15011E-03   -1.5173    
   6  Prefactor     .10000E-03    45.778        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     6.8158        10.318        .15370E-03   -1.5186    
   8  Prefactor     31.517        45.108        .71381E-04   -1.4585    
   9  Prefactor     8.4600        9.4336        .13779E-03   -1.5126    
  10  norm          .10000E-03    2.8517        .89461E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    3.0969        .15226E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     26.205        13.010        .39129E-03   -1.4684    
  13  Prefactor     .10000E-03    13.979        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     71.189        130.26        .23772E-03   -1.4018    
  15  Prefactor     .10000E-03    4.2213        .17885E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     61.867        31.058        .51016E-04   -1.4133    
  17  norm          17.892        17.521        .94639E-04   -1.4862    
  18  Prefactor     .10000E-03    31.101        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     1.0667        3.5501        .26093E-03   -1.5501    
  20  Prefactor     60.218        34.637        .51704E-04   -1.4154    
  21  Prefactor     4.9995        27.347        .17986E-03   -1.5261    
  22  Prefactor     8.7199        11.603        .13573E-03   -1.5117    
  23  Prefactor     2.1672        5.0739        .27977E-03   -1.5414    
  24  Normalizat    .55131        .17974        .32505E-03   -1.1009    
  25  Prefactor     1.0912        .13346        .18433E-03   -.89749    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.62909e-09
Minuit parameter uncertainties:
  1  2.3053e-06
  2  0.000245692
  3  3.30909e-05
  4  2.27495e-06
  5  9.30525
  6  0.000520018
  7  10.3211
  8  45.1565
  9  9.43522
  10  0.000129043
  11  3.11006e-05
  12  13.0114
  13  3.70908e-06
  14  130.782
  15  7.78169e-05
  16  31.0658
  17  17.5264
  18  0.000146972
  19  3.55084
  20  34.649
  21  23.4019
  22  11.606
  23  5.07495
  24  0.179927
  25  0.133502
Done.

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

Extracting fit parameters...

4FGL J2323.5-0317
   Spectrum: LogParabola
373         norm:  1.000e-04  1.290e-04  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.091e+00  1.335e-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:  5.513e-01  1.799e-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.22e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.14e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/807045/likelihoodResults_273024001_273283201_4FGL_J2323.5-0317_daily_bin130.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): 102
logL (Free Index) = 8001.06137847
delta logL = -0.001805422281

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8000.40999933
delta logL = 0.6495737129

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .75956E-01   1.0000         .10000E-03   10000.    
     2 'alpha     '    .75369       1.0000          .0000       5.0000    
     3 'Normalizat'    .55239       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0874       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=   8000.410     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      239 TOTAL
                     EDM=   .54E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .76164E-01    .16368        .71639E-02    .20478E-04
   2  alpha         .75485        .60579        .50000       -.64572E-04
   3  Normalizat    .55254        .14859        .73307E-01    .10198E-03
   4  Prefactor     1.0872        .11626        .38088E-01   -.18630E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0761635
  alpha      = 0.754851
  Normalizat = 0.552542
  Prefactor  = 1.08721
 **********
 **   18 **HESSE 
 **********

 FCN=   8000.410     FROM HESSE     STATUS=OK            35 CALLS      274 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .76164E-01    .17355        .40572E-03   -1.5653    
   2  alpha         .75485        .79009        .23613E-01   -.77268    
   3  Normalizat    .55254        .16628        .32455E-03   -1.1004    
   4  Prefactor     1.0872        .13040        .18453E-03   -.89876    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.61578e-08
Minuit parameter uncertainties:
  1  0.173547
  2  0.818296
  3  0.166425
  4  0.130438
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/807045': 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) = 8000.40999779
delta logL = 0.649575250988

Extracting fit parameters...

4FGL J2323.5-0317
   Spectrum: LogParabola
373         norm:  7.616e-02  1.735e-01  1.000e-04  1.000e+04 ( 1.000e-11)
374        alpha:  7.549e-01  8.183e-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:  1.087e+00  1.304e-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:  5.525e-01  1.664e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.30
Ra Dec: 350.888 -3.290
Photon Index (Free Index): 0.75 +/- 0.82
Photon Flux (Free Index): 2.75e-09 +/- 4.09e-09
Energy Flux (Free Index): 2.59e-05 +/- 4.51e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/807045/cmap_HighResolution_273024001_273283201_4FGL_J2323.5-0317_daily_bin130.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.14e-05', comment='SUCCESS', energy_flux2='2.59e-05', dlogl='6.50e-01', photon_flux2='2.75e-09', job_status='DONE', time_completed='2021-09-29 14:37:02.647969', photon_index_error2='0.82', photon_index2='0.75', ts='-0.00', fit_tolerance='1e-08', GAL='1.09', photon_index_error='0.00', photon_flux_upper_limit='5.22e-08', energy_flux_error2='4.51e-05', EG='0.55', time_epoch_completed='1632951422.65', return_code='0', job_id='807045', GAL2='1.09', EG2='0.55', return_code2='0', photon_flux_error2='4.09e-09', ts2='1.30', photon_index='2.16' WHERE bin_id='130' AND source_name='4FGL J2323.5-0317' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 14:37:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0213>
Subject: Job 807045: <4FGL_J2323.5-0317_daily_bin130> in cluster <slac> Done

Job <4FGL_J2323.5-0317_daily_bin130> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Wed Sep 29 14:21:01 2021
Job was executed on host(s) <bullet0213>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 14:21:03 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:21:03 2021
Terminated at Wed Sep 29 14:37:03 2021
Results reported at Wed Sep 29 14:37:03 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2323.5-0317_daily_bin130 350.888 -3.29 273024001 273283201 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 :                                   773.40 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             262.29 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   937 sec.
    Turnaround time :                            962 sec.

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

