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


Performing analysis on: 4FGL_J2329.3-4955_daily_bin1113
RA = 352.329, Dec = -49.9324
tmin = 527817601, tmax = 528076801
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='968339', job_status='RUN', time_executed='2021-09-29 21:33:16.524060', time_epoch_executed='1632976396.52' WHERE source_name='4FGL J2329.3-4955' and cadence='daily' and bin_id='1113'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/968339

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/968339/ft1_4FGL_J2329.3-4955_daily_bin1113.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/968339/ft2_4FGL_J2329.3-4955_daily_bin1113.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/968339/ft1_4FGL_J2329.3-4955_daily_bin1113.fits outfile=/scratch/kocevski/968339/ft1_filteredMKT_4FGL_J2329.3-4955_daily_bin1113.fits ra=352.329 dec=-49.9324 rad=12.0 tmin=527817601.0 tmax=528076801.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.55
user 3.33
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/968339/ft1_filtered_4FGL_J2329.3-4955_daily_bin1113.fits" evtable="EVENTS" scfile=/scratch/kocevski/968339/ft2_4FGL_J2329.3-4955_daily_bin1113.fits sctable="SC_DATA" outfile=/scratch/kocevski/968339/ltcube_527817601_528076801_4FGL_J2329.3-4955_daily_bin1113.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/968339/ft2_4FGL_J2329.3-4955_daily_bin1113.fits
.....................!
real 12.16
user 11.79
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/968339/ft1_filtered_4FGL_J2329.3-4955_daily_bin1113.fits evtable="EVENTS" scfile=/scratch/kocevski/968339/ft2_4FGL_J2329.3-4955_daily_bin1113.fits sctable="SC_DATA" expcube=/scratch/kocevski/968339/ltcube_527817601_528076801_4FGL_J2329.3-4955_daily_bin1113.fits outfile=/scratch/kocevski/968339/expmap_527817601_528076801_4FGL_J2329.3-4955_daily_bin1113.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/968339/ltcube_527817601_528076801_4FGL_J2329.3-4955_daily_bin1113.fits
.....................!
real 190.48
user 185.48
sys 4.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/968339/ft1_filtered_4FGL_J2329.3-4955_daily_bin1113.fits scfile=/scratch/kocevski/968339/ft2_4FGL_J2329.3-4955_daily_bin1113.fits outfile=/scratch/kocevski/968339/cmap_527817601_528076801_4FGL_J2329.3-4955_daily_bin1113.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.55
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/968339/ft1_filtered_4FGL_J2329.3-4955_daily_bin1113.fits scfile=/scratch/kocevski/968339/ft2_4FGL_J2329.3-4955_daily_bin1113.fits outfile=/scratch/kocevski/968339/cmap_HighResolution_527817601_528076801_4FGL_J2329.3-4955_daily_bin1113.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.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/968339/ft1_filtered_4FGL_J2329.3-4955_daily_bin1113.fits evtable="EVENTS" scfile=/scratch/kocevski/968339/ft2_4FGL_J2329.3-4955_daily_bin1113.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/968339/Model_4FGL_J2329.3-4955_daily_bin1113.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/968339/ft1_filtered_4FGL_J2329.3-4955_daily_bin1113.fits.....................!
real 35.07
user 33.82
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10259E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    25.643       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10327E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .25600E-02   1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.6874       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .52525       1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .51881E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    16.126       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10105E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.9436       1.0000         .10000E-03   10000.    
    17 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    5.0656       1.0000         .10000E-03   10000.    
    19 'norm      '    .10065E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    4.9711       1.0000         .10000E-03   10000.    
    22 'norm      '    .11364E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    1.9127       1.0000         .10000E-03   10000.    
    24 'norm      '    .10116E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10284E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    3.0552       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    16.126       1.0000         .10000E-03   10000.    
    30 'Prefactor '    3.1374       1.0000         .10000E-03   10000.    
    31 'Prefactor '    .74199       1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.2660       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .72065       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=   4292.873     FROM MIGRAD    STATUS=CONVERGED    885 CALLS     4587 TOTAL
                     EDM=   .90E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    61.380        .83377E-07** at limit **
   2  Prefactor     25.647        25.324       -.45806E-06   -.82186E-04
   3  Prefactor     .10000E-03    13.356        .17654E-06** at limit **
   4  Prefactor     .10008E-03    11.294        .31475E-05** at limit **
   5  Prefactor     3.6881        7.6771        .21985E-05    .18195E-04
   6  Prefactor     .53630        8.2017        .31887E-07   -.77347E-04
   7  norm          .10000E-03    38.859       -.24095E-06** at limit **
   8  norm          .10000E-03    7.4815       -.80449E-06** at limit **
   9  Prefactor     .10000E-03    4.1091        .76652E-07** at limit **
  10  Prefactor     16.130        8.7509        .25223E-06    .45922E-04
  11  Prefactor     .10000E-03    17.237       -.30881E-06** at limit **
  12  Prefactor     .10000E-03    6.3703        .55850E-07** at limit **
  13  Prefactor     .10000E-03    64.778        .64776E-06** at limit **
  14  Prefactor     .10000E-03    7.8847        .35092E-07** at limit **
  15  Prefactor     .10000E-03    44.076       -.71798E-06** at limit **
  16  Prefactor     3.9255        27.196       -.14501E-05   -.98901E-04
  17  norm          .10000E-03    5.5907       -.13287E-07** at limit **
  18  norm          5.0652        6.2445       -.18073E-06   -.15337E-03
  19  norm          .10000E-03    2.7189       -.37540E-06** at limit **
  20  Prefactor     .10000E-03    3.0874        .18269E-06** at limit **
  21  Prefactor     4.9482        58.188        .39010E-05   -.73930E-05
  22  norm          .10000E-03    3.0525       -.15824E-05** at limit **
  23  Prefactor     1.9067        24.277        .74483E-05   -.69208E-04
  24  norm          .10000E-03    .98459       -.23331E-06** at limit **
  25  norm          .10000E-03    3.0681       -.67926E-06** at limit **
  26  Prefactor     3.0502        17.133        .36520E-05   -.11920E-04
  27  Prefactor     .10000E-03    1.8038        .15478E-06** at limit **
  28  Prefactor     .10000E-03    28.805        .83768E-06** at limit **
  29  norm          16.145        33.533       -.33047E-05    .13234E-03
  30  Prefactor     3.1293        7.0284        .21626E-05   -.23180E-03
  31  Prefactor     .74169        4.6377        .45592E-06   -.22435E-04
  32  Normalizat    1.2664        .21918        .85669E-07   -.23332E-03
  33  Prefactor     .72010        .21928       -.27712E-05   -.30558E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 25.6475
  Prefactor  = 0.0001
  Prefactor  = 0.000100082
  Prefactor  = 3.68811
  Prefactor  = 0.536299
  norm       = 0.0001
  norm       = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 16.1298
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 3.92553
  norm       = 0.0001
  norm       = 5.06523
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.94824
  norm       = 0.000100002
  Prefactor  = 1.90674
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 3.05023
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 16.1454
  Prefactor  = 3.12928
  Prefactor  = 0.741689
  Normalizat = 1.26644
  Prefactor  = 0.720096
 **********
 **   18 **HESSE 
 **********

 FCN=   4292.873     FROM HESSE     STATUS=OK           691 CALLS     5278 TOTAL
                     EDM=   .31E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    61.432        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     25.647        25.134        .79107E-04   -1.4695    
   3  Prefactor     .10000E-03    13.362        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10008E-03    59.401        .39066E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     3.6881        7.6620        .10516E-02   -1.5324    
   6  Prefactor     .53630        23.014        .35708E-02   -1.5562    
   7  norm          .10000E-03    39.034        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    30.827        .34433E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    4.1976        .12966E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     16.130        8.7522        .99737E-04   -1.4905    
  11  Prefactor     .10000E-03    17.282        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    6.3945        .16150E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    64.821        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    8.1668        .35931E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    44.194        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     3.9255        26.106        .20313E-03   -1.5312    
  17  norm          .10000E-03    5.5980        .15131E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          5.0652        6.2122        .17581E-03   -1.5258    
  19  norm          .10000E-03    2.7315        .10565E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    3.0954        .11242E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     4.9482        59.219        .18038E-03   -1.5263    
  22  norm          .10000E-03    3.2312        .11418E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     1.9067        25.196        .15028E-02   -1.5432    
  24  norm          .10000E-03    1.5438        .12019E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    3.1339        .11244E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     3.0502        17.180        .11605E-02   -1.5359    
  27  Prefactor     .10000E-03    1.8314        .85913E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    29.003        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          16.145        34.339        .99737E-04   -1.4904    
  30  Prefactor     3.1293        7.1927        .87413E-03   -1.5354    
  31  Prefactor     .74169        4.5393        .26432E-03   -1.5536    
  32  Normalizat    1.2664        .26337        .20924E-03   -.84574    
  33  Prefactor     .72010        .26185        .28333E-03   -1.0274    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.10782e-08
