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


Performing analysis on: 4FGL_J2329.3-4955_daily_bin1597
RA = 352.329, Dec = -49.9324
tmin = 653270401, tmax = 653529601
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='973036', job_status='RUN', time_executed='2021-09-29 21:36:49.045006', time_epoch_executed='1632976609.05' WHERE source_name='4FGL J2329.3-4955' and cadence='daily' and bin_id='1597'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/973036

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/973036/ft1_4FGL_J2329.3-4955_daily_bin1597.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/973036/ft2_4FGL_J2329.3-4955_daily_bin1597.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/973036/ft1_4FGL_J2329.3-4955_daily_bin1597.fits outfile=/scratch/kocevski/973036/ft1_filteredMKT_4FGL_J2329.3-4955_daily_bin1597.fits ra=352.329 dec=-49.9324 rad=12.0 tmin=653270401.0 tmax=653529601.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.34
user 3.11
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/973036/ft2_4FGL_J2329.3-4955_daily_bin1597.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/973036/ft1_filteredMKT_4FGL_J2329.3-4955_daily_bin1597.fits evtable="EVENTS" outfile="/scratch/kocevski/973036/ft1_filtered_4FGL_J2329.3-4955_daily_bin1597.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.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/973036/ft1_filtered_4FGL_J2329.3-4955_daily_bin1597.fits" evtable="EVENTS" scfile=/scratch/kocevski/973036/ft2_4FGL_J2329.3-4955_daily_bin1597.fits sctable="SC_DATA" outfile=/scratch/kocevski/973036/ltcube_653270401_653529601_4FGL_J2329.3-4955_daily_bin1597.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/973036/ft2_4FGL_J2329.3-4955_daily_bin1597.fits
.....................!
real 12.99
user 12.62
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/973036/ft1_filtered_4FGL_J2329.3-4955_daily_bin1597.fits evtable="EVENTS" scfile=/scratch/kocevski/973036/ft2_4FGL_J2329.3-4955_daily_bin1597.fits sctable="SC_DATA" expcube=/scratch/kocevski/973036/ltcube_653270401_653529601_4FGL_J2329.3-4955_daily_bin1597.fits outfile=/scratch/kocevski/973036/expmap_653270401_653529601_4FGL_J2329.3-4955_daily_bin1597.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/973036/ltcube_653270401_653529601_4FGL_J2329.3-4955_daily_bin1597.fits
.....................!
real 190.61
user 185.38
sys 4.76

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/973036/ft1_filtered_4FGL_J2329.3-4955_daily_bin1597.fits scfile=/scratch/kocevski/973036/ft2_4FGL_J2329.3-4955_daily_bin1597.fits outfile=/scratch/kocevski/973036/cmap_653270401_653529601_4FGL_J2329.3-4955_daily_bin1597.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/973036/ft1_filtered_4FGL_J2329.3-4955_daily_bin1597.fits scfile=/scratch/kocevski/973036/ft2_4FGL_J2329.3-4955_daily_bin1597.fits outfile=/scratch/kocevski/973036/cmap_HighResolution_653270401_653529601_4FGL_J2329.3-4955_daily_bin1597.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.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/973036/ft1_filtered_4FGL_J2329.3-4955_daily_bin1597.fits evtable="EVENTS" scfile=/scratch/kocevski/973036/ft2_4FGL_J2329.3-4955_daily_bin1597.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/973036/Model_4FGL_J2329.3-4955_daily_bin1597.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/973036/ft1_filtered_4FGL_J2329.3-4955_daily_bin1597.fits.....................!
real 18.44
user 17.15
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11438E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10060E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10891E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .64224       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.2193       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10197E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    46.846       1.0000         .10000E-03   10000.    
     8 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.5327       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .15587E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    29.026       1.0000         .10000E-03   10000.    
    13 'Prefactor '    25.514       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    8.3640       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10055E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    11.274       1.0000         .10000E-03   10000.    
    21 'Prefactor '    24.558       1.0000         .10000E-03   10000.    
    22 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .14127E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    45.360       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    .10030E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    .91901       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .73950       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=   935.9509     FROM MIGRAD    STATUS=CONVERGED    890 CALLS     5234 TOTAL
                     EDM=   .65E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    69.801       -.34157E-05** at limit **
   2  Prefactor     .10000E-03    22.183       -.16618E-05** at limit **
   3  Prefactor     .10000E-03    49.614        .15360E-05** at limit **
   4  Prefactor     .63930        57.011        .60459E-05   -.23660E-03
   5  Prefactor     1.2219        47.370        .10632E-04    .12785E-03
   6  Prefactor     .10000E-03    58.513        .22093E-05** at limit **
   7  norm          46.818        76.521        .20431E-05    .83119E-05
   8  norm          .10000E-03    11.158       -.36143E-06** at limit **
   9  Prefactor     1.5333        14.023        .20397E-06   -.10939E-05
  10  Prefactor     .10000E-03    13.683        .11675E-06** at limit **
  11  Prefactor     .10002E-03    400.61        .41484E-05** at limit **
  12  Prefactor     28.998        36.837       -.11582E-05   -.42989E-04
  13  Prefactor     25.552        835.07       -.10546E-04   -.23080E-05
  14  Prefactor     .10000E-03    13.885        .16947E-06** at limit **
  15  Prefactor     8.3505        260.55        .50742E-05   -.13366E-05
  16  Prefactor     .10000E-03    13.631       -.11780E-06** at limit **
  17  norm          .10000E-03    31.798       -.79417E-06** at limit **
  18  norm          .10000E-03    10.134        .11118E-05** at limit **
  19  norm          .10000E-03    9.2100        .17529E-07** at limit **
  20  Prefactor     11.276        13.613        .47650E-07   -.35128E-04
  21  Prefactor     24.609        79.914        .99304E-05    .65165E-06
  22  norm          .10000E-03    9.7873       -.15375E-05** at limit **
  23  Prefactor     .10000E-03    25.906        .16535E-05** at limit **
  24  norm          .10000E-03    1.2299       -.54159E-07** at limit **
  25  norm          .10000E-03    19.514        .86865E-07** at limit **
  26  Prefactor     45.348        62.857        .81580E-06    .13473E-04
  27  Prefactor     .10000E-03    3.4590       -.11787E-07** at limit **
  28  Prefactor     .10000E-03    24.860        .13094E-05** at limit **
  29  norm          .10000E-03    35.333       -.23302E-05** at limit **
  30  Prefactor     .10000E-03    6.5655        .52331E-07** at limit **
  31  Prefactor     .10000E-03    4.6026        .78515E-08** at limit **
  32  Normalizat    .91900        .40037        .19045E-07   -.32213E-04
  33  Prefactor     .73951        .38408       -.96177E-06    .16074E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.639301
  Prefactor  = 1.22195
  Prefactor  = 0.000100001
  norm       = 46.8184
  norm       = 0.0001
  Prefactor  = 1.53328
  Prefactor  = 0.0001
  Prefactor  = 0.000100018
  Prefactor  = 28.998
  Prefactor  = 25.5524
  Prefactor  = 0.0001
  Prefactor  = 8.35045
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 11.2757
  Prefactor  = 24.6092
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.000100003
  Prefactor  = 45.3478
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.919
  Prefactor  = 0.739511
 **********
 **   18 **HESSE 
 **********

 FCN=   935.9509     FROM HESSE     STATUS=OK           683 CALLS     5917 TOTAL
                     EDM=   .77E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    69.647        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    22.163        .14073E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    49.562        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .63930        346.05        .32711E-02   -1.5548    
   5  Prefactor     1.2219        51.690        .20431E-02   -1.5487    
   6  Prefactor     .10000E-03    59.819        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          46.818        77.529        .58582E-04   -1.4338    
   8  norm          .10000E-03    11.155        .99824E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.5333        14.044        .21802E-03   -1.5460    
  10  Prefactor     .10000E-03    13.852        .11050E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10002E-03    407.86        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     28.998        36.849        .74364E-04   -1.4630    
  13  Prefactor     25.552        830.57        .79307E-04   -1.4697    
  14  Prefactor     .10000E-03    13.920        .11136E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     8.3505        261.33        .13862E-03   -1.5130    
  16  Prefactor     .10000E-03    13.632        .11036E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    31.842        .16859E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    10.116        .95062E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    9.2119        .90708E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     11.276        13.608        .11932E-03   -1.5036    
  21  Prefactor     24.609        83.657        .80834E-04   -1.4715    
  22  norm          .10000E-03    9.8343        .93489E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    25.857        .15192E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    1.2398        .33135E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    46.798        .22846E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     45.348        63.301        .59530E-04   -1.4360    
  27  Prefactor     .10000E-03    3.4636        .55579E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    24.831        .14894E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          .10000E-03    35.292        .17759E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    6.5724        .76562E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .10000E-03    4.6094        .64110E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    .91900        .48842        .21025E-03   -.95796    
  33  Prefactor     .73951        .46109        .24367E-03   -1.0200    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.69518e-09
