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


Performing analysis on: 4FGL_J2328.3-4036_daily_bin1431
RA = 352.082, Dec = -40.6037
tmin = 610243201, tmax = 610502401
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='934605', job_status='RUN', time_executed='2021-09-29 20:42:18.538755', time_epoch_executed='1632973338.54' WHERE source_name='4FGL J2328.3-4036' and cadence='daily' and bin_id='1431'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/934605

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/934605/ft1_4FGL_J2328.3-4036_daily_bin1431.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/934605/ft2_4FGL_J2328.3-4036_daily_bin1431.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/934605/ft1_4FGL_J2328.3-4036_daily_bin1431.fits outfile=/scratch/kocevski/934605/ft1_filteredMKT_4FGL_J2328.3-4036_daily_bin1431.fits ra=352.082 dec=-40.6037 rad=12.0 tmin=610243201.0 tmax=610502401.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.92
user 3.68
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/934605/ft2_4FGL_J2328.3-4036_daily_bin1431.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/934605/ft1_filteredMKT_4FGL_J2328.3-4036_daily_bin1431.fits evtable="EVENTS" outfile="/scratch/kocevski/934605/ft1_filtered_4FGL_J2328.3-4036_daily_bin1431.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/934605/ft1_filtered_4FGL_J2328.3-4036_daily_bin1431.fits" evtable="EVENTS" scfile=/scratch/kocevski/934605/ft2_4FGL_J2328.3-4036_daily_bin1431.fits sctable="SC_DATA" outfile=/scratch/kocevski/934605/ltcube_610243201_610502401_4FGL_J2328.3-4036_daily_bin1431.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/934605/ft2_4FGL_J2328.3-4036_daily_bin1431.fits
.....................!
real 12.08
user 11.69
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/934605/ft1_filtered_4FGL_J2328.3-4036_daily_bin1431.fits evtable="EVENTS" scfile=/scratch/kocevski/934605/ft2_4FGL_J2328.3-4036_daily_bin1431.fits sctable="SC_DATA" expcube=/scratch/kocevski/934605/ltcube_610243201_610502401_4FGL_J2328.3-4036_daily_bin1431.fits outfile=/scratch/kocevski/934605/expmap_610243201_610502401_4FGL_J2328.3-4036_daily_bin1431.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/934605/ltcube_610243201_610502401_4FGL_J2328.3-4036_daily_bin1431.fits
.....................!
real 189.96
user 184.80
sys 4.78

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/934605/ft1_filtered_4FGL_J2328.3-4036_daily_bin1431.fits scfile=/scratch/kocevski/934605/ft2_4FGL_J2328.3-4036_daily_bin1431.fits outfile=/scratch/kocevski/934605/cmap_610243201_610502401_4FGL_J2328.3-4036_daily_bin1431.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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/934605/ft1_filtered_4FGL_J2328.3-4036_daily_bin1431.fits scfile=/scratch/kocevski/934605/ft2_4FGL_J2328.3-4036_daily_bin1431.fits outfile=/scratch/kocevski/934605/cmap_HighResolution_610243201_610502401_4FGL_J2328.3-4036_daily_bin1431.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.55
user 0.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/934605/ft1_filtered_4FGL_J2328.3-4036_daily_bin1431.fits evtable="EVENTS" scfile=/scratch/kocevski/934605/ft2_4FGL_J2328.3-4036_daily_bin1431.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/934605/Model_4FGL_J2328.3-4036_daily_bin1431.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/934605/ft1_filtered_4FGL_J2328.3-4036_daily_bin1431.fits.....................!
real 37.45
user 36.06
sys 1.25

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    7.5876       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10307E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    11.854       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    16.253       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    82.917       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    5.4126       1.0000         .10000E-03   10000.    
    16 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    4.0197       1.0000         .10000E-03   10000.    
    18 'norm      '    18.757       1.0000         .10000E-03   10000.    
    19 'Prefactor '    17.949       1.0000         .10000E-03   10000.    
    20 'Prefactor '    6.5072       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    6.9449       1.0000         .10000E-03   10000.    
    24 'norm      '    1.3356       1.0000         .10000E-03   10000.    
    25 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    2.0258       1.0000         .10000E-03   10000.    
    27 'Prefactor '    19.175       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10369E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .24208E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    .90158       1.0000         .10000E-01   10.000    
    33 'Prefactor '    1.0349       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=   4692.363     FROM MIGRAD    STATUS=CONVERGED    875 CALLS     4540 TOTAL
                     EDM=   .98E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    22.227       -.44755E-07** at limit **
   2  Prefactor     7.6098        21.540        .21991E-06   -.41666E-04
   3  Prefactor     .10000E-03    33.508        .85757E-06** at limit **
   4  Prefactor     .10000E-03    15.351        .35829E-06** at limit **
   5  Prefactor     .10000E-03    2.1088       -.30084E-07** at limit **
   6  Prefactor     .10000E-03    3.4490       -.14882E-06** at limit **
   7  Prefactor     .10000E-03    87.647        .22435E-05** at limit **
   8  Prefactor     11.852        12.706       -.15706E-06   -.20881E-04
   9  Prefactor     .10000E-03    32.566        .49973E-06** at limit **
  10  Prefactor     16.252        15.689        .69661E-08    .52316E-05
  11  Prefactor     .10000E-03    5.2163       -.12619E-06** at limit **
  12  Prefactor     .10000E-03    21.198       -.28997E-06** at limit **
  13  Prefactor     82.912        63.536        .32888E-06   -.95406E-05
  14  Prefactor     .10000E-03    7.5275        .34833E-08** at limit **
  15  norm          5.4145        13.380        .13605E-05    .10239E-04
  16  norm          .10000E-03    3.8997       -.15350E-07** at limit **
  17  norm          4.0198        4.1907       -.21129E-06    .54500E-04
  18  norm          18.756        11.174        .22199E-06    .14070E-03
  19  Prefactor     17.949        11.958       -.90659E-07   -.27554E-04
  20  Prefactor     6.5081        20.412       -.43305E-07   -.66579E-05
  21  Prefactor     .10000E-03    53.981       -.32726E-05** at limit **
  22  norm          .10000E-03    1.2100        .43485E-07** at limit **
  23  Prefactor     6.9496        20.514        .31421E-06   -.10887E-04
  24  norm          1.3357        1.1691        .19215E-07   -.21928E-04
  25  norm          .10000E-03    1.3042        .83328E-08** at limit **
  26  Prefactor     2.0233        4.4818        .37510E-05    .15206E-03
  27  Prefactor     19.196        30.554       -.52071E-05   -.26984E-04
  28  Prefactor     .10000E-03    24.182        .47766E-06** at limit **
  29  Prefactor     .10001E-03    6.5188        .27311E-05** at limit **
  30  Prefactor     .10000E-03    3.1762        .85247E-06** at limit **
  31  Prefactor     .10000E-03    20.132       -.45465E-06** at limit **
  32  Normalizat    .90170        .19922        .27989E-06   -.12248E-03
  33  Prefactor     1.0347        .21689       -.45964E-06   -.50925E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 7.60978
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 11.8524
  Prefactor  = 0.0001
  Prefactor  = 16.2523
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 82.9117
  Prefactor  = 0.0001
  norm       = 5.41448
  norm       = 0.0001
  norm       = 4.01979
  norm       = 18.7558
  Prefactor  = 17.9489
  Prefactor  = 6.5081
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 6.94958
  norm       = 1.3357
  norm       = 0.0001
  Prefactor  = 2.02333
  Prefactor  = 19.1964
  Prefactor  = 0.0001
  Prefactor  = 0.000100007
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.901702
  Prefactor  = 1.03469
 **********
 **   18 **HESSE 
 **********

 FCN=   4692.363     FROM HESSE     STATUS=OK           693 CALLS     5233 TOTAL
                     EDM=   .49E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    22.238        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     7.6098        21.007        .14559E-03   -1.5156    
   3  Prefactor     .10000E-03    33.571        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    15.396        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    2.1148        .97146E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    3.5188        .12420E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    87.846        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     11.852        12.706        .58177E-03   -1.5019    
   9  Prefactor     .10000E-03    32.691        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     16.252        15.685        .99348E-04   -1.4901    
  11  Prefactor     .10000E-03    5.2609        .15277E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    21.211        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     82.912        63.527        .44112E-04   -1.3884    
  14  Prefactor     .10000E-03    7.5416        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          5.4145        13.390        .86363E-03   -1.5243    
  16  norm          .10000E-03    3.9146        .13207E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          4.0198        4.2006        .13338E-03   -1.5307    
  18  norm          18.756        11.182        .92479E-04   -1.4842    
  19  Prefactor     17.949        11.892        .94535E-04   -1.4860    
  20  Prefactor     6.5081        20.418        .15733E-03   -1.5198    
  21  Prefactor     .10000E-03    54.201        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    1.2140        .73547E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     6.9496        20.368        .15224E-03   -1.5181    
  24  norm          1.3357        1.1674        .18982E-03   -1.5477    
  25  norm          .10000E-03    1.3082        .76374E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     2.0233        4.6094        .89187E-03   -1.5423    
  27  Prefactor     19.196        30.824        .91466E-04   -1.4831    
  28  Prefactor     .10000E-03    24.187        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10001E-03    19.568        .30456E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    9.1099        .22239E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .10000E-03    20.145        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    .90170        .23162        .24019E-03   -.96400    
  33  Prefactor     1.0347        .25609        .25263E-03   -.91582    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.88827e-10
