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 189 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 make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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 = 7465
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2329.3-4955_daily_bin1776
RA = 352.329, Dec = -49.9324
tmin = 699667201, tmax = 699926401
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='846348', job_status='RUN', time_executed='2023-03-08 01:28:39.049213', time_epoch_executed='1678267719.05' WHERE source_name='4FGL J2329.3-4955' and cadence='daily' and bin_id='1776'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/846348

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/846348/ft1_4FGL_J2329.3-4955_daily_bin1776.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/846348/ft2_4FGL_J2329.3-4955_daily_bin1776.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/846348/ft1_4FGL_J2329.3-4955_daily_bin1776.fits outfile=/scratch/kocevski/846348/ft1_filteredMKT_4FGL_J2329.3-4955_daily_bin1776.fits ra=352.329 dec=-49.9324 rad=12.0 tmin=699667201.0 tmax=699926401.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 3.92
user 3.67
sys 0.22

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

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

Number of photons that the gtmktime cut: 587

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/846348/ft1_filtered_4FGL_J2329.3-4955_daily_bin1776.fits" evtable="EVENTS" scfile=/scratch/kocevski/846348/ft2_4FGL_J2329.3-4955_daily_bin1776.fits sctable="SC_DATA" outfile=/scratch/kocevski/846348/ltcube_699667201_699926401_4FGL_J2329.3-4955_daily_bin1776.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/846348/ft2_4FGL_J2329.3-4955_daily_bin1776.fits
.....................!
real 11.90
user 11.55
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/846348/ft1_filtered_4FGL_J2329.3-4955_daily_bin1776.fits evtable="EVENTS" scfile=/scratch/kocevski/846348/ft2_4FGL_J2329.3-4955_daily_bin1776.fits sctable="SC_DATA" expcube=/scratch/kocevski/846348/ltcube_699667201_699926401_4FGL_J2329.3-4955_daily_bin1776.fits outfile=/scratch/kocevski/846348/expmap_699667201_699926401_4FGL_J2329.3-4955_daily_bin1776.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/846348/ltcube_699667201_699926401_4FGL_J2329.3-4955_daily_bin1776.fits
.....................!
real 190.29
user 185.45
sys 4.52

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/846348/ft1_filtered_4FGL_J2329.3-4955_daily_bin1776.fits scfile=/scratch/kocevski/846348/ft2_4FGL_J2329.3-4955_daily_bin1776.fits outfile=/scratch/kocevski/846348/cmap_699667201_699926401_4FGL_J2329.3-4955_daily_bin1776.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.57
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/846348/ft1_filtered_4FGL_J2329.3-4955_daily_bin1776.fits scfile=/scratch/kocevski/846348/ft2_4FGL_J2329.3-4955_daily_bin1776.fits outfile=/scratch/kocevski/846348/cmap_HighResolution_699667201_699926401_4FGL_J2329.3-4955_daily_bin1776.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/846348/ft1_filtered_4FGL_J2329.3-4955_daily_bin1776.fits evtable="EVENTS" scfile=/scratch/kocevski/846348/ft2_4FGL_J2329.3-4955_daily_bin1776.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/846348/Model_4FGL_J2329.3-4955_daily_bin1776.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/846348/ft1_filtered_4FGL_J2329.3-4955_daily_bin1776.fits.....................!
real 47.11
user 44.38
sys 2.10

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/846348/ft1_filtered_4FGL_J2329.3-4955_daily_bin1776.fits', '/scratch/kocevski/846348/ft2_4FGL_J2329.3-4955_daily_bin1776.fits', expMap='/scratch/kocevski/846348/expmap_699667201_699926401_4FGL_J2329.3-4955_daily_bin1776.fits', expCube='/scratch/kocevski/846348/ltcube_699667201_699926401_4FGL_J2329.3-4955_daily_bin1776.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/846348/Model_4FGL_J2329.3-4955_daily_bin1776.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  0.000e+00  1.000e+06 ( 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 -5.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/846348/ft1_filtered_4FGL_J2329.3-4955_daily_bin1776.fits
Spacecraft file(s): /scratch/kocevski/846348/ft2_4FGL_J2329.3-4955_daily_bin1776.fits
Exposure map: /scratch/kocevski/846348/expmap_699667201_699926401_4FGL_J2329.3-4955_daily_bin1776.fits
Exposure cube: /scratch/kocevski/846348/ltcube_699667201_699926401_4FGL_J2329.3-4955_daily_bin1776.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/846348/Model_4FGL_J2329.3-4955_daily_bin1776.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) = 6346.07819484

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    71.527       1.0000          .0000       .10000E+07
     2 'Prefactor '    .36051E-03   1.0000          .0000       .10000E+07
     3 'Prefactor '    .14494E-06   1.0000          .0000       .10000E+07
     4 'Prefactor '    .84558E-05   1.0000          .0000       .10000E+07
     5 'Prefactor '    .51983E-03   1.0000          .0000       .10000E+07
     6 'Prefactor '    .39483E-03   1.0000          .0000       .10000E+07
     7 'norm      '    .16114E-02   1.0000          .0000       .10000E+07
     8 'norm      '    .59283E-05   1.0000          .0000       .10000E+07
     9 'Prefactor '    1.3888       1.0000          .0000       .10000E+07
    10 'Prefactor '    5.0616       1.0000          .0000       .10000E+07
    11 'Prefactor '    .16244E-02   1.0000          .0000       .10000E+07
    12 'Prefactor '    1.6976       1.0000          .0000       .10000E+07
    13 'Prefactor '    45.860       1.0000          .0000       .10000E+07
    14 'Prefactor '    2.2583       1.0000          .0000       .10000E+07
    15 'norm      '    .45708E-03   1.0000          .0000       .10000E+07
    16 'norm      '    .20512E-04   1.0000          .0000       .10000E+07
    17 'norm      '    .86843E-05   1.0000          .0000       .10000E+07
    18 'Prefactor '    3.7897       1.0000          .0000       .10000E+07
    19 'Prefactor '    .10296       1.0000          .0000       .10000E+07
    20 'norm      '    8.5991       1.0000          .0000       .10000E+07
    21 'Prefactor '    12.060       1.0000          .0000       .10000E+07
    22 'norm      '    .71654       1.0000          .0000       .10000E+07
    23 'norm      '    .96464       1.0000          .0000       .10000E+07
    24 'Prefactor '    7.3645       1.0000          .0000       .10000E+07
    25 'Prefactor '    .35742E-04   1.0000          .0000       .10000E+07
    26 'Prefactor '    45.869       1.0000          .0000       .10000E+07
    27 'norm      '    .39665E-03   1.0000          .0000       .10000E+07
    28 'Prefactor '    .39018E-05   1.0000          .0000       .10000E+07
    29 'Prefactor '    1.4894       1.0000          .0000       .10000E+07
    30 'Normalizat'    1.0058       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .93858       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5830E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6346.076     FROM MIGRAD    STATUS=CONVERGED    215 CALLS     3136 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     70.225        67.436       -.38245E-05    .37338E-01
   2  Prefactor     .14572E-06    3.0913        .42555E-06** at limit **
   3  Prefactor     .63449E-06    131.03        .13738E-05** at limit **
   4  Prefactor     .30531E-08    7.2653       -.19537E-07** at limit **
   5  Prefactor     .59730E-07    3.6489       -.70159E-06** at limit **
   6  Prefactor     .11935E-07    2.8351        .85270E-06** at limit **
   7  norm          .64393E-08    25.555        .78065E-06** at limit **
   8  norm          .27756E-09    2.9549        .88102E-07** at limit **
   9  Prefactor     1.3886        2.1259        .59404E-07    .16588E-03
  10  Prefactor     5.0015        4.7785       -.13893E-06   -.25644E-03
  11  Prefactor     .14821E-07    7.0079       -.35463E-06** at limit **
  12  Prefactor     1.7796        5.7729        .23153E-06   -.29981E-03
  13  Prefactor     45.963        19.251        .16060E-05   -.17635    
  14  Prefactor     2.2706        2.6928       -.70247E-06   -.12692E-03
  15  norm          .27756E-09    3.8682       -.68701E-07** at limit **
  16  norm          .22204E-09    2.8736       -.90800E-07** at limit **
  17  norm          .16653E-09    2.0034       -.83983E-07** at limit **
  18  Prefactor     3.7688        6.8960        .51227E-06   -.56488E-02
  19  Prefactor     .15760E-05    4.6925       -.28043E-05** at limit **
  20  norm          8.5690        4.6940        .24740E-06    .24544E-01
  21  Prefactor     12.065        10.608       -.11302E-05    .27921E-01
  22  norm          .71604        .91333       -.64340E-07    .44266E-03
  23  norm          .95884        1.9824       -.14149E-05   -.77647E-01
  24  Prefactor     7.3617        8.0446       -.16162E-06    .19264E-03
  25  Prefactor     .64393E-07    5.1193       -.10816E-05** at limit **
  26  Prefactor     45.844        19.738        .22215E-05    .11197    
  27  norm          .19207E-07    6.3859       -.27301E-06** at limit **
  28  Prefactor     .11102E-09    1.5163        .39030E-06** at limit **
  29  Prefactor     1.4902        3.5098       -.67146E-06   -.13488E-03
  30  Normalizat    1.0064        .20304        .48139E-05   -.79186E-05
  31  Prefactor     .93832        .21023       -.55355E-05   -.10862E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 70.2247
  Prefactor  = 1.45717e-07
  Prefactor  = 6.34492e-07
  Prefactor  = 3.05311e-09
  Prefactor  = 5.973e-08
  Prefactor  = 1.19349e-08
  norm       = 6.43929e-09
  norm       = 2.77556e-10
  Prefactor  = 1.38862
  Prefactor  = 5.00154
  Prefactor  = 1.48215e-08
  Prefactor  = 1.77957
  Prefactor  = 45.9631
  Prefactor  = 2.27056
  norm       = 2.77556e-10
  norm       = 2.22045e-10
  norm       = 1.66533e-10
  Prefactor  = 3.76879
  Prefactor  = 1.57602e-06
  norm       = 8.56897
  Prefactor  = 12.0652
  norm       = 0.716036
  norm       = 0.958839
  Prefactor  = 7.36173
  Prefactor  = 6.43929e-08
  Prefactor  = 45.844
  norm       = 1.92069e-08
  Prefactor  = 1.11022e-10
  Prefactor  = 1.49016
  Normalizat = 1.00644
  Prefactor  = 0.938316
 **********
 **   18 **HESSE 
 **********

 FCN=   6346.076     FROM HESSE     STATUS=OK           682 CALLS     3818 TOTAL
                     EDM=   .23E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     70.225        70.200        .11825E-03   -1.5540    
   2  Prefactor     .14572E-06    5.0704        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .63449E-06    130.53        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .30531E-08    7.6967        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .59730E-07    5.3937        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .11935E-07    8.5934        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .64393E-08    25.576        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .27756E-09    2.9685        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.3886        2.1598        .92203E-03   -1.5684    
  10  Prefactor     5.0015        4.8150        .44669E-03   -1.5663    
  11  Prefactor     .14821E-07    8.4640        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.7796        5.7903        .80722E-03   -1.5681    
  13  Prefactor     45.963        35.236        .14768E-03   -1.5572    
  14  Prefactor     2.2706        23.301        .68333E-03   -1.5678    
  15  norm          .27756E-09    3.9044        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .22204E-09    2.8852        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .16653E-09    2.0083        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     3.7688        7.7895        .51830E-03   -1.5669    
  19  Prefactor     .15760E-05    55.793        .13850E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          8.5690        5.2347        .34160E-03   -1.5649    
  21  Prefactor     12.065        15.087        .28820E-03   -1.5638    
  22  norm          .71604        .96194        .59375E-03   -1.5691    
  23  norm          .95884        4.5978        .42509E-03   -1.5688    
  24  Prefactor     7.3617        8.0433        .36935E-03   -1.5654    
  25  Prefactor     .64393E-07    1.5671        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     45.844        23.147        .14766E-03   -1.5573    
  27  norm          .19207E-07    6.4956        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .11102E-09    1.5174        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     1.4902        3.5296        .87820E-03   -1.5684    
  30  Normalizat    1.0064        .17193        .46239E-01   -.92815    
  31  Prefactor     .93832        .17639        .45495E-01   -.94815    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.31439e-06