Minuit parameter uncertainties:
  1  7.22208e-06
  2  9.21046e-06
  3  5.26224e-05
  4  29.9204
  5  15.909
  6  0.000474233
  7  77.6963
  8  5.8122e-06
  9  9.28341
  10  2.53642e-05
  11  0.00546754
  12  36.8784
  13  295.955
  14  8.0122e-06
  15  93.8791
  16  2.2612e-06
  17  1.02035e-05
  18  2.26032e-06
  19  1.15071e-06
  20  13.612
  21  84.0601
  22  1.97287e-06
  23  2.80984e-05
  24  2.27205e-06
  25  0.000709661
  26  63.3947
  27  5.01651e-06
  28  1.9557e-05
  29  5.06131e-06
  30  1.67139e-05
  31  6.0847e-06
  32  0.490799
  33  0.463513
Done.

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

Extracting fit parameters...

4FGL J2329.3-4955
   Spectrum: LogParabola
476         norm:  1.000e-04  2.272e-06  1.000e-04  1.000e+04 ( 1.000e-11)
477        alpha:  2.177e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
478         beta:  1.055e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
479           Eb:  5.219e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
580    Prefactor:  7.395e-01  4.635e-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.190e-01  4.908e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/973036/likelihoodResults_653270401_653529601_4FGL_J2329.3-4955_daily_bin1597.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) = 935.953536988
delta logL = -0.00260466520888

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 935.950932334
delta logL = -1.1196448213e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1772       1.0000          .0000       5.0000    
     3 'Normalizat'    .91897       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .73951       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=   935.9461     FROM MIGRAD    STATUS=CONVERGED    137 CALLS      275 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10688E-01    .15388        .64542E-02   -.14168E-03
   2  alpha         5.0000        3.2518        .16637    ** at limit **
   3  Normalizat    .90979        .41434        .21026E-03   -.45892E-05
   4  Prefactor     .74561        .43612        .24366E-03    .20905E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0106878
  alpha      = 5
  Normalizat = 0.909785
  Prefactor  = 0.745614
 **********
 **   18 **HESSE 
 **********

 FCN=   935.9461     FROM HESSE     STATUS=OK            27 CALLS      302 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10688E-01    .29603        .23171E-03   -1.5729    
   2  alpha         5.0000        3.3501        .33275E-01    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .90979        .42237        .84103E-05   -.96117    
   4  Prefactor     .74561        .43969        .48733E-04   -1.0177    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.27159e-09
