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


Performing analysis on: 4FGL_J2329.3-4955_daily_bin620
RA = 352.329, Dec = -49.9324
tmin = 400032001, tmax = 400291201
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='961029', job_status='RUN', time_executed='2021-09-29 21:23:26.393647', time_epoch_executed='1632975806.39' WHERE source_name='4FGL J2329.3-4955' and cadence='daily' and bin_id='620'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/961029

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/961029/ft1_4FGL_J2329.3-4955_daily_bin620.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/961029/ft2_4FGL_J2329.3-4955_daily_bin620.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/961029/ft1_4FGL_J2329.3-4955_daily_bin620.fits outfile=/scratch/kocevski/961029/ft1_filteredMKT_4FGL_J2329.3-4955_daily_bin620.fits ra=352.329 dec=-49.9324 rad=12.0 tmin=400032001.0 tmax=400291201.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 4.43
user 4.22
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/961029/ft1_filtered_4FGL_J2329.3-4955_daily_bin620.fits" evtable="EVENTS" scfile=/scratch/kocevski/961029/ft2_4FGL_J2329.3-4955_daily_bin620.fits sctable="SC_DATA" outfile=/scratch/kocevski/961029/ltcube_400032001_400291201_4FGL_J2329.3-4955_daily_bin620.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/961029/ft2_4FGL_J2329.3-4955_daily_bin620.fits
.....................!
real 12.06
user 11.65
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/961029/ft1_filtered_4FGL_J2329.3-4955_daily_bin620.fits evtable="EVENTS" scfile=/scratch/kocevski/961029/ft2_4FGL_J2329.3-4955_daily_bin620.fits sctable="SC_DATA" expcube=/scratch/kocevski/961029/ltcube_400032001_400291201_4FGL_J2329.3-4955_daily_bin620.fits outfile=/scratch/kocevski/961029/expmap_400032001_400291201_4FGL_J2329.3-4955_daily_bin620.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/961029/ltcube_400032001_400291201_4FGL_J2329.3-4955_daily_bin620.fits
.....................!
real 189.86
user 184.57
sys 4.90

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/961029/ft1_filtered_4FGL_J2329.3-4955_daily_bin620.fits scfile=/scratch/kocevski/961029/ft2_4FGL_J2329.3-4955_daily_bin620.fits outfile=/scratch/kocevski/961029/cmap_400032001_400291201_4FGL_J2329.3-4955_daily_bin620.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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/961029/ft1_filtered_4FGL_J2329.3-4955_daily_bin620.fits scfile=/scratch/kocevski/961029/ft2_4FGL_J2329.3-4955_daily_bin620.fits outfile=/scratch/kocevski/961029/cmap_HighResolution_400032001_400291201_4FGL_J2329.3-4955_daily_bin620.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/961029/ft1_filtered_4FGL_J2329.3-4955_daily_bin620.fits evtable="EVENTS" scfile=/scratch/kocevski/961029/ft2_4FGL_J2329.3-4955_daily_bin620.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/961029/Model_4FGL_J2329.3-4955_daily_bin620.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/961029/ft1_filtered_4FGL_J2329.3-4955_daily_bin620.fits.....................!
real 43.03
user 41.68
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    25.230       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.4494       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    25.329       1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    14.487       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .11388E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    55.756       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .39691E-02   1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.8862       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    20.023       1.0000         .10000E-03   10000.    
    16 'Prefactor '    7.0116       1.0000         .10000E-03   10000.    
    17 'norm      '    10.394       1.0000         .10000E-03   10000.    
    18 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    10.266       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    50.200       1.0000         .10000E-03   10000.    
    22 'norm      '    16.696       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    13.911       1.0000         .10000E-03   10000.    
    25 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10131E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    3.3737       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    .10047E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    6.9961       1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.1245       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .82117       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=   5707.066     FROM MIGRAD    STATUS=CONVERGED    879 CALLS     4646 TOTAL
                     EDM=   .75E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    19.447       -.26876E-07** at limit **
   2  Prefactor     .10000E-03    59.218       -.14520E-06** at limit **
   3  Prefactor     25.227        35.885        .23962E-06    .27108E-04
   4  Prefactor     2.4479        5.3176       -.39670E-06   -.86409E-05
   5  Prefactor     .10000E-03    7.6044       -.38021E-06** at limit **
   6  Prefactor     25.329        12.311        .70717E-08    .53074E-04
   7  norm          .10000E-03    22.925       -.11106E-06** at limit **
   8  norm          14.487        9.3460       -.10620E-06    .54863E-04
   9  Prefactor     .10003E-03    6.4618        .25533E-05** at limit **
  10  Prefactor     .10000E-03    2.3112       -.69729E-06** at limit **
  11  Prefactor     55.774        38.269       -.11764E-06    .25915E-03
  12  Prefactor     .10013E-03    51.485       -.12193E-04** at limit **
  13  Prefactor     2.6885        1022.8        .40920E-05    .35284E-04
  14  Prefactor     .10000E-03    6.1913       -.21434E-06** at limit **
  15  Prefactor     20.034        29.116       -.83738E-07    .13450E-04
  16  Prefactor     7.0138        17.451       -.46504E-06    .25745E-04
  17  norm          10.392        11.531       -.74146E-07    .98771E-05
  18  norm          .10000E-03    2.6505       -.14758E-07** at limit **
  19  norm          10.267        9.6570       -.42899E-07   -.59679E-06
  20  Prefactor     .10000E-03    2.2354       -.49654E-07** at limit **
  21  Prefactor     50.162        51.388        .59700E-06    .73489E-04
  22  norm          16.699        8.5296       -.15689E-06    .12845E-04
  23  Prefactor     .10000E-03    4.6415       -.46629E-07** at limit **
  24  norm          13.911        2.5031        .12828E-07    .31775E-03
  25  norm          .10000E-03    2.4801        .14664E-06** at limit **
  26  Prefactor     .10000E-03    26.402       -.13122E-05** at limit **
  27  Prefactor     3.3738        3.4713       -.21236E-07    .88327E-04
  28  Prefactor     .10000E-03    22.908       -.77971E-07** at limit **
  29  norm          .10000E-03    9.5966        .79184E-07** at limit **
  30  Prefactor     .10000E-03    2.1102       -.13147E-06** at limit **
  31  Prefactor     6.9967        6.4923       -.18312E-05   -.13742E-03
  32  Normalizat    1.1241        .20892        .93248E-06    .38092E-03
  33  Prefactor     .82166        .20830        .88246E-06    .35093E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 25.2274
  Prefactor  = 2.44793
  Prefactor  = 0.0001
  Prefactor  = 25.3294
  norm       = 0.0001
  norm       = 14.4873
  Prefactor  = 0.000100028
  Prefactor  = 0.0001
  Prefactor  = 55.7738
  Prefactor  = 0.000100132
  Prefactor  = 2.68849
  Prefactor  = 0.0001
  Prefactor  = 20.0336
  Prefactor  = 7.01385
  norm       = 10.3919
  norm       = 0.0001
  norm       = 10.2666
  Prefactor  = 0.0001
  Prefactor  = 50.1622
  norm       = 16.6986
  Prefactor  = 0.0001
  norm       = 13.9108
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.37375
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.99669
  Normalizat = 1.12407
  Prefactor  = 0.821663
 **********
 **   18 **HESSE 
 **********

 FCN=   5707.066     FROM HESSE     STATUS=OK           691 CALLS     5337 TOTAL
                     EDM=   .49E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    19.448        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    60.670        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     25.227        35.910        .79751E-04   -1.4703    
   4  Prefactor     2.4479        5.2994        .24911E-03   -1.5395    
   5  Prefactor     .10000E-03    7.7478        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     25.329        12.321        .79595E-04   -1.4701    
   7  norm          .10000E-03    23.014        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          14.487        9.3494        .10523E-03   -1.4947    
   9  Prefactor     .10003E-03    11.123        .27429E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    2.3230        .11219E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     55.774        38.520        .53721E-04   -1.4213    
  12  Prefactor     .10013E-03    71.887        .44218E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     2.6885        1103.4        .23922E-02   -1.5380    
  14  Prefactor     .10000E-03    6.2900        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     20.034        29.118        .89509E-04   -1.4812    
  16  Prefactor     7.0138        17.439        .15150E-03   -1.5178    
  17  norm          10.392        11.537        .12428E-03   -1.5063    
  18  norm          .10000E-03    2.6522        .12011E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          10.267        9.6714        .12506E-03   -1.5067    
  20  Prefactor     .10000E-03    2.2398        .11029E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     50.162        51.594        .56601E-04   -1.4290    
  22  norm          16.699        8.5523        .98021E-04   -1.4890    
  23  Prefactor     .10000E-03    4.6453        .15894E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          13.911        2.5036        .46687E-04   -1.4962    
  25  norm          .10000E-03    2.4978        .11604E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    27.286        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     3.3738        3.4616        .13572E-03   -1.5341    
  28  Prefactor     .10000E-03    23.037        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          .10000E-03    9.6163        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    2.1288        .10713E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     6.9967        6.6093        .75836E-03   -1.5179    
  32  Normalizat    1.1241        .26171        .25020E-03   -.88983    
  33  Prefactor     .82166        .25972        .30395E-03   -.98935    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.85131e-09
