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


Performing analysis on: 4FGL_J2324.7+0801_daily_bin1707
RA = 351.19, Dec = 8.0282
tmin = 681782401, tmax = 682041601
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='551597', job_status='RUN', time_executed='2022-08-13 00:36:36.971105', time_epoch_executed='1660376196.97' WHERE source_name='4FGL J2324.7+0801' and cadence='daily' and bin_id='1707'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/551597

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/551597/ft1_4FGL_J2324.7+0801_daily_bin1707.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/551597/ft2_4FGL_J2324.7+0801_daily_bin1707.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/551597/ft1_4FGL_J2324.7+0801_daily_bin1707.fits outfile=/scratch/kocevski/551597/ft1_filteredMKT_4FGL_J2324.7+0801_daily_bin1707.fits ra=351.19 dec=8.0282 rad=12.0 tmin=681782401.0 tmax=682041601.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.48
user 5.22
sys 0.24

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/551597/ft2_4FGL_J2324.7+0801_daily_bin1707.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/551597/ft2_4FGL_J2324.7+0801_daily_bin1707.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/551597/ft1_filteredMKT_4FGL_J2324.7+0801_daily_bin1707.fits evtable="EVENTS" outfile="/scratch/kocevski/551597/ft1_filtered_4FGL_J2324.7+0801_daily_bin1707.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: 519

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/551597/ft1_filtered_4FGL_J2324.7+0801_daily_bin1707.fits" evtable="EVENTS" scfile=/scratch/kocevski/551597/ft2_4FGL_J2324.7+0801_daily_bin1707.fits sctable="SC_DATA" outfile=/scratch/kocevski/551597/ltcube_681782401_682041601_4FGL_J2324.7+0801_daily_bin1707.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/551597/ft2_4FGL_J2324.7+0801_daily_bin1707.fits
.....................!
real 11.64
user 11.28
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/551597/ft1_filtered_4FGL_J2324.7+0801_daily_bin1707.fits evtable="EVENTS" scfile=/scratch/kocevski/551597/ft2_4FGL_J2324.7+0801_daily_bin1707.fits sctable="SC_DATA" expcube=/scratch/kocevski/551597/ltcube_681782401_682041601_4FGL_J2324.7+0801_daily_bin1707.fits outfile=/scratch/kocevski/551597/expmap_681782401_682041601_4FGL_J2324.7+0801_daily_bin1707.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/551597/ltcube_681782401_682041601_4FGL_J2324.7+0801_daily_bin1707.fits
.....................!
real 192.11
user 186.23
sys 5.53

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 157 point sources and 0 extended sources

Setting source of interest to:
4FGL J2324.7+0801 @ 351.19 8.0282

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/551597/ft1_filtered_4FGL_J2324.7+0801_daily_bin1707.fits scfile=/scratch/kocevski/551597/ft2_4FGL_J2324.7+0801_daily_bin1707.fits outfile=/scratch/kocevski/551597/cmap_681782401_682041601_4FGL_J2324.7+0801_daily_bin1707.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=351.19 yref=8.0282 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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/551597/ft1_filtered_4FGL_J2324.7+0801_daily_bin1707.fits scfile=/scratch/kocevski/551597/ft2_4FGL_J2324.7+0801_daily_bin1707.fits outfile=/scratch/kocevski/551597/cmap_HighResolution_681782401_682041601_4FGL_J2324.7+0801_daily_bin1707.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=351.19 yref=8.0282 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.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/551597/ft1_filtered_4FGL_J2324.7+0801_daily_bin1707.fits evtable="EVENTS" scfile=/scratch/kocevski/551597/ft2_4FGL_J2324.7+0801_daily_bin1707.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/551597/Model_4FGL_J2324.7+0801_daily_bin1707.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/551597/ft1_filtered_4FGL_J2324.7+0801_daily_bin1707.fits.....................!
real 65.61
user 64.23
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/551597/ft1_filtered_4FGL_J2324.7+0801_daily_bin1707.fits', '/scratch/kocevski/551597/ft2_4FGL_J2324.7+0801_daily_bin1707.fits', expMap='/scratch/kocevski/551597/expmap_681782401_682041601_4FGL_J2324.7+0801_daily_bin1707.fits', expCube='/scratch/kocevski/551597/ltcube_681782401_682041601_4FGL_J2324.7+0801_daily_bin1707.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/551597/Model_4FGL_J2324.7+0801_daily_bin1707.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2324.7+0801'

4FGL J2324.7+0801
   Spectrum: PowerLaw
