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


Performing analysis on: 4FGL_J2329.3-4955_daily_bin1221
RA = 352.329, Dec = -49.9324
tmin = 555811201, tmax = 556070401
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='968601', job_status='RUN', time_executed='2021-09-29 21:33:33.930398', time_epoch_executed='1632976413.93' WHERE source_name='4FGL J2329.3-4955' and cadence='daily' and bin_id='1221'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/968601

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/968601/ft1_4FGL_J2329.3-4955_daily_bin1221.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/968601/ft2_4FGL_J2329.3-4955_daily_bin1221.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/968601/ft1_4FGL_J2329.3-4955_daily_bin1221.fits outfile=/scratch/kocevski/968601/ft1_filteredMKT_4FGL_J2329.3-4955_daily_bin1221.fits ra=352.329 dec=-49.9324 rad=12.0 tmin=555811201.0 tmax=556070401.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.58
user 3.37
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/968601/ft2_4FGL_J2329.3-4955_daily_bin1221.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/968601/ft1_filteredMKT_4FGL_J2329.3-4955_daily_bin1221.fits evtable="EVENTS" outfile="/scratch/kocevski/968601/ft1_filtered_4FGL_J2329.3-4955_daily_bin1221.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/968601/ft1_filtered_4FGL_J2329.3-4955_daily_bin1221.fits" evtable="EVENTS" scfile=/scratch/kocevski/968601/ft2_4FGL_J2329.3-4955_daily_bin1221.fits sctable="SC_DATA" outfile=/scratch/kocevski/968601/ltcube_555811201_556070401_4FGL_J2329.3-4955_daily_bin1221.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/968601/ft2_4FGL_J2329.3-4955_daily_bin1221.fits
.....................!
real 12.41
user 11.97
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/968601/ft1_filtered_4FGL_J2329.3-4955_daily_bin1221.fits evtable="EVENTS" scfile=/scratch/kocevski/968601/ft2_4FGL_J2329.3-4955_daily_bin1221.fits sctable="SC_DATA" expcube=/scratch/kocevski/968601/ltcube_555811201_556070401_4FGL_J2329.3-4955_daily_bin1221.fits outfile=/scratch/kocevski/968601/expmap_555811201_556070401_4FGL_J2329.3-4955_daily_bin1221.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/968601/ltcube_555811201_556070401_4FGL_J2329.3-4955_daily_bin1221.fits
.....................!
real 191.05
user 186.01
sys 4.66

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/968601/ft1_filtered_4FGL_J2329.3-4955_daily_bin1221.fits scfile=/scratch/kocevski/968601/ft2_4FGL_J2329.3-4955_daily_bin1221.fits outfile=/scratch/kocevski/968601/cmap_555811201_556070401_4FGL_J2329.3-4955_daily_bin1221.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.56
user 0.36
sys 0.19

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/968601/ft1_filtered_4FGL_J2329.3-4955_daily_bin1221.fits scfile=/scratch/kocevski/968601/ft2_4FGL_J2329.3-4955_daily_bin1221.fits outfile=/scratch/kocevski/968601/cmap_HighResolution_555811201_556070401_4FGL_J2329.3-4955_daily_bin1221.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.56
user 0.37
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/968601/ft1_filtered_4FGL_J2329.3-4955_daily_bin1221.fits evtable="EVENTS" scfile=/scratch/kocevski/968601/ft2_4FGL_J2329.3-4955_daily_bin1221.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/968601/Model_4FGL_J2329.3-4955_daily_bin1221.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/968601/ft1_filtered_4FGL_J2329.3-4955_daily_bin1221.fits........................!
real 19.78
user 18.43
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .22154E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10775E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    16.460       1.0000         .10000E-03   10000.    
     4 'Prefactor '    31.186       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10169E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .11426E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10057E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.1730       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .11788E-02   1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.1071       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10115E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .27840E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.1166       1.0000         .10000E-03   10000.    
    17 'norm      '    .10055E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .26237E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10160E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    8.6509       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .42134E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    9.5197       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .11320E-01   1.0000         .10000E-03   10000.    
    24 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    3.5441       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10986E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    3.2601       1.0000         .10000E-03   10000.    
    28 'Prefactor '    61.735       1.0000         .10000E-03   10000.    
    29 'norm      '    .12486E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    25.057       1.0000         .10000E-03   10000.    
    31 'Prefactor '    1.0935       1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.0423       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .72048       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=   1262.710     FROM MIGRAD    STATUS=CONVERGED    901 CALLS     4588 TOTAL
                     EDM=   .84E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    142.60        .53613E-06** at limit **
   2  Prefactor     .10000E-03    66.581        .80057E-06** at limit **
   3  Prefactor     16.599        83.521        .18135E-05    .55936E-04
   4  Prefactor     31.181        24.765        .27858E-06    .23063E-04
   5  Prefactor     .10000E-03    7.6456        .22638E-06** at limit **
   6  Prefactor     .10000E-03    7.1461        .19957E-06** at limit **
   7  norm          .10000E-03    45.104        .17154E-06** at limit **
   8  norm          .10000E-03    8.8746        .59270E-08** at limit **
   9  Prefactor     6.1662        9.2131        .44232E-07    .26712E-04
  10  Prefactor     .10004E-03    137.11        .14524E-04** at limit **
  11  Prefactor     1.2082        726.32        .35810E-05   -.13598E-05
  12  Prefactor     .10000E-03    41.514        .21337E-06** at limit **
  13  Prefactor     .10000E-03    151.75       -.84724E-08** at limit **
  14  Prefactor     .10000E-03    11.748        .64517E-07** at limit **
  15  Prefactor     .10000E-03    55.820       -.15135E-06** at limit **
  16  Prefactor     3.1307        112.93        .12421E-04    .24032E-04
  17  norm          .10000E-03    12.281        .11084E-07** at limit **
  18  norm          .10005E-03    27.641       -.44431E-05** at limit **
  19  norm          .10000E-03    15.327        .25240E-06** at limit **
  20  Prefactor     8.6561        12.822       -.77468E-08   -.23765E-03
  21  Prefactor     .10000E-03    200.04        .56815E-06** at limit **
  22  norm          9.5267        10.276        .29044E-06    .62003E-05
  23  Prefactor     .10007E-03    66.172       -.12840E-06** at limit **
  24  norm          .10000E-03    1.8296       -.56888E-06** at limit **
  25  norm          3.5397        8.5011        .28265E-07    .35282E-04
  26  Prefactor     .10000E-03    18.892       -.17844E-07** at limit **
  27  Prefactor     3.2565        10.142       -.17548E-06    .70388E-05
  28  Prefactor     61.685        63.031        .59751E-07   -.12927E-03
  29  norm          .10000E-03    35.110       -.30128E-07** at limit **
  30  Prefactor     25.060        17.942        .29541E-06   -.41957E-04
  31  Prefactor     1.0903        15.729        .21898E-06    .33797E-04
  32  Normalizat    1.0418        .47574       -.76832E-05   -.14539E-04
  33  Prefactor     .72085        .46403        .79446E-05   -.90347E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100008
  Prefactor  = 0.0001
  Prefactor  = 16.5987
  Prefactor  = 31.1805
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100001
  norm       = 0.0001
  Prefactor  = 6.16617
  Prefactor  = 0.000100039
  Prefactor  = 1.20818
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.1307
  norm       = 0.0001
  norm       = 0.000100046
  norm       = 0.0001
  Prefactor  = 8.65607
  Prefactor  = 0.000100001
  norm       = 9.52667
  Prefactor  = 0.000100074
  norm       = 0.0001
  norm       = 3.53965
  Prefactor  = 0.0001
  Prefactor  = 3.25647
  Prefactor  = 61.6854
  norm       = 0.0001
  Prefactor  = 25.0596
  Prefactor  = 1.09034
  Normalizat = 1.04184
  Prefactor  = 0.720852
 **********
 **   18 **HESSE 
 **********

 FCN=   1262.710     FROM HESSE     STATUS=OK           691 CALLS     5279 TOTAL
                     EDM=   .95E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    143.05        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    66.967        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     16.599        83.909        .98721E-04   -1.4893    
   4  Prefactor     31.181        24.762        .71748E-04   -1.4591    
   5  Prefactor     .10000E-03    7.6733        .96093E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    7.1694        .92882E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    45.138        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    8.8746        .10341E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     6.1662        9.1503        .12660E-03   -1.5211    
  10  Prefactor     .10004E-03    143.45        .26618E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     1.2082        784.60        .67016E-02   -1.5488    
  12  Prefactor     .10000E-03    41.757        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    151.75        .21421E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    11.796        .11899E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    55.835        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     3.1307        119.29        .22967E-03   -1.5354    
  17  norm          .10000E-03    12.281        .12166E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10005E-03    56.033        .33868E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    15.350        .13555E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     8.6561        12.928        .13629E-03   -1.5119    
  21  Prefactor     .10000E-03    201.42        .21240E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          9.5267        10.233        .10912E-03   -1.5091    
  23  Prefactor     .10007E-03    247.91        .45413E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    1.9059        .94333E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          3.5397        8.4797        .14966E-03   -1.5332    
  26  Prefactor     .10000E-03    18.907        .15090E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     3.2565        10.000        .16698E-03   -1.5347    
  28  Prefactor     61.685        62.722        .25534E-03   -1.4136    
  29  norm          .10000E-03    35.128        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     25.060        17.849        .80025E-04   -1.4706    
  31  Prefactor     1.0903        15.754        .26165E-03   -1.5499    
  32  Normalizat    1.0418        .48232        .22232E-03   -.91642    
  33  Prefactor     .72085        .46737        .27980E-03   -1.0272    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.47311e-09
