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


Performing analysis on: 4FGL_J2328.3-4036_daily_bin1590
RA = 352.082, Dec = -40.6037
tmin = 651456001, tmax = 651715201
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='935025', job_status='RUN', time_executed='2021-09-29 20:41:16.477194', time_epoch_executed='1632973276.48' WHERE source_name='4FGL J2328.3-4036' and cadence='daily' and bin_id='1590'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/935025

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/935025/ft1_4FGL_J2328.3-4036_daily_bin1590.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/935025/ft2_4FGL_J2328.3-4036_daily_bin1590.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/935025/ft1_4FGL_J2328.3-4036_daily_bin1590.fits outfile=/scratch/kocevski/935025/ft1_filteredMKT_4FGL_J2328.3-4036_daily_bin1590.fits ra=352.082 dec=-40.6037 rad=12.0 tmin=651456001.0 tmax=651715201.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.48
user 3.26
sys 0.19

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/935025/ft1_filtered_4FGL_J2328.3-4036_daily_bin1590.fits" evtable="EVENTS" scfile=/scratch/kocevski/935025/ft2_4FGL_J2328.3-4036_daily_bin1590.fits sctable="SC_DATA" outfile=/scratch/kocevski/935025/ltcube_651456001_651715201_4FGL_J2328.3-4036_daily_bin1590.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/935025/ft2_4FGL_J2328.3-4036_daily_bin1590.fits
.....................!
real 11.81
user 11.45
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/935025/ft1_filtered_4FGL_J2328.3-4036_daily_bin1590.fits evtable="EVENTS" scfile=/scratch/kocevski/935025/ft2_4FGL_J2328.3-4036_daily_bin1590.fits sctable="SC_DATA" expcube=/scratch/kocevski/935025/ltcube_651456001_651715201_4FGL_J2328.3-4036_daily_bin1590.fits outfile=/scratch/kocevski/935025/expmap_651456001_651715201_4FGL_J2328.3-4036_daily_bin1590.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/935025/ltcube_651456001_651715201_4FGL_J2328.3-4036_daily_bin1590.fits
.....................!
real 190.17
user 185.58
sys 4.26

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/935025/ft1_filtered_4FGL_J2328.3-4036_daily_bin1590.fits scfile=/scratch/kocevski/935025/ft2_4FGL_J2328.3-4036_daily_bin1590.fits outfile=/scratch/kocevski/935025/cmap_651456001_651715201_4FGL_J2328.3-4036_daily_bin1590.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.53
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/935025/ft1_filtered_4FGL_J2328.3-4036_daily_bin1590.fits scfile=/scratch/kocevski/935025/ft2_4FGL_J2328.3-4036_daily_bin1590.fits outfile=/scratch/kocevski/935025/cmap_HighResolution_651456001_651715201_4FGL_J2328.3-4036_daily_bin1590.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.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/935025/ft1_filtered_4FGL_J2328.3-4036_daily_bin1590.fits evtable="EVENTS" scfile=/scratch/kocevski/935025/ft2_4FGL_J2328.3-4036_daily_bin1590.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/935025/Model_4FGL_J2328.3-4036_daily_bin1590.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/935025/ft1_filtered_4FGL_J2328.3-4036_daily_bin1590.fits.....................!
real 36.01
user 34.83
sys 1.11

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    17.303       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    27.246       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .47897E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .25936       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    27.190       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .34163       1.0000         .10000E-03   10000.    
    12 'Prefactor '    16.595       1.0000         .10000E-03   10000.    
    13 'Prefactor '    79.178       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    7.2550       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10069E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    16.732       1.0000         .10000E-03   10000.    
    24 'norm      '    3.0829       1.0000         .10000E-03   10000.    
    25 'norm      '    4.6084       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10189E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    8.2462       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10166E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    11.218       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .25616E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    17.212       1.0000         .10000E-03   10000.    
    32 'Normalizat'    .77858       1.0000         .10000E-01   10.000    
    33 'Prefactor '    1.2687       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=   4521.850     FROM MIGRAD    STATUS=CONVERGED    898 CALLS     4615 TOTAL
                     EDM=   .14E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    20.251       -.15928E-06** at limit **
   2  Prefactor     17.308        21.685       -.17220E-06   -.36300E-04
   3  Prefactor     .10000E-03    42.080       -.21323E-07** at limit **
   4  Prefactor     27.154        31.105        .10449E-05   -.37293E-04
   5  Prefactor     .10002E-03    4.2848        .19895E-06** at limit **
   6  Prefactor     .25846        3.3408        .51221E-06   -.17134E-03
   7  Prefactor     .10000E-03    16.073        .47495E-07** at limit **
   8  Prefactor     27.188        31.338        .11162E-06   -.13685E-04
   9  Prefactor     .10000E-03    39.802        .14001E-06** at limit **
  10  Prefactor     .10000E-03    5.3941        .54964E-07** at limit **
  11  Prefactor     .33809        7.4404        .20573E-06    .11408E-04
  12  Prefactor     16.528        43.693       -.12796E-06   -.42736E-04
  13  Prefactor     79.179        73.671        .18869E-06   -.64730E-05
  14  Prefactor     .10000E-03    21.727        .21648E-06** at limit **
  15  norm          .10000E-03    6.7816        .68389E-07** at limit **
  16  norm          .10000E-03    2.1674        .40860E-08** at limit **
  17  norm          .10000E-03    3.2328       -.34667E-06** at limit **
  18  norm          7.2548        8.7889        .10773E-06   -.65575E-05
  19  Prefactor     .10000E-03    4.4763        .40900E-07** at limit **
  20  Prefactor     .10000E-03    23.091        .42899E-06** at limit **
  21  Prefactor     .10000E-03    50.042        .41405E-07** at limit **
  22  norm          .10000E-03    5.0966        .34126E-06** at limit **
  23  Prefactor     16.727        13.336        .12760E-06   -.29507E-04
  24  norm          3.0829        1.3043        .19993E-07   -.16130E-03
  25  norm          4.6126        6.5565        .59957E-06    .16242E-04
  26  Prefactor     .10000E-03    2.3771        .44648E-06** at limit **
  27  Prefactor     8.2464        13.126        .41038E-07   -.35899E-04
  28  Prefactor     .10000E-03    65.577        .17778E-06** at limit **
  29  Prefactor     11.219        10.602        .20287E-05    .71196E-04
  30  Prefactor     .10000E-03    3.1168        .71453E-07** at limit **
  31  Prefactor     17.195        59.626       -.26548E-05   -.12135E-04
  32  Normalizat    .77817        .22480       -.25007E-05   -.78218E-04
  33  Prefactor     1.2691        .24008        .74003E-06   -.16786E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 17.3085
  Prefactor  = 0.0001
  Prefactor  = 27.1543
  Prefactor  = 0.000100022
  Prefactor  = 0.258463
  Prefactor  = 0.0001
  Prefactor  = 27.1879
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.338086
  Prefactor  = 16.5278
  Prefactor  = 79.1789
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 7.25476
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 16.7266
  norm       = 3.08293
  norm       = 4.61257
  Prefactor  = 0.000100001
  Prefactor  = 8.24637
  Prefactor  = 0.0001
  Prefactor  = 11.2194
  Prefactor  = 0.000100001
  Prefactor  = 17.1952
  Normalizat = 0.778165
  Prefactor  = 1.2691
 **********
 **   18 **HESSE 
 **********

 FCN=   4521.850     FROM HESSE     STATUS=OK           701 CALLS     5316 TOTAL
                     EDM=   .28E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    20.259        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     17.308        21.265        .96285E-04   -1.4876    
   3  Prefactor     .10000E-03    42.159        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     27.154        29.725        .76750E-04   -1.4665    
   5  Prefactor     .10002E-03    47.287        .25462E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .25846        8.1376        .23310E-02   -1.5606    
   7  Prefactor     .10000E-03    16.076        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     27.188        31.332        .76828E-04   -1.4665    
   9  Prefactor     .10000E-03    40.066        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    5.4096        .15254E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .33809        29.941        .34857E-02   -1.5592    
  12  Prefactor     16.528        43.791        .98317E-04   -1.4895    
  13  Prefactor     79.179        73.650        .45133E-04   -1.3926    
  14  Prefactor     .10000E-03    22.126        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    6.7923        .17104E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    2.1677        .96686E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    6.6058        .23300E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          7.2548        8.7834        .14892E-03   -1.5169    
  19  Prefactor     .10000E-03    4.5193        .13862E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    23.127        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    50.122        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    5.1904        .29463E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     16.727        13.307        .97915E-04   -1.4890    
  24  norm          3.0829        1.3022        .47752E-04   -1.5357    
  25  norm          4.6126        6.5095        .18750E-03   -1.5278    
  26  Prefactor     .10000E-03    6.6679        .19681E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     8.2464        13.070        .13961E-03   -1.5134    
  28  Prefactor     .10000E-03    65.652        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     11.219        10.649        .59806E-03   -1.5038    
  30  Prefactor     .10000E-03    9.7638        .22035E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     17.195        59.570        .96540E-04   -1.4878    
  32  Normalizat    .77817        .26196        .26658E-03   -1.0088    
  33  Prefactor     1.2691        .29042        .24355E-03   -.84231    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.83637e-08
