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


Performing analysis on: 4FGL_J2329.3-4955_daily_bin1117
RA = 352.329, Dec = -49.9324
tmin = 528854401, tmax = 529113601
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='968348', job_status='RUN', time_executed='2021-09-29 21:31:58.739071', time_epoch_executed='1632976318.74' WHERE source_name='4FGL J2329.3-4955' and cadence='daily' and bin_id='1117'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/968348

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/968348/ft1_4FGL_J2329.3-4955_daily_bin1117.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/968348/ft2_4FGL_J2329.3-4955_daily_bin1117.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/968348/ft1_4FGL_J2329.3-4955_daily_bin1117.fits outfile=/scratch/kocevski/968348/ft1_filteredMKT_4FGL_J2329.3-4955_daily_bin1117.fits ra=352.329 dec=-49.9324 rad=12.0 tmin=528854401.0 tmax=529113601.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 2.59
user 2.36
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/968348/ft2_4FGL_J2329.3-4955_daily_bin1117.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/968348/ft1_filteredMKT_4FGL_J2329.3-4955_daily_bin1117.fits evtable="EVENTS" outfile="/scratch/kocevski/968348/ft1_filtered_4FGL_J2329.3-4955_daily_bin1117.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.44
user 0.25
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/968348/ft1_filtered_4FGL_J2329.3-4955_daily_bin1117.fits" evtable="EVENTS" scfile=/scratch/kocevski/968348/ft2_4FGL_J2329.3-4955_daily_bin1117.fits sctable="SC_DATA" outfile=/scratch/kocevski/968348/ltcube_528854401_529113601_4FGL_J2329.3-4955_daily_bin1117.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/968348/ft2_4FGL_J2329.3-4955_daily_bin1117.fits
.....................!
real 8.73
user 8.41
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/968348/ft1_filtered_4FGL_J2329.3-4955_daily_bin1117.fits evtable="EVENTS" scfile=/scratch/kocevski/968348/ft2_4FGL_J2329.3-4955_daily_bin1117.fits sctable="SC_DATA" expcube=/scratch/kocevski/968348/ltcube_528854401_529113601_4FGL_J2329.3-4955_daily_bin1117.fits outfile=/scratch/kocevski/968348/expmap_528854401_529113601_4FGL_J2329.3-4955_daily_bin1117.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/968348/ltcube_528854401_529113601_4FGL_J2329.3-4955_daily_bin1117.fits
.....................!
real 140.27
user 136.02
sys 4.04

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/968348/ft1_filtered_4FGL_J2329.3-4955_daily_bin1117.fits scfile=/scratch/kocevski/968348/ft2_4FGL_J2329.3-4955_daily_bin1117.fits outfile=/scratch/kocevski/968348/cmap_528854401_529113601_4FGL_J2329.3-4955_daily_bin1117.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.44
user 0.29
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/968348/ft1_filtered_4FGL_J2329.3-4955_daily_bin1117.fits scfile=/scratch/kocevski/968348/ft2_4FGL_J2329.3-4955_daily_bin1117.fits outfile=/scratch/kocevski/968348/cmap_HighResolution_528854401_529113601_4FGL_J2329.3-4955_daily_bin1117.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.44
user 0.27
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/968348/ft1_filtered_4FGL_J2329.3-4955_daily_bin1117.fits evtable="EVENTS" scfile=/scratch/kocevski/968348/ft2_4FGL_J2329.3-4955_daily_bin1117.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/968348/Model_4FGL_J2329.3-4955_daily_bin1117.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/968348/ft1_filtered_4FGL_J2329.3-4955_daily_bin1117.fits.....................!
real 31.28
user 30.21
sys 0.99

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    28.852       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10089E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    29.981       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .28735E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    7.2376       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10251E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .93509E-02   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.7465       1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.8446       1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.7338       1.0000         .10000E-03   10000.    
    17 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    2.5053       1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.1334       1.0000         .10000E-03   10000.    
    21 'Prefactor '    18.733       1.0000         .10000E-03   10000.    
    22 'norm      '    .10164E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    1.0171       1.0000         .10000E-03   10000.    
    25 'norm      '    2.7220       1.0000         .10000E-03   10000.    
    26 'Prefactor '    6.4470       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10189E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    2.8847       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 '    4.9949       1.0000         .10000E-03   10000.    
    32 'Normalizat'    .83063       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .84443       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=   5696.706     FROM MIGRAD    STATUS=CONVERGED    925 CALLS     4665 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     28.859        28.279        .10200E-05    .10472E-03
   2  Prefactor     .10000E-03    21.150        .11351E-06** at limit **
   3  Prefactor     30.025        32.775        .51786E-05    .48805E-03
   4  Prefactor     .10000E-03    3.4177       -.17542E-07** at limit **
   5  Prefactor     .10001E-03    3.6161        .47332E-07** at limit **
   6  Prefactor     .10000E-03    2.1608        .18901E-06** at limit **
   7  norm          .10000E-03    9.5262       -.31686E-06** at limit **
   8  norm          .10000E-03    1.6539       -.81778E-08** at limit **
   9  Prefactor     .10000E-03    2.0121       -.45814E-07** at limit **
  10  Prefactor     7.2316        5.2585        .45027E-06    .73095E-04
  11  Prefactor     .10000E-03    36.530       -.22883E-05** at limit **
  12  Prefactor     .28170        4.8629        .57948E-06   -.15755E-03
  13  Prefactor     .10000E-03    27.491        .19578E-05** at limit **
  14  Prefactor     3.7485        4.2701        .15776E-06   -.46395E-04
  15  Prefactor     1.8239        47.941        .12755E-05   -.29075E-05
  16  Prefactor     3.7392        12.547        .12627E-04   -.18405E-03
  17  norm          .10000E-03    6.5612        .43809E-08** at limit **
  18  norm          .10000E-03    1.7331       -.47557E-07** at limit **
  19  norm          2.5056        2.7187       -.11966E-06   -.71027E-04
  20  Prefactor     4.1348        4.0607       -.13087E-06   -.13624E-03
  21  Prefactor     18.768        27.392        .44405E-05    .29839E-03
  22  norm          .10000E-03    1.8409        .12430E-05** at limit **
  23  Prefactor     .10000E-03    7.5578       -.94682E-07** at limit **
  24  norm          1.0177        1.0290       -.40168E-06   -.11478E-02
  25  norm          2.7234        2.9240       -.44400E-07   -.17965E-03
  26  Prefactor     6.4610        12.146        .81296E-06   -.34891E-04
  27  Prefactor     .10001E-03    1.6307       -.10015E-07** at limit **
  28  Prefactor     2.9407        29.764        .24946E-05   -.99602E-04
  29  norm          .10000E-03    9.6974        .30984E-07** at limit **
  30  Prefactor     .10000E-03    1.8621        .20919E-06** at limit **
  31  Prefactor     4.9949        3.4344        .14499E-06   -.85743E-04
  32  Normalizat    .83010        .16572       -.60627E-05    .13048E-03
  33  Prefactor     .84452        .16538        .32573E-05   -.45695E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 28.8594
  Prefactor  = 0.0001
  Prefactor  = 30.0249
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.23158
  Prefactor  = 0.000100001
  Prefactor  = 0.281698
  Prefactor  = 0.000100002
  Prefactor  = 3.74848
  Prefactor  = 1.82395
  Prefactor  = 3.73921
  norm       = 0.0001
  norm       = 0.0001
  norm       = 2.50563
  Prefactor  = 4.13478
  Prefactor  = 18.7677
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.01767
  norm       = 2.7234
  Prefactor  = 6.46102
  Prefactor  = 0.000100006
  Prefactor  = 2.9407
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.99491
  Normalizat = 0.830101
  Prefactor  = 0.844515
 **********
 **   18 **HESSE 
 **********

 FCN=   5696.706     FROM HESSE     STATUS=OK           697 CALLS     5362 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     28.859        28.308        .74588E-04   -1.4633    
   2  Prefactor     .10000E-03    21.359        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     30.025        33.483        .73172E-04   -1.4612    
   4  Prefactor     .10000E-03    3.4316        .13625E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10001E-03    49.171        .27412E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    2.1699        .10834E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    9.5335        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    1.6540        .94796E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    2.0375        .10449E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     7.2316        5.2488        .14016E-03   -1.5170    
  11  Prefactor     .10000E-03    36.994        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .28170        55.726        .31662E-02   -1.5602    
  13  Prefactor     .10000E-03    27.595        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     3.7485        4.2686        .16166E-03   -1.5321    
  15  Prefactor     1.8239        48.154        .30706E-03   -1.5438    
  16  Prefactor     3.7392        12.780        .10448E-02   -1.5321    
  17  norm          .10000E-03    6.6468        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    1.7343        .97033E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          2.5056        2.7218        .12576E-03   -1.5391    
  20  Prefactor     4.1348        4.0478        .14385E-03   -1.5301    
  21  Prefactor     18.768        27.499        .92537E-04   -1.4841    
  22  norm          .10000E-03    1.8406        .99196E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    7.6164        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          1.0177        .98336        .69826E-03   -1.5506    
  25  norm          2.7234        2.9118        .12505E-03   -1.5378    
  26  Prefactor     6.4610        12.137        .15807E-03   -1.5200    
  27  Prefactor     .10001E-03    10.219        .16854E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     2.9407        25.610        .23928E-03   -1.5365    
  29  norm          .10000E-03    9.7191        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    1.8769        .10050E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     4.9949        3.4335        .11036E-03   -1.5261    
  32  Normalizat    .83010        .19026        .21344E-03   -.98962    
  33  Prefactor     .84452        .19465        .23078E-03   -.98108    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.97626e-09
