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


Performing analysis on: 4FGL_J2328.3-4036_daily_bin1128
RA = 352.082, Dec = -40.6037
tmin = 531705601, tmax = 531964801
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='929721', job_status='RUN', time_executed='2021-09-29 20:36:25.016351', time_epoch_executed='1632972985.02' WHERE source_name='4FGL J2328.3-4036' and cadence='daily' and bin_id='1128'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/929721

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/929721/ft1_4FGL_J2328.3-4036_daily_bin1128.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/929721/ft2_4FGL_J2328.3-4036_daily_bin1128.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/929721/ft1_4FGL_J2328.3-4036_daily_bin1128.fits outfile=/scratch/kocevski/929721/ft1_filteredMKT_4FGL_J2328.3-4036_daily_bin1128.fits ra=352.082 dec=-40.6037 rad=12.0 tmin=531705601.0 tmax=531964801.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 4.00
user 3.78
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/929721/ft1_filtered_4FGL_J2328.3-4036_daily_bin1128.fits" evtable="EVENTS" scfile=/scratch/kocevski/929721/ft2_4FGL_J2328.3-4036_daily_bin1128.fits sctable="SC_DATA" outfile=/scratch/kocevski/929721/ltcube_531705601_531964801_4FGL_J2328.3-4036_daily_bin1128.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/929721/ft2_4FGL_J2328.3-4036_daily_bin1128.fits
.....................!
real 11.90
user 11.54
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/929721/ft1_filtered_4FGL_J2328.3-4036_daily_bin1128.fits evtable="EVENTS" scfile=/scratch/kocevski/929721/ft2_4FGL_J2328.3-4036_daily_bin1128.fits sctable="SC_DATA" expcube=/scratch/kocevski/929721/ltcube_531705601_531964801_4FGL_J2328.3-4036_daily_bin1128.fits outfile=/scratch/kocevski/929721/expmap_531705601_531964801_4FGL_J2328.3-4036_daily_bin1128.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/929721/ltcube_531705601_531964801_4FGL_J2328.3-4036_daily_bin1128.fits
.....................!
real 191.32
user 185.71
sys 5.30

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/929721/ft1_filtered_4FGL_J2328.3-4036_daily_bin1128.fits scfile=/scratch/kocevski/929721/ft2_4FGL_J2328.3-4036_daily_bin1128.fits outfile=/scratch/kocevski/929721/cmap_531705601_531964801_4FGL_J2328.3-4036_daily_bin1128.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.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/929721/ft1_filtered_4FGL_J2328.3-4036_daily_bin1128.fits scfile=/scratch/kocevski/929721/ft2_4FGL_J2328.3-4036_daily_bin1128.fits outfile=/scratch/kocevski/929721/cmap_HighResolution_531705601_531964801_4FGL_J2328.3-4036_daily_bin1128.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=352.082 yref=-40.6037 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.53
user 0.37
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10983E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    9.3144       1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.2294       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .23219E-02   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .66160E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.7858       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10076E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .11187E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    7.6649       1.0000         .10000E-03   10000.    
    16 'norm      '    3.8177       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    17.503       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10295E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    14.686       1.0000         .10000E-03   10000.    
    22 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    11.458       1.0000         .10000E-03   10000.    
    24 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10767E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .14758E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    18.335       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .21842E-02   1.0000         .10000E-03   10000.    
    29 'Prefactor '    4.3284       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    100.72       1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.5798       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .51181       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=   3794.289     FROM MIGRAD    STATUS=CONVERGED    883 CALLS     4595 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    86.987       -.13015E-05** at limit **
   2  Prefactor     .10000E-03    13.911        .77644E-07** at limit **
   3  Prefactor     .10000E-03    23.272       -.27055E-06** at limit **
   4  Prefactor     .10000E-03    14.383        .27540E-06** at limit **
   5  Prefactor     9.3107        9.2979        .10595E-06    .16861E-03
   6  Prefactor     5.2301        4.7477       -.59244E-07    .19767E-04
   7  Prefactor     .10000E-03    29.203        .36680E-06** at limit **
   8  Prefactor     .10000E-03    9.2813        .21066E-07** at limit **
   9  Prefactor     .10013E-03    18.765       -.31037E-05** at limit **
  10  Prefactor     .10000E-03    10.157       -.17619E-05** at limit **
  11  Prefactor     6.7846        7.5716        .52498E-07    .12708E-03
  12  Prefactor     .10000E-03    19.134       -.49281E-06** at limit **
  13  Prefactor     .10000E-03    93.038       -.92547E-06** at limit **
  14  Prefactor     .10000E-03    5.8006       -.74386E-08** at limit **
  15  norm          7.6630        14.768        .27415E-06    .11190E-03
  16  norm          3.8184        6.1557        .17119E-07    .28391E-04
  17  norm          .10000E-03    2.2737       -.21894E-07** at limit **
  18  norm          17.500        14.110       -.27545E-06    .13832E-05
  19  Prefactor     .10000E-03    5.2977        .73937E-07** at limit **
  20  Prefactor     .10000E-03    37.329        .11830E-06** at limit **
  21  Prefactor     14.585        122.02        .55526E-05    .53839E-04
  22  norm          .10000E-03    6.2380       -.20260E-06** at limit **
  23  Prefactor     11.451        17.150        .25270E-06    .12594E-03
  24  norm          .10000E-03    .63799       -.12579E-07** at limit **
  25  norm          .10000E-03    6.5312       -.12185E-05** at limit **
  26  Prefactor     .10002E-03    8.9847        .35627E-05** at limit **
  27  Prefactor     18.355        31.166        .26846E-05    .12169E-03
  28  Prefactor     .10006E-03    381.95        .12654E-04** at limit **
  29  Prefactor     4.3278        9.3196        .11914E-05    .47924E-03
  30  Prefactor     .10000E-03    1.6754       -.48569E-07** at limit **
  31  Prefactor     100.78        82.105       -.33426E-05   -.18708E-03
  32  Normalizat    1.5799        .24520        .13393E-05    .41964E-03
  33  Prefactor     .51179        .25156       -.14475E-05    .17126E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.31075
  Prefactor  = 5.23009
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100128
  Prefactor  = 0.000100004
  Prefactor  = 6.78456
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.66302
  norm       = 3.81843
  norm       = 0.0001
  norm       = 17.5004
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.5853
  norm       = 0.0001
  Prefactor  = 11.4506
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.00010002
  Prefactor  = 18.3548
  Prefactor  = 0.000100062
  Prefactor  = 4.32779
  Prefactor  = 0.0001
  Prefactor  = 100.785
  Normalizat = 1.57995
  Prefactor  = 0.511793
 **********
 **   18 **HESSE 
 **********

 FCN=   3794.289     FROM HESSE     STATUS=OK           691 CALLS     5286 TOTAL
                     EDM=   .43E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    87.314        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    13.938        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    23.283        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    14.388        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     9.3107        9.3122        .65658E-03   -1.5098    
   6  Prefactor     5.2301        4.7519        .12358E-03   -1.5251    
   7  Prefactor     .10000E-03    29.230        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    9.2858        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10013E-03    122.82        .46808E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    41.036        .36454E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     6.7846        7.5689        .77014E-03   -1.5187    
  12  Prefactor     .10000E-03    19.154        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    93.372        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    5.8040        .14489E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          7.6630        14.782        .72423E-03   -1.5154    
  16  norm          3.8184        6.1397        .18852E-03   -1.5317    
  17  norm          .10000E-03    2.2748        .90710E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          17.500        14.103        .95732E-04   -1.4871    
  19  Prefactor     .10000E-03    5.3107        .13810E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    37.508        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     14.585        124.08        .10452E-03   -1.4944    
  22  norm          .10000E-03    6.4874        .29942E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     11.451        17.111        .59176E-03   -1.5031    
  24  norm          .10000E-03    .66232        .95820E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    15.150        .29505E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10002E-03    11.765        .21133E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     18.355        28.948        .93536E-04   -1.4851    
  28  Prefactor     .10006E-03    393.14        .20148E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     4.3278        9.7372        .96810E-03   -1.5292    
  30  Prefactor     .10000E-03    1.6815        .77875E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     100.78        85.164        .20029E-03   -1.3697    
  32  Normalizat    1.5799        .28608        .21085E-03   -.75556    
  33  Prefactor     .51179        .28508        .36253E-03   -1.1144    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.31357e-09
