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


Performing analysis on: 4FGL_J2329.3-4733_daily_bin1152
RA = 352.339, Dec = -47.5558
tmin = 537926401, tmax = 538185601
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='950505', job_status='RUN', time_executed='2021-09-29 21:03:18.896912', time_epoch_executed='1632974598.9' WHERE source_name='4FGL J2329.3-4733' and cadence='daily' and bin_id='1152'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/950505

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/950505/ft1_4FGL_J2329.3-4733_daily_bin1152.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/950505/ft2_4FGL_J2329.3-4733_daily_bin1152.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/950505/ft1_4FGL_J2329.3-4733_daily_bin1152.fits outfile=/scratch/kocevski/950505/ft1_filteredMKT_4FGL_J2329.3-4733_daily_bin1152.fits ra=352.339 dec=-47.5558 rad=12.0 tmin=537926401.0 tmax=538185601.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.49
user 6.23
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/950505/ft2_4FGL_J2329.3-4733_daily_bin1152.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/950505/ft1_filteredMKT_4FGL_J2329.3-4733_daily_bin1152.fits evtable="EVENTS" outfile="/scratch/kocevski/950505/ft1_filtered_4FGL_J2329.3-4733_daily_bin1152.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.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/950505/ft1_filtered_4FGL_J2329.3-4733_daily_bin1152.fits" evtable="EVENTS" scfile=/scratch/kocevski/950505/ft2_4FGL_J2329.3-4733_daily_bin1152.fits sctable="SC_DATA" outfile=/scratch/kocevski/950505/ltcube_537926401_538185601_4FGL_J2329.3-4733_daily_bin1152.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/950505/ft2_4FGL_J2329.3-4733_daily_bin1152.fits
.....................!
real 11.85
user 11.49
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/950505/ft1_filtered_4FGL_J2329.3-4733_daily_bin1152.fits evtable="EVENTS" scfile=/scratch/kocevski/950505/ft2_4FGL_J2329.3-4733_daily_bin1152.fits sctable="SC_DATA" expcube=/scratch/kocevski/950505/ltcube_537926401_538185601_4FGL_J2329.3-4733_daily_bin1152.fits outfile=/scratch/kocevski/950505/expmap_537926401_538185601_4FGL_J2329.3-4733_daily_bin1152.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/950505/ltcube_537926401_538185601_4FGL_J2329.3-4733_daily_bin1152.fits
.....................!
real 192.61
user 187.60
sys 4.51

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/950505/ft1_filtered_4FGL_J2329.3-4733_daily_bin1152.fits scfile=/scratch/kocevski/950505/ft2_4FGL_J2329.3-4733_daily_bin1152.fits outfile=/scratch/kocevski/950505/cmap_537926401_538185601_4FGL_J2329.3-4733_daily_bin1152.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/950505/ft1_filtered_4FGL_J2329.3-4733_daily_bin1152.fits scfile=/scratch/kocevski/950505/ft2_4FGL_J2329.3-4733_daily_bin1152.fits outfile=/scratch/kocevski/950505/cmap_HighResolution_537926401_538185601_4FGL_J2329.3-4733_daily_bin1152.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.58
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/950505/ft1_filtered_4FGL_J2329.3-4733_daily_bin1152.fits evtable="EVENTS" scfile=/scratch/kocevski/950505/ft2_4FGL_J2329.3-4733_daily_bin1152.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/950505/Model_4FGL_J2329.3-4733_daily_bin1152.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/950505/ft1_filtered_4FGL_J2329.3-4733_daily_bin1152.fits.....................!
real 39.92
user 38.60
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/950505/ft1_filtered_4FGL_J2329.3-4733_daily_bin1152.fits', '/scratch/kocevski/950505/ft2_4FGL_J2329.3-4733_daily_bin1152.fits', expMap='/scratch/kocevski/950505/expmap_537926401_538185601_4FGL_J2329.3-4733_daily_bin1152.fits', expCube='/scratch/kocevski/950505/ltcube_537926401_538185601_4FGL_J2329.3-4733_daily_bin1152.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/950505/Model_4FGL_J2329.3-4733_daily_bin1152.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/950505/ft1_filtered_4FGL_J2329.3-4733_daily_bin1152.fits
Spacecraft file(s): /scratch/kocevski/950505/ft2_4FGL_J2329.3-4733_daily_bin1152.fits
Exposure map: /scratch/kocevski/950505/expmap_537926401_538185601_4FGL_J2329.3-4733_daily_bin1152.fits
Exposure cube: /scratch/kocevski/950505/ltcube_537926401_538185601_4FGL_J2329.3-4733_daily_bin1152.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/950505/Model_4FGL_J2329.3-4733_daily_bin1152.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) = 5203.26399851

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    7.5259       1.0000         .10000E-03   10000.    
     3 'Prefactor '    53.942       1.0000         .10000E-03   10000.    
     4 'Prefactor '    33.740       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    9.3651       1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    7.4464       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    8.4076       1.0000         .10000E-03   10000.    
    15 'Prefactor '    22.572       1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.7381       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.2987       1.0000         .10000E-03   10000.    
    19 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .26561E-01   1.0000         .10000E-03   10000.    
    21 'norm      '    5.1121       1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    8.0597       1.0000         .10000E-03   10000.    
    25 'norm      '    .10040E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    37.880       1.0000         .10000E-03   10000.    
    27 'norm      '    .39383E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .10027E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    15.763       1.0000         .10000E-03   10000.    
    32 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    33 'Prefactor '    .17721E-03   1.0000         .10000E-03   10000.    
    34 'Prefactor '    4.9807       1.0000         .10000E-03   10000.    
    35 'Normalizat'    .67146       1.0000         .10000E-01   10.000    
    36 'Prefactor '    1.0604       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=   5203.256     FROM MIGRAD    STATUS=CONVERGED   1009 CALLS     5322 TOTAL
                     EDM=   .30E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    37.787        .20499E-06** at limit **
   2  Prefactor     7.5263        10.122       -.14230E-07    .22734E-05
   3  Prefactor     53.935        36.303       -.30200E-07    .71440E-04
   4  Prefactor     33.742        14.698       -.10159E-06   -.65868E-05
   5  Prefactor     .10000E-03    3.0059        .15535E-06** at limit **
   6  Prefactor     .10000E-03    10.246        .25317E-06** at limit **
   7  Prefactor     .10000E-03    5.8243       -.16286E-06** at limit **
   8  Prefactor     9.3662        6.7335        .62378E-07    .15732E-04
   9  norm          .10000E-03    4.1919       -.29270E-07** at limit **
  10  Prefactor     7.4464        4.2694       -.45728E-08    .36158E-05
  11  Prefactor     .10000E-03    15.483       -.74947E-06** at limit **
  12  Prefactor     .10000E-03    3.5960       -.74838E-07** at limit **
  13  Prefactor     .10000E-03    72.186       -.50797E-06** at limit **
  14  Prefactor     8.4071        12.038       -.47419E-06    .48636E-05
  15  Prefactor     22.556        54.257        .24102E-05    .72649E-04
  16  Prefactor     1.7377        5.0777        .18389E-06    .15870E-04
  17  Prefactor     .10000E-03    11.658        .16427E-06** at limit **
  18  Prefactor     1.2977        20.009        .77711E-05    .73884E-04
  19  norm          .10000E-03    5.7055        .40457E-06** at limit **
  20  norm          .52816E-01    5.1840        .15011E-05   -.21973E-03
  21  norm          5.1121        4.1640        .68004E-07    .20420E-03
  22  norm          .10000E-03    4.4997       -.10812E-06** at limit **
  23  Prefactor     .10000E-03    3.7306        .38473E-06** at limit **
  24  Prefactor     8.0956        31.744        .24441E-05    .89979E-04
  25  norm          .10000E-03    3.0512       -.22763E-05** at limit **
  26  Prefactor     37.874        17.169       -.31737E-06   -.16986E-04
  27  norm          .10000E-03    .58895       -.16015E-06** at limit **
  28  norm          .10000E-03    3.7746       -.12454E-05** at limit **
  29  Prefactor     .10000E-03    3.3114        .10340E-06** at limit **
  30  Prefactor     .10000E-03    1.1909        .17202E-07** at limit **
  31  Prefactor     15.769        20.422       -.74750E-06   -.50309E-04
  32  norm          .10000E-03    9.8009       -.11719E-06** at limit **
  33  Prefactor     .10001E-03    3.7031       -.19498E-05** at limit **
  34  Prefactor     4.9816        4.5221        .74662E-07    .66135E-04
  35  Normalizat    .67131        .18727       -.30824E-06    .10669E-03
  36  Prefactor     1.0605        .18990       -.66989E-06    .25140E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 7.5263
  Prefactor  = 53.9345
  Prefactor  = 33.742
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.36621
  norm       = 0.0001
  Prefactor  = 7.44642
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.40705
  Prefactor  = 22.5561
  Prefactor  = 1.7377
  Prefactor  = 0.0001
  Prefactor  = 1.29771
  norm       = 0.0001
  norm       = 0.0528161
  norm       = 5.11212
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.09563
  norm       = 0.0001
  Prefactor  = 37.874
  norm       = 0.000100002
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.7685
  norm       = 0.0001
  Prefactor  = 0.000100012
  Prefactor  = 4.98158
  Normalizat = 0.671306
  Prefactor  = 1.06055
 **********
 **   18 **HESSE 
 **********

 FCN=   5203.256     FROM HESSE     STATUS=OK           819 CALLS     6141 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    37.854        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     7.5263        10.113        .14619E-03   -1.5159    
   3  Prefactor     53.935        36.063        .54612E-04   -1.4238    
   4  Prefactor     33.742        14.680        .68987E-04   -1.4546    
   5  Prefactor     .10000E-03    3.0178        .12212E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    10.256        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    5.9279        .16999E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     9.3662        6.7464        .13096E-03   -1.5096    
   9  norm          .10000E-03    4.1941        .14424E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     7.4464        4.2673        .10883E-03   -1.5162    
  11  Prefactor     .10000E-03    15.508        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    3.6368        .13353E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    73.147        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     8.4071        11.985        .13826E-03   -1.5128    
  15  Prefactor     22.556        54.404        .84309E-04   -1.4758    
  16  Prefactor     1.7377        5.0398        .26818E-03   -1.5444    
  17  Prefactor     .10000E-03    11.661        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     1.2977        21.884        .19395E-02   -1.5480    
  19  norm          .10000E-03    5.7226        .16837E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .52816E-01    4.2651        .51875E-01   -1.5662    
  21  norm          5.1121        4.1651        .12896E-03   -1.5256    
  22  norm          .10000E-03    4.5413        .14942E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    3.7443        .13576E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     8.0956        32.555        .14123E-03   -1.5139    
  25  norm          .10000E-03    3.0879        .12241E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     37.874        16.890        .65120E-04   -1.4476    
  27  norm          .10000E-03    11.602        .98947E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .10000E-03    3.8337        .27219E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    3.3139        .12820E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    1.1959        .76663E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     15.769        20.291        .10088E-03   -1.4914    
  32  norm          .10000E-03    9.8184        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Prefactor     .10001E-03    17.526        .21721E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  34  Prefactor     4.9816        4.5234        .13570E-03   -1.5262    
  35  Normalizat    .67131        .21317        .25098E-03   -1.0504    
  36  Prefactor     1.0605        .21743        .11347E-02   -.90738    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.36799e-09
