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


Performing analysis on: 4FGL_J2329.3-4955_daily_bin1036
RA = 352.329, Dec = -49.9324
tmin = 507859201, tmax = 508118401
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='968155', job_status='RUN', time_executed='2021-09-29 21:30:37.604465', time_epoch_executed='1632976237.6' WHERE source_name='4FGL J2329.3-4955' and cadence='daily' and bin_id='1036'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/968155

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/968155/ft1_4FGL_J2329.3-4955_daily_bin1036.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/968155/ft2_4FGL_J2329.3-4955_daily_bin1036.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/968155/ft1_4FGL_J2329.3-4955_daily_bin1036.fits outfile=/scratch/kocevski/968155/ft1_filteredMKT_4FGL_J2329.3-4955_daily_bin1036.fits ra=352.329 dec=-49.9324 rad=12.0 tmin=507859201.0 tmax=508118401.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 4.19
user 3.93
sys 0.21

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/968155/ft1_filtered_4FGL_J2329.3-4955_daily_bin1036.fits" evtable="EVENTS" scfile=/scratch/kocevski/968155/ft2_4FGL_J2329.3-4955_daily_bin1036.fits sctable="SC_DATA" outfile=/scratch/kocevski/968155/ltcube_507859201_508118401_4FGL_J2329.3-4955_daily_bin1036.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/968155/ft2_4FGL_J2329.3-4955_daily_bin1036.fits
.....................!
real 12.01
user 11.63
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/968155/ft1_filtered_4FGL_J2329.3-4955_daily_bin1036.fits evtable="EVENTS" scfile=/scratch/kocevski/968155/ft2_4FGL_J2329.3-4955_daily_bin1036.fits sctable="SC_DATA" expcube=/scratch/kocevski/968155/ltcube_507859201_508118401_4FGL_J2329.3-4955_daily_bin1036.fits outfile=/scratch/kocevski/968155/expmap_507859201_508118401_4FGL_J2329.3-4955_daily_bin1036.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/968155/ltcube_507859201_508118401_4FGL_J2329.3-4955_daily_bin1036.fits
.....................!
real 191.34
user 186.01
sys 4.92

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/968155/ft1_filtered_4FGL_J2329.3-4955_daily_bin1036.fits scfile=/scratch/kocevski/968155/ft2_4FGL_J2329.3-4955_daily_bin1036.fits outfile=/scratch/kocevski/968155/cmap_507859201_508118401_4FGL_J2329.3-4955_daily_bin1036.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.55
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/968155/ft1_filtered_4FGL_J2329.3-4955_daily_bin1036.fits scfile=/scratch/kocevski/968155/ft2_4FGL_J2329.3-4955_daily_bin1036.fits outfile=/scratch/kocevski/968155/cmap_HighResolution_507859201_508118401_4FGL_J2329.3-4955_daily_bin1036.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=352.329 yref=-49.9324 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    19.325       1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.2076       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.8519       1.0000         .10000E-03   10000.    
     7 'norm      '    .10021E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.8469       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.2608       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .75603E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    23.345       1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    3.3004       1.0000         .10000E-03   10000.    
    19 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    58.051       1.0000         .10000E-03   10000.    
    22 'norm      '    2.9031       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .54201       1.0000         .10000E-03   10000.    
    25 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    7.4455       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    .10269E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .13644E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    3.0506       1.0000         .10000E-03   10000.    
    32 'Normalizat'    .98945       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .96014       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=   5993.348     FROM MIGRAD    STATUS=CONVERGED    891 CALLS     4624 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 12.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    42.383        .60542E-07** at limit **
   2  Prefactor     .10000E-03    7.1484       -.40386E-07** at limit **
   3  Prefactor     19.317        27.642        .17962E-06    .26179E-04
   4  Prefactor     4.2080        6.8778       -.17846E-05    .92241E-04
   5  Prefactor     .10000E-03    3.0742       -.31994E-07** at limit **
   6  Prefactor     2.8523        5.1455       -.82033E-07    .12420E-04
   7  norm          .10000E-03    15.012       -.24873E-06** at limit **
   8  norm          .10000E-03    2.8521       -.25164E-07** at limit **
   9  Prefactor     .10000E-03    1.9134       -.44739E-07** at limit **
  10  Prefactor     3.8461        3.9849       -.15028E-06   -.77214E-04
  11  Prefactor     .10000E-03    44.265       -.10810E-06** at limit **
  12  Prefactor     4.2613        8.5663       -.44220E-06   -.67709E-04
  13  Prefactor     .10000E-03    26.968       -.79056E-06** at limit **
  14  Prefactor     .10000E-03    5.0804        .17243E-07** at limit **
  15  Prefactor     .10002E-03    197.86       -.37139E-04** at limit **
  16  Prefactor     23.338        14.331       -.23379E-06   -.12044E-03
  17  norm          .10000E-03    4.9655       -.11701E-07** at limit **
  18  norm          3.3006        3.4323        .75992E-07   -.20935E-03
  19  norm          .10000E-03    2.1343        .38030E-06** at limit **
  20  Prefactor     .10000E-03    3.5287       -.78355E-07** at limit **
  21  Prefactor     58.015        45.711       -.25026E-05    .53392E-04
  22  norm          2.9008        5.2921        .11683E-05    .26828E-03
  23  Prefactor     .10000E-03    7.0635       -.31136E-07** at limit **
  24  norm          .54205        .80697        .35570E-06    .28061E-02
  25  norm          .10000E-03    2.5898        .51108E-06** at limit **
  26  Prefactor     .10000E-03    7.7615       -.82610E-07** at limit **
  27  Prefactor     7.4477        4.6661       -.12179E-07   -.23942E-03
  28  Prefactor     .10000E-03    8.0121       -.15930E-07** at limit **
  29  norm          .10000E-03    20.022        .47254E-06** at limit **
  30  Prefactor     .10000E-03    4.9540       -.10102E-05** at limit **
  31  Prefactor     3.0500        3.7444       -.31434E-07   -.13438E-05
  32  Normalizat    .99012        .17547       -.73952E-06   -.16545E-03
  33  Prefactor     .95944        .18241        .79899E-06   -.22161E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 19.3175
  Prefactor  = 4.20795
  Prefactor  = 0.0001
  Prefactor  = 2.85234
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.84611
  Prefactor  = 0.000100001
  Prefactor  = 4.26132
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.000100019
  Prefactor  = 23.3379
  norm       = 0.0001
  norm       = 3.30057
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 58.0148
  norm       = 2.90083
  Prefactor  = 0.0001
  norm       = 0.542053
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.44773
  Prefactor  = 0.0001
  norm       = 0.000100002
  Prefactor  = 0.000100003
  Prefactor  = 3.05005
  Normalizat = 0.990119
  Prefactor  = 0.959441
 **********
 **   18 **HESSE 
 **********

 FCN=   5993.348     FROM HESSE     STATUS=OK           693 CALLS     5317 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    42.430        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    7.1559        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     19.317        27.612        .91110E-04   -1.4829    
   4  Prefactor     4.2080        6.9314        .98230E-03   -1.5298    
   5  Prefactor     .10000E-03    3.0831        .13255E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     2.8523        5.1269        .22879E-03   -1.5370    
   7  norm          .10000E-03    15.027        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    2.8580        .12768E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    1.9700        .20909E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     3.8461        3.9712        .15115E-03   -1.5316    
  11  Prefactor     .10000E-03    44.869        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     4.2613        8.5419        .19519E-03   -1.5295    
  13  Prefactor     .10000E-03    26.928        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    5.1964        .17036E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10002E-03    191.04        .60178E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     23.338        14.281        .82904E-04   -1.4741    
  17  norm          .10000E-03    4.9727        .16848E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          3.3006        3.4383        .14261E-03   -1.5345    
  19  norm          .10000E-03    2.1427        .11049E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    3.5876        .14196E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     58.015        45.712        .52654E-04   -1.4183    
  22  norm          2.9008        5.2502        .17661E-03   -1.5367    
  23  Prefactor     .10000E-03    7.0959        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .54205        .70735        .82572E-03   -1.5561    
  25  norm          .10000E-03    2.6601        .24327E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    7.7872        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     7.4477        4.4752        .11807E-03   -1.5162    
  28  Prefactor     .10000E-03    8.0165        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          .10000E-03    20.076        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    14.993        .31046E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     3.0500        3.7345        .15882E-03   -1.5359    
  32  Normalizat    .99012        .20727        .23146E-03   -.93362    
  33  Prefactor     .95944        .21431        .25273E-03   -.94094    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.61748e-09