Minuit parameter uncertainties:
  1  0.00049247
  2  1.30039e-06
  3  6.50401e-05
  4  4.43832e-05
  5  9.31362
  6  4.75228
  7  7.66221e-05
  8  1.49559e-06
  9  0.00795541
  10  0.000800695
  11  7.56992
  12  9.01283e-05
  13  0.000416451
  14  3.74485e-06
  15  14.7895
  16  6.14071
  17  1.46524e-06
  18  14.1054
  19  1.67309e-06
  20  2.90521e-05
  21  85.3214
  22  2.05043e-05
  23  17.1184
  24  3.66872e-06
  25  6.02945e-05
  26  0.0009749
  27  28.97
  28  0.00993482
  29  9.74076
  30  4.49643e-06
  31  85.268
  32  0.286379
  33  0.285882
Done.

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

Extracting fit parameters...

4FGL J2328.3-4036
   Spectrum: LogParabola
455         norm:  1.000e-04  2.050e-05  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:  5.118e-01  2.859e-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.580e+00  2.864e-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: 9.12e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.19e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/929721/likelihoodResults_531705601_531964801_4FGL_J2328.3-4036_daily_bin1128.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) = 3794.29021666
delta logL = -0.000735290789635

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3794.28947241
delta logL = 8.96435722098e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .35340E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    3.8796       1.0000          .0000       5.0000    
     3 'Normalizat'    1.5800       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .51172       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=   3794.289     FROM MIGRAD    STATUS=CONVERGED    106 CALLS      306 TOTAL
                     EDM=   .59E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .23498E-02    7.3184        .14457E-01** at limit **
   2  alpha         3.7877        2.6159        .20000       -.23702E-05
   3  Normalizat    1.5798        .12854E-01    .21086E-03   -.21017E-02
   4  Prefactor     .51190        .13355E-01    .36250E-03   -.72910E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.00234976
  alpha      = 3.7877
  Normalizat = 1.57975
  Prefactor  = 0.511898
 **********
 **   18 **HESSE 
 **********

 FCN=   3794.289     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      339 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .23498E-02    6.0504        .18462E-01   -1.5698    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         3.7877        3.0770        .80000E-02    .54110    
   3  Normalizat    1.5798        .14205E-01    .42172E-04   -.75561    
   4  Prefactor     .51190        .14754E-01    .72500E-04   -1.1143    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.40106e-09
