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


Performing analysis on: 4FGL_J2324.7+0801_weekly_bin757
RA = 351.19, Dec = 8.0282
tmin = 696816001, tmax = 697420801
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='289741', job_status='RUN', time_executed='2023-02-07 02:37:07.862646', time_epoch_executed='1675766227.86' WHERE source_name='4FGL J2324.7+0801' and cadence='weekly' and bin_id='757'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/289741

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/289741/ft1_4FGL_J2324.7+0801_weekly_bin757.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/289741/ft2_4FGL_J2324.7+0801_weekly_bin757.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/289741/ft1_4FGL_J2324.7+0801_weekly_bin757.fits outfile=/scratch/kocevski/289741/ft1_filteredMKT_4FGL_J2324.7+0801_weekly_bin757.fits ra=351.19 dec=8.0282 rad=12.0 tmin=696816001.0 tmax=697420801.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 6.45
user 6.04
sys 0.29

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/289741/ft2_4FGL_J2324.7+0801_weekly_bin757.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/289741/ft1_filteredMKT_4FGL_J2324.7+0801_weekly_bin757.fits evtable="EVENTS" outfile="/scratch/kocevski/289741/ft1_filtered_4FGL_J2324.7+0801_weekly_bin757.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

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

Number of photons that the gtmktime cut: 1451

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/289741/ft1_filtered_4FGL_J2324.7+0801_weekly_bin757.fits" evtable="EVENTS" scfile=/scratch/kocevski/289741/ft2_4FGL_J2324.7+0801_weekly_bin757.fits sctable="SC_DATA" outfile=/scratch/kocevski/289741/ltcube_696816001_697420801_4FGL_J2324.7+0801_weekly_bin757.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/289741/ft2_4FGL_J2324.7+0801_weekly_bin757.fits
.....................!
real 24.41
user 23.89
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/289741/ft1_filtered_4FGL_J2324.7+0801_weekly_bin757.fits evtable="EVENTS" scfile=/scratch/kocevski/289741/ft2_4FGL_J2324.7+0801_weekly_bin757.fits sctable="SC_DATA" expcube=/scratch/kocevski/289741/ltcube_696816001_697420801_4FGL_J2324.7+0801_weekly_bin757.fits outfile=/scratch/kocevski/289741/expmap_696816001_697420801_4FGL_J2324.7+0801_weekly_bin757.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/289741/ltcube_696816001_697420801_4FGL_J2324.7+0801_weekly_bin757.fits
.....................!
real 156.19
user 151.26
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 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/289741/ft1_filtered_4FGL_J2324.7+0801_weekly_bin757.fits scfile=/scratch/kocevski/289741/ft2_4FGL_J2324.7+0801_weekly_bin757.fits outfile=/scratch/kocevski/289741/cmap_696816001_697420801_4FGL_J2324.7+0801_weekly_bin757.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.52
user 0.34
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/289741/ft1_filtered_4FGL_J2324.7+0801_weekly_bin757.fits scfile=/scratch/kocevski/289741/ft2_4FGL_J2324.7+0801_weekly_bin757.fits outfile=/scratch/kocevski/289741/cmap_HighResolution_696816001_697420801_4FGL_J2324.7+0801_weekly_bin757.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.51
user 0.34
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/289741/ft1_filtered_4FGL_J2324.7+0801_weekly_bin757.fits evtable="EVENTS" scfile=/scratch/kocevski/289741/ft2_4FGL_J2324.7+0801_weekly_bin757.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/289741/Model_4FGL_J2324.7+0801_weekly_bin757.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/289741/ft1_filtered_4FGL_J2324.7+0801_weekly_bin757.fits.....................!
real 125.76
user 124.31
sys 1.08

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/289741/ft1_filtered_4FGL_J2324.7+0801_weekly_bin757.fits', '/scratch/kocevski/289741/ft2_4FGL_J2324.7+0801_weekly_bin757.fits', expMap='/scratch/kocevski/289741/expmap_696816001_697420801_4FGL_J2324.7+0801_weekly_bin757.fits', expCube='/scratch/kocevski/289741/ltcube_696816001_697420801_4FGL_J2324.7+0801_weekly_bin757.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/289741/Model_4FGL_J2324.7+0801_weekly_bin757.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  0.000e+00  1.000e+06 ( 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/289741/ft1_filtered_4FGL_J2324.7+0801_weekly_bin757.fits
Spacecraft file(s): /scratch/kocevski/289741/ft2_4FGL_J2324.7+0801_weekly_bin757.fits
Exposure map: /scratch/kocevski/289741/expmap_696816001_697420801_4FGL_J2324.7+0801_weekly_bin757.fits
Exposure cube: /scratch/kocevski/289741/ltcube_696816001_697420801_4FGL_J2324.7+0801_weekly_bin757.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/289741/Model_4FGL_J2324.7+0801_weekly_bin757.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) = 15499.237599

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.4095       1.0000         .10000E-03   10000.    
     2 'norm      '    .19633E-05   1.0000          .0000       .10000E+07
     3 'Prefactor '    .51562E-04   1.0000          .0000       .10000E+07
     4 'Prefactor '    2.5629       1.0000          .0000       .10000E+07
     5 'Prefactor '    .60968E-06   1.0000          .0000       .10000E+07
     6 'Prefactor '    10.174       1.0000          .0000       .10000E+07
     7 'norm      '    .25571       1.0000          .0000       .10000E+07
     8 'Prefactor '    5.2519       1.0000          .0000       .10000E+07
     9 'Prefactor '    .29412E-03   1.0000          .0000       .10000E+07
    10 'Prefactor '    13.163       1.0000          .0000       .10000E+07
    11 'norm      '    .45031E-06   1.0000          .0000       .10000E+07
    12 'Prefactor '    5.0341       1.0000          .0000       .10000E+07
    13 'Prefactor '    .17302E-02   1.0000          .0000       .10000E+07
    14 'norm      '    13.917       1.0000          .0000       .10000E+07
    15 'norm      '    8.5530       1.0000          .0000       .10000E+07
    16 'Prefactor '    2.1061       1.0000          .0000       .10000E+07
    17 'Prefactor '    13.775       1.0000          .0000       .10000E+07
    18 'Prefactor '    12.262       1.0000          .0000       .10000E+07
    19 'Prefactor '    2.4764       1.0000          .0000       .10000E+07
    20 'Normalizat'    .95792       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .98713       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5130E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   15499.15     FROM MIGRAD    STATUS=CONVERGED    104 CALLS     1305 TOTAL
                     EDM=   .84E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.4096        .15504        .15863E-06    .50049E-02
   2  norm          .11380E-07    3.8778        .68227E-07** at limit **
   3  Prefactor     .25535E-08    5.4115       -.10272E-06** at limit **
   4  Prefactor     2.5587        3.5966        .81146E-07    .12245E-02
   5  Prefactor     .18097E-07    3.9375       -.39818E-07** at limit **
   6  Prefactor     10.153        5.2629        .54850E-08   -.36570E-02
   7  norm          .25558        .36572        .99264E-08    .75149E-03
   8  Prefactor     5.2835        6.1576        .23804E-07    .72840E-03
   9  Prefactor     .29391E-05    8.9448        .25567E-06** at limit **
  10  Prefactor     13.200        1.0160       -.16576E-08    .82807E-02
  11  norm           .0000        1.7082        .88031E-07** at limit **
  12  Prefactor     5.0289        4.2079       -.11983E-06   -.22773E-02
  13  Prefactor     .33228E-05    8.6022        .21454E-06** at limit **
  14  norm          13.931        1.8911       -.86440E-08   -.26483E-01
  15  norm          8.6701        2.1023       -.65017E-08    .62249E-01
  16  Prefactor     2.0931        3.3089        .15672E-06   -.19358E-02
  17  Prefactor     13.787        1.0839       -.17416E-08    .23506E-01
  18  Prefactor     12.270        1.0290       -.18075E-08    .17627E-02
  19  Prefactor     2.4785        3.2082       -.45106E-07   -.86328E-03
  20  Normalizat    .95798        .16095        .13274E-06   -.45802E-04
  21  Prefactor     .98709        .99737E-01   -.99946E-06   -.10171E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.40957
  norm       = 1.13798e-08
  Prefactor  = 2.55351e-09
  Prefactor  = 2.55867
  Prefactor  = 1.80966e-08
  Prefactor  = 10.1533
  norm       = 0.255577
  Prefactor  = 5.2835
  Prefactor  = 2.93915e-06
  Prefactor  = 13.1995
  norm       = 0
  Prefactor  = 5.02892
  Prefactor  = 3.32279e-06
  norm       = 13.9305
  norm       = 8.67005
  Prefactor  = 2.09313
  Prefactor  = 13.7866
  Prefactor  = 12.2701
  Prefactor  = 2.47851
  Normalizat = 0.957984
  Prefactor  = 0.987088
 **********
 **   18 **HESSE 
 **********

 FCN=   15499.15     FROM HESSE     STATUS=OK           367 CALLS     1672 TOTAL
                     EDM=   .18E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.4096        .15524        .35179E-02   -1.5471    
   2  norm          .11380E-07    3.9728        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .25535E-08    5.4244        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.5587        3.6146        .63740E-03   -1.5676    
   5  Prefactor     .18097E-07    4.0691        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     10.153        5.2727        .31390E-03   -1.5644    
   7  norm          .25558        .44740        .22349E-02   -1.5698    
   8  Prefactor     5.2835        6.2023        .43837E-03   -1.5662    
   9  Prefactor     .29391E-05    17.011        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     13.200        23.741        .27583E-03   -1.5635    
  11  norm           .0000        1.7070        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     5.0289        4.2121        .44793E-03   -1.5663    
  13  Prefactor     .33228E-05    17.642        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          13.931        8.8868        .26823E-03   -1.5633    
  15  norm          8.6701        14.978        .34252E-03   -1.5649    
  16  Prefactor     2.0931        3.7574        .71071E-03   -1.5679    
  17  Prefactor     13.787        18.359        .26961E-03   -1.5634    
  18  Prefactor     12.270        10.797        .28582E-03   -1.5638    
  19  Prefactor     2.4785        3.2102        .64944E-03   -1.5676    
  20  Normalizat    .95798        .13911        .72802E-01   -.94452    
  21  Prefactor     .98709        .85118E-01    .46106E-01   -.93161    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.8442e-06
