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


Performing analysis on: 4FGL_J2329.3-4955_daily_bin1071
RA = 352.329, Dec = -49.9324
tmin = 516931201, tmax = 517190401
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='968238', job_status='RUN', time_executed='2021-09-29 21:31:17.215365', time_epoch_executed='1632976277.22' WHERE source_name='4FGL J2329.3-4955' and cadence='daily' and bin_id='1071'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/968238

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/968238/ft1_4FGL_J2329.3-4955_daily_bin1071.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/968238/ft2_4FGL_J2329.3-4955_daily_bin1071.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/968238/ft1_4FGL_J2329.3-4955_daily_bin1071.fits outfile=/scratch/kocevski/968238/ft1_filteredMKT_4FGL_J2329.3-4955_daily_bin1071.fits ra=352.329 dec=-49.9324 rad=12.0 tmin=516931201.0 tmax=517190401.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.36
user 3.69
sys 0.25

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/968238/ft2_4FGL_J2329.3-4955_daily_bin1071.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/968238/ft2_4FGL_J2329.3-4955_daily_bin1071.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/968238/ft1_filteredMKT_4FGL_J2329.3-4955_daily_bin1071.fits evtable="EVENTS" outfile="/scratch/kocevski/968238/ft1_filtered_4FGL_J2329.3-4955_daily_bin1071.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.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/968238/ft1_filtered_4FGL_J2329.3-4955_daily_bin1071.fits" evtable="EVENTS" scfile=/scratch/kocevski/968238/ft2_4FGL_J2329.3-4955_daily_bin1071.fits sctable="SC_DATA" outfile=/scratch/kocevski/968238/ltcube_516931201_517190401_4FGL_J2329.3-4955_daily_bin1071.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/968238/ft2_4FGL_J2329.3-4955_daily_bin1071.fits
.....................!
real 15.71
user 15.36
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/968238/ft1_filtered_4FGL_J2329.3-4955_daily_bin1071.fits evtable="EVENTS" scfile=/scratch/kocevski/968238/ft2_4FGL_J2329.3-4955_daily_bin1071.fits sctable="SC_DATA" expcube=/scratch/kocevski/968238/ltcube_516931201_517190401_4FGL_J2329.3-4955_daily_bin1071.fits outfile=/scratch/kocevski/968238/expmap_516931201_517190401_4FGL_J2329.3-4955_daily_bin1071.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/968238/ltcube_516931201_517190401_4FGL_J2329.3-4955_daily_bin1071.fits
.....................!
real 191.81
user 186.41
sys 4.95

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 183 point sources and 0 extended sources

Setting source of interest to:
4FGL J2329.3-4955 @ 352.329 -49.9324

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/968238/ft1_filtered_4FGL_J2329.3-4955_daily_bin1071.fits scfile=/scratch/kocevski/968238/ft2_4FGL_J2329.3-4955_daily_bin1071.fits outfile=/scratch/kocevski/968238/cmap_516931201_517190401_4FGL_J2329.3-4955_daily_bin1071.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=352.329 yref=-49.9324 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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/968238/ft1_filtered_4FGL_J2329.3-4955_daily_bin1071.fits scfile=/scratch/kocevski/968238/ft2_4FGL_J2329.3-4955_daily_bin1071.fits outfile=/scratch/kocevski/968238/cmap_HighResolution_516931201_517190401_4FGL_J2329.3-4955_daily_bin1071.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=352.329 yref=-49.9324 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.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/968238/ft1_filtered_4FGL_J2329.3-4955_daily_bin1071.fits evtable="EVENTS" scfile=/scratch/kocevski/968238/ft2_4FGL_J2329.3-4955_daily_bin1071.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/968238/Model_4FGL_J2329.3-4955_daily_bin1071.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/968238/ft1_filtered_4FGL_J2329.3-4955_daily_bin1071.fits.....................!
real 40.73
user 39.46
sys 1.16

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/968238/ft1_filtered_4FGL_J2329.3-4955_daily_bin1071.fits', '/scratch/kocevski/968238/ft2_4FGL_J2329.3-4955_daily_bin1071.fits', expMap='/scratch/kocevski/968238/expmap_516931201_517190401_4FGL_J2329.3-4955_daily_bin1071.fits', expCube='/scratch/kocevski/968238/ltcube_516931201_517190401_4FGL_J2329.3-4955_daily_bin1071.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/968238/Model_4FGL_J2329.3-4955_daily_bin1071.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2329.3-4955'

