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


Performing analysis on: 4FGL_J2328.3-4036_daily_bin1369
RA = 352.082, Dec = -40.6037
tmin = 594172801, tmax = 594432001
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='934447', job_status='RUN', time_executed='2021-09-29 20:42:44.253794', time_epoch_executed='1632973364.25' WHERE source_name='4FGL J2328.3-4036' and cadence='daily' and bin_id='1369'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/934447

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/934447/ft1_4FGL_J2328.3-4036_daily_bin1369.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/934447/ft2_4FGL_J2328.3-4036_daily_bin1369.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/934447/ft1_4FGL_J2328.3-4036_daily_bin1369.fits outfile=/scratch/kocevski/934447/ft1_filteredMKT_4FGL_J2328.3-4036_daily_bin1369.fits ra=352.082 dec=-40.6037 rad=12.0 tmin=594172801.0 tmax=594432001.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.12
user 2.90
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/934447/ft1_filtered_4FGL_J2328.3-4036_daily_bin1369.fits" evtable="EVENTS" scfile=/scratch/kocevski/934447/ft2_4FGL_J2328.3-4036_daily_bin1369.fits sctable="SC_DATA" outfile=/scratch/kocevski/934447/ltcube_594172801_594432001_4FGL_J2328.3-4036_daily_bin1369.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/934447/ft2_4FGL_J2328.3-4036_daily_bin1369.fits
.....................!
real 8.73
user 8.42
sys 0.27

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/934447/ft1_filtered_4FGL_J2328.3-4036_daily_bin1369.fits evtable="EVENTS" scfile=/scratch/kocevski/934447/ft2_4FGL_J2328.3-4036_daily_bin1369.fits sctable="SC_DATA" expcube=/scratch/kocevski/934447/ltcube_594172801_594432001_4FGL_J2328.3-4036_daily_bin1369.fits outfile=/scratch/kocevski/934447/expmap_594172801_594432001_4FGL_J2328.3-4036_daily_bin1369.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/934447/ltcube_594172801_594432001_4FGL_J2328.3-4036_daily_bin1369.fits
.....................!
real 140.29
user 136.86
sys 3.21

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/934447/ft1_filtered_4FGL_J2328.3-4036_daily_bin1369.fits scfile=/scratch/kocevski/934447/ft2_4FGL_J2328.3-4036_daily_bin1369.fits outfile=/scratch/kocevski/934447/cmap_594172801_594432001_4FGL_J2328.3-4036_daily_bin1369.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.44
user 0.29
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/934447/ft1_filtered_4FGL_J2328.3-4036_daily_bin1369.fits scfile=/scratch/kocevski/934447/ft2_4FGL_J2328.3-4036_daily_bin1369.fits outfile=/scratch/kocevski/934447/cmap_HighResolution_594172801_594432001_4FGL_J2328.3-4036_daily_bin1369.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.44
user 0.28
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/934447/ft1_filtered_4FGL_J2328.3-4036_daily_bin1369.fits evtable="EVENTS" scfile=/scratch/kocevski/934447/ft2_4FGL_J2328.3-4036_daily_bin1369.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/934447/Model_4FGL_J2328.3-4036_daily_bin1369.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/934447/ft1_filtered_4FGL_J2328.3-4036_daily_bin1369.fits.....................!
real 34.12
user 33.09
sys 0.96

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.2803       1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.4624       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    76.231       1.0000         .10000E-03   10000.    
     9 'Prefactor '    23.691       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.1522       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    9.2029       1.0000         .10000E-03   10000.    
    15 'norm      '    8.8296       1.0000         .10000E-03   10000.    
    16 'norm      '    2.8183       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    5.0901       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    2.0058       1.0000         .10000E-03   10000.    
    23 'Prefactor '    8.6188       1.0000         .10000E-03   10000.    
    24 'norm      '    1.7209       1.0000         .10000E-03   10000.    
    25 'norm      '    .31591       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10434E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    14.295       1.0000         .10000E-03   10000.    
    28 'Prefactor '    15.760       1.0000         .10000E-03   10000.    
    29 'Prefactor '    3.9932       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    5.9139       1.0000         .10000E-03   10000.    
    32 'Normalizat'    .74878       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .93257       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=   6544.218     FROM MIGRAD    STATUS=CONVERGED    872 CALLS     4702 TOTAL
                     EDM=   .13E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    10.015       -.10499E-06** at limit **
   2  Prefactor     .10000E-03    10.544       -.27134E-06** at limit **
   3  Prefactor     .10000E-03    16.649        .32487E-07** at limit **
   4  Prefactor     .10000E-03    6.2871       -.37021E-07** at limit **
   5  Prefactor     1.2806        3.9350       -.12888E-06   -.84925E-05
   6  Prefactor     4.4624        3.8566       -.55165E-07    .69957E-05
   7  Prefactor     .10000E-03    11.460       -.26102E-07** at limit **
   8  Prefactor     76.231        25.240        .53225E-07    .11550E-04
   9  Prefactor     23.691        18.840       -.90561E-07    .71547E-05
  10  Prefactor     .10000E-03    7.0396       -.21095E-06** at limit **
  11  Prefactor     1.1522        5.7939        .21063E-05   -.39515E-04
  12  Prefactor     .10000E-03    9.1656       -.10534E-06** at limit **
  13  Prefactor     .10000E-03    29.119       -.27939E-06** at limit **
  14  Prefactor     9.2025        9.5904        .11238E-07    .79969E-05
  15  norm          8.8289        11.632       -.10497E-06    .59837E-05
  16  norm          2.8182        2.8443       -.48409E-07   -.18078E-04
  17  norm          .10000E-03    1.1515       -.25586E-08** at limit **
  18  norm          .10000E-03    1.5690       -.84169E-07** at limit **
  19  Prefactor     5.0902        4.5881       -.13612E-07    .73868E-05
  20  Prefactor     .10000E-03    21.780       -.52319E-06** at limit **
  21  Prefactor     .10000E-03    8.9076       -.57394E-07** at limit **
  22  norm          2.0063        2.5554       -.92259E-07   -.88305E-04
  23  Prefactor     8.6183        11.903        .95680E-07    .86736E-05
  24  norm          1.7206        .95732        .28839E-07    .14401E-03
  25  norm          .30911        1.9184       -.28532E-07   -.24676E-03
  26  Prefactor     .10000E-03    1.5695       -.29698E-06** at limit **
  27  Prefactor     14.287        13.036        .32723E-06    .47286E-04
  28  Prefactor     15.756        37.422        .33001E-05    .32694E-04
  29  Prefactor     3.9961        4.8778        .16016E-05    .18400E-03
  30  Prefactor     .10000E-03    1.9350       -.32234E-06** at limit **
  31  Prefactor     5.8726        80.312       -.55304E-05    .35714E-05
  32  Normalizat    .74874        .15083       -.14880E-05    .21091E-03
  33  Prefactor     .93262        .17019        .17518E-05   -.21157E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.28062
  Prefactor  = 4.46244
  Prefactor  = 0.0001
  Prefactor  = 76.2308
  Prefactor  = 23.691
  Prefactor  = 0.0001
  Prefactor  = 1.15219
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.20246
  norm       = 8.82893
  norm       = 2.81823
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 5.09016
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.00632
  Prefactor  = 8.61826
  norm       = 1.72062
  norm       = 0.309106
  Prefactor  = 0.0001
  Prefactor  = 14.2873
  Prefactor  = 15.7562
  Prefactor  = 3.99605
  Prefactor  = 0.0001
  Prefactor  = 5.87258
  Normalizat = 0.748736
  Prefactor  = 0.932624
 **********
 **   18 **HESSE 
 **********

 FCN=   6544.218     FROM HESSE     STATUS=OK           701 CALLS     5403 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    10.017        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    10.604        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    16.659        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    6.2889        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.2806        3.9090        .27151E-03   -1.5482    
   6  Prefactor     4.4624        3.8513        .13994E-03   -1.5285    
   7  Prefactor     .10000E-03    11.467        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     76.231        25.232        .45990E-04   -1.3960    
   9  Prefactor     23.691        18.834        .82296E-04   -1.4734    
  10  Prefactor     .10000E-03    7.1415        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     1.1522        5.9248        .18531E-02   -1.5493    
  12  Prefactor     .10000E-03    9.1684        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    29.188        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     9.2025        9.5814        .13211E-03   -1.5101    
  15  norm          8.8289        11.637        .13489E-03   -1.5114    
  16  norm          2.8182        2.8548        .13363E-03   -1.5372    
  17  norm          .10000E-03    1.1519        .84757E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    1.5721        .98966E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     5.0902        4.5806        .14349E-03   -1.5257    
  20  Prefactor     .10000E-03    21.882        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    8.9149        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          2.0063        2.5332        .13310E-03   -1.5425    
  23  Prefactor     8.6183        11.882        .13654E-03   -1.5121    
  24  norm          1.7206        .94666        .55339E-04   -1.5446    
  25  norm          .30911        6.9748        .19956E-02   -1.5597    
  26  Prefactor     .10000E-03    7.0495        .18743E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     14.287        12.760        .10594E-03   -1.4952    
  28  Prefactor     15.756        37.491        .10089E-03   -1.4914    
  29  Prefactor     3.9961        4.8985        .17871E-03   -1.5308    
  30  Prefactor     .10000E-03    2.0261        .21952E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     5.8726        81.684        .16513E-03   -1.5223    
  32  Normalizat    .74874        .17120        .22590E-03   -1.0200    
  33  Prefactor     .93262        .19293        .23552E-03   -.95010    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.5989e-09
