/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 219 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_bin917
RA = 352.329, Dec = -49.9324
tmin = 477014401, tmax = 477273601
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='964566', job_status='RUN', time_executed='2021-09-29 21:29:19.178382', time_epoch_executed='1632976159.18' WHERE source_name='4FGL J2329.3-4955' and cadence='daily' and bin_id='917'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/964566

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/964566/ft1_4FGL_J2329.3-4955_daily_bin917.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/964566/ft2_4FGL_J2329.3-4955_daily_bin917.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/964566/ft1_4FGL_J2329.3-4955_daily_bin917.fits outfile=/scratch/kocevski/964566/ft1_filteredMKT_4FGL_J2329.3-4955_daily_bin917.fits ra=352.329 dec=-49.9324 rad=12.0 tmin=477014401.0 tmax=477273601.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.61
user 3.39
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/964566/ft2_4FGL_J2329.3-4955_daily_bin917.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/964566/ft1_filteredMKT_4FGL_J2329.3-4955_daily_bin917.fits evtable="EVENTS" outfile="/scratch/kocevski/964566/ft1_filtered_4FGL_J2329.3-4955_daily_bin917.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.46
user 0.32
sys 0.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/964566/ft1_filtered_4FGL_J2329.3-4955_daily_bin917.fits" evtable="EVENTS" scfile=/scratch/kocevski/964566/ft2_4FGL_J2329.3-4955_daily_bin917.fits sctable="SC_DATA" outfile=/scratch/kocevski/964566/ltcube_477014401_477273601_4FGL_J2329.3-4955_daily_bin917.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/964566/ft2_4FGL_J2329.3-4955_daily_bin917.fits
.....................!
real 11.97
user 11.59
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/964566/ft1_filtered_4FGL_J2329.3-4955_daily_bin917.fits evtable="EVENTS" scfile=/scratch/kocevski/964566/ft2_4FGL_J2329.3-4955_daily_bin917.fits sctable="SC_DATA" expcube=/scratch/kocevski/964566/ltcube_477014401_477273601_4FGL_J2329.3-4955_daily_bin917.fits outfile=/scratch/kocevski/964566/expmap_477014401_477273601_4FGL_J2329.3-4955_daily_bin917.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/964566/ltcube_477014401_477273601_4FGL_J2329.3-4955_daily_bin917.fits
.....................!
real 192.09
user 187.21
sys 4.56

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/964566/ft1_filtered_4FGL_J2329.3-4955_daily_bin917.fits scfile=/scratch/kocevski/964566/ft2_4FGL_J2329.3-4955_daily_bin917.fits outfile=/scratch/kocevski/964566/cmap_477014401_477273601_4FGL_J2329.3-4955_daily_bin917.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/964566/ft1_filtered_4FGL_J2329.3-4955_daily_bin917.fits scfile=/scratch/kocevski/964566/ft2_4FGL_J2329.3-4955_daily_bin917.fits outfile=/scratch/kocevski/964566/cmap_HighResolution_477014401_477273601_4FGL_J2329.3-4955_daily_bin917.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.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/964566/ft1_filtered_4FGL_J2329.3-4955_daily_bin917.fits evtable="EVENTS" scfile=/scratch/kocevski/964566/ft2_4FGL_J2329.3-4955_daily_bin917.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/964566/Model_4FGL_J2329.3-4955_daily_bin917.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/964566/ft1_filtered_4FGL_J2329.3-4955_daily_bin917.fits.....................!
real 34.77
user 33.53
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    74.858       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.1402       1.0000         .10000E-03   10000.    
     5 'Prefactor '    12.468       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .51413       1.0000         .10000E-03   10000.    
     7 'norm      '    .10057E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.5072       1.0000         .10000E-03   10000.    
    11 'Prefactor '    48.850       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10341E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10060E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .93992       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.8745       1.0000         .10000E-03   10000.    
    17 'norm      '    7.3955       1.0000         .10000E-03   10000.    
    18 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10026E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.0733       1.0000         .10000E-03   10000.    
    21 'Prefactor '    2.8020       1.0000         .10000E-03   10000.    
    22 'norm      '    4.9410       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    2.3026       1.0000         .10000E-03   10000.    
    25 'norm      '    3.1182       1.0000         .10000E-03   10000.    
    26 'Prefactor '    10.006       1.0000         .10000E-03   10000.    
    27 'Prefactor '    8.3297       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    1.6676       1.0000         .10000E-03   10000.    
    32 'Normalizat'    .95150       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .98402       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=   4302.305     FROM MIGRAD    STATUS=CONVERGED    871 CALLS     4553 TOTAL
                     EDM=   .26E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     74.833        78.477        .14040E-05    .13603E-04
   2  Prefactor     .10000E-03    14.659        .66095E-06** at limit **
   3  Prefactor     .10000E-03    27.933        .11930E-05** at limit **
   4  Prefactor     6.1398        10.036        .33295E-07    .47319E-05
   5  Prefactor     12.470        10.322        .15301E-06    .14693E-04
   6  Prefactor     .49490        10.296       -.41550E-06    .20497E-04
   7  norm          .10000E-03    76.340        .37481E-08** at limit **
   8  norm          .10000E-03    3.5671       -.27675E-07** at limit **
   9  Prefactor     .10000E-03    1.2582       -.22082E-07** at limit **
  10  Prefactor     6.5080        8.7831       -.66573E-08    .47127E-05
  11  Prefactor     48.848        36.434       -.41508E-07    .45923E-05
  12  Prefactor     .10000E-03    6.1210       -.93577E-07** at limit **
  13  Prefactor     .10000E-03    51.116       -.18772E-05** at limit **
  14  Prefactor     .93847        8.4470        .10482E-05   -.94171E-05
  15  Prefactor     .10000E-03    16.956       -.53345E-06** at limit **
  16  Prefactor     5.8417        25.829        .65136E-06    .72658E-05
  17  norm          7.3938        12.698        .69499E-07    .97642E-06
  18  norm          .10000E-03    2.8118        .62195E-07** at limit **
  19  norm          .10000E-03    2.3979        .60810E-06** at limit **
  20  Prefactor     3.0733        4.5767        .12570E-06    .63809E-05
  21  Prefactor     2.7305        191.12        .24296E-05   -.10903E-05
  22  norm          4.9414        5.0940        .74901E-06    .10343E-04
  23  Prefactor     .10000E-03    6.7079        .16992E-06** at limit **
  24  norm          2.3034        1.5719        .83306E-08    .50607E-05
  25  norm          3.1175        4.6675        .68786E-06    .20680E-04
  26  Prefactor     10.004        17.537       -.30744E-07    .46360E-05
  27  Prefactor     8.3302        4.9594       -.91364E-08    .17377E-04
  28  Prefactor     .10000E-03    18.154       -.91719E-06** at limit **
  29  norm          .10000E-03    9.7148       -.13966E-06** at limit **
  30  Prefactor     .10000E-03    3.4992       -.19941E-06** at limit **
  31  Prefactor     1.6687        5.3996        .18062E-06   -.84504E-05
  32  Normalizat    .95120        .23539       -.67579E-06    .84232E-04
  33  Prefactor     .98441        .23574        .12977E-05    .44796E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 74.8334
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.13982
  Prefactor  = 12.4702
  Prefactor  = 0.4949
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.50795
  Prefactor  = 48.8481
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.938469
  Prefactor  = 0.0001
  Prefactor  = 5.84171
  norm       = 7.39377
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 3.07327
  Prefactor  = 2.73046
  norm       = 4.94137
  Prefactor  = 0.0001
  norm       = 2.30343
  norm       = 3.11746
  Prefactor  = 10.004
  Prefactor  = 8.33022
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.66871
  Normalizat = 0.951199
  Prefactor  = 0.984414
 **********
 **   18 **HESSE 
 **********

 FCN=   4302.305     FROM HESSE     STATUS=OK           701 CALLS     5254 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     74.833        78.581        .23203E-03   -1.3976    
   2  Prefactor     .10000E-03    14.680        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    28.000        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     6.1398        10.033        .16202E-03   -1.5212    
   5  Prefactor     12.470        10.328        .11344E-03   -1.5002    
   6  Prefactor     .49490        40.951        .39538E-02   -1.5567    
   7  norm          .10000E-03    76.848        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    3.5748        .12099E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    1.2597        .71853E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     6.5080        8.7689        .78663E-03   -1.5198    
  11  Prefactor     48.848        36.496        .57374E-04   -1.4309    
  12  Prefactor     .10000E-03    6.1340        .15842E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    51.264        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .93847        8.5065        .18459E-02   -1.5514    
  15  Prefactor     .10000E-03    16.972        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     5.8417        25.628        .16569E-03   -1.5225    
  17  norm          7.3938        12.695        .14748E-03   -1.5164    
  18  norm          .10000E-03    2.8120        .10740E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    2.3820        .98808E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     3.0733        4.5582        .16512E-03   -1.5357    
  21  Prefactor     2.7305        191.89        .24303E-03   -1.5377    
  22  norm          4.9414        5.0737        .12763E-03   -1.5263    
  23  Prefactor     .10000E-03    6.7136        .16583E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          2.3034        1.5592        .61254E-04   -1.5404    
  25  norm          3.1175        4.6445        .16037E-03   -1.5355    
  26  Prefactor     10.004        17.542        .12667E-03   -1.5075    
  27  Prefactor     8.3302        4.9654        .10626E-03   -1.5131    
  28  Prefactor     .10000E-03    18.222        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          .10000E-03    9.7184        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    3.5199        .11979E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     1.6687        5.3647        .25701E-03   -1.5450    
  32  Normalizat    .95120        .27940        .24757E-03   -.94684    
  33  Prefactor     .98441        .27701        .25772E-03   -.93251    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.54642e-09
