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


Performing analysis on: 4FGL_J2329.3-4955_daily_bin1333
RA = 352.329, Dec = -49.9324
tmin = 584841601, tmax = 585100801
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='968870', job_status='RUN', time_executed='2021-09-29 21:33:17.339479', time_epoch_executed='1632976397.34' WHERE source_name='4FGL J2329.3-4955' and cadence='daily' and bin_id='1333'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/968870

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/968870/ft1_4FGL_J2329.3-4955_daily_bin1333.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/968870/ft2_4FGL_J2329.3-4955_daily_bin1333.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/968870/ft1_4FGL_J2329.3-4955_daily_bin1333.fits outfile=/scratch/kocevski/968870/ft1_filteredMKT_4FGL_J2329.3-4955_daily_bin1333.fits ra=352.329 dec=-49.9324 rad=12.0 tmin=584841601.0 tmax=585100801.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.90
user 2.67
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/968870/ft2_4FGL_J2329.3-4955_daily_bin1333.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/968870/ft1_filteredMKT_4FGL_J2329.3-4955_daily_bin1333.fits evtable="EVENTS" outfile="/scratch/kocevski/968870/ft1_filtered_4FGL_J2329.3-4955_daily_bin1333.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.51
user 0.33
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/968870/ft1_filtered_4FGL_J2329.3-4955_daily_bin1333.fits" evtable="EVENTS" scfile=/scratch/kocevski/968870/ft2_4FGL_J2329.3-4955_daily_bin1333.fits sctable="SC_DATA" outfile=/scratch/kocevski/968870/ltcube_584841601_585100801_4FGL_J2329.3-4955_daily_bin1333.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/968870/ft2_4FGL_J2329.3-4955_daily_bin1333.fits
.....................!
real 13.15
user 12.78
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/968870/ft1_filtered_4FGL_J2329.3-4955_daily_bin1333.fits evtable="EVENTS" scfile=/scratch/kocevski/968870/ft2_4FGL_J2329.3-4955_daily_bin1333.fits sctable="SC_DATA" expcube=/scratch/kocevski/968870/ltcube_584841601_585100801_4FGL_J2329.3-4955_daily_bin1333.fits outfile=/scratch/kocevski/968870/expmap_584841601_585100801_4FGL_J2329.3-4955_daily_bin1333.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/968870/ltcube_584841601_585100801_4FGL_J2329.3-4955_daily_bin1333.fits
.....................!
real 190.74
user 185.67
sys 4.74

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/968870/ft1_filtered_4FGL_J2329.3-4955_daily_bin1333.fits scfile=/scratch/kocevski/968870/ft2_4FGL_J2329.3-4955_daily_bin1333.fits outfile=/scratch/kocevski/968870/cmap_584841601_585100801_4FGL_J2329.3-4955_daily_bin1333.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/968870/ft1_filtered_4FGL_J2329.3-4955_daily_bin1333.fits scfile=/scratch/kocevski/968870/ft2_4FGL_J2329.3-4955_daily_bin1333.fits outfile=/scratch/kocevski/968870/cmap_HighResolution_584841601_585100801_4FGL_J2329.3-4955_daily_bin1333.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/968870/ft1_filtered_4FGL_J2329.3-4955_daily_bin1333.fits evtable="EVENTS" scfile=/scratch/kocevski/968870/ft2_4FGL_J2329.3-4955_daily_bin1333.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/968870/Model_4FGL_J2329.3-4955_daily_bin1333.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/968870/ft1_filtered_4FGL_J2329.3-4955_daily_bin1333.fits.....................!
real 39.02
user 37.80
sys 1.14

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    59.133       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    22.469       1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.6035       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .14258E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    64.061       1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    7.0796       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.8944       1.0000         .10000E-03   10000.    
    18 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    1.1219       1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.9721       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    8.6782       1.0000         .10000E-03   10000.    
    24 'norm      '    .10058E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .14599E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10322E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    .79562       1.0000         .10000E-01   10.000    
    33 'Prefactor '    1.0475       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=   5330.240     FROM MIGRAD    STATUS=CONVERGED    874 CALLS     4570 TOTAL
                     EDM=   .75E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    32.029        .10001E-04** at limit **
   2  Prefactor     59.147        28.979        .68244E-05    .17469E-03
   3  Prefactor     .10000E-03    32.093        .97383E-05** at limit **
   4  Prefactor     22.469        9.9677        .45923E-06    .82336E-05
   5  Prefactor     5.6021        8.3102       -.28502E-06    .20307E-04
   6  Prefactor     .10000E-03    4.7946       -.14048E-05** at limit **
   7  norm          64.052        37.564       -.67049E-05   -.87286E-05
   8  norm          .10000E-03    3.5357        .32105E-07** at limit **
   9  Prefactor     .10000E-03    10.882       -.19070E-05** at limit **
  10  Prefactor     7.0802        9.1530       -.89138E-07   -.61526E-04
  11  Prefactor     .10000E-03    12.823        .66744E-05** at limit **
  12  Prefactor     .10000E-03    4.7967        .86548E-06** at limit **
  13  Prefactor     .10000E-03    30.737        .49728E-05** at limit **
  14  Prefactor     .10000E-03    7.7984        .35196E-07** at limit **
  15  Prefactor     .10000E-03    13.627        .82996E-05** at limit **
  16  Prefactor     .10000E-03    6.8264        .54490E-05** at limit **
  17  norm          1.8940        6.1628       -.30416E-05   -.16936E-02
  18  norm          .10000E-03    4.0395       -.28493E-06** at limit **
  19  norm          1.1241        3.3751       -.50213E-07   -.97933E-04
  20  Prefactor     2.0016        3.9962        .22400E-05   -.25893E-02
  21  Prefactor     .10000E-03    25.952       -.11868E-04** at limit **
  22  norm          .10000E-03    1.6093        .94289E-08** at limit **
  23  Prefactor     8.6025        15.384       -.87231E-05   -.59173E-04
  24  norm          .10000E-03    .36533        .90289E-07** at limit **
  25  norm          .10001E-03    1.8943        .31611E-06** at limit **
  26  Prefactor     .10000E-03    10.124       -.75939E-05** at limit **
  27  Prefactor     .10000E-03    1.3202        .75955E-08** at limit **
  28  Prefactor     .10000E-03    19.433       -.12097E-04** at limit **
  29  norm          .10000E-03    6.0847       -.40951E-05** at limit **
  30  Prefactor     .10000E-03    2.5263       -.22367E-07** at limit **
  31  Prefactor     .10000E-03    1.3183       -.13755E-06** at limit **
  32  Normalizat    .79530        .18225       -.47421E-06    .25374E-03
  33  Prefactor     1.0478        .19325        .95676E-06    .18346E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 59.1472
  Prefactor  = 0.0001
  Prefactor  = 22.4694
  Prefactor  = 5.60209
  Prefactor  = 0.000100001
  norm       = 64.0524
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.08023
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.89398
  norm       = 0.0001
  norm       = 1.12407
  Prefactor  = 2.00158
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 8.60254
  norm       = 0.0001
  norm       = 0.000100007
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.795298
  Prefactor  = 1.0478
 **********
 **   18 **HESSE 
 **********

 FCN=   5330.240     FROM HESSE     STATUS=OK           683 CALLS     5253 TOTAL
                     EDM=   .33E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    32.039        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     59.147        29.035        .52173E-04   -1.4168    
   3  Prefactor     .10000E-03    32.055        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     22.469        9.9653        .42250E-03   -1.4760    
   5  Prefactor     5.6021        8.2888        .16971E-03   -1.5235    
   6  Prefactor     .10000E-03    17.008        .30728E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          64.052        37.560        .50138E-04   -1.4106    
   8  norm          .10000E-03    3.5368        .13408E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    11.205        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     7.0802        9.1444        .15077E-03   -1.5176    
  11  Prefactor     .10000E-03    12.830        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    4.8137        .15616E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    30.734        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    7.8777        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    13.622        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    6.8533        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.8940        6.9353        .15113E-02   -1.5433    
  18  norm          .10000E-03    4.0797        .14325E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          1.1241        2.8876        .22584E-02   -1.5496    
  20  Prefactor     2.0016        7.6047        .14636E-02   -1.5425    
  21  Prefactor     .10000E-03    26.014        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    1.6242        .90335E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     8.6025        18.138        .13607E-03   -1.5121    
  24  norm          .10000E-03    .37489        .85910E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10001E-03    16.147        .19335E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    10.238        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    1.3671        .16372E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    19.588        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          .10000E-03    6.0872        .17588E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    2.5736        .11323E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .10000E-03    1.3255        .81797E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    .79530        .21771        .24265E-03   -1.0024    
  33  Prefactor     1.0478        .23217        .23513E-03   -.91153    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.34463e-08
