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


Performing analysis on: 4FGL_J2329.3-4733_daily_bin1165
RA = 352.339, Dec = -47.5558
tmin = 541296001, tmax = 541555201
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='950526', job_status='RUN', time_executed='2021-09-29 21:01:06.563795', time_epoch_executed='1632974466.56' WHERE source_name='4FGL J2329.3-4733' and cadence='daily' and bin_id='1165'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/950526

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/950526/ft1_4FGL_J2329.3-4733_daily_bin1165.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/950526/ft2_4FGL_J2329.3-4733_daily_bin1165.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/950526/ft1_4FGL_J2329.3-4733_daily_bin1165.fits outfile=/scratch/kocevski/950526/ft1_filteredMKT_4FGL_J2329.3-4733_daily_bin1165.fits ra=352.339 dec=-47.5558 rad=12.0 tmin=541296001.0 tmax=541555201.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.71
user 3.50
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/950526/ft2_4FGL_J2329.3-4733_daily_bin1165.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/950526/ft2_4FGL_J2329.3-4733_daily_bin1165.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/950526/ft1_filteredMKT_4FGL_J2329.3-4733_daily_bin1165.fits evtable="EVENTS" outfile="/scratch/kocevski/950526/ft1_filtered_4FGL_J2329.3-4733_daily_bin1165.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/950526/ft1_filtered_4FGL_J2329.3-4733_daily_bin1165.fits" evtable="EVENTS" scfile=/scratch/kocevski/950526/ft2_4FGL_J2329.3-4733_daily_bin1165.fits sctable="SC_DATA" outfile=/scratch/kocevski/950526/ltcube_541296001_541555201_4FGL_J2329.3-4733_daily_bin1165.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/950526/ft2_4FGL_J2329.3-4733_daily_bin1165.fits
.....................!
real 12.31
user 11.92
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/950526/ft1_filtered_4FGL_J2329.3-4733_daily_bin1165.fits evtable="EVENTS" scfile=/scratch/kocevski/950526/ft2_4FGL_J2329.3-4733_daily_bin1165.fits sctable="SC_DATA" expcube=/scratch/kocevski/950526/ltcube_541296001_541555201_4FGL_J2329.3-4733_daily_bin1165.fits outfile=/scratch/kocevski/950526/expmap_541296001_541555201_4FGL_J2329.3-4733_daily_bin1165.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/950526/ltcube_541296001_541555201_4FGL_J2329.3-4733_daily_bin1165.fits
.....................!
real 191.99
user 185.83
sys 5.85

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 181 point sources and 0 extended sources

Setting source of interest to:
4FGL J2329.3-4733 @ 352.339 -47.5558

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/950526/ft1_filtered_4FGL_J2329.3-4733_daily_bin1165.fits scfile=/scratch/kocevski/950526/ft2_4FGL_J2329.3-4733_daily_bin1165.fits outfile=/scratch/kocevski/950526/cmap_541296001_541555201_4FGL_J2329.3-4733_daily_bin1165.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.339 yref=-47.5558 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/950526/ft1_filtered_4FGL_J2329.3-4733_daily_bin1165.fits scfile=/scratch/kocevski/950526/ft2_4FGL_J2329.3-4733_daily_bin1165.fits outfile=/scratch/kocevski/950526/cmap_HighResolution_541296001_541555201_4FGL_J2329.3-4733_daily_bin1165.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.339 yref=-47.5558 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.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/950526/ft1_filtered_4FGL_J2329.3-4733_daily_bin1165.fits evtable="EVENTS" scfile=/scratch/kocevski/950526/ft2_4FGL_J2329.3-4733_daily_bin1165.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/950526/Model_4FGL_J2329.3-4733_daily_bin1165.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/950526/ft1_filtered_4FGL_J2329.3-4733_daily_bin1165.fits.....................!
real 37.14
user 35.83
sys 1.24

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/950526/ft1_filtered_4FGL_J2329.3-4733_daily_bin1165.fits', '/scratch/kocevski/950526/ft2_4FGL_J2329.3-4733_daily_bin1165.fits', expMap='/scratch/kocevski/950526/expmap_541296001_541555201_4FGL_J2329.3-4733_daily_bin1165.fits', expCube='/scratch/kocevski/950526/ltcube_541296001_541555201_4FGL_J2329.3-4733_daily_bin1165.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/950526/Model_4FGL_J2329.3-4733_daily_bin1165.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2329.3-4733'

