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


Performing analysis on: 4FGL_J2328.3-4036_daily_bin1498
RA = 352.082, Dec = -40.6037
tmin = 627609601, tmax = 627868801
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='934784', job_status='RUN', time_executed='2021-09-29 20:41:17.201008', time_epoch_executed='1632973277.2' WHERE source_name='4FGL J2328.3-4036' and cadence='daily' and bin_id='1498'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/934784

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/934784/ft1_4FGL_J2328.3-4036_daily_bin1498.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/934784/ft2_4FGL_J2328.3-4036_daily_bin1498.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/934784/ft1_4FGL_J2328.3-4036_daily_bin1498.fits outfile=/scratch/kocevski/934784/ft1_filteredMKT_4FGL_J2328.3-4036_daily_bin1498.fits ra=352.082 dec=-40.6037 rad=12.0 tmin=627609601.0 tmax=627868801.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.50
user 2.31
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/934784/ft1_filtered_4FGL_J2328.3-4036_daily_bin1498.fits" evtable="EVENTS" scfile=/scratch/kocevski/934784/ft2_4FGL_J2328.3-4036_daily_bin1498.fits sctable="SC_DATA" outfile=/scratch/kocevski/934784/ltcube_627609601_627868801_4FGL_J2328.3-4036_daily_bin1498.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/934784/ft2_4FGL_J2328.3-4036_daily_bin1498.fits
.....................!
real 12.19
user 11.82
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/934784/ft1_filtered_4FGL_J2328.3-4036_daily_bin1498.fits evtable="EVENTS" scfile=/scratch/kocevski/934784/ft2_4FGL_J2328.3-4036_daily_bin1498.fits sctable="SC_DATA" expcube=/scratch/kocevski/934784/ltcube_627609601_627868801_4FGL_J2328.3-4036_daily_bin1498.fits outfile=/scratch/kocevski/934784/expmap_627609601_627868801_4FGL_J2328.3-4036_daily_bin1498.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/934784/ltcube_627609601_627868801_4FGL_J2328.3-4036_daily_bin1498.fits
.....................!
real 192.19
user 187.02
sys 4.75

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/934784/ft1_filtered_4FGL_J2328.3-4036_daily_bin1498.fits scfile=/scratch/kocevski/934784/ft2_4FGL_J2328.3-4036_daily_bin1498.fits outfile=/scratch/kocevski/934784/cmap_627609601_627868801_4FGL_J2328.3-4036_daily_bin1498.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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/934784/ft1_filtered_4FGL_J2328.3-4036_daily_bin1498.fits scfile=/scratch/kocevski/934784/ft2_4FGL_J2328.3-4036_daily_bin1498.fits outfile=/scratch/kocevski/934784/cmap_HighResolution_627609601_627868801_4FGL_J2328.3-4036_daily_bin1498.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.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/934784/ft1_filtered_4FGL_J2328.3-4036_daily_bin1498.fits evtable="EVENTS" scfile=/scratch/kocevski/934784/ft2_4FGL_J2328.3-4036_daily_bin1498.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/934784/Model_4FGL_J2328.3-4036_daily_bin1498.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/934784/ft1_filtered_4FGL_J2328.3-4036_daily_bin1498.fits....................!
real 46.75
user 45.50
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    33.332       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.1529       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.2326       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10670E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10305E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10985E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .38177       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .70762       1.0000         .10000E-03   10000.    
    13 'Prefactor '    42.250       1.0000         .10000E-03   10000.    
    14 'Prefactor '    22.006       1.0000         .10000E-03   10000.    
    15 'norm      '    .10070E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10227E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    6.6042       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    28.712       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10158E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    9.2770       1.0000         .10000E-03   10000.    
    23 'Prefactor '    6.4403       1.0000         .10000E-03   10000.    
    24 'norm      '    1.1226       1.0000         .10000E-03   10000.    
    25 'norm      '    .10138E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    2.2287       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .14984E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    2.3227       1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    .99394       1.0000         .10000E-01   10.000    
    33 'Prefactor '    1.2074       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=   6413.641     FROM MIGRAD    STATUS=CONVERGED    917 CALLS     4642 TOTAL
                     EDM=   .18E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    49.676        .30876E-05** at limit **
   2  Prefactor     .10000E-03    7.1512       -.20669E-07** at limit **
   3  Prefactor     .10000E-03    15.642       -.26613E-06** at limit **
   4  Prefactor     33.345        27.762       -.41243E-06    .25754E-05
   5  Prefactor     1.1548        2.7279        .99494E-06   -.44845E-03
   6  Prefactor     .10000E-03    .85946       -.58235E-08** at limit **
   7  Prefactor     2.2267        179.97       -.70629E-06   -.73434E-05
   8  Prefactor     .10016E-03    47.359       -.64096E-05** at limit **
   9  Prefactor     .10000E-03    10.080       -.39956E-07** at limit **
  10  Prefactor     .10000E-03    33.122       -.13961E-05** at limit **
  11  Prefactor     .38269        4.1472       -.91533E-07   -.59722E-06
  12  Prefactor     .82791        64.747       -.68309E-05    .31734E-04
  13  Prefactor     42.261        47.234       -.12821E-05    .39590E-05
  14  Prefactor     21.995        16.938       -.11231E-06    .23676E-04
  15  norm          .10000E-03    8.1845        .81419E-07** at limit **
  16  norm          .10000E-03    4.2211       -.44608E-07** at limit **
  17  norm          .10000E-03    1.9815        .85920E-06** at limit **
  18  norm          6.6033        5.8808        .72826E-07    .13053E-04
  19  Prefactor     .10000E-03    5.6833       -.20703E-07** at limit **
  20  Prefactor     28.684        42.468        .17036E-05   -.29810E-04
  21  Prefactor     .10000E-03    47.523        .46158E-05** at limit **
  22  norm          9.2769        6.1230       -.36713E-06   -.15299E-03
  23  Prefactor     6.4380        9.9416       -.84458E-07    .95257E-05
  24  norm          1.1224        .87249       -.41258E-07    .31343E-04
  25  norm          .10000E-03    2.0243        .65023E-06** at limit **
  26  Prefactor     .10000E-03    1.2273       -.22875E-06** at limit **
  27  Prefactor     2.2246        49.872       -.46773E-06    .66666E-05
  28  Prefactor     .10000E-03    60.811       -.70822E-05** at limit **
  29  Prefactor     .10002E-03    22.232        .41922E-05** at limit **
  30  Prefactor     2.3219        4.4506       -.14481E-06   -.16594E-04
  31  Prefactor     .10000E-03    23.095        .10219E-05** at limit **
  32  Normalizat    .99414        .18256        .82778E-07    .21823E-03
  33  Prefactor     1.2074        .19903        .71786E-06    .13422E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 33.3449
  Prefactor  = 1.15479
  Prefactor  = 0.0001
  Prefactor  = 2.22672
  Prefactor  = 0.000100165
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.382692
  Prefactor  = 0.827912
  Prefactor  = 42.2614
  Prefactor  = 21.9952
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 6.60329
  Prefactor  = 0.0001
  Prefactor  = 28.6838
  Prefactor  = 0.0001
  norm       = 9.27685
  Prefactor  = 6.43799
  norm       = 1.12238
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.2246
  Prefactor  = 0.0001
  Prefactor  = 0.000100021
  Prefactor  = 2.32192
  Prefactor  = 0.0001
  Normalizat = 0.994137
  Prefactor  = 1.20735
 **********
 **   18 **HESSE 
 **********

 FCN=   6413.641     FROM HESSE     STATUS=OK           709 CALLS     5351 TOTAL
                     EDM=   .51E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    49.750        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    7.1552        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    15.648        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     33.345        32.610        .69407E-04   -1.4552    
   5  Prefactor     1.1548        18.233        .21529E-02   -1.5493    
   6  Prefactor     .10000E-03    .86074        .72485E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     2.2267        181.42        .13756E-02   -1.5410    
   8  Prefactor     .10016E-03    18.954        .10063       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    10.102        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    34.480        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .38269        10.638        .31264E-02   -1.5584    
  12  Prefactor     .82791        307.31        .82204E-02   -1.5526    
  13  Prefactor     42.261        47.262        .61674E-04   -1.4407    
  14  Prefactor     21.995        16.888        .85385E-04   -1.4770    
  15  norm          .10000E-03    8.2099        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    4.2940        .16061E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    1.9868        .11009E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          6.6033        5.8794        .15615E-03   -1.5194    
  19  Prefactor     .10000E-03    5.7296        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     28.684        42.364        .74769E-04   -1.4636    
  21  Prefactor     .10000E-03    47.752        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          9.2769        6.1430        .12726E-03   -1.5099    
  23  Prefactor     6.4380        9.8578        .15815E-03   -1.5200    
  24  norm          1.1224        .86697        .62154E-04   -1.5496    
  25  norm          .10000E-03    2.0347        .11107E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    1.2326        .86493E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     2.2246        49.144        .27539E-03   -1.5410    
  28  Prefactor     .10000E-03    61.410        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10002E-03    29.884        .31706E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     2.3219        4.4246        .21728E-03   -1.5403    
  31  Prefactor     .10000E-03    23.121        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    .99414        .22119        .25157E-03   -.93227    
  33  Prefactor     1.2074        .24222        .25969E-03   -.86105    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.08913e-08