404    Prefactor:  3.182e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
405        Index:  2.228e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
406        Scale:  1.539e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/551597/ft1_filtered_4FGL_J2324.7+0801_daily_bin1707.fits
Spacecraft file(s): /scratch/kocevski/551597/ft2_4FGL_J2324.7+0801_daily_bin1707.fits
Exposure map: /scratch/kocevski/551597/expmap_681782401_682041601_4FGL_J2324.7+0801_daily_bin1707.fits
Exposure cube: /scratch/kocevski/551597/ltcube_681782401_682041601_4FGL_J2324.7+0801_daily_bin1707.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/551597/Model_4FGL_J2324.7+0801_daily_bin1707.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) = 5800.14772582

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .63897       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .92633       1.0000         .10000E-03   10000.    
     3 'norm      '    84.052       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.6339       1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.7362       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10231E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .12409E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .82602       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.0135       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .95545       1.0000         .10000E-03   10000.    
    13 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    11.915       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.4425       1.0000         .10000E-03   10000.    
    17 'Prefactor '    13.952       1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    28.166       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10076E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    14.382       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .11015E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .83428       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .98429       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5130E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5800.020     FROM MIGRAD    STATUS=CONVERGED    597 CALLS     2999 TOTAL
                     EDM=   .76E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .60158        111.52        .12343E-04   -.12144E-03
   2  Prefactor     .92640        .23192       -.88455E-08   -.22532E-02
   3  norm          84.045        30.537       -.11193E-06   -.54716E-04
   4  Prefactor     .10000E-03    11.418       -.15110E-06** at limit **
   5  Prefactor     6.6339        8.7011       -.22599E-05   -.53788E-03
   6  Prefactor     3.7364        7.6625       -.12324E-06   -.51896E-04
   7  Prefactor     .10000E-03    38.888        .26077E-05** at limit **
   8  Prefactor     .10001E-03    6.5603        .11155E-05** at limit **
   9  norm          .82696        1.1013        .37274E-07    .15763E-03
  10  Prefactor     .10000E-03    4.8792        .60018E-07** at limit **
  11  Prefactor     1.0093        11.987       -.32679E-07   -.39877E-04
  12  Prefactor     .95407        41.210        .55572E-06   -.18444E-04
  13  norm          .10000E-03    11.624        .25516E-06** at limit **
  14  Prefactor     11.913        8.5100        .15156E-07   -.76641E-04
  15  Prefactor     .10000E-03    217.17       -.81482E-05** at limit **
  16  Prefactor     3.4370        29.028       -.16043E-05   -.17520E-04
  17  Prefactor     13.954        33.142       -.27288E-06   -.11911E-04
  18  norm          .10000E-03    3.7251        .20736E-07** at limit **
  19  norm          28.174        40.132        .12880E-05    .43751E-04
  20  Prefactor     .10000E-03    3.2272        .82235E-07** at limit **
  21  Prefactor     .10000E-03    32.215       -.55054E-05** at limit **
  22  Prefactor     14.382        25.365        .20560E-06    .22299E-04
  23  Prefactor     .10008E-03    10.256       -.53808E-07** at limit **
  24  Normalizat    .83434        .23531       -.21641E-06   -.91025E-04
  25  Prefactor     .98424        .14018        .85867E-07   -.20892E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.601579
  Prefactor  = 0.926401
  norm       = 84.0452
  Prefactor  = 0.0001
  Prefactor  = 6.63386
  Prefactor  = 3.73637
  Prefactor  = 0.0001
  Prefactor  = 0.000100009
  norm       = 0.826955
  Prefactor  = 0.0001
  Prefactor  = 1.00927
  Prefactor  = 0.95407
  norm       = 0.0001
  Prefactor  = 11.9134
  Prefactor  = 0.000100004
  Prefactor  = 3.43695
  Prefactor  = 13.9544
  norm       = 0.0001
  norm       = 28.1736
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 14.3819
  Prefactor  = 0.000100079
  Normalizat = 0.83434
  Prefactor  = 0.984235
 **********
 **   18 **HESSE 
 **********

 FCN=   5800.020     FROM HESSE     STATUS=OK           437 CALLS     3436 TOTAL
                     EDM=   .66E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .60158        123.72        .58655E-02   -1.5553    
   2  Prefactor     .92640        .23016        .16980E-04   -1.5515    
   3  norm          84.045        30.506        .43815E-04   -1.3872    
   4  Prefactor     .10000E-03    11.422        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     6.6339        8.9079        .77900E-03   -1.5193    
   6  Prefactor     3.7364        7.6428        .20889E-03   -1.5321    
   7  Prefactor     .10000E-03    39.518        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10001E-03    18.689        .34049E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .82696        .97753        .87923E-03   -1.5526    
  10  Prefactor     .10000E-03    4.8890        .16425E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     1.0093        69.659        .48111E-02   -1.5507    
  12  Prefactor     .95407        413.53        .93352E-02   -1.5513    
  13  norm          .10000E-03    11.792        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     11.913        8.5201        .11605E-03   -1.5018    
  15  Prefactor     .10000E-03    217.78        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     3.4370        26.627        .21799E-03   -1.5337    
  17  Prefactor     13.954        33.063        .10723E-03   -1.4961    
  18  norm          .10000E-03    3.7258        .14356E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          28.174        38.664        .75488E-04   -1.4646    
  20  Prefactor     .10000E-03    3.2762        .13347E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    32.304        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     14.382        25.374        .10561E-03   -1.4949    
  23  Prefactor     .10008E-03    25.272        .35656E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .83434        .27270        .33873E-03   -.98807    
  25  Prefactor     .98424        .16590        .19755E-03   -.93257    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.55304e-08