Minuit parameter uncertainties:
  1  0.155241
  2  0.000425101
  3  0.000235773
  4  3.61457
  5  0.000543113
  6  5.27272
  7  0.4474
  8  6.20235
  9  0.0141418
  10  23.7416
  11  2.87897e-06
  12  4.21208
  13  0.015313
  14  8.88681
  15  14.9782
  16  3.75739
  17  18.3586
  18  10.7971
  19  3.21019
  20  0.139159
  21  0.0851295
Done.

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

Extracting fit parameters...

4FGL J2324.7+0801
   Spectrum: PowerLaw
404    Prefactor:  5.283e+00  6.202e+00  0.000e+00  1.000e+06 ( 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.871e-01  8.513e-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:  9.580e-01  1.392e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/289741/likelihoodResults_696816001_697420801_4FGL_J2324.7+0801_weekly_bin757.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) = 15498.9004132
delta logL = 0.251871385584

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 15498.8851137
delta logL = 0.267170863763

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.2479       1.0000          .0000       .10000E+07
     2 'Index     '    2.7409       1.0000          .0000       10.000    
     3 'Normalizat'    .94235       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99186       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=   15498.89     FROM MIGRAD    STATUS=FAILED        99 CALLS      303 TOTAL
                     EDM=   .66E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.2478        6.9887        .19678E-04   -.24669E-02
   2  Index         2.7410        1.0289        .82894E-02    .10643E-02
   3  Normalizat    .94235        .15763        .32449E-03   -.94246E-04
   4  Prefactor     .99187        .99999E-01    .20225E-03   -.15919E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   15498.89     FROM SIMPLEX   STATUS=UNCHANGED     78 CALLS      381 TOTAL
                     EDM=   .18E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.2478        6.9887        .14872E-04   -1.5672    
   2  Index         2.7410        1.0289        .76617E-03   -.46879    
   3  Normalizat    .94235        .15763        .20016E-03   -.94988    
   4  Prefactor     .99187        .99999E-01    .12163E-03   -.93001    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   15498.89     FROM MIGRAD    STATUS=CONVERGED     30 CALLS      411 TOTAL
                     EDM=   .56E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.2478        5.2117        .78712E-06   -.11562E-02
   2  Index         2.7410        .76986        .16579E-02   -.78174E-05
   3  Normalizat    .94235        .15703        .12980E-04   -.26627E-04
   4  Prefactor     .99187        .99637E-01    .40450E-04   -.42833E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.24775
  Index      = 2.74098
  Normalizat = 0.942347
  Prefactor  = 0.991872
 **********
 **   18 **HESSE 
 **********

 FCN=   15498.89     FROM HESSE     STATUS=OK            23 CALLS      434 TOTAL
                     EDM=   .47E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.2478        5.0012        .37365E-06   -1.5672    
   2  Index         2.7410        .73869        .66316E-04   -.46879    
   3  Normalizat    .94235        .15693        .25959E-05   -.94988    
   4  Prefactor     .99187        .99583E-01    .80900E-05   -.93001    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.66427e-12
