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


Performing analysis on: 4FGL_J2324.7-4041_daily_bin1665
RA = 351.182, Dec = -40.6834
tmin = 670896001, tmax = 671155201
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='358160', job_status='RUN', time_executed='2022-04-09 00:44:23.814802', time_epoch_executed='1649490263.81' WHERE source_name='4FGL J2324.7-4041' and cadence='daily' and bin_id='1665'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/358160

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/358160/ft1_4FGL_J2324.7-4041_daily_bin1665.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/358160/ft2_4FGL_J2324.7-4041_daily_bin1665.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/358160/ft1_4FGL_J2324.7-4041_daily_bin1665.fits outfile=/scratch/kocevski/358160/ft1_filteredMKT_4FGL_J2324.7-4041_daily_bin1665.fits ra=351.182 dec=-40.6834 rad=12.0 tmin=670896001.0 tmax=671155201.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.41
user 5.16
sys 0.23

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/358160/ft2_4FGL_J2324.7-4041_daily_bin1665.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/358160/ft2_4FGL_J2324.7-4041_daily_bin1665.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/358160/ft1_filteredMKT_4FGL_J2324.7-4041_daily_bin1665.fits evtable="EVENTS" outfile="/scratch/kocevski/358160/ft1_filtered_4FGL_J2324.7-4041_daily_bin1665.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.15

Number of photons that the gtmktime cut: 563

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/358160/ft1_filtered_4FGL_J2324.7-4041_daily_bin1665.fits" evtable="EVENTS" scfile=/scratch/kocevski/358160/ft2_4FGL_J2324.7-4041_daily_bin1665.fits sctable="SC_DATA" outfile=/scratch/kocevski/358160/ltcube_670896001_671155201_4FGL_J2324.7-4041_daily_bin1665.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/358160/ft2_4FGL_J2324.7-4041_daily_bin1665.fits
.....................!
real 11.52
user 11.17
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/358160/ft1_filtered_4FGL_J2324.7-4041_daily_bin1665.fits evtable="EVENTS" scfile=/scratch/kocevski/358160/ft2_4FGL_J2324.7-4041_daily_bin1665.fits sctable="SC_DATA" expcube=/scratch/kocevski/358160/ltcube_670896001_671155201_4FGL_J2324.7-4041_daily_bin1665.fits outfile=/scratch/kocevski/358160/expmap_670896001_671155201_4FGL_J2324.7-4041_daily_bin1665.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/358160/ltcube_670896001_671155201_4FGL_J2324.7-4041_daily_bin1665.fits
.....................!
real 190.36
user 185.10
sys 4.92

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

Setting source of interest to:
4FGL J2324.7-4041 @ 351.182 -40.6834

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/358160/ft1_filtered_4FGL_J2324.7-4041_daily_bin1665.fits scfile=/scratch/kocevski/358160/ft2_4FGL_J2324.7-4041_daily_bin1665.fits outfile=/scratch/kocevski/358160/cmap_670896001_671155201_4FGL_J2324.7-4041_daily_bin1665.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.182 yref=-40.6834 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.53
user 0.35
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/358160/ft1_filtered_4FGL_J2324.7-4041_daily_bin1665.fits scfile=/scratch/kocevski/358160/ft2_4FGL_J2324.7-4041_daily_bin1665.fits outfile=/scratch/kocevski/358160/cmap_HighResolution_670896001_671155201_4FGL_J2324.7-4041_daily_bin1665.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.182 yref=-40.6834 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/358160/ft1_filtered_4FGL_J2324.7-4041_daily_bin1665.fits evtable="EVENTS" scfile=/scratch/kocevski/358160/ft2_4FGL_J2324.7-4041_daily_bin1665.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/358160/Model_4FGL_J2324.7-4041_daily_bin1665.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/358160/ft1_filtered_4FGL_J2324.7-4041_daily_bin1665.fits.....................!
real 45.04
user 43.72
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/358160/ft1_filtered_4FGL_J2324.7-4041_daily_bin1665.fits', '/scratch/kocevski/358160/ft2_4FGL_J2324.7-4041_daily_bin1665.fits', expMap='/scratch/kocevski/358160/expmap_670896001_671155201_4FGL_J2324.7-4041_daily_bin1665.fits', expCube='/scratch/kocevski/358160/ltcube_670896001_671155201_4FGL_J2324.7-4041_daily_bin1665.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/358160/Model_4FGL_J2324.7-4041_daily_bin1665.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2324.7-4041'

