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


Performing analysis on: 4FGL_J2328.3-4036_daily_bin1745
RA = 352.082, Dec = -40.6037
tmin = 691632001, tmax = 691891201
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='658829', job_status='RUN', time_executed='2022-12-05 01:32:39.909351', time_epoch_executed='1670232759.91' WHERE source_name='4FGL J2328.3-4036' and cadence='daily' and bin_id='1745'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/658829

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/658829/ft1_4FGL_J2328.3-4036_daily_bin1745.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/658829/ft2_4FGL_J2328.3-4036_daily_bin1745.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/658829/ft1_4FGL_J2328.3-4036_daily_bin1745.fits outfile=/scratch/kocevski/658829/ft1_filteredMKT_4FGL_J2328.3-4036_daily_bin1745.fits ra=352.082 dec=-40.6037 rad=12.0 tmin=691632001.0 tmax=691891201.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 2.35
user 2.14
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/658829/ft2_4FGL_J2328.3-4036_daily_bin1745.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/658829/ft2_4FGL_J2328.3-4036_daily_bin1745.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/658829/ft1_filteredMKT_4FGL_J2328.3-4036_daily_bin1745.fits evtable="EVENTS" outfile="/scratch/kocevski/658829/ft1_filtered_4FGL_J2328.3-4036_daily_bin1745.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.34
sys 0.14

Number of photons that the gtmktime cut: 515

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/658829/ft1_filtered_4FGL_J2328.3-4036_daily_bin1745.fits" evtable="EVENTS" scfile=/scratch/kocevski/658829/ft2_4FGL_J2328.3-4036_daily_bin1745.fits sctable="SC_DATA" outfile=/scratch/kocevski/658829/ltcube_691632001_691891201_4FGL_J2328.3-4036_daily_bin1745.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/658829/ft2_4FGL_J2328.3-4036_daily_bin1745.fits
.....................!
real 12.69
user 12.30
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/658829/ft1_filtered_4FGL_J2328.3-4036_daily_bin1745.fits evtable="EVENTS" scfile=/scratch/kocevski/658829/ft2_4FGL_J2328.3-4036_daily_bin1745.fits sctable="SC_DATA" expcube=/scratch/kocevski/658829/ltcube_691632001_691891201_4FGL_J2328.3-4036_daily_bin1745.fits outfile=/scratch/kocevski/658829/expmap_691632001_691891201_4FGL_J2328.3-4036_daily_bin1745.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/658829/ltcube_691632001_691891201_4FGL_J2328.3-4036_daily_bin1745.fits
.....................!
real 191.19
user 185.77
sys 4.70

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

Setting source of interest to:
4FGL J2328.3-4036 @ 352.082 -40.6037

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/658829/ft1_filtered_4FGL_J2328.3-4036_daily_bin1745.fits scfile=/scratch/kocevski/658829/ft2_4FGL_J2328.3-4036_daily_bin1745.fits outfile=/scratch/kocevski/658829/cmap_691632001_691891201_4FGL_J2328.3-4036_daily_bin1745.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.082 yref=-40.6037 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.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/658829/ft1_filtered_4FGL_J2328.3-4036_daily_bin1745.fits scfile=/scratch/kocevski/658829/ft2_4FGL_J2328.3-4036_daily_bin1745.fits outfile=/scratch/kocevski/658829/cmap_HighResolution_691632001_691891201_4FGL_J2328.3-4036_daily_bin1745.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.082 yref=-40.6037 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.40
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/658829/ft1_filtered_4FGL_J2328.3-4036_daily_bin1745.fits evtable="EVENTS" scfile=/scratch/kocevski/658829/ft2_4FGL_J2328.3-4036_daily_bin1745.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/658829/Model_4FGL_J2328.3-4036_daily_bin1745.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/658829/ft1_filtered_4FGL_J2328.3-4036_daily_bin1745.fits.....................!
real 43.83
user 42.52
sys 1.23

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/658829/ft1_filtered_4FGL_J2328.3-4036_daily_bin1745.fits', '/scratch/kocevski/658829/ft2_4FGL_J2328.3-4036_daily_bin1745.fits', expMap='/scratch/kocevski/658829/expmap_691632001_691891201_4FGL_J2328.3-4036_daily_bin1745.fits', expCube='/scratch/kocevski/658829/ltcube_691632001_691891201_4FGL_J2328.3-4036_daily_bin1745.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/658829/Model_4FGL_J2328.3-4036_daily_bin1745.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2328.3-4036'

4FGL J2328.3-4036
   Spectrum: LogParabola
