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


Performing analysis on: 4FGL_J2328.3-4036_daily_bin1094
RA = 352.082, Dec = -40.6037
tmin = 522892801, tmax = 523152001
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='929612', job_status='RUN', time_executed='2021-09-29 20:37:03.443164', time_epoch_executed='1632973023.44' WHERE source_name='4FGL J2328.3-4036' and cadence='daily' and bin_id='1094'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/929612

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/929612/ft1_4FGL_J2328.3-4036_daily_bin1094.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/929612/ft2_4FGL_J2328.3-4036_daily_bin1094.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/929612/ft1_4FGL_J2328.3-4036_daily_bin1094.fits outfile=/scratch/kocevski/929612/ft1_filteredMKT_4FGL_J2328.3-4036_daily_bin1094.fits ra=352.082 dec=-40.6037 rad=12.0 tmin=522892801.0 tmax=523152001.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.80
user 3.60
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/929612/ft1_filtered_4FGL_J2328.3-4036_daily_bin1094.fits" evtable="EVENTS" scfile=/scratch/kocevski/929612/ft2_4FGL_J2328.3-4036_daily_bin1094.fits sctable="SC_DATA" outfile=/scratch/kocevski/929612/ltcube_522892801_523152001_4FGL_J2328.3-4036_daily_bin1094.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/929612/ft2_4FGL_J2328.3-4036_daily_bin1094.fits
.....................!
real 11.79
user 11.44
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/929612/ft1_filtered_4FGL_J2328.3-4036_daily_bin1094.fits evtable="EVENTS" scfile=/scratch/kocevski/929612/ft2_4FGL_J2328.3-4036_daily_bin1094.fits sctable="SC_DATA" expcube=/scratch/kocevski/929612/ltcube_522892801_523152001_4FGL_J2328.3-4036_daily_bin1094.fits outfile=/scratch/kocevski/929612/expmap_522892801_523152001_4FGL_J2328.3-4036_daily_bin1094.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/929612/ltcube_522892801_523152001_4FGL_J2328.3-4036_daily_bin1094.fits
.....................!
real 190.48
user 185.02
sys 5.16

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/929612/ft1_filtered_4FGL_J2328.3-4036_daily_bin1094.fits scfile=/scratch/kocevski/929612/ft2_4FGL_J2328.3-4036_daily_bin1094.fits outfile=/scratch/kocevski/929612/cmap_522892801_523152001_4FGL_J2328.3-4036_daily_bin1094.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=352.082 yref=-40.6037 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.52
user 0.36
sys 0.15

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

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

