/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 34 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 = 7394
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2328.3-4036_daily_bin1454
RA = 352.082, Dec = -40.6037
tmin = 616204801, tmax = 616464001
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='934668', job_status='RUN', time_executed='2021-09-29 20:41:15.216268', time_epoch_executed='1632973275.22' WHERE source_name='4FGL J2328.3-4036' and cadence='daily' and bin_id='1454'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/934668

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/934668/ft1_4FGL_J2328.3-4036_daily_bin1454.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/934668/ft2_4FGL_J2328.3-4036_daily_bin1454.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/934668/ft1_4FGL_J2328.3-4036_daily_bin1454.fits outfile=/scratch/kocevski/934668/ft1_filteredMKT_4FGL_J2328.3-4036_daily_bin1454.fits ra=352.082 dec=-40.6037 rad=12.0 tmin=616204801.0 tmax=616464001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 3.96
user 3.74
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/934668/ft2_4FGL_J2328.3-4036_daily_bin1454.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/934668/ft1_filteredMKT_4FGL_J2328.3-4036_daily_bin1454.fits evtable="EVENTS" outfile="/scratch/kocevski/934668/ft1_filtered_4FGL_J2328.3-4036_daily_bin1454.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/934668/ft1_filtered_4FGL_J2328.3-4036_daily_bin1454.fits" evtable="EVENTS" scfile=/scratch/kocevski/934668/ft2_4FGL_J2328.3-4036_daily_bin1454.fits sctable="SC_DATA" outfile=/scratch/kocevski/934668/ltcube_616204801_616464001_4FGL_J2328.3-4036_daily_bin1454.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/934668/ft2_4FGL_J2328.3-4036_daily_bin1454.fits
.....................!
real 12.47
user 12.06
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/934668/ft1_filtered_4FGL_J2328.3-4036_daily_bin1454.fits evtable="EVENTS" scfile=/scratch/kocevski/934668/ft2_4FGL_J2328.3-4036_daily_bin1454.fits sctable="SC_DATA" expcube=/scratch/kocevski/934668/ltcube_616204801_616464001_4FGL_J2328.3-4036_daily_bin1454.fits outfile=/scratch/kocevski/934668/expmap_616204801_616464001_4FGL_J2328.3-4036_daily_bin1454.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/934668/ltcube_616204801_616464001_4FGL_J2328.3-4036_daily_bin1454.fits
.....................!
real 191.31
user 186.02
sys 4.96

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/934668/ft1_filtered_4FGL_J2328.3-4036_daily_bin1454.fits scfile=/scratch/kocevski/934668/ft2_4FGL_J2328.3-4036_daily_bin1454.fits outfile=/scratch/kocevski/934668/cmap_616204801_616464001_4FGL_J2328.3-4036_daily_bin1454.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.56
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/934668/ft1_filtered_4FGL_J2328.3-4036_daily_bin1454.fits scfile=/scratch/kocevski/934668/ft2_4FGL_J2328.3-4036_daily_bin1454.fits outfile=/scratch/kocevski/934668/cmap_HighResolution_616204801_616464001_4FGL_J2328.3-4036_daily_bin1454.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.53
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/934668/ft1_filtered_4FGL_J2328.3-4036_daily_bin1454.fits evtable="EVENTS" scfile=/scratch/kocevski/934668/ft2_4FGL_J2328.3-4036_daily_bin1454.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/934668/Model_4FGL_J2328.3-4036_daily_bin1454.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/934668/ft1_filtered_4FGL_J2328.3-4036_daily_bin1454.fits.....................!
real 35.31
user 34.06
sys 1.17

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/934668/ft1_filtered_4FGL_J2328.3-4036_daily_bin1454.fits', '/scratch/kocevski/934668/ft2_4FGL_J2328.3-4036_daily_bin1454.fits', expMap='/scratch/kocevski/934668/expmap_616204801_616464001_4FGL_J2328.3-4036_daily_bin1454.fits', expCube='/scratch/kocevski/934668/ltcube_616204801_616464001_4FGL_J2328.3-4036_daily_bin1454.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/934668/Model_4FGL_J2328.3-4036_daily_bin1454.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  1.000e-04  1.000e+04 ( 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  0.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/934668/ft1_filtered_4FGL_J2328.3-4036_daily_bin1454.fits
Spacecraft file(s): /scratch/kocevski/934668/ft2_4FGL_J2328.3-4036_daily_bin1454.fits
Exposure map: /scratch/kocevski/934668/expmap_616204801_616464001_4FGL_J2328.3-4036_daily_bin1454.fits
Exposure cube: /scratch/kocevski/934668/ltcube_616204801_616464001_4FGL_J2328.3-4036_daily_bin1454.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/934668/Model_4FGL_J2328.3-4036_daily_bin1454.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) = 4364.90872769

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    46.483       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.9614       1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.9562       1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.2982       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    22.391       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    58.795       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    7.3017       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.9626       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    5.0130       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .55286       1.0000         .10000E-03   10000.    
    25 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    26.840       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    1.4495       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    .80027       1.0000         .10000E-01   10.000    
    33 'Prefactor '    1.0485       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4364.881     FROM MIGRAD    STATUS=CONVERGED    849 CALLS     4523 TOTAL
                     EDM=   .35E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    27.315        .10960E-06** at limit **
   2  Prefactor     46.486        29.652        .20182E-06   -.52531E-05
   3  Prefactor     .10000E-03    24.907        .24961E-06** at limit **
   4  Prefactor     5.9907        38.195        .68727E-05    .98257E-07
   5  Prefactor     3.9480        10.314       -.28859E-05   -.29593E-04
   6  Prefactor     4.2982        4.4263        .37289E-07    .72448E-06
   7  Prefactor     .10000E-03    24.188        .28016E-06** at limit **
   8  Prefactor     .10000E-03    15.195       -.22627E-06** at limit **
   9  Prefactor     .10000E-03    34.845       -.42705E-06** at limit **
  10  Prefactor     22.391        15.470        .64194E-08    .32348E-05
  11  Prefactor     .10000E-03    3.7570        .11856E-06** at limit **
  12  Prefactor     58.812        55.652       -.32821E-06   -.17923E-04
  13  Prefactor     .10000E-03    30.590       -.10999E-06** at limit **
  14  Prefactor     .10000E-03    3.9974       -.57774E-07** at limit **
  15  norm          7.3033        13.769       -.76168E-07    .33337E-05
  16  norm          .10000E-03    3.5667       -.60537E-07** at limit **
  17  norm          .10000E-03    2.4127        .62635E-07** at limit **
  18  norm          .10000E-03    2.7517        .34349E-07** at limit **
  19  Prefactor     4.9615        7.0676        .16458E-07    .19375E-06
  20  Prefactor     .10000E-03    35.744        .46448E-07** at limit **
  21  Prefactor     .10000E-03    51.186        .72797E-06** at limit **
  22  norm          5.0119        5.4395       -.12883E-06   -.19404E-05
  23  Prefactor     .10000E-03    10.951        .11963E-06** at limit **
  24  norm          .55280        .85819        .61047E-08    .12669E-04
  25  norm          .10000E-03    3.1166        .23201E-06** at limit **
  26  Prefactor     .10000E-03    1.6091        .74797E-07** at limit **
  27  Prefactor     26.835        23.648        .11449E-06    .31697E-05
  28  Prefactor     .10000E-03    17.576        .10490E-06** at limit **
  29  Prefactor     1.4477        6.5479        .22507E-05    .16107E-04
  30  Prefactor     .10000E-03    1.7023        .17861E-07** at limit **
  31  Prefactor     .10000E-03    30.850       -.15035E-06** at limit **
  32  Normalizat    .80054        .19811       -.15131E-05    .56890E-04
  33  Prefactor     1.0482        .21737        .12172E-05   -.50268E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 46.4855
  Prefactor  = 0.0001
  Prefactor  = 5.99074
  Prefactor  = 3.94801
  Prefactor  = 4.29824
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 22.3907
  Prefactor  = 0.0001
  Prefactor  = 58.8123
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.30327
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 4.96147
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.01189
  Prefactor  = 0.0001
  norm       = 0.552799
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 26.8345
  Prefactor  = 0.0001
  Prefactor  = 1.44774
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.800541
  Prefactor  = 1.04821
 **********
 **   18 **HESSE 
 **********

 FCN=   4364.881     FROM HESSE     STATUS=OK           687 CALLS     5210 TOTAL
                     EDM=   .88E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    27.326        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     46.486        29.641        .58810E-04   -1.4343    
   3  Prefactor     .10000E-03    24.893        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     5.9907        38.920        .16446E-03   -1.5218    
   5  Prefactor     3.9480        10.540        .20280E-03   -1.5311    
   6  Prefactor     4.2982        4.4211        .13657E-03   -1.5293    
   7  Prefactor     .10000E-03    24.161        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    15.207        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    35.082        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     22.391        15.480        .84648E-04   -1.4761    
  11  Prefactor     .10000E-03    3.7637        .12498E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     58.812        55.529        .52322E-04   -1.4173    
  13  Prefactor     .10000E-03    30.608        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    3.9972        .12899E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          7.3033        13.783        .14843E-03   -1.5167    
  16  norm          .10000E-03    3.5683        .12178E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    2.4140        .10020E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    2.7575        .10703E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     4.9615        7.0334        .18053E-03   -1.5262    
  20  Prefactor     .10000E-03    35.761        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    51.219        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          5.0119        5.4276        .15001E-03   -1.5260    
  23  Prefactor     .10000E-03    10.982        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .55280        .85660        .22969E-03   -1.5559    
  25  norm          .10000E-03    3.1612        .11362E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    1.6149        .81772E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     26.835        23.626        .77327E-04   -1.4671    
  28  Prefactor     .10000E-03    17.576        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     1.4477        6.5848        .15483E-02   -1.5467    
  30  Prefactor     .10000E-03    1.7185        .84126E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .10000E-03    30.902        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    .80054        .22902        .23523E-03   -1.0005    
  33  Prefactor     1.0482        .25147        .23957E-03   -.91139    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.79947e-11
