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


Performing analysis on: 4FGL_J2329.3-4955_daily_bin1324
RA = 352.329, Dec = -49.9324
tmin = 582508801, tmax = 582768001
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='968849', job_status='RUN', time_executed='2021-09-29 21:31:06.700645', time_epoch_executed='1632976266.7' WHERE source_name='4FGL J2329.3-4955' and cadence='daily' and bin_id='1324'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/968849

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/968849/ft1_4FGL_J2329.3-4955_daily_bin1324.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/968849/ft2_4FGL_J2329.3-4955_daily_bin1324.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/968849/ft1_4FGL_J2329.3-4955_daily_bin1324.fits outfile=/scratch/kocevski/968849/ft1_filteredMKT_4FGL_J2329.3-4955_daily_bin1324.fits ra=352.329 dec=-49.9324 rad=12.0 tmin=582508801.0 tmax=582768001.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.69
user 3.45
sys 0.22

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/968849/ft1_filtered_4FGL_J2329.3-4955_daily_bin1324.fits" evtable="EVENTS" scfile=/scratch/kocevski/968849/ft2_4FGL_J2329.3-4955_daily_bin1324.fits sctable="SC_DATA" outfile=/scratch/kocevski/968849/ltcube_582508801_582768001_4FGL_J2329.3-4955_daily_bin1324.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/968849/ft2_4FGL_J2329.3-4955_daily_bin1324.fits
.....................!
real 12.12
user 11.73
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/968849/ft1_filtered_4FGL_J2329.3-4955_daily_bin1324.fits evtable="EVENTS" scfile=/scratch/kocevski/968849/ft2_4FGL_J2329.3-4955_daily_bin1324.fits sctable="SC_DATA" expcube=/scratch/kocevski/968849/ltcube_582508801_582768001_4FGL_J2329.3-4955_daily_bin1324.fits outfile=/scratch/kocevski/968849/expmap_582508801_582768001_4FGL_J2329.3-4955_daily_bin1324.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/968849/ltcube_582508801_582768001_4FGL_J2329.3-4955_daily_bin1324.fits
.....................!
real 190.96
user 185.26
sys 5.33

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/968849/ft1_filtered_4FGL_J2329.3-4955_daily_bin1324.fits scfile=/scratch/kocevski/968849/ft2_4FGL_J2329.3-4955_daily_bin1324.fits outfile=/scratch/kocevski/968849/cmap_582508801_582768001_4FGL_J2329.3-4955_daily_bin1324.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/968849/ft1_filtered_4FGL_J2329.3-4955_daily_bin1324.fits scfile=/scratch/kocevski/968849/ft2_4FGL_J2329.3-4955_daily_bin1324.fits outfile=/scratch/kocevski/968849/cmap_HighResolution_582508801_582768001_4FGL_J2329.3-4955_daily_bin1324.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/968849/ft1_filtered_4FGL_J2329.3-4955_daily_bin1324.fits evtable="EVENTS" scfile=/scratch/kocevski/968849/ft2_4FGL_J2329.3-4955_daily_bin1324.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/968849/Model_4FGL_J2329.3-4955_daily_bin1324.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/968849/ft1_filtered_4FGL_J2329.3-4955_daily_bin1324.fits.....................!
real 39.99
user 38.69
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10235E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    27.387       1.0000         .10000E-03   10000.    
     4 'Prefactor '    12.955       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    8.3696       1.0000         .10000E-03   10000.    
     8 'norm      '    10.614       1.0000         .10000E-03   10000.    
     9 'Prefactor '    10.958       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    29.563       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10737E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .38162       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    3.4674       1.0000         .10000E-03   10000.    
    18 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    4.1821       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .99085       1.0000         .10000E-03   10000.    
    25 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    44.010       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    3.8550       1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.8191       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .23535       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=   5084.912     FROM MIGRAD    STATUS=CONVERGED    892 CALLS     4582 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    42.637       -.80714E-06** at limit **
   2  Prefactor     .10000E-03    30.894       -.52526E-06** at limit **
   3  Prefactor     27.385        26.749        .13694E-05    .22610E-03
   4  Prefactor     12.958        12.316        .55227E-06    .81816E-04
   5  Prefactor     .10002E-03    6.2679       -.22321E-05** at limit **
   6  Prefactor     .10000E-03    8.1503        .32014E-06** at limit **
   7  norm          8.3762        36.195       -.45919E-05   -.93450E-04
   8  norm          10.616        8.9872        .48659E-07    .11124E-04
   9  Prefactor     10.958        6.6313       -.16206E-06   -.35846E-03
  10  Prefactor     .10000E-03    3.1204        .11991E-07** at limit **
  11  Prefactor     .10000E-03    17.110        .17898E-05** at limit **
  12  Prefactor     29.565        15.563        .16595E-06    .55270E-04
  13  Prefactor     .10001E-03    375.66       -.51300E-05** at limit **
  14  Prefactor     .36813        11.434        .29754E-05   -.58367E-03
  15  Prefactor     .10000E-03    11.746        .22263E-05** at limit **
  16  Prefactor     .10000E-03    10.942       -.34737E-05** at limit **
  17  norm          3.4648        7.8898        .23530E-05   -.83054E-03
  18  norm          .10000E-03    5.4346        .91838E-08** at limit **
  19  norm          4.1819        4.2253       -.25104E-07    .12174E-05
  20  Prefactor     .10000E-03    4.7378       -.46560E-07** at limit **
  21  Prefactor     .10000E-03    17.178        .28444E-05** at limit **
  22  norm          .10000E-03    2.4689        .10656E-08** at limit **
  23  Prefactor     .10000E-03    6.9916       -.12714E-06** at limit **
  24  norm          .99162        1.3567        .41187E-07    .11447E-03
  25  norm          .10000E-03    1.6295        .72038E-08** at limit **
  26  Prefactor     44.014        22.079       -.16779E-05   -.48059E-03
  27  Prefactor     .10000E-03    2.7937       -.61841E-08** at limit **
  28  Prefactor     .10000E-03    13.964       -.21692E-05** at limit **
  29  norm          .10000E-03    12.234        .37760E-05** at limit **
  30  Prefactor     3.8544        6.0337        .65967E-07   -.12111E-03
  31  Prefactor     .10000E-03    2.8874        .91771E-08** at limit **
  32  Normalizat    1.8194        .26740        .52016E-06   -.57986E-04
  33  Prefactor     .23501        .26970       -.15377E-05   -.31567E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 27.385
  Prefactor  = 12.9578
  Prefactor  = 0.00010002
  Prefactor  = 0.0001
  norm       = 8.37622
  norm       = 10.6156
  Prefactor  = 10.9585
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 29.5646
  Prefactor  = 0.000100007
  Prefactor  = 0.368126
  Prefactor  = 0.000100001
  Prefactor  = 0.000100003
  norm       = 3.46478
  norm       = 0.0001
  norm       = 4.18194
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.991624
  norm       = 0.0001
  Prefactor  = 44.0143
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.000100004
  Prefactor  = 3.85435
  Prefactor  = 0.0001
  Normalizat = 1.81937
  Prefactor  = 0.235007
 **********
 **   18 **HESSE 
 **********

 FCN=   5084.912     FROM HESSE     STATUS=OK           689 CALLS     5271 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    42.668        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    31.331        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     27.385        26.821        .76552E-04   -1.4661    
   4  Prefactor     12.958        12.284        .11129E-03   -1.4988    
   5  Prefactor     .10002E-03    15.764        .32493E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    8.2349        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          8.3762        36.417        .13857E-03   -1.5129    
   8  norm          10.616        8.9607        .12298E-03   -1.5056    
   9  Prefactor     10.958        6.6306        .12103E-03   -1.5046    
  10  Prefactor     .10000E-03    3.1498        .12299E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    17.179        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     29.565        15.557        .73688E-04   -1.4620    
  13  Prefactor     .10001E-03    378.83        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .36813        79.637        .42423E-02   -1.5587    
  15  Prefactor     .10000E-03    11.828        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    11.175        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          3.4648        12.415        .10859E-02   -1.5336    
  18  norm          .10000E-03    5.4682        .16202E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          4.1819        4.2252        .14352E-03   -1.5299    
  20  Prefactor     .10000E-03    4.8199        .15139E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    17.319        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    2.5178        .10935E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    7.0157        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .99162        1.3492        .52533E-04   -1.5509    
  25  norm          .10000E-03    1.6395        .88882E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     44.014        22.323        .60433E-04   -1.4380    
  27  Prefactor     .10000E-03    2.8751        .23211E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    14.079        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          .10000E-03    12.479        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     3.8544        6.0416        .20553E-03   -1.5315    
  31  Prefactor     .10000E-03    2.9290        .11826E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    1.8194        .25006        .19901E-03   -.69159    
  33  Prefactor     .23501        .24159        .50332E-03   -1.2630    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.53774e-08
