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


Performing analysis on: 4FGL_J2329.3-4955_daily_bin1110
RA = 352.329, Dec = -49.9324
tmin = 527040001, tmax = 527299201
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='968332', job_status='RUN', time_executed='2021-09-29 21:30:52.890284', time_epoch_executed='1632976252.89' WHERE source_name='4FGL J2329.3-4955' and cadence='daily' and bin_id='1110'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/968332

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/968332/ft1_4FGL_J2329.3-4955_daily_bin1110.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/968332/ft2_4FGL_J2329.3-4955_daily_bin1110.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/968332/ft1_4FGL_J2329.3-4955_daily_bin1110.fits outfile=/scratch/kocevski/968332/ft1_filteredMKT_4FGL_J2329.3-4955_daily_bin1110.fits ra=352.329 dec=-49.9324 rad=12.0 tmin=527040001.0 tmax=527299201.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 6.11
user 5.82
sys 0.25

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/968332/ft1_filtered_4FGL_J2329.3-4955_daily_bin1110.fits" evtable="EVENTS" scfile=/scratch/kocevski/968332/ft2_4FGL_J2329.3-4955_daily_bin1110.fits sctable="SC_DATA" outfile=/scratch/kocevski/968332/ltcube_527040001_527299201_4FGL_J2329.3-4955_daily_bin1110.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/968332/ft2_4FGL_J2329.3-4955_daily_bin1110.fits
.....................!
real 12.47
user 12.08
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/968332/ft1_filtered_4FGL_J2329.3-4955_daily_bin1110.fits evtable="EVENTS" scfile=/scratch/kocevski/968332/ft2_4FGL_J2329.3-4955_daily_bin1110.fits sctable="SC_DATA" expcube=/scratch/kocevski/968332/ltcube_527040001_527299201_4FGL_J2329.3-4955_daily_bin1110.fits outfile=/scratch/kocevski/968332/expmap_527040001_527299201_4FGL_J2329.3-4955_daily_bin1110.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/968332/ltcube_527040001_527299201_4FGL_J2329.3-4955_daily_bin1110.fits
.....................!
real 191.16
user 185.86
sys 4.65

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/968332/ft1_filtered_4FGL_J2329.3-4955_daily_bin1110.fits scfile=/scratch/kocevski/968332/ft2_4FGL_J2329.3-4955_daily_bin1110.fits outfile=/scratch/kocevski/968332/cmap_527040001_527299201_4FGL_J2329.3-4955_daily_bin1110.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.53
user 0.37
sys 0.15

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/968332/ft1_filtered_4FGL_J2329.3-4955_daily_bin1110.fits evtable="EVENTS" scfile=/scratch/kocevski/968332/ft2_4FGL_J2329.3-4955_daily_bin1110.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/968332/Model_4FGL_J2329.3-4955_daily_bin1110.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/968332/ft1_filtered_4FGL_J2329.3-4955_daily_bin1110.fits.....................!
real 26.06
user 24.73
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    137.31       1.0000         .10000E-03   10000.    
     2 'Prefactor '    26.741       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .12493E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    18.829       1.0000         .10000E-03   10000.    
     5 'Prefactor '    38.542       1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.3169       1.0000         .10000E-03   10000.    
     7 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    5.2507       1.0000         .10000E-03   10000.    
     9 'Prefactor '    8.2050       1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.2137       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.0941       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    11.554       1.0000         .10000E-03   10000.    
    18 'norm      '    11.453       1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10216E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .76234E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    1.7448       1.0000         .10000E-03   10000.    
    25 'norm      '    12.432       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    3.6041       1.0000         .10000E-03   10000.    
    28 'Prefactor '    47.557       1.0000         .10000E-03   10000.    
    29 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    5.4135       1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.3687       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .41138       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=   2313.940     FROM MIGRAD    STATUS=CONVERGED    875 CALLS     5379 TOTAL
                     EDM=   .70E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     137.28        196.24        .16651E-05    .91982E-06
   2  Prefactor     26.733        58.784       -.62967E-06   -.55547E-05
   3  Prefactor     .10000E-03    195.71        .99138E-05** at limit **
   4  Prefactor     18.829        18.999        .32996E-07   -.82817E-05
   5  Prefactor     38.519        26.442       -.23680E-06   -.35978E-04
   6  Prefactor     6.3118        21.406       -.14086E-06   -.78472E-05
   7  norm          .10000E-03    44.358        .25697E-05** at limit **
   8  norm          5.2507        6.4597        .23017E-07   -.40722E-06
   9  Prefactor     8.2049        8.0039        .20474E-07   -.33890E-05
  10  Prefactor     3.2134        7.1331        .12713E-06   -.10924E-05
  11  Prefactor     .10000E-03    12.428        .43256E-06** at limit **
  12  Prefactor     .10000E-03    4.8455       -.14879E-07** at limit **
  13  Prefactor     .10000E-03    47.104        .26825E-05** at limit **
  14  Prefactor     2.0943        6.4830        .17708E-05   -.12261E-04
  15  Prefactor     .10000E-03    33.891       -.83012E-06** at limit **
  16  Prefactor     .10000E-03    13.663       -.10306E-05** at limit **
  17  norm          11.538        26.421        .10732E-06    .94669E-05
  18  norm          11.448        12.290        .75558E-07    .19706E-04
  19  norm          .10000E-03    5.4445        .62490E-08** at limit **
  20  Prefactor     .10000E-03    28.186       -.20693E-05** at limit **
  21  Prefactor     .10000E-03    83.965       -.78571E-05** at limit **
  22  norm          .10000E-03    8.0633        .69349E-07** at limit **
  23  Prefactor     .10000E-03    42.736        .35672E-06** at limit **
  24  norm          1.7444        2.2204       -.44059E-07   -.11705E-04
  25  norm          12.435        13.571        .10124E-06    .23453E-04
  26  Prefactor     .10000E-03    12.467        .31615E-06** at limit **
  27  Prefactor     3.6029        6.0800       -.32018E-06   -.27413E-04
  28  Prefactor     47.530        65.905        .15928E-05   -.10995E-04
  29  norm          .10000E-03    20.791        .13729E-05** at limit **
  30  Prefactor     .10000E-03    9.6691       -.19235E-06** at limit **
  31  Prefactor     5.4100        14.867        .79511E-06   -.25007E-04
  32  Normalizat    1.3687        .33217       -.18250E-06   -.37347E-05
  33  Prefactor     .41138        .30823       -.58960E-06   -.36593E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 137.284
  Prefactor  = 26.733
  Prefactor  = 0.0001
  Prefactor  = 18.829
  Prefactor  = 38.5185
  Prefactor  = 6.3118
  norm       = 0.0001
  norm       = 5.25069
  Prefactor  = 8.20495
  Prefactor  = 3.21336
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.09431
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 11.5376
  norm       = 11.4482
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100005
  norm       = 1.74435
  norm       = 12.4354
  Prefactor  = 0.0001
  Prefactor  = 3.60287
  Prefactor  = 47.5301
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.40999
  Normalizat = 1.3687
  Prefactor  = 0.411378
 **********
 **   18 **HESSE 
 **********

 FCN=   2313.940     FROM HESSE     STATUS=OK           697 CALLS     6076 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     137.28        196.28        .17186E-03   -1.3359    
   2  Prefactor     26.733        58.504        .77470E-04   -1.4673    
   3  Prefactor     .10000E-03    196.12        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     18.829        19.020        .92302E-04   -1.4840    
   5  Prefactor     38.519        26.513        .64561E-04   -1.4466    
   6  Prefactor     6.3118        21.521        .15971E-03   -1.5205    
   7  norm          .10000E-03    44.396        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          5.2507        6.4574        .13221E-03   -1.5250    
   9  Prefactor     8.2049        8.0348        .12415E-03   -1.5135    
  10  Prefactor     3.2134        7.1050        .17990E-03   -1.5349    
  11  Prefactor     .10000E-03    12.432        .16566E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    4.8507        .10342E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    47.122        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     2.0943        6.4600        .10384E-02   -1.5419    
  15  Prefactor     .10000E-03    33.905        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    13.672        .17365E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          11.538        25.504        .11786E-03   -1.5028    
  18  norm          11.448        12.289        .11838E-03   -1.5031    
  19  norm          .10000E-03    5.4497        .10962E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    28.598        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    84.142        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    8.1192        .13328E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    213.41        .56154E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          1.7444        2.1794        .74482E-04   -1.5444    
  25  norm          12.435        13.558        .11361E-03   -1.5003    
  26  Prefactor     .10000E-03    12.483        .16592E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     3.6029        6.0625        .13883E-03   -1.5328    
  28  Prefactor     47.530        65.583        .58145E-04   -1.4328    
  29  norm          .10000E-03    20.798        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    9.7394        .14599E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     5.4100        14.878        .86355E-03   -1.5243    
  32  Normalizat    1.3687        .39416        .21636E-03   -.81538    
  33  Prefactor     .41138        .35430        .36065E-03   -1.1623    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.22561e-10