Minuit parameter uncertainties:
  1  2.10042e-05
  2  29.0423
  3  0.000183707
  4  9.96606
  5  8.29045
  6  0.000273456
  7  37.5737
  8  2.33185e-07
  9  1.68541e-05
  10  9.14622
  11  1.37603e-05
  12  3.41893e-07
  13  1.68259e-05
  14  2.62874e-06
  15  2.11574e-05
  16  1.65614e-05
  17  6.93825
  18  5.44815e-06
  19  2.88796
  20  7.60835
  21  3.69386e-06
  22  1.54593e-06
  23  18.1499
  24  6.73662e-06
  25  0.000663788
  26  1.39851e-05
  27  6.44142e-07
  28  5.23747e-05
  29  7.23964e-06
  30  1.64574e-06
  31  1.92326e-05
  32  0.217945
  33  0.232396
Done.

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

Extracting fit parameters...

4FGL J2329.3-4955
   Spectrum: LogParabola
476         norm:  1.000e-04  6.737e-06  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.048e+00  2.324e-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.953e-01  2.179e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 352.329 -49.932
Photon Flux Upper Limit: 4.58e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.74e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/968870/likelihoodResults_584841601_585100801_4FGL_J2329.3-4955_daily_bin1333.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) = 5330.23962467
delta logL = -3.32655381499e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5330.23959233
delta logL = -9.32109287533e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1777       1.0000          .0000       5.0000    
     3 'Normalizat'    .79531       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0479       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5330.240     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      237 TOTAL
                     EDM=   .13E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .37683        .85910E-04** at limit **
   2  alpha         2.1990        2.6960        .16637       -.23234E-08
   3  Normalizat    .79530        .20782        .24265E-03   -.10050E-03
   4  Prefactor     1.0478        .22949        .23513E-03   -.10623E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.19904
  Normalizat = 0.795296
  Prefactor  = 1.0478
 **********
 **   18 **HESSE 
 **********

 FCN=   5330.240     FROM HESSE     STATUS=OK            23 CALLS      260 TOTAL
                     EDM=   .13E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .37501        .17182E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.1990        2.9558        .66547E-02   -.12068    
   3  Normalizat    .79530        .20810        .97060E-05   -1.0024    
   4  Prefactor     1.0478        .22981        .94051E-05   -.91153    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.30579e-11
