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


Performing analysis on: 4FGL_J2328.3-4036_daily_bin1168
RA = 352.082, Dec = -40.6037
tmin = 542073601, tmax = 542332801
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='929842', job_status='RUN', time_executed='2021-09-29 20:37:08.936209', time_epoch_executed='1632973028.94' WHERE source_name='4FGL J2328.3-4036' and cadence='daily' and bin_id='1168'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/929842

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/929842/ft1_4FGL_J2328.3-4036_daily_bin1168.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/929842/ft2_4FGL_J2328.3-4036_daily_bin1168.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/929842/ft1_4FGL_J2328.3-4036_daily_bin1168.fits outfile=/scratch/kocevski/929842/ft1_filteredMKT_4FGL_J2328.3-4036_daily_bin1168.fits ra=352.082 dec=-40.6037 rad=12.0 tmin=542073601.0 tmax=542332801.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.56
user 3.35
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/929842/ft1_filtered_4FGL_J2328.3-4036_daily_bin1168.fits" evtable="EVENTS" scfile=/scratch/kocevski/929842/ft2_4FGL_J2328.3-4036_daily_bin1168.fits sctable="SC_DATA" outfile=/scratch/kocevski/929842/ltcube_542073601_542332801_4FGL_J2328.3-4036_daily_bin1168.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/929842/ft2_4FGL_J2328.3-4036_daily_bin1168.fits
.....................!
real 12.19
user 11.80
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/929842/ft1_filtered_4FGL_J2328.3-4036_daily_bin1168.fits evtable="EVENTS" scfile=/scratch/kocevski/929842/ft2_4FGL_J2328.3-4036_daily_bin1168.fits sctable="SC_DATA" expcube=/scratch/kocevski/929842/ltcube_542073601_542332801_4FGL_J2328.3-4036_daily_bin1168.fits outfile=/scratch/kocevski/929842/expmap_542073601_542332801_4FGL_J2328.3-4036_daily_bin1168.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/929842/ltcube_542073601_542332801_4FGL_J2328.3-4036_daily_bin1168.fits
.....................!
real 191.66
user 185.89
sys 5.38

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

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