This is gtbin version HEAD
real 0.54
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/929612/ft1_filtered_4FGL_J2328.3-4036_daily_bin1094.fits evtable="EVENTS" scfile=/scratch/kocevski/929612/ft2_4FGL_J2328.3-4036_daily_bin1094.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/929612/Model_4FGL_J2328.3-4036_daily_bin1094.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/929612/ft1_filtered_4FGL_J2328.3-4036_daily_bin1094.fits......................!
real 33.91
user 32.67
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10085E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10174E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    23.101       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.4850       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    27.498       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10160E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    39.348       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    31.530       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    23.108       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      '    .10138E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .94368       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10751E-01   1.0000         .10000E-03   10000.    
    21 'Prefactor '    12.917       1.0000         .10000E-03   10000.    
    22 'norm      '    5.3200       1.0000         .10000E-03   10000.    
    23 'Prefactor '    5.8702       1.0000         .10000E-03   10000.    
    24 'norm      '    1.8490       1.0000         .10000E-03   10000.    
    25 'norm      '    1.9064       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    23.306       1.0000         .10000E-03   10000.    
    28 'Prefactor '    15.550       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .15700E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .11961E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.3903       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .51559       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   3968.132     FROM MIGRAD    STATUS=CONVERGED    937 CALLS     4702 TOTAL
                     EDM=   .47E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    34.681         .0000    ** at limit **
   2  Prefactor     .10007E-03    74.869         .0000    ** at limit **
   3  Prefactor     .10118E-03    101.94         .0000    ** at limit **
   4  Prefactor     23.117        38.527         .0000        .20122E-02
   5  Prefactor     1.4832        28.672         .0000        .93636E-02
   6  Prefactor     .10000E-03    2.1054         .0000    ** at limit **
   7  Prefactor     27.500        32.929         .0000        .32313E-03
   8  Prefactor     .10000E-03    14.791         .0000    ** at limit **
   9  Prefactor     39.336        34.134         .0000       -.27107E-02
  10  Prefactor     .10000E-03    5.7489         .0000    ** at limit **
  11  Prefactor     .10000E-03    5.3764         .0000    ** at limit **
  12  Prefactor     31.533        61.206         .0000        .68174E-04
  13  Prefactor     .10000E-03    30.462         .0000    ** at limit **
  14  Prefactor     23.110        18.008         .0000        .43066E-03
  15  norm          .10000E-03    5.0942         .0000    ** at limit **
  16  norm          .10000E-03    2.4251         .0000    ** at limit **
  17  norm          .10000E-03    3.9267         .0000    ** at limit **
  18  norm          .94839        8.9781         .0000       -.30041E-03
  19  Prefactor     .10000E-03    3.0648         .0000    ** at limit **
  20  Prefactor     .13701E-03    47.252         .0000    ** at limit **
  21  Prefactor     12.876        93.605         .0000       -.14638E-03
  22  norm          5.3034        6.0792         .0000        .20220E-03
  23  Prefactor     5.8709        13.396         .0000        .16969E-03
  24  norm          1.8489        1.3858         .0000        .11601E-03
  25  norm          1.9074        4.7311         .0000        .44505E-03
  26  Prefactor     .10000E-03    2.6108         .0000    ** at limit **
  27  Prefactor     23.307        30.426         .0000        .81191E-03
  28  Prefactor     15.634        64.432         .0000        .14974E-02
  29  Prefactor     .10000E-03    9.7370         .0000    ** at limit **
  30  Prefactor     .10000E-03    2.7824         .0000    ** at limit **
  31  Prefactor     .10184E-03    95.623         .0000    ** at limit **
  32  Normalizat    1.3903        .23136         .0000        .20228E-05
  33  Prefactor     .51552        .23286         .0000        .25694E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100072
  Prefactor  = 0.000101177
  Prefactor  = 23.1169
  Prefactor  = 1.48322
  Prefactor  = 0.0001
  Prefactor  = 27.5
  Prefactor  = 0.0001
  Prefactor  = 39.3362
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 31.5329
  Prefactor  = 0.0001
  Prefactor  = 23.1103
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.948395
  Prefactor  = 0.0001
  Prefactor  = 0.000137012
  Prefactor  = 12.8759
  norm       = 5.30343
  Prefactor  = 5.87088
  norm       = 1.84889
  norm       = 1.90735
  Prefactor  = 0.0001
  Prefactor  = 23.3074
  Prefactor  = 15.6335
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000101844
  Normalizat = 1.39033
  Prefactor  = 0.515521
 **********
 **   18 **HESSE 
 **********

 FCN=   3968.132     FROM HESSE     STATUS=OK           691 CALLS     5393 TOTAL
                     EDM=   .15E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    34.713        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10007E-03    76.605        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10118E-03    102.29        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     23.117        36.190        .83338E-04   -1.4746    
   5  Prefactor     1.4832        25.868        .17601E-02   -1.5464    
   6  Prefactor     .10000E-03    2.1199        .89246E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     27.500        32.921        .76398E-04   -1.4659    
   8  Prefactor     .10000E-03    14.802        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     39.336        34.202        .63898E-04   -1.4453    
  10  Prefactor     .10000E-03    5.7541        .14752E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    5.4545        .14262E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     31.533        61.164        .71357E-04   -1.4584    
  13  Prefactor     .10000E-03    30.475        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     23.110        18.019        .83327E-04   -1.4746    
  15  norm          .10000E-03    5.0963        .13886E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    2.4253        .95803E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    3.9504        .12165E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .94839        38.311        .34099E-02   -1.5513    
  19  Prefactor     .10000E-03    3.0682        .10758E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .13701E-03    56.031        .10662       -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     12.876        93.482        .11145E-03   -1.4990    
  22  norm          5.3034        6.1238        .13178E-03   -1.5247    
  23  Prefactor     5.8709        13.335        .16575E-03   -1.5223    
  24  norm          1.8489        1.3784        .59534E-04   -1.5436    
  25  norm          1.9074        4.6710        .19819E-03   -1.5432    
  26  Prefactor     .10000E-03    2.6540        .99182E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     23.307        30.389        .82972E-04   -1.4742    
  28  Prefactor     15.634        64.317        .10157E-03   -1.4917    
  29  Prefactor     .10000E-03    9.9429        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    18.203        .20144E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .10184E-03    95.962        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    1.3903        .27604        .20435E-03   -.80909    
  33  Prefactor     .51552        .27237        .33720E-03   -1.1127    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.53126e-07
