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


Performing analysis on: 4FGL_J2329.3-4955_daily_bin1579
RA = 352.329, Dec = -49.9324
tmin = 648604801, tmax = 648864001
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='972991', job_status='RUN', time_executed='2021-09-29 21:36:19.594570', time_epoch_executed='1632976579.59' WHERE source_name='4FGL J2329.3-4955' and cadence='daily' and bin_id='1579'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/972991

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/972991/ft1_4FGL_J2329.3-4955_daily_bin1579.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/972991/ft2_4FGL_J2329.3-4955_daily_bin1579.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/972991/ft1_4FGL_J2329.3-4955_daily_bin1579.fits outfile=/scratch/kocevski/972991/ft1_filteredMKT_4FGL_J2329.3-4955_daily_bin1579.fits ra=352.329 dec=-49.9324 rad=12.0 tmin=648604801.0 tmax=648864001.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.93
user 2.72
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/972991/ft2_4FGL_J2329.3-4955_daily_bin1579.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/972991/ft1_filteredMKT_4FGL_J2329.3-4955_daily_bin1579.fits evtable="EVENTS" outfile="/scratch/kocevski/972991/ft1_filtered_4FGL_J2329.3-4955_daily_bin1579.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.48
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/972991/ft1_filtered_4FGL_J2329.3-4955_daily_bin1579.fits" evtable="EVENTS" scfile=/scratch/kocevski/972991/ft2_4FGL_J2329.3-4955_daily_bin1579.fits sctable="SC_DATA" outfile=/scratch/kocevski/972991/ltcube_648604801_648864001_4FGL_J2329.3-4955_daily_bin1579.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/972991/ft2_4FGL_J2329.3-4955_daily_bin1579.fits
.....................!
real 12.85
user 12.51
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/972991/ft1_filtered_4FGL_J2329.3-4955_daily_bin1579.fits evtable="EVENTS" scfile=/scratch/kocevski/972991/ft2_4FGL_J2329.3-4955_daily_bin1579.fits sctable="SC_DATA" expcube=/scratch/kocevski/972991/ltcube_648604801_648864001_4FGL_J2329.3-4955_daily_bin1579.fits outfile=/scratch/kocevski/972991/expmap_648604801_648864001_4FGL_J2329.3-4955_daily_bin1579.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/972991/ltcube_648604801_648864001_4FGL_J2329.3-4955_daily_bin1579.fits
.....................!
real 191.07
user 185.26
sys 5.45

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/972991/ft1_filtered_4FGL_J2329.3-4955_daily_bin1579.fits scfile=/scratch/kocevski/972991/ft2_4FGL_J2329.3-4955_daily_bin1579.fits outfile=/scratch/kocevski/972991/cmap_648604801_648864001_4FGL_J2329.3-4955_daily_bin1579.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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/972991/ft1_filtered_4FGL_J2329.3-4955_daily_bin1579.fits scfile=/scratch/kocevski/972991/ft2_4FGL_J2329.3-4955_daily_bin1579.fits outfile=/scratch/kocevski/972991/cmap_HighResolution_648604801_648864001_4FGL_J2329.3-4955_daily_bin1579.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.35
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/972991/ft1_filtered_4FGL_J2329.3-4955_daily_bin1579.fits evtable="EVENTS" scfile=/scratch/kocevski/972991/ft2_4FGL_J2329.3-4955_daily_bin1579.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/972991/Model_4FGL_J2329.3-4955_daily_bin1579.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/972991/ft1_filtered_4FGL_J2329.3-4955_daily_bin1579.fits......................!
real 29.79
user 28.53
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/972991/ft1_filtered_4FGL_J2329.3-4955_daily_bin1579.fits', '/scratch/kocevski/972991/ft2_4FGL_J2329.3-4955_daily_bin1579.fits', expMap='/scratch/kocevski/972991/expmap_648604801_648864001_4FGL_J2329.3-4955_daily_bin1579.fits', expCube='/scratch/kocevski/972991/ltcube_648604801_648864001_4FGL_J2329.3-4955_daily_bin1579.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/972991/Model_4FGL_J2329.3-4955_daily_bin1579.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/972991/ft1_filtered_4FGL_J2329.3-4955_daily_bin1579.fits
Spacecraft file(s): /scratch/kocevski/972991/ft2_4FGL_J2329.3-4955_daily_bin1579.fits
Exposure map: /scratch/kocevski/972991/expmap_648604801_648864001_4FGL_J2329.3-4955_daily_bin1579.fits
Exposure cube: /scratch/kocevski/972991/ltcube_648604801_648864001_4FGL_J2329.3-4955_daily_bin1579.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/972991/Model_4FGL_J2329.3-4955_daily_bin1579.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) = 3346.84051953

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    26.153       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    74.569       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.3060       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .28433E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10127E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10071E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    44.064       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10070E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    16.998       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .12094E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.2451       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10185E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10595E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10073E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    4.9539       1.0000         .10000E-03   10000.    
    19 'norm      '    .10208E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10205E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    18.889       1.0000         .10000E-03   10000.    
    22 'norm      '    .13302E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10169E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    1.6206       1.0000         .10000E-03   10000.    
    25 'norm      '    1.6275       1.0000         .10000E-03   10000.    
    26 'Prefactor '    3.1516       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10238E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    .89191       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.0483       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .73523       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=   3346.834     FROM MIGRAD    STATUS=CONVERGED    874 CALLS     4560 TOTAL
                     EDM=   .11E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     26.188        63.725       -.15586E-06    .28239E-04
   2  Prefactor     .10000E-03    19.524       -.74642E-06** at limit **
   3  Prefactor     74.537        60.171        .59546E-06   -.28427E-04
   4  Prefactor     .10000E-03    3.1379       -.68342E-07** at limit **
   5  Prefactor     2.3074        7.6123        .35472E-06   -.12386E-04
   6  Prefactor     .10000E-03    5.6745       -.12827E-06** at limit **
   7  norm          .10000E-03    15.322       -.39683E-07** at limit **
   8  norm          .10000E-03    17.083       -.80709E-07** at limit **
   9  Prefactor     44.066        24.033       -.88378E-07    .67844E-06
  10  Prefactor     .10000E-03    9.7848       -.23505E-07** at limit **
  11  Prefactor     .10000E-03    92.775       -.11199E-06** at limit **
  12  Prefactor     16.995        30.638       -.24931E-06   -.12352E-05
  13  Prefactor     .10000E-03    106.90       -.40724E-06** at limit **
  14  Prefactor     3.2445        10.215        .35492E-06   -.50613E-05
  15  Prefactor     .10000E-03    42.477       -.10635E-06** at limit **
  16  Prefactor     .10000E-03    30.004       -.24827E-06** at limit **
  17  norm          .10000E-03    5.5299        .10311E-07** at limit **
  18  norm          4.9522        6.9739        .10272E-06   -.17074E-04
  19  norm          .10000E-03    3.4364        .15552E-06** at limit **
  20  Prefactor     .10000E-03    24.028        .33082E-06** at limit **
  21  Prefactor     18.902        34.236       -.51384E-06   -.66333E-05
  22  norm          .10000E-03    4.1666        .68777E-06** at limit **
  23  Prefactor     .10000E-03    70.438        .85091E-06** at limit **
  24  norm          1.6197        1.6431        .31856E-06   -.48703E-04
  25  norm          1.6280        4.6650        .48043E-06   -.17063E-04
  26  Prefactor     3.1513        31.597       -.40115E-06   -.28921E-05
  27  Prefactor     .10000E-03    2.5111       -.48918E-06** at limit **
  28  Prefactor     .10000E-03    31.954       -.11443E-05** at limit **
  29  norm          .92072        19.127        .60019E-06   -.84634E-04
  30  Prefactor     .10000E-03    3.3991       -.45673E-06** at limit **
  31  Prefactor     .10000E-03    2.5065       -.12735E-06** at limit **
  32  Normalizat    1.0484        .23752        .17661E-05   -.17353E-04
  33  Prefactor     .73504        .23900       -.54878E-06    .37332E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 26.1875
  Prefactor  = 0.0001
  Prefactor  = 74.5367
  Prefactor  = 0.0001
  Prefactor  = 2.30743
  Prefactor  = 0.000100005
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 44.0665
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.9946
  Prefactor  = 0.0001
  Prefactor  = 3.24455
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 4.95222
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 18.9021
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.61972
  norm       = 1.62797
  Prefactor  = 3.15134
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.920724
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.04844
  Prefactor  = 0.735042
 **********
 **   18 **HESSE 
 **********

 FCN=   3346.834     FROM HESSE     STATUS=OK           689 CALLS     5249 TOTAL
                     EDM=   .42E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     26.188        63.933        .78334E-04   -1.4684    
   2  Prefactor     .10000E-03    19.624        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     74.537        60.408        .46496E-04   -1.3979    
   4  Prefactor     .10000E-03    3.1506        .10011E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     2.3074        7.5195        .26720E-03   -1.5404    
   6  Prefactor     .10000E-03    19.120        .26357E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    15.339        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    17.085        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     44.066        24.026        .60395E-04   -1.4379    
  10  Prefactor     .10000E-03    9.7965        .17674E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    92.899        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     16.995        30.628        .97144E-04   -1.4883    
  13  Prefactor     .10000E-03    106.95        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     3.2445        10.186        .22484E-03   -1.5348    
  15  Prefactor     .10000E-03    42.501        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    30.374        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    5.5301        .13288E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          4.9522        6.9616        .17501E-03   -1.5263    
  19  norm          .10000E-03    3.4364        .10466E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    24.490        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     18.902        34.110        .92156E-04   -1.4838    
  22  norm          .10000E-03    4.1304        .11394E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    71.342        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          1.6197        1.6169        .69360E-04   -1.5453    
  25  norm          1.6280        4.5712        .19503E-03   -1.5453    
  26  Prefactor     3.1513        31.517        .22832E-03   -1.5353    
  27  Prefactor     .10000E-03    2.5930        .90106E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    32.381        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          .92072        68.773        .48675E-02   -1.5516    
  30  Prefactor     .10000E-03    3.4723        .10442E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .10000E-03    2.5388        .89549E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    1.0484        .27924        .21380E-03   -.91425    
  33  Prefactor     .73504        .28271        .26923E-03   -1.0217    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.1789e-10
