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


Performing analysis on: 4FGL_J2329.3-4955_daily_bin1335
RA = 352.329, Dec = -49.9324
tmin = 585360001, tmax = 585619201
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='968875', job_status='RUN', time_executed='2021-09-29 21:32:02.791215', time_epoch_executed='1632976322.79' WHERE source_name='4FGL J2329.3-4955' and cadence='daily' and bin_id='1335'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/968875

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/968875/ft1_4FGL_J2329.3-4955_daily_bin1335.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/968875/ft2_4FGL_J2329.3-4955_daily_bin1335.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/968875/ft1_4FGL_J2329.3-4955_daily_bin1335.fits outfile=/scratch/kocevski/968875/ft1_filteredMKT_4FGL_J2329.3-4955_daily_bin1335.fits ra=352.329 dec=-49.9324 rad=12.0 tmin=585360001.0 tmax=585619201.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 2.85
user 2.65
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/968875/ft1_filtered_4FGL_J2329.3-4955_daily_bin1335.fits" evtable="EVENTS" scfile=/scratch/kocevski/968875/ft2_4FGL_J2329.3-4955_daily_bin1335.fits sctable="SC_DATA" outfile=/scratch/kocevski/968875/ltcube_585360001_585619201_4FGL_J2329.3-4955_daily_bin1335.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/968875/ft2_4FGL_J2329.3-4955_daily_bin1335.fits
.....................!
real 12.46
user 12.11
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/968875/ft1_filtered_4FGL_J2329.3-4955_daily_bin1335.fits evtable="EVENTS" scfile=/scratch/kocevski/968875/ft2_4FGL_J2329.3-4955_daily_bin1335.fits sctable="SC_DATA" expcube=/scratch/kocevski/968875/ltcube_585360001_585619201_4FGL_J2329.3-4955_daily_bin1335.fits outfile=/scratch/kocevski/968875/expmap_585360001_585619201_4FGL_J2329.3-4955_daily_bin1335.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/968875/ltcube_585360001_585619201_4FGL_J2329.3-4955_daily_bin1335.fits
.....................!
real 190.26
user 185.69
sys 4.25

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/968875/ft1_filtered_4FGL_J2329.3-4955_daily_bin1335.fits scfile=/scratch/kocevski/968875/ft2_4FGL_J2329.3-4955_daily_bin1335.fits outfile=/scratch/kocevski/968875/cmap_585360001_585619201_4FGL_J2329.3-4955_daily_bin1335.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.35
sys 0.16

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

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

