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


Performing analysis on: 4FGL_J2328.3-4036_daily_bin1148
RA = 352.082, Dec = -40.6037
tmin = 536889601, tmax = 537148801
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='929783', job_status='RUN', time_executed='2021-09-29 20:36:01.366499', time_epoch_executed='1632972961.37' WHERE source_name='4FGL J2328.3-4036' and cadence='daily' and bin_id='1148'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/929783

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/929783/ft1_4FGL_J2328.3-4036_daily_bin1148.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/929783/ft2_4FGL_J2328.3-4036_daily_bin1148.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/929783/ft1_4FGL_J2328.3-4036_daily_bin1148.fits outfile=/scratch/kocevski/929783/ft1_filteredMKT_4FGL_J2328.3-4036_daily_bin1148.fits ra=352.082 dec=-40.6037 rad=12.0 tmin=536889601.0 tmax=537148801.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.64
user 3.41
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/929783/ft2_4FGL_J2328.3-4036_daily_bin1148.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/929783/ft1_filteredMKT_4FGL_J2328.3-4036_daily_bin1148.fits evtable="EVENTS" outfile="/scratch/kocevski/929783/ft1_filtered_4FGL_J2328.3-4036_daily_bin1148.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.50
user 0.30
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/929783/ft1_filtered_4FGL_J2328.3-4036_daily_bin1148.fits" evtable="EVENTS" scfile=/scratch/kocevski/929783/ft2_4FGL_J2328.3-4036_daily_bin1148.fits sctable="SC_DATA" outfile=/scratch/kocevski/929783/ltcube_536889601_537148801_4FGL_J2328.3-4036_daily_bin1148.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/929783/ft2_4FGL_J2328.3-4036_daily_bin1148.fits
.....................!
real 11.64
user 11.28
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/929783/ft1_filtered_4FGL_J2328.3-4036_daily_bin1148.fits evtable="EVENTS" scfile=/scratch/kocevski/929783/ft2_4FGL_J2328.3-4036_daily_bin1148.fits sctable="SC_DATA" expcube=/scratch/kocevski/929783/ltcube_536889601_537148801_4FGL_J2328.3-4036_daily_bin1148.fits outfile=/scratch/kocevski/929783/expmap_536889601_537148801_4FGL_J2328.3-4036_daily_bin1148.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/929783/ltcube_536889601_537148801_4FGL_J2328.3-4036_daily_bin1148.fits
.....................!
real 190.59
user 185.66
sys 4.59

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/929783/ft1_filtered_4FGL_J2328.3-4036_daily_bin1148.fits scfile=/scratch/kocevski/929783/ft2_4FGL_J2328.3-4036_daily_bin1148.fits outfile=/scratch/kocevski/929783/cmap_536889601_537148801_4FGL_J2328.3-4036_daily_bin1148.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/929783/ft1_filtered_4FGL_J2328.3-4036_daily_bin1148.fits scfile=/scratch/kocevski/929783/ft2_4FGL_J2328.3-4036_daily_bin1148.fits outfile=/scratch/kocevski/929783/cmap_HighResolution_536889601_537148801_4FGL_J2328.3-4036_daily_bin1148.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.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/929783/ft1_filtered_4FGL_J2328.3-4036_daily_bin1148.fits evtable="EVENTS" scfile=/scratch/kocevski/929783/ft2_4FGL_J2328.3-4036_daily_bin1148.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/929783/Model_4FGL_J2328.3-4036_daily_bin1148.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/929783/ft1_filtered_4FGL_J2328.3-4036_daily_bin1148.fits.....................!
real 35.82
user 33.95
sys 1.61

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    21.073       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10539E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    9.2021       1.0000         .10000E-03   10000.    
     6 'Prefactor '    18.141       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10103E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10570E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    21.018       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.8579       1.0000         .10000E-03   10000.    
    12 'Prefactor '    29.710       1.0000         .10000E-03   10000.    
    13 'Prefactor '    68.960       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    2.3246       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    6.3526       1.0000         .10000E-03   10000.    
    19 'Prefactor '    7.7270       1.0000         .10000E-03   10000.    
    20 'Prefactor '    28.584       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    13.249       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10158E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    1.3577       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.1850       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .84567       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=   4176.126     FROM MIGRAD    STATUS=CONVERGED    856 CALLS     5347 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     21.081        55.564        .11710E-04    .13628E-04
   2  Prefactor     .10000E-03    56.807        .53297E-05** at limit **
   3  Prefactor     .10000E-03    59.461        .10686E-04** at limit **
   4  Prefactor     .10000E-03    103.68       -.44507E-04** at limit **
   5  Prefactor     9.1982        8.3650        .26252E-06    .54605E-03
   6  Prefactor     18.142        7.1707       -.65735E-07    .83858E-05
   7  Prefactor     .10000E-03    22.218        .12118E-04** at limit **
   8  Prefactor     .10000E-03    22.898        .11326E-04** at limit **
   9  Prefactor     21.007        36.753       -.10394E-04   -.34540E-04
  10  Prefactor     .10000E-03    13.918        .22687E-05** at limit **
  11  Prefactor     1.8572        5.5373       -.26128E-05   -.42749E-03
  12  Prefactor     29.715        37.908        .30185E-05    .65661E-05
  13  Prefactor     68.969        70.733        .87309E-05   -.56772E-05
  14  Prefactor     .10000E-03    8.7873       -.18308E-06** at limit **
  15  norm          2.3304        46.075       -.11832E-06   -.26127E-04
  16  norm          .10000E-03    2.7337        .30932E-07** at limit **
  17  norm          .10000E-03    2.9769        .20732E-06** at limit **
  18  norm          6.3527        6.5842        .64258E-06    .28316E-04
  19  Prefactor     7.7267        7.1621       -.92130E-06    .41520E-03
  20  Prefactor     28.557        76.018       -.40753E-04    .22942E-04
  21  Prefactor     .10000E-03    69.134        .27379E-04** at limit **
  22  norm          13.256        10.801        .46323E-05   -.15189E-03
  23  Prefactor     .10000E-03    17.725       -.15843E-04** at limit **
  24  norm          .10000E-03    .36905        .58937E-07** at limit **
  25  norm          .10000E-03    5.1793        .25340E-06** at limit **
  26  Prefactor     .10000E-03    1.7421        .14640E-06** at limit **
  27  Prefactor     .10000E-03    20.513        .82555E-05** at limit **
  28  Prefactor     .10000E-03    29.908       -.29690E-04** at limit **
  29  Prefactor     1.3588        5.7034        .56892E-06   -.64984E-03
  30  Prefactor     .10000E-03    3.2035        .49789E-07** at limit **
  31  Prefactor     .10000E-03    19.364       -.30057E-06** at limit **
  32  Normalizat    1.1848        .22671        .35797E-05   -.70715E-04
  33  Prefactor     .84571        .24121       -.21418E-05    .18180E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 21.0808
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.19824
  Prefactor  = 18.1419
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 21.0066
  Prefactor  = 0.0001
  Prefactor  = 1.85723
  Prefactor  = 29.7148
  Prefactor  = 68.9687
  Prefactor  = 0.0001
  norm       = 2.3304
  norm       = 0.0001
  norm       = 0.0001
  norm       = 6.35275
  Prefactor  = 7.72671
  Prefactor  = 28.5575
  Prefactor  = 0.0001
  norm       = 13.2556
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.35882
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.1848
  Prefactor  = 0.84571
 **********
 **   18 **HESSE 
 **********

 FCN=   4176.126     FROM HESSE     STATUS=OK           687 CALLS     6034 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     21.081        55.574        .87253E-04   -1.4789    
   2  Prefactor     .10000E-03    57.670        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    59.541        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    105.07        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     9.1982        8.3568        .13212E-03   -1.5101    
   6  Prefactor     18.142        7.1729        .94035E-04   -1.4856    
   7  Prefactor     .10000E-03    22.242        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    22.967        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     21.007        36.835        .87366E-04   -1.4791    
  10  Prefactor     .10000E-03    13.994        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     1.8572        5.5196        .25442E-03   -1.5435    
  12  Prefactor     29.715        37.907        .73504E-04   -1.4617    
  13  Prefactor     68.969        70.711        .48337E-04   -1.4045    
  14  Prefactor     .10000E-03    8.8227        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          2.3304        46.248        .26901E-03   -1.5403    
  16  norm          .10000E-03    2.7375        .10434E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    2.9792        .10886E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          6.3527        6.5873        .15925E-03   -1.5204    
  19  Prefactor     7.7267        7.1288        .14426E-03   -1.5152    
  20  Prefactor     28.557        76.633        .74936E-04   -1.4639    
  21  Prefactor     .10000E-03    69.225        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          13.256        10.838        .11004E-03   -1.4980    
  23  Prefactor     .10000E-03    17.781        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    .37263        .38303E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    5.2916        .28651E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    1.7554        .83275E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    20.622        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    29.927        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     1.3588        5.6469        .29513E-03   -1.5475    
  30  Prefactor     .10000E-03    3.2633        .11289E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .10000E-03    19.368        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    1.1848        .28208        .23244E-03   -.87074    
  33  Prefactor     .84571        .29800        .29185E-03   -.98065    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.42407e-09