4FGL J2324.7-4041
   Spectrum: LogParabola
418         norm:  1.376e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
419        alpha:  1.623e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
420         beta:  8.462e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
421           Eb:  2.868e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/358160/ft1_filtered_4FGL_J2324.7-4041_daily_bin1665.fits
Spacecraft file(s): /scratch/kocevski/358160/ft2_4FGL_J2324.7-4041_daily_bin1665.fits
Exposure map: /scratch/kocevski/358160/expmap_670896001_671155201_4FGL_J2324.7-4041_daily_bin1665.fits
Exposure cube: /scratch/kocevski/358160/ltcube_670896001_671155201_4FGL_J2324.7-4041_daily_bin1665.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/358160/Model_4FGL_J2324.7-4041_daily_bin1665.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) = 6218.00502145

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    5.9863       1.0000         .10000E-03   10000.    
     3 'Prefactor '    16.575       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.2102       1.0000         .10000E-03   10000.    
     5 'Prefactor '    17.372       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    14.891       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.2455       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    28.847       1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.3285       1.0000         .10000E-03   10000.    
    14 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10020E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    5.1088       1.0000         .10000E-03   10000.    
    17 'norm      '    13.558       1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.2213       1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.7356       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .31415E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10325E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10694E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    1.7755       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .47121       1.0000         .10000E-03   10000.    
    26 'Prefactor '    3.4745       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .24350E-02   1.0000         .10000E-03   10000.    
    28 'Prefactor '    9.2415       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    .74002       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .86242       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5790E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6217.956     FROM MIGRAD    STATUS=CONVERGED    867 CALLS     3808 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9.8485        .10478E-06** at limit **
   2  Prefactor     5.9859        13.552        .56094E-07   -.38283E-04
   3  Prefactor     16.574        16.782        .67330E-07    .22235E-04
   4  Prefactor     1.2101        1.9221        .12547E-06    .57981E-04
   5  Prefactor     17.373        20.998        .19605E-08    .13808E-04
   6  Prefactor     .10000E-03    5.4600        .38689E-07** at limit **
   7  Prefactor     14.891        14.324       -.79502E-07   -.15661E-04
   8  Prefactor     .10000E-03    9.1923       -.38738E-06** at limit **
   9  Prefactor     6.2457        7.3390        .15908E-06    .37707E-04
  10  Prefactor     .10000E-03    1.7211        .92156E-08** at limit **
  11  Prefactor     .10000E-03    23.355       -.20705E-05** at limit **
  12  Prefactor     28.844        31.268       -.74364E-08    .42562E-05
  13  Prefactor     2.3421        23.054        .17943E-05    .21193E-04
  14  norm          .10000E-03    8.2413        .23850E-06** at limit **
  15  norm          .10000E-03    5.5230       -.29035E-06** at limit **
  16  norm          5.1087        3.5032       -.97949E-06   -.23535E-03
  17  norm          13.560        8.0316        .15778E-06    .30281E-04
  18  Prefactor     3.2239        4.6721        .19491E-06   -.64369E-04
  19  Prefactor     3.7341        37.419        .16945E-05    .20259E-04
  20  Prefactor     .10008E-03    98.741        .12050E-04** at limit **
  21  norm          .10000E-03    3.3166        .14777E-06** at limit **
  22  Prefactor     .10000E-03    5.8419       -.56656E-06** at limit **
  23  norm          .10000E-03    .52138       -.30476E-06** at limit **
  24  norm          1.7750        2.7866        .22952E-06    .16370E-04
  25  Prefactor     .46055        8.5658        .14316E-05   -.35803E-03
  26  Prefactor     3.5387        84.316       -.18573E-05   -.10750E-03
  27  Prefactor     .10224E-03    31.051       -.53507E-05** at limit **
  28  Prefactor     9.2398        4.9089        .17257E-07    .49958E-04
  29  Prefactor     .10000E-03    1.4664       -.85848E-07** at limit **
  30  Prefactor     .10000E-03    22.089        .17609E-05** at limit **
  31  Normalizat    .74014        .14156        .14649E-07    .14081E-03
  32  Prefactor     .86230        .15359        .15405E-06    .14343E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 5.98587
  Prefactor  = 16.5742
  Prefactor  = 1.21008
  Prefactor  = 17.3728
  Prefactor  = 0.0001
  Prefactor  = 14.8914
  Prefactor  = 0.0001
  Prefactor  = 6.24574
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 28.8437
  Prefactor  = 2.34207
  norm       = 0.0001
  norm       = 0.0001
  norm       = 5.10865
  norm       = 13.5605
  Prefactor  = 3.22394
  Prefactor  = 3.73411
  Prefactor  = 0.000100077
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100001
  norm       = 1.77503
  Prefactor  = 0.46055
  Prefactor  = 3.53868
  Prefactor  = 0.000102238
  Prefactor  = 9.23981
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Normalizat = 0.740144
  Prefactor  = 0.862303
 **********
 **   18 **HESSE 
 **********

 FCN=   6217.956     FROM HESSE     STATUS=OK           671 CALLS     4479 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9.8522        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     5.9859        13.415        .16411E-03   -1.5219    
   3  Prefactor     16.574        16.781        .98378E-04   -1.4894    
   4  Prefactor     1.2101        1.8788        .13300E-03   -1.5488    
   5  Prefactor     17.373        20.987        .96092E-04   -1.4874    
   6  Prefactor     .10000E-03    5.6220        .35967E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     14.891        14.324        .10379E-03   -1.4936    
   8  Prefactor     .10000E-03    9.2494        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     6.2457        7.3350        .16063E-03   -1.5208    
  10  Prefactor     .10000E-03    1.7294        .10101E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    23.860        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     28.844        31.270        .74593E-04   -1.4633    
  13  Prefactor     2.3421        21.444        .26876E-03   -1.5402    
  14  norm          .10000E-03    8.3015        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    5.6069        .18076E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          5.1087        3.6065        .60410E-03   -1.5256    
  17  norm          13.560        8.0277        .10878E-03   -1.4971    
  18  Prefactor     3.2239        4.6087        .19224E-03   -1.5349    
  19  Prefactor     3.7341        35.748        .20891E-03   -1.5321    
  20  Prefactor     .10008E-03    109.66        .42740E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    3.3455        .27505E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    5.8771        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    6.9960        .97501E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          1.7750        2.7395        .15220E-03   -1.5442    
  25  Prefactor     .46055        11.466        .23684E-02   -1.5572    
  26  Prefactor     3.5387        57.764        .21694E-03   -1.5332    
  27  Prefactor     .10224E-03    191.52        .74917E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     9.2398        4.9189        .12145E-03   -1.5100    
  29  Prefactor     .10000E-03    2.4839        .18269E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    22.461        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    .74014        .16943        .21276E-03   -1.0233    
  32  Prefactor     .86230        .18428        .22627E-03   -.97471    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.19505e-08
