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


Performing analysis on: 4FGL_J2329.3-4955_daily_bin1469
RA = 352.329, Dec = -49.9324
tmin = 620092801, tmax = 620352001
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='972714', job_status='RUN', time_executed='2021-09-29 21:36:18.082763', time_epoch_executed='1632976578.08' WHERE source_name='4FGL J2329.3-4955' and cadence='daily' and bin_id='1469'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/972714

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/972714/ft1_4FGL_J2329.3-4955_daily_bin1469.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/972714/ft2_4FGL_J2329.3-4955_daily_bin1469.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/972714/ft1_4FGL_J2329.3-4955_daily_bin1469.fits outfile=/scratch/kocevski/972714/ft1_filteredMKT_4FGL_J2329.3-4955_daily_bin1469.fits ra=352.329 dec=-49.9324 rad=12.0 tmin=620092801.0 tmax=620352001.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.43
user 3.21
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/972714/ft2_4FGL_J2329.3-4955_daily_bin1469.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/972714/ft1_filteredMKT_4FGL_J2329.3-4955_daily_bin1469.fits evtable="EVENTS" outfile="/scratch/kocevski/972714/ft1_filtered_4FGL_J2329.3-4955_daily_bin1469.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.57
user 0.31
sys 0.19

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/972714/ft1_filtered_4FGL_J2329.3-4955_daily_bin1469.fits" evtable="EVENTS" scfile=/scratch/kocevski/972714/ft2_4FGL_J2329.3-4955_daily_bin1469.fits sctable="SC_DATA" outfile=/scratch/kocevski/972714/ltcube_620092801_620352001_4FGL_J2329.3-4955_daily_bin1469.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/972714/ft2_4FGL_J2329.3-4955_daily_bin1469.fits
.....................!
real 12.43
user 12.01
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/972714/ft1_filtered_4FGL_J2329.3-4955_daily_bin1469.fits evtable="EVENTS" scfile=/scratch/kocevski/972714/ft2_4FGL_J2329.3-4955_daily_bin1469.fits sctable="SC_DATA" expcube=/scratch/kocevski/972714/ltcube_620092801_620352001_4FGL_J2329.3-4955_daily_bin1469.fits outfile=/scratch/kocevski/972714/expmap_620092801_620352001_4FGL_J2329.3-4955_daily_bin1469.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/972714/ltcube_620092801_620352001_4FGL_J2329.3-4955_daily_bin1469.fits
.....................!
real 191.75
user 185.90
sys 5.49

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/972714/ft1_filtered_4FGL_J2329.3-4955_daily_bin1469.fits scfile=/scratch/kocevski/972714/ft2_4FGL_J2329.3-4955_daily_bin1469.fits outfile=/scratch/kocevski/972714/cmap_620092801_620352001_4FGL_J2329.3-4955_daily_bin1469.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=352.329 yref=-49.9324 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.55
user 0.37
sys 0.15

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

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

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/972714/ft1_filtered_4FGL_J2329.3-4955_daily_bin1469.fits evtable="EVENTS" scfile=/scratch/kocevski/972714/ft2_4FGL_J2329.3-4955_daily_bin1469.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/972714/Model_4FGL_J2329.3-4955_daily_bin1469.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/972714/ft1_filtered_4FGL_J2329.3-4955_daily_bin1469.fits.....................!
real 41.63
user 39.88
sys 1.30

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10070E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10752E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.1043       1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.9683       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .11753E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    4.4562       1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.6857       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    17.743       1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.5477       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .13408       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    19.484       1.0000         .10000E-03   10000.    
    18 'norm      '    4.3648       1.0000         .10000E-03   10000.    
    19 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    10.706       1.0000         .10000E-03   10000.    
    21 'Prefactor '    12.661       1.0000         .10000E-03   10000.    
    22 'norm      '    .10259E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10140E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    3.3405       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    .10037E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    4.4956       1.0000         .10000E-03   10000.    
    32 'Normalizat'    .66412       1.0000         .10000E-01   10.000    
    33 'Prefactor '    1.1385       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=   5719.343     FROM MIGRAD    STATUS=CONVERGED    962 CALLS     4665 TOTAL
                     EDM=   .97E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    31.097        .30450E-06** at limit **
   2  Prefactor     .10000E-03    32.180       -.30303E-06** at limit **
   3  Prefactor     .10000E-03    18.791        .43601E-07** at limit **
   4  Prefactor     7.1044        6.6508       -.69455E-07   -.35256E-04
   5  Prefactor     2.9688        6.0917       -.48792E-06   -.29054E-03
   6  Prefactor     .10000E-03    2.0244        .18700E-07** at limit **
   7  norm          .10000E-03    51.801        .42501E-06** at limit **
   8  norm          4.4563        7.0922        .36421E-05   -.68916E-03
   9  Prefactor     4.6853        3.4662        .31541E-07   -.30076E-04
  10  Prefactor     .10000E-03    1.7696       -.10062E-06** at limit **
  11  Prefactor     17.706        23.969       -.51741E-05   -.40976E-03
  12  Prefactor     6.5528        11.123        .20478E-05    .18795E-03
  13  Prefactor     .10242E-03    55.878       -.43367E-06** at limit **
  14  Prefactor     .10000E-03    4.1668        .41503E-07** at limit **
  15  Prefactor     .10000E-03    14.104       -.53282E-06** at limit **
  16  Prefactor     .10000E-03    10.671        .10080E-05** at limit **
  17  norm          19.487        13.714       -.95831E-07   -.63820E-05
  18  norm          4.3636        6.0874       -.83568E-07   -.66123E-04
  19  norm          .10000E-03    1.7408       -.14115E-06** at limit **
  20  Prefactor     10.704        6.5244        .43280E-06   -.20564E-03
  21  Prefactor     12.737        28.729       -.57006E-06   -.21085E-04
  22  norm          .10000E-03    1.8762       -.97185E-06** at limit **
  23  Prefactor     .10000E-03    10.806       -.12073E-05** at limit **
  24  norm          .10000E-03    .52876       -.38732E-07** at limit **
  25  norm          3.3420        3.1848        .24534E-06    .22326E-03
  26  Prefactor     .10000E-03    7.4719        .78902E-07** at limit **
  27  Prefactor     .10000E-03    2.3739        .52733E-07** at limit **
  28  Prefactor     .10000E-03    13.864        .20974E-06** at limit **
  29  norm          .10000E-03    8.9565       -.14671E-07** at limit **
  30  Prefactor     .10001E-03    2.5097        .30706E-06** at limit **
  31  Prefactor     4.4961        3.7509       -.43473E-07   -.33099E-04
  32  Normalizat    .66413        .17382        .16705E-05   -.22866E-04
  33  Prefactor     1.1385        .18598       -.12647E-05    .13675E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.10436
  Prefactor  = 2.96876
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 4.45631
  Prefactor  = 4.68526
  Prefactor  = 0.0001
  Prefactor  = 17.7055
  Prefactor  = 6.55277
  Prefactor  = 0.00010242
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 19.4869
  norm       = 4.36361
  norm       = 0.0001
  Prefactor  = 10.7043
  Prefactor  = 12.7365
  norm       = 0.000100002
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 3.34198
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.00010001
  Prefactor  = 4.49613
  Normalizat = 0.664128
  Prefactor  = 1.1385
 **********
 **   18 **HESSE 
 **********

 FCN=   5719.343     FROM HESSE     STATUS=OK           701 CALLS     5366 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    31.119        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    32.513        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    18.827        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     7.1044        6.6498        .15050E-03   -1.5175    
   5  Prefactor     2.9688        6.1248        .23568E-03   -1.5363    
   6  Prefactor     .10000E-03    2.0278        .10508E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    52.388        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          4.4563        7.3850        .95375E-03   -1.5286    
   9  Prefactor     4.6853        3.4623        .11743E-03   -1.5275    
  10  Prefactor     .10000E-03    1.7783        .98183E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     17.706        25.434        .95082E-04   -1.4866    
  12  Prefactor     6.5528        11.322        .15683E-03   -1.5196    
  13  Prefactor     .10242E-03    54.418        .19189       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    4.2384        .15073E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    14.120        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    10.808        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          19.487        13.712        .90738E-04   -1.4825    
  18  norm          4.3636        6.0001        .19279E-03   -1.5290    
  19  norm          .10000E-03    1.7519        .97298E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     10.704        6.5086        .61225E-03   -1.5054    
  21  Prefactor     12.737        27.364        .11257E-03   -1.4994    
  22  norm          .10000E-03    2.6882        .18516E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    10.964        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    1.9202        .10431E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          3.3420        3.1726        .12379E-03   -1.5342    
  26  Prefactor     .10000E-03    7.4985        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    2.4419        .22657E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    13.914        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          .10000E-03    8.9643        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10001E-03    13.319        .22470E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     4.4961        3.7560        .12640E-03   -1.5284    
  32  Normalizat    .66413        .20233        .24819E-03   -1.0533    
  33  Prefactor     1.1385        .22027        .21768E-03   -.88245    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.20957e-09