Minuit parameter uncertainties:
  1  9.03651e-05
  2  21.2742
  3  3.65152e-05
  4  29.7413
  5  0.00203341
  6  2.9004
  7  1.6308e-05
  8  31.3508
  9  2.94919e-05
  10  4.05567e-06
  11  6.36552
  12  43.8759
  13  73.7346
  14  6.10715e-05
  15  5.20426e-06
  16  2.63265e-07
  17  7.43582e-05
  18  8.78498
  19  3.18824e-06
  20  9.34939e-05
  21  7.22346e-05
  22  1.67726e-06
  23  13.3097
  24  1.30225
  25  6.51045
  26  0.000152619
  27  13.0748
  28  0.000256879
  29  10.6507
  30  0.000216545
  31  59.777
  32  0.262381
  33  0.290789
Done.

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

Extracting fit parameters...

4FGL J2328.3-4036
   Spectrum: LogParabola
455         norm:  1.000e-04  1.677e-06  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.269e+00  2.908e-01  0.000e+00  1.000e+01 ( 1.000e+00)
588        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
589        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
586   Normalization:  7.782e-01  2.624e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 352.082 -40.604
Photon Flux Upper Limit: 8.60e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.00e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/935025/likelihoodResults_651456001_651715201_4FGL_J2328.3-4036_daily_bin1590.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4521.85047123
delta logL = -0.000919131580304

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4521.84955216
delta logL = -5.65441951039e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10225E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3568       1.0000          .0000       5.0000    
     3 'Normalizat'    .77823       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2691       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=   4521.850     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      205 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    11.278        .90712E-02** at limit **
   2  alpha         2.3824        3.6888        .41237       -.25002E-04
   3  Normalizat    .77816        .20365        .43326E-01   -.64743E-04
   4  Prefactor     1.2691        .23263        .55081E-01    .92237E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100001
  alpha      = 2.38245
  Normalizat = 0.778162
  Prefactor  = 1.26911
 **********
 **   18 **HESSE 
 **********

 FCN=   4521.850     FROM HESSE     STATUS=OK            33 CALLS      238 TOTAL
                     EDM=   .88E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    5.4626        .30176E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.3824        3.5241        .50000       -.47039E-01
   3  Normalizat    .77816        .24709        .26658E-03   -1.0088    
   4  Prefactor     1.2691        .28245        .24355E-03   -.84230    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.81036e-10
