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


Performing analysis on: 4FGL_J2329.3-4955_daily_bin1269
RA = 352.329, Dec = -49.9324
tmin = 568252801, tmax = 568512001
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='968718', job_status='RUN', time_executed='2021-09-29 21:34:38.961696', time_epoch_executed='1632976478.96' WHERE source_name='4FGL J2329.3-4955' and cadence='daily' and bin_id='1269'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/968718

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/968718/ft1_4FGL_J2329.3-4955_daily_bin1269.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/968718/ft2_4FGL_J2329.3-4955_daily_bin1269.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/968718/ft1_4FGL_J2329.3-4955_daily_bin1269.fits outfile=/scratch/kocevski/968718/ft1_filteredMKT_4FGL_J2329.3-4955_daily_bin1269.fits ra=352.329 dec=-49.9324 rad=12.0 tmin=568252801.0 tmax=568512001.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.63
user 3.42
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/968718/ft2_4FGL_J2329.3-4955_daily_bin1269.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/968718/ft1_filteredMKT_4FGL_J2329.3-4955_daily_bin1269.fits evtable="EVENTS" outfile="/scratch/kocevski/968718/ft1_filtered_4FGL_J2329.3-4955_daily_bin1269.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/968718/ft1_filtered_4FGL_J2329.3-4955_daily_bin1269.fits" evtable="EVENTS" scfile=/scratch/kocevski/968718/ft2_4FGL_J2329.3-4955_daily_bin1269.fits sctable="SC_DATA" outfile=/scratch/kocevski/968718/ltcube_568252801_568512001_4FGL_J2329.3-4955_daily_bin1269.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/968718/ft2_4FGL_J2329.3-4955_daily_bin1269.fits
.....................!
real 11.64
user 11.28
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/968718/ft1_filtered_4FGL_J2329.3-4955_daily_bin1269.fits evtable="EVENTS" scfile=/scratch/kocevski/968718/ft2_4FGL_J2329.3-4955_daily_bin1269.fits sctable="SC_DATA" expcube=/scratch/kocevski/968718/ltcube_568252801_568512001_4FGL_J2329.3-4955_daily_bin1269.fits outfile=/scratch/kocevski/968718/expmap_568252801_568512001_4FGL_J2329.3-4955_daily_bin1269.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/968718/ltcube_568252801_568512001_4FGL_J2329.3-4955_daily_bin1269.fits
.....................!
real 189.88
user 184.42
sys 5.15

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/968718/ft1_filtered_4FGL_J2329.3-4955_daily_bin1269.fits scfile=/scratch/kocevski/968718/ft2_4FGL_J2329.3-4955_daily_bin1269.fits outfile=/scratch/kocevski/968718/cmap_568252801_568512001_4FGL_J2329.3-4955_daily_bin1269.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.54
user 0.35
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/968718/ft1_filtered_4FGL_J2329.3-4955_daily_bin1269.fits scfile=/scratch/kocevski/968718/ft2_4FGL_J2329.3-4955_daily_bin1269.fits outfile=/scratch/kocevski/968718/cmap_HighResolution_568252801_568512001_4FGL_J2329.3-4955_daily_bin1269.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.55
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/968718/ft1_filtered_4FGL_J2329.3-4955_daily_bin1269.fits evtable="EVENTS" scfile=/scratch/kocevski/968718/ft2_4FGL_J2329.3-4955_daily_bin1269.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/968718/Model_4FGL_J2329.3-4955_daily_bin1269.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/968718/ft1_filtered_4FGL_J2329.3-4955_daily_bin1269.fits...........................!
real 15.86
user 14.67
sys 1.15

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/968718/ft1_filtered_4FGL_J2329.3-4955_daily_bin1269.fits', '/scratch/kocevski/968718/ft2_4FGL_J2329.3-4955_daily_bin1269.fits', expMap='/scratch/kocevski/968718/expmap_568252801_568512001_4FGL_J2329.3-4955_daily_bin1269.fits', expCube='/scratch/kocevski/968718/ltcube_568252801_568512001_4FGL_J2329.3-4955_daily_bin1269.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/968718/Model_4FGL_J2329.3-4955_daily_bin1269.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/968718/ft1_filtered_4FGL_J2329.3-4955_daily_bin1269.fits
Spacecraft file(s): /scratch/kocevski/968718/ft2_4FGL_J2329.3-4955_daily_bin1269.fits
Exposure map: /scratch/kocevski/968718/expmap_568252801_568512001_4FGL_J2329.3-4955_daily_bin1269.fits
Exposure cube: /scratch/kocevski/968718/ltcube_568252801_568512001_4FGL_J2329.3-4955_daily_bin1269.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/968718/Model_4FGL_J2329.3-4955_daily_bin1269.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 357.351060412

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 352.441655512

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .72423       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .19788       1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.5705       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.5468       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .20608E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .12832E-01   1.0000         .10000E-03   10000.    
     7 'norm      '    7.9256       1.0000         .10000E-03   10000.    
     8 'norm      '    1.3290       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .93434E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    90.413       1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.1859       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .11796       1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.5183       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.6951       1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.7596       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .14190       1.0000         .10000E-03   10000.    
    17 'norm      '    13.365       1.0000         .10000E-03   10000.    
    18 'norm      '    119.08       1.0000         .10000E-03   10000.    
    19 'norm      '    .10427E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .13271       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .45988       1.0000         .10000E-03   10000.    
    22 'norm      '    .11116E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    31.865       1.0000         .10000E-03   10000.    
    24 'norm      '    .67632E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    11.301       1.0000         .10000E-03   10000.    
    26 'Prefactor '    2.1836       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10465E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .13723       1.0000         .10000E-03   10000.    
    29 'norm      '    .13300       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .37615E-01   1.0000         .10000E-03   10000.    
    31 'Prefactor '    29.645       1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.5954       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .71739E-06   1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5830E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   352.4218     FROM MIGRAD    STATUS=CONVERGED    265 CALLS      528 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10920E-03    241.30        .62460E-04** at limit **
   2  Prefactor     .10006E-03    148.20        .95885E-05** at limit **
   3  Prefactor     .12446E-03    254.75        .14213E-04** at limit **
   4  Prefactor     1.5468        1.0651         .0000         .0000    
   5  Prefactor     .10000E-03    73.294       -.12658E-04** at limit **
   6  Prefactor     .10000E-03    36.611       -.26259E-05** at limit **
   7  norm          7.9256        1.0020         .0000         .0000    
   8  norm          .13248E-03    738.83       -.10669E-04** at limit **
   9  Prefactor     .10000E-03    49.268       -.17838E-04** at limit **
  10  Prefactor     90.524        5.6184       -.13765E-06   -.42939E-02
  11  Prefactor     .22503E-01    1088.1       -.27833E-05   -.36086E-02
  12  Prefactor     .41146E-03    333.05        .13467E-04** at limit **
  13  Prefactor     .78247E-01    1923.2       -.20248E-04    .32713E-02
  14  Prefactor     2.0638        68.751       -.20110E-04    .10848E-03
  15  Prefactor     .12750E-03    510.81        .18180E-04** at limit **
  16  Prefactor     .10058E-03    291.54        .43035E-04** at limit **
  17  norm          15.678        36.103       -.27517E-05   -.51488E-02
  18  norm          118.14        26.893       -.31438E-06   -.21205E-01
  19  norm          .10000E-03    6.3410        .55833E-05** at limit **
  20  Prefactor     .10000E-03    86.609        .89648E-05** at limit **
  21  Prefactor     .10000E-03    48.965       -.42363E-05** at limit **
  22  norm          .10000E-03    5.2964       -.35140E-05** at limit **
  23  Prefactor     36.159        114.82       -.45830E-05   -.10210E-01
  24  norm          .10000E-03    9.0941       -.16175E-05** at limit **
  25  norm          11.382        17.846       -.26054E-05   -.34868E-04
  26  Prefactor     2.1836        1.0290         .0000         .0000    
  27  Prefactor     .10000E-03    35.484       -.78858E-05** at limit **
  28  Prefactor     .11716E-03    150.75        .44084E-04** at limit **
  29  norm          .19950E-03    375.02        .14438E-04** at limit **
  30  Prefactor     .10003E-03    94.805        .27312E-04** at limit **
  31  Prefactor     29.747        11.891       -.62295E-06    .11893E-01
  32  Normalizat    1.5877        .52858       -.77556E-05    .79665E-05
  33  Prefactor     .29526E-11    2.2211        .18202E-04** at limit **
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000109197
  Prefactor  = 0.00010006
  Prefactor  = 0.000124459
  Prefactor  = 1.54684
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.92563
  norm       = 0.00013248
  Prefactor  = 0.0001
  Prefactor  = 90.5245
  Prefactor  = 0.0225026
  Prefactor  = 0.000411456
  Prefactor  = 0.0782465
  Prefactor  = 2.06381
  Prefactor  = 0.000127503
  Prefactor  = 0.000100578
  norm       = 15.6784
  norm       = 118.145
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 36.1594
  norm       = 0.0001
  norm       = 11.3815
  Prefactor  = 2.18357
  Prefactor  = 0.0001
  Prefactor  = 0.000117158
  norm       = 0.000199495
  Prefactor  = 0.000100028
  Prefactor  = 29.7466
  Normalizat = 1.58767
  Prefactor  = 2.95264e-12
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   352.4218     FROM HESSE     STATUS=FAILED        21 CALLS      549 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10920E-03    242.57        .12154E-01   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10006E-03    147.99        .99680E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .12446E-03    288.17        .63647E-02   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     576.92        575.19         .0000       -1.5459    
   5  Prefactor     .10000E-03    .20571       -.12658E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    .20644       -.26259E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          7.9256        1.0020         .0000       -1.5145    
   8  norm          .13248E-03    .22688       -.10669E-04   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    .27056       -.17838E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     90.524        1.0006       -.13765E-06   -1.3802    
  11  Prefactor     .22503E-01    .84950E-01   -.27833E-05   -1.5738    
  12  Prefactor     .41146E-03    .23023        .13467E-04   -1.5711    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .78247E-01    .15062       -.20248E-04   -1.5652    
  14  Prefactor     2.0638        1.1607       -.20110E-04   -1.5421    
  15  Prefactor     .12750E-03    .67742E-01    .18180E-04   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10058E-03    .23567        .43035E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          15.678        1.0837       -.27517E-05   -1.4916    
  18  norm          118.14        .99611       -.31438E-06   -1.3530    
  19  norm          .10000E-03    .20571        .55833E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    .23358        .89648E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    .30835       -.42363E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    .20571       -.35140E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     36.159        1.0652       -.45830E-05   -1.4505    
  24  norm          .10000E-03    .27560       -.16175E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          11.382        1.0046       -.26054E-05   -1.5033    
  26  Prefactor     2.1836        1.0290         .0000       -1.5412    
  27  Prefactor     .10000E-03    .20571       -.78858E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .11716E-03    .23461        .44084E-04   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          .19950E-03    .23364        .14438E-04   -1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10003E-03    .21203        .27312E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     29.747        1.0019       -.62295E-06   -1.4617    
  32  Normalizat    1.5877        1.0389       -.77556E-05   -.75344    
  33  Prefactor     .29526E-11    .25728        .18202E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.73296e-09
