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


Performing analysis on: 4FGL_J2329.3-4955_daily_bin1021
RA = 352.329, Dec = -49.9324
tmin = 503971201, tmax = 504230401
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='968120', job_status='RUN', time_executed='2021-09-29 21:31:32.407522', time_epoch_executed='1632976292.41' WHERE source_name='4FGL J2329.3-4955' and cadence='daily' and bin_id='1021'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/968120

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/968120/ft1_4FGL_J2329.3-4955_daily_bin1021.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/968120/ft2_4FGL_J2329.3-4955_daily_bin1021.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/968120/ft1_4FGL_J2329.3-4955_daily_bin1021.fits outfile=/scratch/kocevski/968120/ft1_filteredMKT_4FGL_J2329.3-4955_daily_bin1021.fits ra=352.329 dec=-49.9324 rad=12.0 tmin=503971201.0 tmax=504230401.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 4.05
user 3.84
sys 0.20

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/968120/ft1_filtered_4FGL_J2329.3-4955_daily_bin1021.fits" evtable="EVENTS" scfile=/scratch/kocevski/968120/ft2_4FGL_J2329.3-4955_daily_bin1021.fits sctable="SC_DATA" outfile=/scratch/kocevski/968120/ltcube_503971201_504230401_4FGL_J2329.3-4955_daily_bin1021.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/968120/ft2_4FGL_J2329.3-4955_daily_bin1021.fits
.....................!
real 11.92
user 11.53
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/968120/ft1_filtered_4FGL_J2329.3-4955_daily_bin1021.fits evtable="EVENTS" scfile=/scratch/kocevski/968120/ft2_4FGL_J2329.3-4955_daily_bin1021.fits sctable="SC_DATA" expcube=/scratch/kocevski/968120/ltcube_503971201_504230401_4FGL_J2329.3-4955_daily_bin1021.fits outfile=/scratch/kocevski/968120/expmap_503971201_504230401_4FGL_J2329.3-4955_daily_bin1021.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/968120/ltcube_503971201_504230401_4FGL_J2329.3-4955_daily_bin1021.fits
.....................!
real 191.18
user 185.16
sys 5.70

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

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