Minuit parameter uncertainties:
  1  0.00014125
  2  2.49905
  3  0.247441
  4  0.282789
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/935025': 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) = 4521.84955161
delta logL = 4.8668061936e-07

Extracting fit parameters...

4FGL J2328.3-4036
   Spectrum: LogParabola
455         norm:  1.000e-04  1.412e-04  1.000e-04  1.000e+04 ( 1.000e-12)
456        alpha:  2.382e+00  2.499e+00  0.000e+00  5.000e+00 ( 1.000e+00)
457         beta:  7.057e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
458           Eb:  7.709e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
587    Prefactor:  1.269e+00  2.828e-01  0.000e+00  1.000e+01 ( 1.000e+00)
588        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
589        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
586   Normalization:  7.782e-01  2.474e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 352.082 -40.604

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/935025/cmap_HighResolution_651456001_651715201_4FGL_J2328.3-4036_daily_bin1590.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.00e-05', job_status='DONE', photon_flux_upper_limit='8.60e-08', time_completed='2021-09-29 20:54:13.401622', job_id='935025', GAL2='1.27', fit_tolerance='1e-08', EG2='0.78', EG='0.78', time_epoch_completed='1632974053.4', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.27', dlogl='4.87e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.33' WHERE bin_id='1590' AND source_name='4FGL J2328.3-4036' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 20:54:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0105>
Subject: Job 935025: <4FGL_J2328.3-4036_daily_bin1590> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2328.3-4036_daily_bin1590 352.082 -40.6037 651456001 651715201 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 :                                   767.14 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             310.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   807 sec.
    Turnaround time :                            811 sec.

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

