/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 127 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 = 7386
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2329.3-4955_daily_bin387
RA = 352.329, Dec = -49.9324
tmin = 339638401, tmax = 339897601
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='957393', job_status='RUN', time_executed='2021-09-29 21:17:48.386512', time_epoch_executed='1632975468.39' WHERE source_name='4FGL J2329.3-4955' and cadence='daily' and bin_id='387'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/957393

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/957393/ft1_4FGL_J2329.3-4955_daily_bin387.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/957393/ft2_4FGL_J2329.3-4955_daily_bin387.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/957393/ft1_4FGL_J2329.3-4955_daily_bin387.fits outfile=/scratch/kocevski/957393/ft1_filteredMKT_4FGL_J2329.3-4955_daily_bin387.fits ra=352.329 dec=-49.9324 rad=12.0 tmin=339638401.0 tmax=339897601.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.36
user 3.13
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/957393/ft1_filtered_4FGL_J2329.3-4955_daily_bin387.fits" evtable="EVENTS" scfile=/scratch/kocevski/957393/ft2_4FGL_J2329.3-4955_daily_bin387.fits sctable="SC_DATA" outfile=/scratch/kocevski/957393/ltcube_339638401_339897601_4FGL_J2329.3-4955_daily_bin387.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/957393/ft2_4FGL_J2329.3-4955_daily_bin387.fits
.....................!
real 11.73
user 11.35
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/957393/ft1_filtered_4FGL_J2329.3-4955_daily_bin387.fits evtable="EVENTS" scfile=/scratch/kocevski/957393/ft2_4FGL_J2329.3-4955_daily_bin387.fits sctable="SC_DATA" expcube=/scratch/kocevski/957393/ltcube_339638401_339897601_4FGL_J2329.3-4955_daily_bin387.fits outfile=/scratch/kocevski/957393/expmap_339638401_339897601_4FGL_J2329.3-4955_daily_bin387.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/957393/ltcube_339638401_339897601_4FGL_J2329.3-4955_daily_bin387.fits
.....................!
real 191.32
user 185.58
sys 5.36

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/957393/ft1_filtered_4FGL_J2329.3-4955_daily_bin387.fits scfile=/scratch/kocevski/957393/ft2_4FGL_J2329.3-4955_daily_bin387.fits outfile=/scratch/kocevski/957393/cmap_339638401_339897601_4FGL_J2329.3-4955_daily_bin387.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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/957393/ft1_filtered_4FGL_J2329.3-4955_daily_bin387.fits scfile=/scratch/kocevski/957393/ft2_4FGL_J2329.3-4955_daily_bin387.fits outfile=/scratch/kocevski/957393/cmap_HighResolution_339638401_339897601_4FGL_J2329.3-4955_daily_bin387.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.56
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    87.691       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10225E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .12257E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    12.573       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 '    6.9984       1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.9265       1.0000         .10000E-03   10000.    
    11 'Prefactor '    25.437       1.0000         .10000E-03   10000.    
    12 'Prefactor '    15.597       1.0000         .10000E-03   10000.    
    13 'Prefactor '    66.569       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    47.178       1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.8312       1.0000         .10000E-03   10000.    
    17 'norm      '    9.0284       1.0000         .10000E-03   10000.    
    18 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    6.8662       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    9.0686       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    8.9515       1.0000         .10000E-03   10000.    
    25 'norm      '    5.3245       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    6.0283       1.0000         .10000E-03   10000.    
    28 'Prefactor '    22.395       1.0000         .10000E-03   10000.    
    29 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10538E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    3.7436       1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.4023       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .55537       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=   4849.397     FROM MIGRAD    STATUS=CONVERGED    868 CALLS     4561 TOTAL
                     EDM=   .72E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     87.696        80.292        .40984E-05   -.29266E-04
   2  Prefactor     .10000E-03    14.894        .24434E-05** at limit **
   3  Prefactor     .10000E-03    131.23        .31840E-06** at limit **
   4  Prefactor     .10000E-03    5.5369       -.42661E-06** at limit **
   5  Prefactor     12.570        8.4678        .20729E-08   -.77717E-04
   6  Prefactor     .10000E-03    4.1774       -.19316E-06** at limit **
   7  norm          .10000E-03    20.879       -.71524E-06** at limit **
   8  norm          .10000E-03    3.1691        .31394E-08** at limit **
   9  Prefactor     6.9999        6.5551        .78528E-06   -.20745E-03
  10  Prefactor     4.9251        10.508       -.25356E-05   -.26040E-03
  11  Prefactor     25.448        43.831        .10548E-04   -.82728E-04
  12  Prefactor     15.597        13.796       -.20618E-05   -.36012E-04
  13  Prefactor     66.579        69.910        .99400E-05   -.83148E-04
  14  Prefactor     .10000E-03    5.0568       -.92444E-07** at limit **
  15  Prefactor     47.180        44.150        .10899E-05   -.26383E-04
  16  Prefactor     5.8247        19.056        .29088E-05   -.87160E-04
  17  norm          9.0283        11.565        .36116E-07   -.12113E-04
  18  norm          .10000E-03    3.3031       -.12281E-06** at limit **
  19  norm          6.8662        6.3862       -.55509E-06    .12449E-03
  20  Prefactor     .10000E-03    3.1351       -.26986E-08** at limit **
  21  Prefactor     .10000E-03    29.824        .24227E-05** at limit **
  22  norm          9.0714        6.6273       -.48367E-06    .11036E-04
  23  Prefactor     .10000E-03    9.3224        .24031E-05** at limit **
  24  norm          8.9515        2.3634        .27313E-06   -.39505E-03
  25  norm          5.3252        5.5536       -.11656E-05   -.98434E-04
  26  Prefactor     .10000E-03    8.6382        .68149E-06** at limit **
  27  Prefactor     6.0296        6.2752       -.18969E-05   -.43902E-03
  28  Prefactor     22.378        37.025       -.11882E-04    .86978E-04
  29  norm          .10000E-03    9.6902       -.34370E-05** at limit **
  30  Prefactor     .10003E-03    7.0040        .20513E-05** at limit **
  31  Prefactor     3.7422        5.4686       -.59796E-06   -.31001E-03
  32  Normalizat    1.4021        .23478        .74595E-06   -.29350E-03
  33  Prefactor     .55551        .22450       -.48863E-06   -.11859E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 87.696
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.000100003
  Prefactor  = 12.5699
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 6.99989
  Prefactor  = 4.92508
  Prefactor  = 25.4481
  Prefactor  = 15.5966
  Prefactor  = 66.5794
  Prefactor  = 0.0001
  Prefactor  = 47.1802
  Prefactor  = 5.82473
  norm       = 9.02827
  norm       = 0.0001
  norm       = 6.86619
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 9.07138
  Prefactor  = 0.0001
  norm       = 8.95148
  norm       = 5.32519
  Prefactor  = 0.0001
  Prefactor  = 6.02957
  Prefactor  = 22.3775
  norm       = 0.0001
  Prefactor  = 0.000100035
  Prefactor  = 3.74222
  Normalizat = 1.40212
  Prefactor  = 0.555511
 **********
 **   18 **HESSE 
 **********

 FCN=   4849.397     FROM HESSE     STATUS=OK           693 CALLS     5254 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     87.696        80.350        .42904E-04   -1.3832    
   2  Prefactor     .10000E-03    14.925        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    132.26        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    20.914        .31538E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     12.570        8.4669        .11297E-03   -1.4999    
   6  Prefactor     .10000E-03    4.1879        .13899E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    20.904        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    3.1710        .12107E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     6.9999        6.5418        .15165E-03   -1.5179    
  10  Prefactor     4.9251        10.457        .18121E-03   -1.5264    
  11  Prefactor     25.448        43.674        .79426E-04   -1.4699    
  12  Prefactor     15.597        13.768        .10141E-03   -1.4918    
  13  Prefactor     66.579        69.661        .49191E-04   -1.4074    
  14  Prefactor     .10000E-03    5.0813        .15292E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     47.180        44.142        .58377E-04   -1.4333    
  16  Prefactor     5.8247        18.999        .16631E-03   -1.5225    
  17  norm          9.0283        11.561        .13339E-03   -1.5107    
  18  norm          .10000E-03    3.3058        .12359E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          6.8662        6.3970        .15311E-03   -1.5184    
  20  Prefactor     .10000E-03    3.1423        .12039E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    29.889        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          9.0714        6.6366        .13309E-03   -1.5106    
  23  Prefactor     .10000E-03    9.3471        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          8.9515        2.3625        .49865E-04   -1.5109    
  25  norm          5.3252        5.5475        .15788E-03   -1.5246    
  26  Prefactor     .10000E-03    8.6608        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     6.0296        6.1247        .14434E-03   -1.5217    
  28  Prefactor     22.378        36.331        .84641E-04   -1.4762    
  29  norm          .10000E-03    9.6707        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10003E-03    20.912        .33618E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     3.7422        5.4862        .18630E-03   -1.5321    
  32  Normalizat    1.4021        .28380        .22876E-03   -.80567    
  33  Prefactor     .55551        .26847        .35087E-03   -1.0949    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.44638e-09
