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


Performing analysis on: 4FGL_J2328.3-4036_daily_bin1308
RA = 352.082, Dec = -40.6037
tmin = 578361601, tmax = 578620801
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='934288', job_status='RUN', time_executed='2021-09-29 20:41:32.357681', time_epoch_executed='1632973292.36' WHERE source_name='4FGL J2328.3-4036' and cadence='daily' and bin_id='1308'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/934288

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/934288/ft1_4FGL_J2328.3-4036_daily_bin1308.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/934288/ft2_4FGL_J2328.3-4036_daily_bin1308.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/934288/ft1_4FGL_J2328.3-4036_daily_bin1308.fits outfile=/scratch/kocevski/934288/ft1_filteredMKT_4FGL_J2328.3-4036_daily_bin1308.fits ra=352.082 dec=-40.6037 rad=12.0 tmin=578361601.0 tmax=578620801.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.61
user 3.40
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/934288/ft1_filtered_4FGL_J2328.3-4036_daily_bin1308.fits" evtable="EVENTS" scfile=/scratch/kocevski/934288/ft2_4FGL_J2328.3-4036_daily_bin1308.fits sctable="SC_DATA" outfile=/scratch/kocevski/934288/ltcube_578361601_578620801_4FGL_J2328.3-4036_daily_bin1308.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/934288/ft2_4FGL_J2328.3-4036_daily_bin1308.fits
.....................!
real 12.81
user 12.45
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/934288/ft1_filtered_4FGL_J2328.3-4036_daily_bin1308.fits evtable="EVENTS" scfile=/scratch/kocevski/934288/ft2_4FGL_J2328.3-4036_daily_bin1308.fits sctable="SC_DATA" expcube=/scratch/kocevski/934288/ltcube_578361601_578620801_4FGL_J2328.3-4036_daily_bin1308.fits outfile=/scratch/kocevski/934288/expmap_578361601_578620801_4FGL_J2328.3-4036_daily_bin1308.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/934288/ltcube_578361601_578620801_4FGL_J2328.3-4036_daily_bin1308.fits
.....................!
real 192.08
user 186.71
sys 5.04

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/934288/ft1_filtered_4FGL_J2328.3-4036_daily_bin1308.fits scfile=/scratch/kocevski/934288/ft2_4FGL_J2328.3-4036_daily_bin1308.fits outfile=/scratch/kocevski/934288/cmap_578361601_578620801_4FGL_J2328.3-4036_daily_bin1308.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.14

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

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

