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


Performing analysis on: 4FGL_J2329.3-4955_daily_bin1322
RA = 352.329, Dec = -49.9324
tmin = 581990401, tmax = 582249601
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='968845', job_status='RUN', time_executed='2021-09-29 21:34:32.832355', time_epoch_executed='1632976472.83' WHERE source_name='4FGL J2329.3-4955' and cadence='daily' and bin_id='1322'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/968845

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/968845/ft1_4FGL_J2329.3-4955_daily_bin1322.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/968845/ft2_4FGL_J2329.3-4955_daily_bin1322.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/968845/ft1_4FGL_J2329.3-4955_daily_bin1322.fits outfile=/scratch/kocevski/968845/ft1_filteredMKT_4FGL_J2329.3-4955_daily_bin1322.fits ra=352.329 dec=-49.9324 rad=12.0 tmin=581990401.0 tmax=582249601.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 2.38
user 2.21
sys 0.16

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/968845/ft2_4FGL_J2329.3-4955_daily_bin1322.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/968845/ft1_filteredMKT_4FGL_J2329.3-4955_daily_bin1322.fits evtable="EVENTS" outfile="/scratch/kocevski/968845/ft1_filtered_4FGL_J2329.3-4955_daily_bin1322.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.51
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/968845/ft1_filtered_4FGL_J2329.3-4955_daily_bin1322.fits" evtable="EVENTS" scfile=/scratch/kocevski/968845/ft2_4FGL_J2329.3-4955_daily_bin1322.fits sctable="SC_DATA" outfile=/scratch/kocevski/968845/ltcube_581990401_582249601_4FGL_J2329.3-4955_daily_bin1322.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/968845/ft2_4FGL_J2329.3-4955_daily_bin1322.fits
.....................!
real 12.75
user 12.38
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/968845/ft1_filtered_4FGL_J2329.3-4955_daily_bin1322.fits evtable="EVENTS" scfile=/scratch/kocevski/968845/ft2_4FGL_J2329.3-4955_daily_bin1322.fits sctable="SC_DATA" expcube=/scratch/kocevski/968845/ltcube_581990401_582249601_4FGL_J2329.3-4955_daily_bin1322.fits outfile=/scratch/kocevski/968845/expmap_581990401_582249601_4FGL_J2329.3-4955_daily_bin1322.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/968845/ltcube_581990401_582249601_4FGL_J2329.3-4955_daily_bin1322.fits
.....................!
real 189.63
user 185.10
sys 4.16

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/968845/ft1_filtered_4FGL_J2329.3-4955_daily_bin1322.fits scfile=/scratch/kocevski/968845/ft2_4FGL_J2329.3-4955_daily_bin1322.fits outfile=/scratch/kocevski/968845/cmap_581990401_582249601_4FGL_J2329.3-4955_daily_bin1322.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.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/968845/ft1_filtered_4FGL_J2329.3-4955_daily_bin1322.fits scfile=/scratch/kocevski/968845/ft2_4FGL_J2329.3-4955_daily_bin1322.fits outfile=/scratch/kocevski/968845/cmap_HighResolution_581990401_582249601_4FGL_J2329.3-4955_daily_bin1322.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.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    18.473       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10348E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.8351       1.0000         .10000E-03   10000.    
     5 'Prefactor '    12.111       1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.6379       1.0000         .10000E-03   10000.    
     7 'norm      '    132.16       1.0000         .10000E-03   10000.    
     8 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.3876       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .15769E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    8.9710       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    32.229       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    6.4982       1.0000         .10000E-03   10000.    
    18 'norm      '    .10602E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10114E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10030E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    16.083       1.0000         .10000E-03   10000.    
    24 'norm      '    2.0936       1.0000         .10000E-03   10000.    
    25 'norm      '    4.0129       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    30.099       1.0000         .10000E-03   10000.    
    29 'norm      '    8.0123       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .11861E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    1.4963       1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.0156       1.0000         .10000E-01   10.000    
    33 'Prefactor '    1.0785       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=   5106.942     FROM MIGRAD    STATUS=CONVERGED    882 CALLS     3916 TOTAL
                     EDM=   .45E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    71.398        .32366E-04** at limit **
   2  Prefactor     18.471        29.134       -.11392E-05   -.30992E-04
   3  Prefactor     .10000E-03    58.964        .11390E-04** at limit **
   4  Prefactor     7.8346        7.8447       -.20967E-06   -.63304E-05
   5  Prefactor     12.110        10.218       -.27626E-07   -.13452E-03
   6  Prefactor     7.6384        8.2529       -.14481E-06   -.31632E-04
   7  norm          132.16        55.392        .39968E-06   -.92686E-06
   8  norm          .10000E-03    4.8818        .32853E-07** at limit **
   9  Prefactor     5.3878        4.4165        .65008E-07    .39861E-04
  10  Prefactor     .10000E-03    4.3075        .18228E-07** at limit **
  11  Prefactor     .10000E-03    106.48       -.30805E-04** at limit **
  12  Prefactor     8.9773        14.275        .45984E-06    .12007E-03
  13  Prefactor     .10000E-03    47.086       -.24611E-04** at limit **
  14  Prefactor     .10000E-03    3.7517        .67522E-08** at limit **
  15  Prefactor     32.231        37.769        .12678E-05    .45106E-04
  16  Prefactor     .10000E-03    9.0651       -.34023E-07** at limit **
  17  norm          6.4979        9.1542       -.41833E-07   -.37228E-05
  18  norm          .10000E-03    4.4987        .11330E-06** at limit **
  19  norm          .10000E-03    2.0397        .24659E-07** at limit **
  20  Prefactor     .10000E-03    2.0777        .22725E-07** at limit **
  21  Prefactor     .10000E-03    29.278        .52301E-05** at limit **
  22  norm          .10000E-03    2.5443        .36395E-07** at limit **
  23  Prefactor     16.083        13.097       -.24974E-08   -.31473E-05
  24  norm          2.0933        1.3808       -.37513E-07   -.44159E-04
  25  norm          4.0115        4.8884       -.17066E-06   -.11215E-03
  26  Prefactor     .10000E-03    19.904       -.87802E-06** at limit **
  27  Prefactor     .10000E-03    1.1466        .14464E-07** at limit **
  28  Prefactor     30.099        26.735        .29062E-06   -.19919E-04
  29  norm          8.0066        21.549        .10057E-08   -.56724E-04
  30  Prefactor     .10000E-03    3.4853       -.24754E-07** at limit **
  31  Prefactor     1.4988        1.5973        .35593E-06   -.21670E-02
  32  Normalizat    1.0153        .20982        .34479E-06    .54739E-04
  33  Prefactor     1.0787        .22041       -.31696E-06    .65625E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 18.4706
  Prefactor  = 0.0001
  Prefactor  = 7.83462
  Prefactor  = 12.11
  Prefactor  = 7.63842
  norm       = 132.162
  norm       = 0.0001
  Prefactor  = 5.3878
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.97726
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 32.2313
  Prefactor  = 0.0001
  norm       = 6.49789
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 16.0833
  norm       = 2.09328
  norm       = 4.01155
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 30.0993
  norm       = 8.00656
  Prefactor  = 0.0001
  Prefactor  = 1.49877
  Normalizat = 1.01534
  Prefactor  = 1.07871
 **********
 **   18 **HESSE 
 **********

 FCN=   5106.942     FROM HESSE     STATUS=OK           693 CALLS     4609 TOTAL
                     EDM=   .99E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    71.459        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     18.471        30.375        .93187E-04   -1.4848    
   3  Prefactor     .10000E-03    59.161        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     7.8346        7.8465        .14325E-03   -1.5148    
   5  Prefactor     12.110        10.230        .57554E-03   -1.5012    
   6  Prefactor     7.6384        8.2619        .14510E-03   -1.5155    
   7  norm          132.16        55.398        .35027E-04   -1.3404    
   8  norm          .10000E-03    4.8930        .15421E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     5.3878        4.4203        .13212E-03   -1.5244    
  10  Prefactor     .10000E-03    4.3407        .14480E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    107.57        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     8.9773        14.329        .66909E-03   -1.5109    
  13  Prefactor     .10000E-03    47.111        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    3.8086        .13518E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     32.231        37.784        .70581E-04   -1.4572    
  16  Prefactor     .10000E-03    9.0866        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          6.4979        9.1502        .15744E-03   -1.5198    
  18  norm          .10000E-03    9.8082        .29255E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    2.0427        .99673E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    2.0795        .10057E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    29.357        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    2.5614        .11113E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     16.083        13.097        .99869E-04   -1.4906    
  24  norm          2.0933        1.3594        .64087E-04   -1.5419    
  25  norm          4.0115        4.8746        .16682E-03   -1.5307    
  26  Prefactor     .10000E-03    20.080        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    1.1498        .74678E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     30.099        26.771        .73029E-04   -1.4610    
  29  norm          8.0066        21.457        .70824E-03   -1.5142    
  30  Prefactor     .10000E-03    3.5364        .25865E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     1.4988        5.6982        .14644E-02   -1.5463    
  32  Normalizat    1.0153        .25773        .25496E-03   -.92518    
  33  Prefactor     1.0787        .26739        .26731E-03   -.90150    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.86767e-09
