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


Performing analysis on: 4FGL_J2329.3-4955_daily_bin1038
RA = 352.329, Dec = -49.9324
tmin = 508377601, tmax = 508636801
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='968160', job_status='RUN', time_executed='2021-09-29 21:31:27.530749', time_epoch_executed='1632976287.53' WHERE source_name='4FGL J2329.3-4955' and cadence='daily' and bin_id='1038'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/968160

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/968160/ft1_4FGL_J2329.3-4955_daily_bin1038.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/968160/ft2_4FGL_J2329.3-4955_daily_bin1038.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/968160/ft1_4FGL_J2329.3-4955_daily_bin1038.fits outfile=/scratch/kocevski/968160/ft1_filteredMKT_4FGL_J2329.3-4955_daily_bin1038.fits ra=352.329 dec=-49.9324 rad=12.0 tmin=508377601.0 tmax=508636801.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.67
user 3.42
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/968160/ft2_4FGL_J2329.3-4955_daily_bin1038.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/968160/ft1_filteredMKT_4FGL_J2329.3-4955_daily_bin1038.fits evtable="EVENTS" outfile="/scratch/kocevski/968160/ft1_filtered_4FGL_J2329.3-4955_daily_bin1038.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.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/968160/ft1_filtered_4FGL_J2329.3-4955_daily_bin1038.fits" evtable="EVENTS" scfile=/scratch/kocevski/968160/ft2_4FGL_J2329.3-4955_daily_bin1038.fits sctable="SC_DATA" outfile=/scratch/kocevski/968160/ltcube_508377601_508636801_4FGL_J2329.3-4955_daily_bin1038.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/968160/ft2_4FGL_J2329.3-4955_daily_bin1038.fits
.....................!
real 11.60
user 11.25
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/968160/ft1_filtered_4FGL_J2329.3-4955_daily_bin1038.fits evtable="EVENTS" scfile=/scratch/kocevski/968160/ft2_4FGL_J2329.3-4955_daily_bin1038.fits sctable="SC_DATA" expcube=/scratch/kocevski/968160/ltcube_508377601_508636801_4FGL_J2329.3-4955_daily_bin1038.fits outfile=/scratch/kocevski/968160/expmap_508377601_508636801_4FGL_J2329.3-4955_daily_bin1038.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/968160/ltcube_508377601_508636801_4FGL_J2329.3-4955_daily_bin1038.fits
.....................!
real 193.02
user 187.16
sys 5.45

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/968160/ft1_filtered_4FGL_J2329.3-4955_daily_bin1038.fits scfile=/scratch/kocevski/968160/ft2_4FGL_J2329.3-4955_daily_bin1038.fits outfile=/scratch/kocevski/968160/cmap_508377601_508636801_4FGL_J2329.3-4955_daily_bin1038.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.54
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/968160/ft1_filtered_4FGL_J2329.3-4955_daily_bin1038.fits scfile=/scratch/kocevski/968160/ft2_4FGL_J2329.3-4955_daily_bin1038.fits outfile=/scratch/kocevski/968160/cmap_HighResolution_508377601_508636801_4FGL_J2329.3-4955_daily_bin1038.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/968160/ft1_filtered_4FGL_J2329.3-4955_daily_bin1038.fits evtable="EVENTS" scfile=/scratch/kocevski/968160/ft2_4FGL_J2329.3-4955_daily_bin1038.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/968160/Model_4FGL_J2329.3-4955_daily_bin1038.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/968160/ft1_filtered_4FGL_J2329.3-4955_daily_bin1038.fits.....................!
real 39.07
user 37.64
sys 1.27

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    12.501       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10171E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    10.997       1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.5214       1.0000         .10000E-03   10000.    
     7 'norm      '    65.699       1.0000         .10000E-03   10000.    
     8 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.8569       1.0000         .10000E-03   10000.    
    10 'Prefactor '    16.550       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    42.399       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10997E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .67007       1.0000         .10000E-03   10000.    
    18 'norm      '    3.5355       1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    17.895       1.0000         .10000E-03   10000.    
    21 'Prefactor '    49.727       1.0000         .10000E-03   10000.    
    22 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10709E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .53582       1.0000         .10000E-03   10000.    
    26 'Prefactor '    5.4191       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10139E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.0265       1.0000         .10000E-01   10.000    
    33 'Prefactor '    1.1033       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=   5108.962     FROM MIGRAD    STATUS=CONVERGED    887 CALLS     4592 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    35.635       -.81194E-06** at limit **
   2  Prefactor     12.504        17.201        .61377E-07    .78223E-04
   3  Prefactor     .10001E-03    54.376        .17224E-05** at limit **
   4  Prefactor     .10000E-03    4.5400        .75086E-07** at limit **
   5  Prefactor     10.999        11.428        .43456E-07    .13069E-03
   6  Prefactor     4.5216        4.6874       -.13138E-06   -.82145E-04
   7  norm          65.705        47.006        .13064E-06    .91805E-04
   8  norm          .10000E-03    2.9766       -.14881E-08** at limit **
   9  Prefactor     3.8562        4.1151        .55541E-07   -.20264E-04
  10  Prefactor     16.550        7.7408       -.13547E-06    .43154E-05
  11  Prefactor     .10000E-03    40.789       -.27101E-06** at limit **
  12  Prefactor     .10000E-03    4.9476        .74908E-07** at limit **
  13  Prefactor     42.404        82.428        .99928E-07    .26106E-04
  14  Prefactor     .10001E-03    6.6902        .11444E-05** at limit **
  15  Prefactor     .10000E-03    14.977       -.20470E-06** at limit **
  16  Prefactor     .10000E-03    15.381        .18423E-06** at limit **
  17  norm          .64883        12.810        .78818E-06   -.52678E-04
  18  norm          3.5354        4.2011       -.58756E-07    .64400E-05
  19  norm          .10000E-03    1.8412       -.14504E-06** at limit **
  20  Prefactor     17.894        8.9965        .49544E-07    .77799E-03
  21  Prefactor     49.709        48.066        .16494E-05    .26308E-03
  22  norm          .10000E-03    3.4193       -.13747E-05** at limit **
  23  Prefactor     .10011E-03    25.187       -.52213E-05** at limit **
  24  norm          .10000E-03    .30251       -.10729E-09** at limit **
  25  norm          .53666        8.5957        .24060E-05   -.48415E-03
  26  Prefactor     5.4172        15.846        .27617E-07    .74886E-04
  27  Prefactor     .10000E-03    1.5124       -.25505E-07** at limit **
  28  Prefactor     .10000E-03    6.2001       -.13067E-07** at limit **
  29  norm          .10000E-03    10.182        .94461E-08** at limit **
  30  Prefactor     .10000E-03    7.7349        .22970E-07** at limit **
  31  Prefactor     .10000E-03    3.4978       -.94092E-07** at limit **
  32  Normalizat    1.0268        .21330        .25322E-05    .68764E-03
  33  Prefactor     1.1030        .22137       -.14392E-05    .52796E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  Prefactor  = 12.5044
  Prefactor  = 0.000100006
  Prefactor  = 0.0001
  Prefactor  = 10.9985
  Prefactor  = 4.52161
  norm       = 65.7048
  norm       = 0.0001
  Prefactor  = 3.8562
  Prefactor  = 16.55
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 42.4038
  Prefactor  = 0.000100013
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.648832
  norm       = 3.53538
  norm       = 0.0001
  Prefactor  = 17.8941
  Prefactor  = 49.7095
  norm       = 0.000100002
  Prefactor  = 0.000100105
  norm       = 0.0001
  norm       = 0.53666
  Prefactor  = 5.41722
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.0268
  Prefactor  = 1.10303
 **********
 **   18 **HESSE 
 **********

 FCN=   5108.962     FROM HESSE     STATUS=OK           687 CALLS     5279 TOTAL
                     EDM=   .25E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    35.640        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     12.504        17.197        .11330E-03   -1.5001    
   3  Prefactor     .10001E-03    54.650        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    4.5486        .14870E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     10.999        11.420        .12081E-03   -1.5045    
   6  Prefactor     4.5216        4.6928        .15362E-03   -1.5283    
   7  norm          65.705        46.968        .49514E-04   -1.4085    
   8  norm          .10000E-03    2.9798        .12044E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     3.8562        4.0977        .14438E-03   -1.5315    
  10  Prefactor     16.550        7.7506        .98451E-04   -1.4894    
  11  Prefactor     .10000E-03    41.298        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    4.9609        .15521E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     42.404        82.393        .61565E-04   -1.4405    
  14  Prefactor     .10001E-03    27.394        .32912E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    14.981        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    15.454        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .64883        85.301        .48066E-02   -1.5547    
  18  norm          3.5354        4.1999        .15576E-03   -1.5332    
  19  norm          .10000E-03    1.8436        .94763E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     17.894        8.6628        .94679E-04   -1.4862    
  21  Prefactor     49.709        54.406        .56868E-04   -1.4297    
  22  norm          .10000E-03    3.6373        .13207E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10011E-03    79.416        .51113E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    .30399        .38357E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .53666        23.622        .24781E-02   -1.5561    
  26  Prefactor     5.4172        15.831        .17262E-03   -1.5242    
  27  Prefactor     .10000E-03    1.5271        .85815E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    6.2020        .17383E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          .10000E-03    10.186        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    7.9710        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .10000E-03    3.5480        .13049E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    1.0268        .25198        .24960E-03   -.92138    
  33  Prefactor     1.1030        .26149        .25969E-03   -.89370    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.48646e-08
