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


Performing analysis on: 4FGL_J2328.3-4036_daily_bin1025
RA = 352.082, Dec = -40.6037
tmin = 505008001, tmax = 505267201
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='925694', job_status='RUN', time_executed='2021-09-29 20:32:26.979794', time_epoch_executed='1632972746.98' WHERE source_name='4FGL J2328.3-4036' and cadence='daily' and bin_id='1025'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/925694

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/925694/ft1_4FGL_J2328.3-4036_daily_bin1025.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/925694/ft2_4FGL_J2328.3-4036_daily_bin1025.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/925694/ft1_4FGL_J2328.3-4036_daily_bin1025.fits outfile=/scratch/kocevski/925694/ft1_filteredMKT_4FGL_J2328.3-4036_daily_bin1025.fits ra=352.082 dec=-40.6037 rad=12.0 tmin=505008001.0 tmax=505267201.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 4.54
user 4.27
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/925694/ft1_filtered_4FGL_J2328.3-4036_daily_bin1025.fits" evtable="EVENTS" scfile=/scratch/kocevski/925694/ft2_4FGL_J2328.3-4036_daily_bin1025.fits sctable="SC_DATA" outfile=/scratch/kocevski/925694/ltcube_505008001_505267201_4FGL_J2328.3-4036_daily_bin1025.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/925694/ft2_4FGL_J2328.3-4036_daily_bin1025.fits
.....................!
real 14.29
user 13.95
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/925694/ft1_filtered_4FGL_J2328.3-4036_daily_bin1025.fits evtable="EVENTS" scfile=/scratch/kocevski/925694/ft2_4FGL_J2328.3-4036_daily_bin1025.fits sctable="SC_DATA" expcube=/scratch/kocevski/925694/ltcube_505008001_505267201_4FGL_J2328.3-4036_daily_bin1025.fits outfile=/scratch/kocevski/925694/expmap_505008001_505267201_4FGL_J2328.3-4036_daily_bin1025.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/925694/ltcube_505008001_505267201_4FGL_J2328.3-4036_daily_bin1025.fits
.....................!
real 189.53
user 185.11
sys 4.09

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/925694/ft1_filtered_4FGL_J2328.3-4036_daily_bin1025.fits scfile=/scratch/kocevski/925694/ft2_4FGL_J2328.3-4036_daily_bin1025.fits outfile=/scratch/kocevski/925694/cmap_505008001_505267201_4FGL_J2328.3-4036_daily_bin1025.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.55
user 0.37
sys 0.14

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

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