Minuit parameter uncertainties:
  1  0.000173893
  2  0.000105176
  3  26.8331
  4  12.2864
  5  0.00112627
  6  2.90943e-05
  7  34.9663
  8  8.96186
  9  6.63106
  10  7.62801e-07
  11  0.0002342
  12  15.5592
  13  0.00332006
  14  10.8421
  15  0.000247509
  16  0.000373141
  17  12.4247
  18  1.01737e-06
  19  4.22549
  20  3.16849e-06
  21  0.000377442
  22  2.00534e-06
  23  1.11788e-05
  24  1.34921
  25  4.00615e-07
  26  22.3273
  27  1.72127e-06
  28  0.000263172
  29  0.00043479
  30  6.04252
  31  8.34628e-07
  32  0.250239
  33  0.242625
Done.

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

Extracting fit parameters...

4FGL J2329.3-4955
   Spectrum: LogParabola
476         norm:  9.916e-01  1.349e+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:  2.350e-01  2.426e-01  0.000e+00  1.000e+01 ( 1.000e+00)
581        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
582        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
579   Normalization:  1.819e+00  2.502e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/968849/likelihoodResults_582508801_582768001_4FGL_J2329.3-4955_daily_bin1324.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) = 5084.80201699
delta logL = 0.109784309466

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5084.79973451
delta logL = 0.112066791731

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .94463       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.6345       1.0000          .0000       5.0000    
     3 'Normalizat'    1.8028       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .24638       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=   5084.800     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      206 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .94446        31.416        .12969E-01    .84026E-03
   2  alpha         2.6348        2.7751        .41227        .19286E-04
   3  Normalizat    1.8028        .57360E-01    .45182E-01   -.73805E-05
   4  Prefactor     .24631        .63103E-01    .11123        .59931E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.944456
  alpha      = 2.63478
  Normalizat = 1.8028
  Prefactor  = 0.246315
 **********
 **   18 **HESSE 
 **********

 FCN=   5084.800     FROM HESSE     STATUS=OK            33 CALLS      239 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .94446        1.3083        .78454E-04   -1.5514    
   2  alpha         2.6348        1.0357        .21222E-01    .53939E-01
   3  Normalizat    1.8028        .24248        .19969E-03   -.69591    
   4  Prefactor     .24631        .23810        .49222E-03   -1.2556    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.0809e-09
