/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 70 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

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

number of points = 7530
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2329.3-4955_daily_bin1152
RA = 352.329, Dec = -49.9324
tmin = 537926401, tmax = 538185601
emin = 100.0, emax = 100000.0
irfs = P8R3_SOURCE_V2
ROI = 12
zmax = 90

Fitting strategies:
Fix sources to their catalog values = True
Leave variable source normalizations free = True
Perform pre-fit where ALL sources are frozen to catalog values = False
Perform secondary fit with a free spectral index = True
Remove all catalog sources = False
Remove weak (TS < 2) catalog sources = False
Freeze Galactic component = False

Likelihood fit parameters:
Statistic: UNBINNED
Optimizer: MINUIT

Catalog: 4FGL

Repository Job = True

LAT data Source:
Data catalog

Updating database...

UPDATE lightcurve_data_v2 SET job_id='968433', job_status='RUN', time_executed='2021-09-29 21:31:49.821454', time_epoch_executed='1632976309.82' WHERE source_name='4FGL J2329.3-4955' and cadence='daily' and bin_id='1152'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/968433

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/968433/ft1_4FGL_J2329.3-4955_daily_bin1152.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/968433/ft2_4FGL_J2329.3-4955_daily_bin1152.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/968433/ft1_4FGL_J2329.3-4955_daily_bin1152.fits outfile=/scratch/kocevski/968433/ft1_filteredMKT_4FGL_J2329.3-4955_daily_bin1152.fits ra=352.329 dec=-49.9324 rad=12.0 tmin=537926401.0 tmax=538185601.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 6.57
user 6.28
sys 0.25

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/968433/ft2_4FGL_J2329.3-4955_daily_bin1152.fits sctable="SC_DATA" filter="IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))" roicut=no evfile=/scratch/kocevski/968433/ft1_filteredMKT_4FGL_J2329.3-4955_daily_bin1152.fits evtable="EVENTS" outfile="/scratch/kocevski/968433/ft1_filtered_4FGL_J2329.3-4955_daily_bin1152.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/968433/ft1_filtered_4FGL_J2329.3-4955_daily_bin1152.fits" evtable="EVENTS" scfile=/scratch/kocevski/968433/ft2_4FGL_J2329.3-4955_daily_bin1152.fits sctable="SC_DATA" outfile=/scratch/kocevski/968433/ltcube_537926401_538185601_4FGL_J2329.3-4955_daily_bin1152.fits dcostheta=0.025 binsz=1.0 phibins=0 tmin=0.0 tmax=0.0 file_version="1" zmin=0.0 zmax=90.0 chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Working on file /scratch/kocevski/968433/ft2_4FGL_J2329.3-4955_daily_bin1152.fits
.....................!
real 12.18
user 11.84
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/968433/ft1_filtered_4FGL_J2329.3-4955_daily_bin1152.fits evtable="EVENTS" scfile=/scratch/kocevski/968433/ft2_4FGL_J2329.3-4955_daily_bin1152.fits sctable="SC_DATA" expcube=/scratch/kocevski/968433/ltcube_537926401_538185601_4FGL_J2329.3-4955_daily_bin1152.fits outfile=/scratch/kocevski/968433/expmap_537926401_538185601_4FGL_J2329.3-4955_daily_bin1152.fits irfs="P8R3_SOURCE_V2" evtype="INDEF" srcrad=30.0 nlong=88 nlat=88 nenergies=10 submap=no nlongmin=0 nlongmax=0 nlatmin=0 nlatmax=0 chatter=2 clobber=yes debug=no gui=no mode="ql"

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