This is gtbin version HEAD
real 0.53
user 0.37
sys 0.15

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

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

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/968120/ft1_filtered_4FGL_J2329.3-4955_daily_bin1021.fits evtable="EVENTS" scfile=/scratch/kocevski/968120/ft2_4FGL_J2329.3-4955_daily_bin1021.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/968120/Model_4FGL_J2329.3-4955_daily_bin1021.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/968120/ft1_filtered_4FGL_J2329.3-4955_daily_bin1021.fits.....................!
real 37.34
user 36.06
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    33.645       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    48.882       1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    9.0276       1.0000         .10000E-03   10000.    
    11 'Prefactor '    42.846       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    43.222       1.0000         .10000E-03   10000.    
    16 'Prefactor '    6.9016       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    19.210       1.0000         .10000E-03   10000.    
    19 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    13.652       1.0000         .10000E-03   10000.    
    22 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    11.059       1.0000         .10000E-03   10000.    
    24 'norm      '    .95924       1.0000         .10000E-03   10000.    
    25 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    30.410       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    18.701       1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.4740       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .52491       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=   4247.999     FROM MIGRAD    STATUS=CONVERGED    867 CALLS     4648 TOTAL
                     EDM=   .85E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    71.142       -.15757E-06** at limit **
   2  Prefactor     .10000E-03    19.359        .22004E-06** at limit **
   3  Prefactor     33.649        47.275       -.20545E-06    .26266E-04
   4  Prefactor     .10000E-03    5.3333        .96267E-07** at limit **
   5  Prefactor     .10000E-03    5.0295        .37073E-07** at limit **
   6  Prefactor     .10000E-03    28.266       -.34941E-06** at limit **
   7  norm          48.877        42.721        .32808E-07   -.16585E-04
   8  norm          .10000E-03    5.9018       -.51806E-07** at limit **
   9  Prefactor     .10000E-03    4.2304        .78133E-07** at limit **
  10  Prefactor     9.0278        9.6780        .16730E-06    .11201E-04
  11  Prefactor     42.838        42.014       -.47499E-06   -.12002E-04
  12  Prefactor     .10000E-03    6.6090       -.12519E-06** at limit **
  13  Prefactor     .10000E-03    41.599        .40833E-06** at limit **
  14  Prefactor     .10000E-03    5.6139        .45179E-07** at limit **
  15  Prefactor     43.251        68.381        .30392E-06    .64319E-04
  16  Prefactor     6.9028        24.670        .54860E-05   -.67849E-05
  17  norm          .10000E-03    6.8143       -.73255E-08** at limit **
  18  norm          19.211        11.513       -.18122E-06    .12373E-04
  19  norm          .10000E-03    2.1249       -.32482E-06** at limit **
  20  Prefactor     .10000E-03    6.4073       -.27119E-06** at limit **
  21  Prefactor     13.627        40.525        .13192E-06   -.89981E-05
  22  norm          .10000E-03    2.8061       -.11038E-05** at limit **
  23  Prefactor     11.060        19.486        .16300E-05    .11034E-04
  24  norm          .95865        1.9024       -.51692E-06   -.33455E-03
  25  norm          .10000E-03    2.4163       -.34902E-06** at limit **
  26  Prefactor     30.405        22.376        .22232E-08    .55791E-05
  27  Prefactor     .10000E-03    1.3617        .25187E-07** at limit **
  28  Prefactor     .10000E-03    11.368       -.12430E-07** at limit **
  29  norm          .10000E-03    10.034        .40127E-07** at limit **
  30  Prefactor     .10000E-03    1.7552        .22929E-07** at limit **
  31  Prefactor     18.699        8.1163       -.47746E-07    .62732E-04
  32  Normalizat    1.4743        .24943        .11954E-05    .90503E-06
  33  Prefactor     .52464        .24425       -.29788E-05    .58319E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 33.6489
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 48.877
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.02784
  Prefactor  = 42.8379
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 43.2514
  Prefactor  = 6.90278
  norm       = 0.0001
  norm       = 19.2105
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.6269
  norm       = 0.0001
  Prefactor  = 11.0602
  norm       = 0.958654
  norm       = 0.0001
  Prefactor  = 30.4054
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 18.6987
  Normalizat = 1.47427
  Prefactor  = 0.524645
 **********
 **   18 **HESSE 
 **********

 FCN=   4247.999     FROM HESSE     STATUS=OK           685 CALLS     5333 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    71.306        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    19.383        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     33.649        47.355        .69085E-04   -1.4547    
   4  Prefactor     .10000E-03    5.3869        .14701E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    5.0384        .14274E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    29.264        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          48.877        42.717        .57355E-04   -1.4309    
   8  norm          .10000E-03    5.9272        .15462E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    4.3993        .26169E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     9.0278        9.6522        .13340E-03   -1.5107    
  11  Prefactor     42.838        42.194        .61245E-04   -1.4398    
  12  Prefactor     .10000E-03    6.6250        .16351E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    41.640        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    5.7108        .15079E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     43.251        68.436        .60978E-04   -1.4392    
  16  Prefactor     6.9028        24.862        .76358E-03   -1.5182    
  17  norm          .10000E-03    6.8185        .16617E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          19.211        11.492        .91381E-04   -1.4831    
  19  norm          .10000E-03    2.1242        .92673E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    6.4464        .16098E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     13.627        40.642        .10841E-03   -1.4970    
  22  norm          .10000E-03    2.7880        .10553E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     11.060        19.483        .60236E-03   -1.5043    
  24  norm          .95865        1.8398        .10536E-03   -1.5512    
  25  norm          .10000E-03    2.4191        .98796E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     30.405        22.446        .72657E-04   -1.4605    
  27  Prefactor     .10000E-03    1.3667        .74255E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    11.378        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          .10000E-03    10.040        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    1.7581        .84319E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     18.699        8.1505        .92617E-04   -1.4843    
  32  Normalizat    1.4743        .29800        .21725E-03   -.78504    
  33  Prefactor     .52464        .28028        .35087E-03   -1.1086    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.72893e-10