Minuit parameter uncertainties:
  1  2.81392e-05
  2  10.1155
  3  36.0779
  4  14.6818
  5  4.43601e-06
  6  2.71384e-05
  7  2.63788e-05
  8  6.74697
  9  1.83856e-06
  10  4.26745
  11  0.00011541
  12  1.12381e-05
  13  0.000196012
  14  11.9882
  15  54.5241
  16  5.04104
  17  1.7518e-05
  18  10.6623
  19  3.83264e-05
  20  0.94841
  21  4.16532
  22  1.29368e-06
  23  1.09962e-05
  24  32.4995
  25  6.32818e-06
  26  16.8923
  27  0.000336058
  28  2.35991e-05
  29  5.39365e-06
  30  5.45204e-06
  31  20.2996
  32  9.39638e-06
  33  0.000924673
  34  4.52375
  35  0.213435
  36  0.217611
Done.

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

Extracting fit parameters...

4FGL J2329.3-4733
   Spectrum: PowerLaw
460    Prefactor:  3.787e+01  1.689e+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:  1.061e+00  2.176e-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:  6.713e-01  2.134e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 9.56
Ra Dec: 352.339 -47.556
Photon Index (Fixed Index): 2.51 +/- 0.00
Photon Flux (Fixed Index): 9.74e-08 +/- 4.34e-08
Energy Flux (Fixed Index): 2.80e-05 +/- 1.25e-05

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5201.40637804
delta logL = 1.8493133409

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5201.3643867
delta logL = 1.89130468591

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.0225       1.0000         .10000E-03   10000.    
     2 'Index     '    3.7248       1.0000          .0000       10.000    
     3 'Normalizat'    .58725       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1295       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=   5201.364     FROM MIGRAD    STATUS=CONVERGED     80 CALLS      279 TOTAL
                     EDM=   .44E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.0200        29.872        .61112E-04   -.15690E-02
   2  Index         3.7250        2.2159        .25386E-02   -.46373E-03
   3  Normalizat    .58720        .20788        .26670E-03   -.80097E-03
   4  Prefactor     1.1295        .22891        .22070E-03   -.11680E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.01998
  Index      = 3.72503
  Normalizat = 0.587202
  Prefactor  = 1.12952
 **********
 **   18 **HESSE 
 **********

 FCN=   5201.364     FROM HESSE     STATUS=OK            23 CALLS      302 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.0200        9.2175        .24445E-05   -1.5217    
   2  Index         3.7250        .78668        .10155E-03   -.25784    
   3  Normalizat    .58720        .19781        .53340E-04   -1.0853    
   4  Prefactor     1.1295        .21753        .44140E-04   -.88529    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.97324e-09
