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


Performing analysis on: 4FGL_J2328.3-4036_daily_bin1231
RA = 352.082, Dec = -40.6037
tmin = 558403201, tmax = 558662401
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='930036', job_status='RUN', time_executed='2021-09-29 20:37:59.441591', time_epoch_executed='1632973079.44' WHERE source_name='4FGL J2328.3-4036' and cadence='daily' and bin_id='1231'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/930036

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/930036/ft1_4FGL_J2328.3-4036_daily_bin1231.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/930036/ft2_4FGL_J2328.3-4036_daily_bin1231.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/930036/ft1_4FGL_J2328.3-4036_daily_bin1231.fits outfile=/scratch/kocevski/930036/ft1_filteredMKT_4FGL_J2328.3-4036_daily_bin1231.fits ra=352.082 dec=-40.6037 rad=12.0 tmin=558403201.0 tmax=558662401.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.75
user 3.53
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/930036/ft1_filtered_4FGL_J2328.3-4036_daily_bin1231.fits" evtable="EVENTS" scfile=/scratch/kocevski/930036/ft2_4FGL_J2328.3-4036_daily_bin1231.fits sctable="SC_DATA" outfile=/scratch/kocevski/930036/ltcube_558403201_558662401_4FGL_J2328.3-4036_daily_bin1231.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/930036/ft2_4FGL_J2328.3-4036_daily_bin1231.fits
.....................!
real 11.62
user 11.25
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/930036/ft1_filtered_4FGL_J2328.3-4036_daily_bin1231.fits evtable="EVENTS" scfile=/scratch/kocevski/930036/ft2_4FGL_J2328.3-4036_daily_bin1231.fits sctable="SC_DATA" expcube=/scratch/kocevski/930036/ltcube_558403201_558662401_4FGL_J2328.3-4036_daily_bin1231.fits outfile=/scratch/kocevski/930036/expmap_558403201_558662401_4FGL_J2328.3-4036_daily_bin1231.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/930036/ltcube_558403201_558662401_4FGL_J2328.3-4036_daily_bin1231.fits
.....................!
real 190.03
user 185.18
sys 4.53

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/930036/ft1_filtered_4FGL_J2328.3-4036_daily_bin1231.fits scfile=/scratch/kocevski/930036/ft2_4FGL_J2328.3-4036_daily_bin1231.fits outfile=/scratch/kocevski/930036/cmap_558403201_558662401_4FGL_J2328.3-4036_daily_bin1231.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.52
user 0.36
sys 0.16

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/930036/ft1_filtered_4FGL_J2328.3-4036_daily_bin1231.fits evtable="EVENTS" scfile=/scratch/kocevski/930036/ft2_4FGL_J2328.3-4036_daily_bin1231.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/930036/Model_4FGL_J2328.3-4036_daily_bin1231.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/930036/ft1_filtered_4FGL_J2328.3-4036_daily_bin1231.fits......................!
real 31.07
user 29.84
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    179.45       1.0000         .10000E-03   10000.    
     4 'Prefactor '    58.002       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.1860       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    16.033       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    21.894       1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.5154       1.0000         .10000E-03   10000.    
    14 'Prefactor '    27.028       1.0000         .10000E-03   10000.    
    15 'norm      '    23.433       1.0000         .10000E-03   10000.    
    16 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    9.2979       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .35919E-01   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    73.442       1.0000         .10000E-03   10000.    
    22 'norm      '    12.099       1.0000         .10000E-03   10000.    
    23 'Prefactor '    13.425       1.0000         .10000E-03   10000.    
    24 'norm      '    .96254       1.0000         .10000E-03   10000.    
    25 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    3.2004       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    2.8614       1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    .56960       1.0000         .10000E-01   10.000    
    33 'Prefactor '    1.4021       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=   3501.268     FROM MIGRAD    STATUS=CONVERGED    910 CALLS     4645 TOTAL
                     EDM=   .19E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    22.173        .52830E-06** at limit **
   2  Prefactor     .10000E-03    22.910       -.30711E-06** at limit **
   3  Prefactor     179.41        97.606       -.30553E-05    .75838E-05
   4  Prefactor     58.004        49.416       -.63375E-06   -.18346E-06
   5  Prefactor     .10000E-03    18.101        .86111E-06** at limit **
   6  Prefactor     5.1857        4.0604       -.14195E-06    .17143E-04
   7  Prefactor     .10000E-03    38.392        .86670E-06** at limit **
   8  Prefactor     .10000E-03    12.973       -.11564E-05** at limit **
   9  Prefactor     .10000E-03    11.944        .19177E-05** at limit **
  10  Prefactor     16.036        13.590       -.28999E-06    .65523E-04
  11  Prefactor     .10000E-03    7.8775        .32363E-06** at limit **
  12  Prefactor     21.838        54.656       -.56293E-05    .83865E-05
  13  Prefactor     2.4512        391.31       -.23291E-04   -.22395E-07
  14  Prefactor     27.027        23.596        .11618E-05    .16154E-04
  15  norm          23.429        24.403       -.11608E-06    .20648E-04
  16  norm          .10000E-03    5.5446       -.30403E-07** at limit **
  17  norm          .10000E-03    10.507       -.89817E-06** at limit **
  18  norm          9.2975        10.294        .10920E-06    .64713E-04
  19  Prefactor     .10000E-03    13.967       -.10651E-04** at limit **
  20  Prefactor     .10000E-03    27.485       -.15684E-05** at limit **
  21  Prefactor     73.361        81.215       -.79618E-05    .46552E-04
  22  norm          12.099        6.6147       -.34281E-06    .38185E-03
  23  Prefactor     13.412        24.293        .13763E-04    .27067E-04
  24  norm          .96216        1.1143        .10709E-06    .30806E-03
  25  norm          .10000E-03    5.0356        .14703E-06** at limit **
  26  Prefactor     .10000E-03    1.2513       -.53038E-07** at limit **
  27  Prefactor     .10000E-03    9.5645        .18066E-06** at limit **
  28  Prefactor     3.0664        315.07       -.43896E-04    .17192E-04
  29  Prefactor     .10000E-03    7.0070        .11550E-06** at limit **
  30  Prefactor     2.8618        4.6258       -.22688E-06   -.72517E-04
  31  Prefactor     .10000E-03    32.577        .10829E-05** at limit **
  32  Normalizat    .56943        .25189        .29159E-05    .19430E-03
  33  Prefactor     1.4024        .27593        .14044E-05    .24524E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 179.412
  Prefactor  = 58.0042
  Prefactor  = 0.000100001
  Prefactor  = 5.18566
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.036
  Prefactor  = 0.0001
  Prefactor  = 21.8383
  Prefactor  = 2.45122
  Prefactor  = 27.0267
  norm       = 23.4289
  norm       = 0.0001
  norm       = 0.0001
  norm       = 9.29754
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 73.3611
  norm       = 12.0991
  Prefactor  = 13.4117
  norm       = 0.962164
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.06635
  Prefactor  = 0.0001
  Prefactor  = 2.86176
  Prefactor  = 0.0001
  Normalizat = 0.569429
  Prefactor  = 1.4024
 **********
 **   18 **HESSE 
 **********

 FCN=   3501.268     FROM HESSE     STATUS=OK           701 CALLS     5346 TOTAL
                     EDM=   .34E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    22.171        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    22.979        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     179.41        97.583        .15066E-03   -1.3021    
   4  Prefactor     58.004        49.337        .52677E-04   -1.4183    
   5  Prefactor     .10000E-03    18.315        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     5.1857        4.0590        .10224E-03   -1.5252    
   7  Prefactor     .10000E-03    38.443        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    12.999        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    11.943        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     16.036        13.593        .10003E-03   -1.4907    
  11  Prefactor     .10000E-03    8.1294        .32425E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     21.838        54.717        .85604E-04   -1.4773    
  13  Prefactor     2.4512        399.04        .25761E-03   -1.5395    
  14  Prefactor     27.027        23.618        .77058E-04   -1.4668    
  15  norm          23.429        24.418        .82747E-04   -1.4740    
  16  norm          .10000E-03    5.5598        .13605E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    10.626        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          9.2975        10.289        .13143E-03   -1.5098    
  19  Prefactor     .10000E-03    24.468        .53893E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    27.521        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     73.361        81.304        .46849E-04   -1.3993    
  22  norm          12.099        6.5770        .10673E-03   -1.5012    
  23  Prefactor     13.412        31.327        .10932E-03   -1.4975    
  24  norm          .96216        1.0648        .63231E-03   -1.5512    
  25  norm          .10000E-03    5.2298        .25897E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    1.2541        .64639E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    9.5748        .17874E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     3.0664        321.37        .22648E-03   -1.5358    
  29  Prefactor     .10000E-03    7.1019        .15286E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     2.8618        4.6075        .15501E-03   -1.5370    
  31  Prefactor     .10000E-03    32.637        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    .56943        .30128        .30758E-03   -1.0930    
  33  Prefactor     1.4024        .33502        .23574E-03   -.80311    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.43304e-10