Minuit parameter uncertainties:
  1  0.233364
  2  132.897
  3  0.0142051
  4  0.0147541
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/929721': 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): 102
logL (Free Index) = 3794.28946756
delta logL = 1.38169625643e-05

Extracting fit parameters...

4FGL J2328.3-4036
   Spectrum: LogParabola
455         norm:  2.350e-03  2.334e-01  1.000e-04  1.000e+04 ( 1.000e-12)
456        alpha:  3.788e+00  1.329e+02  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:  5.119e-01  1.475e-02  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.580e+00  1.421e-02  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/929721/cmap_HighResolution_531705601_531964801_4FGL_J2328.3-4036_daily_bin1128.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.19e-05', job_status='DONE', photon_flux_upper_limit='9.12e-08', time_completed='2021-09-29 20:48:04.266825', job_id='929721', GAL2='0.51', fit_tolerance='1e-08', EG2='1.58', EG='1.58', time_epoch_completed='1632973684.27', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.51', dlogl='1.38e-05', ts2='0.00', photon_index_error='0.00', photon_index='2.33' WHERE bin_id='1128' AND source_name='4FGL J2328.3-4036' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 20:48:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0179>
Subject: Job 929721: <4FGL_J2328.3-4036_daily_bin1128> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2328.3-4036_daily_bin1128 352.082 -40.6037 531705601 531964801 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 :                                   693.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             298.85 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   759 sec.
    Turnaround time :                            761 sec.

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