Minuit parameter uncertainties:
  1  5.51627e-06
  2  7.38298e-06
  3  1.08902e-05
  4  2.05447e-06
  5  3.90973
  6  3.85156
  7  1.06448e-06
  8  25.2357
  9  18.8385
  10  1.72649e-06
  11  5.2261
  12  4.58909e-06
  13  1.27065e-05
  14  9.58297
  15  11.6404
  16  2.85493
  17  1.99753e-07
  18  1.4774e-06
  19  4.58095
  20  2.91354e-05
  21  5.19047e-06
  22  2.53337
  23  11.8854
  24  0.946669
  25  2.93654
  26  1.33835e-05
  27  12.7619
  28  37.5471
  29  4.89897
  30  4.71665e-07
  31  43.8763
  32  0.171322
  33  0.193069
Done.

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

Extracting fit parameters...

4FGL J2328.3-4036
   Spectrum: LogParabola
455         norm:  2.006e+00  2.533e+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:  9.326e-01  1.931e-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.487e-01  1.713e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.14
Ra Dec: 352.082 -40.604
Photon Index (Fixed Index): 2.33 +/- 0.00
Photon Flux (Fixed Index): 1.52e-08 +/- 1.91e-08
Energy Flux (Fixed Index): 5.29e-06 +/- 6.69e-06

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