Minuit parameter uncertainties:
  1  4.19754e-05
  2  9.47306e-05
  3  3.00546e-06
  4  6.65049
  5  6.12612
  6  5.83561e-07
  7  5.76245e-05
  8  7.38648
  9  3.46247
  10  7.54987e-06
  11  25.4492
  12  11.3259
  13  0.0229712
  14  3.4568e-06
  15  5.14993e-05
  16  9.78561e-05
  17  13.7143
  18  6.00089
  19  8.56455e-06
  20  6.50908
  21  27.3912
  22  0.00014152
  23  0.000139276
  24  6.90261e-06
  25  3.17279
  26  1.09301e-05
  27  1.13834e-05
  28  1.89702e-06
  29  5.19398e-06
  30  0.000718706
  31  3.7562
  32  0.202561
  33  0.22045
Done.

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

Extracting fit parameters...

4FGL J2329.3-4955
   Spectrum: LogParabola
476         norm:  1.000e-04  6.903e-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:  1.139e+00  2.204e-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:  6.641e-01  2.026e-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: 4.86e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.85e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/972714/likelihoodResults_620092801_620352001_4FGL_J2329.3-4955_daily_bin1469.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): 102
logL (Free Index) = 5719.34548564
delta logL = -0.00257922093169

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5719.3429106
delta logL = -4.177180017e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .12461E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1245       1.0000          .0000       5.0000    
     3 'Normalizat'    .66393       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1388       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=   5719.343     FROM MIGRAD    STATUS=CONVERGED    107 CALLS      260 TOTAL
                     EDM=   .94E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    405.81        .10650E-02** at limit **
   2  alpha         1.8921        2.8722        .16702        .12620E-06
   3  Normalizat    .66413        .54531E-01    .24819E-03   -.63676E-03
   4  Prefactor     1.1385        .61683E-01    .21768E-03   -.71064E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.89215
  Normalizat = 0.664129
  Prefactor  = 1.1385
 **********
 **   18 **HESSE 
 **********

 FCN=   5719.343     FROM HESSE     STATUS=OK            25 CALLS      285 TOTAL
                     EDM=   .49E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.0711        .42600E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.8921        3.1207        .66806E-02   -.24560    
   3  Normalizat    .66413        .19106        .49638E-04   -1.0533    
   4  Prefactor     1.1385        .21554        .43537E-04   -.88245    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.88989e-10
