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


Performing analysis on: 4FGL_J2329.3-4955_daily_bin1352
RA = 352.329, Dec = -49.9324
tmin = 589766401, tmax = 590025601
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='968915', job_status='RUN', time_executed='2021-09-29 21:31:22.342022', time_epoch_executed='1632976282.34' WHERE source_name='4FGL J2329.3-4955' and cadence='daily' and bin_id='1352'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/968915

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/968915/ft1_4FGL_J2329.3-4955_daily_bin1352.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/968915/ft2_4FGL_J2329.3-4955_daily_bin1352.fits


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

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

Done.
real 5.30
user 4.98
sys 0.25

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/968915/ft2_4FGL_J2329.3-4955_daily_bin1352.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/968915/ft1_filteredMKT_4FGL_J2329.3-4955_daily_bin1352.fits evtable="EVENTS" outfile="/scratch/kocevski/968915/ft1_filtered_4FGL_J2329.3-4955_daily_bin1352.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/968915/ft1_filtered_4FGL_J2329.3-4955_daily_bin1352.fits" evtable="EVENTS" scfile=/scratch/kocevski/968915/ft2_4FGL_J2329.3-4955_daily_bin1352.fits sctable="SC_DATA" outfile=/scratch/kocevski/968915/ltcube_589766401_590025601_4FGL_J2329.3-4955_daily_bin1352.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/968915/ft2_4FGL_J2329.3-4955_daily_bin1352.fits
.....................!
real 11.88
user 11.52
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/968915/ft1_filtered_4FGL_J2329.3-4955_daily_bin1352.fits evtable="EVENTS" scfile=/scratch/kocevski/968915/ft2_4FGL_J2329.3-4955_daily_bin1352.fits sctable="SC_DATA" expcube=/scratch/kocevski/968915/ltcube_589766401_590025601_4FGL_J2329.3-4955_daily_bin1352.fits outfile=/scratch/kocevski/968915/expmap_589766401_590025601_4FGL_J2329.3-4955_daily_bin1352.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/968915/ltcube_589766401_590025601_4FGL_J2329.3-4955_daily_bin1352.fits
.....................!
real 190.95
user 185.30
sys 5.20

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/968915/ft1_filtered_4FGL_J2329.3-4955_daily_bin1352.fits scfile=/scratch/kocevski/968915/ft2_4FGL_J2329.3-4955_daily_bin1352.fits outfile=/scratch/kocevski/968915/cmap_589766401_590025601_4FGL_J2329.3-4955_daily_bin1352.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.75
user 0.38
sys 0.36

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/968915/ft1_filtered_4FGL_J2329.3-4955_daily_bin1352.fits scfile=/scratch/kocevski/968915/ft2_4FGL_J2329.3-4955_daily_bin1352.fits outfile=/scratch/kocevski/968915/cmap_HighResolution_589766401_590025601_4FGL_J2329.3-4955_daily_bin1352.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/968915/ft1_filtered_4FGL_J2329.3-4955_daily_bin1352.fits evtable="EVENTS" scfile=/scratch/kocevski/968915/ft2_4FGL_J2329.3-4955_daily_bin1352.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/968915/Model_4FGL_J2329.3-4955_daily_bin1352.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/968915/ft1_filtered_4FGL_J2329.3-4955_daily_bin1352.fits.....................!
real 43.35
user 42.01
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .14628E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    4.8361       1.0000         .10000E-03   10000.    
     3 'Prefactor '    15.941       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10203E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    12.808       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    24.076       1.0000         .10000E-03   10000.    
     8 'norm      '    3.9809       1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.2283       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    18.324       1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.9973       1.0000         .10000E-03   10000.    
    13 'Prefactor '    116.25       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10462E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    1.5887       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .19658E-02   1.0000         .10000E-03   10000.    
    21 'Prefactor '    40.173       1.0000         .10000E-03   10000.    
    22 'norm      '    2.2276       1.0000         .10000E-03   10000.    
    23 'Prefactor '    5.1151       1.0000         .10000E-03   10000.    
    24 'norm      '    1.4018       1.0000         .10000E-03   10000.    
    25 'norm      '    6.7777       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    5.1689       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    5.5686       1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10327E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.0708       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .52863       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=   5843.501     FROM MIGRAD    STATUS=CONVERGED    925 CALLS     4709 TOTAL
                     EDM=   .25E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    76.354       -.38956E-06** at limit **
   2  Prefactor     4.8176        29.257        .16459E-04    .34720E-04
   3  Prefactor     15.957        44.167       -.85851E-05   -.15500E-04
   4  Prefactor     .10000E-03    3.8927       -.17311E-06** at limit **
   5  Prefactor     12.810        8.7206        .10702E-05    .35231E-04
   6  Prefactor     .10000E-03    5.6089       -.66076E-06** at limit **
   7  norm          24.065        34.254        .61292E-05    .30245E-05
   8  norm          3.9808        3.9172       -.34602E-05    .32158E-04
   9  Prefactor     1.2283        2.9320        .22240E-06   -.83316E-04
  10  Prefactor     .10000E-03    1.8344        .50611E-07** at limit **
  11  Prefactor     18.325        25.944       -.43149E-05   -.29097E-04
  12  Prefactor     7.9949        12.184        .16148E-05   -.60651E-07
  13  Prefactor     116.26        100.11        .27556E-05   -.62561E-05
  14  Prefactor     .10000E-03    2.1981        .30940E-07** at limit **
  15  Prefactor     .10000E-03    10.600        .21628E-05** at limit **
  16  Prefactor     .10000E-03    7.1050        .22781E-05** at limit **
  17  norm          .10000E-03    2.5039        .57073E-07** at limit **
  18  norm          .10000E-03    3.4488       -.27126E-06** at limit **
  19  norm          1.5811        4.7986       -.46749E-06   -.78918E-04
  20  Prefactor     .10001E-03    3.5822        .51446E-06** at limit **
  21  Prefactor     39.980        33.833       -.23840E-06   -.10596E-04
  22  norm          2.2520        1.7816        .10654E-06   -.18836E-02
  23  Prefactor     5.0991        11.209       -.45294E-06   -.52696E-03
  24  norm          1.4016        .80956        .22338E-07   -.32839E-03
  25  norm          6.7762        4.0081       -.31694E-06   -.36240E-04
  26  Prefactor     .10000E-03    10.286       -.79246E-06** at limit **
  27  Prefactor     5.1687        3.5576       -.23425E-06   -.14118E-03
  28  Prefactor     .10000E-03    5.8600       -.14399E-06** at limit **
  29  norm          .10000E-03    7.2597       -.23444E-05** at limit **
  30  Prefactor     5.5686        5.2605        .85702E-06   -.11340E-04
  31  Prefactor     .10000E-03    1.4799       -.19496E-06** at limit **
  32  Normalizat    1.0708        .16330       -.11692E-05   -.56912E-05
  33  Prefactor     .52863        .16326        .39667E-06   -.96437E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 4.81758
  Prefactor  = 15.9566
  Prefactor  = 0.0001
  Prefactor  = 12.8101
  Prefactor  = 0.0001
  norm       = 24.0654
  norm       = 3.98084
  Prefactor  = 1.22832
  Prefactor  = 0.0001
  Prefactor  = 18.3248
  Prefactor  = 7.99485
  Prefactor  = 116.259
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.000100001
  norm       = 1.58109
  Prefactor  = 0.000100008
  Prefactor  = 39.9796
  norm       = 2.252
  Prefactor  = 5.09907
  norm       = 1.4016
  norm       = 6.77623
  Prefactor  = 0.0001
  Prefactor  = 5.16873
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 5.5686
  Prefactor  = 0.0001
  Normalizat = 1.0708
  Prefactor  = 0.528631
 **********
 **   18 **HESSE 
 **********

 FCN=   5843.501     FROM HESSE     STATUS=OK           703 CALLS     5412 TOTAL
                     EDM=   .80E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    76.684        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     4.8176        29.154        .18293E-03   -1.5269    
   3  Prefactor     15.957        43.747        .10031E-03   -1.4909    
   4  Prefactor     .10000E-03    3.9091        .14725E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     12.810        8.7049        .11193E-03   -1.4992    
   6  Prefactor     .10000E-03    24.883        .34378E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          24.065        34.221        .81636E-04   -1.4726    
   8  norm          3.9808        3.9063        .14578E-03   -1.5309    
   9  Prefactor     1.2283        2.9159        .19344E-03   -1.5486    
  10  Prefactor     .10000E-03    1.8505        .10105E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     18.325        25.876        .93565E-04   -1.4852    
  12  Prefactor     7.9949        12.100        .14178E-03   -1.5142    
  13  Prefactor     116.26        99.949        .37316E-04   -1.3547    
  14  Prefactor     .10000E-03    2.2072        .11067E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    10.603        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    7.1351        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    2.5042        .11814E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    11.617        .27239E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          1.5811        4.9296        .26197E-03   -1.5456    
  20  Prefactor     .10001E-03    26.249        .24711E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     39.980        49.305        .63242E-04   -1.4443    
  22  norm          2.2520        6.8527        .97425E-03   -1.5408    
  23  Prefactor     5.0991        10.337        .88884E-03   -1.5256    
  24  norm          1.4016        .80508        .49744E-04   -1.5471    
  25  norm          6.7762        4.0054        .10922E-03   -1.5187    
  26  Prefactor     .10000E-03    10.498        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     5.1687        3.5459        .10829E-03   -1.5253    
  28  Prefactor     .10000E-03    5.8627        .18070E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          .10000E-03    7.2620        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     5.5686        5.2468        .15407E-03   -1.5236    
  31  Prefactor     .10000E-03    1.4928        .90697E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    1.0708        .19474        .19765E-03   -.90695    
  33  Prefactor     .52863        .19209        .28744E-03   -1.1068    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.0366e-09