Minuit parameter uncertainties:
  1  80.4499
  2  2.22688e-05
  3  0.00135857
  4  0.000518307
  5  8.46774
  6  7.82102e-06
  7  2.0421e-05
  8  4.04652e-06
  9  6.54245
  10  10.4605
  11  43.7293
  12  13.7706
  13  69.7466
  14  3.59199e-06
  15  44.1728
  16  19.0191
  17  11.5639
  18  4.29234e-06
  19  6.39759
  20  1.34956e-06
  21  1.42277e-05
  22  6.63716
  23  1.62922e-05
  24  2.36251
  25  5.54802
  26  1.09975e-05
  27  6.12535
  28  36.3671
  29  7.17079e-05
  30  0.00170583
  31  5.4869
  32  0.284119
  33  0.269086
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
580    Prefactor:  5.555e-01  2.691e-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.402e+00  2.841e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 63.10
Ra Dec: 352.329 -49.932
Photon Index (Fixed Index): 2.18 +/- 0.00
Photon Flux (Fixed Index): 2.42e-07 +/- 6.39e-08
Energy Flux (Fixed Index): 9.22e-05 +/- 2.43e-05

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4847.59454612
delta logL = 1.80197314436

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4847.53126143
delta logL = 1.86525783218

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.0166       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6689       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4934       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .49889       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=   4847.531     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      205 TOTAL
                     EDM=   .19E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.0166        2.2906        .35402E-02   -.13347E-03
   2  alpha         1.6689        .22995        .14652       -.25335E-04
   3  Normalizat    1.4932        .22620        .50605E-01    .50553E-05
   4  Prefactor     .49912        .22707        .83393E-01    .33408E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 8.0166
  alpha      = 1.66888
  Normalizat = 1.49321
  Prefactor  = 0.499118
 **********
 **   18 **HESSE 
 **********

 FCN=   4847.531     FROM HESSE     STATUS=OK            31 CALLS      236 TOTAL
                     EDM=   .12E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.0166        2.5765        .52293E-04   -1.5142    
   2  alpha         1.6689        .26439        .63419E-03   -.33890    
   3  Normalizat    1.4932        .26534        .22372E-03   -.77969    
   4  Prefactor     .49912        .26406        .36944E-03   -1.1202    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.17233e-12