Minuit parameter uncertainties:
  1  55.7113
  2  0.00012277
  3  6.26326e-05
  4  0.000395083
  5  8.35786
  6  7.17325
  7  5.20716e-05
  8  7.53801e-05
  9  36.875
  10  3.17554e-05
  11  5.52113
  12  37.9375
  13  70.7973
  14  1.0536e-06
  15  20.781
  16  3.11831e-06
  17  7.5081e-06
  18  6.58807
  19  7.12961
  20  76.8987
  21  0.000168473
  22  10.8393
  23  0.000175492
  24  8.54037e-07
  25  8.01803e-05
  26  3.50986e-06
  27  2.94211e-05
  28  1.11441e-05
  29  5.54078
  30  1.9801e-06
  31  1.07859e-05
  32  0.282445
  33  0.29857
Done.

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

Extracting fit parameters...

4FGL J2328.3-4036
   Spectrum: LogParabola
455         norm:  1.326e+01  1.084e+01  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:  8.457e-01  2.986e-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.185e+00  2.824e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.44
Ra Dec: 352.082 -40.604
Photon Index (Fixed Index): 2.33 +/- 0.00
Photon Flux (Fixed Index): 1.00e-07 +/- 8.18e-08
Energy Flux (Fixed Index): 3.50e-05 +/- 2.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) = 4175.67201541
delta logL = 0.454030259386

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4175.66737928
delta logL = 0.458666390078

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.6843       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.1267       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1005       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91902       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4175.667     FROM MIGRAD    STATUS=CONVERGED     78 CALLS      271 TOTAL
                     EDM=   .46E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.6820        14.881        .76452E-04   -.50559E-04
   2  alpha         3.1274        1.5011        .82688E-02   -.24763E-04
   3  Normalizat    1.1005        .29795        .23938E-03   -.35571E-03
   4  Prefactor     .91915        .32012        .28118E-03   -.81782E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 6.68198
  alpha      = 3.12743
  Normalizat = 1.10051
  Prefactor  = 0.919146
 **********
 **   18 **HESSE 
 **********

 FCN=   4175.667     FROM HESSE     STATUS=OK            25 CALLS      296 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.6820        9.6320        .30581E-05   -1.5191    
   2  alpha         3.1274        1.0146        .33075E-03    .25369    
   3  Normalizat    1.1005        .28417        .47877E-04   -.89736    
   4  Prefactor     .91915        .30422        .56237E-04   -.95475    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.97229e-09
