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


Performing analysis on: 4FGL_J2328.3-4036_daily_bin1063
RA = 352.082, Dec = -40.6037
tmin = 514857601, tmax = 515116801
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='929517', job_status='RUN', time_executed='2021-09-29 20:38:48.309801', time_epoch_executed='1632973128.31' WHERE source_name='4FGL J2328.3-4036' and cadence='daily' and bin_id='1063'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/929517

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/929517/ft1_4FGL_J2328.3-4036_daily_bin1063.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/929517/ft2_4FGL_J2328.3-4036_daily_bin1063.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/929517/ft1_4FGL_J2328.3-4036_daily_bin1063.fits outfile=/scratch/kocevski/929517/ft1_filteredMKT_4FGL_J2328.3-4036_daily_bin1063.fits ra=352.082 dec=-40.6037 rad=12.0 tmin=514857601.0 tmax=515116801.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.51
user 3.29
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/929517/ft1_filtered_4FGL_J2328.3-4036_daily_bin1063.fits" evtable="EVENTS" scfile=/scratch/kocevski/929517/ft2_4FGL_J2328.3-4036_daily_bin1063.fits sctable="SC_DATA" outfile=/scratch/kocevski/929517/ltcube_514857601_515116801_4FGL_J2328.3-4036_daily_bin1063.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/929517/ft2_4FGL_J2328.3-4036_daily_bin1063.fits
.....................!
real 12.83
user 12.47
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/929517/ft1_filtered_4FGL_J2328.3-4036_daily_bin1063.fits evtable="EVENTS" scfile=/scratch/kocevski/929517/ft2_4FGL_J2328.3-4036_daily_bin1063.fits sctable="SC_DATA" expcube=/scratch/kocevski/929517/ltcube_514857601_515116801_4FGL_J2328.3-4036_daily_bin1063.fits outfile=/scratch/kocevski/929517/expmap_514857601_515116801_4FGL_J2328.3-4036_daily_bin1063.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/929517/ltcube_514857601_515116801_4FGL_J2328.3-4036_daily_bin1063.fits
.....................!
real 191.19
user 186.18
sys 4.69

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/929517/ft1_filtered_4FGL_J2328.3-4036_daily_bin1063.fits scfile=/scratch/kocevski/929517/ft2_4FGL_J2328.3-4036_daily_bin1063.fits outfile=/scratch/kocevski/929517/cmap_514857601_515116801_4FGL_J2328.3-4036_daily_bin1063.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/929517/ft1_filtered_4FGL_J2328.3-4036_daily_bin1063.fits scfile=/scratch/kocevski/929517/ft2_4FGL_J2328.3-4036_daily_bin1063.fits outfile=/scratch/kocevski/929517/cmap_HighResolution_514857601_515116801_4FGL_J2328.3-4036_daily_bin1063.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.56
user 0.36
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/929517/ft1_filtered_4FGL_J2328.3-4036_daily_bin1063.fits evtable="EVENTS" scfile=/scratch/kocevski/929517/ft2_4FGL_J2328.3-4036_daily_bin1063.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/929517/Model_4FGL_J2328.3-4036_daily_bin1063.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/929517/ft1_filtered_4FGL_J2328.3-4036_daily_bin1063.fits.....................!
real 42.84
user 41.61
sys 1.14

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.8392       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .21194E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    8.6251       1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.1145       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.3545       1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.2825       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    16.128       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    12.286       1.0000         .10000E-03   10000.    
    15 'norm      '    7.0490       1.0000         .10000E-03   10000.    
    16 'norm      '    2.5440       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.6530       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    8.8327       1.0000         .10000E-03   10000.    
    23 'Prefactor '    14.478       1.0000         .10000E-03   10000.    
    24 'norm      '    .76194       1.0000         .10000E-03   10000.    
    25 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10078E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    10.479       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .84199       1.0000         .10000E-03   10000.    
    31 'Prefactor '    60.845       1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.0890       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .71466       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=   5547.545     FROM MIGRAD    STATUS=CONVERGED    871 CALLS     4555 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.8382        24.408        .31906E-05   -.18815E-03
   2  Prefactor     .10000E-03    15.886       -.17268E-05** at limit **
   3  Prefactor     .10000E-03    129.84       -.15138E-05** at limit **
   4  Prefactor     .10000E-03    7.6339        .25994E-05** at limit **
   5  Prefactor     8.6243        5.8135        .43286E-06   -.71618E-03
   6  Prefactor     6.1145        4.3372       -.42463E-06   -.55155E-03
   7  Prefactor     .10000E-03    17.267        .20635E-05** at limit **
   8  Prefactor     .10000E-03    6.6295       -.50185E-06** at limit **
   9  Prefactor     1.3544        42.670        .16609E-05   -.48651E-04
  10  Prefactor     5.2822        9.0825        .20028E-05   -.67934E-03
  11  Prefactor     .10000E-03    2.3177        .54594E-07** at limit **
  12  Prefactor     16.118        25.487        .42985E-07   -.57532E-05
  13  Prefactor     .10000E-03    18.222        .23144E-05** at limit **
  14  Prefactor     12.287        13.164        .83963E-07   -.62911E-05
  15  norm          7.0498        12.771        .17313E-05   -.41808E-03
  16  norm          2.5444        3.7661        .27486E-06    .11241E-03
  17  norm          .10000E-03    3.4440        .13094E-06** at limit **
  18  norm          .10000E-03    4.0566        .14096E-06** at limit **
  19  Prefactor     2.6521        5.1275        .97624E-07   -.11974E-03
  20  Prefactor     .10000E-03    7.9615       -.23312E-05** at limit **
  21  Prefactor     .10000E-03    21.535       -.47883E-05** at limit **
  22  norm          8.8338        4.3005        .41580E-06    .57804E-03
  23  Prefactor     14.479        16.244       -.31262E-06   -.44152E-04
  24  norm          .76154        .88108        .32636E-07   -.14504E-03
  25  norm          .10000E-03    1.5481        .38580E-07** at limit **
  26  Prefactor     .10000E-03    1.2581        .86948E-08** at limit **
  27  Prefactor     .10000E-03    5.7155        .15796E-06** at limit **
  28  Prefactor     .10000E-03    30.955        .26124E-05** at limit **
  29  Prefactor     10.478        6.9546        .18922E-06   -.60679E-04
  30  Prefactor     .84056        3.6986        .10832E-05   -.29018E-03
  31  Prefactor     60.837        53.622       -.22111E-05   -.15156E-03
  32  Normalizat    1.0892        .17369       -.12124E-06    .83175E-05
  33  Prefactor     .71440        .18459       -.71431E-06    .34362E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.83822
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 8.62432
  Prefactor  = 6.11452
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 1.35436
  Prefactor  = 5.28216
  Prefactor  = 0.0001
  Prefactor  = 16.1185
  Prefactor  = 0.000100001
  Prefactor  = 12.2875
  norm       = 7.04983
  norm       = 2.54439
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 2.65211
  Prefactor  = 0.000100001
  Prefactor  = 0.000100005
  norm       = 8.83379
  Prefactor  = 14.4791
  norm       = 0.761537
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 10.4784
  Prefactor  = 0.840556
  Prefactor  = 60.8371
  Normalizat = 1.08924
  Prefactor  = 0.7144
 **********
 **   18 **HESSE 
 **********

 FCN=   5547.545     FROM HESSE     STATUS=OK           697 CALLS     5252 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.8382        25.884        .91434E-03   -1.5268    
   2  Prefactor     .10000E-03    16.065        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    132.40        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    7.8295        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     8.6243        5.9115        .68245E-03   -1.5121    
   6  Prefactor     6.1145        4.3822        .12673E-03   -1.5213    
   7  Prefactor     .10000E-03    17.414        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    6.6412        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.3544        43.836        .37566E-03   -1.5475    
  10  Prefactor     5.2822        9.7589        .87438E-03   -1.5248    
  11  Prefactor     .10000E-03    2.3335        .11073E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     16.118        25.488        .99731E-04   -1.4905    
  13  Prefactor     .10000E-03    18.380        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     12.287        13.116        .11428E-03   -1.5007    
  15  norm          7.0498        13.262        .75548E-03   -1.5177    
  16  norm          2.5444        3.7528        .17082E-03   -1.5389    
  17  norm          .10000E-03    3.4846        .13482E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    4.1001        .14648E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     2.6521        5.0587        .20334E-03   -1.5382    
  20  Prefactor     .10000E-03    8.1483        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    22.224        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          8.8338        4.3090        .10336E-03   -1.5113    
  23  Prefactor     14.479        16.063        .10526E-03   -1.4947    
  24  norm          .76154        .82957        .70026E-03   -1.5533    
  25  norm          .10000E-03    1.5601        .90450E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    1.2716        .81559E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    5.7211        .17391E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    31.223        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     10.478        6.9678        .12377E-03   -1.5060    
  30  Prefactor     .84056        3.8831        .27189E-03   -1.5525    
  31  Prefactor     60.837        54.310        .51438E-04   -1.4146    
  32  Normalizat    1.0892        .20692        .21112E-03   -.90098    
  33  Prefactor     .71440        .21845        .28075E-03   -1.0297    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.62446e-09