Minuit parameter uncertainties:
  1  6.59038e-05
  2  5.8335e-07
  3  5.36639e-06
  4  32.6279
  5  9.18002
  6  2.66701e-07
  7  40.3243
  8  0.00353773
  9  1.92429e-06
  10  2.69365e-05
  11  4.03562
  12  32.0664
  13  47.3034
  14  16.892
  15  4.06373e-06
  16  4.25017e-07
  17  3.19792e-06
  18  5.8799
  19  1.1409e-07
  20  42.4081
  21  8.0597e-05
  22  6.14343
  23  9.86032
  24  0.866979
  25  1.0532e-06
  26  9.90952e-07
  27  20.9309
  28  0.000238125
  29  0.00159718
  30  4.42517
  31  1.99418e-05
  32  0.221396
  33  0.242444
Done.

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

Extracting fit parameters...

4FGL J2328.3-4036
   Spectrum: LogParabola
455         norm:  9.277e+00  6.143e+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.207e+00  2.424e-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.941e-01  2.214e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.90
Ra Dec: 352.082 -40.604
Photon Index (Fixed Index): 2.33 +/- 0.00
Photon Flux (Fixed Index): 7.01e-08 +/- 4.64e-08
Energy Flux (Fixed Index): 2.45e-05 +/- 1.62e-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) = 6413.62227163
delta logL = 0.019012530166

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6413.61713095
delta logL = 0.024153211767

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.7362       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4396       1.0000          .0000       5.0000    
     3 'Normalizat'    .98733       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2123       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=   6413.617     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      242 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.7360        5.6133        .12140E-03    .59418E-03
   2  alpha         2.4396        .50191        .11240E-01    .54407E-04
   3  Normalizat    .98729        .21271        .25231E-03   -.37263E-04
   4  Prefactor     1.2123        .23780        .25922E-03   -.59294E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 8.73604
  alpha      = 2.43957
  Normalizat = 0.987293
  Prefactor  = 1.21233
 **********
 **   18 **HESSE 
 **********

 FCN=   6413.617     FROM HESSE     STATUS=OK            25 CALLS      267 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.7360        5.4708        .48561E-05   -1.5117    
   2  alpha         2.4396        .48900        .44958E-03   -.24174E-01
   3  Normalizat    .98729        .21285        .10092E-04   -.93457    
   4  Prefactor     1.2123        .23797        .10369E-04   -.85953    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.12616e-10