Minuit parameter uncertainties:
  1  70.2005
  2  0.00171922
  3  0.0182014
  4  0.000305937
  5  0.00113515
  6  0.000640195
  7  0.000813099
  8  5.75933e-05
  9  2.15979
  10  4.81496
  11  0.000708551
  12  5.79034
  13  35.2365
  14  14.5474
  15  6.74106e-05
  16  5.1337e-05
  17  3.54414e-05
  18  7.78952
  19  0.0187543
  20  5.23473
  21  15.0872
  22  0.961941
  23  4.19931
  24  8.04333
  25  0.000635413
  26  23.1472
  27  0.000705988
  28  2.62056e-05
  29  3.52963
  30  0.172021
  31  0.176502
Done.

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

Extracting fit parameters...

4FGL J2329.3-4955
   Spectrum: LogParabola
476         norm:  7.160e-01  9.619e-01  0.000e+00  1.000e+06 ( 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 -5.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:  9.383e-01  1.765e-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.006e+00  1.720e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/846348/likelihoodResults_699667201_699926401_4FGL_J2329.3-4955_daily_bin1776.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) = 6345.79347307
delta logL = 0.282331180698

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6345.77476444
delta logL = 0.301039808433

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .51824       1.0000          .0000       .10000E+07
     2 'alpha     '    3.3645       1.0000          .0000       5.0000    
     3 'Normalizat'    .96579       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96788       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=   6345.775     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      236 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .51853        8.2168        .76895E-03    .13104E-01
   2  alpha         3.3633        3.8255        .44798        .47970E-04
   3  Normalizat    .96604        .40253E-01    .45737E-01    .12753E-04
   4  Prefactor     .96769        .42614E-01    .45864E-01    .12657E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.518528
  alpha      = 3.36325
  Normalizat = 0.966039
  Prefactor  = 0.967689
 **********
 **   18 **HESSE 
 **********

 FCN=   6345.775     FROM HESSE     STATUS=OK            33 CALLS      269 TOTAL
                     EDM=   .13E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .51853        2.7164        .49853E-05   -1.5694    
   2  alpha         3.3633        4.1816        .23442E-01    .35256    
   3  Normalizat    .96604        .22412        .23346E-03   -.94177    
   4  Prefactor     .96769        .23440        .25197E-03   -.93814    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.33931e-07
