/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 228 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 = 7432
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2329.3-4955_daily_bin383
RA = 352.329, Dec = -49.9324
tmin = 338601601, tmax = 338860801
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='957382', job_status='RUN', time_executed='2021-09-29 21:19:29.790033', time_epoch_executed='1632975569.79' WHERE source_name='4FGL J2329.3-4955' and cadence='daily' and bin_id='383'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/957382

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

Retrieving the FT1 file...

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

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

Retrieving 49 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/957382/ft1_4FGL_J2329.3-4955_daily_bin383.fits


Retrieving the FT1 file...

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

Retrieving 49 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/957382/ft2_4FGL_J2329.3-4955_daily_bin383.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/957382/ft1_4FGL_J2329.3-4955_daily_bin383.fits outfile=/scratch/kocevski/957382/ft1_filteredMKT_4FGL_J2329.3-4955_daily_bin383.fits ra=352.329 dec=-49.9324 rad=12.0 tmin=338601601.0 tmax=338860801.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 5.18
user 4.92
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/957382/ft1_filtered_4FGL_J2329.3-4955_daily_bin383.fits" evtable="EVENTS" scfile=/scratch/kocevski/957382/ft2_4FGL_J2329.3-4955_daily_bin383.fits sctable="SC_DATA" outfile=/scratch/kocevski/957382/ltcube_338601601_338860801_4FGL_J2329.3-4955_daily_bin383.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/957382/ft2_4FGL_J2329.3-4955_daily_bin383.fits
.....................!
real 13.09
user 12.74
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/957382/ft1_filtered_4FGL_J2329.3-4955_daily_bin383.fits evtable="EVENTS" scfile=/scratch/kocevski/957382/ft2_4FGL_J2329.3-4955_daily_bin383.fits sctable="SC_DATA" expcube=/scratch/kocevski/957382/ltcube_338601601_338860801_4FGL_J2329.3-4955_daily_bin383.fits outfile=/scratch/kocevski/957382/expmap_338601601_338860801_4FGL_J2329.3-4955_daily_bin383.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/957382/ltcube_338601601_338860801_4FGL_J2329.3-4955_daily_bin383.fits
.....................!
real 191.07
user 186.49
sys 4.25

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

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

