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


Performing analysis on: 4FGL_J2328.3-4036_daily_bin1054
RA = 352.082, Dec = -40.6037
tmin = 512524801, tmax = 512784001
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='929491', job_status='RUN', time_executed='2021-09-29 20:38:12.228161', time_epoch_executed='1632973092.23' WHERE source_name='4FGL J2328.3-4036' and cadence='daily' and bin_id='1054'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/929491

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/929491/ft1_4FGL_J2328.3-4036_daily_bin1054.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/929491/ft2_4FGL_J2328.3-4036_daily_bin1054.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/929491/ft1_4FGL_J2328.3-4036_daily_bin1054.fits outfile=/scratch/kocevski/929491/ft1_filteredMKT_4FGL_J2328.3-4036_daily_bin1054.fits ra=352.082 dec=-40.6037 rad=12.0 tmin=512524801.0 tmax=512784001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 3.66
user 3.41
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/929491/ft1_filtered_4FGL_J2328.3-4036_daily_bin1054.fits" evtable="EVENTS" scfile=/scratch/kocevski/929491/ft2_4FGL_J2328.3-4036_daily_bin1054.fits sctable="SC_DATA" outfile=/scratch/kocevski/929491/ltcube_512524801_512784001_4FGL_J2328.3-4036_daily_bin1054.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/929491/ft2_4FGL_J2328.3-4036_daily_bin1054.fits
.....................!
real 12.29
user 11.89
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/929491/ft1_filtered_4FGL_J2328.3-4036_daily_bin1054.fits evtable="EVENTS" scfile=/scratch/kocevski/929491/ft2_4FGL_J2328.3-4036_daily_bin1054.fits sctable="SC_DATA" expcube=/scratch/kocevski/929491/ltcube_512524801_512784001_4FGL_J2328.3-4036_daily_bin1054.fits outfile=/scratch/kocevski/929491/expmap_512524801_512784001_4FGL_J2328.3-4036_daily_bin1054.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/929491/ltcube_512524801_512784001_4FGL_J2328.3-4036_daily_bin1054.fits
.....................!
real 191.33
user 186.34
sys 4.61

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/929491/ft1_filtered_4FGL_J2328.3-4036_daily_bin1054.fits scfile=/scratch/kocevski/929491/ft2_4FGL_J2328.3-4036_daily_bin1054.fits outfile=/scratch/kocevski/929491/cmap_512524801_512784001_4FGL_J2328.3-4036_daily_bin1054.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.60
user 0.37
sys 0.16

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

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