Minuit parameter uncertainties:
  1  4.63471e-06
  2  62.3699
  3  0.191246
  4  0.21571
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/972714': 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) = 5719.34289703
delta logL = 9.3972794275e-06

Extracting fit parameters...

4FGL J2329.3-4955
   Spectrum: LogParabola
476         norm:  1.000e-04  4.635e-06  1.000e-04  1.000e+04 ( 1.000e-11)
477        alpha:  1.892e+00  6.237e+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.139e+00  2.157e-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:  6.641e-01  1.912e-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/972714/cmap_HighResolution_620092801_620352001_4FGL_J2329.3-4955_daily_bin1469.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.85e-05', job_status='DONE', photon_flux_upper_limit='4.86e-08', time_completed='2021-09-29 21:51:20.609614', job_id='972714', GAL2='1.14', fit_tolerance='1e-08', EG2='0.66', EG='0.66', time_epoch_completed='1632977480.61', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.14', dlogl='9.40e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.18' WHERE bin_id='1469' AND source_name='4FGL J2329.3-4955' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 21:51:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0218>
Subject: Job 972714: <4FGL_J2329.3-4955_daily_bin1469> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2329.3-4955_daily_bin1469 352.329 -49.9324 620092801 620352001 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 :                                   894.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             286.72 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   957 sec.
    Turnaround time :                            959 sec.

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