Minuit parameter uncertainties:
  1  5.00117
  2  0.742114
  3  0.15701
  4  0.0996015
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/289741': 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) = 15498.8851137
delta logL = 0.267170923469

Extracting fit parameters...

4FGL J2324.7+0801
   Spectrum: PowerLaw
404    Prefactor:  3.248e+00  5.001e+00  0.000e+00  1.000e+06 ( 1.000e-13)
405        Index:  2.741e+00  7.421e-01  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.919e-01  9.960e-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:  9.423e-01  1.570e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.54
Ra Dec: 351.190 8.028
Photon Index (Free Index): 2.74 +/- 0.74
Photon Flux (Free Index): 3.35e-08 +/- 3.34e-08
Energy Flux (Free Index): 7.83e-06 +/- 7.36e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/289741/cmap_HighResolution_696816001_697420801_4FGL_J2324.7+0801_weekly_bin757.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.12e-03', comment='SUCCESS', energy_flux2='7.83e-06', dlogl='2.67e-01', photon_flux2='3.35e-08', job_status='DONE', time_completed='2023-02-07 02:50:05.517869', photon_index_error2='0.74', photon_index2='2.74', ts='0.95', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', photon_flux_upper_limit='6.70e-08', energy_flux_error2='7.36e-06', EG='0.96', time_epoch_completed='1675767005.52', return_code='0', job_id='289741', GAL2='0.99', EG2='0.94', return_code2='0', photon_flux_error2='3.34e-08', ts2='1.54', photon_index='2.23' WHERE bin_id='757' AND source_name='4FGL J2324.7+0801' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Feb  7 02:50:05 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0086>
Subject: Job 289741: <4FGL_J2324.7+0801_weekly_bin757> in cluster <slac> Done

Job <4FGL_J2324.7+0801_weekly_bin757> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Feb  7 02:35:17 2023
Job was executed on host(s) <bullet0086>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Feb  7 02:35:28 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Feb  7 02:35:28 2023
Terminated at Tue Feb  7 02:50:06 2023
Results reported at Tue Feb  7 02:50:06 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.7+0801_weekly_bin757 351.19 8.0282 696816001 697420801 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 :                                   776.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             345.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   877 sec.
    Turnaround time :                            889 sec.

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