Minuit parameter uncertainties:
  1  1.97345e-05
  2  29.6501
  3  3.50766e-05
  4  30.5681
  5  10.5447
  6  4.42143
  7  3.58486e-05
  8  2.42455e-05
  9  6.21353e-05
  10  15.4827
  11  4.26569e-06
  12  55.5784
  13  2.63227e-05
  14  1.63645e-06
  15  13.7886
  16  3.27506e-06
  17  2.81834e-07
  18  4.75133e-07
  19  7.03458
  20  3.39416e-05
  21  9.15011e-05
  22  5.42812
  23  6.10151e-06
  24  0.856618
  25  2.33428e-06
  26  8.34534e-07
  27  23.6338
  28  1.25162e-05
  29  6.17603
  30  1.26954e-06
  31  2.20113e-05
  32  0.229299
  33  0.251753
Done.

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

Extracting fit parameters...

4FGL J2328.3-4036
   Spectrum: LogParabola
455         norm:  5.012e+00  5.428e+00  1.000e-04  1.000e+04 ( 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  0.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:  1.048e+00  2.518e-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:  8.005e-01  2.293e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.17
Ra Dec: 352.082 -40.604
Photon Index (Fixed Index): 2.33 +/- 0.00
Photon Flux (Fixed Index): 3.79e-08 +/- 4.10e-08
Energy Flux (Fixed Index): 1.32e-05 +/- 1.43e-05

TS (Fixed Index): 1.17
Ra Dec: 352.082 -40.604
Photon Flux Upper Limit: 1.25e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.38e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/934668/likelihoodResults_616204801_616464001_4FGL_J2328.3-4036_daily_bin1454.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) = 4364.46862849
delta logL = 0.41236827561

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4364.45702396
delta logL = 0.423972804722

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.1746       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.1061       1.0000          .0000       5.0000    
     3 'Normalizat'    .75905       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0756       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=   4364.457     FROM MIGRAD    STATUS=CONVERGED     40 CALLS      226 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.1746        54.437        .56863E-02    .72425E-03
   2  alpha         3.1061        4.0393        .29994        .37331E-04
   3  Normalizat    .75904        .61710E-01    .43073E-01   -.26893E-04
   4  Prefactor     1.0755        .68143E-01    .38600E-01    .52679E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.17457
  alpha      = 3.10614
  Normalizat = 0.75904
  Prefactor  = 1.07555
 **********
 **   18 **HESSE 
 **********

 FCN=   4364.457     FROM HESSE     STATUS=OK            33 CALLS      259 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.1746        4.9556        .87333E-04   -1.5352    
   2  alpha         3.1061        1.0039        .11594E-01    .24490    
   3  Normalizat    .75904        .21967        .24091E-03   -1.0161    
   4  Prefactor     1.0755        .24835        .23677E-03   -.90252    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.74258e-09