Minuit parameter uncertainties:
  1  78.69
  2  1.5565e-05
  3  4.89103e-05
  4  10.0357
  5  10.3298
  6  9.00912
  7  1.96914e-05
  8  1.17646e-06
  9  3.60494e-07
  10  8.77063
  11  36.5124
  12  3.7941e-06
  13  0.000113911
  14  5.65164
  15  2.08176e-05
  16  24.4887
  17  12.6997
  18  1.18064e-06
  19  4.81025e-06
  20  4.55876
  21  45.9331
  22  5.07412
  23  4.59913e-06
  24  1.55919
  25  4.64504
  26  17.5506
  27  4.96568
  28  3.78505e-05
  29  4.08322e-06
  30  3.61487e-06
  31  5.36628
  32  0.27983
  33  0.277407
Done.

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

Extracting fit parameters...

4FGL J2329.3-4955
   Spectrum: LogParabola
476         norm:  2.303e+00  1.559e+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:  9.844e-01  2.774e-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:  9.512e-01  2.798e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.63
Ra Dec: 352.329 -49.932
Photon Index (Fixed Index): 2.18 +/- 0.00
Photon Flux (Fixed Index): 6.24e-08 +/- 4.22e-08
Energy Flux (Fixed Index): 2.37e-05 +/- 1.61e-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) = 4302.28152238
delta logL = 0.0237462853956

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4302.28010055
delta logL = 0.0251681180762

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.3491       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3417       1.0000          .0000       5.0000    
     3 'Normalizat'    .93694       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99395       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=   4302.280     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      196 TOTAL
                     EDM=   .12E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.3492        38.351        .66864E-02    .15769E-03
   2  alpha         2.3415        2.5706        .40587        .53431E-05
   3  Normalizat    .93673        .15031        .45372E-01    .13525E-04
   4  Prefactor     .99417        .12425        .46191E-01    .17974E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.34916
  alpha      = 2.34153
  Normalizat = 0.936732
  Prefactor  = 0.994167
 **********
 **   18 **HESSE 
 **********

 FCN=   4302.280     FROM HESSE     STATUS=OK            33 CALLS      229 TOTAL
                     EDM=   .45E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.3492        1.4484        .59327E-04   -1.5401    
   2  alpha         2.3415        .71993        .14589E-01   -.63430E-01
   3  Normalizat    .93673        .26597        .24917E-03   -.95181    
   4  Prefactor     .99417        .27600        .25657E-03   -.92924    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.50144e-11
