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


Performing analysis on: 4FGL_J2329.3-4955_daily_bin1312
RA = 352.329, Dec = -49.9324
tmin = 579398401, tmax = 579657601
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='968821', job_status='RUN', time_executed='2021-09-29 21:32:21.614594', time_epoch_executed='1632976341.61' WHERE source_name='4FGL J2329.3-4955' and cadence='daily' and bin_id='1312'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/968821

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/968821/ft1_4FGL_J2329.3-4955_daily_bin1312.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/968821/ft2_4FGL_J2329.3-4955_daily_bin1312.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/968821/ft1_4FGL_J2329.3-4955_daily_bin1312.fits outfile=/scratch/kocevski/968821/ft1_filteredMKT_4FGL_J2329.3-4955_daily_bin1312.fits ra=352.329 dec=-49.9324 rad=12.0 tmin=579398401.0 tmax=579657601.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.50
user 3.26
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/968821/ft2_4FGL_J2329.3-4955_daily_bin1312.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/968821/ft1_filteredMKT_4FGL_J2329.3-4955_daily_bin1312.fits evtable="EVENTS" outfile="/scratch/kocevski/968821/ft1_filtered_4FGL_J2329.3-4955_daily_bin1312.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.51
user 0.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/968821/ft1_filtered_4FGL_J2329.3-4955_daily_bin1312.fits" evtable="EVENTS" scfile=/scratch/kocevski/968821/ft2_4FGL_J2329.3-4955_daily_bin1312.fits sctable="SC_DATA" outfile=/scratch/kocevski/968821/ltcube_579398401_579657601_4FGL_J2329.3-4955_daily_bin1312.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/968821/ft2_4FGL_J2329.3-4955_daily_bin1312.fits
.....................!
real 12.49
user 11.83
sys 0.62

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/968821/ft1_filtered_4FGL_J2329.3-4955_daily_bin1312.fits evtable="EVENTS" scfile=/scratch/kocevski/968821/ft2_4FGL_J2329.3-4955_daily_bin1312.fits sctable="SC_DATA" expcube=/scratch/kocevski/968821/ltcube_579398401_579657601_4FGL_J2329.3-4955_daily_bin1312.fits outfile=/scratch/kocevski/968821/expmap_579398401_579657601_4FGL_J2329.3-4955_daily_bin1312.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/968821/ltcube_579398401_579657601_4FGL_J2329.3-4955_daily_bin1312.fits
.....................!
real 191.82
user 186.32
sys 5.00

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/968821/ft1_filtered_4FGL_J2329.3-4955_daily_bin1312.fits scfile=/scratch/kocevski/968821/ft2_4FGL_J2329.3-4955_daily_bin1312.fits outfile=/scratch/kocevski/968821/cmap_579398401_579657601_4FGL_J2329.3-4955_daily_bin1312.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.52
user 0.36
sys 0.15

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

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

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/968821/ft1_filtered_4FGL_J2329.3-4955_daily_bin1312.fits evtable="EVENTS" scfile=/scratch/kocevski/968821/ft2_4FGL_J2329.3-4955_daily_bin1312.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/968821/Model_4FGL_J2329.3-4955_daily_bin1312.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/968821/ft1_filtered_4FGL_J2329.3-4955_daily_bin1312.fits.....................!
real 42.50
user 41.10
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    15.575       1.0000         .10000E-03   10000.    
     2 'Prefactor '    22.720       1.0000         .10000E-03   10000.    
     3 'Prefactor '    23.576       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.7546       1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.9668       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .96139E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10020E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    12.397       1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.4145       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10110E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    10.486       1.0000         .10000E-03   10000.    
    13 'Prefactor '    67.110       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    33.848       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .51242       1.0000         .10000E-03   10000.    
    18 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    2.2539       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10706E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    59.917       1.0000         .10000E-03   10000.    
    22 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .58617E-01   1.0000         .10000E-03   10000.    
    24 'norm      '    .10792E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    4.6869       1.0000         .10000E-03   10000.    
    26 'Prefactor '    8.8468       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .16120E-01   1.0000         .10000E-03   10000.    
    29 'norm      '    .10061E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    13.215       1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    .89536       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .65791       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=   5647.787     FROM MIGRAD    STATUS=CONVERGED    935 CALLS     4690 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.779        66.025        .14032E-03    .14853E-05
   2  Prefactor     22.724        24.604        .43190E-06   -.68570E-04
   3  Prefactor     23.563        35.974        .11134E-04   -.17654E-04
   4  Prefactor     1.7539        6.8283       -.89736E-06   -.56867E-03
   5  Prefactor     3.9685        7.7193       -.73926E-06   -.30362E-03
   6  Prefactor     .10002E-03    5.3557       -.24045E-06** at limit **
   7  norm          .10000E-03    21.825       -.30961E-05** at limit **
   8  norm          .10000E-03    2.1774        .25374E-07** at limit **
   9  Prefactor     12.397        4.5090        .35427E-06   -.14550E-03
  10  Prefactor     3.4144        3.7217        .42401E-06   -.32235E-03
  11  Prefactor     .10000E-03    23.770        .36435E-05** at limit **
  12  Prefactor     10.484        10.063        .26580E-05   -.17726E-03
  13  Prefactor     67.077        73.711       -.17356E-04   -.21730E-04
  14  Prefactor     .10000E-03    1.8546        .81074E-07** at limit **
  15  Prefactor     33.846        34.146        .53351E-05   -.43611E-04
  16  Prefactor     .10000E-03    7.7912        .41024E-06** at limit **
  17  norm          .52769        6.5332       -.83163E-07   -.45954E-03
  18  norm          .10000E-03    2.0992        .24529E-07** at limit **
  19  norm          2.2542        2.6357       -.22889E-07    .49744E-04
  20  Prefactor     .10000E-03    3.6549        .85641E-07** at limit **
  21  Prefactor     59.911        30.037        .43200E-05   -.10533E-03
  22  norm          .10000E-03    1.1148       -.58170E-07** at limit **
  23  Prefactor     .14037E-03    7.6333        .22998E-05** at limit **
  24  norm          .10000E-03    .59591        .23986E-06** at limit **
  25  norm          4.6867        3.9453       -.76065E-06   -.50741E-03
  26  Prefactor     8.8459        13.945        .33779E-05   -.84012E-04
  27  Prefactor     .10000E-03    .83232        .12192E-07** at limit **
  28  Prefactor     .10010E-03    10.605       -.72822E-06** at limit **
  29  norm          .10000E-03    18.119        .62980E-06** at limit **
  30  Prefactor     13.213        5.6396        .28678E-06   -.26678E-03
  31  Prefactor     .10000E-03    3.9165       -.23059E-06** at limit **
  32  Normalizat    .89547        .16342       -.51501E-05   -.22968E-03
  33  Prefactor     .65780        .16605       -.24369E-05   -.47790E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.7793
  Prefactor  = 22.7236
  Prefactor  = 23.5631
  Prefactor  = 1.75392
  Prefactor  = 3.9685
  Prefactor  = 0.00010002
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 12.3973
  Prefactor  = 3.41436
  Prefactor  = 0.0001
  Prefactor  = 10.4843
  Prefactor  = 67.0773
  Prefactor  = 0.0001
  Prefactor  = 33.8462
  Prefactor  = 0.0001
  norm       = 0.527687
  norm       = 0.0001
  norm       = 2.25418
  Prefactor  = 0.0001
  Prefactor  = 59.911
  norm       = 0.0001
  Prefactor  = 0.000140367
  norm       = 0.0001
  norm       = 4.68666
  Prefactor  = 8.84587
  Prefactor  = 0.0001
  Prefactor  = 0.000100105
  norm       = 0.0001
  Prefactor  = 13.2129
  Prefactor  = 0.0001
  Normalizat = 0.895473
  Prefactor  = 0.6578
 **********
 **   18 **HESSE 
 **********

 FCN=   5647.787     FROM HESSE     STATUS=OK           717 CALLS     5407 TOTAL
                     EDM=   .54E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.779        65.497        .10149E-03   -1.4913    
   2  Prefactor     22.724        24.481        .84034E-04   -1.4754    
   3  Prefactor     23.563        35.802        .82496E-04   -1.4737    
   4  Prefactor     1.7539        6.8292        .31645E-03   -1.5443    
   5  Prefactor     3.9685        7.6827        .20252E-03   -1.5310    
   6  Prefactor     .10002E-03    32.967        .33327E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    21.853        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    2.1795        .10830E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     12.397        4.5079        .92811E-04   -1.5004    
  10  Prefactor     3.4144        3.7116        .14498E-03   -1.5338    
  11  Prefactor     .10000E-03    23.913        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     10.484        10.042        .12373E-03   -1.5060    
  13  Prefactor     67.077        73.677        .24497E-03   -1.4068    
  14  Prefactor     .10000E-03    1.8608        .99943E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     33.846        34.123        .68877E-04   -1.4544    
  16  Prefactor     .10000E-03    7.8528        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .52769        19.895        .37255E-02   -1.5563    
  18  norm          .10000E-03    2.1041        .10631E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          2.2542        2.6342        .12821E-03   -1.5408    
  20  Prefactor     .10000E-03    7.1730        .26055E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     59.911        30.019        .51833E-04   -1.4158    
  22  norm          .10000E-03    1.1204        .77381E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .14037E-03    12.457        .60270E-01   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    3.4129        .11045E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          4.6867        3.9348        .12742E-03   -1.5275    
  26  Prefactor     8.8459        13.943        .13476E-03   -1.5113    
  27  Prefactor     .10000E-03    .83536        .66895E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10010E-03    106.72        .46744E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          .10000E-03    18.154        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     13.213        5.6315        .10885E-03   -1.4981    
  31  Prefactor     .10000E-03    4.0025        .28858E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    .89547        .19572        .20974E-03   -.96619    
  33  Prefactor     .65780        .19789        .25861E-03   -1.0520    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.39069e-09