Minuit parameter uncertainties:
  1  4.95622
  2  1.03503
  3  0.219928
  4  0.248619
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/934668': 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) = 4364.45702395
delta logL = 0.423972811413

Extracting fit parameters...

4FGL J2328.3-4036
   Spectrum: LogParabola
455         norm:  3.175e+00  4.956e+00  1.000e-04  1.000e+04 ( 1.000e-12)
456        alpha:  3.106e+00  1.035e+00  0.000e+00  5.000e+00 ( 1.000e+00)
457         beta:  7.057e-02  0.000e+00  0.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:  1.076e+00  2.486e-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:  7.590e-01  2.199e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.05
Ra Dec: 352.082 -40.604
Photon Index (Free Index): 3.11 +/- 1.04
Photon Flux (Free Index): 7.13e-08 +/- 5.97e-08
Energy Flux (Free Index): 1.42e-05 +/- 1.17e-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/934668/cmap_HighResolution_616204801_616464001_4FGL_J2328.3-4036_daily_bin1454.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.38e-05', comment='SUCCESS', photon_flux='3.79e-08', energy_flux2='1.42e-05', photon_flux_error='4.10e-08', dlogl='4.24e-01', energy_flux='1.32e-05', photon_flux2='7.13e-08', job_status='DONE', time_completed='2021-09-29 20:53:50.474796', photon_index_error2='1.04', photon_index2='3.11', ts='1.17', fit_tolerance='1e-08', GAL='1.05', photon_index_error='0.00', photon_flux_upper_limit='1.25e-07', energy_flux_error2='1.17e-05', EG='0.80', time_epoch_completed='1632974030.47', return_code='0', job_id='934668', GAL2='1.08', EG2='0.76', return_code2='0', energy_flux_error='1.43e-05', photon_flux_error2='5.97e-08', ts2='2.05', photon_index='2.33' WHERE bin_id='1454' AND source_name='4FGL J2328.3-4036' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 20:53:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0120>
Subject: Job 934668: <4FGL_J2328.3-4036_daily_bin1454> in cluster <slac> Done

Job <4FGL_J2328.3-4036_daily_bin1454> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 20:40:30 2021
Job was executed on host(s) <bullet0120>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 20:40:31 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 20:40:31 2021
Terminated at Wed Sep 29 20:53:50 2021
Results reported at Wed Sep 29 20:53:50 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2328.3-4036_daily_bin1454 352.082 -40.6037 616204801 616464001 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 :                                   740.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             317.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   799 sec.
    Turnaround time :                            800 sec.

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