Minuit parameter uncertainties:
  1  9.63423
  2  1.04695
  3  0.28457
  4  0.30478
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/929783': 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) = 4175.66737751
delta logL = 0.458668154601

Extracting fit parameters...

4FGL J2328.3-4036
   Spectrum: LogParabola
455         norm:  6.682e+00  9.634e+00  1.000e-04  1.000e+04 ( 1.000e-12)
456        alpha:  3.127e+00  1.047e+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:  9.191e-01  3.048e-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.101e+00  2.846e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.53
Ra Dec: 352.082 -40.604
Photon Index (Free Index): 3.13 +/- 1.05
Photon Flux (Free Index): 1.55e-07 +/- 8.50e-08
Energy Flux (Free Index): 3.05e-05 +/- 1.59e-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/929783/cmap_HighResolution_536889601_537148801_4FGL_J2328.3-4036_daily_bin1148.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.00e-07', energy_flux2='3.05e-05', photon_flux_error='8.18e-08', dlogl='4.59e-01', energy_flux='3.50e-05', photon_flux2='1.55e-07', job_status='DONE', time_completed='2021-09-29 20:47:34.486558', photon_index_error2='1.05', photon_index2='3.13', ts='5.44', fit_tolerance='1e-08', GAL='0.85', photon_index_error='0.00', energy_flux_error2='1.59e-05', EG='1.18', time_epoch_completed='1632973654.49', return_code='0', job_id='929783', GAL2='0.92', EG2='1.10', return_code2='0', energy_flux_error='2.86e-05', photon_flux_error2='8.50e-08', ts2='6.53', photon_index='2.33' WHERE bin_id='1148' AND source_name='4FGL J2328.3-4036' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 20:47:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0111>
Subject: Job 929783: <4FGL_J2328.3-4036_daily_bin1148> in cluster <slac> Done

Job <4FGL_J2328.3-4036_daily_bin1148> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep 29 20:35:26 2021
Job was executed on host(s) <bullet0111>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 20:35:27 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:35:27 2021
Terminated at Wed Sep 29 20:47:35 2021
Results reported at Wed Sep 29 20:47:35 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2328.3-4036_daily_bin1148 352.082 -40.6037 536889601 537148801 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 :                                   684.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             308.56 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   727 sec.
    Turnaround time :                            729 sec.

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