4FGL J2329.3-4955
   Spectrum: LogParabola
476         norm:  7.291e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-11)
477        alpha:  2.177e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
478         beta:  1.055e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
479           Eb:  5.219e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/968238/ft1_filtered_4FGL_J2329.3-4955_daily_bin1071.fits
Spacecraft file(s): /scratch/kocevski/968238/ft2_4FGL_J2329.3-4955_daily_bin1071.fits
Exposure map: /scratch/kocevski/968238/expmap_516931201_517190401_4FGL_J2329.3-4955_daily_bin1071.fits
Exposure cube: /scratch/kocevski/968238/ltcube_516931201_517190401_4FGL_J2329.3-4955_daily_bin1071.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/968238/Model_4FGL_J2329.3-4955_daily_bin1071.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) = 5387.60397626

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10931E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .13516E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.0499       1.0000         .10000E-03   10000.    
     7 'norm      '    .10383E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10033E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.1533       1.0000         .10000E-03   10000.    
    10 'Prefactor '    18.547       1.0000         .10000E-03   10000.    
    11 'Prefactor '    9.8933       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .43278       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10760E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    14.974       1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.3628       1.0000         .10000E-03   10000.    
    17 'norm      '    .10838E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10057E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    27.320       1.0000         .10000E-03   10000.    
    22 'norm      '    1.8719       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    1.0820       1.0000         .10000E-03   10000.    
    25 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    15.883       1.0000         .10000E-03   10000.    
    27 'Prefactor '    9.1262       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10288E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    3.8220       1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.1208       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .74332       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5830E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5387.570     FROM MIGRAD    STATUS=CONVERGED    879 CALLS     4591 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    17.051       -.79267E-06** at limit **
   2  Prefactor     .10000E-03    18.677       -.38681E-06** at limit **
   3  Prefactor     .10004E-03    100.87       -.60302E-05** at limit **
   4  Prefactor     .10000E-03    3.1371        .23257E-08** at limit **
   5  Prefactor     .10000E-03    2.7401       -.60684E-07** at limit **
   6  Prefactor     3.0499        4.8122       -.70182E-07    .21976E-03
   7  norm          .10000E-03    25.270        .21406E-06** at limit **
   8  norm          .10000E-03    2.7861        .16502E-06** at limit **
   9  Prefactor     4.1536        3.6666        .64709E-07   -.61731E-04
  10  Prefactor     18.548        7.3800        .43764E-07   -.77800E-03
  11  Prefactor     9.7768        28.832       -.59295E-05   -.16450E-03
  12  Prefactor     .45927        44.011        .14568E-04   -.21201E-03
  13  Prefactor     .10000E-03    24.562        .56695E-06** at limit **
  14  Prefactor     .10000E-03    3.0898       -.36489E-07** at limit **
  15  Prefactor     14.993        37.319       -.24518E-05   -.23334E-03
  16  Prefactor     2.3616        22.466        .51393E-06   -.24756E-04
  17  norm          .10000E-03    20.187        .33721E-06** at limit **
  18  norm          .10000E-03    2.4263       -.89962E-08** at limit **
  19  norm          .10000E-03    6.2770       -.22591E-06** at limit **
  20  Prefactor     .10000E-03    3.8342        .63983E-07** at limit **
  21  Prefactor     27.307        41.923        .15157E-05    .15017E-03
  22  norm          1.8710        4.6806       -.17608E-06    .12648E-03
  23  Prefactor     .10000E-03    11.628        .10450E-05** at limit **
  24  norm          1.0820        .90252        .36262E-07    .16911E-04
  25  norm          .10000E-03    1.7169        .74611E-07** at limit **
  26  Prefactor     15.855        19.273       -.10403E-06   -.18873E-03
  27  Prefactor     9.1278        4.6264        .11782E-06   -.51699E-04
  28  Prefactor     .10000E-03    23.273        .70575E-06** at limit **
  29  norm          .10000E-03    10.676       -.53659E-06** at limit **
  30  Prefactor     3.8206        6.2937       -.27875E-06    .62200E-03
  31  Prefactor     .10000E-03    3.1414        .11732E-06** at limit **
  32  Normalizat    1.1210        .18870       -.14802E-05   -.61138E-03
  33  Prefactor     .74312        .18908        .46333E-06   -.53171E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000100035
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.04992
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 4.15358
  Prefactor  = 18.5482
  Prefactor  = 9.77684
  Prefactor  = 0.459273
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.9931
  Prefactor  = 2.36164
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 27.3073
  norm       = 1.87097
  Prefactor  = 0.000100001
  norm       = 1.082
  norm       = 0.0001
  Prefactor  = 15.8552
  Prefactor  = 9.12783
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 3.82056
  Prefactor  = 0.0001
  Normalizat = 1.12099
  Prefactor  = 0.743122
 **********
 **   18 **HESSE 
 **********

 FCN=   5387.570     FROM HESSE     STATUS=OK           683 CALLS     5274 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    17.106        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    18.776        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10004E-03    104.46        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    3.1426        .12696E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    2.7521        .11865E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     3.0499        4.8118        .98569E-03   -1.5359    
   7  norm          .10000E-03    25.326        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    2.7964        .11969E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     4.1536        3.6621        .12726E-03   -1.5300    
  10  Prefactor     18.548        7.3943        .93000E-04   -1.4846    
  11  Prefactor     9.7768        30.077        .12740E-03   -1.5083    
  12  Prefactor     .45927        48.733        .39564E-02   -1.5572    
  13  Prefactor     .10000E-03    24.587        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    3.1045        .12598E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     14.993        37.721        .10351E-03   -1.4933    
  16  Prefactor     2.3616        22.118        .26660E-03   -1.5401    
  17  norm          .10000E-03    20.883        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    2.4322        .11165E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    6.3405        .35529E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    3.8738        .14024E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     27.307        41.600        .76646E-04   -1.4662    
  22  norm          1.8710        4.5416        .17854E-03   -1.5434    
  23  Prefactor     .10000E-03    11.883        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          1.0820        .88603        .59528E-04   -1.5500    
  25  norm          .10000E-03    1.7352        .93807E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     15.855        19.335        .10050E-03   -1.4911    
  27  Prefactor     9.1278        4.6251        .10245E-03   -1.5104    
  28  Prefactor     .10000E-03    23.625        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          .10000E-03    10.699        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     3.8206        6.5510        .10323E-02   -1.5317    
  31  Prefactor     .10000E-03    3.2674        .25394E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    1.1210        .22479        .21627E-03   -.89081    
  33  Prefactor     .74312        .22233        .27502E-03   -1.0186    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.50976e-09
