aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/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 20 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 = 7463
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2329.3-4955_daily_bin1666
RA = 352.329, Dec = -49.9324
tmin = 671155201, tmax = 671414401
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='414614', job_status='RUN', time_executed='2022-04-12 00:36:17.751518', time_epoch_executed='1649748977.75' WHERE source_name='4FGL J2329.3-4955' and cadence='daily' and bin_id='1666'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/414614

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/414614/ft1_4FGL_J2329.3-4955_daily_bin1666.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/414614/ft2_4FGL_J2329.3-4955_daily_bin1666.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/414614/ft1_4FGL_J2329.3-4955_daily_bin1666.fits outfile=/scratch/kocevski/414614/ft1_filteredMKT_4FGL_J2329.3-4955_daily_bin1666.fits ra=352.329 dec=-49.9324 rad=12.0 tmin=671155201.0 tmax=671414401.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 5.33
user 5.04
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/414614/ft2_4FGL_J2329.3-4955_daily_bin1666.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/414614/ft1_filteredMKT_4FGL_J2329.3-4955_daily_bin1666.fits evtable="EVENTS" outfile="/scratch/kocevski/414614/ft1_filtered_4FGL_J2329.3-4955_daily_bin1666.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.32
sys 0.16

Number of photons that the gtmktime cut: 556

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/414614/ft1_filtered_4FGL_J2329.3-4955_daily_bin1666.fits" evtable="EVENTS" scfile=/scratch/kocevski/414614/ft2_4FGL_J2329.3-4955_daily_bin1666.fits sctable="SC_DATA" outfile=/scratch/kocevski/414614/ltcube_671155201_671414401_4FGL_J2329.3-4955_daily_bin1666.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/414614/ft2_4FGL_J2329.3-4955_daily_bin1666.fits
.....................!
real 11.83
user 11.47
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/414614/ft1_filtered_4FGL_J2329.3-4955_daily_bin1666.fits evtable="EVENTS" scfile=/scratch/kocevski/414614/ft2_4FGL_J2329.3-4955_daily_bin1666.fits sctable="SC_DATA" expcube=/scratch/kocevski/414614/ltcube_671155201_671414401_4FGL_J2329.3-4955_daily_bin1666.fits outfile=/scratch/kocevski/414614/expmap_671155201_671414401_4FGL_J2329.3-4955_daily_bin1666.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/414614/ltcube_671155201_671414401_4FGL_J2329.3-4955_daily_bin1666.fits
.....................!
real 191.00
user 185.30
sys 5.28

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/414614/ft1_filtered_4FGL_J2329.3-4955_daily_bin1666.fits scfile=/scratch/kocevski/414614/ft2_4FGL_J2329.3-4955_daily_bin1666.fits outfile=/scratch/kocevski/414614/cmap_671155201_671414401_4FGL_J2329.3-4955_daily_bin1666.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/414614/ft1_filtered_4FGL_J2329.3-4955_daily_bin1666.fits scfile=/scratch/kocevski/414614/ft2_4FGL_J2329.3-4955_daily_bin1666.fits outfile=/scratch/kocevski/414614/cmap_HighResolution_671155201_671414401_4FGL_J2329.3-4955_daily_bin1666.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/414614/ft1_filtered_4FGL_J2329.3-4955_daily_bin1666.fits evtable="EVENTS" scfile=/scratch/kocevski/414614/ft2_4FGL_J2329.3-4955_daily_bin1666.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/414614/Model_4FGL_J2329.3-4955_daily_bin1666.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/414614/ft1_filtered_4FGL_J2329.3-4955_daily_bin1666.fits.....................!
real 42.80
user 41.47
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10159E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    8.6854       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    6.1170       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.3030       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.0560       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   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 '    12.026       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    3.3232       1.0000         .10000E-03   10000.    
    28 'Prefactor '    7.8222       1.0000         .10000E-03   10000.    
    29 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .27073E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .47658       1.0000         .10000E-03   10000.    
    32 'Normalizat'    .95972       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .65677       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=   6066.394     FROM MIGRAD    STATUS=CONVERGED    885 CALLS     3923 TOTAL
                     EDM=   .35E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    15.128        .60957E-05** at limit **
   2  Prefactor     .10000E-03    54.832       -.83970E-05** at limit **
   3  Prefactor     .10000E-03    33.000        .35835E-05** at limit **
   4  Prefactor     8.6839        8.2895        .82515E-07   -.30844E-03
   5  Prefactor     .10000E-03    2.9110       -.33673E-07** at limit **
   6  Prefactor     .10000E-03    5.0181       -.10063E-06** at limit **
   7  norm          .10000E-03    9.7857       -.39150E-05** at limit **
   8  norm          6.1170        4.3212       -.11191E-07    .16931E-04
   9  Prefactor     .10000E-03    .80154        .14581E-07** at limit **
  10  Prefactor     .10000E-03    3.4495        .10773E-06** at limit **
  11  Prefactor     .10000E-03    7.7917        .12081E-05** at limit **
  12  Prefactor     2.3030        3.3097        .47691E-06   -.12689E-02
  13  Prefactor     .10000E-03    36.635        .98157E-05** at limit **
  14  Prefactor     3.0562        4.4213        .12090E-07   -.63310E-04
  15  Prefactor     .10000E-03    8.0606        .62082E-06** at limit **
  16  Prefactor     .10000E-03    7.0175        .16656E-05** at limit **
  17  norm          .10000E-03    4.6782        .18261E-05** at limit **
  18  norm          .10000E-03    2.2625       -.20220E-07** at limit **
  19  norm          .10000E-03    1.5837       -.27028E-07** at limit **
  20  Prefactor     12.027        5.8148        .59757E-08    .66327E-04
  21  Prefactor     .10000E-03    18.652       -.10833E-05** at limit **
  22  norm          .10000E-03    1.2572        .11467E-07** at limit **
  23  Prefactor     .10000E-03    6.0153       -.22527E-05** at limit **
  24  norm          .10000E-03    .31395        .85042E-08** at limit **
  25  norm          .10000E-03    1.4977        .79736E-08** at limit **
  26  Prefactor     .10000E-03    4.2727       -.11935E-05** at limit **
  27  Prefactor     3.3223        3.1933        .63414E-07    .28062E-04
  28  Prefactor     7.8180        20.059       -.67997E-06    .14083E-04
  29  norm          .10000E-03    22.928       -.93027E-05** at limit **
  30  Prefactor     .10000E-03    2.0747        .15044E-06** at limit **
  31  Prefactor     .47807        3.2185        .54223E-06   -.95350E-04
  32  Normalizat    .95965        .14017       -.23839E-07    .43487E-04
  33  Prefactor     .65682        .14837       -.26852E-07    .35065E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.68395
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 6.117
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.30299
  Prefactor  = 0.0001
  Prefactor  = 3.05617
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 12.0268
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.32232
  Prefactor  = 7.81803
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.478075
  Normalizat = 0.959649
  Prefactor  = 0.656821
 **********
 **   18 **HESSE 
 **********

 FCN=   6066.394     FROM HESSE     STATUS=OK           685 CALLS     4608 TOTAL
                     EDM=   .48E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    15.146        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    55.963        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    33.218        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     8.6839        8.3946        .68006E-03   -1.5119    
   5  Prefactor     .10000E-03    2.9395        .12976E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    5.0999        .17033E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    9.7972        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          6.1170        4.3258        .13290E-03   -1.5213    
   9  Prefactor     .10000E-03    .80506        .68092E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    3.5773        .28226E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    7.8103        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.3030        8.1937        .13520E-02   -1.5404    
  13  Prefactor     .10000E-03    36.683        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     3.0562        4.4155        .19054E-03   -1.5358    
  15  Prefactor     .10000E-03    8.0647        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    7.0943        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    4.6872        .16453E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    2.2751        .11436E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    1.5888        .95716E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     12.027        5.7856        .11551E-03   -1.5014    
  21  Prefactor     .10000E-03    18.731        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    1.2697        .85246E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    6.0324        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    .59276        .83836E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    1.5404        .18608E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    4.2909        .15722E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     3.3223        3.1070        .11459E-03   -1.5343    
  28  Prefactor     7.8180        19.816        .14337E-03   -1.5149    
  29  norm          .10000E-03    23.074        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    9.6490        .20949E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .47807        3.3185        .26517E-03   -1.5570    
  32  Normalizat    .95965        .17042        .18978E-03   -.94395    
  33  Prefactor     .65682        .18119        .24429E-03   -1.0524    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.78164e-09