Minuit parameter uncertainties:
  1  197.226
  2  58.6295
  3  7.40437e-05
  4  19.0257
  5  26.5207
  6  21.5474
  7  2.25113e-05
  8  6.45828
  9  8.0359
  10  7.10686
  11  2.20716e-06
  12  2.47392e-07
  13  2.28725e-05
  14  6.46218
  15  4.18305e-06
  16  2.2142e-06
  17  25.5284
  18  12.2919
  19  6.4475e-07
  20  1.87163e-05
  21  6.93854e-05
  22  2.53626e-06
  23  0.00202455
  24  2.17948
  25  13.5612
  26  1.94929e-06
  27  6.06358
  28  65.683
  29  7.69461e-06
  30  2.09223e-06
  31  14.8886
  32  0.395033
  33  0.356202
Done.

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

Extracting fit parameters...

4FGL J2329.3-4955
   Spectrum: LogParabola
476         norm:  1.744e+00  2.179e+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:  4.114e-01  3.562e-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.369e+00  3.950e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.18
Ra Dec: 352.329 -49.932
Photon Index (Fixed Index): 2.18 +/- 0.00
Photon Flux (Fixed Index): 4.72e-08 +/- 5.90e-08
Energy Flux (Fixed Index): 1.80e-05 +/- 2.24e-05

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