This is gtbin version HEAD
real 0.54
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/968875/ft1_filtered_4FGL_J2329.3-4955_daily_bin1335.fits evtable="EVENTS" scfile=/scratch/kocevski/968875/ft2_4FGL_J2329.3-4955_daily_bin1335.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/968875/Model_4FGL_J2329.3-4955_daily_bin1335.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/968875/ft1_filtered_4FGL_J2329.3-4955_daily_bin1335.fits.....................!
real 38.27
user 36.99
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    7.8578       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.3487       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    16.512       1.0000         .10000E-03   10000.    
     8 'norm      '    3.7083       1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.0399       1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.0056       1.0000         .10000E-03   10000.    
    11 'Prefactor '    121.71       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .11183E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.4973       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .11310E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    14.118       1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .22443       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10048E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .80863       1.0000         .10000E-03   10000.    
    25 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    3.5071       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .11520E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    7.6513       1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.5388       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .70924       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=   4698.518     FROM MIGRAD    STATUS=CONVERGED    883 CALLS     4703 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    19.953        .68593E-06** at limit **
   2  Prefactor     7.8542        31.322        .78146E-06    .10670E-04
   3  Prefactor     .10000E-03    33.158       -.16108E-05** at limit **
   4  Prefactor     .10000E-03    5.4499       -.86382E-07** at limit **
   5  Prefactor     2.3489        5.1176        .26811E-06    .79553E-04
   6  Prefactor     .10000E-03    5.2313        .39681E-06** at limit **
   7  norm          16.538        42.606       -.60365E-05   -.13686E-03
   8  norm          3.7092        8.0121        .23415E-05    .61620E-03
   9  Prefactor     2.0367        9.0640        .24072E-06    .84035E-04
  10  Prefactor     6.0089        14.932        .13076E-05    .31927E-03
  11  Prefactor     121.69        65.109        .14309E-05    .17954E-03
  12  Prefactor     .10000E-03    20.276        .14602E-06** at limit **
  13  Prefactor     5.5065        463.87       -.81222E-05   -.10062E-04
  14  Prefactor     .10000E-03    4.6512       -.47363E-06** at limit **
  15  Prefactor     .10000E-03    128.71        .96671E-06** at limit **
  16  Prefactor     .10000E-03    16.474       -.19186E-05** at limit **
  17  norm          14.118        20.156       -.14431E-06   -.60381E-04
  18  norm          .10000E-03    6.1565       -.50704E-06** at limit **
  19  norm          .10000E-03    2.3559       -.52393E-07** at limit **
  20  Prefactor     .21044        19.726        .53135E-05   -.66733E-03
  21  Prefactor     .10000E-03    31.227        .13510E-05** at limit **
  22  norm          .10000E-03    4.4130        .15780E-06** at limit **
  23  Prefactor     .10000E-03    12.155        .16518E-05** at limit **
  24  norm          .80892        1.4589       -.50255E-07   -.85523E-03
  25  norm          .10000E-03    1.9799       -.57012E-07** at limit **
  26  Prefactor     .10000E-03    6.7863        .71733E-06** at limit **
  27  Prefactor     3.5067        3.8118        .15105E-06    .14546E-05
  28  Prefactor     .10000E-03    9.1898       -.36373E-06** at limit **
  29  norm          .10000E-03    9.0588       -.44527E-06** at limit **
  30  Prefactor     .10000E-03    5.8881        .10160E-05** at limit **
  31  Prefactor     7.6507        5.9031       -.37685E-07   -.42724E-04
  32  Normalizat    1.5390        .23157        .30909E-06   -.11486E-03
  33  Prefactor     .70905        .23055       -.51292E-06   -.98714E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 7.85417
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.34892
  Prefactor  = 0.0001
  norm       = 16.5379
  norm       = 3.70918
  Prefactor  = 2.03666
  Prefactor  = 6.00892
  Prefactor  = 121.687
  Prefactor  = 0.0001
  Prefactor  = 5.50652
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 14.1185
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.210442
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.808924
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.50673
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.65068
  Normalizat = 1.53898
  Prefactor  = 0.70905
 **********
 **   18 **HESSE 
 **********

 FCN=   4698.518     FROM HESSE     STATUS=OK           691 CALLS     5394 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    19.958        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     7.8542        31.232        .14304E-03   -1.5147    
   3  Prefactor     .10000E-03    33.255        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    5.4610        .15618E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     2.3489        5.0890        .22198E-03   -1.5401    
   6  Prefactor     .10000E-03    5.2587        .15305E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          16.538        42.933        .98565E-04   -1.4894    
   8  norm          3.7092        8.1624        .10486E-02   -1.5323    
   9  Prefactor     2.0367        8.9336        .28954E-03   -1.5423    
  10  Prefactor     6.0089        15.004        .81923E-03   -1.5218    
  11  Prefactor     121.69        65.072        .36481E-04   -1.3497    
  12  Prefactor     .10000E-03    20.291        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     5.5065        464.60        .17137E-03   -1.5239    
  14  Prefactor     .10000E-03    4.6625        .14443E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    129.11        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    16.611        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          14.118        20.158        .10660E-03   -1.4956    
  18  norm          .10000E-03    6.1947        .16594E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    2.3591        .10275E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .21044        75.129        .36715E-02   -1.5616    
  21  Prefactor     .10000E-03    31.386        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    4.6144        .28092E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    12.176        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .80892        1.2938        .95027E-03   -1.5528    
  25  norm          .10000E-03    1.9918        .94183E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    6.7974        .17441E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     3.5067        3.7414        .13013E-03   -1.5333    
  28  Prefactor     .10000E-03    9.1999        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          .10000E-03    9.0648        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    14.354        .30356E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     7.6507        5.8890        .13087E-03   -1.5155    
  32  Normalizat    1.5390        .27759        .22338E-03   -.76689    
  33  Prefactor     .70905        .27485        .32529E-03   -1.0317    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.1971e-08
