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


Performing analysis on: 4FGL_J2329.3-4955_daily_bin531
RA = 352.329, Dec = -49.9324
tmin = 376963201, tmax = 377222401
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='960776', job_status='RUN', time_executed='2021-09-29 21:24:31.717411', time_epoch_executed='1632975871.72' WHERE source_name='4FGL J2329.3-4955' and cadence='daily' and bin_id='531'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/960776

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/960776/ft1_4FGL_J2329.3-4955_daily_bin531.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/960776/ft2_4FGL_J2329.3-4955_daily_bin531.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/960776/ft1_4FGL_J2329.3-4955_daily_bin531.fits outfile=/scratch/kocevski/960776/ft1_filteredMKT_4FGL_J2329.3-4955_daily_bin531.fits ra=352.329 dec=-49.9324 rad=12.0 tmin=376963201.0 tmax=377222401.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.63
user 4.33
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/960776/ft2_4FGL_J2329.3-4955_daily_bin531.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/960776/ft1_filteredMKT_4FGL_J2329.3-4955_daily_bin531.fits evtable="EVENTS" outfile="/scratch/kocevski/960776/ft1_filtered_4FGL_J2329.3-4955_daily_bin531.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/960776/ft1_filtered_4FGL_J2329.3-4955_daily_bin531.fits" evtable="EVENTS" scfile=/scratch/kocevski/960776/ft2_4FGL_J2329.3-4955_daily_bin531.fits sctable="SC_DATA" outfile=/scratch/kocevski/960776/ltcube_376963201_377222401_4FGL_J2329.3-4955_daily_bin531.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/960776/ft2_4FGL_J2329.3-4955_daily_bin531.fits
.....................!
real 12.47
user 11.54
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/960776/ft1_filtered_4FGL_J2329.3-4955_daily_bin531.fits evtable="EVENTS" scfile=/scratch/kocevski/960776/ft2_4FGL_J2329.3-4955_daily_bin531.fits sctable="SC_DATA" expcube=/scratch/kocevski/960776/ltcube_376963201_377222401_4FGL_J2329.3-4955_daily_bin531.fits outfile=/scratch/kocevski/960776/expmap_376963201_377222401_4FGL_J2329.3-4955_daily_bin531.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/960776/ltcube_376963201_377222401_4FGL_J2329.3-4955_daily_bin531.fits
.....................!
real 190.63
user 185.05
sys 5.13

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/960776/ft1_filtered_4FGL_J2329.3-4955_daily_bin531.fits scfile=/scratch/kocevski/960776/ft2_4FGL_J2329.3-4955_daily_bin531.fits outfile=/scratch/kocevski/960776/cmap_376963201_377222401_4FGL_J2329.3-4955_daily_bin531.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.55
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/960776/ft1_filtered_4FGL_J2329.3-4955_daily_bin531.fits scfile=/scratch/kocevski/960776/ft2_4FGL_J2329.3-4955_daily_bin531.fits outfile=/scratch/kocevski/960776/cmap_HighResolution_376963201_377222401_4FGL_J2329.3-4955_daily_bin531.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.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/960776/ft1_filtered_4FGL_J2329.3-4955_daily_bin531.fits evtable="EVENTS" scfile=/scratch/kocevski/960776/ft2_4FGL_J2329.3-4955_daily_bin531.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/960776/Model_4FGL_J2329.3-4955_daily_bin531.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/960776/ft1_filtered_4FGL_J2329.3-4955_daily_bin531.fits.....................!
real 39.59
user 38.16
sys 1.25

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10273E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    16.071       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    7.2240       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    22.427       1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.4856       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.6900       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    8.4005       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    7.5557       1.0000         .10000E-03   10000.    
    16 'Prefactor '    26.515       1.0000         .10000E-03   10000.    
    17 'norm      '    8.8117       1.0000         .10000E-03   10000.    
    18 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    13.931       1.0000         .10000E-03   10000.    
    21 'Prefactor '    6.9149       1.0000         .10000E-03   10000.    
    22 'norm      '    .10648E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10963E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    3.9508       1.0000         .10000E-03   10000.    
    25 'norm      '    .10473E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    12.782       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .81191       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .58606E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.1618       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .74393       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=   5104.138     FROM MIGRAD    STATUS=CONVERGED    862 CALLS     4539 TOTAL
                     EDM=   .14E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    29.739       -.12918E-06** at limit **
   2  Prefactor     .10000E-03    18.520       -.53851E-06** at limit **
   3  Prefactor     16.034        32.946       -.11656E-05   -.74736E-04
   4  Prefactor     .10000E-03    4.5052        .21995E-06** at limit **
   5  Prefactor     7.2249        7.5793        .19834E-08   -.41916E-05
   6  Prefactor     .10000E-03    1.7177       -.14253E-07** at limit **
   7  norm          22.427        24.634        .23606E-07   -.15051E-05
   8  norm          .10000E-03    2.7182        .41335E-07** at limit **
   9  Prefactor     3.4856        3.6775        .15704E-06    .26185E-04
  10  Prefactor     2.6908        8.0091        .98345E-06    .33735E-04
  11  Prefactor     .10000E-03    35.004        .34415E-06** at limit **
  12  Prefactor     8.4024        10.658        .58194E-07    .29256E-05
  13  Prefactor     .10000E-03    42.791        .24741E-06** at limit **
  14  Prefactor     .10000E-03    2.0079       -.94101E-08** at limit **
  15  Prefactor     7.5577        28.687        .25779E-06   -.10707E-05
  16  Prefactor     26.515        20.269       -.11982E-06   -.65648E-05
  17  norm          8.8118        8.7710       -.11753E-05   -.90813E-04
  18  norm          .10000E-03    3.2669        .13835E-07** at limit **
  19  norm          .10000E-03    1.6103       -.31794E-06** at limit **
  20  Prefactor     13.938        8.2007        .41014E-08    .19984E-04
  21  Prefactor     6.8606        45.938        .71242E-06    .36692E-05
  22  norm          .10000E-03    1.8703       -.17434E-05** at limit **
  23  Prefactor     .10000E-03    33.272       -.33156E-06** at limit **
  24  norm          3.9505        1.6402       -.73093E-07   -.12239E-03
  25  norm          .10000E-03    2.7488       -.15256E-05** at limit **
  26  Prefactor     12.780        15.209       -.14496E-06   -.97262E-05
  27  Prefactor     .81358        2.9908        .10468E-05    .98281E-04
  28  Prefactor     .10000E-03    13.398       -.32994E-06** at limit **
  29  norm          .10000E-03    15.816        .16251E-06** at limit **
  30  Prefactor     .10000E-03    1.8911       -.10855E-06** at limit **
  31  Prefactor     .10001E-03    2.5642       -.94942E-07** at limit **
  32  Normalizat    1.1619        .21581        .32978E-05   -.88973E-04
  33  Prefactor     .74378        .21655       -.47366E-05    .10834E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.0341
  Prefactor  = 0.0001
  Prefactor  = 7.22494
  Prefactor  = 0.0001
  norm       = 22.427
  norm       = 0.0001
  Prefactor  = 3.48558
  Prefactor  = 2.69075
  Prefactor  = 0.0001
  Prefactor  = 8.40236
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.55773
  Prefactor  = 26.5147
  norm       = 8.81177
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 13.9385
  Prefactor  = 6.8606
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 3.95049
  norm       = 0.0001
  Prefactor  = 12.7802
  Prefactor  = 0.813583
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  Normalizat = 1.16195
  Prefactor  = 0.74378
 **********
 **   18 **HESSE 
 **********

 FCN=   5104.138     FROM HESSE     STATUS=OK           693 CALLS     5232 TOTAL
                     EDM=   .43E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    29.747        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    18.586        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     16.034        32.896        .99908E-04   -1.4907    
   4  Prefactor     .10000E-03    4.5324        .14807E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     7.2249        7.5719        .14924E-03   -1.5170    
   6  Prefactor     .10000E-03    1.7181        .91442E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          22.427        24.629        .84581E-04   -1.4760    
   8  norm          .10000E-03    2.7214        .11504E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     3.4856        3.6732        .68101E-03   -1.5335    
  10  Prefactor     2.6908        7.9860        .24841E-03   -1.5380    
  11  Prefactor     .10000E-03    35.305        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     8.4024        10.639        .13831E-03   -1.5128    
  13  Prefactor     .10000E-03    42.798        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    2.0088        .98869E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     7.5577        28.669        .14590E-03   -1.5158    
  16  Prefactor     26.515        20.260        .77798E-04   -1.4678    
  17  norm          8.8118        8.8029        .67515E-03   -1.5114    
  18  norm          .10000E-03    3.2707        .12609E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    1.6117        .88565E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     13.938        8.1619        .10731E-03   -1.4961    
  21  Prefactor     6.8606        46.640        .15257E-03   -1.5184    
  22  norm          .10000E-03    1.9144        .96211E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    33.735        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          3.9505        1.6325        .54097E-04   -1.5310    
  25  norm          .10000E-03    2.7964        .11584E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     12.780        15.201        .11204E-03   -1.4993    
  27  Prefactor     .81358        2.9790        .22252E-03   -1.5528    
  28  Prefactor     .10000E-03    13.445        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          .10000E-03    15.859        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    1.8999        .95911E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .10001E-03    63.049        .21464E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    1.1619        .23719        .21862E-03   -.87787    
  33  Prefactor     .74378        .23832        .28230E-03   -1.0184    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.25862e-10