Minuit parameter uncertainties:
  1  0.000147879
  2  30.4009
  3  5.56806e-05
  4  7.84751
  5  10.2312
  6  8.26313
  7  55.4199
  8  9.68167e-07
  9  4.42056
  10  3.21375e-06
  11  0.000148464
  12  14.335
  13  0.000126238
  14  2.44459e-07
  15  37.8124
  16  2.21462e-07
  17  9.15218
  18  2.76561e-05
  19  6.98103e-08
  20  7.96034e-08
  21  1.76192e-05
  22  2.76912e-07
  23  13.0996
  24  1.35941
  25  4.87504
  26  2.46218e-06
  27  3.18807e-07
  28  26.782
  29  21.4776
  30  4.18134e-07
  31  5.70025
  32  0.258044
  33  0.267718
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
580    Prefactor:  1.079e+00  2.677e-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.015e+00  2.580e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.49
Ra Dec: 352.329 -49.932
Photon Index (Fixed Index): 2.18 +/- 0.00
Photon Flux (Fixed Index): 5.67e-08 +/- 3.68e-08
Energy Flux (Fixed Index): 2.16e-05 +/- 1.40e-05

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) = 5106.93487661
delta logL = 0.00669973284676

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5106.93465075
delta logL = 0.0069255907456

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.0899       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2506       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0107       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0819       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=   5106.935     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      223 TOTAL
                     EDM=   .54E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.0882        40.123        .71391E-02    .22815E-03
   2  alpha         2.2496        2.5236        .38733        .19378E-05
   3  Normalizat    1.0108        .14362        .45544E-01    .48917E-05
   4  Prefactor     1.0819        .15881        .60364E-01    .26267E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 2.08821
  alpha      = 2.2496
  Normalizat = 1.0108
  Prefactor  = 1.08194
 **********
 **   18 **HESSE 
 **********

 FCN=   5106.935     FROM HESSE     STATUS=OK            33 CALLS      256 TOTAL
                     EDM=   .61E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.0882        1.3371        .63324E-04   -1.5419    
   2  alpha         2.2496        .62026        .14758E-01   -.10033    
   3  Normalizat    1.0108        .24790        .25546E-03   -.92670    
   4  Prefactor     1.0819        .26551        .26696E-03   -.90046    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.14458e-14