This is gtbin version HEAD
real 0.54
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/925694/ft1_filtered_4FGL_J2328.3-4036_daily_bin1025.fits evtable="EVENTS" scfile=/scratch/kocevski/925694/ft2_4FGL_J2328.3-4036_daily_bin1025.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/925694/Model_4FGL_J2328.3-4036_daily_bin1025.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/925694/ft1_filtered_4FGL_J2328.3-4036_daily_bin1025.fits.....................!
real 46.49
user 44.61
sys 1.30

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    44.235       1.0000         .10000E-03   10000.    
     2 'Prefactor '    62.018       1.0000         .10000E-03   10000.    
     3 'Prefactor '    32.387       1.0000         .10000E-03   10000.    
     4 'Prefactor '    47.341       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .37412E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    50.067       1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.3870       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.9967       1.0000         .10000E-03   10000.    
    14 'Prefactor '    15.928       1.0000         .10000E-03   10000.    
    15 'norm      '    .15943E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    5.3435       1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    5.5595       1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.0552       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    6.7838       1.0000         .10000E-03   10000.    
    23 'Prefactor '    23.168       1.0000         .10000E-03   10000.    
    24 'norm      '    .10024E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .47608       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .91743       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    57.239       1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.1015       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .69866       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=   6343.562     FROM MIGRAD    STATUS=CONVERGED    884 CALLS     5385 TOTAL
                     EDM=   .21E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     44.233        45.189        .53850E-07   -.18441E-04
   2  Prefactor     62.017        31.867       -.64778E-06   -.62173E-04
   3  Prefactor     32.437        79.521        .57057E-05    .58145E-04
   4  Prefactor     47.341        29.588        .19043E-06   -.97050E-05
   5  Prefactor     .10000E-03    5.2021        .89259E-07** at limit **
   6  Prefactor     .10000E-03    2.3735        .21582E-06** at limit **
   7  Prefactor     50.078        62.089        .34897E-06    .17828E-05
   8  Prefactor     7.3860        13.570        .41770E-06    .83335E-05
   9  Prefactor     .10000E-03    11.313        .52579E-06** at limit **
  10  Prefactor     .10000E-03    4.3500       -.22323E-07** at limit **
  11  Prefactor     .10000E-03    2.8985        .19329E-06** at limit **
  12  Prefactor     .10000E-03    17.299        .37190E-06** at limit **
  13  Prefactor     1.9928        161.90        .14268E-05   -.36036E-05
  14  Prefactor     15.933        19.886       -.47057E-06   -.17499E-03
  15  norm          .10001E-03    4.7189       -.33188E-07** at limit **
  16  norm          5.3440        5.1574       -.20240E-07   -.44736E-04
  17  norm          .10000E-03    2.9374       -.40452E-06** at limit **
  18  norm          5.5593        5.1508        .69054E-07   -.20208E-04
  19  Prefactor     1.0565        11.694        .14654E-05   -.29977E-03
  20  Prefactor     .10000E-03    10.153       -.15875E-06** at limit **
  21  Prefactor     .10000E-03    12.157        .17832E-06** at limit **
  22  norm          6.7836        3.9465       -.15148E-06   -.28794E-03
  23  Prefactor     23.167        28.944       -.90109E-06   -.33889E-03
  24  norm          .10000E-03    .82408       -.15854E-06** at limit **
  25  norm          .10000E-03    1.1221       -.85233E-07** at limit **
  26  Prefactor     .47571        2.7703        .22492E-05   -.79753E-04
  27  Prefactor     .10000E-03    8.5434       -.51360E-07** at limit **
  28  Prefactor     .10000E-03    14.192       -.75682E-06** at limit **
  29  Prefactor     .91723        3.3803        .14841E-05    .28976E-04
  30  Prefactor     .10000E-03    1.3569        .37363E-07** at limit **
  31  Prefactor     57.239        40.519       -.26194E-06   -.37078E-04
  32  Normalizat    1.1014        .16652       -.12636E-05   -.25306E-03
  33  Prefactor     .69881        .17493        .39527E-06   -.22700E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 44.2328
  Prefactor  = 62.0169
  Prefactor  = 32.4367
  Prefactor  = 47.3412
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 50.0783
  Prefactor  = 7.38598
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.99278
  Prefactor  = 15.9331
  norm       = 0.000100008
  norm       = 5.34398
  norm       = 0.0001
  norm       = 5.55934
  Prefactor  = 1.05649
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.7836
  Prefactor  = 23.1668
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.475709
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.917228
  Prefactor  = 0.0001
  Prefactor  = 57.2394
  Normalizat = 1.1014
  Prefactor  = 0.698807
 **********
 **   18 **HESSE 
 **********

 FCN=   6343.562     FROM HESSE     STATUS=OK           701 CALLS     6086 TOTAL
                     EDM=   .57E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     44.233        45.196        .60280E-04   -1.4377    
   2  Prefactor     62.017        32.009        .50953E-04   -1.4131    
   3  Prefactor     32.437        81.533        .70409E-04   -1.4568    
   4  Prefactor     47.341        29.536        .58277E-04   -1.4331    
   5  Prefactor     .10000E-03    5.2458        .17702E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    22.825        .22256E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     50.078        59.094        .56676E-04   -1.4291    
   8  Prefactor     7.3860        13.566        .14757E-03   -1.5164    
   9  Prefactor     .10000E-03    11.341        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    4.3654        .16221E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    2.9145        .13243E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    17.332        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     1.9928        163.23        .29314E-03   -1.5426    
  14  Prefactor     15.933        19.504        .10035E-03   -1.4909    
  15  norm          .10001E-03    5.9984        .68002E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          5.3440        5.2068        .17014E-03   -1.5246    
  17  norm          .10000E-03    2.9486        .13281E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          5.5593        5.1508        .16836E-03   -1.5236    
  19  Prefactor     1.0565        50.925        .30009E-02   -1.5502    
  20  Prefactor     .10000E-03    10.156        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    12.169        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          6.7836        3.9469        .11509E-03   -1.5187    
  23  Prefactor     23.167        34.731        .83220E-04   -1.4745    
  24  norm          .10000E-03    1.6507        .13014E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    1.1284        .82319E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .47571        2.7760        .25594E-03   -1.5570    
  27  Prefactor     .10000E-03    8.5559        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    14.225        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .91723        3.3434        .26766E-03   -1.5516    
  30  Prefactor     .10000E-03    1.3623        .90558E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     57.239        40.323        .53025E-04   -1.4193    
  32  Normalizat    1.1014        .19674        .21343E-03   -.89707    
  33  Prefactor     .69881        .20578        .28416E-03   -1.0357    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.70612e-10