Minuit parameter uncertainties:
  1  4.42442e-05
  2  5.03142e-05
  3  4.14469e-05
  4  8.39578
  5  2.27893e-07
  6  6.3045e-07
  7  2.31579e-05
  8  4.326
  9  3.06689e-08
  10  1.49032e-06
  11  5.14197e-06
  12  8.19764
  13  0.000113039
  14  4.41595
  15  2.95714e-06
  16  3.2206e-06
  17  7.05703e-06
  18  1.9232e-07
  19  3.12617e-08
  20  5.7859
  21  8.36211e-06
  22  6.6594e-08
  23  8.72805e-06
  24  2.99364e-07
  25  5.67634e-08
  26  3.9856e-06
  27  3.10715
  28  19.8325
  29  4.28516e-05
  30  2.35227e-05
  31  2.51905
  32  0.170514
  33  0.181347
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
580    Prefactor:  6.568e-01  1.813e-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:  9.596e-01  1.705e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 352.329 -49.932
Photon Flux Upper Limit: 4.10e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.56e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/414614/likelihoodResults_671155201_671414401_4FGL_J2329.3-4955_daily_bin1666.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) = 6066.40258186
delta logL = -0.00808430744928

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6066.39449751
delta logL = 4.02706064051e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1802       1.0000          .0000       5.0000    
     3 'Normalizat'    .95965       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .65682       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5830E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6066.394     FROM MIGRAD    STATUS=FAILED        88 CALLS      241 TOTAL
                     EDM=   .14E-06    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10008E-03    2.1268        .83776E-03** at limit **
   2  alpha         2.2150        2.6595        .16634       -.11067E-04
   3  Normalizat    .95965        .16522        .18978E-03    .74821E-04
   4  Prefactor     .65682        .17973        .24429E-03    .50353E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6066.394     FROM SIMPLEX   STATUS=UNCHANGED    118 CALLS      359 TOTAL
                     EDM=   .12E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10008E-03    2.1268        .56800E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.2150        2.6595        .62050E-03   -.11424    
   3  Normalizat    .95965        .16522        .98113E-04   -.94395    
   4  Prefactor     .65682        .17973        .10911E-03   -1.0524    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6066.394     FROM MIGRAD    STATUS=CONVERGED     32 CALLS      391 TOTAL
                     EDM=   .12E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .59654        .16755E-03** at limit **
   2  alpha         2.2350        3.4845        .66536E-02   -.30756E-07
   3  Normalizat    .95965        .16543        .75912E-05   -.13449E-03
   4  Prefactor     .65682        .17995        .97717E-05   -.96332E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.23498
  Normalizat = 0.959649
  Prefactor  = 0.656821
 **********
 **   18 **HESSE 
 **********

 FCN=   6066.394     FROM HESSE     STATUS=OK            23 CALLS      414 TOTAL
                     EDM=   .12E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .59654        .33510E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.2350        3.4588        .26615E-03   -.10621    
   3  Normalizat    .95965        .16538        .15182E-05   -.94395    
   4  Prefactor     .65682        .17988        .19543E-05   -1.0524    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.22086e-11