Minuit parameter uncertainties:
  1  28.3209
  2  0.000178372
  3  33.5038
  4  9.95996e-06
  5  0.00102567
  6  1.42547e-06
  7  3.07525e-05
  8  2.23332e-07
  9  1.01756e-05
  10  5.24914
  11  0.000385765
  12  7.93018
  13  0.000407207
  14  4.26894
  15  18.7599
  16  12.7892
  17  5.25462e-06
  18  3.3889e-06
  19  2.72197
  20  4.0481
  21  27.5178
  22  2.51412e-05
  23  6.35903e-06
  24  0.98338
  25  2.91193
  26  12.1418
  27  0.000474518
  28  17.366
  29  8.30352e-07
  30  7.4381e-07
  31  3.43361
  32  0.190411
  33  0.194809
Done.

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

Extracting fit parameters...

4FGL J2329.3-4955
   Spectrum: LogParabola
476         norm:  1.018e+00  9.834e-01  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:  8.445e-01  1.948e-01  0.000e+00  1.000e+01 ( 1.000e+00)
581        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
582        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
579   Normalization:  8.301e-01  1.904e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.61
Ra Dec: 352.329 -49.932
Photon Index (Fixed Index): 2.18 +/- 0.00
Photon Flux (Fixed Index): 2.76e-08 +/- 2.66e-08
Energy Flux (Fixed Index): 1.05e-05 +/- 1.01e-05