Minuit parameter uncertainties:
  1  2.57652
  2  0.264943
  3  0.265585
  4  0.264713
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/957393': 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) = 4847.531261
delta logL = 1.86525826565

Extracting fit parameters...

4FGL J2329.3-4955
   Spectrum: LogParabola
476         norm:  8.017e+00  2.577e+00  1.000e-04  1.000e+04 ( 1.000e-11)
477        alpha:  1.669e+00  2.649e-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:  4.991e-01  2.647e-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.493e+00  2.656e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 66.91
Ra Dec: 352.329 -49.932
Photon Index (Free Index): 1.67 +/- 0.26
Photon Flux (Free Index): 1.60e-07 +/- 6.10e-08
Energy Flux (Free Index): 1.37e-04 +/- 5.31e-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/957393/cmap_HighResolution_339638401_339897601_4FGL_J2329.3-4955_daily_bin387.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.42e-07', energy_flux2='1.37e-04', photon_flux_error='6.39e-08', dlogl='1.87e+00', energy_flux='9.22e-05', photon_flux2='1.60e-07', job_status='DONE', time_completed='2021-09-29 21:29:33.868165', photon_index_error2='0.26', photon_index2='1.67', ts='63.10', fit_tolerance='1e-08', GAL='0.56', photon_index_error='0.00', energy_flux_error2='5.31e-05', EG='1.40', time_epoch_completed='1632976173.87', return_code='0', job_id='957393', GAL2='0.50', EG2='1.49', return_code2='0', energy_flux_error='2.43e-05', photon_flux_error2='6.10e-08', ts2='66.91', photon_index='2.18' WHERE bin_id='387' AND source_name='4FGL J2329.3-4955' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 21:29:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0215>
Subject: Job 957393: <4FGL_J2329.3-4955_daily_bin387> in cluster <slac> Done

Job <4FGL_J2329.3-4955_daily_bin387> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 21:15:31 2021
Job was executed on host(s) <bullet0215>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 21:15:33 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 21:15:33 2021
Terminated at Wed Sep 29 21:29:34 2021
Results reported at Wed Sep 29 21:29:34 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2329.3-4955_daily_bin387 352.329 -49.9324 339638401 339897601 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 :                                   704.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             330.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   841 sec.
    Turnaround time :                            843 sec.

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