Minuit parameter uncertainties:
  1  3.64791e-05
  2  1.42383e-05
  3  97.6709
  4  49.3717
  5  0.000226128
  6  4.05925
  7  0.000170768
  8  3.29332e-05
  9  5.86444e-05
  10  13.5959
  11  0.000112743
  12  54.8435
  13  62.9803
  14  23.6262
  15  24.4285
  16  9.57348e-06
  17  1.91105e-05
  18  10.2909
  19  0.000567866
  20  7.73432e-05
  21  81.4275
  22  6.57742
  23  31.3658
  24  1.06483
  25  5.60552e-05
  26  1.00507e-06
  27  7.97941e-06
  28  63.1335
  29  1.23831e-05
  30  4.60805
  31  0.000187091
  32  0.302154
  33  0.335547
Done.

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

Extracting fit parameters...

4FGL J2328.3-4036
   Spectrum: LogParabola
455         norm:  1.210e+01  6.577e+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.402e+00  3.355e-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:  5.694e-01  3.022e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 10.01
Ra Dec: 352.082 -40.604
Photon Index (Fixed Index): 2.33 +/- 0.00
Photon Flux (Fixed Index): 9.14e-08 +/- 4.97e-08
Energy Flux (Fixed Index): 3.19e-05 +/- 1.74e-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) = 3500.90222604
delta logL = 0.365813568658

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3500.88698099
delta logL = 0.381058625739

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    13.074       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8597       1.0000          .0000       5.0000    
     3 'Normalizat'    .61104       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3753       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=   3500.887     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      206 TOTAL
                     EDM=   .55E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          13.074        8.8637        .27695E-02   -.97073E-03
   2  alpha         1.8596        .54590        .28209       -.45580E-05
   3  Normalizat    .61115        .23721        .67238E-01    .17789E-04
   4  Prefactor     1.3753        .27177        .53780E-01    .14401E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 13.074
  alpha      = 1.85962
  Normalizat = 0.611152
  Prefactor  = 1.37526
 **********
 **   18 **HESSE 
 **********

 FCN=   3500.887     FROM HESSE     STATUS=OK            31 CALLS      237 TOTAL
                     EDM=   .45E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          13.074        7.8819        .11078E-03   -1.4985    
   2  alpha         1.8596        .53780        .11152E-01   -.25904    
   3  Normalizat    .61115        .28723        .29756E-03   -1.0751    
   4  Prefactor     1.3753        .33048        .23778E-03   -.81096    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.4961e-10