Saving results to:
/scratch/kocevski/968332/likelihoodResults_527040001_527299201_4FGL_J2329.3-4955_daily_bin1110.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) = 2313.5248471
delta logL = 0.414689861514

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2313.51228701
delta logL = 0.427249946683

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.5053       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.3867       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3969       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .38881       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=   2313.512     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      202 TOTAL
                     EDM=   .28E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.5057        1.6738        .87207E-02    .58754E-04
   2  alpha         1.3863        .57569        .29704       -.17363E-04
   3  Normalizat    1.3968        .31363        .48516E-01    .88534E-05
   4  Prefactor     .38886        .30265        .83503E-01    .23863E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.50574
  alpha      = 1.38628
  Normalizat = 1.3968
  Prefactor  = 0.388861
 **********
 **   18 **HESSE 
 **********

 FCN=   2313.512     FROM HESSE     STATUS=OK            31 CALLS      233 TOTAL
                     EDM=   .18E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.5057        2.0004        .62411E-04   -1.5463    
   2  alpha         1.3863        .75266        .11976E-01   -.46172    
   3  Normalizat    1.3968        .35451        .21447E-03   -.80721    
   4  Prefactor     .38886        .34070        .36997E-03   -1.1738    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.80232e-12
Minuit parameter uncertainties:
  1  2.00051
  2  0.767623
  3  0.355139
  4  0.342487
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/968332': 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) = 2313.51228667
delta logL = 0.427250290051

Extracting fit parameters...

4FGL J2329.3-4955
   Spectrum: LogParabola
476         norm:  1.506e+00  2.001e+00  1.000e-04  1.000e+04 ( 1.000e-11)
477        alpha:  1.386e+00  7.676e-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:  3.889e-01  3.425e-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.397e+00  3.551e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.05
Ra Dec: 352.329 -49.932
Photon Index (Free Index): 1.39 +/- 0.77
Photon Flux (Free Index): 2.85e-08 +/- 3.77e-08
Energy Flux (Free Index): 4.60e-05 +/- 7.15e-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/968332/cmap_HighResolution_527040001_527299201_4FGL_J2329.3-4955_daily_bin1110.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.53e-05', comment='SUCCESS', photon_flux='4.72e-08', energy_flux2='4.60e-05', photon_flux_error='5.90e-08', dlogl='4.27e-01', energy_flux='1.80e-05', photon_flux2='2.85e-08', job_status='DONE', time_completed='2021-09-29 21:40:36.863364', photon_index_error2='0.77', photon_index2='1.39', ts='1.18', fit_tolerance='1e-08', GAL='0.41', photon_index_error='0.00', photon_flux_upper_limit='1.98e-07', energy_flux_error2='7.15e-05', EG='1.37', time_epoch_completed='1632976836.86', return_code='0', job_id='968332', GAL2='0.39', EG2='1.40', return_code2='0', energy_flux_error='2.24e-05', photon_flux_error2='3.77e-08', ts2='2.05', photon_index='2.18' WHERE bin_id='1110' AND source_name='4FGL J2329.3-4955' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 21:40:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0207>
Subject: Job 968332: <4FGL_J2329.3-4955_daily_bin1110> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2329.3-4955_daily_bin1110 352.329 -49.9324 527040001 527299201 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 :                                   579.47 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             308.05 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   613 sec.
    Turnaround time :                            614 sec.

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