Minuit parameter uncertainties:
  1  9.20126e-05
  2  5.55608e-05
  3  32.9327
  4  2.48004e-06
  5  7.57293
  6  5.35076e-07
  7  24.6402
  8  1.24113e-06
  9  3.67347
  10  7.98913
  11  4.50554e-06
  12  10.6412
  13  0.000120097
  14  6.51678e-07
  15  28.7212
  16  20.2655
  17  8.80418
  18  2.31335e-06
  19  2.96899e-06
  20  8.1626
  21  35.8159
  22  1.66227e-05
  23  7.33249e-06
  24  1.63249
  25  1.63026e-05
  26  15.2056
  27  2.97951
  28  5.59618e-05
  29  5.32748e-05
  30  5.6087e-06
  31  0.00114929
  32  0.237408
  33  0.238649
Done.

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

Extracting fit parameters...

4FGL J2329.3-4955
   Spectrum: LogParabola
476         norm:  3.950e+00  1.632e+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:  7.438e-01  2.386e-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.162e+00  2.374e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 20.98
Ra Dec: 352.329 -49.932
Photon Index (Fixed Index): 2.18 +/- 0.00
Photon Flux (Fixed Index): 1.07e-07 +/- 4.42e-08
Energy Flux (Fixed Index): 4.07e-05 +/- 1.68e-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) = 5103.86272183
delta logL = 0.275066702501

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5103.84097619
delta logL = 0.296812334556

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.8527       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9048       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1836       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .73063       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=   5103.841     FROM MIGRAD    STATUS=CONVERGED     45 CALLS      199 TOTAL
                     EDM=   .98E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.8527        1.6364        .51400E-02    .34575E-02
   2  alpha         1.9048        .33006        .21894       -.57054E-04
   3  Normalizat    1.1836        .18969        .35308E-01    .35728E-04
   4  Prefactor     .73062        .20034        .64372E-01   -.11092E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.85267
  alpha      = 1.90483
  Normalizat = 1.18357
  Prefactor  = 0.730616
 **********
 **   18 **HESSE 
 **********

 FCN=   5103.841     FROM HESSE     STATUS=OK            31 CALLS      230 TOTAL
                     EDM=   .80E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.8527        1.6669        .56417E-04   -1.5315    
   2  alpha         1.9048        .35078        .92726E-02   -.24038    
   3  Normalizat    1.1836        .22496        .21708E-03   -.87112    
   4  Prefactor     .73062        .23657        .28478E-03   -1.0234    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.96954e-10
