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


Performing analysis on: 4FGL_J2328.3-4036_daily_bin1267
RA = 352.082, Dec = -40.6037
tmin = 567734401, tmax = 567993601
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='930148', job_status='RUN', time_executed='2021-09-29 20:37:10.191008', time_epoch_executed='1632973030.19' WHERE source_name='4FGL J2328.3-4036' and cadence='daily' and bin_id='1267'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/930148

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/930148/ft1_4FGL_J2328.3-4036_daily_bin1267.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/930148/ft2_4FGL_J2328.3-4036_daily_bin1267.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/930148/ft1_4FGL_J2328.3-4036_daily_bin1267.fits outfile=/scratch/kocevski/930148/ft1_filteredMKT_4FGL_J2328.3-4036_daily_bin1267.fits ra=352.082 dec=-40.6037 rad=12.0 tmin=567734401.0 tmax=567993601.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 2.31
user 2.10
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/930148/ft1_filtered_4FGL_J2328.3-4036_daily_bin1267.fits" evtable="EVENTS" scfile=/scratch/kocevski/930148/ft2_4FGL_J2328.3-4036_daily_bin1267.fits sctable="SC_DATA" outfile=/scratch/kocevski/930148/ltcube_567734401_567993601_4FGL_J2328.3-4036_daily_bin1267.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/930148/ft2_4FGL_J2328.3-4036_daily_bin1267.fits
.....................!
real 13.03
user 12.61
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/930148/ft1_filtered_4FGL_J2328.3-4036_daily_bin1267.fits evtable="EVENTS" scfile=/scratch/kocevski/930148/ft2_4FGL_J2328.3-4036_daily_bin1267.fits sctable="SC_DATA" expcube=/scratch/kocevski/930148/ltcube_567734401_567993601_4FGL_J2328.3-4036_daily_bin1267.fits outfile=/scratch/kocevski/930148/expmap_567734401_567993601_4FGL_J2328.3-4036_daily_bin1267.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/930148/ltcube_567734401_567993601_4FGL_J2328.3-4036_daily_bin1267.fits
.....................!
real 193.26
user 186.00
sys 5.25

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/930148/ft1_filtered_4FGL_J2328.3-4036_daily_bin1267.fits scfile=/scratch/kocevski/930148/ft2_4FGL_J2328.3-4036_daily_bin1267.fits outfile=/scratch/kocevski/930148/cmap_567734401_567993601_4FGL_J2328.3-4036_daily_bin1267.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/930148/ft1_filtered_4FGL_J2328.3-4036_daily_bin1267.fits scfile=/scratch/kocevski/930148/ft2_4FGL_J2328.3-4036_daily_bin1267.fits outfile=/scratch/kocevski/930148/cmap_HighResolution_567734401_567993601_4FGL_J2328.3-4036_daily_bin1267.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.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/930148/ft1_filtered_4FGL_J2328.3-4036_daily_bin1267.fits evtable="EVENTS" scfile=/scratch/kocevski/930148/ft2_4FGL_J2328.3-4036_daily_bin1267.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/930148/Model_4FGL_J2328.3-4036_daily_bin1267.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/930148/ft1_filtered_4FGL_J2328.3-4036_daily_bin1267.fits.....................!
real 45.46
user 43.69
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.5498       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .30200E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.2428       1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.5482       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    41.993       1.0000         .10000E-03   10000.    
     9 'Prefactor '    34.525       1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.0746       1.0000         .10000E-03   10000.    
    11 'Prefactor '    12.183       1.0000         .10000E-03   10000.    
    12 'Prefactor '    92.179       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    7.1692       1.0000         .10000E-03   10000.    
    18 'norm      '    12.491       1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.9169       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    6.4007       1.0000         .10000E-03   10000.    
    23 'Prefactor '    28.955       1.0000         .10000E-03   10000.    
    24 'norm      '    .50125       1.0000         .10000E-03   10000.    
    25 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    5.5452       1.0000         .10000E-03   10000.    
    27 'Prefactor '    8.0627       1.0000         .10000E-03   10000.    
    28 'Prefactor '    30.578       1.0000         .10000E-03   10000.    
    29 'Prefactor '    13.159       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    22.874       1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.2777       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .73247       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=   5929.275     FROM MIGRAD    STATUS=CONVERGED   1580 CALLS     5313 TOTAL
                     EDM=   .54E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    16.236        .18142E-02** at limit **
   2  Prefactor     1.5342        35.768        .17108E-02    .25511E-04
   3  Prefactor     .10000E-03    59.876        .16563    ** at limit **
   4  Prefactor     .10000E-03    7.0084        .18142E-02** at limit **
   5  Prefactor     3.2429        4.4131        .18354E-03   -.21990E-04
   6  Prefactor     6.5478        4.7853        .13907E-03    .17462E-03
   7  Prefactor     .10000E-03    53.977        .18142E-02** at limit **
   8  Prefactor     41.990        33.418        .61861E-04   -.16540E-05
   9  Prefactor     34.529        30.460        .68201E-04    .73446E-04
  10  Prefactor     4.0749        8.2537        .19974E-03    .14742E-04
  11  Prefactor     12.184        9.4269        .11477E-03    .42794E-04
  12  Prefactor     92.188        49.465        .20928E-03    .10321E-04
  13  Prefactor     .10000E-03    34.427        .18142E-02** at limit **
  14  Prefactor     .10000E-03    13.688        .18142E-02** at limit **
  15  norm          .10000E-03    4.4379        .15839E-02** at limit **
  16  norm          .10000E-03    3.7253        .14470E-02** at limit **
  17  norm          7.1695        5.4861        .14820E-03   -.27077E-03
  18  norm          12.492        8.1516        .11334E-03    .38117E-04
  19  Prefactor     4.9165        5.3880        .17543E-03    .59425E-04
  20  Prefactor     .10000E-03    38.916        .18142E-02** at limit **
  21  Prefactor     .10000E-03    20.816        .18142E-02** at limit **
  22  norm          6.4005        4.5802        .12879E-03   -.88495E-03
  23  Prefactor     28.958        17.086        .74454E-04    .28248E-04
  24  norm          .50121        .72480        .90193E-03   -.13622E-03
  25  norm          .10000E-03    3.2407        .26669E-03** at limit **
  26  Prefactor     5.5457        4.1147        .12031E-03    .66243E-04
  27  Prefactor     8.0565        26.352        .14120E-03   -.38083E-04
  28  Prefactor     30.582        51.206        .72457E-04   -.32479E-04
  29  Prefactor     13.157        8.7933        .11042E-03   -.24442E-03
  30  Prefactor     .10000E-03    2.0066        .10605E-02** at limit **
  31  Prefactor     22.897        57.232        .83751E-04    .13574E-06
  32  Normalizat    1.2777        .24093        .23216E-03    .90122E-04
  33  Prefactor     .73238        .24630        .32168E-03   -.45555E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 1.53421
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 3.24293
  Prefactor  = 6.54781
  Prefactor  = 0.0001
  Prefactor  = 41.9897
  Prefactor  = 34.529
  Prefactor  = 4.07491
  Prefactor  = 12.1843
  Prefactor  = 92.1878
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 7.16947
  norm       = 12.4916
  Prefactor  = 4.91645
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.40054
  Prefactor  = 28.958
  norm       = 0.501208
  norm       = 0.0001
  Prefactor  = 5.54566
  Prefactor  = 8.05654
  Prefactor  = 30.5815
  Prefactor  = 13.1567
  Prefactor  = 0.0001
  Prefactor  = 22.8972
  Normalizat = 1.27773
  Prefactor  = 0.732376
 **********
 **   18 **HESSE 
 **********

 FCN=   5929.275     FROM HESSE     STATUS=OK           675 CALLS     5988 TOTAL
                     EDM=   .54E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    16.236        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     1.5342        35.683        .68433E-04   -1.5460    
   3  Prefactor     .10000E-03    60.285        .16469       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    7.0085        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     3.2429        4.4130        .73414E-05   -1.5348    
   6  Prefactor     6.5478        4.7853        .55627E-05   -1.5196    
   7  Prefactor     .10000E-03    53.982        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     41.990        33.410        .24744E-05   -1.4411    
   9  Prefactor     34.529        30.459        .13640E-04   -1.4532    
  10  Prefactor     4.0749        8.2537        .79895E-05   -1.5304    
  11  Prefactor     12.184        9.4265        .45907E-05   -1.5010    
  12  Prefactor     92.188        49.464        .83713E-05   -1.3785    
  13  Prefactor     .10000E-03    34.429        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    13.691        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    4.4379        .31678E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    3.7258        .28940E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          7.1695        5.4865        .29640E-04   -1.5172    
  18  norm          12.492        8.1514        .45335E-05   -1.5001    
  19  Prefactor     4.9165        5.3872        .70173E-05   -1.5264    
  20  Prefactor     .10000E-03    38.920        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    20.817        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          6.4005        4.5803        .51515E-05   -1.5202    
  23  Prefactor     28.958        17.083        .29782E-05   -1.4631    
  24  norm          .50121        .72424        .36077E-04   -1.5566    
  25  norm          .10000E-03    3.2408        .53338E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     5.5457        4.1140        .48123E-05   -1.5237    
  27  Prefactor     8.0565        26.339        .56480E-05   -1.5140    
  28  Prefactor     30.582        51.205        .14491E-04   -1.4601    
  29  Prefactor     13.157        8.7922        .44169E-05   -1.4982    
  30  Prefactor     .10000E-03    2.0068        .21211E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     22.897        57.172        .33501E-05   -1.4751    
  32  Normalizat    1.2777        .24116        .46433E-04   -.84234    
  33  Prefactor     .73238        .24655        .12867E-04   -1.0227    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.39857e-10