Minuit parameter uncertainties:
  1  1.60407e-05
  2  13.4213
  3  16.7856
  4  1.87889
  5  20.9954
  6  2.10644e-06
  7  14.3274
  8  6.51993e-05
  9  7.33602
  10  2.55491e-07
  11  0.000526211
  12  31.2876
  13  14.1802
  14  3.68344e-05
  15  1.13387e-05
  16  3.60662
  17  8.02829
  18  4.60917
  19  23.125
  20  0.00583115
  21  2.27611e-06
  22  4.76657e-05
  23  0.000136808
  24  2.73974
  25  4.59645
  26  28.6266
  27  0.0415364
  28  4.91915
  29  4.33884e-06
  30  0.000447767
  31  0.169547
  32  0.184418
Done.

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

Extracting fit parameters...

4FGL J2324.7-4041
   Spectrum: LogParabola
418         norm:  5.109e+00  3.607e+00  1.000e-04  1.000e+04 ( 1.000e-13)
419        alpha:  1.623e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
420         beta:  8.462e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
421           Eb:  2.868e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
576    Prefactor:  8.623e-01  1.844e-01  0.000e+00  1.000e+01 ( 1.000e+00)
577        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
578        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
575   Normalization:  7.401e-01  1.695e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 15.87
Ra Dec: 351.182 -40.683
Photon Index (Fixed Index): 1.62 +/- 0.00
Photon Flux (Fixed Index): 1.25e-08 +/- 8.84e-09
Energy Flux (Fixed Index): 2.71e-05 +/- 1.91e-05

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) = 6215.49603531
delta logL = 2.4602568425

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6214.86644767
delta logL = 3.08984448249

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6214.866     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      214 TOTAL
                     EDM=   .78E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.3154        1.5113        .95992E-02   -.41110E-03
   2  alpha         .20669        .54584        .50000        .55090E-04
   3  Normalizat    .74038        .13226        .42827E-01    .16085E-04
   4  Prefactor     .86891        .15189        .44607E-01    .11014E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.31538
  alpha      = 0.206693
  Normalizat = 0.740382
  Prefactor  = 0.868914
 **********
 **   18 **HESSE 
 **********

 FCN=   6214.866     FROM HESSE     STATUS=OK            33 CALLS      247 TOTAL
                     EDM=   .31E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.3154        1.9725        .61060E-04   -1.5479    
   2  alpha         .20669        .59123        .26892E-01   -1.1613    
   3  Normalizat    .74038        .15818        .21269E-03   -1.0232    
   4  Prefactor     .86891        .18167        .22552E-03   -.97236    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.13616e-11