Minuit parameter uncertainties:
  1  64.1006
  2  2.43747e-05
  3  60.4578
  4  3.90092e-06
  5  7.5226
  6  0.000599735
  7  1.78574e-07
  8  2.97884e-05
  9  24.0309
  10  5.0131e-06
  11  3.01955e-06
  12  30.6563
  13  0.000392921
  14  10.1918
  15  6.17242e-05
  16  0.000125393
  17  1.894e-06
  18  6.96275
  19  5.72749e-06
  20  0.000189506
  21  34.145
  22  1.65892e-05
  23  0.000371434
  24  1.6169
  25  4.57219
  26  19.9452
  27  1.21885e-05
  28  0.000141003
  29  15.9331
  30  9.7469e-06
  31  8.7461e-06
  32  0.279628
  33  0.283267
Done.

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

Extracting fit parameters...

4FGL J2329.3-4955
   Spectrum: LogParabola
476         norm:  1.620e+00  1.617e+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

GAL_V02
   Spectrum: PowerLaw
580    Prefactor:  7.350e-01  2.833e-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.048e+00  2.796e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.79
Ra Dec: 352.329 -49.932
Photon Index (Fixed Index): 2.18 +/- 0.00
Photon Flux (Fixed Index): 4.39e-08 +/- 4.38e-08
Energy Flux (Fixed Index): 1.67e-05 +/- 1.67e-05