Minuit parameter uncertainties:
  1  7.88255
  2  0.542338
  3  0.287934
  4  0.330987
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/930036': 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) = 3500.88698088
delta logL = 0.381058728706

Extracting fit parameters...

4FGL J2328.3-4036
   Spectrum: LogParabola
455         norm:  1.307e+01  7.883e+00  1.000e-04  1.000e+04 ( 1.000e-12)
456        alpha:  1.860e+00  5.423e-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:  1.375e+00  3.310e-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:  6.112e-01  2.879e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.75
Ra Dec: 352.082 -40.604
Photon Index (Free Index): 1.86 +/- 0.54
Photon Flux (Free Index): 5.91e-08 +/- 4.99e-08
Energy Flux (Free Index): 4.45e-05 +/- 3.57e-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/930036/cmap_HighResolution_558403201_558662401_4FGL_J2328.3-4036_daily_bin1231.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.14e-08', energy_flux2='4.45e-05', photon_flux_error='4.97e-08', dlogl='3.81e-01', energy_flux='3.19e-05', photon_flux2='5.91e-08', job_status='DONE', time_completed='2021-09-29 20:48:27.646900', photon_index_error2='0.54', photon_index2='1.86', ts='10.01', fit_tolerance='1e-08', GAL='1.40', photon_index_error='0.00', energy_flux_error2='3.57e-05', EG='0.57', time_epoch_completed='1632973707.65', return_code='0', job_id='930036', GAL2='1.38', EG2='0.61', return_code2='0', energy_flux_error='1.74e-05', photon_flux_error2='4.99e-08', ts2='10.75', photon_index='2.33' WHERE bin_id='1231' AND source_name='4FGL J2328.3-4036' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 20:48:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0169>
Subject: Job 930036: <4FGL_J2328.3-4036_daily_bin1231> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2328.3-4036_daily_bin1231 352.082 -40.6037 558403201 558662401 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 :                                   600.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             276.88 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   768 sec.
    Turnaround time :                            771 sec.

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