4FGL J2329.3-4733
   Spectrum: PowerLaw
460    Prefactor:  3.273e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
461        Index:  2.507e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
462        Scale:  1.077e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/950526/ft1_filtered_4FGL_J2329.3-4733_daily_bin1165.fits
Spacecraft file(s): /scratch/kocevski/950526/ft2_4FGL_J2329.3-4733_daily_bin1165.fits
Exposure map: /scratch/kocevski/950526/expmap_541296001_541555201_4FGL_J2329.3-4733_daily_bin1165.fits
Exposure cube: /scratch/kocevski/950526/ltcube_541296001_541555201_4FGL_J2329.3-4733_daily_bin1165.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/950526/Model_4FGL_J2329.3-4733_daily_bin1165.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) = 4546.53311179

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    35.544       1.0000         .10000E-03   10000.    
     2 'Prefactor '    17.946       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    13.295       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .19365       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.2501       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .19399       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.3559       1.0000         .10000E-03   10000.    
    15 'Prefactor '    102.26       1.0000         .10000E-03   10000.    
    16 'Prefactor '    7.0783       1.0000         .10000E-03   10000.    
    17 'Prefactor '    11.000       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    12.284       1.0000         .10000E-03   10000.    
    23 'Prefactor '    2.1684       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    29.863       1.0000         .10000E-03   10000.    
    27 'norm      '    2.8502       1.0000         .10000E-03   10000.    
    28 'norm      '    13.466       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .11770E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    21.955       1.0000         .10000E-03   10000.    
    32 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    33 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    34 'Prefactor '    7.2961       1.0000         .10000E-03   10000.    
    35 'Normalizat'    1.0912       1.0000         .10000E-01   10.000    
    36 'Prefactor '    .96699       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5760E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4546.527     FROM MIGRAD    STATUS=CONVERGED   1004 CALLS     5368 TOTAL
                     EDM=   .35E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     35.541        56.079       -.24141E-06   -.94258E-05
   2  Prefactor     17.950        32.416       -.30471E-06   -.81265E-04
   3  Prefactor     .10000E-03    63.696        .68814E-06** at limit **
   4  Prefactor     13.291        13.484       -.67096E-07   -.35790E-04
   5  Prefactor     .16925        54.912       -.15228E-04    .21673E-04
   6  Prefactor     .10000E-03    12.596       -.10018E-06** at limit **
   7  Prefactor     .10000E-03    5.3889       -.56295E-07** at limit **
   8  Prefactor     .10000E-03    3.6263        .27513E-07** at limit **
   9  norm          .10000E-03    8.5394       -.16223E-06** at limit **
  10  Prefactor     6.2508        5.3096        .40301E-07   -.36857E-04
  11  Prefactor     .10000E-03    15.847       -.20482E-06** at limit **
  12  Prefactor     .16687        5.3253       -.15245E-05    .81981E-04
  13  Prefactor     .10000E-03    14.955        .14201E-06** at limit **
  14  Prefactor     6.3565        10.931        .16035E-06   -.61856E-05
  15  Prefactor     102.18        118.71       -.33347E-05   -.86983E-04
  16  Prefactor     7.0770        6.7174        .39978E-07   -.52326E-05
  17  Prefactor     10.987        39.204       -.27645E-06   -.23057E-04
  18  Prefactor     .10000E-03    5.1776        .10232E-06** at limit **
  19  norm          .10000E-03    4.7397        .44200E-07** at limit **
  20  norm          .10000E-03    5.3450       -.12687E-06** at limit **
  21  norm          .10000E-03    3.6465       -.22168E-07** at limit **
  22  norm          12.274        20.252        .75297E-07    .81209E-05
  23  Prefactor     2.1728        10.914       -.22942E-05   -.45117E-04
  24  Prefactor     .10000E-03    76.749        .14055E-05** at limit **
  25  norm          .10000E-03    4.3936       -.85619E-07** at limit **
  26  Prefactor     29.838        30.298        .86774E-06   -.19832E-03
  27  norm          2.8508        1.7277       -.30627E-07   -.68843E-03
  28  norm          13.463        7.8465       -.18923E-07   -.68898E-04
  29  Prefactor     .10000E-03    4.3133        .11669E-06** at limit **
  30  Prefactor     .10000E-03    4.3965        .15442E-05** at limit **
  31  Prefactor     22.026        31.775       -.21067E-05   -.26467E-03
  32  norm          .10000E-03    8.3348        .16744E-06** at limit **
  33  Prefactor     .10000E-03    1.9759        .11571E-06** at limit **
  34  Prefactor     7.2952        6.2685       -.28799E-07   -.15774E-03
  35  Normalizat    1.0912        .22981        .46771E-07   -.26063E-03
  36  Prefactor     .96731        .23844        .28807E-06   -.28637E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 35.5407
  Prefactor  = 17.95
  Prefactor  = 0.0001
  Prefactor  = 13.2914
  Prefactor  = 0.169252
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 6.25083
  Prefactor  = 0.0001
  Prefactor  = 0.166873
  Prefactor  = 0.0001
  Prefactor  = 6.35649
  Prefactor  = 102.175
  Prefactor  = 7.077
  Prefactor  = 10.9868
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 12.2736
  Prefactor  = 2.17276
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 29.8384
  norm       = 2.85084
  norm       = 13.4626
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 22.0262
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.29516
  Normalizat = 1.09119
  Prefactor  = 0.967305
 **********
 **   18 **HESSE 
 **********

 FCN=   4546.527     FROM HESSE     STATUS=OK           807 CALLS     6175 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     35.541        56.102        .67220E-04   -1.4515    
   2  Prefactor     17.950        32.360        .94544E-04   -1.4860    
   3  Prefactor     .10000E-03    63.960        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     13.291        13.489        .10985E-03   -1.4979    
   5  Prefactor     .16925        54.224        .34331E-02   -1.5626    
   6  Prefactor     .10000E-03    12.602        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    5.4184        .15284E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    3.6335        .12540E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    8.5878        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     6.2508        5.3108        .13658E-03   -1.5208    
  11  Prefactor     .10000E-03    15.848        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .16687        70.801        .27396E-02   -1.5626    
  13  Prefactor     .10000E-03    14.982        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     6.3565        10.914        .15921E-03   -1.5204    
  15  Prefactor     102.18        119.21        .19880E-03   -1.3683    
  16  Prefactor     7.0770        6.7207        .75390E-03   -1.5176    
  17  Prefactor     10.987        39.225        .12080E-03   -1.5045    
  18  Prefactor     .10000E-03    5.1814        .14987E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    4.7413        .14338E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    5.3655        .15204E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    3.6598        .12574E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          12.274        20.276        .11429E-03   -1.5007    
  23  Prefactor     2.1728        11.113        .13983E-02   -1.5413    
  24  Prefactor     .10000E-03    77.137        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    4.4279        .13784E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     29.838        30.616        .73317E-04   -1.4615    
  27  norm          2.8508        1.7179        .63197E-04   -1.5370    
  28  norm          13.463        7.8455        .10915E-03   -1.4974    
  29  Prefactor     .10000E-03    4.3159        .13677E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    4.5084        .27313E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     22.026        32.656        .85485E-04   -1.4769    
  32  norm          .10000E-03    8.3362        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Prefactor     .10000E-03    1.9848        .92537E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  34  Prefactor     7.2952        6.2679        .14167E-03   -1.5168    
  35  Normalizat    1.0912        .27806        .24959E-03   -.90035    
  36  Prefactor     .96731        .28644        .28233E-03   -.93827    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.23506e-09