This is gtbin version HEAD
real 0.53
user 0.37
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/934288/ft1_filtered_4FGL_J2328.3-4036_daily_bin1308.fits evtable="EVENTS" scfile=/scratch/kocevski/934288/ft2_4FGL_J2328.3-4036_daily_bin1308.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/934288/Model_4FGL_J2328.3-4036_daily_bin1308.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/934288/ft1_filtered_4FGL_J2328.3-4036_daily_bin1308.fits.....................!
real 39.09
user 37.87
sys 1.14

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.045       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.0255       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    13.643       1.0000         .10000E-03   10000.    
     7 'Prefactor '    34.307       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    11.041       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    65.848       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.5742       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10037E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    4.6765       1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.2397       1.0000         .10000E-03   10000.    
    20 'Prefactor '    51.633       1.0000         .10000E-03   10000.    
    21 'Prefactor '    63.613       1.0000         .10000E-03   10000.    
    22 'norm      '    5.4607       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10046E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    3.3551       1.0000         .10000E-03   10000.    
    29 'Prefactor '    1.4576       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .19977       1.0000         .10000E-03   10000.    
    31 'Prefactor '    50.971       1.0000         .10000E-03   10000.    
    32 'Normalizat'    .95253       1.0000         .10000E-01   10.000    
    33 'Prefactor '    1.0885       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=   5074.724     FROM MIGRAD    STATUS=CONVERGED    863 CALLS     4552 TOTAL
                     EDM=   .62E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.044        38.383        .42509E-06   -.19338E-05
   2  Prefactor     .10000E-03    13.217       -.51526E-06** at limit **
   3  Prefactor     4.9946        197.86        .13280E-04   -.52789E-06
   4  Prefactor     .10000E-03    13.230       -.17782E-06** at limit **
   5  Prefactor     .10000E-03    4.0172       -.35461E-07** at limit **
   6  Prefactor     13.643        6.2664        .81929E-07   -.88970E-05
   7  Prefactor     34.301        44.382        .82585E-06    .18240E-05
   8  Prefactor     .10000E-03    10.624       -.71980E-07** at limit **
   9  Prefactor     .10000E-03    6.7060       -.64869E-07** at limit **
  10  Prefactor     11.041        17.687        .24651E-06   -.27776E-05
  11  Prefactor     .10000E-03    2.9276        .35167E-07** at limit **
  12  Prefactor     .10000E-03    66.555       -.75492E-06** at limit **
  13  Prefactor     65.833        64.254        .18578E-05    .22961E-05
  14  Prefactor     1.5743        22.131        .97060E-07   -.23780E-04
  15  norm          .10000E-03    3.8522        .72965E-07** at limit **
  16  norm          .10000E-03    9.9189        .13269E-05** at limit **
  17  norm          4.6764        4.4040       -.90282E-07   -.19871E-04
  18  norm          .10000E-03    4.8058       -.16249E-07** at limit **
  19  Prefactor     3.2384        6.0721        .21024E-05   -.22847E-03
  20  Prefactor     51.688        72.638       -.68849E-05   -.49253E-04
  21  Prefactor     63.607        49.176        .82223E-06   -.21693E-05
  22  norm          5.4589        8.5910        .21856E-05   -.22349E-05
  23  Prefactor     .10000E-03    13.824        .13257E-05** at limit **
  24  norm          .10000E-03    .33327        .87355E-07** at limit **
  25  norm          .10000E-03    2.8020        .45171E-06** at limit **
  26  Prefactor     .10000E-03    .96094       -.67285E-07** at limit **
  27  Prefactor     .10000E-03    16.329       -.83591E-07** at limit **
  28  Prefactor     3.3385        105.27        .58264E-05    .12465E-05
  29  Prefactor     1.4578        7.6645        .77335E-06   -.90779E-06
  30  Prefactor     .20394        2.2691        .16189E-06   -.12515E-03
  31  Prefactor     50.974        58.814       -.28741E-06   -.10131E-04
  32  Normalizat    .95238        .20689       -.16695E-05   -.10480E-03
  33  Prefactor     1.0886        .21414        .62087E-06   -.10187E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.0441
  Prefactor  = 0.0001
  Prefactor  = 4.99461
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.6433
  Prefactor  = 34.3006
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.041
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 65.8327
  Prefactor  = 1.57433
  norm       = 0.0001
  norm       = 0.0001
  norm       = 4.67636
  norm       = 0.0001
  Prefactor  = 3.23836
  Prefactor  = 51.6877
  Prefactor  = 63.6072
  norm       = 5.4589
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.33846
  Prefactor  = 1.45782
  Prefactor  = 0.203937
  Prefactor  = 50.9739
  Normalizat = 0.952382
  Prefactor  = 1.08864
 **********
 **   18 **HESSE 
 **********

 FCN=   5074.724     FROM HESSE     STATUS=OK           693 CALLS     5245 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.044        38.387        .11090E-03   -1.4985    
   2  Prefactor     .10000E-03    13.266        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     4.9946        198.08        .17938E-03   -1.5261    
   4  Prefactor     .10000E-03    13.245        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    4.0406        .13941E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     13.643        6.2730        .10844E-03   -1.4969    
   7  Prefactor     34.301        44.415        .68417E-04   -1.4536    
   8  Prefactor     .10000E-03    10.635        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    6.7113        .18017E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     11.041        17.683        .12057E-03   -1.5043    
  11  Prefactor     .10000E-03    2.9384        .11903E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    67.015        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     65.833        64.254        .49458E-04   -1.4083    
  14  Prefactor     1.5743        22.135        .33871E-03   -1.5457    
  15  norm          .10000E-03    3.8537        .13656E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    10.372        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          4.6764        4.4033        .69629E-03   -1.5275    
  18  norm          .10000E-03    4.8331        .15249E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     3.2384        6.1351        .11252E-02   -1.5348    
  20  Prefactor     51.688        73.372        .55814E-04   -1.4269    
  21  Prefactor     63.607        49.200        .50314E-04   -1.4111    
  22  norm          5.4589        8.5844        .16782E-03   -1.5241    
  23  Prefactor     .10000E-03    14.099        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    .33834        .40134E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    2.8408        .11641E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    .96405        .68196E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    16.412        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     3.3385        105.51        .22094E-03   -1.5343    
  29  Prefactor     1.4578        7.4458        .35356E-03   -1.5466    
  30  Prefactor     .20394        8.8764        .20271E-02   -1.5618    
  31  Prefactor     50.974        58.141        .56173E-04   -1.4279    
  32  Normalizat    .95238        .24605        .24728E-03   -.94643    
  33  Prefactor     1.0886        .25775        .25998E-03   -.89830    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.87896e-08