Minuit parameter uncertainties:
  1  1.05831e-05
  2  21.0276
  3  1.57564e-05
  4  3.40385e-05
  5  2.49164e-06
  6  1.54489e-05
  7  0.000530029
  8  12.7089
  9  0.000175209
  10  15.6891
  11  1.54569e-05
  12  2.60534e-06
  13  63.5788
  14  6.21276e-06
  15  13.3979
  16  2.09491e-06
  17  4.20094
  18  11.1835
  19  11.8932
  20  20.4398
  21  0.00028014
  22  2.52271e-06
  23  20.3887
  24  1.16739
  25  1.39094e-07
  26  4.61018
  27  30.8498
  28  2.88408e-05
  29  0.00072809
  30  7.35448e-05
  31  8.32488e-06
  32  0.231874
  33  0.256392
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
587    Prefactor:  1.035e+00  2.564e-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.017e-01  2.319e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/934605/likelihoodResults_610243201_610502401_4FGL_J2328.3-4036_daily_bin1431.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): 102
logL (Free Index) = 4692.36724721
delta logL = -0.00378431554418

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4692.36346263
delta logL = 2.62271896645e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3188       1.0000          .0000       5.0000    
     3 'Normalizat'    .90170       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0347       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5900E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   4692.363     FROM MIGRAD    STATUS=FAILED        94 CALLS      233 TOTAL
                     EDM=   .46E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    42.291        .74154E-02** at limit **
   2  alpha         1.7627        3.0245        .50000       -.82920E-06
   3  Normalizat    .90170        .25426E-01    .24020E-03    .26553E-04
   4  Prefactor     1.0347        .28603E-01    .25263E-03    .35191E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   4692.363     FROM SIMPLEX   STATUS=UNCHANGED    225 CALLS      458 TOTAL
                     EDM=   .93E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    42.291        .17715E-03** at limit **
   2  alpha         1.7627        3.0245        .21151E-07   -.82920E-06
   3  Normalizat    .90170        .25426E-01    .32095E-09    .26553E-04
   4  Prefactor     1.0347        .28603E-01    .16846E-09    .35191E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4692.363     FROM MIGRAD    STATUS=CONVERGED     70 CALLS      528 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.6555        .16138E-03** at limit **
   2  alpha         1.7625        3.1988        .50000       -.85045E-06
   3  Normalizat    .90170        .22476        .19216E-05    .26032E-04
   4  Prefactor     1.0347        .25283        .20211E-05    .34876E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.76254
  Normalizat = 0.901704
  Prefactor  = 1.03469
 **********
 **   18 **HESSE 
 **********

 FCN=   4692.363     FROM HESSE     STATUS=OK            27 CALLS      555 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.4639        .32275E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.7625        3.9957        .50000       -.29944    
   3  Normalizat    .90170        .23006        .38431E-06   -.96400    
   4  Prefactor     1.0347        .26078        .40421E-06   -.91582    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.67573e-09
Minuit parameter uncertainties:
  1  4.41524e-06
  2  114.536
  3  0.230308
  4  0.2611
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/934605': 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) = 4692.36345603
delta logL = 6.86484236212e-06

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
587    Prefactor:  1.035e+00  2.611e-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.017e-01  2.303e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/934605/cmap_HighResolution_610243201_610502401_4FGL_J2328.3-4036_daily_bin1431.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.65e-05', job_status='DONE', photon_flux_upper_limit='4.72e-08', time_completed='2021-09-29 20:56:16.562821', job_id='934605', GAL2='1.03', fit_tolerance='1e-08', EG2='0.90', EG='0.90', time_epoch_completed='1632974176.56', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.03', dlogl='6.86e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.33' WHERE bin_id='1431' AND source_name='4FGL J2328.3-4036' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 20:56:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0303>
Subject: Job 934605: <4FGL_J2328.3-4036_daily_bin1431> in cluster <slac> Done

Job <4FGL_J2328.3-4036_daily_bin1431> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 20:40:27 2021
Job was executed on host(s) <bullet0303>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 20:40: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:40:30 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_bin1431 352.082 -40.6037 610243201 610502401 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 :                                   791.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             268.29 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   946 sec.
    Turnaround time :                            950 sec.

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