Minuit parameter uncertainties:
  1  4.14543e-06
  2  0.00088262
  3  35.9407
  4  5.30042
  5  3.14521e-05
  6  12.3224
  7  1.79453e-06
  8  9.35032
  9  0.00111697
  10  4.10169e-06
  11  38.5377
  12  0.00615725
  13  111.056
  14  1.21359e-05
  15  29.1385
  16  17.4512
  17  11.5394
  18  4.63381e-07
  19  9.6729
  20  7.02512e-08
  21  51.6396
  22  8.55293
  23  3.80623e-06
  24  2.50363
  25  5.20353e-07
  26  0.000147642
  27  3.46183
  28  8.25151e-05
  29  1.89134e-05
  30  3.65494e-06
  31  6.60999
  32  0.262013
  33  0.260109
Done.

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

Extracting fit parameters...

4FGL J2329.3-4955
   Spectrum: LogParabola
476         norm:  1.391e+01  2.504e+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:  8.217e-01  2.601e-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.124e+00  2.620e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 111.12
Ra Dec: 352.329 -49.932
Photon Index (Fixed Index): 2.18 +/- 0.00
Photon Flux (Fixed Index): 3.77e-07 +/- 6.78e-08
Energy Flux (Fixed Index): 1.43e-04 +/- 2.58e-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) = 5706.65579649
delta logL = 0.409965029842

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5706.59884822
delta logL = 0.466913298922

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    13.063       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3667       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0725       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86187       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=   5706.599     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      208 TOTAL
                     EDM=   .77E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          13.063        3.2998        .27706E-02    .40293E-04
   2  alpha         2.3667        .26125        .11453        .27612E-04
   3  Normalizat    1.0725        .19963        .57649E-01    .85052E-05
   4  Prefactor     .86192        .20888        .67240E-01    .14698E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 13.0629
  alpha      = 2.36675
  Normalizat = 1.07247
  Prefactor  = 0.861915
 **********
 **   18 **HESSE 
 **********

 FCN=   5706.599     FROM HESSE     STATUS=OK            31 CALLS      239 TOTAL
                     EDM=   .97E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          13.063        2.4985        .44196E-04   -1.4985    
   2  alpha         2.3667        .20096        .50134E-03   -.53326E-01
   3  Normalizat    1.0725        .24715        .25493E-03   -.90641    
   4  Prefactor     .86192        .25761        .29746E-03   -.97485    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.67158e-14
