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


Performing analysis on: 4FGL_J2328.3-4036_daily_bin1035
RA = 352.082, Dec = -40.6037
tmin = 507600001, tmax = 507859201
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='118094', job_status='RUN', time_executed='2021-09-30 04:55:39.378851', time_epoch_executed='1633002939.38' WHERE source_name='4FGL J2328.3-4036' and cadence='daily' and bin_id='1035'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/118094

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/118094/ft1_4FGL_J2328.3-4036_daily_bin1035.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/118094/ft2_4FGL_J2328.3-4036_daily_bin1035.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/118094/ft1_4FGL_J2328.3-4036_daily_bin1035.fits outfile=/scratch/kocevski/118094/ft1_filteredMKT_4FGL_J2328.3-4036_daily_bin1035.fits ra=352.082 dec=-40.6037 rad=12.0 tmin=507600001.0 tmax=507859201.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.57
user 3.34
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/118094/ft1_filtered_4FGL_J2328.3-4036_daily_bin1035.fits" evtable="EVENTS" scfile=/scratch/kocevski/118094/ft2_4FGL_J2328.3-4036_daily_bin1035.fits sctable="SC_DATA" outfile=/scratch/kocevski/118094/ltcube_507600001_507859201_4FGL_J2328.3-4036_daily_bin1035.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/118094/ft2_4FGL_J2328.3-4036_daily_bin1035.fits
.....................!
real 11.94
user 11.58
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/118094/ft1_filtered_4FGL_J2328.3-4036_daily_bin1035.fits evtable="EVENTS" scfile=/scratch/kocevski/118094/ft2_4FGL_J2328.3-4036_daily_bin1035.fits sctable="SC_DATA" expcube=/scratch/kocevski/118094/ltcube_507600001_507859201_4FGL_J2328.3-4036_daily_bin1035.fits outfile=/scratch/kocevski/118094/expmap_507600001_507859201_4FGL_J2328.3-4036_daily_bin1035.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/118094/ltcube_507600001_507859201_4FGL_J2328.3-4036_daily_bin1035.fits
.....................!
real 191.04
user 185.50
sys 5.21

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/118094/ft1_filtered_4FGL_J2328.3-4036_daily_bin1035.fits scfile=/scratch/kocevski/118094/ft2_4FGL_J2328.3-4036_daily_bin1035.fits outfile=/scratch/kocevski/118094/cmap_507600001_507859201_4FGL_J2328.3-4036_daily_bin1035.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.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/118094/ft1_filtered_4FGL_J2328.3-4036_daily_bin1035.fits scfile=/scratch/kocevski/118094/ft2_4FGL_J2328.3-4036_daily_bin1035.fits outfile=/scratch/kocevski/118094/cmap_HighResolution_507600001_507859201_4FGL_J2328.3-4036_daily_bin1035.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.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/118094/ft1_filtered_4FGL_J2328.3-4036_daily_bin1035.fits evtable="EVENTS" scfile=/scratch/kocevski/118094/ft2_4FGL_J2328.3-4036_daily_bin1035.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/118094/Model_4FGL_J2328.3-4036_daily_bin1035.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/118094/ft1_filtered_4FGL_J2328.3-4036_daily_bin1035.fits.....................!
real 46.84
user 45.55
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/118094/ft1_filtered_4FGL_J2328.3-4036_daily_bin1035.fits', '/scratch/kocevski/118094/ft2_4FGL_J2328.3-4036_daily_bin1035.fits', expMap='/scratch/kocevski/118094/expmap_507600001_507859201_4FGL_J2328.3-4036_daily_bin1035.fits', expCube='/scratch/kocevski/118094/ltcube_507600001_507859201_4FGL_J2328.3-4036_daily_bin1035.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/118094/Model_4FGL_J2328.3-4036_daily_bin1035.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/118094/ft1_filtered_4FGL_J2328.3-4036_daily_bin1035.fits
Spacecraft file(s): /scratch/kocevski/118094/ft2_4FGL_J2328.3-4036_daily_bin1035.fits
Exposure map: /scratch/kocevski/118094/expmap_507600001_507859201_4FGL_J2328.3-4036_daily_bin1035.fits
Exposure cube: /scratch/kocevski/118094/ltcube_507600001_507859201_4FGL_J2328.3-4036_daily_bin1035.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/118094/Model_4FGL_J2328.3-4036_daily_bin1035.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) = 6347.69814084

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    56.129       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    54.744       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.9665       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    31.105       1.0000         .10000E-03   10000.    
     9 'Prefactor '    17.631       1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.5914       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    28.115       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    30.429       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .18272E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    13.596       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    1.0378       1.0000         .10000E-03   10000.    
    25 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .12391E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    54.095       1.0000         .10000E-03   10000.    
    28 'Prefactor '    18.471       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    1.8948       1.0000         .10000E-03   10000.    
    31 'Prefactor '    118.52       1.0000         .10000E-03   10000.    
    32 'Normalizat'    .98906       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .70154       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=   6347.628     FROM MIGRAD    STATUS=CONVERGED    876 CALLS     4631 TOTAL
                     EDM=   .83E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     56.132        39.944       -.23259E-06   -.16841E-04
   2  Prefactor     .10000E-03    9.1671        .31778E-06** at limit **
   3  Prefactor     54.741        49.912        .10516E-05   -.58803E-04
   4  Prefactor     .10000E-03    6.6409       -.20323E-06** at limit **
   5  Prefactor     5.9672        4.9322        .10433E-06    .23723E-04
   6  Prefactor     .10000E-03    1.5878       -.27017E-07** at limit **
   7  Prefactor     .10000E-03    13.716        .17846E-05** at limit **
   8  Prefactor     31.104        20.506       -.21424E-06    .14330E-05
   9  Prefactor     17.631        19.855        .72748E-08   -.16724E-04
  10  Prefactor     3.5937        10.202        .61277E-05    .48094E-03
  11  Prefactor     .10000E-03    3.2495        .71643E-09** at limit **
  12  Prefactor     .10000E-03    13.802        .20237E-05** at limit **
  13  Prefactor     .10000E-03    23.915       -.93031E-06** at limit **
  14  Prefactor     .10000E-03    8.5818        .16231E-05** at limit **
  15  norm          .10000E-03    5.9260       -.98055E-06** at limit **
  16  norm          .10000E-03    2.7733       -.53913E-08** at limit **
  17  norm          .10000E-03    3.2025       -.18548E-05** at limit **
  18  norm          28.108        11.048        .39930E-07   -.61024E-04
  19  Prefactor     .10000E-03    4.4080        .15200E-07** at limit **
  20  Prefactor     30.434        43.882       -.64562E-06   -.85053E-04
  21  Prefactor     .10000E-03    85.293        .10824E-05** at limit **
  22  norm          13.594        7.2003       -.63866E-07   -.53414E-03
  23  Prefactor     .10000E-03    12.307       -.14152E-05** at limit **
  24  norm          1.0377        .98657        .15032E-06   -.52175E-04
  25  norm          .10000E-03    1.9461        .84234E-07** at limit **
  26  Prefactor     .10007E-03    3.6218        .36382E-05** at limit **
  27  Prefactor     54.103        26.694       -.49132E-06   -.44373E-03
  28  Prefactor     18.468        39.658        .11384E-05    .12697E-04
  29  Prefactor     .10000E-03    1.7304       -.25247E-07** at limit **
  30  Prefactor     1.8953        2.1334        .65483E-07   -.56696E-04
  31  Prefactor     118.52        49.987        .22457E-06    .25776E-05
  32  Normalizat    .98893        .16237       -.13085E-05   -.24711E-03
  33  Prefactor     .70164        .16982        .74877E-06   -.10548E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 56.1316
  Prefactor  = 0.0001
  Prefactor  = 54.7409
  Prefactor  = 0.0001
  Prefactor  = 5.96721
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 31.104
  Prefactor  = 17.6313
  Prefactor  = 3.59368
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.000100002
  norm       = 28.1083
  Prefactor  = 0.0001
  Prefactor  = 30.4342
  Prefactor  = 0.0001
  norm       = 13.5941
  Prefactor  = 0.0001
  norm       = 1.03765
  norm       = 0.0001
  Prefactor  = 0.000100067
  Prefactor  = 54.1029
  Prefactor  = 18.4682
  Prefactor  = 0.0001
  Prefactor  = 1.89527
  Prefactor  = 118.521
  Normalizat = 0.988931
  Prefactor  = 0.701635
 **********
 **   18 **HESSE 
 **********

 FCN=   6347.628     FROM HESSE     STATUS=OK           689 CALLS     5320 TOTAL
                     EDM=   .82E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     56.132        39.957        .53543E-04   -1.4208    
   2  Prefactor     .10000E-03    9.1927        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     54.741        49.845        .54213E-04   -1.4227    
   4  Prefactor     .10000E-03    6.6429        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     5.9672        4.9383        .15587E-03   -1.5219    
   6  Prefactor     .10000E-03    1.6152        .98000E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    13.735        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     31.104        20.516        .71842E-04   -1.4592    
   9  Prefactor     17.631        19.857        .95385E-04   -1.4868    
  10  Prefactor     3.5937        11.350        .10662E-02   -1.5329    
  11  Prefactor     .10000E-03    3.2788        .14021E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    13.820        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    23.937        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    8.6141        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    5.9513        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    2.7915        .12956E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    5.4917        .25425E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          28.108        11.060        .75556E-04   -1.4647    
  19  Prefactor     .10000E-03    4.4749        .16318E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     30.434        44.145        .72633E-04   -1.4604    
  21  Prefactor     .10000E-03    85.937        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          13.594        7.0502        .10712E-03   -1.4970    
  23  Prefactor     .10000E-03    12.402        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          1.0377        .95318        .72577E-03   -1.5504    
  25  norm          .10000E-03    1.9670        .10841E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10007E-03    10.525        .18289E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     54.103        25.944        .54536E-04   -1.4236    
  28  Prefactor     18.468        39.658        .93192E-04   -1.4848    
  29  Prefactor     .10000E-03    1.7374        .10231E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     1.8953        2.1296        .11943E-03   -1.5433    
  31  Prefactor     118.52        50.071        .36962E-04   -1.3526    
  32  Normalizat    .98893        .19492        .21972E-03   -.93402    
  33  Prefactor     .70164        .20259        .28219E-03   -1.0346    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.23848e-09