Minuit parameter uncertainties:
  1  1.97256
  2  0.633047
  3  0.158274
  4  0.181796
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/358160': 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) = 6214.86644734
delta logL = 3.0898448205

Extracting fit parameters...

4FGL J2324.7-4041
   Spectrum: LogParabola
418         norm:  1.315e+00  1.973e+00  1.000e-04  1.000e+04 ( 1.000e-13)
419        alpha:  2.067e-01  6.330e-01  0.000e+00  5.000e+00 ( 1.000e+00)
420         beta:  8.462e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
421           Eb:  2.868e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
576    Prefactor:  8.689e-01  1.818e-01  0.000e+00  1.000e+01 ( 1.000e+00)
577        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
578        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
575   Normalization:  7.404e-01  1.583e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 22.05
Ra Dec: 351.182 -40.683
Photon Index (Free Index): 0.21 +/- 0.63
Photon Flux (Free Index): 4.72e-09 +/- 3.36e-09
Energy Flux (Free Index): 1.66e-04 +/- 1.42e-04

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/358160/cmap_HighResolution_670896001_671155201_4FGL_J2324.7-4041_daily_bin1665.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.25e-08', energy_flux2='1.66e-04', photon_flux_error='8.84e-09', dlogl='3.09e+00', energy_flux='2.71e-05', photon_flux2='4.72e-09', job_status='DONE', time_completed='2022-04-09 00:56:43.369627', photon_index_error2='0.63', photon_index2='0.21', ts='15.87', fit_tolerance='1e-08', GAL='0.86', photon_index_error='0.00', energy_flux_error2='1.42e-04', EG='0.74', time_epoch_completed='1649491003.37', return_code='0', job_id='358160', GAL2='0.87', EG2='0.74', return_code2='0', energy_flux_error='1.91e-05', photon_flux_error2='3.36e-09', ts2='22.05', photon_index='1.62' WHERE bin_id='1665' AND source_name='4FGL J2324.7-4041' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Apr  9 00:56:43 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0226>
Subject: Job 358160: <4FGL_J2324.7-4041_daily_bin1665> in cluster <slac> Done

Job <4FGL_J2324.7-4041_daily_bin1665> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sat Apr  9 00:40:14 2022
Job was executed on host(s) <bullet0226>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Apr  9 00:40:16 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Apr  9 00:40:16 2022
Terminated at Sat Apr  9 00:56:43 2022
Results reported at Sat Apr  9 00:56:43 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.7-4041_daily_bin1665 351.182 -40.6834 670896001 671155201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2324.7-4041 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   741.53 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             227.31 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   987 sec.
    Turnaround time :                            989 sec.

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

