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


Performing analysis on: 4FGL_J2329.3-4955_daily_bin1165
RA = 352.329, Dec = -49.9324
tmin = 541296001, tmax = 541555201
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='968464', job_status='RUN', time_executed='2021-09-29 21:34:16.431086', time_epoch_executed='1632976456.43' WHERE source_name='4FGL J2329.3-4955' and cadence='daily' and bin_id='1165'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/968464

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/968464/ft1_4FGL_J2329.3-4955_daily_bin1165.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/968464/ft2_4FGL_J2329.3-4955_daily_bin1165.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/968464/ft1_4FGL_J2329.3-4955_daily_bin1165.fits outfile=/scratch/kocevski/968464/ft1_filteredMKT_4FGL_J2329.3-4955_daily_bin1165.fits ra=352.329 dec=-49.9324 rad=12.0 tmin=541296001.0 tmax=541555201.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.76
user 3.53
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/968464/ft2_4FGL_J2329.3-4955_daily_bin1165.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/968464/ft1_filteredMKT_4FGL_J2329.3-4955_daily_bin1165.fits evtable="EVENTS" outfile="/scratch/kocevski/968464/ft1_filtered_4FGL_J2329.3-4955_daily_bin1165.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.50
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/968464/ft1_filtered_4FGL_J2329.3-4955_daily_bin1165.fits" evtable="EVENTS" scfile=/scratch/kocevski/968464/ft2_4FGL_J2329.3-4955_daily_bin1165.fits sctable="SC_DATA" outfile=/scratch/kocevski/968464/ltcube_541296001_541555201_4FGL_J2329.3-4955_daily_bin1165.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/968464/ft2_4FGL_J2329.3-4955_daily_bin1165.fits
.....................!
real 13.00
user 12.62
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/968464/ft1_filtered_4FGL_J2329.3-4955_daily_bin1165.fits evtable="EVENTS" scfile=/scratch/kocevski/968464/ft2_4FGL_J2329.3-4955_daily_bin1165.fits sctable="SC_DATA" expcube=/scratch/kocevski/968464/ltcube_541296001_541555201_4FGL_J2329.3-4955_daily_bin1165.fits outfile=/scratch/kocevski/968464/expmap_541296001_541555201_4FGL_J2329.3-4955_daily_bin1165.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/968464/ltcube_541296001_541555201_4FGL_J2329.3-4955_daily_bin1165.fits
.....................!
real 191.24
user 186.20
sys 4.66

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/968464/ft1_filtered_4FGL_J2329.3-4955_daily_bin1165.fits scfile=/scratch/kocevski/968464/ft2_4FGL_J2329.3-4955_daily_bin1165.fits outfile=/scratch/kocevski/968464/cmap_541296001_541555201_4FGL_J2329.3-4955_daily_bin1165.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.52
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/968464/ft1_filtered_4FGL_J2329.3-4955_daily_bin1165.fits scfile=/scratch/kocevski/968464/ft2_4FGL_J2329.3-4955_daily_bin1165.fits outfile=/scratch/kocevski/968464/cmap_HighResolution_541296001_541555201_4FGL_J2329.3-4955_daily_bin1165.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.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/968464/ft1_filtered_4FGL_J2329.3-4955_daily_bin1165.fits evtable="EVENTS" scfile=/scratch/kocevski/968464/ft2_4FGL_J2329.3-4955_daily_bin1165.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/968464/Model_4FGL_J2329.3-4955_daily_bin1165.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/968464/ft1_filtered_4FGL_J2329.3-4955_daily_bin1165.fits.....................!
real 36.70
user 35.52
sys 1.11

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    70.223       1.0000         .10000E-03   10000.    
     2 'Prefactor '    20.605       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10618E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    13.125       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .70310       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.1872       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .51261       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10065E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.0462       1.0000         .10000E-03   10000.    
    13 'Prefactor '    106.36       1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.4009       1.0000         .10000E-03   10000.    
    15 'Prefactor '    13.264       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.7136       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .11907E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    33.866       1.0000         .10000E-03   10000.    
    24 'norm      '    2.9871       1.0000         .10000E-03   10000.    
    25 'norm      '    12.699       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    26.569       1.0000         .10000E-03   10000.    
    29 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    7.7303       1.0000         .10000E-03   10000.    
    32 'Normalizat'    .86384       1.0000         .10000E-01   10.000    
    33 'Prefactor '    1.1261       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=   4546.662     FROM MIGRAD    STATUS=CONVERGED    864 CALLS     4568 TOTAL
                     EDM=   .28E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     70.222        79.803        .40219E-06   -.36609E-05
   2  Prefactor     20.602        33.545       -.87064E-06   -.39864E-04
   3  Prefactor     .10000E-03    95.094       -.11577E-05** at limit **
   4  Prefactor     13.128        12.043       -.15097E-07   -.41505E-04
   5  Prefactor     .70293        14.532        .13372E-05    .34044E-04
   6  Prefactor     .10000E-03    5.9621        .77144E-06** at limit **
   7  norm          .10000E-03    36.048        .21687E-06** at limit **
   8  norm          .10000E-03    4.3536       -.65438E-06** at limit **
   9  Prefactor     6.1862        5.4410        .85507E-07    .61170E-04
  10  Prefactor     .55238        5.1444       -.14097E-05    .34474E-03
  11  Prefactor     .10000E-03    14.792        .47127E-06** at limit **
  12  Prefactor     6.0434        10.775        .41305E-06    .15062E-04
  13  Prefactor     106.32        121.67        .51886E-05    .62215E-05
  14  Prefactor     6.4008        6.1727       -.16001E-07    .48441E-05
  15  Prefactor     13.233        40.055        .77739E-05    .17939E-04
  16  Prefactor     .10000E-03    5.5094       -.53438E-06** at limit **
  17  norm          .10000E-03    4.8044        .43466E-06** at limit **
  18  norm          .10000E-03    5.1099        .46903E-09** at limit **
  19  norm          .10000E-03    3.5244       -.10172E-07** at limit **
  20  Prefactor     1.7214        13.513        .56575E-05   -.31587E-04
  21  Prefactor     .10000E-03    95.302       -.20325E-05** at limit **
  22  norm          .10000E-03    4.1390        .37455E-06** at limit **
  23  Prefactor     33.828        31.075       -.10401E-05   -.36136E-04
  24  norm          2.9868        1.7664       -.38204E-06   -.38117E-03
  25  norm          12.705        7.5441        .29868E-06   -.26385E-04
  26  Prefactor     .10000E-03    4.9059        .39146E-06** at limit **
  27  Prefactor     .10000E-03    3.4060        .11829E-05** at limit **
  28  Prefactor     26.500        32.802       -.21231E-05   -.13589E-03
  29  norm          .10000E-03    8.3996       -.11667E-07** at limit **
  30  Prefactor     .10000E-03    2.3224        .80529E-07** at limit **
  31  Prefactor     7.7341        6.4380        .11721E-06   -.75984E-04
  32  Normalizat    .86324        .22804       -.24612E-05   -.63983E-04
  33  Prefactor     1.1267        .22979       -.93269E-06   -.17616E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 70.2223
  Prefactor  = 20.6021
  Prefactor  = 0.0001
  Prefactor  = 13.1281
  Prefactor  = 0.702935
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 6.18618
  Prefactor  = 0.552377
  Prefactor  = 0.0001
  Prefactor  = 6.0434
  Prefactor  = 106.323
  Prefactor  = 6.40077
  Prefactor  = 13.2331
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 1.72141
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 33.8276
  norm       = 2.98681
  norm       = 12.7054
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 26.4998
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.7341
  Normalizat = 0.863235
  Prefactor  = 1.12665
 **********
 **   18 **HESSE 
 **********

 FCN=   4546.662     FROM HESSE     STATUS=OK           695 CALLS     5263 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     70.222        79.819        .47903E-04   -1.4030    
   2  Prefactor     20.602        33.480        .88237E-04   -1.4800    
   3  Prefactor     .10000E-03    95.621        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     13.128        12.053        .11056E-03   -1.4983    
   5  Prefactor     .70293        15.078        .48295E-03   -1.5540    
   6  Prefactor     .10000E-03    6.0178        .16097E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    36.228        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    4.3638        .13734E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     6.1862        5.4299        .14125E-03   -1.5210    
  10  Prefactor     .55238        21.570        .26817E-02   -1.5559    
  11  Prefactor     .10000E-03    14.808        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     6.0434        10.748        .16329E-03   -1.5216    
  13  Prefactor     106.32        121.60        .19497E-03   -1.3642    
  14  Prefactor     6.4008        6.1778        .79321E-03   -1.5202    
  15  Prefactor     13.233        39.967        .10998E-03   -1.4980    
  16  Prefactor     .10000E-03    5.5102        .15455E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    4.8059        .14435E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    5.1287        .14871E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    3.5362        .12362E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     1.7214        14.693        .16053E-02   -1.5446    
  21  Prefactor     .10000E-03    95.681        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    4.1795        .13390E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     33.828        31.922        .68859E-04   -1.4544    
  24  norm          2.9868        1.7580        .62923E-04   -1.5362    
  25  norm          12.705        7.5376        .11240E-03   -1.4995    
  26  Prefactor     .10000E-03    4.9126        .14591E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    5.7459        .22383E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     26.500        34.123        .77719E-04   -1.4678    
  29  norm          .10000E-03    8.4009        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    2.3372        .10032E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     7.7341        6.4357        .14052E-03   -1.5152    
  32  Normalizat    .86324        .27222        .26757E-03   -.97764    
  33  Prefactor     1.1267        .27817        .25412E-03   -.88619    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.2287e-09