Minuit parameter uncertainties:
  1  1.44846
  2  0.730319
  3  0.26634
  4  0.276393
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/964566': 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) = 4302.28010014
delta logL = 0.0251685253752

Extracting fit parameters...

4FGL J2329.3-4955
   Spectrum: LogParabola
476         norm:  2.349e+00  1.448e+00  1.000e-04  1.000e+04 ( 1.000e-11)
477        alpha:  2.342e+00  7.303e-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:  9.942e-01  2.764e-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:  9.367e-01  2.663e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.69
Ra Dec: 352.329 -49.932
Photon Index (Free Index): 2.34 +/- 0.73
Photon Flux (Free Index): 7.30e-08 +/- 6.39e-08
Energy Flux (Free Index): 2.33e-05 +/- 1.45e-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/964566/cmap_HighResolution_477014401_477273601_4FGL_J2329.3-4955_daily_bin917.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.24e-08', energy_flux2='2.33e-05', photon_flux_error='4.22e-08', dlogl='2.52e-02', energy_flux='2.37e-05', photon_flux2='7.30e-08', job_status='DONE', time_completed='2021-09-29 21:40:10.935632', photon_index_error2='0.73', photon_index2='2.34', ts='5.63', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', energy_flux_error2='1.45e-05', EG='0.95', time_epoch_completed='1632976810.94', return_code='0', job_id='964566', GAL2='0.99', EG2='0.94', return_code2='0', energy_flux_error='1.61e-05', photon_flux_error2='6.39e-08', ts2='5.69', photon_index='2.18' WHERE bin_id='917' AND source_name='4FGL J2329.3-4955' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 21:40:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0166>
Subject: Job 964566: <4FGL_J2329.3-4955_daily_bin917> in cluster <slac> Done

Job <4FGL_J2329.3-4955_daily_bin917> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 21:25:31 2021
Job was executed on host(s) <bullet0166>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 21:25:32 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:25:32 2021
Terminated at Wed Sep 29 21:40:11 2021
Results reported at Wed Sep 29 21:40:11 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2329.3-4955_daily_bin917 352.329 -49.9324 477014401 477273601 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 :                                   651.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             231.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   879 sec.
    Turnaround time :                            880 sec.

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