Minuit parameter uncertainties:
  1  5.92781e-05
  2  9.8914e-06
  3  27.6304
  4  6.93268
  5  1.84631e-07
  6  5.12772
  7  4.99021e-05
  8  1.70652e-06
  9  4.77516e-06
  10  3.97151
  11  0.00047089
  12  8.54437
  13  0.000446903
  14  1.72977e-05
  15  0.00378638
  16  14.283
  17  1.22543e-05
  18  3.43849
  19  2.51916e-05
  20  1.09322e-05
  21  45.7395
  22  5.25106
  23  1.58048e-05
  24  0.707362
  25  3.52809e-05
  26  2.83308e-05
  27  4.47536
  28  2.02678e-05
  29  0.000361881
  30  0.000430651
  31  3.73477
  32  0.207441
  33  0.214498
Done.

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

Extracting fit parameters...

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

EG_v02
   Spectrum: FileFunction
579   Normalization:  9.901e-01  2.074e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/968155/likelihoodResults_507859201_508118401_4FGL_J2329.3-4955_daily_bin1036.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) = 5993.27689679
delta logL = 0.0707054318691

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5993.27573478
delta logL = 0.0718674481695

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .55314       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.6989       1.0000          .0000       5.0000    
     3 'Normalizat'    .97897       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96649       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=   5993.276     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      231 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .55379        21.104        .11486E-01    .86571E-03
   2  alpha         2.7013        3.6069        .41317        .93235E-05
   3  Normalizat    .97852        .50775E-01    .45903E-01    .11691E-04
   4  Prefactor     .96686        .50914E-01    .45847E-01    .81655E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.553794
  alpha      = 2.70127
  Normalizat = 0.978518
  Prefactor  = 0.966856
 **********
 **   18 **HESSE 
 **********

 FCN=   5993.276     FROM HESSE     STATUS=OK            35 CALLS      266 TOTAL
                     EDM=   .16E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .55379        .72519        .69331E-03   -1.5559    
   2  alpha         2.7013        1.4520        .34136E-01    .80596E-01
   3  Normalizat    .97852        .20148        .23260E-03   -.93754    
   4  Prefactor     .96686        .21485        .25184E-03   -.93843    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.6183e-12