Minuit parameter uncertainties:
  1  79.9409
  2  33.5108
  3  0.000322161
  4  12.0557
  5  6.51261
  6  2.85361e-05
  7  8.21969e-05
  8  3.70955e-06
  9  5.43028
  10  6.90555
  11  2.09304e-06
  12  10.7514
  13  121.882
  14  6.17846
  15  40.0479
  16  2.03056e-06
  17  1.5843e-06
  18  2.4279e-05
  19  6.31774e-06
  20  10.0614
  21  0.000317264
  22  1.88947e-05
  23  31.9385
  24  1.75808
  25  7.53821
  26  1.12271e-05
  27  0.00019254
  28  34.1479
  29  2.88342e-06
  30  6.39765e-06
  31  6.43632
  32  0.272656
  33  0.278529
Done.

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

Extracting fit parameters...

4FGL J2329.3-4955
   Spectrum: LogParabola
476         norm:  2.987e+00  1.758e+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:  1.127e+00  2.785e-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:  8.632e-01  2.727e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.06
Ra Dec: 352.329 -49.932
Photon Index (Fixed Index): 2.18 +/- 0.00
Photon Flux (Fixed Index): 8.09e-08 +/- 4.76e-08
Energy Flux (Fixed Index): 3.08e-05 +/- 1.81e-05

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) = 4546.0809549
delta logL = 0.580555306203

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4546.07620717
delta logL = 0.585303031712

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.2137       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.0528       1.0000          .0000       5.0000    
     3 'Normalizat'    .76704       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2041       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=   4546.076     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      236 TOTAL
                     EDM=   .65E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.2131        19.219        .69110E-03    .11357E-03
   2  alpha         3.0531        3.8883        .29045        .40064E-04
   3  Normalizat    .76695        .11320        .63738E-01    .15091E-04
   4  Prefactor     1.2042        .10168        .55867E-01    .25367E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 2.2131
  alpha      = 3.0531
  Normalizat = 0.766955
  Prefactor  = 1.20418
 **********
 **   18 **HESSE 
 **********

 FCN=   4546.076     FROM HESSE     STATUS=OK            33 CALLS      269 TOTAL
                     EDM=   .90E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.2131        2.4896        .27644E-04   -1.5410    
   2  alpha         3.0531        1.1381        .11816E-01    .22309    
   3  Normalizat    .76695        .28156        .28196E-03   -1.0131    
   4  Prefactor     1.2042        .29566        .24703E-03   -.86203    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.0224e-12