Minuit parameter uncertainties:
  1  1.33715
  2  0.626872
  3  0.248183
  4  0.265831
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/968845': 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) = 5106.93464847
delta logL = 0.00692786499894

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
580    Prefactor:  1.082e+00  2.658e-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.011e+00  2.482e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.50
Ra Dec: 352.329 -49.932
Photon Index (Free Index): 2.25 +/- 0.63
Photon Flux (Free Index): 6.00e-08 +/- 4.65e-08
Energy Flux (Free Index): 2.10e-05 +/- 1.42e-05

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/968845/cmap_HighResolution_581990401_582249601_4FGL_J2329.3-4955_daily_bin1322.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.67e-08', energy_flux2='2.10e-05', photon_flux_error='3.68e-08', dlogl='6.93e-03', energy_flux='2.16e-05', photon_flux2='6.00e-08', job_status='DONE', time_completed='2021-09-29 21:45:47.420374', photon_index_error2='0.63', photon_index2='2.25', ts='4.49', fit_tolerance='1e-08', GAL='1.08', photon_index_error='0.00', energy_flux_error2='1.42e-05', EG='1.02', time_epoch_completed='1632977147.42', return_code='0', job_id='968845', GAL2='1.08', EG2='1.01', return_code2='0', energy_flux_error='1.40e-05', photon_flux_error2='4.65e-08', ts2='4.50', photon_index='2.18' WHERE bin_id='1322' 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@bullet0249>
Subject: Job 968845: <4FGL_J2329.3-4955_daily_bin1322> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2329.3-4955_daily_bin1322 352.329 -49.9324 581990401 582249601 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 :                                   673.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             297.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   902 sec.
    Turnaround time :                            903 sec.

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