Minuit parameter uncertainties:
  1  0.00048519
  2  17.2033
  3  0.00113915
  4  5.95153e-06
  5  11.4225
  6  4.69317
  7  46.9941
  8  1.13197e-07
  9  4.09804
  10  7.7511
  11  0.000203677
  12  7.97986e-06
  13  82.6158
  14  0.00121182
  15  7.99475e-05
  16  6.94831e-05
  17  14.8995
  18  4.2002
  19  1.28589e-05
  20  8.66336
  21  54.4607
  22  0.000160147
  23  0.00578457
  24  2.26603e-07
  25  7.12321
  26  15.8437
  27  3.52026e-06
  28  2.36814e-06
  29  2.17978e-06
  30  1.08788e-05
  31  1.47762e-05
  32  0.252275
  33  0.261793
Done.

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

Extracting fit parameters...

4FGL J2329.3-4955
   Spectrum: LogParabola
476         norm:  1.000e-04  2.266e-07  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:  1.103e+00  2.618e-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.027e+00  2.523e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 352.329 -49.932
Photon Flux Upper Limit: 4.56e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.73e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/968160/likelihoodResults_508377601_508636801_4FGL_J2329.3-4955_daily_bin1038.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) = 5108.96236594
delta logL = -6.0859631958e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5108.96230498
delta logL = 9.86219674814e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1873       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0267       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1031       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5108.962     FROM MIGRAD    STATUS=FAILED        92 CALLS      236 TOTAL
                     EDM=   .44E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    64.562        .38420E-02** at limit **
   2  alpha         2.9101        3.8233        .16626       -.16691E-06
   3  Normalizat    1.0268        .11205        .24960E-03   -.11360E-03
   4  Prefactor     1.1030        .11932        .25969E-03   -.16031E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5108.962     FROM SIMPLEX   STATUS=UNCHANGED    204 CALLS      440 TOTAL
                     EDM=   .11E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    64.562        .97319E-04** at limit **
   2  alpha         2.9101        3.8233        .48358E-06   -.16691E-06
   3  Normalizat    1.0268        .11205        .27807E-07   -.11360E-03
   4  Prefactor     1.1030        .11932        .11384E-07   -.16031E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5108.962     FROM MIGRAD    STATUS=CONVERGED     30 CALLS      470 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .32374        .39579E-03** at limit **
   2  alpha         2.9119        3.8521        .66505E-02   -.87181E-07
   3  Normalizat    1.0268        .23909        .99840E-05   -.10909E-03
   4  Prefactor     1.1030        .25785        .51938E-04   -.15694E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.91194
  Normalizat = 1.02679
  Prefactor  = 1.10303
 **********
 **   18 **HESSE 
 **********

 FCN=   5108.962     FROM HESSE     STATUS=OK            29 CALLS      499 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .32375        .79158E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.9119        3.8520        .26602E-01    .16553    
   3  Normalizat    1.0268        .23935        .19968E-05   -.92138    
   4  Prefactor     1.1030        .25808        .10388E-04   -.89370    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.07807e-10