TS (Fixed Index): 1.79
Ra Dec: 352.329 -49.932
Photon Flux Upper Limit: 1.44e-07 ph cm-2 s-1
Energy Flux Upper Limit: 5.46e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/972991/likelihoodResults_648604801_648864001_4FGL_J2329.3-4955_daily_bin1579.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) = 3346.61911825
delta logL = 0.214995127923

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3346.60501468
delta logL = 0.229098698689

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.5832       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.9090       1.0000          .0000       5.0000    
     3 'Normalizat'    .98993       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .77572       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=   3346.605     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      201 TOTAL
                     EDM=   .49E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.5823        23.996        .84366E-02    .26355E-03
   2  alpha         2.9092        3.4122        .40661        .17556E-04
   3  Normalizat    .98943        .67231E-01    .46041E-01   -.30189E-06
   4  Prefactor     .77624        .70310E-01    .43400E-01    .52499E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.58227
  alpha      = 2.90924
  Normalizat = 0.989434
  Prefactor  = 0.776237
 **********
 **   18 **HESSE 
 **********

 FCN=   3346.605     FROM HESSE     STATUS=OK            33 CALLS      234 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.5823        1.7764        .53033E-04   -1.5456    
   2  alpha         2.9092        1.1885        .14617E-01    .16443    
   3  Normalizat    .98943        .27817        .21917E-03   -.93385    
   4  Prefactor     .77624        .29021        .26266E-03   -1.0061    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.05628e-09