Minuit parameter uncertainties:
  1  0.00012804
  2  5.46247e-05
  3  47.4081
  4  1.36972e-05
  5  6.06118e-06
  6  0.000133345
  7  42.7442
  8  3.2498e-06
  9  3.95508e-06
  10  9.65385
  11  42.2238
  12  3.34513e-06
  13  0.000248077
  14  5.68901e-06
  15  68.5603
  16  24.8994
  17  1.00028e-05
  18  11.4933
  19  3.08843e-06
  20  3.70873e-05
  21  40.725
  22  1.09518e-05
  23  19.4943
  24  1.8399
  25  3.68528e-06
  26  22.4519
  27  1.30436e-07
  28  1.53391e-05
  29  8.19698e-06
  30  7.113e-08
  31  8.15102
  32  0.298358
  33  0.281025
Done.

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

Extracting fit parameters...

4FGL J2329.3-4955
   Spectrum: LogParabola
476         norm:  9.587e-01  1.840e+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:  5.246e-01  2.810e-01  0.000e+00  1.000e+01 ( 1.000e+00)
581        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
582        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
579   Normalization:  1.474e+00  2.984e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/968120/likelihoodResults_503971201_504230401_4FGL_J2329.3-4955_daily_bin1021.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) = 4247.70938053
delta logL = 0.289972399164

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4247.70368963
delta logL = 0.295663298991

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .92505       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.0055       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4369       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .54902       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=   4247.704     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      208 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .92317        23.722        .12898E-01    .97058E-03
   2  alpha         3.0070        3.4974        .42268        .29661E-04
   3  Normalizat    1.4377        .55661E-01    .49612E-01    .29025E-03
   4  Prefactor     .54822        .58251E-01    .77597E-01    .21955E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.923173
  alpha      = 3.00697
  Normalizat = 1.43775
  Prefactor  = 0.548225
 **********
 **   18 **HESSE 
 **********

 FCN=   4247.704     FROM HESSE     STATUS=OK            31 CALLS      239 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .92317        1.5765        .67685E-04   -1.5516    
   2  alpha         3.0070        1.2569        .18826E-01    .20420    
   3  Normalizat    1.4377        .27832        .21933E-03   -.79543    
   4  Prefactor     .54822        .27873        .34362E-03   -1.0981    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.15645e-10
Minuit parameter uncertainties:
  1  1.57658
  2  1.31991
  3  0.27861
  4  0.279432
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/968120': 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) = 4247.7036841
delta logL = 0.2956688289

Extracting fit parameters...

4FGL J2329.3-4955
   Spectrum: LogParabola
476         norm:  9.232e-01  1.577e+00  1.000e-04  1.000e+04 ( 1.000e-11)
477        alpha:  3.007e+00  1.320e+00  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:  5.482e-01  2.794e-01  0.000e+00  1.000e+01 ( 1.000e+00)
581        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
582        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
579   Normalization:  1.438e+00  2.786e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.02
Ra Dec: 352.329 -49.932
Photon Index (Free Index): 3.01 +/- 1.32
Photon Flux (Free Index): 5.63e-08 +/- 6.41e-08
Energy Flux (Free Index): 1.15e-05 +/- 1.37e-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/968120/cmap_HighResolution_503971201_504230401_4FGL_J2329.3-4955_daily_bin1021.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.87e-05', comment='SUCCESS', energy_flux2='1.15e-05', dlogl='2.96e-01', photon_flux2='5.63e-08', job_status='DONE', time_completed='2021-09-29 21:44:00.966997', photon_index_error2='1.32', photon_index2='3.01', ts='0.41', fit_tolerance='1e-08', GAL='0.52', photon_index_error='0.00', photon_flux_upper_limit='1.28e-07', energy_flux_error2='1.37e-05', EG='1.47', time_epoch_completed='1632977040.97', return_code='0', job_id='968120', GAL2='0.55', EG2='1.44', return_code2='0', photon_flux_error2='6.41e-08', ts2='1.02', photon_index='2.18' WHERE bin_id='1021' AND source_name='4FGL J2329.3-4955' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 21:44:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0140>
Subject: Job 968120: <4FGL_J2329.3-4955_daily_bin1021> in cluster <slac> Done

Job <4FGL_J2329.3-4955_daily_bin1021> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Sep 29 21:30:15 2021
Job was executed on host(s) <bullet0140>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 21:30:16 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 21:30:16 2021
Terminated at Wed Sep 29 21:44:01 2021
Results reported at Wed Sep 29 21:44:01 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2329.3-4955_daily_bin1021 352.329 -49.9324 503971201 504230401 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 :                                   747.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             281.78 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   825 sec.
    Turnaround time :                            826 sec.

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

