/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 68 seconds before starting...
Proceeding.

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

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

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

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

number of points = 7472
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2329.3-4955_daily_bin241
RA = 352.329, Dec = -49.9324
tmin = 301795201, tmax = 302054401
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='956980', job_status='RUN', time_executed='2021-09-29 21:16:36.026864', time_epoch_executed='1632975396.03' WHERE source_name='4FGL J2329.3-4955' and cadence='daily' and bin_id='241'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/956980

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/956980/ft1_4FGL_J2329.3-4955_daily_bin241.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/956980/ft2_4FGL_J2329.3-4955_daily_bin241.fits


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

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

Done.
real 4.09
user 3.82
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/956980/ft1_filtered_4FGL_J2329.3-4955_daily_bin241.fits" evtable="EVENTS" scfile=/scratch/kocevski/956980/ft2_4FGL_J2329.3-4955_daily_bin241.fits sctable="SC_DATA" outfile=/scratch/kocevski/956980/ltcube_301795201_302054401_4FGL_J2329.3-4955_daily_bin241.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/956980/ft2_4FGL_J2329.3-4955_daily_bin241.fits
.....................!
real 12.01
user 11.68
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/956980/ft1_filtered_4FGL_J2329.3-4955_daily_bin241.fits evtable="EVENTS" scfile=/scratch/kocevski/956980/ft2_4FGL_J2329.3-4955_daily_bin241.fits sctable="SC_DATA" expcube=/scratch/kocevski/956980/ltcube_301795201_302054401_4FGL_J2329.3-4955_daily_bin241.fits outfile=/scratch/kocevski/956980/expmap_301795201_302054401_4FGL_J2329.3-4955_daily_bin241.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/956980/ltcube_301795201_302054401_4FGL_J2329.3-4955_daily_bin241.fits
.....................!
real 189.45
user 184.46
sys 4.66

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

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