Minuit parameter uncertainties:
  1  2.4897
  2  1.1841
  3  0.282094
  4  0.296065
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/968464': 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) = 4546.0762071
delta logL = 0.585303102931

Extracting fit parameters...

4FGL J2329.3-4955
   Spectrum: LogParabola
476         norm:  2.213e+00  2.490e+00  1.000e-04  1.000e+04 ( 1.000e-11)
477        alpha:  3.053e+00  1.184e+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:  1.204e+00  2.961e-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:  7.670e-01  2.821e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.43
Ra Dec: 352.329 -49.932
Photon Index (Free Index): 3.05 +/- 1.18
Photon Flux (Free Index): 1.42e-07 +/- 8.33e-08
Energy Flux (Free Index): 2.85e-05 +/- 1.48e-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/968464/cmap_HighResolution_541296001_541555201_4FGL_J2329.3-4955_daily_bin1165.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.09e-08', energy_flux2='2.85e-05', photon_flux_error='4.76e-08', dlogl='5.85e-01', energy_flux='3.08e-05', photon_flux2='1.42e-07', job_status='DONE', time_completed='2021-09-29 21:45:41.928268', photon_index_error2='1.18', photon_index2='3.05', ts='5.06', fit_tolerance='1e-08', GAL='1.13', photon_index_error='0.00', energy_flux_error2='1.48e-05', EG='0.86', time_epoch_completed='1632977141.93', return_code='0', job_id='968464', GAL2='1.20', EG2='0.77', return_code2='0', energy_flux_error='1.81e-05', photon_flux_error2='8.33e-08', ts2='6.43', photon_index='2.18' WHERE bin_id='1165' AND source_name='4FGL J2329.3-4955' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 21:45:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0272>
Subject: Job 968464: <4FGL_J2329.3-4955_daily_bin1165> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2329.3-4955_daily_bin1165 352.329 -49.9324 541296001 541555201 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 :                                   679.12 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             234.20 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   911 sec.
    Turnaround time :                            912 sec.

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