455         norm:  4.981e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
456        alpha:  2.333e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
457         beta:  7.057e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
458           Eb:  7.709e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/658829/ft1_filtered_4FGL_J2328.3-4036_daily_bin1745.fits
Spacecraft file(s): /scratch/kocevski/658829/ft2_4FGL_J2328.3-4036_daily_bin1745.fits
Exposure map: /scratch/kocevski/658829/expmap_691632001_691891201_4FGL_J2328.3-4036_daily_bin1745.fits
Exposure cube: /scratch/kocevski/658829/ltcube_691632001_691891201_4FGL_J2328.3-4036_daily_bin1745.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/658829/Model_4FGL_J2328.3-4036_daily_bin1745.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) = 5672.55098894

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    78.163       1.0000          .0000       .10000E+07
     2 'Prefactor '    22.094       1.0000          .0000       .10000E+07
     3 'Prefactor '    .15415E-04   1.0000          .0000       .10000E+07
     4 'Prefactor '    4.9112       1.0000          .0000       .10000E+07
     5 'Prefactor '    5.1926       1.0000          .0000       .10000E+07
     6 'Prefactor '    .94917E-05   1.0000          .0000       .10000E+07
     7 'Prefactor '    .49672E-01   1.0000          .0000       .10000E+07
     8 'Prefactor '    .66744E-02   1.0000          .0000       .10000E+07
     9 'Prefactor '    20.958       1.0000          .0000       .10000E+07
    10 'Prefactor '    .22865E-06   1.0000          .0000       .10000E+07
    11 'Prefactor '    7.6618       1.0000          .0000       .10000E+07
    12 'Prefactor '    16.084       1.0000          .0000       .10000E+07
    13 'norm      '    .24987E-04   1.0000          .0000       .10000E+07
    14 'norm      '    .21653E-03   1.0000          .0000       .10000E+07
    15 'norm      '    .21194E-03   1.0000          .0000       .10000E+07
    16 'norm      '    .14948E-03   1.0000          .0000       .10000E+07
    17 'Prefactor '    4.6909       1.0000          .0000       .10000E+07
    18 'Prefactor '    17.278       1.0000          .0000       .10000E+07
    19 'Prefactor '    .60668E-02   1.0000          .0000       .10000E+07
    20 'norm      '    1.6208       1.0000          .0000       .10000E+07
    21 'Prefactor '    .30561E-02   1.0000          .0000       .10000E+07
    22 'norm      '    1.0255       1.0000          .0000       .10000E+07
    23 'norm      '    .24980E-07   1.0000          .0000       .10000E+07
    24 'Prefactor '    1.5632       1.0000          .0000       .10000E+07
    25 'Prefactor '    .45808E-02   1.0000          .0000       .10000E+07
    26 'Prefactor '    58.175       1.0000          .0000       .10000E+07
    27 'Prefactor '    11.484       1.0000          .0000       .10000E+07
    28 'Prefactor '    .16318E-05   1.0000          .0000       .10000E+07
    29 'Prefactor '    .97245E-04   1.0000          .0000       .10000E+07
    30 'Normalizat'    1.4938       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .43865       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5900E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5672.472     FROM MIGRAD    STATUS=CONVERGED    216 CALLS     3000 TOTAL
                     EDM=   .53E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     77.911        25.428       -.30538E-06   -.61527E-01
   2  Prefactor     22.088        2.7864       -.14554E-06    .11711E-02
   3  Prefactor     .97304E-05    30.358       -.86901E-06** at limit **
   4  Prefactor     4.9949        5.5484        .14735E-06    .47307E-03
   5  Prefactor     5.2010        4.3507       -.77697E-07    .20701E-03
   6  Prefactor     .65287E-05    20.353        .10090E-05** at limit **
   7  Prefactor     .55511E-10    45.044       -.43260E-06** at limit **
   8  Prefactor     .25285E-05    27.079        .24330E-05** at limit **
   9  Prefactor     20.949        12.759        .24598E-07    .12456E-01
  10  Prefactor      .0000        2.1360       -.39721E-06** at limit **
  11  Prefactor     8.3774        4.5443        .42171E-07   -.10690E-02
  12  Prefactor     16.077        14.736        .77743E-06    .49542E-01
  13  norm           .0000        4.1221       -.68242E-07** at limit **
  14  norm           .0000        3.5471       -.25800E-06** at limit **
  15  norm           .0000        3.4455       -.18296E-06** at limit **
  16  norm           .0000        2.8699        .57692E-07** at limit **
  17  Prefactor     4.6961        4.5934        .47397E-07   -.29145E-03
  18  Prefactor     17.261        1.5041       -.66326E-07    .21363E-03
  19  Prefactor     .13267E-07    12.711       -.45325E-06** at limit **
  20  norm          1.6218        2.6582       -.58970E-06   -.63725E-03
  21  Prefactor     .22204E-09    6.8380       -.86080E-07** at limit **
  22  norm          1.0263        1.0652       -.86584E-08   -.71375E-03
  23  norm           .0000        1.5275       -.38062E-06** at limit **
  24  Prefactor     1.5638        2.1236       -.51861E-07   -.80526E-04
  25  Prefactor     .19262E-07    11.927       -.49000E-06** at limit **
  26  Prefactor     57.661        60.581       -.10188E-05    .56165E-01
  27  Prefactor     11.502        6.3372       -.12927E-06    .32725E-03
  28  Prefactor     .70549E-06    6.4795        .62293E-06** at limit **
  29  Prefactor     .41931E-05    46.936       -.61345E-06** at limit **
  30  Normalizat    1.4940        .22622       -.78130E-05    .19814E-05
  31  Prefactor     .43806        .23684        .19177E-04    .60403E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 77.9111
  Prefactor  = 22.0885
  Prefactor  = 9.73044e-06
  Prefactor  = 4.99495
  Prefactor  = 5.20102
  Prefactor  = 6.52867e-06
  Prefactor  = 5.55112e-11
  Prefactor  = 2.52848e-06
  Prefactor  = 20.9489
  Prefactor  = 0
  Prefactor  = 8.37741
  Prefactor  = 16.0767
  norm       = 0
  norm       = 0
  norm       = 0
  norm       = 0
  Prefactor  = 4.69614
  Prefactor  = 17.2614
  Prefactor  = 1.32672e-08
  norm       = 1.62183
  Prefactor  = 2.22045e-10
  norm       = 1.02628
  norm       = 0
  Prefactor  = 1.56381
  Prefactor  = 1.92624e-08
  Prefactor  = 57.6611
  Prefactor  = 11.5022
  Prefactor  = 7.05491e-07
  Prefactor  = 4.19315e-06
  Normalizat = 1.49403
  Prefactor  = 0.438064
 **********
 **   18 **HESSE 
 **********

 FCN=   5672.472     FROM HESSE     STATUS=OK           696 CALLS     3696 TOTAL
                     EDM=   .10E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     77.911        54.328        .11312E-03   -1.5531    
   2  Prefactor     22.088        23.710        .21280E-03   -1.5614    
   3  Prefactor     .97304E-05    45.110        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     4.9949        5.5547        .45362E-03   -1.5663    
   5  Prefactor     5.2010        4.3630        .44091E-03   -1.5662    
   6  Prefactor     .65287E-05    34.102        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .55511E-10    14.500        .10657E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .25285E-05    30.635        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     20.949        12.790        .21850E-03   -1.5616    
  10  Prefactor      .0000        2.1347        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     8.3774        38.918        .36205E-03   -1.5650    
  12  Prefactor     16.077        15.199        .24947E-03   -1.5628    
  13  norm           .0000        4.1248        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm           .0000        3.5466        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm           .0000        3.4456        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm           .0000        2.8702        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     4.6961        4.6098        .46439E-03   -1.5665    
  18  Prefactor     17.261        28.618        .24068E-03   -1.5625    
  19  Prefactor     .13267E-07    12.793        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          1.6218        2.8287        .83097E-03   -1.5682    
  21  Prefactor     .22204E-09    6.8451        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          1.0263        1.1047        .12635E-02   -1.5688    
  23  norm           .0000        1.5265        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     1.5638        2.1487        .85054E-03   -1.5683    
  25  Prefactor     .19262E-07    11.987        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     57.661        73.576        .13112E-03   -1.5556    
  27  Prefactor     11.502        6.3375        .29537E-03   -1.5640    
  28  Prefactor     .70549E-06    3.6791        .49102E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .41931E-05    55.230        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    1.4940        .19963        .45828E-01   -.77946    
  31  Prefactor     .43806        .21143        .84915E-01   -1.1491    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.03976e-06