Minuit parameter uncertainties:
  1  2.37365
  2  4.48713
  3  0.224334
  4  0.23465
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/846348': 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) = 6345.77476344
delta logL = 0.301040811849

Extracting fit parameters...

4FGL J2329.3-4955
   Spectrum: LogParabola
476         norm:  5.185e-01  2.374e+00  0.000e+00  1.000e+06 ( 1.000e-11)
477        alpha:  3.363e+00  4.487e+00  0.000e+00  5.000e+00 ( 1.000e+00)
478         beta:  1.055e-01  0.000e+00 -5.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:  9.677e-01  2.347e-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.660e-01  2.243e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.58
Ra Dec: 352.329 -49.932
Photon Index (Free Index): 3.36 +/- 4.49
Photon Flux (Free Index): 4.78e-08 +/- 6.07e-08
Energy Flux (Free Index): 8.57e-06 +/- 8.88e-06

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/846348/cmap_HighResolution_699667201_699926401_4FGL_J2329.3-4955_daily_bin1776.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.96e-05', comment='SUCCESS', energy_flux2='8.57e-06', dlogl='3.01e-01', photon_flux2='4.78e-08', job_status='DONE', time_completed='2023-03-08 01:41:41.261802', photon_index_error2='4.49', photon_index2='3.36', ts='0.94', fit_tolerance='1e-08', GAL='0.94', photon_index_error='0.00', photon_flux_upper_limit='7.77e-08', energy_flux_error2='8.88e-06', EG='1.01', time_epoch_completed='1678268501.26', return_code='0', job_id='846348', GAL2='0.97', EG2='0.97', return_code2='0', photon_flux_error2='6.07e-08', ts2='1.58', photon_index='2.18' WHERE bin_id='1776' AND source_name='4FGL J2329.3-4955' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Mar  8 01:41:41 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0161>
Subject: Job 846348: <4FGL_J2329.3-4955_daily_bin1776> in cluster <slac> Done

Job <4FGL_J2329.3-4955_daily_bin1776> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Wed Mar  8 01:25:20 2023
Job was executed on host(s) <bullet0161>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Mar  8 01:25:21 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Mar  8 01:25:21 2023
Terminated at Wed Mar  8 01:41:43 2023
Results reported at Wed Mar  8 01:41:43 2023

Your job looked like:

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

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