The exposure maps generated by this tool are meant
to be used for *unbinned* likelihood analysis only.
Do not use them for binned analyses.
Computing the ExposureMap using /scratch/kocevski/968433/ltcube_537926401_538185601_4FGL_J2329.3-4955_daily_bin1152.fits
.....................!
real 189.02
user 184.56
sys 4.01

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/968433/ft1_filtered_4FGL_J2329.3-4955_daily_bin1152.fits scfile=/scratch/kocevski/968433/ft2_4FGL_J2329.3-4955_daily_bin1152.fits outfile=/scratch/kocevski/968433/cmap_537926401_538185601_4FGL_J2329.3-4955_daily_bin1152.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=352.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

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/968433/ft1_filtered_4FGL_J2329.3-4955_daily_bin1152.fits scfile=/scratch/kocevski/968433/ft2_4FGL_J2329.3-4955_daily_bin1152.fits outfile=/scratch/kocevski/968433/cmap_HighResolution_537926401_538185601_4FGL_J2329.3-4955_daily_bin1152.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=352.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.55
user 0.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/968433/ft1_filtered_4FGL_J2329.3-4955_daily_bin1152.fits evtable="EVENTS" scfile=/scratch/kocevski/968433/ft2_4FGL_J2329.3-4955_daily_bin1152.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/968433/Model_4FGL_J2329.3-4955_daily_bin1152.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

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