Minuit parameter uncertainties:
  1  0.0948506
  2  0.00595982
  3  0.168726
  4  1.06512
  5  7.18004e-06
  6  1.25186e-06
  7  1.002
  8  0.00542918
  9  8.36094e-06
  10  1.00063
  11  0.0849509
  12  0.0169361
  13  0.150624
  14  1.1607
  15  0.00272992
  16  0.000737998
  17  1.08374
  18  0.996112
  19  1.48007e-06
  20  7.46545e-06
  21  4.59584e-06
  22  9.66886e-07
  23  1.06516
  24  1.83354e-07
  25  1.00455
  26  1.02897
  27  6.1409e-07
  28  0.00401272
  29  0.00964297
  30  0.00015341
  31  1.00185
  32  1.05357
  33  1.75069e-06
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 352.421754367

Extracting fit parameters...

4FGL J2329.3-4955
   Spectrum: LogParabola
476         norm:  1.000e-04  1.834e-07  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:  2.953e-12  1.751e-06  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.588e+00  1.054e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 352.329 -49.932
Photon Flux Upper Limit: 1.14e-06 ph cm-2 s-1
Energy Flux Upper Limit: 4.35e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/968718/likelihoodResults_568252801_568512001_4FGL_J2329.3-4955_daily_bin1269.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) = 352.421918308
delta logL = -0.000163941594394

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 352.421756249
delta logL = -1.88263214795e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10567E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    3.0906       1.0000          .0000       5.0000    
     3 'Normalizat'    1.5880       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .19723E-07   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=   352.4218     FROM MIGRAD    STATUS=CONVERGED    105 CALLS      288 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    927.73        .50077E-02** at limit **
   2  alpha         2.3951        3.2475        .17082        .19134E-08
   3  Normalizat    1.5877        .22363        .22176E-03    .53444E-05
   4  Prefactor     .15488E-12    .60555        .11928E-01** at limit **
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.39513
  Normalizat = 1.58767
  Prefactor  = 1.54876e-13
 **********
 **   18 **HESSE 
 **********

 FCN=   352.4218     FROM HESSE     STATUS=OK            23 CALLS      311 TOTAL
                     EDM=   .26E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    9.3306        .56022E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.3951        2.7683        .68329E-02   -.41958E-01
   3  Normalizat    1.5877        .43924        .88705E-05   -.75344    
   4  Prefactor     .15488E-12    2.2188        .23856E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.61855e-12