Minuit parameter uncertainties:
  1  56.185
  2  32.3917
  3  1.92459e-05
  4  13.4924
  5  6.06266
  6  9.12443e-06
  7  6.35282e-08
  8  3.62606e-06
  9  1.00692e-05
  10  5.31122
  11  2.68082e-05
  12  6.88068
  13  7.44848e-05
  14  10.917
  15  119.49
  16  6.72142
  17  39.3174
  18  1.76911e-05
  19  6.92843e-06
  20  1.09701e-05
  21  3.30751e-06
  22  20.2876
  23  9.83035
  24  0.000431937
  25  8.25284e-06
  26  30.6323
  27  1.71798
  28  7.84606
  29  6.92488e-06
  30  8.54321e-05
  31  32.682
  32  1.03658e-05
  33  3.21128e-06
  34  6.26851
  35  0.278436
  36  0.286892
Done.

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

Extracting fit parameters...

4FGL J2329.3-4733
   Spectrum: PowerLaw
460    Prefactor:  2.984e+01  3.063e+01  1.000e-04  1.000e+04 ( 1.000e-13)
461        Index:  2.507e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
462        Scale:  1.077e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
573    Prefactor:  9.673e-01  2.869e-01  0.000e+00  1.000e+01 ( 1.000e+00)
574        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
575        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
572   Normalization:  1.091e+00  2.784e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.82
Ra Dec: 352.339 -47.556
Photon Index (Fixed Index): 2.51 +/- 0.00
Photon Flux (Fixed Index): 7.67e-08 +/- 7.87e-08
Energy Flux (Fixed Index): 2.21e-05 +/- 2.27e-05

