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

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


Waiting 70 seconds before starting...
Proceeding.

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

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

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

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

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


Performing analysis on: 4FGL_J2329.3-4955_daily_bin1040
RA = 352.329, Dec = -49.9324
tmin = 508896001, tmax = 509155201
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='968165', job_status='RUN', time_executed='2021-09-29 21:31:37.044907', time_epoch_executed='1632976297.04' WHERE source_name='4FGL J2329.3-4955' and cadence='daily' and bin_id='1040'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/968165

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/968165/ft1_4FGL_J2329.3-4955_daily_bin1040.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/968165/ft2_4FGL_J2329.3-4955_daily_bin1040.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/968165/ft1_4FGL_J2329.3-4955_daily_bin1040.fits outfile=/scratch/kocevski/968165/ft1_filteredMKT_4FGL_J2329.3-4955_daily_bin1040.fits ra=352.329 dec=-49.9324 rad=12.0 tmin=508896001.0 tmax=509155201.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.74
user 3.46
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/968165/ft1_filtered_4FGL_J2329.3-4955_daily_bin1040.fits" evtable="EVENTS" scfile=/scratch/kocevski/968165/ft2_4FGL_J2329.3-4955_daily_bin1040.fits sctable="SC_DATA" outfile=/scratch/kocevski/968165/ltcube_508896001_509155201_4FGL_J2329.3-4955_daily_bin1040.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/968165/ft2_4FGL_J2329.3-4955_daily_bin1040.fits
.....................!
real 12.14
user 11.66
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/968165/ft1_filtered_4FGL_J2329.3-4955_daily_bin1040.fits evtable="EVENTS" scfile=/scratch/kocevski/968165/ft2_4FGL_J2329.3-4955_daily_bin1040.fits sctable="SC_DATA" expcube=/scratch/kocevski/968165/ltcube_508896001_509155201_4FGL_J2329.3-4955_daily_bin1040.fits outfile=/scratch/kocevski/968165/expmap_508896001_509155201_4FGL_J2329.3-4955_daily_bin1040.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/968165/ltcube_508896001_509155201_4FGL_J2329.3-4955_daily_bin1040.fits
.....................!
real 192.12
user 186.10
sys 5.54

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/968165/ft1_filtered_4FGL_J2329.3-4955_daily_bin1040.fits scfile=/scratch/kocevski/968165/ft2_4FGL_J2329.3-4955_daily_bin1040.fits outfile=/scratch/kocevski/968165/cmap_508896001_509155201_4FGL_J2329.3-4955_daily_bin1040.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.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/968165/ft1_filtered_4FGL_J2329.3-4955_daily_bin1040.fits scfile=/scratch/kocevski/968165/ft2_4FGL_J2329.3-4955_daily_bin1040.fits outfile=/scratch/kocevski/968165/cmap_HighResolution_508896001_509155201_4FGL_J2329.3-4955_daily_bin1040.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=352.329 yref=-49.9324 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.55
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/968165/ft1_filtered_4FGL_J2329.3-4955_daily_bin1040.fits evtable="EVENTS" scfile=/scratch/kocevski/968165/ft2_4FGL_J2329.3-4955_daily_bin1040.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/968165/Model_4FGL_J2329.3-4955_daily_bin1040.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/968165/ft1_filtered_4FGL_J2329.3-4955_daily_bin1040.fits.....................!
real 37.47
user 36.09
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    46.491       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10112E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    16.946       1.0000         .10000E-03   10000.    
     4 'Prefactor '    23.105       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10071E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    11.503       1.0000         .10000E-03   10000.    
     7 'norm      '    2.7376       1.0000         .10000E-03   10000.    
     8 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.4396       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    10.885       1.0000         .10000E-03   10000.    
    17 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10207E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    6.0569       1.0000         .10000E-03   10000.    
    21 'Prefactor '    77.690       1.0000         .10000E-03   10000.    
    22 'norm      '    .20959E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10218E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    1.5212       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .92816       1.0000         .10000E-03   10000.    
    27 'Prefactor '    1.2414       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10229E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    15.730       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10543E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.0082       1.0000         .10000E-01   10.000    
    33 'Prefactor '    1.2534       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=   4571.280     FROM MIGRAD    STATUS=CONVERGED    864 CALLS     4535 TOTAL
                     EDM=   .88E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     46.484        95.595       -.14856E-06   -.11032E-05
   2  Prefactor     .10000E-03    10.275        .73437E-06** at limit **
   3  Prefactor     16.881        48.820        .44783E-05    .12148E-03
   4  Prefactor     23.101        15.658        .30934E-06    .10885E-03
   5  Prefactor     .10000E-03    4.1403        .33163E-06** at limit **
   6  Prefactor     11.505        11.786       -.19910E-06    .50780E-05
   7  norm          2.7316        120.32       -.16466E-05   -.83985E-06
   8  norm          .10000E-03    9.1346       -.37111E-06** at limit **
   9  Prefactor     .10000E-03    1.5105       -.99565E-07** at limit **
  10  Prefactor     6.4398        6.4114       -.79484E-07    .23754E-04
  11  Prefactor     .10000E-03    21.713       -.19393E-07** at limit **
  12  Prefactor     .10000E-03    9.7762       -.56426E-06** at limit **
  13  Prefactor     .10000E-03    54.982        .18688E-06** at limit **
  14  Prefactor     .10000E-03    3.5807       -.28225E-06** at limit **
  15  Prefactor     .10000E-03    14.713        .25609E-07** at limit **
  16  Prefactor     10.870        20.717       -.20814E-09    .24432E-04
  17  norm          .10000E-03    6.5608       -.20900E-06** at limit **
  18  norm          .10000E-03    3.9068        .80555E-07** at limit **
  19  norm          .10000E-03    3.2893        .37571E-06** at limit **
  20  Prefactor     6.0574        7.7576       -.23386E-06   -.38211E-04
  21  Prefactor     77.659        61.733       -.68945E-06   -.21594E-03
  22  norm          .10000E-03    8.2740        .33785E-05** at limit **
  23  Prefactor     .10000E-03    12.685       -.18364E-06** at limit **
  24  norm          .10000E-03    .62893       -.40801E-07** at limit **
  25  norm          1.5284        4.9006       -.11248E-05   -.33824E-03
  26  Prefactor     1.0795        70.100       -.15925E-04    .13070E-03
  27  Prefactor     1.2384        3.2453        .11823E-06    .61609E-04
  28  Prefactor     .10000E-03    13.858        .61991E-06** at limit **
  29  norm          15.733        21.931       -.28858E-07   -.83257E-05
  30  Prefactor     .10000E-03    4.9205        .58122E-06** at limit **
  31  Prefactor     .10000E-03    3.6494        .65341E-06** at limit **
  32  Normalizat    1.0082        .26077        .82437E-06    .24843E-03
  33  Prefactor     1.2533        .25415        .35211E-06   -.15081E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 46.4837
  Prefactor  = 0.0001
  Prefactor  = 16.881
  Prefactor  = 23.1008
  Prefactor  = 0.0001
  Prefactor  = 11.5053
  norm       = 2.73156
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.43979
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.8704
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 6.05743
  Prefactor  = 77.6589
  norm       = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 1.52835
  Prefactor  = 1.0795
  Prefactor  = 1.23837
  Prefactor  = 0.0001
  norm       = 15.7329
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.00817
  Prefactor  = 1.25329
 **********
 **   18 **HESSE 
 **********

 FCN=   4571.280     FROM HESSE     STATUS=OK           683 CALLS     5218 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     46.484        95.639        .58805E-04   -1.4343    
   2  Prefactor     .10000E-03    10.285        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     16.881        49.417        .97293E-04   -1.4886    
   4  Prefactor     23.101        15.617        .83333E-04   -1.4746    
   5  Prefactor     .10000E-03    4.1513        .13437E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     11.505        11.792        .11812E-03   -1.5029    
   7  norm          2.7316        120.33        .24608E-03   -1.5377    
   8  norm          .10000E-03    9.3609        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    1.5143        .81158E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     6.4398        6.4127        .15816E-03   -1.5200    
  11  Prefactor     .10000E-03    21.851        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    9.8895        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    55.013        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    3.5923        .12500E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    14.717        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     10.870        20.706        .12143E-03   -1.5048    
  17  norm          .10000E-03    6.5653        .16917E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    3.9232        .13049E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    3.2973        .11972E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     6.0574        7.7409        .16314E-03   -1.5216    
  21  Prefactor     77.659        60.861        .45560E-04   -1.3943    
  22  norm          .10000E-03    8.6438        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    12.726        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    .64613        .10440E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          1.5284        4.8408        .24874E-03   -1.5461    
  26  Prefactor     1.0795        73.952        .51338E-02   -1.5500    
  27  Prefactor     1.2384        3.1709        .18676E-03   -1.5485    
  28  Prefactor     .10000E-03    13.868        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          15.733        21.908        .10099E-03   -1.4914    
  30  Prefactor     .10000E-03    4.9648        .14606E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .10000E-03    3.6779        .12605E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    1.0082        .29008        .26505E-03   -.92757    
  33  Prefactor     1.2533        .28440        .25709E-03   -.84707    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.51928e-09