Minuit parameter uncertainties:
  1  2.33036e-05
  2  25.1447
  3  4.22831e-05
  4  0.00442493
  5  7.66403
  6  7.02853
  7  0.000123259
  8  0.000686321
  9  1.05439e-05
  10  8.75285
  11  0.000114739
  12  5.65151e-06
  13  0.000277307
  14  2.05209e-05
  15  0.000353675
  16  20.259
  17  3.5778e-07
  18  6.21296
  19  3.29812e-05
  20  3.04835e-07
  21  34.2784
  22  0.000161262
  23  13.8693
  24  1.66186e-05
  25  4.18631e-05
  26  14.484
  27  1.01456e-05
  28  0.000280073
  29  34.3806
  30  7.19471
  31  3.66989
  32  0.263651
  33  0.262301
Done.

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

Extracting fit parameters...

4FGL J2329.3-4955
   Spectrum: LogParabola
476         norm:  1.000e-04  1.662e-05  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:  7.201e-01  2.623e-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.266e+00  2.637e-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: 8.32e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.16e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/968339/likelihoodResults_527817601_528076801_4FGL_J2329.3-4955_daily_bin1113.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) = 4292.87600033
delta logL = -0.00309524152271

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4292.8729048
delta logL = 2.91963260679e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .11845E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2433       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2668       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .71988       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=   4291.545     FROM MIGRAD    STATUS=CONVERGED    122 CALLS      278 TOTAL
                     EDM=   .46E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .11354        .84414E-01    .34399E-02    .26050E-02
   2  alpha         5.0000        .77122        .41429    ** at limit **
   3  Normalizat    1.1364        .21024        .49486E-01    .50770E-03
   4  Prefactor     .81146        .21629        .42665E-01    .41959E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.113544
  alpha      = 5
  Normalizat = 1.13643
  Prefactor  = 0.811456
 **********
 **   18 **HESSE 
 **********

 FCN=   4291.545     FROM HESSE     STATUS=OK            27 CALLS      305 TOTAL
                     EDM=   .51E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .11354        .85078E-01    .15496E-04   -1.5775    
   2  alpha         5.0000        3.1372        .50570E-01    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.1364        .25613        .21879E-03   -.88590    
   4  Prefactor     .81146        .26454        .26806E-03   -.99307    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.13261e-10