This is gtbin version HEAD
real 0.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/929842/ft1_filtered_4FGL_J2328.3-4036_daily_bin1168.fits scfile=/scratch/kocevski/929842/ft2_4FGL_J2328.3-4036_daily_bin1168.fits outfile=/scratch/kocevski/929842/cmap_HighResolution_542073601_542332801_4FGL_J2328.3-4036_daily_bin1168.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.58
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    95.483       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    26.961       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.2243       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    26.668       1.0000         .10000E-03   10000.    
     9 'Prefactor '    29.509       1.0000         .10000E-03   10000.    
    10 'Prefactor '    39.896       1.0000         .10000E-03   10000.    
    11 'Prefactor '    8.8575       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .34282E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .20617E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    2.7927       1.0000         .10000E-03   10000.    
    18 'norm      '    11.764       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    26.762       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    3.5589       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    1.7627       1.0000         .10000E-03   10000.    
    25 'norm      '    13.536       1.0000         .10000E-03   10000.    
    26 'Prefactor '    3.4394       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10407E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    8.5877       1.0000         .10000E-03   10000.    
    30 'Prefactor '    4.0625       1.0000         .10000E-03   10000.    
    31 'Prefactor '    32.275       1.0000         .10000E-03   10000.    
    32 'Normalizat'    .95041       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .72278       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=   4918.619     FROM MIGRAD    STATUS=CONVERGED    840 CALLS     4509 TOTAL
                     EDM=   .89E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     95.510        56.097        .95435E-06    .17110E-03
   2  Prefactor     .10000E-03    6.3862        .50674E-07** at limit **
   3  Prefactor     26.970        33.085        .53096E-06    .72144E-04
   4  Prefactor     .10000E-03    5.7563        .47709E-07** at limit **
   5  Prefactor     .10000E-03    1.5350       -.29398E-07** at limit **
   6  Prefactor     6.2245        3.6631        .71477E-07    .15050E-03
   7  Prefactor     .10000E-03    34.269        .22726E-07** at limit **
   8  Prefactor     26.673        24.633        .11678E-06    .43566E-04
   9  Prefactor     29.514        21.173        .27546E-06    .56174E-04
  10  Prefactor     39.906        19.509        .30342E-06    .72947E-04
  11  Prefactor     8.8580        5.6685       -.16928E-07   -.96210E-05
  12  Prefactor     .10000E-03    81.047       -.23968E-05** at limit **
  13  Prefactor     .10000E-03    33.417       -.15684E-06** at limit **
  14  Prefactor     .10017E-03    23.620       -.61569E-05** at limit **
  15  norm          .10000E-03    5.8662       -.11619E-06** at limit **
  16  norm          .10000E-03    7.2271       -.16057E-06** at limit **
  17  norm          2.7922        5.5195        .60945E-06    .43938E-03
  18  norm          11.770        11.175        .36971E-06    .96880E-04
  19  Prefactor     .10000E-03    3.4229       -.14312E-06** at limit **
  20  Prefactor     26.779        37.778        .66477E-06    .11539E-03
  21  Prefactor     .10000E-03    32.387       -.33644E-06** at limit **
  22  norm          3.5597        3.5572       -.10151E-08    .15652E-03
  23  Prefactor     .10000E-03    5.8485       -.13635E-06** at limit **
  24  norm          1.7609        1.2569        .14747E-06    .23400E-02
  25  norm          13.537        5.9293        .45781E-07    .13381E-03
  26  Prefactor     3.4409        3.5308        .37606E-06    .63403E-03
  27  Prefactor     .10000E-03    6.9437       -.25303E-07** at limit **
  28  Prefactor     .10000E-03    41.660        .11618E-05** at limit **
  29  Prefactor     8.5945        8.3666        .58365E-06    .36527E-03
  30  Prefactor     4.0646        3.6489        .32243E-06    .43398E-03
  31  Prefactor     32.288        69.881        .23186E-05    .76399E-04
  32  Normalizat    .94987        .22157       -.56437E-05    .25837E-03
  33  Prefactor     .72306        .22590        .59973E-05    .34738E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 95.5097
  Prefactor  = 0.0001
  Prefactor  = 26.97
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.2245
  Prefactor  = 0.0001
  Prefactor  = 26.6731
  Prefactor  = 29.5138
  Prefactor  = 39.9064
  Prefactor  = 8.85801
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  Prefactor  = 0.000100166
  norm       = 0.0001
  norm       = 0.0001
  norm       = 2.79219
  norm       = 11.7705
  Prefactor  = 0.0001
  Prefactor  = 26.779
  Prefactor  = 0.0001
  norm       = 3.55975
  Prefactor  = 0.0001
  norm       = 1.76091
  norm       = 13.5374
  Prefactor  = 3.44094
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 8.59447
  Prefactor  = 4.0646
  Prefactor  = 32.2881
  Normalizat = 0.949867
  Prefactor  = 0.723057
 **********
 **   18 **HESSE 
 **********

 FCN=   4918.619     FROM HESSE     STATUS=OK           685 CALLS     5194 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     95.510        56.508        .20566E-03   -1.3750    
   2  Prefactor     .10000E-03    6.3923        .17310E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     26.970        33.119        .77154E-04   -1.4669    
   4  Prefactor     .10000E-03    5.7589        .16436E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    1.5385        .84855E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     6.2245        3.6636        .10003E-03   -1.5209    
   7  Prefactor     .10000E-03    34.401        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     26.673        24.636        .77575E-04   -1.4675    
   9  Prefactor     29.514        21.173        .73754E-04   -1.4621    
  10  Prefactor     39.906        19.511        .63459E-04   -1.4444    
  11  Prefactor     8.8580        5.6699        .12982E-03   -1.5113    
  12  Prefactor     .10000E-03    82.844        .21333E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    33.442        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10017E-03    48.426        .43439E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    5.8750        .16592E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    7.3717        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          2.7922        5.5838        .21438E-03   -1.5374    
  18  norm          11.770        11.172        .11680E-03   -1.5022    
  19  Prefactor     .10000E-03    3.4460        .12665E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     26.779        37.873        .77439E-04   -1.4673    
  21  Prefactor     .10000E-03    32.444        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          3.5597        3.5505        .12180E-03   -1.5331    
  23  Prefactor     .10000E-03    5.8647        .16564E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          1.7609        1.2205        .61114E-04   -1.5443    
  25  norm          13.537        5.9263        .10465E-03   -1.4972    
  26  Prefactor     3.4409        3.5330        .12710E-03   -1.5337    
  27  Prefactor     .10000E-03    6.9511        .18050E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    41.871        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     8.5945        8.3612        .13679E-03   -1.5122    
  30  Prefactor     4.0646        3.6513        .12148E-03   -1.5305    
  31  Prefactor     32.288        69.805        .70532E-04   -1.4571    
  32  Normalizat    .94987        .23570        .22850E-03   -.94729    
  33  Prefactor     .72306        .24360        .28574E-03   -1.0263    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.6524e-09