Saving results to:
/scratch/kocevski/934447/likelihoodResults_594172801_594432001_4FGL_J2328.3-4036_daily_bin1369.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) = 6544.21095872
delta logL = 0.00692836141388

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6544.20999143
delta logL = 0.00789565403102

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.1023       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1981       1.0000          .0000       5.0000    
     3 'Normalizat'    .75146       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93062       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=   6544.210     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      187 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.1032        2.9128        .71152E-02    .29436E-03
   2  alpha         2.1973        1.1361        .41537E-01   -.60334E-05
   3  Normalizat    .75134        .13931        .42973E-01   -.20731E-04
   4  Prefactor     .93074        .16082        .45394E-01    .13909E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.10324
  alpha      = 2.19732
  Normalizat = 0.751335
  Prefactor  = 0.930738
 **********
 **   18 **HESSE 
 **********

 FCN=   6544.210     FROM HESSE     STATUS=OK            31 CALLS      218 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.1032        2.5995        .13813E-03   -1.5418    
   2  alpha         2.1973        1.0301        .16615E-02   -.12137    
   3  Normalizat    .75134        .16578        .22554E-03   -1.0190    
   4  Prefactor     .93074        .19129        .23573E-03   -.95075    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.26147e-10
Minuit parameter uncertainties:
  1  2.59965
  2  1.06227
  3  0.165892
  4  0.191429
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/934447': 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) = 6544.20999079
delta logL = 0.00789628857365

Extracting fit parameters...

4FGL J2328.3-4036
   Spectrum: LogParabola
455         norm:  2.103e+00  2.600e+00  1.000e-04  1.000e+04 ( 1.000e-12)
456        alpha:  2.197e+00  1.062e+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:  9.307e-01  1.914e-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.513e-01  1.659e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.15
Ra Dec: 352.082 -40.604
Photon Index (Free Index): 2.20 +/- 1.06
Photon Flux (Free Index): 1.35e-08 +/- 2.11e-08
Energy Flux (Free Index): 5.61e-06 +/- 7.37e-06

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/934447/cmap_HighResolution_594172801_594432001_4FGL_J2328.3-4036_daily_bin1369.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.16e-05', comment='SUCCESS', photon_flux='1.52e-08', energy_flux2='5.61e-06', photon_flux_error='1.91e-08', dlogl='7.90e-03', energy_flux='5.29e-06', photon_flux2='1.35e-08', job_status='DONE', time_completed='2021-09-29 20:56:17.211002', photon_index_error2='1.06', photon_index2='2.20', ts='1.14', fit_tolerance='1e-08', GAL='0.93', photon_index_error='0.00', photon_flux_upper_limit='6.18e-08', energy_flux_error2='7.37e-06', EG='0.75', time_epoch_completed='1632974177.21', return_code='0', job_id='934447', GAL2='0.93', EG2='0.75', return_code2='0', energy_flux_error='6.69e-06', photon_flux_error2='2.11e-08', ts2='1.15', photon_index='2.33' WHERE bin_id='1369' AND source_name='4FGL J2328.3-4036' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 20:56:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0135>
Subject: Job 934447: <4FGL_J2328.3-4036_daily_bin1369> in cluster <slac> Done

Job <4FGL_J2328.3-4036_daily_bin1369> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 20:40:21 2021
Job was executed on host(s) <bullet0135>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 20:40:22 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:22 2021
Terminated at Wed Sep 29 20:56:17 2021
Results reported at Wed Sep 29 20:56:17 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2328.3-4036_daily_bin1369 352.082 -40.6037 594172801 594432001 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 :                                   769.51 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             274.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   955 sec.
    Turnaround time :                            956 sec.

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