Minuit parameter uncertainties:
  1  22.3963
  2  0.000211291
  3  0.000529774
  4  0.000211615
  5  5.91194
  6  4.38246
  7  0.000258233
  8  3.86108e-05
  9  15.4221
  10  9.76186
  11  2.5733e-06
  12  25.5051
  13  0.000287205
  14  13.1195
  15  13.2679
  16  3.75311
  17  5.7823e-06
  18  4.70931e-06
  19  5.05951
  20  0.000204872
  21  0.000663182
  22  4.30919
  23  16.0678
  24  0.829587
  25  2.90364e-06
  26  2.27453e-07
  27  1.03112e-05
  28  0.000460824
  29  6.96837
  30  3.61344
  31  54.3542
  32  0.20707
  33  0.218709
Done.

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

Extracting fit parameters...

4FGL J2328.3-4036
   Spectrum: LogParabola
455         norm:  8.834e+00  4.309e+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.144e-01  2.187e-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.089e+00  2.071e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.47
Ra Dec: 352.082 -40.604
Photon Index (Fixed Index): 2.33 +/- 0.00
Photon Flux (Fixed Index): 6.67e-08 +/- 3.25e-08
Energy Flux (Fixed Index): 2.33e-05 +/- 1.14e-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) = 5547.53147483
delta logL = 0.0133298145756

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5547.52375979
delta logL = 0.0210448512262

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.1972       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4385       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0824       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .72007       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=   5547.524     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      238 TOTAL
                     EDM=   .95E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.1971        5.3309        .98511E-04    .64973E-03
   2  alpha         2.4386        .53843        .10342E-01    .48835E-04
   3  Normalizat    1.0824        .19817        .21170E-03   -.36679E-04
   4  Prefactor     .72009        .21628        .27973E-03   -.50152E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 8.19712
  alpha      = 2.43857
  Normalizat = 1.08241
  Prefactor  = 0.720095
 **********
 **   18 **HESSE 
 **********

 FCN=   5547.524     FROM HESSE     STATUS=OK            25 CALLS      263 TOTAL
                     EDM=   .91E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.1971        5.1547        .39404E-05   -1.5135    
   2  alpha         2.4386        .52057        .41369E-03   -.24575E-01
   3  Normalizat    1.0824        .19817        .84678E-05   -.90318    
   4  Prefactor     .72009        .21632        .11189E-04   -1.0274    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.12514e-11