Minuit parameter uncertainties:
  1  1.66688
  2  0.352016
  3  0.225147
  4  0.2369
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/960776': 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) = 5103.84097619
delta logL = 0.296812337817

Extracting fit parameters...

4FGL J2329.3-4955
   Spectrum: LogParabola
476         norm:  3.853e+00  1.667e+00  1.000e-04  1.000e+04 ( 1.000e-11)
477        alpha:  1.905e+00  3.520e-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:  7.306e-01  2.369e-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.184e+00  2.251e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 21.71
Ra Dec: 352.329 -49.932
Photon Index (Free Index): 1.90 +/- 0.35
Photon Flux (Free Index): 8.63e-08 +/- 4.55e-08
Energy Flux (Free Index): 4.79e-05 +/- 2.33e-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/960776/cmap_HighResolution_376963201_377222401_4FGL_J2329.3-4955_daily_bin531.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.07e-07', energy_flux2='4.79e-05', photon_flux_error='4.42e-08', dlogl='2.97e-01', energy_flux='4.07e-05', photon_flux2='8.63e-08', job_status='DONE', time_completed='2021-09-29 21:36:40.780109', photon_index_error2='0.35', photon_index2='1.90', ts='20.98', fit_tolerance='1e-08', GAL='0.74', photon_index_error='0.00', energy_flux_error2='2.33e-05', EG='1.16', time_epoch_completed='1632976600.78', return_code='0', job_id='960776', GAL2='0.73', EG2='1.18', return_code2='0', energy_flux_error='1.68e-05', photon_flux_error2='4.55e-08', ts2='21.71', photon_index='2.18' WHERE bin_id='531' AND source_name='4FGL J2329.3-4955' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 21:36:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0218>
Subject: Job 960776: <4FGL_J2329.3-4955_daily_bin531> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2329.3-4955_daily_bin531 352.329 -49.9324 376963201 377222401 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 :                                   727.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             229.80 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   978 sec.
    Turnaround time :                            980 sec.

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