Minuit parameter uncertainties:
  1  1.30838
  2  1.06795
  3  0.242638
  4  0.239051
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/968849': 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) = 5084.79973416
delta logL = 0.11206714284

Extracting fit parameters...

4FGL J2329.3-4955
   Spectrum: LogParabola
476         norm:  9.445e-01  1.308e+00  1.000e-04  1.000e+04 ( 1.000e-11)
477        alpha:  2.635e+00  1.068e+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:  2.463e-01  2.391e-01  0.000e+00  1.000e+01 ( 1.000e+00)
581        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
582        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
579   Normalization:  1.803e+00  2.426e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.69
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/968849/cmap_HighResolution_582508801_582768001_4FGL_J2329.3-4955_daily_bin1324.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.10e-05', job_status='DONE', photon_flux_upper_limit='1.08e-07', time_completed='2021-09-29 21:44:50.136546', job_id='968849', GAL2='0.25', fit_tolerance='1e-08', EG2='1.80', EG='1.82', time_epoch_completed='1632977090.14', return_code2='0', ts='0.69', comment='SUCCESS', return_code='0', GAL='0.24', dlogl='1.12e-01', ts2='0.91', photon_index_error='0.00', photon_index='2.18' WHERE bin_id='1324' AND source_name='4FGL J2329.3-4955' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 21:44:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0073>
Subject: Job 968849: <4FGL_J2329.3-4955_daily_bin1324> in cluster <slac> Done

Job <4FGL_J2329.3-4955_daily_bin1324> 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) <bullet0073>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 21:30:46 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:46 2021
Terminated at Wed Sep 29 21:44:50 2021
Results reported at Wed Sep 29 21:44:50 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2329.3-4955_daily_bin1324 352.329 -49.9324 582508801 582768001 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 :                                   822.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             300.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   844 sec.
    Turnaround time :                            845 sec.

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