Minuit parameter uncertainties:
  1  0.725199
  2  1.55006
  3  0.20164
  4  0.21504
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/968155': 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) = 5993.27573055
delta logL = 0.0718716726424

Extracting fit parameters...

4FGL J2329.3-4955
   Spectrum: LogParabola
476         norm:  5.538e-01  7.252e-01  1.000e-04  1.000e+04 ( 1.000e-11)
477        alpha:  2.701e+00  1.550e+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:  9.669e-01  2.150e-01  0.000e+00  1.000e+01 ( 1.000e+00)
581        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
582        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
579   Normalization:  9.785e-01  2.016e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.08
Ra Dec: 352.329 -49.932
Photon Index (Free Index): 2.70 +/- 1.55
Photon Flux (Free Index): 2.43e-08 +/- 3.82e-08
Energy Flux (Free Index): 5.84e-06 +/- 6.93e-06

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/968155/cmap_HighResolution_507859201_508118401_4FGL_J2329.3-4955_daily_bin1036.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.57e-05', comment='SUCCESS', energy_flux2='5.84e-06', dlogl='7.19e-02', photon_flux2='2.43e-08', job_status='DONE', time_completed='2021-09-29 21:45:47.827153', photon_index_error2='1.55', photon_index2='2.70', ts='0.94', fit_tolerance='1e-08', GAL='0.96', photon_index_error='0.00', photon_flux_upper_limit='6.76e-08', energy_flux_error2='6.93e-06', EG='0.99', time_epoch_completed='1632977147.83', return_code='0', job_id='968155', GAL2='0.97', EG2='0.98', return_code2='0', photon_flux_error2='3.82e-08', ts2='1.08', photon_index='2.18' WHERE bin_id='1036' AND source_name='4FGL J2329.3-4955' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 21:45:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0072>
Subject: Job 968155: <4FGL_J2329.3-4955_daily_bin1036> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2329.3-4955_daily_bin1036 352.329 -49.9324 507859201 508118401 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 :                                   908.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             288.94 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   930 sec.
    Turnaround time :                            932 sec.

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