Minuit parameter uncertainties:
  1  39.9763
  2  4.15894e-06
  3  49.8825
  4  6.12788e-06
  5  4.93859
  6  2.14255e-06
  7  6.99595e-05
  8  20.5208
  9  19.8644
  10  11.3565
  11  1.434e-06
  12  7.63328e-05
  13  5.1934e-05
  14  2.38091e-05
  15  2.05791e-05
  16  2.70583e-06
  17  0.000191949
  18  11.0607
  19  4.69298e-06
  20  44.1927
  21  7.71062e-06
  22  7.05063
  23  1.08836e-05
  24  0.953192
  25  8.40433e-06
  26  0.00167402
  27  25.9494
  28  39.7142
  29  2.27389e-06
  30  2.12972
  31  50.0894
  32  0.195061
  33  0.202798
Done.

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

Extracting fit parameters...

4FGL J2328.3-4036
   Spectrum: LogParabola
455         norm:  1.359e+01  7.051e+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:  7.016e-01  2.028e-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:  9.889e-01  1.951e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 13.61
Ra Dec: 352.082 -40.604
Photon Index (Fixed Index): 2.33 +/- 0.00
Photon Flux (Fixed Index): 1.03e-07 +/- 5.32e-08
Energy Flux (Fixed Index): 3.59e-05 +/- 1.86e-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) = 6346.75828078
delta logL = 0.869583248834

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6346.75663719
delta logL = 0.871226836635

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    9.2943       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.8602       1.0000          .0000       5.0000    
     3 'Normalizat'    .93669       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .74006       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=   6346.757     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      240 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          9.2943        42.500        .32864E-02    .94522E-03
   2  alpha         2.8604        3.7858        .17052        .54482E-04
   3  Normalizat    .93660        .89515E-01    .45369E-01    .32278E-05
   4  Prefactor     .74011        .86469E-01    .62223E-01    .31340E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 9.2943
  alpha      = 2.86037
  Normalizat = 0.936596
  Prefactor  = 0.740113
 **********
 **   18 **HESSE 
 **********

 FCN=   6346.757     FROM HESSE     STATUS=OK            33 CALLS      273 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          9.2943        5.5707        .76956E-04   -1.5098    
   2  alpha         2.8604        .44831        .72122E-02    .14465    
   3  Normalizat    .93660        .18820        .22457E-03   -.95186    
   4  Prefactor     .74011        .20399        .27523E-03   -1.0198    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.47088e-09