Minuit parameter uncertainties:
  1  2.67916e-05
  2  446.53
  3  0.44031
  4  1.22069e-06
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/968718': 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) = 352.421754248
delta logL = 1.18735840715e-07

Extracting fit parameters...

4FGL J2329.3-4955
   Spectrum: LogParabola
476         norm:  1.000e-04  2.679e-05  1.000e-04  1.000e+04 ( 1.000e-11)
477        alpha:  2.395e+00  4.465e+02  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.549e-13  1.221e-06  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.588e+00  4.403e-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/968718/cmap_HighResolution_568252801_568512001_4FGL_J2329.3-4955_daily_bin1269.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.35e-04', job_status='DONE', photon_flux_upper_limit='1.14e-06', time_completed='2021-09-29 21:40:06.814426', job_id='968718', GAL2='0.00', fit_tolerance='1e-08', EG2='1.59', EG='1.59', time_epoch_completed='1632976806.81', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='101', GAL='0.00', dlogl='1.19e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.18' WHERE bin_id='1269' AND source_name='4FGL J2329.3-4955' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 21:40:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0120>
Subject: Job 968718: <4FGL_J2329.3-4955_daily_bin1269> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2329.3-4955_daily_bin1269 352.329 -49.9324 568252801 568512001 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 :                                   328.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             341.47 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   567 sec.
    Turnaround time :                            568 sec.

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