Minuit parameter uncertainties:
  1  9.2197
  2  0.79019
  3  0.198047
  4  0.217701
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/950505': 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) = 5201.36438663
delta logL = 1.89130475616

Extracting fit parameters...

4FGL J2329.3-4733
   Spectrum: PowerLaw
460    Prefactor:  6.020e+00  9.220e+00  1.000e-04  1.000e+04 ( 1.000e-13)
461        Index:  3.725e+00  7.902e-01  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:  1.130e+00  2.177e-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:  5.872e-01  1.980e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 13.87
Ra Dec: 352.339 -47.556
Photon Index (Free Index): 3.73 +/- 0.79
Photon Flux (Free Index): 1.55e-07 +/- 5.95e-08
Energy Flux (Free Index): 2.44e-05 +/- 9.20e-06

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/950505/cmap_HighResolution_537926401_538185601_4FGL_J2329.3-4733_daily_bin1152.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.74e-08', energy_flux2='2.44e-05', photon_flux_error='4.34e-08', dlogl='1.89e+00', energy_flux='2.80e-05', photon_flux2='1.55e-07', job_status='DONE', time_completed='2021-09-29 21:17:11.950965', photon_index_error2='0.79', photon_index2='3.73', ts='9.56', fit_tolerance='1e-08', GAL='1.06', photon_index_error='0.00', energy_flux_error2='9.20e-06', EG='0.67', time_epoch_completed='1632975431.95', return_code='0', job_id='950505', GAL2='1.13', EG2='0.59', return_code2='0', energy_flux_error='1.25e-05', photon_flux_error2='5.95e-08', ts2='13.87', photon_index='2.51' WHERE bin_id='1152' AND source_name='4FGL J2329.3-4733' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 21:17:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0203>
Subject: Job 950505: <4FGL_J2329.3-4733_daily_bin1152> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2329.3-4733_daily_bin1152 352.339 -47.5558 537926401 538185601 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 :                                   810.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             274.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   980 sec.
    Turnaround time :                            981 sec.

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