Minuit parameter uncertainties:
  1  7.27509e-05
  2  31.2971
  3  0.000245379
  4  1.08647e-05
  5  5.08997
  6  1.74775e-05
  7  43.0132
  8  8.16481
  9  8.53296
  10  15.0132
  11  65.1099
  12  0.000138684
  13  101.989
  14  2.66763e-05
  15  7.32368e-05
  16  0.00023522
  17  20.1673
  18  5.59349e-05
  19  2.9798e-06
  20  7.9606
  21  0.000150391
  22  4.02549e-06
  23  6.46117e-05
  24  1.29388
  25  3.95752e-06
  26  4.18842e-05
  27  3.74161
  28  3.48524e-05
  29  3.45848e-05
  30  0.000163709
  31  5.88944
  32  0.277863
  33  0.27538
Done.

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

Extracting fit parameters...

4FGL J2329.3-4955
   Spectrum: LogParabola
476         norm:  8.089e-01  1.294e+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.090e-01  2.754e-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.539e+00  2.779e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.67
Ra Dec: 352.329 -49.932
Photon Flux Upper Limit: 1.04e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.97e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/968875/likelihoodResults_585360001_585619201_4FGL_J2329.3-4955_daily_bin1335.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4698.42618809
delta logL = 0.0915989798759

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4698.42274469
delta logL = 0.095042375232

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .77883       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.8633       1.0000          .0000       5.0000    
     3 'Normalizat'    1.5127       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .72678       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=   4698.423     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      217 TOTAL
                     EDM=   .32E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .77877        23.529        .12361E-01    .79395E-03
   2  alpha         2.8635        2.8481        .41714        .25335E-04
   3  Normalizat    1.5127        .54819E-01    .50876E-01   -.53578E-06
   4  Prefactor     .72683        .56149E-01    .72672E-01    .18351E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.77877
  alpha      = 2.86345
  Normalizat = 1.51268
  Prefactor  = 0.726828
 **********
 **   18 **HESSE 
 **********

 FCN=   4698.423     FROM HESSE     STATUS=OK            35 CALLS      252 TOTAL
                     EDM=   .64E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .77877        1.4102        .72289E-03   -1.5531    
   2  alpha         2.8635        1.7808        .27735E-01    .14590    
   3  Normalizat    1.5127        .27124        .22492E-03   -.77423    
   4  Prefactor     .72683        .27523        .32163E-03   -1.0248    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.42714e-09
Minuit parameter uncertainties:
  1  1.41031
  2  1.98801
  3  0.271505
  4  0.27575
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/968875': 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) = 4698.42274467
delta logL = 0.0950423948279

Extracting fit parameters...

4FGL J2329.3-4955
   Spectrum: LogParabola
476         norm:  7.788e-01  1.410e+00  1.000e-04  1.000e+04 ( 1.000e-11)
477        alpha:  2.863e+00  1.988e+00  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.268e-01  2.758e-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.513e+00  2.715e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.67
Ra Dec: 352.329 -49.932

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/968875/cmap_HighResolution_585360001_585619201_4FGL_J2329.3-4955_daily_bin1335.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.97e-05', job_status='DONE', photon_flux_upper_limit='1.04e-07', time_completed='2021-09-29 21:45:14.742406', job_id='968875', GAL2='0.73', fit_tolerance='1e-08', EG2='1.51', EG='1.54', time_epoch_completed='1632977114.74', return_code2='0', ts='0.67', comment='SUCCESS', return_code='0', GAL='0.71', dlogl='9.50e-02', ts2='0.87', photon_index_error='0.00', photon_index='2.18' WHERE bin_id='1335' AND source_name='4FGL J2329.3-4955' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 21:45:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0082>
Subject: Job 968875: <4FGL_J2329.3-4955_daily_bin1335> in cluster <slac> Done

Job <4FGL_J2329.3-4955_daily_bin1335> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Sep 29 21:30:46 2021
Job was executed on host(s) <bullet0082>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 21:30:47 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 21:30:47 2021
Terminated at Wed Sep 29 21:45:15 2021
Results reported at Wed Sep 29 21:45:15 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2329.3-4955_daily_bin1335 352.329 -49.9324 585360001 585619201 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 :                                   792.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             284.89 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   867 sec.
    Turnaround time :                            869 sec.

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