Minuit parameter uncertainties:
  1  1.77644
  2  1.24007
  3  0.278579
  4  0.290781
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/972991': 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) = 3346.60501256
delta logL = 0.229100821438

Extracting fit parameters...

4FGL J2329.3-4955
   Spectrum: LogParabola
476         norm:  1.582e+00  1.776e+00  1.000e-04  1.000e+04 ( 1.000e-11)
477        alpha:  2.909e+00  1.240e+00  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.762e-01  2.908e-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:  9.894e-01  2.786e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.28
Ra Dec: 352.329 -49.932
Photon Index (Free Index): 2.91 +/- 1.24
Photon Flux (Free Index): 8.66e-08 +/- 8.22e-08
Energy Flux (Free Index): 1.85e-05 +/- 1.45e-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/972991/cmap_HighResolution_648604801_648864001_4FGL_J2329.3-4955_daily_bin1579.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.46e-05', comment='SUCCESS', photon_flux='4.39e-08', energy_flux2='1.85e-05', photon_flux_error='4.38e-08', dlogl='2.29e-01', energy_flux='1.67e-05', photon_flux2='8.66e-08', job_status='DONE', time_completed='2021-09-29 21:47:01.864594', photon_index_error2='1.24', photon_index2='2.91', ts='1.79', fit_tolerance='1e-08', GAL='0.74', photon_index_error='0.00', photon_flux_upper_limit='1.44e-07', energy_flux_error2='1.45e-05', EG='1.05', time_epoch_completed='1632977221.86', return_code='0', job_id='972991', GAL2='0.78', EG2='0.99', return_code2='0', energy_flux_error='1.67e-05', photon_flux_error2='8.22e-08', ts2='2.28', photon_index='2.18' WHERE bin_id='1579' AND source_name='4FGL J2329.3-4955' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 21:47:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0190>
Subject: Job 972991: <4FGL_J2329.3-4955_daily_bin1579> in cluster <slac> Done

Job <4FGL_J2329.3-4955_daily_bin1579> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 21:35:33 2021
Job was executed on host(s) <bullet0190>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 21:35:34 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:35:34 2021
Terminated at Wed Sep 29 21:47:02 2021
Results reported at Wed Sep 29 21:47:02 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2329.3-4955_daily_bin1579 352.329 -49.9324 648604801 648864001 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 :                                   636.21 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             290.18 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   688 sec.
    Turnaround time :                            689 sec.

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