Minuit parameter uncertainties:
  1  0.00209933
  2  0.000130669
  3  74.807
  4  24.7698
  5  0.000105043
  6  8.96288e-05
  7  0.000368141
  8  9.58124e-07
  9  9.15242
  10  0.00475366
  11  62.4138
  12  0.00025274
  13  5.60021e-05
  14  4.62634e-06
  15  0.000246364
  16  38.7336
  17  2.58884e-06
  18  0.00321931
  19  6.99569e-05
  20  12.9324
  21  0.00102691
  22  10.235
  23  0.00857709
  24  4.67576e-05
  25  8.48261
  26  1.72805e-05
  27  10.0056
  28  62.7897
  29  0.000263195
  30  17.8527
  31  8.29133
  32  0.484368
  33  0.469954
Done.

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

Extracting fit parameters...

4FGL J2329.3-4955
   Spectrum: LogParabola
476         norm:  1.000e-04  4.676e-05  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.209e-01  4.700e-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.042e+00  4.844e-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.71e-07 ph cm-2 s-1
Energy Flux Upper Limit: 6.51e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/968601/likelihoodResults_555811201_556070401_4FGL_J2329.3-4955_daily_bin1221.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) = 1262.71272511
delta logL = -0.0024291039249

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1262.71029625
delta logL = -2.40068402491e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1747       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0418       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .72102       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   1262.710     FROM MIGRAD    STATUS=FAILED        85 CALLS      229 TOTAL
                     EDM=   .39E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10004E-03    1.9272        .94348E-04** at limit **
   2  alpha         2.1534        3.8056        .16640        .24496E-05
   3  Normalizat    1.0418        .41974        .22234E-03    .17858E-04
   4  Prefactor     .72086        .44795        .27978E-03    .96811E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   1262.710     FROM SIMPLEX   STATUS=UNCHANGED    124 CALLS      353 TOTAL
                     EDM=   .65E-05    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10004E-03    1.9272        .13976E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.1534        3.8056        .81768E-03   -.13909    
   3  Normalizat    1.0418        .41974        .15448E-03   -.91642    
   4  Prefactor     .72086        .44795        .21377E-03   -1.0272    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   1262.710     FROM MIGRAD    STATUS=CONVERGED     29 CALLS      382 TOTAL
                     EDM=   .13E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.9092        .18870E-04** at limit **
   2  alpha         2.1302        3.6493        .66561E-02    .93941E-08
   3  Normalizat    1.0418        .42020        .88934E-05   -.19175E-06
   4  Prefactor     .72086        .44844        .11191E-04    .50793E-07
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.13016
  Normalizat = 1.04183
  Prefactor  = 0.720858
 **********
 **   18 **HESSE 
 **********

 FCN=   1262.710     FROM HESSE     STATUS=OK            23 CALLS      405 TOTAL
                     EDM=   .13E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.9092        .37739E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.1302        3.7525        .26624E-03   -.14848    
   3  Normalizat    1.0418        .41917        .17787E-05   -.91642    
   4  Prefactor     .72086        .44736        .22382E-05   -1.0272    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.25954e-12
Minuit parameter uncertainties:
  1  3.79048e-06
  2  152.453
  3  0.420514
  4  0.449617
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/968601': 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) = 1262.71029596
delta logL = 4.5828983275e-08

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
580    Prefactor:  7.209e-01  4.496e-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.042e+00  4.205e-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/968601/cmap_HighResolution_555811201_556070401_4FGL_J2329.3-4955_daily_bin1221.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.51e-05', job_status='DONE', photon_flux_upper_limit='1.71e-07', time_completed='2021-09-29 21:41:10.303206', job_id='968601', GAL2='0.72', fit_tolerance='1e-08', EG2='1.04', EG='1.04', time_epoch_completed='1632976870.3', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.72', dlogl='4.58e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.18' WHERE bin_id='1221' AND source_name='4FGL J2329.3-4955' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 21:41:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0076>
Subject: Job 968601: <4FGL_J2329.3-4955_daily_bin1221> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2329.3-4955_daily_bin1221 352.329 -49.9324 555811201 556070401 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 :                                   454.45 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             249.91 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   634 sec.
    Turnaround time :                            636 sec.

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