Minuit parameter uncertainties:
  1  56.5399
  2  2.34947e-06
  3  33.1411
  4  1.23756e-05
  5  1.22169e-06
  6  3.66377
  7  5.07044e-05
  8  24.6449
  9  21.1785
  10  19.514
  11  5.67025
  12  0.00127447
  13  4.45436e-05
  14  0.00567312
  15  1.74443e-05
  16  1.72941e-05
  17  5.58486
  18  11.1737
  19  6.84001e-06
  20  37.9065
  21  0.000147524
  22  3.55074
  23  1.3365e-05
  24  1.22056
  25  5.92659
  26  3.5332
  27  6.20129e-06
  28  0.000516613
  29  8.36238
  30  3.65155
  31  69.9821
  32  0.235961
  33  0.243963
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
587    Prefactor:  7.231e-01  2.440e-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:  9.499e-01  2.360e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.28
Ra Dec: 352.082 -40.604
Photon Index (Fixed Index): 2.33 +/- 0.00
Photon Flux (Fixed Index): 2.69e-08 +/- 2.68e-08
Energy Flux (Fixed Index): 9.39e-06 +/- 9.37e-06

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) = 4916.4771435
delta logL = 2.14160390797

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4916.06080993
delta logL = 2.55793747805

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .67671       1.0000         .10000E-03   10000.    
     2 'alpha     '    .63680       1.0000          .0000       5.0000    
     3 'Normalizat'    .96128       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .72405       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=   4916.061     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      214 TOTAL
                     EDM=   .75E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .67592        .76302        .11972E-01   -.32885E-03
   2  alpha         .63620        .43479        .32397       -.24272E-04
   3  Normalizat    .96121        .18104        .45680E-01    .73371E-05
   4  Prefactor     .72405        .20104        .64602E-01    .18158E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.675916
  alpha      = 0.636202
  Normalizat = 0.961212
  Prefactor  = 0.724046
 **********
 **   18 **HESSE 
 **********

 FCN=   4916.061     FROM HESSE     STATUS=OK            33 CALLS      247 TOTAL
                     EDM=   .91E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .67592        1.5840        .51373E-03   -1.5544    
   2  alpha         .63620        .78302        .14612E-02   -.84131    
   3  Normalizat    .96121        .21621        .22740E-03   -.94341    
   4  Prefactor     .72405        .23981        .28580E-03   -1.0259    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.11148e-10
Minuit parameter uncertainties:
  1  1.58414
  2  0.815153
  3  0.216405
  4  0.240155
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/929842': 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) = 4916.06080934
delta logL = 2.55793806405

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
587    Prefactor:  7.240e-01  2.402e-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:  9.612e-01  2.164e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.41
Ra Dec: 352.082 -40.604
Photon Index (Free Index): 0.64 +/- 0.82
Photon Flux (Free Index): 4.24e-09 +/- 4.85e-09
Energy Flux (Free Index): 6.97e-05 +/- 9.79e-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/929842/cmap_HighResolution_542073601_542332801_4FGL_J2328.3-4036_daily_bin1168.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.69e-08', energy_flux2='6.97e-05', photon_flux_error='2.68e-08', dlogl='2.56e+00', energy_flux='9.39e-06', photon_flux2='4.24e-09', job_status='DONE', time_completed='2021-09-29 20:49:24.216667', photon_index_error2='0.82', photon_index2='0.64', ts='5.28', fit_tolerance='1e-08', GAL='0.72', photon_index_error='0.00', energy_flux_error2='9.79e-05', EG='0.95', time_epoch_completed='1632973764.22', return_code='0', job_id='929842', GAL2='0.72', EG2='0.96', return_code2='0', energy_flux_error='9.37e-06', photon_flux_error2='4.85e-09', ts2='10.41', photon_index='2.33' WHERE bin_id='1168' AND source_name='4FGL J2328.3-4036' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 20:49:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0048>
Subject: Job 929842: <4FGL_J2328.3-4036_daily_bin1168> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2328.3-4036_daily_bin1168 352.082 -40.6037 542073601 542332801 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 :                                   708.23 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             262.89 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   834 sec.
    Turnaround time :                            836 sec.

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