Minuit parameter uncertainties:
  1  0.000229751
  2  9.07637e-05
  3  0.00383909
  4  4.57025e-06
  5  3.54635e-06
  6  4.81236
  7  9.09518e-05
  8  1.43655e-05
  9  3.66227
  10  7.39469
  11  30.1236
  12  9.46876
  13  0.000174042
  14  2.92849e-06
  15  37.7808
  16  14.4613
  17  9.19704e-05
  18  1.14647e-06
  19  2.20726e-05
  20  6.76094e-06
  21  41.6437
  22  4.54242
  23  0.000243327
  24  0.886041
  25  2.23103e-06
  26  19.3423
  27  4.62533
  28  0.00022659
  29  0.000105454
  30  6.55224
  31  2.15403e-05
  32  0.224987
  33  0.222601
Done.

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

Extracting fit parameters...

4FGL J2329.3-4955
   Spectrum: LogParabola
476         norm:  1.082e+00  8.860e-01  1.000e-04  1.000e+04 ( 1.000e-11)
477        alpha:  2.177e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
478         beta:  1.055e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
479           Eb:  5.219e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
580    Prefactor:  7.431e-01  2.226e-01  0.000e+00  1.000e+01 ( 1.000e+00)
581        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
582        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
579   Normalization:  1.121e+00  2.250e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.08
Ra Dec: 352.329 -49.932
Photon Index (Fixed Index): 2.18 +/- 0.00
Photon Flux (Fixed Index): 2.93e-08 +/- 2.40e-08
Energy Flux (Fixed Index): 1.11e-05 +/- 9.13e-06

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) = 5387.54412223
delta logL = 0.0253884573567

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5387.54332479
delta logL = 0.0261858977765

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.0532       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0069       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1260       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .74012       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5830E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5387.543     FROM MIGRAD    STATUS=CONVERGED     45 CALLS      183 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.0532        2.3725        .12024E-01    .18114E-02
   2  alpha         2.0069        1.5541        .42211       -.15501E-04
   3  Normalizat    1.1260        .17685        .37030E-01    .11016E-03
   4  Prefactor     .74013        .18794        .62291E-01    .21385E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.05324
  alpha      = 2.00693
  Normalizat = 1.12596
  Prefactor  = 0.740129
 **********
 **   18 **HESSE 
 **********

 FCN=   5387.543     FROM HESSE     STATUS=OK            31 CALLS      214 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.0532        .87890        .59748E-04   -1.5503    
   2  alpha         2.0069        .72388        .17737E-01   -.19853    
   3  Normalizat    1.1260        .20633        .10793E-02   -.88923    
   4  Prefactor     .74013        .21769        .27553E-03   -1.0197    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.2018e-10