This is gtbin version HEAD
real 0.53
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/957382/ft1_filtered_4FGL_J2329.3-4955_daily_bin383.fits scfile=/scratch/kocevski/957382/ft2_4FGL_J2329.3-4955_daily_bin383.fits outfile=/scratch/kocevski/957382/cmap_HighResolution_338601601_338860801_4FGL_J2329.3-4955_daily_bin383.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/957382/ft1_filtered_4FGL_J2329.3-4955_daily_bin383.fits evtable="EVENTS" scfile=/scratch/kocevski/957382/ft2_4FGL_J2329.3-4955_daily_bin383.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/957382/Model_4FGL_J2329.3-4955_daily_bin383.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/957382/ft1_filtered_4FGL_J2329.3-4955_daily_bin383.fits.....................!
real 39.54
user 38.27
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    5.4127       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    12.651       1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.4262       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    3.3341       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .71408       1.0000         .10000E-03   10000.    
    11 'Prefactor '    11.234       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10214E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    123.31       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    88.740       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .11278       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .11354E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    74.054       1.0000         .10000E-03   10000.    
    22 'norm      '    3.6101       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    7.4444       1.0000         .10000E-03   10000.    
    25 'norm      '    8.3686       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    7.9467       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10001E-03   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 '    1.3444       1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.4867       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .37848       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=   4977.416     FROM MIGRAD    STATUS=CONVERGED    864 CALLS     4559 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    33.296        .51284E-06** at limit **
   2  Prefactor     5.4133        19.569        .39052E-06   -.89247E-05
   3  Prefactor     .10000E-03    21.467       -.23912E-06** at limit **
   4  Prefactor     12.651        8.9421        .14017E-06   -.39172E-04
   5  Prefactor     6.4262        5.8301        .36384E-07   -.35213E-04
   6  Prefactor     .10000E-03    4.4446       -.10327E-07** at limit **
   7  norm          .10000E-03    9.5064       -.10173E-06** at limit **
   8  norm          3.3332        7.0118        .50748E-06    .55367E-04
   9  Prefactor     .10000E-03    2.1360       -.11479E-06** at limit **
  10  Prefactor     .71253        7.7445        .60029E-05    .34340E-03
  11  Prefactor     11.261        22.256       -.59535E-06   -.79424E-04
  12  Prefactor     .10000E-03    5.4784        .60176E-06** at limit **
  13  Prefactor     123.29        82.482        .83215E-08   -.36009E-04
  14  Prefactor     .10000E-03    3.3177        .36379E-07** at limit **
  15  Prefactor     88.743        44.361       -.47014E-06   -.84876E-04
  16  Prefactor     .10000E-03    5.0266       -.34033E-07** at limit **
  17  norm          .10000E-03    4.5529        .41841E-07** at limit **
  18  norm          .10000E-03    3.3891       -.32202E-07** at limit **
  19  norm          .82761E-01    6.2012       -.21063E-05    .75061E-03
  20  Prefactor     .10009E-03    5.7903       -.21035E-05** at limit **
  21  Prefactor     74.110        50.762       -.16050E-06    .19966E-03
  22  norm          3.6148        4.8758        .34080E-06    .23780E-03
  23  Prefactor     .10000E-03    10.053        .17159E-06** at limit **
  24  norm          7.4444        1.9114        .13963E-07    .42361E-03
  25  norm          8.3672        5.6483        .97389E-08   -.39036E-04
  26  Prefactor     .10000E-03    49.564       -.14387E-05** at limit **
  27  Prefactor     7.9471        5.0644        .23903E-06   -.38386E-04
  28  Prefactor     .10000E-03    10.717        .78341E-07** at limit **
  29  norm          .10000E-03    13.268        .72836E-07** at limit **
  30  Prefactor     .10000E-03    4.8188       -.25584E-06** at limit **
  31  Prefactor     1.3444        4.1485        .16392E-05    .27397E-03
  32  Normalizat    1.4865        .22327       -.47931E-05   -.15447E-03
  33  Prefactor     .37866        .21556        .55962E-05   -.87863E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 5.41333
  Prefactor  = 0.0001
  Prefactor  = 12.6509
  Prefactor  = 6.42618
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 3.33317
  Prefactor  = 0.0001
  Prefactor  = 0.712528
  Prefactor  = 11.2609
  Prefactor  = 0.0001
  Prefactor  = 123.295
  Prefactor  = 0.0001
  Prefactor  = 88.7433
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0827606
  Prefactor  = 0.000100086
  Prefactor  = 74.1097
  norm       = 3.61485
  Prefactor  = 0.0001
  norm       = 7.44444
  norm       = 8.36716
  Prefactor  = 0.0001
  Prefactor  = 7.94713
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.34445
  Normalizat = 1.4865
  Prefactor  = 0.378661
 **********
 **   18 **HESSE 
 **********

 FCN=   4977.416     FROM HESSE     STATUS=OK           697 CALLS     5256 TOTAL
                     EDM=   .71E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    33.300        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     5.4133        19.444        .17272E-03   -1.5243    
   3  Prefactor     .10000E-03    21.512        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     12.651        8.9432        .11262E-03   -1.4996    
   5  Prefactor     6.4262        5.8311        .15810E-03   -1.5201    
   6  Prefactor     .10000E-03    4.4583        .14525E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    9.5068        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          3.3332        7.0050        .22167E-03   -1.5343    
   9  Prefactor     .10000E-03    2.1626        .10067E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .71253        8.1469        .37182E-03   -1.5539    
  11  Prefactor     11.261        22.209        .11953E-03   -1.5037    
  12  Prefactor     .10000E-03    5.5142        .16125E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     123.29        82.456        .18123E-03   -1.3483    
  14  Prefactor     .10000E-03    3.3299        .12549E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     88.743        44.362        .42652E-04   -1.3821    
  16  Prefactor     .10000E-03    5.0376        .15447E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    4.5580        .14703E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    3.4006        .12681E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .82761E-01    5.0693        .52684E-01   -1.5650    
  20  Prefactor     .10009E-03    21.135        .29602E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     74.110        50.605        .23328E-03   -1.3984    
  22  norm          3.6148        4.8269        .15944E-03   -1.5328    
  23  Prefactor     .10000E-03    10.092        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          7.4444        1.8917        .46539E-04   -1.5162    
  25  norm          8.3672        5.6424        .12778E-03   -1.5129    
  26  Prefactor     .10000E-03    50.255        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     7.9471        5.0608        .11888E-03   -1.5144    
  28  Prefactor     .10000E-03    10.730        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          .10000E-03    13.274        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    4.8671        .15091E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     1.3444        4.1097        .23847E-03   -1.5476    
  32  Normalizat    1.4865        .23792        .20505E-03   -.78158    
  33  Prefactor     .37866        .22786        .38250E-03   -1.1791    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.14407e-09