Minuit parameter uncertainties:
  1  6.03171e-06
  2  251.161
  3  0.239606
  4  0.258375
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/968160': 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) = 5108.96229504
delta logL = 1.00393372122e-05

Extracting fit parameters...

4FGL J2329.3-4955
   Spectrum: LogParabola
476         norm:  1.000e-04  6.032e-06  1.000e-04  1.000e+04 ( 1.000e-11)
477        alpha:  2.912e+00  2.512e+02  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:  1.103e+00  2.584e-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.027e+00  2.396e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 352.329 -49.932

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/968160/cmap_HighResolution_508377601_508636801_4FGL_J2329.3-4955_daily_bin1038.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.73e-05', job_status='DONE', photon_flux_upper_limit='4.56e-08', time_completed='2021-09-29 21:45:26.251977', job_id='968160', GAL2='1.10', fit_tolerance='1e-08', EG2='1.03', EG='1.03', time_epoch_completed='1632977126.25', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.10', dlogl='1.00e-05', ts2='-0.00', photon_index_error='0.00', photon_index='2.18' WHERE bin_id='1038' AND source_name='4FGL J2329.3-4955' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 21:45:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0231>
Subject: Job 968160: <4FGL_J2329.3-4955_daily_bin1038> in cluster <slac> Done

Job <4FGL_J2329.3-4955_daily_bin1038> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Sep 29 21:30:17 2021
Job was executed on host(s) <bullet0231>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 21:30:18 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:18 2021
Terminated at Wed Sep 29 21:45:27 2021
Results reported at Wed Sep 29 21:45:27 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2329.3-4955_daily_bin1038 352.329 -49.9324 508377601 508636801 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 :                                   836.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             284.42 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   908 sec.
    Turnaround time :                            910 sec.

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