adding source EG_v02
adding source GAL_V02
Working on...
/scratch/kocevski/968433/ft1_filtered_4FGL_J2329.3-4955_daily_bin1152.fits.....................!
real 40.49
user 39.15
sys 1.10

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

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    7.2264       1.0000         .10000E-03   10000.    
     3 'Prefactor '    47.171       1.0000         .10000E-03   10000.    
     4 'Prefactor '    29.808       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    8.7347       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.9860       1.0000         .10000E-03   10000.    
    13 'Prefactor '    22.553       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.8607       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .11303E-02   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .78232E-01   1.0000         .10000E-03   10000.    
    19 'norm      '    5.0290       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10414E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    33.965       1.0000         .10000E-03   10000.    
    24 'norm      '    .10729E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    12.335       1.0000         .10000E-03   10000.    
    29 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    3.9784       1.0000         .10000E-03   10000.    
    32 'Normalizat'    .86681       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .96615       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=   5473.319     FROM MIGRAD    STATUS=CONVERGED    904 CALLS     4649 TOTAL
                     EDM=   .32E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    32.600       -.11447E-05** at limit **
   2  Prefactor     7.2264        9.8379       -.68994E-09    .25561E-07
   3  Prefactor     47.168        34.401       -.40444E-06   -.78019E-04
   4  Prefactor     29.808        11.402       -.15453E-06   -.17570E-03
   5  Prefactor     .10000E-03    2.7076       -.87840E-07** at limit **
   6  Prefactor     .10000E-03    4.5691        .47355E-07** at limit **
   7  norm          .10000E-03    12.612        .43627E-06** at limit **
   8  norm          .10000E-03    2.4573        .28615E-08** at limit **
   9  Prefactor     8.7348        4.8883       -.10918E-06   -.21633E-03
  10  Prefactor     .10000E-03    2.6576        .27664E-06** at limit **
  11  Prefactor     .10000E-03    27.743        .87135E-06** at limit **
  12  Prefactor     4.9884        11.085       -.39860E-05   -.39220E-04
  13  Prefactor     22.541        53.078       -.73535E-06   -.27369E-04
  14  Prefactor     1.8609        5.2531       -.44527E-06    .36457E-04
  15  Prefactor     .10000E-03    11.004       -.79600E-06** at limit **
  16  Prefactor     .10000E-03    90.327        .28924E-04** at limit **
  17  norm          .10000E-03    5.4095        .12046E-06** at limit **
  18  norm          .82037E-01    4.5307       -.78283E-06   -.10861E-03
  19  norm          5.0285        4.0977        .17822E-06    .35226E-03
  20  Prefactor     .10000E-03    3.6742        .15746E-06** at limit **
  21  Prefactor     .10001E-03    128.61        .88219E-06** at limit **
  22  norm          .10000E-03    2.5992        .16979E-06** at limit **
  23  Prefactor     33.965        16.580       -.16794E-06   -.28573E-03
  24  norm          .10001E-03    .60629       -.56182E-06** at limit **
  25  norm          .10000E-03    2.9471        .21835E-06** at limit **
  26  Prefactor     .10000E-03    3.2664       -.42607E-07** at limit **
  27  Prefactor     .10000E-03    1.1228        .13923E-06** at limit **
  28  Prefactor     12.336        19.756       -.63169E-06   -.15100E-03
  29  norm          .10000E-03    9.4255        .47527E-06** at limit **
  30  Prefactor     .10000E-03    3.3884        .23399E-07** at limit **
  31  Prefactor     3.9785        4.2566       -.41546E-07    .11270E-03
  32  Normalizat    .86677        .17501        .77980E-06   -.22150E-03
  33  Prefactor     .96617        .17925        .81818E-07   -.15578E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 7.22644
  Prefactor  = 47.1676
  Prefactor  = 29.8078
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 8.73482
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.98842
  Prefactor  = 22.5406
  Prefactor  = 1.86085
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  norm       = 0.0001
  norm       = 0.082037
  norm       = 5.02846
  Prefactor  = 0.0001
  Prefactor  = 0.000100009
  norm       = 0.0001
  Prefactor  = 33.9652
  norm       = 0.000100005
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.3357
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 3.97852
  Normalizat = 0.866765
  Prefactor  = 0.966169
 **********
 **   18 **HESSE 
 **********

 FCN=   5473.319     FROM HESSE     STATUS=OK           697 CALLS     5346 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    32.624        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     7.2264        9.8290        .14921E-03   -1.5170    
   3  Prefactor     47.168        34.255        .58381E-04   -1.4333    
   4  Prefactor     29.808        11.405        .73385E-04   -1.4615    
   5  Prefactor     .10000E-03    2.7142        .11882E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    4.6241        .15440E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    12.620        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    2.4585        .11326E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     8.7348        4.8879        .11848E-03   -1.5117    
  10  Prefactor     .10000E-03    2.6760        .11773E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    28.016        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     4.9884        11.124        .90050E-03   -1.5261    
  13  Prefactor     22.541        53.179        .84344E-04   -1.4758    
  14  Prefactor     1.8609        5.2217        .27588E-03   -1.5435    
  15  Prefactor     .10000E-03    11.004        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    88.608        .38305E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    5.4186        .16806E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .82037E-01    4.1011        .53093E-01   -1.5651    
  19  norm          5.0285        4.1022        .13197E-03   -1.5259    
  20  Prefactor     .10000E-03    3.6851        .13812E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10001E-03    131.75        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    2.6414        .11636E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     33.965        16.291        .68759E-04   -1.4542    
  24  norm          .10001E-03    4.4275        .10151E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    3.0004        .12397E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    3.2683        .13058E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    1.1284        .76401E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     12.336        19.645        .11406E-03   -1.5005    
  29  norm          .10000E-03    9.4399        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    6.8662        .25777E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     3.9785        4.2589        .14793E-03   -1.5309    
  32  Normalizat    .86677        .20515        .23464E-03   -.97638    
  33  Prefactor     .96617        .21226        .24093E-03   -.93866    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.92336e-09
Minuit parameter uncertainties:
  1  8.53804e-06
  2  9.83117
  3  34.2693
  4  11.4062
  5  1.2452e-05
  6  1.62576e-05
  7  5.32489e-06
  8  1.4097e-06
  9  4.8881
  10  2.39911e-06
  11  0.000184767
  12  11.129
  13  53.291
  14  5.22295
  15  2.28031e-06
  16  0.00111516
  17  2.01753e-06
  18  1.15945
  19  4.1024
  20  1.27643e-05
  21  0.00219191
  22  2.86333e-05
  23  16.2933
  24  0.000303084
  25  1.6212e-05
  26  6.54119e-07
  27  8.98825e-06
  28  19.6548
  29  4.615e-06
  30  0.000170679
  31  4.25926
  32  0.205338
  33  0.212443