Minuit parameter uncertainties:
  1  2.58026e-05
  2  14.8075
  3  0.00103797
  4  1.63839e-05
  5  4.41347
  6  4.78558
  7  1.224e-05
  8  33.4248
  9  30.4725
  10  8.25596
  11  9.42769
  12  49.486
  13  6.5652e-05
  14  4.91259e-05
  15  3.51636e-06
  16  1.82521e-05
  17  5.48684
  18  8.15214
  19  5.38776
  20  0.000181966
  21  9.72107e-05
  22  4.58057
  23  17.0862
  24  0.724251
  25  7.0669e-06
  26  4.11421
  27  26.3773
  28  51.2789
  29  8.79309
  30  1.47092e-05
  31  57.3093
  32  0.241374
  33  0.246921
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
587    Prefactor:  7.324e-01  2.469e-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.278e+00  2.414e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.39
Ra Dec: 352.082 -40.604
Photon Index (Fixed Index): 2.33 +/- 0.00
Photon Flux (Fixed Index): 4.84e-08 +/- 3.46e-08
Energy Flux (Fixed Index): 1.69e-05 +/- 1.21e-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) = 5927.93350057
delta logL = 1.34165510541

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5927.22103262
delta logL = 2.05412304837

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .41703       1.0000         .10000E-03   10000.    
     2 'alpha     '    .47326       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3159       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .72258       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=   5927.221     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      230 TOTAL
                     EDM=   .47E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .41535        .46241        .10927E-01   -.10214E-02
   2  alpha         .47216        .43291        .36368        .28903E-05
   3  Normalizat    1.3160        .18787        .51881E-01    .87131E-05
   4  Prefactor     .72248        .20407        .73262E-01    .11905E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.415347
  alpha      = 0.472159
  Normalizat = 1.31597
  Prefactor  = 0.722476
 **********
 **   18 **HESSE 
 **********

 FCN=   5927.221     FROM HESSE     STATUS=OK            35 CALLS      265 TOTAL
                     EDM=   .17E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .41535        1.1059        .41445E-03   -1.5579    
   2  alpha         .47216        .78765        .17361E-01   -.94609    
   3  Normalizat    1.3160        .22480        .22938E-03   -.83091    
   4  Prefactor     .72248        .24377        .32426E-03   -1.0265    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.6637e-11