TS (Fixed Index): 1.61
Ra Dec: 352.329 -49.932
Photon Flux Upper Limit: 8.34e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.17e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/968348/likelihoodResults_528854401_529113601_4FGL_J2329.3-4955_daily_bin1117.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) = 5695.62695698
delta logL = 1.07888619435

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5695.5945653
delta logL = 1.11127787482

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .64711       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.4256       1.0000          .0000       5.0000    
     3 'Normalizat'    .77744       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88186       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=   5695.595     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      232 TOTAL
                     EDM=   .65E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .64705        6.6492        .80633E-02    .14456E-02
   2  alpha         3.4260        4.1988        .35457        .35561E-04
   3  Normalizat    .77726        .44029E-01    .43315E-01    .45959E-03
   4  Prefactor     .88207        .48207E-01    .44773E-01    .69373E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.647051
  alpha      = 3.42602
  Normalizat = 0.777261
  Prefactor  = 0.882065
 **********
 **   18 **HESSE 
 **********

 FCN=   5695.595     FROM HESSE     STATUS=OK            31 CALLS      263 TOTAL
                     EDM=   .54E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .64705        .92398        .36372E-04   -1.5547    
   2  alpha         3.4260        1.1298        .14813E-01    .37945    
   3  Normalizat    .77726        .18099        .21964E-03   -1.0092    
   4  Prefactor     .88207        .19513        .22618E-03   -.96771    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.41766e-09
Minuit parameter uncertainties:
  1  0.924001
  2  1.17994
  3  0.181127
  4  0.195283
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/968348': 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) = 5695.59456457
delta logL = 1.11127860469

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
580    Prefactor:  8.821e-01  1.953e-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:  7.773e-01  1.811e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.94
Ra Dec: 352.329 -49.932
Photon Index (Free Index): 3.43 +/- 1.18
Photon Flux (Free Index): 6.44e-08 +/- 4.12e-08
Energy Flux (Free Index): 1.13e-05 +/- 7.43e-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/968348/cmap_HighResolution_528854401_529113601_4FGL_J2329.3-4955_daily_bin1117.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.17e-05', comment='SUCCESS', photon_flux='2.76e-08', energy_flux2='1.13e-05', photon_flux_error='2.66e-08', dlogl='1.11e+00', energy_flux='1.05e-05', photon_flux2='6.44e-08', job_status='DONE', time_completed='2021-09-29 21:42:56.763216', photon_index_error2='1.18', photon_index2='3.43', ts='1.61', fit_tolerance='1e-08', GAL='0.84', photon_index_error='0.00', photon_flux_upper_limit='8.34e-08', energy_flux_error2='7.43e-06', EG='0.83', time_epoch_completed='1632976976.76', return_code='0', job_id='968348', GAL2='0.88', EG2='0.78', return_code2='0', energy_flux_error='1.01e-05', photon_flux_error2='4.12e-08', ts2='3.94', photon_index='2.18' WHERE bin_id='1117' AND source_name='4FGL J2329.3-4955' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 21:42:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0189>
Subject: Job 968348: <4FGL_J2329.3-4955_daily_bin1117> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2329.3-4955_daily_bin1117 352.329 -49.9324 528854401 529113601 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 :                                   655.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             335.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   750 sec.
    Turnaround time :                            753 sec.

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