TS (Fixed Index): 2.82
Ra Dec: 352.339 -47.556
Photon Flux Upper Limit: 1.92e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.50e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/950526/likelihoodResults_541296001_541555201_4FGL_J2329.3-4733_daily_bin1165.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) = 4546.48002163
delta logL = 0.0468655139002

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4546.47463924
delta logL = 0.0522479048223

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    21.183       1.0000         .10000E-03   10000.    
     2 'Index     '    2.8378       1.0000          .0000       10.000    
     3 'Normalizat'    1.0608       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99098       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5760E+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=   4546.475     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      303 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     21.168        56.457        .87027E-04    .57511E-03
   2  Index         2.8389        1.8309        .53635E-02    .22400E-03
   3  Normalizat    1.0597        .30988        .25262E-03   -.41853E-05
   4  Prefactor     .99200        .31419        .27926E-03   -.56535E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 21.1678
  Index      = 2.83891
  Normalizat = 1.05966
  Prefactor  = 0.992005
 **********
 **   18 **HESSE 
 **********

 FCN=   4546.475     FROM HESSE     STATUS=OK            25 CALLS      328 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     21.168        34.528        .17405E-04   -1.4787    
   2  Index         2.8389        1.1361        .21454E-03   -.44695    
   3  Normalizat    1.0597        .28594        .10105E-04   -.91058    
   4  Prefactor     .99200        .29646        .55851E-04   -.92997    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.01532e-09
Minuit parameter uncertainties:
  1  34.5608
  2  1.14849
  3  0.286358
  4  0.296948
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/950526': 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) = 4546.47463015
delta logL = 0.0522569995346

Extracting fit parameters...

4FGL J2329.3-4733
   Spectrum: PowerLaw
460    Prefactor:  2.117e+01  3.456e+01  1.000e-04  1.000e+04 ( 1.000e-13)
461        Index:  2.839e+00  1.148e+00  0.000e+00  1.000e+01 (-1.000e+00)
462        Scale:  1.077e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
573    Prefactor:  9.920e-01  2.969e-01  0.000e+00  1.000e+01 ( 1.000e+00)
574        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
575        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
572   Normalization:  1.060e+00  2.864e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.02
Ra Dec: 352.339 -47.556
Photon Index (Free Index): 2.84 +/- 1.15
Photon Flux (Free Index): 9.82e-08 +/- 9.05e-08
Energy Flux (Free Index): 2.14e-05 +/- 1.48e-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/950526/cmap_HighResolution_541296001_541555201_4FGL_J2329.3-4733_daily_bin1165.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.50e-02', comment='SUCCESS', photon_flux='7.67e-08', energy_flux2='2.14e-05', photon_flux_error='7.87e-08', dlogl='5.23e-02', energy_flux='2.21e-05', photon_flux2='9.82e-08', job_status='DONE', time_completed='2021-09-29 21:15:14.540221', photon_index_error2='1.15', photon_index2='2.84', ts='2.82', fit_tolerance='1e-08', GAL='0.97', photon_index_error='0.00', photon_flux_upper_limit='1.92e-07', energy_flux_error2='1.48e-05', EG='1.09', time_epoch_completed='1632975314.54', return_code='0', job_id='950526', GAL2='0.99', EG2='1.06', return_code2='0', energy_flux_error='2.27e-05', photon_flux_error2='9.05e-08', ts2='3.02', photon_index='2.51' WHERE bin_id='1165' AND source_name='4FGL J2329.3-4733' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 21:15:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0234>
Subject: Job 950526: <4FGL_J2329.3-4733_daily_bin1165> in cluster <slac> Done

Job <4FGL_J2329.3-4733_daily_bin1165> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Wed Sep 29 21:00:53 2021
Job was executed on host(s) <bullet0234>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 21:00:54 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:00:54 2021
Terminated at Wed Sep 29 21:15:15 2021
Results reported at Wed Sep 29 21:15:15 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2329.3-4733_daily_bin1165 352.339 -47.5558 541296001 541555201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2329.3-4733 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   839.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             332.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   861 sec.
    Turnaround time :                            862 sec.

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