Minuit parameter uncertainties:
  1  0.0850779
  2  7.30973e-06
  3  0.256414
  4  0.264953
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/968339': 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) = 4291.54546437
delta logL = 1.32744072066

Extracting fit parameters...

4FGL J2329.3-4955
   Spectrum: LogParabola
476         norm:  1.135e-01  8.508e-02  1.000e-04  1.000e+04 ( 1.000e-11)
477        alpha:  5.000e+00  7.310e-06  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:  8.115e-01  2.650e-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.136e+00  2.564e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.85
Ra Dec: 352.329 -49.932
Photon Index (Free Index): 5.00 +/- 0.00
Photon Flux (Free Index): 8.94e-08 +/- 6.66e-08
Energy Flux (Free Index): 1.21e-05 +/- 9.06e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/968339/cmap_HighResolution_527817601_528076801_4FGL_J2329.3-4955_daily_bin1113.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.16e-05', comment='SUCCESS', energy_flux2='1.21e-05', dlogl='1.33e+00', photon_flux2='8.94e-08', job_status='DONE', time_completed='2021-09-29 21:45:39.516611', photon_index_error2='0.00', photon_index2='5.00', ts='-0.00', fit_tolerance='1e-08', GAL='0.72', photon_index_error='0.00', photon_flux_upper_limit='8.32e-08', energy_flux_error2='9.06e-06', EG='1.27', time_epoch_completed='1632977139.52', return_code='0', job_id='968339', GAL2='0.81', EG2='1.14', return_code2='0', photon_flux_error2='6.66e-08', ts2='2.85', photon_index='2.18' WHERE bin_id='1113' AND source_name='4FGL J2329.3-4955' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 21:45:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0261>
Subject: Job 968339: <4FGL_J2329.3-4955_daily_bin1113> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2329.3-4955_daily_bin1113 352.329 -49.9324 527817601 528076801 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 :                                   741.23 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             266.87 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   915 sec.
    Turnaround time :                            917 sec.

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