Minuit parameter uncertainties:
  1  2.27308e-07
  2  67.3849
  3  0.165467
  4  0.180036
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/414614': 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) = 6066.39449717
delta logL = 3.82473444915e-07

Extracting fit parameters...

4FGL J2329.3-4955
   Spectrum: LogParabola
476         norm:  1.000e-04  2.273e-07  1.000e-04  1.000e+04 ( 1.000e-11)
477        alpha:  2.235e+00  6.738e+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:  6.568e-01  1.800e-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:  9.596e-01  1.655e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

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

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.56e-05', job_status='DONE', photon_flux_upper_limit='4.10e-08', time_completed='2022-04-12 00:51:01.153043', job_id='414614', GAL2='0.66', fit_tolerance='1e-08', EG2='0.96', EG='0.96', time_epoch_completed='1649749861.15', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.66', dlogl='3.82e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.18' WHERE bin_id='1666' AND source_name='4FGL J2329.3-4955' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Apr 12 00:51:01 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0192>
Subject: Job 414614: <4FGL_J2329.3-4955_daily_bin1666> in cluster <slac> Done

Job <4FGL_J2329.3-4955_daily_bin1666> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Apr 12 00:35:47 2022
Job was executed on host(s) <bullet0192>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Apr 12 00:35:48 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Apr 12 00:35:48 2022
Terminated at Tue Apr 12 00:51:01 2022
Results reported at Tue Apr 12 00:51:01 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2329.3-4955_daily_bin1666 352.329 -49.9324 671155201 671414401 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 :                                   885.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             336.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   913 sec.
    Turnaround time :                            914 sec.

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