Minuit parameter uncertainties:
  1  1.10594
  2  0.831795
  3  0.224972
  4  0.244127
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/930148': 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) = 5927.22103155
delta logL = 2.05412412778

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
587    Prefactor:  7.225e-01  2.441e-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.316e+00  2.250e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 11.49
Ra Dec: 352.082 -40.604
Photon Index (Free Index): 0.47 +/- 0.83
Photon Flux (Free Index): 3.72e-09 +/- 4.11e-09
Energy Flux (Free Index): 8.09e-05 +/- 1.04e-04

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/930148/cmap_HighResolution_567734401_567993601_4FGL_J2328.3-4036_daily_bin1267.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.84e-08', energy_flux2='8.09e-05', photon_flux_error='3.46e-08', dlogl='2.05e+00', energy_flux='1.69e-05', photon_flux2='3.72e-09', job_status='DONE', time_completed='2021-09-29 20:51:23.602343', photon_index_error2='0.83', photon_index2='0.47', ts='7.39', fit_tolerance='1e-08', GAL='0.73', photon_index_error='0.00', energy_flux_error2='1.04e-04', EG='1.28', time_epoch_completed='1632973883.6', return_code='0', job_id='930148', GAL2='0.72', EG2='1.32', return_code2='0', energy_flux_error='1.21e-05', photon_flux_error2='4.11e-09', ts2='11.49', photon_index='2.33' WHERE bin_id='1267' AND source_name='4FGL J2328.3-4036' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 20:51:23 PDT 2021


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

Job <4FGL_J2328.3-4036_daily_bin1267> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep 29 20:35:43 2021
Job was executed on host(s) <bullet0048>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 20:35:45 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 20:35:45 2021
Terminated at Wed Sep 29 20:51:23 2021
Results reported at Wed Sep 29 20:51:23 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2328.3-4036_daily_bin1267 352.082 -40.6037 567734401 567993601 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 :                                   844.29 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             309.13 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   938 sec.
    Turnaround time :                            940 sec.

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