Minuit parameter uncertainties:
  1  45.231
  2  32.0179
  3  81.815
  4  29.545
  5  4.86405e-06
  6  0.000443082
  7  59.1631
  8  13.5716
  9  3.01568e-05
  10  3.01601e-06
  11  6.94374e-06
  12  4.17282e-05
  13  36.173
  14  19.5118
  15  0.000451211
  16  5.20726
  17  2.83201e-06
  18  5.15121
  19  14.6825
  20  1.14203e-05
  21  2.06855e-05
  22  3.94701
  23  34.7611
  24  4.49714e-06
  25  2.02542e-06
  26  2.29825
  27  3.35045e-05
  28  6.29854e-05
  29  3.34408
  30  5.43529e-07
  31  40.3423
  32  0.196874
  33  0.206
Done.

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

Extracting fit parameters...

4FGL J2328.3-4036
   Spectrum: LogParabola
455         norm:  6.784e+00  3.947e+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:  6.988e-01  2.060e-01  0.000e+00  1.000e+01 ( 1.000e+00)
588        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
589        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
586   Normalization:  1.101e+00  1.969e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.03
Ra Dec: 352.082 -40.604
Photon Index (Fixed Index): 2.33 +/- 0.00
Photon Flux (Fixed Index): 5.12e-08 +/- 2.98e-08
Energy Flux (Fixed Index): 1.79e-05 +/- 1.04e-05

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) = 6343.5311927
delta logL = 0.0310209209711

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6343.52670494
delta logL = 0.0355086773943

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.3762       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1650       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1121       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .68974       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.

 FCN=   6343.527     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      264 TOTAL
                     EDM=   .57E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.3760        4.6659        .12078E-03    .99528E-03
   2  alpha         2.1651        .60838        .13304E-01    .91774E-04
   3  Normalizat    1.1121        .19010        .21253E-03   -.12832E-03
   4  Prefactor     .68979        .20461        .28581E-03   -.16149E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 7.37601
  alpha      = 2.16513
  Normalizat = 1.11206
  Prefactor  = 0.689788
 **********
 **   18 **HESSE 
 **********

 FCN=   6343.527     FROM HESSE     STATUS=OK            23 CALLS      287 TOTAL
                     EDM=   .56E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.3760        4.5958        .48313E-05   -1.5165    
   2  alpha         2.1651        .59893        .53216E-03   -.13435    
   3  Normalizat    1.1121        .19006        .42507E-04   -.89366    
   4  Prefactor     .68979        .20461        .11432E-04   -1.0393    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.61523e-10
Minuit parameter uncertainties:
  1  4.59606
  2  0.604918
  3  0.190176
  4  0.204832
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/925694': 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) = 6343.52670487
delta logL = 0.0355087487233

Extracting fit parameters...

4FGL J2328.3-4036
   Spectrum: LogParabola
455         norm:  7.376e+00  4.596e+00  1.000e-04  1.000e+04 ( 1.000e-12)
456        alpha:  2.165e+00  6.049e-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:  6.898e-01  2.048e-01  0.000e+00  1.000e+01 ( 1.000e+00)
588        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
589        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
586   Normalization:  1.112e+00  1.902e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.08
Ra Dec: 352.082 -40.604
Photon Index (Free Index): 2.17 +/- 0.60
Photon Flux (Free Index): 4.56e-08 +/- 3.40e-08
Energy Flux (Free Index): 1.99e-05 +/- 1.43e-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/925694/cmap_HighResolution_505008001_505267201_4FGL_J2328.3-4036_daily_bin1025.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.12e-08', energy_flux2='1.99e-05', photon_flux_error='2.98e-08', dlogl='3.55e-02', energy_flux='1.79e-05', photon_flux2='4.56e-08', job_status='DONE', time_completed='2021-09-29 20:47:26.542862', photon_index_error2='0.60', photon_index2='2.17', ts='5.03', fit_tolerance='1e-08', GAL='0.70', photon_index_error='0.00', energy_flux_error2='1.43e-05', EG='1.10', time_epoch_completed='1632973646.54', return_code='0', job_id='925694', GAL2='0.69', EG2='1.11', return_code2='0', energy_flux_error='1.04e-05', photon_flux_error2='3.40e-08', ts2='5.08', photon_index='2.33' WHERE bin_id='1025' AND source_name='4FGL J2328.3-4036' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 20:47:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0191>
Subject: Job 925694: <4FGL_J2328.3-4036_daily_bin1025> in cluster <slac> Done

Job <4FGL_J2328.3-4036_daily_bin1025> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep 29 20:30:55 2021
Job was executed on host(s) <bullet0191>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 20:30:56 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:30:56 2021
Terminated at Wed Sep 29 20:47:27 2021
Results reported at Wed Sep 29 20:47:27 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2328.3-4036_daily_bin1025 352.082 -40.6037 505008001 505267201 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 :                                   896.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             278.45 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   990 sec.
    Turnaround time :                            992 sec.

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