Minuit parameter uncertainties:
  1  0.111969
  2  0.000178745
  3  0.423917
  4  0.44177
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/973036': 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) = 935.946076622
delta logL = 0.00485570046226

Extracting fit parameters...

4FGL J2329.3-4955
   Spectrum: LogParabola
476         norm:  1.069e-02  1.120e-01  1.000e-04  1.000e+04 ( 1.000e-11)
477        alpha:  5.000e+00  1.787e-04  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:  7.456e-01  4.418e-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.098e-01  4.239e-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/973036/cmap_HighResolution_653270401_653529601_4FGL_J2329.3-4955_daily_bin1597.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.30e-05', job_status='DONE', photon_flux_upper_limit='1.66e-07', time_completed='2021-09-29 21:44:03.697900', job_id='973036', GAL2='0.75', fit_tolerance='1e-08', EG2='0.91', EG='0.92', time_epoch_completed='1632977043.7', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.74', dlogl='4.86e-03', ts2='0.01', photon_index_error='0.00', photon_index='2.18' WHERE bin_id='1597' AND source_name='4FGL J2329.3-4955' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 21:44:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0206>
Subject: Job 973036: <4FGL_J2329.3-4955_daily_bin1597> in cluster <slac> Done

Job <4FGL_J2329.3-4955_daily_bin1597> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 21:35:35 2021
Job was executed on host(s) <bullet0206>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 21:35:36 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:35:36 2021
Terminated at Wed Sep 29 21:44:04 2021
Results reported at Wed Sep 29 21:44:04 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2329.3-4955_daily_bin1597 352.329 -49.9324 653270401 653529601 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 :                                   424.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             234.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   507 sec.
    Turnaround time :                            509 sec.

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