This is gtbin version HEAD
real 0.54
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/956980/ft1_filtered_4FGL_J2329.3-4955_daily_bin241.fits scfile=/scratch/kocevski/956980/ft2_4FGL_J2329.3-4955_daily_bin241.fits outfile=/scratch/kocevski/956980/cmap_HighResolution_301795201_302054401_4FGL_J2329.3-4955_daily_bin241.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.53
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/956980/ft1_filtered_4FGL_J2329.3-4955_daily_bin241.fits evtable="EVENTS" scfile=/scratch/kocevski/956980/ft2_4FGL_J2329.3-4955_daily_bin241.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/956980/Model_4FGL_J2329.3-4955_daily_bin241.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/956980/ft1_filtered_4FGL_J2329.3-4955_daily_bin241.fits.....................!
real 40.91
user 38.95
sys 1.33

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .58638       1.0000         .10000E-03   10000.    
     2 'Prefactor '    9.4327       1.0000         .10000E-03   10000.    
     3 'Prefactor '    21.585       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.7838       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    73.027       1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    7.1781       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.4868       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10162E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.7114       1.0000         .10000E-03   10000.    
    15 'Prefactor '    40.416       1.0000         .10000E-03   10000.    
    16 'Prefactor '    15.548       1.0000         .10000E-03   10000.    
    17 'norm      '    8.8071       1.0000         .10000E-03   10000.    
    18 'norm      '    .10060E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10276E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10115E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    1.1442       1.0000         .10000E-03   10000.    
    23 'Prefactor '    14.740       1.0000         .10000E-03   10000.    
    24 'norm      '    10.118       1.0000         .10000E-03   10000.    
    25 'norm      '    8.2713       1.0000         .10000E-03   10000.    
    26 'Prefactor '    46.703       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10173E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    2.3897       1.0000         .10000E-03   10000.    
    29 'norm      '    20.598       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    6.2218       1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.2177       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .62642       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=   5160.489     FROM MIGRAD    STATUS=CONVERGED    987 CALLS     4696 TOTAL
                     EDM=   .66E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .13896        87.810       -.43479E-07    .27701E-04
   2  Prefactor     9.4288        23.776       -.83927E-05   -.30613E-04
   3  Prefactor     21.539        45.760        .24133E-04    .50344E-04
   4  Prefactor     .10000E-03    5.9330        .47048E-07** at limit **
   5  Prefactor     5.7883        7.3021       -.89158E-06   -.44371E-04
   6  Prefactor     .10000E-03    4.0304       -.45645E-07** at limit **
   7  norm          73.013        44.306        .14139E-05    .36259E-05
   8  norm          .10000E-03    2.1126       -.55552E-08** at limit **
   9  Prefactor     .10000E-03    1.6113        .46432E-08** at limit **
  10  Prefactor     7.1723        6.3170        .11748E-06   -.55257E-03
  11  Prefactor     .10000E-03    41.311       -.31309E-06** at limit **
  12  Prefactor     5.4876        10.351        .17514E-06   -.21076E-04
  13  Prefactor     .10000E-03    46.692        .87699E-06** at limit **
  14  Prefactor     1.7107        2.5433        .39891E-06   -.19559E-02
  15  Prefactor     40.516        40.334        .32675E-05    .58729E-05
  16  Prefactor     15.542        18.904        .37290E-07   -.55584E-04
  17  norm          8.8036        8.8176       -.15554E-06    .13030E-03
  18  norm          .10000E-03    2.6343       -.16546E-08** at limit **
  19  norm          .10000E-03    2.0088        .13915E-08** at limit **
  20  Prefactor     .10000E-03    3.5537       -.20578E-06** at limit **
  21  Prefactor     .10000E-03    74.143        .21191E-05** at limit **
  22  norm          1.1423        6.2358        .61924E-06   -.10621E-03
  23  Prefactor     14.757        17.099        .54462E-05    .47284E-04
  24  norm          10.117        2.3517       -.10476E-06    .16231E-03
  25  norm          8.2723        6.2359       -.17920E-06   -.10508E-03
  26  Prefactor     46.695        20.636       -.65934E-06   -.22495E-04
  27  Prefactor     .10000E-03    3.2898       -.72661E-07** at limit **
  28  Prefactor     2.3684        54.144       -.89927E-05   -.26387E-04
  29  norm          20.597        26.536        .80383E-07    .98039E-05
  30  Prefactor     .10000E-03    4.4536       -.11437E-06** at limit **
  31  Prefactor     6.2254        5.8748        .32499E-06   -.81932E-03
  32  Normalizat    1.2178        .21234       -.22693E-05    .11005E-03
  33  Prefactor     .62641        .20506        .60783E-06   -.75987E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.138962
  Prefactor  = 9.4288
  Prefactor  = 21.5391
  Prefactor  = 0.0001
  Prefactor  = 5.78832
  Prefactor  = 0.0001
  norm       = 73.0132
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.17229
  Prefactor  = 0.0001
  Prefactor  = 5.48758
  Prefactor  = 0.0001
  Prefactor  = 1.71067
  Prefactor  = 40.5159
  Prefactor  = 15.5419
  norm       = 8.80364
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.14231
  Prefactor  = 14.7574
  norm       = 10.117
  norm       = 8.27233
  Prefactor  = 46.6949
  Prefactor  = 0.0001
  Prefactor  = 2.36841
  norm       = 20.5965
  Prefactor  = 0.0001
  Prefactor  = 6.22538
  Normalizat = 1.21775
  Prefactor  = 0.626409
 **********
 **   18 **HESSE 
 **********

 FCN=   5160.489     FROM HESSE     STATUS=OK           707 CALLS     5403 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .13896        83.236        .19164       -1.5633    
   2  Prefactor     9.4288        23.733        .13049E-03   -1.5094    
   3  Prefactor     21.539        45.754        .86213E-04   -1.4779    
   4  Prefactor     .10000E-03    5.9628        .17086E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     5.7883        7.3006        .16700E-03   -1.5227    
   6  Prefactor     .10000E-03    4.0490        .14084E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          73.013        44.304        .46981E-04   -1.3997    
   8  norm          .10000E-03    2.1140        .10197E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    1.6218        .89034E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     7.1723        6.4156        .74859E-03   -1.5172    
  11  Prefactor     .10000E-03    41.580        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     5.4876        10.343        .17153E-03   -1.5239    
  13  Prefactor     .10000E-03    46.701        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.7107        6.3237        .16066E-02   -1.5446    
  15  Prefactor     40.516        40.317        .63052E-04   -1.4434    
  16  Prefactor     15.542        18.942        .50788E-03   -1.4919    
  17  norm          8.8036        8.8260        .67532E-03   -1.5114    
  18  norm          .10000E-03    2.6370        .11386E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    2.0090        .99394E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    3.5681        .13211E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    74.513        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          1.1423        5.9014        .30562E-03   -1.5494    
  23  Prefactor     14.757        17.084        .10432E-03   -1.4939    
  24  norm          10.117        2.3440        .47775E-04   -1.5072    
  25  norm          8.2723        6.0603        .13419E-03   -1.5133    
  26  Prefactor     46.695        20.724        .58672E-04   -1.4340    
  27  Prefactor     .10000E-03    5.5627        .23548E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     2.3684        49.186        .26494E-03   -1.5400    
  29  norm          20.597        26.328        .88251E-04   -1.4800    
  30  Prefactor     .10000E-03    4.5264        .29452E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     6.2254        6.0312        .79093E-03   -1.5209    
  32  Normalizat    1.2178        .26077        .23069E-03   -.86056    
  33  Prefactor     .62641        .24726        .31869E-03   -1.0649    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.00297e-08