This is gtbin version HEAD
real 0.55
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    31.198       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.2159       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    21.840       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .12733E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.3118       1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.2238       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    52.563       1.0000         .10000E-03   10000.    
    14 'Prefactor '    10.151       1.0000         .10000E-03   10000.    
    15 'norm      '    2.8309       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    4.9815       1.0000         .10000E-03   10000.    
    18 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .11058E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    10.171       1.0000         .10000E-03   10000.    
    23 'Prefactor '    31.446       1.0000         .10000E-03   10000.    
    24 'norm      '    1.1316       1.0000         .10000E-03   10000.    
    25 'norm      '    1.6060       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    22.978       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    16.442       1.0000         .10000E-03   10000.    
    30 'Prefactor '    5.6000       1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10294E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    .97013       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .86561       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=   5234.039     FROM MIGRAD    STATUS=CONVERGED    859 CALLS     4543 TOTAL
                     EDM=   .25E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    13.700       -.43223E-06** at limit **
   2  Prefactor     .10000E-03    11.973        .17142E-06** at limit **
   3  Prefactor     31.203        56.896       -.16792E-06    .97137E-05
   4  Prefactor     .10000E-03    8.1553       -.81407E-07** at limit **
   5  Prefactor     .10000E-03    2.8747        .16554E-07** at limit **
   6  Prefactor     2.2160        2.5327        .38257E-07   -.24064E-04
   7  Prefactor     .10000E-03    28.050       -.69075E-06** at limit **
   8  Prefactor     21.836        20.553       -.19509E-06   -.82598E-04
   9  Prefactor     .10000E-03    57.570        .77705E-06** at limit **
  10  Prefactor     3.3133        10.038        .39229E-05   -.63629E-04
  11  Prefactor     3.2239        3.2546       -.31924E-07   -.28249E-04
  12  Prefactor     .10000E-03    13.916       -.37931E-06** at limit **
  13  Prefactor     52.555        51.304        .63632E-06   -.40260E-04
  14  Prefactor     10.153        15.040        .12491E-06   -.88701E-04
  15  norm          2.8305        7.7543        .34796E-05   -.90114E-04
  16  norm          .10000E-03    2.8605        .42120E-07** at limit **
  17  norm          4.9814        4.8648        .63898E-08   -.20416E-04
  18  norm          .10000E-03    12.257       -.10065E-06** at limit **
  19  Prefactor     .10000E-03    10.939        .79664E-06** at limit **
  20  Prefactor     .10000E-03    15.224        .10862E-06** at limit **
  21  Prefactor     .10000E-03    53.242       -.93880E-06** at limit **
  22  norm          10.172        4.9941       -.10256E-08   -.11542E-03
  23  Prefactor     31.448        18.111       -.95131E-06   -.60603E-03
  24  norm          1.1309        1.1433       -.23878E-08   -.59289E-03
  25  norm          1.6061        3.9283        .40781E-06   -.22907E-04
  26  Prefactor     .10000E-03    1.1557        .83055E-07** at limit **
  27  Prefactor     22.981        21.667        .14533E-06   -.34571E-04
  28  Prefactor     .10000E-03    17.172        .12165E-05** at limit **
  29  Prefactor     16.444        9.0312        .30029E-06   -.44980E-04
  30  Prefactor     5.6006        4.2851        .22707E-07    .24106E-04
  31  Prefactor     .10000E-03    56.504        .45075E-06** at limit **
  32  Normalizat    .96999        .19250       -.76214E-06   -.15376E-03
  33  Prefactor     .86574        .20380       -.15640E-06   -.84215E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 31.2026
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.21603
  Prefactor  = 0.0001
  Prefactor  = 21.836
  Prefactor  = 0.000100001
  Prefactor  = 3.31326
  Prefactor  = 3.22387
  Prefactor  = 0.0001
  Prefactor  = 52.5549
  Prefactor  = 10.1527
  norm       = 2.83051
  norm       = 0.0001
  norm       = 4.98135
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 10.1721
  Prefactor  = 31.4476
  norm       = 1.13093
  norm       = 1.60606
  Prefactor  = 0.0001
  Prefactor  = 22.9813
  Prefactor  = 0.0001
  Prefactor  = 16.4435
  Prefactor  = 5.60056
  Prefactor  = 0.0001
  Normalizat = 0.96999
  Prefactor  = 0.865742
 **********
 **   18 **HESSE 
 **********

 FCN=   5234.039     FROM HESSE     STATUS=OK           693 CALLS     5236 TOTAL
                     EDM=   .46E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    13.698        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    12.003        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     31.203        56.883        .71735E-04   -1.4590    
   4  Prefactor     .10000E-03    8.1582        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    2.8902        .11978E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     2.2160        2.5257        .11934E-03   -1.5410    
   7  Prefactor     .10000E-03    28.087        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     21.836        20.560        .85707E-04   -1.4773    
   9  Prefactor     .10000E-03    58.503        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     3.3133        10.031        .11123E-02   -1.5344    
  11  Prefactor     3.2239        3.2623        .12777E-03   -1.5349    
  12  Prefactor     .10000E-03    13.920        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     52.555        51.293        .55320E-04   -1.4257    
  14  Prefactor     10.153        14.992        .12576E-03   -1.5071    
  15  norm          2.8305        7.7582        .12085E-02   -1.5371    
  16  norm          .10000E-03    2.8674        .11945E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          4.9814        4.8719        .14804E-03   -1.5262    
  18  norm          .10000E-03    12.570        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    11.186        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    15.245        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    53.385        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          10.172        4.9796        .10156E-03   -1.5070    
  23  Prefactor     31.448        18.253        .71452E-04   -1.4586    
  24  norm          1.1309        1.1002        .70435E-04   -1.5495    
  25  norm          1.6061        3.8884        .20791E-03   -1.5455    
  26  Prefactor     .10000E-03    1.1631        .75932E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     22.981        21.630        .83562E-04   -1.4749    
  28  Prefactor     .10000E-03    17.162        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     16.444        9.0900        .49386E-03   -1.4897    
  30  Prefactor     5.6006        4.2920        .12430E-03   -1.5235    
  31  Prefactor     .10000E-03    56.626        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    .96999        .23261        .23046E-03   -.94043    
  33  Prefactor     .86574        .24513        .26885E-03   -.97349    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.55186e-10