Minuit parameter uncertainties:
  1  3.30593e-05
  2  23.7194
  3  43.835
  4  1.89868e-05
  5  8.70574
  6  0.000197803
  7  34.2494
  8  3.90652
  9  2.91619
  10  1.0337e-05
  11  25.8923
  12  12.1036
  13  100.094
  14  2.45245e-06
  15  9.01964e-06
  16  7.51886e-06
  17  4.57345e-07
  18  0.000162993
  19  4.93087
  20  0.000934762
  21  49.3554
  22  6.85505
  23  10.3402
  24  0.805084
  25  4.0056
  26  8.68225e-06
  27  3.54608
  28  9.34918e-06
  29  8.55393e-06
  30  5.24725
  31  2.83079e-05
  32  0.194866
  33  0.192323
Done.

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

Extracting fit parameters...

4FGL J2329.3-4955
   Spectrum: LogParabola
476         norm:  1.402e+00  8.051e-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:  5.286e-01  1.923e-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.071e+00  1.949e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 10.29
Ra Dec: 352.329 -49.932
Photon Index (Fixed Index): 2.18 +/- 0.00
Photon Flux (Fixed Index): 3.79e-08 +/- 2.18e-08
Energy Flux (Fixed Index): 1.44e-05 +/- 8.29e-06

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) = 5842.90106101
delta logL = 0.600195138109

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5842.86319504
delta logL = 0.638061112817

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.1570       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.5463       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0927       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .51359       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=   5842.863     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      203 TOTAL
                     EDM=   .44E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.1569        .68036        .10670E-01   -.17855E-03
   2  alpha         1.5462        .39687        .31593       -.35157E-04
   3  Normalizat    1.0927        .15321        .38304E-01    .26920E-05
   4  Prefactor     .51356        .16163        .65825E-01    .30665E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.15692
  alpha      = 1.54616
  Normalizat = 1.09274
  Prefactor  = 0.513562
 **********
 **   18 **HESSE 
 **********

 FCN=   5842.863     FROM HESSE     STATUS=OK            33 CALLS      236 TOTAL
                     EDM=   .98E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.1569        .80558        .46551E-04   -1.5493    
   2  alpha         1.5462        .50858        .12717E-01   -.39146    
   3  Normalizat    1.0927        .17839        .19595E-03   -.89985    
   4  Prefactor     .51356        .18771        .29133E-03   -1.1136    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.76935e-10