Minuit parameter uncertainties:
  1  54.3288
  2  23.7101
  3  0.0419019
  4  5.55471
  5  4.36298
  6  0.0298424
  7  4.8196e-05
  8  0.0176023
  9  12.7898
  10  3.46598e-06
  11  36.1133
  12  15.1986
  13  2.1086e-05
  14  6.13715e-06
  15  1.46038e-05
  16  4.0901e-06
  17  4.60977
  18  28.6181
  19  0.000824587
  20  2.82874
  21  8.13809e-05
  22  1.10467
  23  9.12075e-07
  24  2.14869
  25  0.000960494
  26  73.5769
  27  6.33747
  28  0.00322213
  29  0.0304364
  30  0.199733
  31  0.211805
Done.

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

Extracting fit parameters...

4FGL J2328.3-4036
   Spectrum: LogParabola
455         norm:  1.622e+00  2.829e+00  0.000e+00  1.000e+06 ( 1.000e-12)
456        alpha:  2.333e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
457         beta:  7.057e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
458           Eb:  7.709e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
587    Prefactor:  4.381e-01  2.118e-01  0.000e+00  1.000e+01 ( 1.000e+00)
588        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
589        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
586   Normalization:  1.494e+00  1.997e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.58
Ra Dec: 352.082 -40.604
Photon Flux Upper Limit: 7.30e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.55e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/658829/likelihoodResults_691632001_691891201_4FGL_J2328.3-4036_daily_bin1745.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) = 5671.50412491
delta logL = 0.967621029698

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5671.47175466
delta logL = 0.999991287725

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.7249       1.0000          .0000       .10000E+07
     2 'alpha     '    1.1908       1.0000          .0000       5.0000    
     3 'Normalizat'    1.5087       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .42394       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5900E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5671.472     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      213 TOTAL
                     EDM=   .73E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.7204        1.8863        .79931E-03   -.17525E-02
   2  alpha         1.1900        .46354        .40459       -.30427E-04
   3  Normalizat    1.5087        .19594        .45620E-01   -.27512E-06
   4  Prefactor     .42395        .20923        .86124E-01    .40031E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.72036
  alpha      = 1.19002
  Normalizat = 1.50872
  Prefactor  = 0.423954
 **********
 **   18 **HESSE 
 **********

 FCN=   5671.472     FROM HESSE     STATUS=OK            33 CALLS      246 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.7204        2.4241        .10483E-04   -1.5682    
   2  alpha         1.1900        .66009        .16010E-01   -.55153    
   3  Normalizat    1.5087        .22152        .20165E-03   -.77534    
   4  Prefactor     .42395        .23583        .38156E-03   -1.1560    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.89637e-09