Minuit parameter uncertainties:
  1  5.57096
  2  0.450803
  3  0.188332
  4  0.204202
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/118094': 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) = 6346.75663694
delta logL = 0.871227088808

Extracting fit parameters...

4FGL J2328.3-4036
   Spectrum: LogParabola
455         norm:  9.294e+00  5.571e+00  1.000e-04  1.000e+04 ( 1.000e-12)
456        alpha:  2.860e+00  4.508e-01  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:  7.401e-01  2.042e-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:  9.366e-01  1.883e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 15.58
Ra Dec: 352.082 -40.604
Photon Index (Free Index): 2.86 +/- 0.45
Photon Flux (Free Index): 1.44e-07 +/- 5.38e-08
Energy Flux (Free Index): 3.24e-05 +/- 1.13e-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/118094/cmap_HighResolution_507600001_507859201_4FGL_J2328.3-4036_daily_bin1035.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.03e-07', energy_flux2='3.24e-05', photon_flux_error='5.32e-08', dlogl='8.71e-01', energy_flux='3.59e-05', photon_flux2='1.44e-07', job_status='DONE', time_completed='2021-09-30 05:09:57.339845', photon_index_error2='0.45', photon_index2='2.86', ts='13.61', fit_tolerance='1e-08', GAL='0.70', photon_index_error='0.00', energy_flux_error2='1.13e-05', EG='0.99', time_epoch_completed='1633003797.34', return_code='0', job_id='118094', GAL2='0.74', EG2='0.94', return_code2='0', energy_flux_error='1.86e-05', photon_flux_error2='5.38e-08', ts2='15.58', photon_index='2.33' WHERE bin_id='1035' AND source_name='4FGL J2328.3-4036' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 05:09:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0096>
Subject: Job 118094: <4FGL_J2328.3-4036_daily_bin1035> in cluster <slac> Done

Job <4FGL_J2328.3-4036_daily_bin1035> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Thu Sep 30 04:55:11 2021
Job was executed on host(s) <bullet0096>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 04:55:13 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep 30 04:55:13 2021
Terminated at Thu Sep 30 05:09:58 2021
Results reported at Thu Sep 30 05:09:58 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2328.3-4036_daily_bin1035 352.082 -40.6037 507600001 507859201 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 :                                   849.19 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             311.27 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   884 sec.
    Turnaround time :                            887 sec.

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