Minuit parameter uncertainties:
  1  0.805588
  2  0.512778
  3  0.178486
  4  0.187938
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/968915': 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) = 5842.86319499
delta logL = 0.638061160406

Extracting fit parameters...

4FGL J2329.3-4955
   Spectrum: LogParabola
476         norm:  1.157e+00  8.056e-01  1.000e-04  1.000e+04 ( 1.000e-11)
477        alpha:  1.546e+00  5.128e-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:  5.136e-01  1.879e-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.093e+00  1.785e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 11.60
Ra Dec: 352.329 -49.932
Photon Index (Free Index): 1.55 +/- 0.51
Photon Flux (Free Index): 2.23e-08 +/- 1.70e-08
Energy Flux (Free Index): 2.47e-05 +/- 2.19e-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/968915/cmap_HighResolution_589766401_590025601_4FGL_J2329.3-4955_daily_bin1352.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.79e-08', energy_flux2='2.47e-05', photon_flux_error='2.18e-08', dlogl='6.38e-01', energy_flux='1.44e-05', photon_flux2='2.23e-08', job_status='DONE', time_completed='2021-09-29 21:44:50.088639', photon_index_error2='0.51', photon_index2='1.55', ts='10.29', fit_tolerance='1e-08', GAL='0.53', photon_index_error='0.00', energy_flux_error2='2.19e-05', EG='1.07', time_epoch_completed='1632977090.09', return_code='0', job_id='968915', GAL2='0.51', EG2='1.09', return_code2='0', energy_flux_error='8.29e-06', photon_flux_error2='1.70e-08', ts2='11.60', photon_index='2.18' WHERE bin_id='1352' AND source_name='4FGL J2329.3-4955' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 21:44:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0084>
Subject: Job 968915: <4FGL_J2329.3-4955_daily_bin1352> in cluster <slac> Done

Job <4FGL_J2329.3-4955_daily_bin1352> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Sep 29 21:30:47 2021
Job was executed on host(s) <bullet0084>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 21:30:48 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:48 2021
Terminated at Wed Sep 29 21:44:52 2021
Results reported at Wed Sep 29 21:44:52 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2329.3-4955_daily_bin1352 352.329 -49.9324 589766401 590025601 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 :                                   804.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             324.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   842 sec.
    Turnaround time :                            845 sec.

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