Minuit parameter uncertainties:
  1  2.49852
  2  0.201179
  3  0.24742
  4  0.257971
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/961029': 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) = 5706.59884811
delta logL = 0.466913404308

Extracting fit parameters...

4FGL J2329.3-4955
   Spectrum: LogParabola
476         norm:  1.306e+01  2.499e+00  1.000e-04  1.000e+04 ( 1.000e-11)
477        alpha:  2.367e+00  2.012e-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:  8.619e-01  2.580e-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.072e+00  2.474e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 111.22
Ra Dec: 352.329 -49.932
Photon Index (Free Index): 2.37 +/- 0.20
Photon Flux (Free Index): 4.15e-07 +/- 8.03e-08
Energy Flux (Free Index): 1.29e-04 +/- 2.53e-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/961029/cmap_HighResolution_400032001_400291201_4FGL_J2329.3-4955_daily_bin620.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.77e-07', energy_flux2='1.29e-04', photon_flux_error='6.78e-08', dlogl='4.67e-01', energy_flux='1.43e-04', photon_flux2='4.15e-07', job_status='DONE', time_completed='2021-09-29 21:36:39.541381', photon_index_error2='0.20', photon_index2='2.37', ts='111.12', fit_tolerance='1e-08', GAL='0.82', photon_index_error='0.00', energy_flux_error2='2.53e-05', EG='1.12', time_epoch_completed='1632976599.54', return_code='0', job_id='961029', GAL2='0.86', EG2='1.07', return_code2='0', energy_flux_error='2.58e-05', photon_flux_error2='8.03e-08', ts2='111.22', photon_index='2.18' WHERE bin_id='620' AND source_name='4FGL J2329.3-4955' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 21:36:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0202>
Subject: Job 961029: <4FGL_J2329.3-4955_daily_bin620> in cluster <slac> Done

Job <4FGL_J2329.3-4955_daily_bin620> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep 29 21:20:32 2021
Job was executed on host(s) <bullet0202>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 21:20:35 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:20:35 2021
Terminated at Wed Sep 29 21:36:40 2021
Results reported at Wed Sep 29 21:36:40 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2329.3-4955_daily_bin620 352.329 -49.9324 400032001 400291201 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 :                                   791.49 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             239.97 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   964 sec.
    Turnaround time :                            968 sec.

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