Minuit parameter uncertainties:
  1  0.000225246
  2  0.00471754
  3  0.0219846
  4  36.2244
  5  12.3942
  6  2.05926e-08
  7  32.9426
  8  1.41537e-05
  9  34.2189
  10  4.73011e-07
  11  2.09004e-06
  12  61.286
  13  9.97447e-05
  14  18.0235
  15  5.22593e-07
  16  7.73779e-08
  17  4.90958e-07
  18  12.0632
  19  7.97724e-10
  20  0.0911636
  21  69.5412
  22  6.12454
  23  13.342
  24  1.37842
  25  4.67186
  26  2.34291e-09
  27  30.4088
  28  63.5371
  29  1.89802e-06
  30  2.60999e-05
  31  0.0266475
  32  0.276341
  33  0.27306
Done.

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

Extracting fit parameters...

4FGL J2328.3-4036
   Spectrum: LogParabola
455         norm:  5.303e+00  6.125e+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:  5.155e-01  2.731e-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.390e+00  2.763e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.64
Ra Dec: 352.082 -40.604
Photon Index (Fixed Index): 2.33 +/- 0.00
Photon Flux (Fixed Index): 4.01e-08 +/- 4.62e-08
Energy Flux (Fixed Index): 1.40e-05 +/- 1.62e-05

TS (Fixed Index): 1.64
Ra Dec: 352.082 -40.604
Photon Flux Upper Limit: 1.27e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.45e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/929612/likelihoodResults_522892801_523152001_4FGL_J2328.3-4036_daily_bin1094.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) = 3968.12249196
delta logL = 0.00972888759043

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3968.11989107
delta logL = 0.0123297704995

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.9302       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4494       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3861       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .51884       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=   3968.120     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      211 TOTAL
                     EDM=   .62E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.9302        156.67        .45284E-02    .54495E-03
   2  alpha         2.4493        2.9709        .35552        .21431E-04
   3  Normalizat    1.3861        .88348E-01    .46287E-01   -.10579E-05
   4  Prefactor     .51887        .93608E-01    .75921E-01    .22979E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.93019
  alpha      = 2.44935
  Normalizat = 1.3861
  Prefactor  = 0.51887
 **********
 **   18 **HESSE 
 **********

 FCN=   3968.120     FROM HESSE     STATUS=OK            33 CALLS      244 TOTAL
                     EDM=   .55E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.9302        5.5518        .12575E-03   -1.5264    
   2  alpha         2.4493        .76737        .13583E-01   -.20263E-01
   3  Normalizat    1.3861        .25397        .20461E-03   -.81032    
   4  Prefactor     .51887        .26682        .33618E-03   -1.1112    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.45158e-10
Minuit parameter uncertainties:
  1  5.55239
  2  0.779968
  3  0.254198
  4  0.267466
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/929612': 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) = 3968.11989106
delta logL = 0.0123297847877

Extracting fit parameters...

4FGL J2328.3-4036
   Spectrum: LogParabola
455         norm:  4.930e+00  5.552e+00  1.000e-04  1.000e+04 ( 1.000e-12)
456        alpha:  2.449e+00  7.800e-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:  5.189e-01  2.675e-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.386e+00  2.542e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.65
Ra Dec: 352.082 -40.604
Photon Index (Free Index): 2.45 +/- 0.78
Photon Flux (Free Index): 4.32e-08 +/- 4.39e-08
Energy Flux (Free Index): 1.33e-05 +/- 1.35e-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/929612/cmap_HighResolution_522892801_523152001_4FGL_J2328.3-4036_daily_bin1094.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.45e-05', comment='SUCCESS', photon_flux='4.01e-08', energy_flux2='1.33e-05', photon_flux_error='4.62e-08', dlogl='1.23e-02', energy_flux='1.40e-05', photon_flux2='4.32e-08', job_status='DONE', time_completed='2021-09-29 20:49:28.485967', photon_index_error2='0.78', photon_index2='2.45', ts='1.64', fit_tolerance='1e-08', GAL='0.52', photon_index_error='0.00', photon_flux_upper_limit='1.27e-07', energy_flux_error2='1.35e-05', EG='1.39', time_epoch_completed='1632973768.49', return_code='0', job_id='929612', GAL2='0.52', EG2='1.39', return_code2='0', energy_flux_error='1.62e-05', photon_flux_error2='4.39e-08', ts2='1.65', photon_index='2.33' WHERE bin_id='1094' AND source_name='4FGL J2328.3-4036' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 20:49:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0287>
Subject: Job 929612: <4FGL_J2328.3-4036_daily_bin1094> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2328.3-4036_daily_bin1094 352.082 -40.6037 522892801 523152001 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 :                                   720.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             268.12 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   848 sec.
    Turnaround time :                            851 sec.

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