Done.

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

Extracting fit parameters...

4FGL J2329.3-4955
   Spectrum: LogParabola
476         norm:  1.000e-04  3.031e-04  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.662e-01  2.124e-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:  8.668e-01  2.053e-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: 6.22e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.36e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/968433/likelihoodResults_537926401_538185601_4FGL_J2329.3-4955_daily_bin1152.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): 102
logL (Free Index) = 5473.31993611
delta logL = -0.00112291847199

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5473.31880793
delta logL = 5.25468294654e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10148E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0712       1.0000          .0000       5.0000    
     3 'Normalizat'    .86679       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96610       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   5473.318     FROM MIGRAD    STATUS=FAILED       155 CALLS      328 TOTAL
                     EDM=   .25E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .29909E-01    4.7105        .99541E-03    .35715E-02
   2  alpha         1.6780        3.0911        .10020       -.61592E-05
   3  Normalizat    .86721        .19357        .23458E-03    .19173E-03
   4  Prefactor     .96513        .21159        .24104E-03    .17047E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5473.318     FROM SIMPLEX   STATUS=UNCHANGED     76 CALLS      404 TOTAL
                     EDM=   .12E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .29909E-01    4.7105        .19701E-03   -1.5673    
   2  alpha         1.6780        3.0911        .11043E-01   -.33502    
   3  Normalizat    .86721        .19357        .24279E-03   -.97622    
   4  Prefactor     .96513        .21159        .23870E-03   -.93901    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5473.318     FROM MIGRAD    STATUS=CONVERGED     30 CALLS      434 TOTAL
                     EDM=   .33E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .29910E-01    3.9421        .19908E-03    .14334E-03
   2  alpha         1.6780        3.1887        .40079E-02   -.82545E-06
   3  Normalizat    .86720        .19353        .93831E-05   -.96929E-06
   4  Prefactor     .96513        .21093        .48208E-04   -.14149E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0299104
  alpha      = 1.67803
  Normalizat = 0.867205
  Prefactor  = 0.965128
 **********
 **   18 **HESSE 
 **********

 FCN=   5473.318     FROM HESSE     STATUS=OK            25 CALLS      459 TOTAL
                     EDM=   .20E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .29910E-01    3.9528        .39816E-04   -1.5673    
   2  alpha         1.6780        3.1871        .16031E-03   -.33502    
   3  Normalizat    .86720        .19340        .18766E-05   -.97622    
   4  Prefactor     .96513        .21077        .96417E-05   -.93901    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.98342e-12
Minuit parameter uncertainties:
  1  0.686583
  2  4.09373
  3  0.193559
  4  0.210945
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/968433': 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) = 5473.317817
delta logL = 0.000996186086923

Extracting fit parameters...

4FGL J2329.3-4955
   Spectrum: LogParabola
476         norm:  2.991e-02  6.866e-01  1.000e-04  1.000e+04 ( 1.000e-11)
477        alpha:  1.678e+00  4.094e+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:  9.651e-01  2.109e-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:  8.672e-01  1.936e-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/968433/cmap_HighResolution_537926401_538185601_4FGL_J2329.3-4955_daily_bin1152.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.36e-05', job_status='DONE', photon_flux_upper_limit='6.22e-08', time_completed='2021-09-29 21:46:39.125106', job_id='968433', GAL2='0.97', fit_tolerance='1e-08', EG2='0.87', EG='0.87', time_epoch_completed='1632977199.13', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='9.96e-04', ts2='0.00', photon_index_error='0.00', photon_index='2.18' WHERE bin_id='1152' AND source_name='4FGL J2329.3-4955' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 21:46:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0208>
Subject: Job 968433: <4FGL_J2329.3-4955_daily_bin1152> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2329.3-4955_daily_bin1152 352.329 -49.9324 537926401 538185601 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 :                                   883.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             271.22 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   969 sec.
    Turnaround time :                            970 sec.

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