Minuit parameter uncertainties:
  1  0.00028939
  2  19.4663
  3  7.37395e-05
  4  8.94417
  5  5.83161
  6  1.03821e-05
  7  2.70344e-05
  8  7.00668
  9  3.89796e-06
  10  4.81917
  11  22.225
  12  4.69373e-05
  13  82.5326
  14  6.03574e-06
  15  44.3781
  16  2.6721e-06
  17  4.14102e-06
  18  9.16639e-08
  19  1.29477
  20  0.00270337
  21  50.6343
  22  4.82741
  23  4.27124e-05
  24  1.89174
  25  5.64272
  26  0.000103787
  27  5.06109
  28  2.78148e-05
  29  3.83042e-05
  30  7.11906e-06
  31  4.11054
  32  0.2381
  33  0.228407
Done.

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

Extracting fit parameters...

4FGL J2329.3-4955
   Spectrum: LogParabola
476         norm:  7.444e+00  1.892e+00  1.000e-04  1.000e+04 ( 1.000e-11)
477        alpha:  2.177e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
478         beta:  1.055e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
479           Eb:  5.219e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
580    Prefactor:  3.787e-01  2.284e-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.487e+00  2.381e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 53.93
Ra Dec: 352.329 -49.932
Photon Index (Fixed Index): 2.18 +/- 0.00
Photon Flux (Fixed Index): 2.02e-07 +/- 5.12e-08
Energy Flux (Fixed Index): 7.67e-05 +/- 1.95e-05

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4977.38996278
delta logL = 0.026171230762

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4977.38641703
delta logL = 0.0297169848827

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.3448       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2482       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4742       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .38772       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=   4977.386     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      203 TOTAL
                     EDM=   .28E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.3448        2.6097        .36999E-02   -.21304E-04
   2  alpha         2.2482        .39224        .17240        .14642E-04
   3  Normalizat    1.4742        .20818        .46528E-01   -.27307E-05
   4  Prefactor     .38772        .20615        .85367E-01    .38419E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 7.34475
  alpha      = 2.24815
  Normalizat = 1.4742
  Prefactor  = 0.38772
 **********
 **   18 **HESSE 
 **********

 FCN=   4977.386     FROM HESSE     STATUS=OK            33 CALLS      236 TOTAL
                     EDM=   .50E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.3448        1.9067        .45744E-04   -1.5166    
   2  alpha         2.2482        .29661        .73944E-02   -.10091    
   3  Normalizat    1.4742        .23171        .20567E-03   -.78506    
   4  Prefactor     .38772        .22783        .37827E-03   -1.1744    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.02881e-11
Minuit parameter uncertainties:
  1  1.90676
  2  0.29732
  3  0.231874
  4  0.22836
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/957382': 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) = 4977.38641703
delta logL = 0.0297169887235

Extracting fit parameters...

4FGL J2329.3-4955
   Spectrum: LogParabola
476         norm:  7.345e+00  1.907e+00  1.000e-04  1.000e+04 ( 1.000e-11)
477        alpha:  2.248e+00  2.973e-01  0.000e+00  5.000e+00 ( 1.000e+00)
478         beta:  1.055e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
479           Eb:  5.219e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
580    Prefactor:  3.877e-01  2.284e-01  0.000e+00  1.000e+01 ( 1.000e+00)
581        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
582        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

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


TS (Free Index): 53.82
Ra Dec: 352.329 -49.932
Photon Index (Free Index): 2.25 +/- 0.30
Photon Flux (Free Index): 2.11e-07 +/- 6.41e-08
Energy Flux (Free Index): 7.39e-05 +/- 2.14e-05

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

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.02e-07', energy_flux2='7.39e-05', photon_flux_error='5.12e-08', dlogl='2.97e-02', energy_flux='7.67e-05', photon_flux2='2.11e-07', job_status='DONE', time_completed='2021-09-29 21:31:43.722228', photon_index_error2='0.30', photon_index2='2.25', ts='53.93', fit_tolerance='1e-08', GAL='0.38', photon_index_error='0.00', energy_flux_error2='2.14e-05', EG='1.49', time_epoch_completed='1632976303.72', return_code='0', job_id='957382', GAL2='0.39', EG2='1.47', return_code2='0', energy_flux_error='1.95e-05', photon_flux_error2='6.41e-08', ts2='53.82', photon_index='2.18' WHERE bin_id='383' AND source_name='4FGL J2329.3-4955' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 21:31:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0041>
Subject: Job 957382: <4FGL_J2329.3-4955_daily_bin383> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2329.3-4955_daily_bin383 352.329 -49.9324 338601601 338860801 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 :                                   732.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             303.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   971 sec.
    Turnaround time :                            975 sec.

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