Minuit parameter uncertainties:
  1  95.9571
  2  3.58852e-05
  3  49.5368
  4  15.6196
  5  5.03331e-06
  6  11.7942
  7  36.3375
  8  4.2218e-05
  9  3.1064e-06
  10  6.41335
  11  4.0953e-05
  12  4.39137e-05
  13  6.35295e-05
  14  1.65361e-05
  15  8.89565e-06
  16  20.7195
  17  1.79645e-05
  18  4.38624e-06
  19  7.18364e-06
  20  7.74216
  21  60.91
  22  0.000182714
  23  2.19062e-05
  24  1.53961e-06
  25  4.84206
  26  17.8919
  27  3.17133
  28  2.76627e-05
  29  21.919
  30  2.15745e-05
  31  2.39366e-05
  32  0.290531
  33  0.284752
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
580    Prefactor:  1.253e+00  2.848e-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.008e+00  2.905e-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: 7.09e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.70e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/968165/likelihoodResults_508896001_509155201_4FGL_J2329.3-4955_daily_bin1040.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4571.28702969
delta logL = -0.00718579982822

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4571.12624778
delta logL = 0.153596110501

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .39596E-01   1.0000         .10000E-03   10000.    
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    .96754       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2806       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5830E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4571.126     FROM MIGRAD    STATUS=CONVERGED     99 CALLS      345 TOTAL
                     EDM=   .60E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .39593E-01    .90949E-01    .25620E-03    .15841E-01
   2  alpha         5.0000        4.6906        .50000    ** at limit **
   3  Normalizat    .96744        .27232        .26988E-03   -.14179E-03
   4  Prefactor     1.2806        .28509        .25473E-03   -.57752E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.039593
  alpha      = 5
  Normalizat = 0.967436
  Prefactor  = 1.28064
 **********
 **   18 **HESSE 
 **********

 FCN=   4571.126     FROM HESSE     STATUS=OK            31 CALLS      376 TOTAL
                     EDM=   .95E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .39593E-01    .86820E-01    .51240E-04   -1.5668    
   2  alpha         5.0000        4.5983        .50000        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .96744        .27287        .10795E-04   -.94129    
   4  Prefactor     1.2806        .28557        .10189E-04   -.83885    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.53198e-11
Minuit parameter uncertainties:
  1  0.0868208
  2  0.000107538
  3  0.273262
  4  0.285915
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/968165': 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) = 4571.12624679
delta logL = 0.153597105605

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
580    Prefactor:  1.281e+00  2.859e-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:  9.674e-01  2.733e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

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

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.70e-05', job_status='DONE', photon_flux_upper_limit='7.09e-08', time_completed='2021-09-29 21:44:30.176437', job_id='968165', GAL2='1.28', fit_tolerance='1e-08', EG2='0.97', EG='1.01', time_epoch_completed='1632977070.18', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.25', dlogl='1.54e-01', ts2='0.33', photon_index_error='0.00', photon_index='2.18' WHERE bin_id='1040' AND source_name='4FGL J2329.3-4955' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 21:44:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0269>
Subject: Job 968165: <4FGL_J2329.3-4955_daily_bin1040> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2329.3-4955_daily_bin1040 352.329 -49.9324 508896001 509155201 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 :                                   770.47 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             314.64 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   852 sec.
    Turnaround time :                            853 sec.

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