Minuit parameter uncertainties:
  1  2.42415
  2  0.671151
  3  0.221659
  4  0.236372
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/658829': 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) = 5671.47175301
delta logL = 0.9999929286

Extracting fit parameters...

4FGL J2328.3-4036
   Spectrum: LogParabola
455         norm:  1.720e+00  2.424e+00  0.000e+00  1.000e+06 ( 1.000e-12)
456        alpha:  1.190e+00  6.712e-01  0.000e+00  5.000e+00 ( 1.000e+00)
457         beta:  7.057e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
458           Eb:  7.709e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
587    Prefactor:  4.240e-01  2.364e-01  0.000e+00  1.000e+01 ( 1.000e+00)
588        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
589        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
586   Normalization:  1.509e+00  2.217e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.59
Ra Dec: 352.082 -40.604
Photon Index (Free Index): 1.19 +/- 0.67
Photon Flux (Free Index): 5.97e-09 +/- 7.78e-09
Energy Flux (Free Index): 2.58e-05 +/- 4.10e-05

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/658829/cmap_HighResolution_691632001_691891201_4FGL_J2328.3-4036_daily_bin1745.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.55e-05', comment='SUCCESS', energy_flux2='2.58e-05', dlogl='1.00e+00', photon_flux2='5.97e-09', job_status='DONE', time_completed='2022-12-05 01:44:31.770092', photon_index_error2='0.67', photon_index2='1.19', ts='0.58', fit_tolerance='1e-08', GAL='0.44', photon_index_error='0.00', photon_flux_upper_limit='7.30e-08', energy_flux_error2='4.10e-05', EG='1.49', time_epoch_completed='1670233471.77', return_code='0', job_id='658829', GAL2='0.42', EG2='1.51', return_code2='0', photon_flux_error2='7.78e-09', ts2='2.59', photon_index='2.33' WHERE bin_id='1745' AND source_name='4FGL J2328.3-4036' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Dec  5 01:44:31 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0208>
Subject: Job 658829: <4FGL_J2328.3-4036_daily_bin1745> in cluster <slac> Done

Job <4FGL_J2328.3-4036_daily_bin1745> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Mon Dec  5 01:30:28 2022
Job was executed on host(s) <bullet0208>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Dec  5 01:30:30 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Dec  5 01:30:30 2022
Terminated at Mon Dec  5 01:44:32 2022
Results reported at Mon Dec  5 01:44:32 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2328.3-4036_daily_bin1745 352.082 -40.6037 691632001 691891201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2328.3-4036 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   713.41 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             287.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   842 sec.
    Turnaround time :                            844 sec.

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