Minuit parameter uncertainties:
  1  17.2893
  2  0.230157
  3  30.5116
  4  4.24742e-06
  5  8.90969
  6  7.64477
  7  0.000230716
  8  0.000834131
  9  0.97755
  10  5.19525e-06
  11  16.7891
  12  40.0046
  13  2.23593e-05
  14  8.52096
  15  0.00182662
  16  19.1445
  17  33.1062
  18  1.65293e-06
  19  38.6979
  20  4.79161e-06
  21  0.000399489
  22  25.393
  23  0.00283258
  24  0.273154
  25  0.165988
Done.

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

Extracting fit parameters...

4FGL J2324.7+0801
   Spectrum: PowerLaw
404    Prefactor:  1.000e-04  5.195e-06  1.000e-04  1.000e+04 ( 1.000e-13)
405        Index:  2.228e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
406        Scale:  1.539e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
510    Prefactor:  9.842e-01  1.660e-01  0.000e+00  1.000e+01 ( 1.000e+00)
511        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
512        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
509   Normalization:  8.343e-01  2.732e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 351.190 8.028
Photon Flux Upper Limit: 7.78e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.94e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/551597/likelihoodResults_681782401_682041601_4FGL_J2324.7+0801_daily_bin1707.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): 102
logL (Free Index) = 5800.02088335
delta logL = -0.000973724133473

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5800.01990958
delta logL = 4.70081431558e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10108E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2080       1.0000          .0000       10.000    
     3 'Normalizat'    .83435       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98424       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5130E+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=   5800.020     FROM MIGRAD    STATUS=FAILED        88 CALLS      240 TOTAL
                     EDM=   .25E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10195E-03    65.205        .16688E-02** at limit **
   2  Index         2.1309        5.0278        .50000        .27750E-04
   3  Normalizat    .83434        .19916E-01    .33873E-03   -.72328E-04
   4  Prefactor     .98424        .12609E-01    .19755E-03   -.17265E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5800.020     FROM SIMPLEX   STATUS=PROGRESS     124 CALLS      364 TOTAL
                     EDM=   .46E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10181E-03    65.205        .27280E-03** at limit **
   2  Index         2.1304        5.0278        .17217E-03    .27750E-04
   3  Normalizat    .83433        .19916E-01    .55296E-05   -.72328E-04
   4  Prefactor     .98423        .12609E-01    .22272E-05   -.17265E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5800.020     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      416 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    75.109        .33377E-02** at limit **
   2  Index         1.7501        7.9395        .50000        .84424E-07
   3  Normalizat    .83434        .19891E-01    .13549E-04   -.61420E-04
   4  Prefactor     .98424        .12594E-01    .79019E-05   -.97546E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.75008
  Normalizat = 0.834339
  Prefactor  = 0.984236
 **********
 **   18 **HESSE 
 **********

 FCN=   5800.020     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      445 TOTAL
                     EDM=   .86E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    351.46        .66753E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.7501        7.1701        .50000       -.70756    
   3  Normalizat    .83434        .45707E-01    .27098E-05   -.98807    
   4  Prefactor     .98424        .28940E-01    .15804E-05   -.93257    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.6049e-10
Minuit parameter uncertainties:
  1  9.27593e-05
  2  975.329
  3  0.0457091
  4  0.02894
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/551597': 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): 102
logL (Free Index) = 5800.01990762
delta logL = 2.00484009838e-06

Extracting fit parameters...

4FGL J2324.7+0801
   Spectrum: PowerLaw
404    Prefactor:  1.000e-04  9.276e-05  1.000e-04  1.000e+04 ( 1.000e-13)
405        Index:  1.750e+00  9.753e+02  0.000e+00  1.000e+01 (-1.000e+00)
406        Scale:  1.539e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
510    Prefactor:  9.842e-01  2.894e-02  0.000e+00  1.000e+01 ( 1.000e+00)
511        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
512        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
509   Normalization:  8.343e-01  4.571e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 351.190 8.028

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/551597/cmap_HighResolution_681782401_682041601_4FGL_J2324.7+0801_daily_bin1707.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.94e-03', job_status='DONE', photon_flux_upper_limit='7.78e-08', time_completed='2022-08-13 00:47:50.787074', job_id='551597', GAL2='0.98', fit_tolerance='1e-08', EG2='0.83', EG='0.83', time_epoch_completed='1660376870.79', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='2.00e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='1707' AND source_name='4FGL J2324.7+0801' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 13 00:47:50 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0090>
Subject: Job 551597: <4FGL_J2324.7+0801_daily_bin1707> in cluster <slac> Done

Job <4FGL_J2324.7+0801_daily_bin1707> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Aug 13 00:35:28 2022
Job was executed on host(s) <bullet0090>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 13 00:35:29 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Aug 13 00:35:29 2022
Terminated at Sat Aug 13 00:47:51 2022
Results reported at Sat Aug 13 00:47:51 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.7+0801_daily_bin1707 351.19 8.0282 681782401 682041601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2324.7+0801 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   676.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             363.64 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   742 sec.
    Turnaround time :                            743 sec.

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