Minuit parameter uncertainties:
  1  0.87891
  2  0.734837
  3  0.206474
  4  0.217945
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/968238': 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) = 5387.54332479
delta logL = 0.0261859004413

Extracting fit parameters...

4FGL J2329.3-4955
   Spectrum: LogParabola
476         norm:  1.053e+00  8.789e-01  1.000e-04  1.000e+04 ( 1.000e-11)
477        alpha:  2.007e+00  7.348e-01  0.000e+00  5.000e+00 ( 1.000e+00)
478         beta:  1.055e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
479           Eb:  5.219e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
580    Prefactor:  7.401e-01  2.179e-01  0.000e+00  1.000e+01 ( 1.000e+00)
581        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
582        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
579   Normalization:  1.126e+00  2.065e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.13
Ra Dec: 352.329 -49.932
Photon Index (Free Index): 2.01 +/- 0.73
Photon Flux (Free Index): 2.52e-08 +/- 2.67e-08
Energy Flux (Free Index): 1.20e-05 +/- 1.07e-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/968238/cmap_HighResolution_516931201_517190401_4FGL_J2329.3-4955_daily_bin1071.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.93e-08', energy_flux2='1.20e-05', photon_flux_error='2.40e-08', dlogl='2.62e-02', energy_flux='1.11e-05', photon_flux2='2.52e-08', job_status='DONE', time_completed='2021-09-29 21:43:52.300660', photon_index_error2='0.73', photon_index2='2.01', ts='4.08', fit_tolerance='1e-08', GAL='0.74', photon_index_error='0.00', energy_flux_error2='1.07e-05', EG='1.12', time_epoch_completed='1632977032.3', return_code='0', job_id='968238', GAL2='0.74', EG2='1.13', return_code2='0', energy_flux_error='9.13e-06', photon_flux_error2='2.67e-08', ts2='4.13', photon_index='2.18' WHERE bin_id='1071' AND source_name='4FGL J2329.3-4955' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 21:43:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0209>
Subject: Job 968238: <4FGL_J2329.3-4955_daily_bin1071> in cluster <slac> Done

Job <4FGL_J2329.3-4955_daily_bin1071> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Sep 29 21:30:19 2021
Job was executed on host(s) <bullet0209>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 21: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 21:30:20 2021
Terminated at Wed Sep 29 21:43:53 2021
Results reported at Wed Sep 29 21:43:53 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2329.3-4955_daily_bin1071 352.329 -49.9324 516931201 517190401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2329.3-4955 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   753.22 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             282.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   812 sec.
    Turnaround time :                            814 sec.

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