Minuit parameter uncertainties:
  1  6.80904
  2  23.7563
  3  45.8286
  4  2.24654e-06
  5  7.3017
  6  1.02577e-05
  7  44.3244
  8  5.28052e-07
  9  2.24843e-06
  10  6.41623
  11  4.45394e-05
  12  10.3463
  13  1.21468e-05
  14  6.32612
  15  40.3444
  16  18.9496
  17  8.82729
  18  1.11118e-06
  19  4.91617e-07
  20  4.55881e-05
  21  2.8258e-05
  22  5.19333
  23  17.0893
  24  2.344
  25  6.06075
  26  20.7268
  27  2.59646e-05
  28  21.6063
  29  26.3425
  30  2.92812e-05
  31  6.03176
  32  0.261053
  33  0.247688
Done.

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

Extracting fit parameters...

4FGL J2329.3-4955
   Spectrum: LogParabola
476         norm:  1.012e+01  2.344e+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:  6.264e-01  2.477e-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.218e+00  2.611e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 74.09
Ra Dec: 352.329 -49.932
Photon Index (Fixed Index): 2.18 +/- 0.00
Photon Flux (Fixed Index): 2.74e-07 +/- 6.34e-08
Energy Flux (Fixed Index): 1.04e-04 +/- 2.41e-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) = 5159.93197694
delta logL = 0.556870648747

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5159.88586184
delta logL = 0.602985740352

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    9.3663       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4447       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1628       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .66599       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=   5159.886     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      210 TOTAL
                     EDM=   .22E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          9.3666        3.5233        .32737E-02    .11361E-04
   2  alpha         2.4447        .38757        .13467        .28152E-04
   3  Normalizat    1.1628        .20133        .53095E-01    .41764E-05
   4  Prefactor     .66601        .20402        .69973E-01    .20216E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 9.36664
  alpha      = 2.44466
  Normalizat = 1.16278
  Prefactor  = 0.666015
 **********
 **   18 **HESSE 
 **********

 FCN=   5159.886     FROM HESSE     STATUS=OK            31 CALLS      241 TOTAL
                     EDM=   .38E-14    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          9.3666        2.2172        .43949E-04   -1.5096    
   2  alpha         2.4447        .24866        .58687E-03   -.22136E-01
   3  Normalizat    1.1628        .24318        .23476E-03   -.87761    
   4  Prefactor     .66601        .24529        .30968E-03   -1.0487    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.7803e-15
Minuit parameter uncertainties:
  1  2.21717
  2  0.249075
  3  0.243413
  4  0.245689
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/956980': 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) = 5159.88586179
delta logL = 0.602985793799

Extracting fit parameters...

4FGL J2329.3-4955
   Spectrum: LogParabola
476         norm:  9.367e+00  2.217e+00  1.000e-04  1.000e+04 ( 1.000e-11)
477        alpha:  2.445e+00  2.491e-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:  6.660e-01  2.457e-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.163e+00  2.434e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 75.41
Ra Dec: 352.329 -49.932
Photon Index (Free Index): 2.44 +/- 0.25
Photon Flux (Free Index): 3.20e-07 +/- 7.76e-08
Energy Flux (Free Index): 9.27e-05 +/- 2.12e-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/956980/cmap_HighResolution_301795201_302054401_4FGL_J2329.3-4955_daily_bin241.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.74e-07', energy_flux2='9.27e-05', photon_flux_error='6.34e-08', dlogl='6.03e-01', energy_flux='1.04e-04', photon_flux2='3.20e-07', job_status='DONE', time_completed='2021-09-29 21:29:08.273693', photon_index_error2='0.25', photon_index2='2.44', ts='74.09', fit_tolerance='1e-08', GAL='0.63', photon_index_error='0.00', energy_flux_error2='2.12e-05', EG='1.22', time_epoch_completed='1632976148.27', return_code='0', job_id='956980', GAL2='0.67', EG2='1.16', return_code2='0', energy_flux_error='2.41e-05', photon_flux_error2='7.76e-08', ts2='75.41', photon_index='2.18' WHERE bin_id='241' AND source_name='4FGL J2329.3-4955' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 21:29:08 PDT 2021


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

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2329.3-4955_daily_bin241 352.329 -49.9324 301795201 302054401 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 :                                   748.06 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             321.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   833 sec.
    Turnaround time :                            834 sec.

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