Minuit parameter uncertainties:
  1  5.15501
  2  0.524405
  3  0.198307
  4  0.216573
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/929517': 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) = 5547.52375978
delta logL = 0.0210448630323

Extracting fit parameters...

4FGL J2328.3-4036
   Spectrum: LogParabola
455         norm:  8.197e+00  5.155e+00  1.000e-04  1.000e+04 ( 1.000e-12)
456        alpha:  2.439e+00  5.244e-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.201e-01  2.166e-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.082e+00  1.983e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.45
Ra Dec: 352.082 -40.604
Photon Index (Free Index): 2.44 +/- 0.52
Photon Flux (Free Index): 7.09e-08 +/- 3.94e-08
Energy Flux (Free Index): 2.21e-05 +/- 1.20e-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/929517/cmap_HighResolution_514857601_515116801_4FGL_J2328.3-4036_daily_bin1063.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.67e-08', energy_flux2='2.21e-05', photon_flux_error='3.25e-08', dlogl='2.10e-02', energy_flux='2.33e-05', photon_flux2='7.09e-08', job_status='DONE', time_completed='2021-09-29 20:51:38.919131', photon_index_error2='0.52', photon_index2='2.44', ts='8.47', fit_tolerance='1e-08', GAL='0.71', photon_index_error='0.00', energy_flux_error2='1.20e-05', EG='1.09', time_epoch_completed='1632973898.92', return_code='0', job_id='929517', GAL2='0.72', EG2='1.08', return_code2='0', energy_flux_error='1.14e-05', photon_flux_error2='3.94e-08', ts2='8.45', photon_index='2.33' WHERE bin_id='1063' AND source_name='4FGL J2328.3-4036' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 20:51:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0251>
Subject: Job 929517: <4FGL_J2328.3-4036_daily_bin1063> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2328.3-4036_daily_bin1063 352.082 -40.6037 514857601 515116801 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 :                                   760.31 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             241.55 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   983 sec.
    Turnaround time :                            985 sec.

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