Minuit parameter uncertainties:
  1  38.4601
  2  4.37887e-05
  3  63.1317
  4  4.96355e-07
  5  7.31003e-07
  6  6.27328
  7  44.4582
  8  3.32061e-07
  9  4.33451e-07
  10  17.691
  11  1.69215e-06
  12  1.62168e-05
  13  64.3219
  14  11.8114
  15  1.91527e-06
  16  2.31339e-05
  17  4.40365
  18  2.46606e-07
  19  6.1363
  20  73.5006
  21  49.2314
  22  8.58632
  23  1.45467e-05
  24  3.01977e-07
  25  2.20771e-05
  26  1.93939e-06
  27  2.59739e-05
  28  37.609
  29  6.59035
  30  2.69066
  31  58.2059
  32  0.246341
  33  0.258042
Done.

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

Extracting fit parameters...

4FGL J2328.3-4036
   Spectrum: LogParabola
455         norm:  5.459e+00  8.586e+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:  1.089e+00  2.580e-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.524e-01  2.463e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.17
Ra Dec: 352.082 -40.604
Photon Index (Fixed Index): 2.33 +/- 0.00
Photon Flux (Fixed Index): 4.12e-08 +/- 6.48e-08
Energy Flux (Fixed Index): 1.44e-05 +/- 2.27e-05

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

Saving results to:
/scratch/kocevski/934288/likelihoodResults_578361601_578620801_4FGL_J2328.3-4036_daily_bin1308.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) = 5071.72249355
delta logL = 3.00104048785

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5071.67843732
delta logL = 3.04509672054

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .59423       1.0000         .10000E-03   10000.    
     2 'alpha     '    4.7073       1.0000          .0000       5.0000    
     3 'Normalizat'    .76416       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2281       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=   5071.678     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      272 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .59355        4.2431        .49724E-02    .52971E-02
   2  alpha         4.7083        4.8201        .31309        .60873E-04
   3  Normalizat    .76399        .92180E-01    .43141E-01   -.15812E-03
   4  Prefactor     1.2283        .98831E-01    .55695E-01   -.18603E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.593547
  alpha      = 4.70833
  Normalizat = 0.763994
  Prefactor  = 1.22827
 **********
 **   18 **HESSE 
 **********

 FCN=   5071.678     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      303 TOTAL
                     EDM=   .43E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .59355        5.0840        .22175E-04   -1.5554    
   2  alpha         4.7083        4.8355        .15617E-01    1.0829    
   3  Normalizat    .76399        .22811        .27138E-03   -1.0142    
   4  Prefactor     1.2283        .25266        .24627E-03   -.85466    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.33371e-10
Minuit parameter uncertainties:
  1  3.47434
  2  3.3125
  3  0.228398
  4  0.25291
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/934288': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5071.67843591
delta logL = 3.04509813044

Extracting fit parameters...

4FGL J2328.3-4036
   Spectrum: LogParabola
455         norm:  5.935e-01  3.474e+00  1.000e-04  1.000e+04 ( 1.000e-12)
456        alpha:  4.708e+00  3.312e+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:  1.228e+00  2.529e-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.640e-01  2.284e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.01
Ra Dec: 352.082 -40.604
Photon Index (Free Index): 4.71 +/- 3.31
Photon Flux (Free Index): 1.93e-07 +/- 8.37e-08
Energy Flux (Free Index): 2.69e-05 +/- 1.55e-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/934288/cmap_HighResolution_578361601_578620801_4FGL_J2328.3-4036_daily_bin1308.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.76e-05', comment='SUCCESS', photon_flux='4.12e-08', energy_flux2='2.69e-05', photon_flux_error='6.48e-08', dlogl='3.05e+00', energy_flux='1.44e-05', photon_flux2='1.93e-07', job_status='DONE', time_completed='2021-09-29 20:55:30.262495', photon_index_error2='3.31', photon_index2='4.71', ts='1.17', fit_tolerance='1e-08', GAL='1.09', photon_index_error='0.00', photon_flux_upper_limit='1.36e-07', energy_flux_error2='1.55e-05', EG='0.95', time_epoch_completed='1632974130.26', return_code='0', job_id='934288', GAL2='1.23', EG2='0.76', return_code2='102', energy_flux_error='2.27e-05', photon_flux_error2='8.37e-08', ts2='8.01', photon_index='2.33' WHERE bin_id='1308' AND source_name='4FGL J2328.3-4036' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 20:55:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0116>
Subject: Job 934288: <4FGL_J2328.3-4036_daily_bin1308> in cluster <slac> Done

Job <4FGL_J2328.3-4036_daily_bin1308> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 20:40:15 2021
Job was executed on host(s) <bullet0116>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 20:40:16 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:16 2021
Terminated at Wed Sep 29 20:55:30 2021
Results reported at Wed Sep 29 20:55:30 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2328.3-4036_daily_bin1308 352.082 -40.6037 578361601 578620801 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 :                                   820.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             269.58 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   914 sec.
    Turnaround time :                            915 sec.

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