Minuit parameter uncertainties:
  1  4.70581e-07
  2  78.926
  3  0.208311
  4  0.230023
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/968870': 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) = 5330.23959136
delta logL = 4.08936102758e-08

Extracting fit parameters...

4FGL J2329.3-4955
   Spectrum: LogParabola
476         norm:  1.000e-04  4.706e-07  1.000e-04  1.000e+04 ( 1.000e-11)
477        alpha:  2.199e+00  7.893e+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:  1.048e+00  2.300e-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.953e-01  2.083e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 352.329 -49.932

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/968870/cmap_HighResolution_584841601_585100801_4FGL_J2329.3-4955_daily_bin1333.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.74e-05', job_status='DONE', photon_flux_upper_limit='4.58e-08', time_completed='2021-09-29 21:47:06.690169', job_id='968870', GAL2='1.05', fit_tolerance='1e-08', EG2='0.80', EG='0.80', time_epoch_completed='1632977226.69', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.05', dlogl='4.09e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.18' WHERE bin_id='1333' AND source_name='4FGL J2329.3-4955' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 21:47:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0140>
Subject: Job 968870: <4FGL_J2329.3-4955_daily_bin1333> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2329.3-4955_daily_bin1333 352.329 -49.9324 584841601 585100801 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 :                                   828.00 sec.
    Max Memory :                                 1228 MB
    Average Memory :                             286.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   979 sec.
    Turnaround time :                            982 sec.

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