Minuit parameter uncertainties:
  1  5.47116
  2  0.492177
  3  0.213033
  4  0.238177
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/934784': 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) = 6413.61713094
delta logL = 0.0241532258697

Extracting fit parameters...

4FGL J2328.3-4036
   Spectrum: LogParabola
455         norm:  8.736e+00  5.471e+00  1.000e-04  1.000e+04 ( 1.000e-12)
456        alpha:  2.440e+00  4.922e-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:  1.212e+00  2.382e-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.873e-01  2.130e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.00
Ra Dec: 352.082 -40.604
Photon Index (Free Index): 2.44 +/- 0.49
Photon Flux (Free Index): 7.56e-08 +/- 4.71e-08
Energy Flux (Free Index): 2.35e-05 +/- 1.33e-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/934784/cmap_HighResolution_627609601_627868801_4FGL_J2328.3-4036_daily_bin1498.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.01e-08', energy_flux2='2.35e-05', photon_flux_error='4.64e-08', dlogl='2.42e-02', energy_flux='2.45e-05', photon_flux2='7.56e-08', job_status='DONE', time_completed='2021-09-29 20:55:28.242719', photon_index_error2='0.49', photon_index2='2.44', ts='5.90', fit_tolerance='1e-08', GAL='1.21', photon_index_error='0.00', energy_flux_error2='1.33e-05', EG='0.99', time_epoch_completed='1632974128.24', return_code='0', job_id='934784', GAL2='1.21', EG2='0.99', return_code2='0', energy_flux_error='1.62e-05', photon_flux_error2='4.71e-08', ts2='6.00', photon_index='2.33' WHERE bin_id='1498' AND source_name='4FGL J2328.3-4036' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 20:55:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0093>
Subject: Job 934784: <4FGL_J2328.3-4036_daily_bin1498> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2328.3-4036_daily_bin1498 352.082 -40.6037 627609601 627868801 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 :                                   831.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             320.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   891 sec.
    Turnaround time :                            894 sec.

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