Minuit parameter uncertainties:
  1  4.04544e-05
  2  5.99933e-05
  3  56.9821
  4  1.04107e-05
  5  5.59648e-06
  6  2.52584
  7  8.7625e-05
  8  20.5665
  9  0.000511294
  10  10.0358
  11  3.2625
  12  3.7151e-05
  13  51.3361
  14  14.9979
  15  7.76096
  16  1.70422e-06
  17  4.87227
  18  8.86978e-05
  19  2.01163e-05
  20  2.85275e-05
  21  0.000268949
  22  4.97979
  23  18.2561
  24  1.10026
  25  3.88899
  26  4.85345e-06
  27  21.6377
  28  0.000111863
  29  9.09081
  30  4.29228
  31  7.19723e-05
  32  0.232856
  33  0.245437
Done.

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

Extracting fit parameters...

4FGL J2328.3-4036
   Spectrum: LogParabola
455         norm:  1.017e+01  4.980e+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:  8.657e-01  2.454e-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.700e-01  2.329e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 10.41
Ra Dec: 352.082 -40.604
Photon Index (Fixed Index): 2.33 +/- 0.00
Photon Flux (Fixed Index): 7.68e-08 +/- 3.76e-08
Energy Flux (Fixed Index): 2.68e-05 +/- 1.31e-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) = 5233.87417462
delta logL = 0.164964759532

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5233.87399996
delta logL = 0.165139419292

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    11.912       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0781       1.0000          .0000       5.0000    
     3 'Normalizat'    .98461       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85393       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=   5233.874     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      253 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          11.906        130.70        .29016E-02    .56147E-04
   2  alpha         2.0775        3.2365        .25418        .23531E-04
   3  Normalizat    .98455        .17811        .45974E-01    .10486E-04
   4  Prefactor     .85408        .17018        .44415E-01    .12551E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 11.9064
  alpha      = 2.07753
  Normalizat = 0.984553
  Prefactor  = 0.85408
 **********
 **   18 **HESSE 
 **********

 FCN=   5233.874     FROM HESSE     STATUS=OK            33 CALLS      286 TOTAL
                     EDM=   .75E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          11.906        5.9719        .11166E-03   -1.5018    
   2  alpha         2.0775        .42977        .10216E-01   -.16980    
   3  Normalizat    .98455        .21744        .22897E-03   -.93550    
   4  Prefactor     .85408        .24078        .27044E-03   -.97765    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.53232e-13
Minuit parameter uncertainties:
  1  5.97215
  2  0.431981
  3  0.217634
  4  0.241074
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/929491': 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) = 5233.87399763
delta logL = 0.16514175736

Extracting fit parameters...

4FGL J2328.3-4036
   Spectrum: LogParabola
455         norm:  1.191e+01  5.972e+00  1.000e-04  1.000e+04 ( 1.000e-12)
456        alpha:  2.078e+00  4.320e-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:  8.541e-01  2.411e-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.846e-01  2.176e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.82
Ra Dec: 352.082 -40.604
Photon Index (Free Index): 2.08 +/- 0.43
Photon Flux (Free Index): 6.68e-08 +/- 3.58e-08
Energy Flux (Free Index): 3.34e-05 +/- 2.13e-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/929491/cmap_HighResolution_512524801_512784001_4FGL_J2328.3-4036_daily_bin1054.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.68e-08', energy_flux2='3.34e-05', photon_flux_error='3.76e-08', dlogl='1.65e-01', energy_flux='2.68e-05', photon_flux2='6.68e-08', job_status='DONE', time_completed='2021-09-29 20:51:00.352210', photon_index_error2='0.43', photon_index2='2.08', ts='10.41', fit_tolerance='1e-08', GAL='0.87', photon_index_error='0.00', energy_flux_error2='2.13e-05', EG='0.97', time_epoch_completed='1632973860.35', return_code='0', job_id='929491', GAL2='0.85', EG2='0.98', return_code2='0', energy_flux_error='1.31e-05', photon_flux_error2='3.58e-08', ts2='10.82', photon_index='2.33' WHERE bin_id='1054' AND source_name='4FGL J2328.3-4036' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 20:51:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0076>
Subject: Job 929491: <4FGL_J2328.3-4036_daily_bin1054> in cluster <slac> Done

Job <4FGL_J2328.3-4036_daily_bin1054> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep 29 20:35:13 2021
Job was executed on host(s) <bullet0076>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 20:35:14 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:14 2021
Terminated at Wed Sep 29 20:51:01 2021
Results reported at Wed Sep 29 20:51:01 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2328.3-4036_daily_bin1054 352.082 -40.6037 512524801 512784001 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 :                                   736.18 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             247.78 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   946 sec.
    Turnaround time :                            948 sec.

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