Minuit parameter uncertainties:
  1  64.4174
  2  24.4914
  3  35.8349
  4  6.83221
  5  7.68461
  6  0.0016122
  7  8.73888e-05
  8  3.28458e-06
  9  4.50806
  10  3.71184
  11  0.000101639
  12  10.0432
  13  73.7776
  14  8.11612e-06
  15  34.1426
  16  4.86339e-05
  17  6.48197
  18  2.73296e-06
  19  2.63433
  20  3.45091e-05
  21  30.0261
  22  7.31695e-06
  23  0.0448574
  24  4.52873e-05
  25  3.93498
  26  13.9484
  27  5.36494e-07
  28  0.00670491
  29  5.92797e-06
  30  5.63174
  31  4.137e-05
  32  0.195874
  33  0.198101
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
580    Prefactor:  6.578e-01  1.981e-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.955e-01  1.959e-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: 4.68e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.78e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/968821/likelihoodResults_579398401_579657601_4FGL_J2329.3-4955_daily_bin1312.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) = 5647.78802323
delta logL = -0.0014887796533

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5647.78654177
delta logL = -7.3260107456e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .19101E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2486       1.0000          .0000       5.0000    
     3 'Normalizat'    .89561       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .65780       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=   5647.787     FROM MIGRAD    STATUS=CONVERGED    111 CALLS      273 TOTAL
                     EDM=   .42E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10609E-03    3.2163        .15347E-01** at limit **
   2  alpha         2.6246        2.9744        .16567       -.14230E-05
   3  Normalizat    .89547        .91470E-02    .20974E-03    .14039E-03
   4  Prefactor     .65780        .98439E-02    .25861E-03    .22595E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000106094
  alpha      = 2.62464
  Normalizat = 0.895468
  Prefactor  = 0.657804
 **********
 **   18 **HESSE 
 **********

 FCN=   5647.787     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      306 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10609E-03    4.3229        .16246E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.6246        2.9819        .66268E-02    .49875E-01
   3  Normalizat    .89547        .11042E-01    .83895E-05   -.96620    
   4  Prefactor     .65780        .11879E-01    .10345E-04   -1.0520    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.64223e-10
Minuit parameter uncertainties:
  1  0.0102657
  2  260.108
  3  0.0110416
  4  0.011879
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/968821': 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): 102
logL (Free Index) = 5647.7865219
delta logL = 1.25462011056e-05

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
580    Prefactor:  6.578e-01  1.188e-02  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.955e-01  1.104e-02  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/968821/cmap_HighResolution_579398401_579657601_4FGL_J2329.3-4955_daily_bin1312.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.78e-05', job_status='DONE', photon_flux_upper_limit='4.68e-08', time_completed='2021-09-29 21:47:17.997865', job_id='968821', GAL2='0.66', fit_tolerance='1e-08', EG2='0.90', EG='0.90', time_epoch_completed='1632977238.0', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.66', dlogl='1.25e-05', ts2='-0.00', photon_index_error='0.00', photon_index='2.18' WHERE bin_id='1312' AND source_name='4FGL J2329.3-4955' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 21:47:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0043>
Subject: Job 968821: <4FGL_J2329.3-4955_daily_bin1312> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2329.3-4955_daily_bin1312 352.329 -49.9324 579398401 579657601 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 :                                   895.36 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             278.42 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   993 sec.
    Turnaround time :                            994 sec.

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

