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


Performing analysis on: 4FGL_J2328.3-4036_daily_bin1217
RA = 352.082, Dec = -40.6037
tmin = 554774401, tmax = 555033601
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='929992', job_status='RUN', time_executed='2021-09-29 20:36:14.553473', time_epoch_executed='1632972974.55' WHERE source_name='4FGL J2328.3-4036' and cadence='daily' and bin_id='1217'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/929992

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/929992/ft1_4FGL_J2328.3-4036_daily_bin1217.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/929992/ft2_4FGL_J2328.3-4036_daily_bin1217.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/929992/ft1_4FGL_J2328.3-4036_daily_bin1217.fits outfile=/scratch/kocevski/929992/ft1_filteredMKT_4FGL_J2328.3-4036_daily_bin1217.fits ra=352.082 dec=-40.6037 rad=12.0 tmin=554774401.0 tmax=555033601.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.70
user 3.48
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/929992/ft1_filtered_4FGL_J2328.3-4036_daily_bin1217.fits" evtable="EVENTS" scfile=/scratch/kocevski/929992/ft2_4FGL_J2328.3-4036_daily_bin1217.fits sctable="SC_DATA" outfile=/scratch/kocevski/929992/ltcube_554774401_555033601_4FGL_J2328.3-4036_daily_bin1217.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/929992/ft2_4FGL_J2328.3-4036_daily_bin1217.fits
.....................!
real 14.51
user 14.12
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/929992/ft1_filtered_4FGL_J2328.3-4036_daily_bin1217.fits evtable="EVENTS" scfile=/scratch/kocevski/929992/ft2_4FGL_J2328.3-4036_daily_bin1217.fits sctable="SC_DATA" expcube=/scratch/kocevski/929992/ltcube_554774401_555033601_4FGL_J2328.3-4036_daily_bin1217.fits outfile=/scratch/kocevski/929992/expmap_554774401_555033601_4FGL_J2328.3-4036_daily_bin1217.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/929992/ltcube_554774401_555033601_4FGL_J2328.3-4036_daily_bin1217.fits
.....................!
real 190.87
user 185.49
sys 5.03

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/929992/ft1_filtered_4FGL_J2328.3-4036_daily_bin1217.fits scfile=/scratch/kocevski/929992/ft2_4FGL_J2328.3-4036_daily_bin1217.fits outfile=/scratch/kocevski/929992/cmap_554774401_555033601_4FGL_J2328.3-4036_daily_bin1217.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.16

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

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

This is gtbin version HEAD
real 0.53
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/929992/ft1_filtered_4FGL_J2328.3-4036_daily_bin1217.fits evtable="EVENTS" scfile=/scratch/kocevski/929992/ft2_4FGL_J2328.3-4036_daily_bin1217.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/929992/Model_4FGL_J2328.3-4036_daily_bin1217.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/929992/ft1_filtered_4FGL_J2328.3-4036_daily_bin1217.fits.....................!
real 27.28
user 26.06
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    50.216       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.9729       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10783E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .82762E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    34.496       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.0777       1.0000         .10000E-03   10000.    
    11 'Prefactor '    19.694       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    52.757       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    9.2131       1.0000         .10000E-03   10000.    
    17 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10194E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    56.443       1.0000         .10000E-03   10000.    
    21 'Prefactor '    33.907       1.0000         .10000E-03   10000.    
    22 'norm      '    .11301E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    13.457       1.0000         .10000E-03   10000.    
    24 'norm      '    2.5690       1.0000         .10000E-03   10000.    
    25 'norm      '    5.9721       1.0000         .10000E-03   10000.    
    26 'Prefactor '    5.2476       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10230E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .39082E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .17884E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    .71910       1.0000         .10000E-01   10.000    
    33 'Prefactor '    1.2208       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=   2686.242     FROM MIGRAD    STATUS=CONVERGED    866 CALLS     4558 TOTAL
                     EDM=   .30E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     50.196        99.569        .41066E-05    .15385E-04
   2  Prefactor     .10000E-03    13.580       -.12615E-06** at limit **
   3  Prefactor     .10000E-03    63.517       -.10427E-05** at limit **
   4  Prefactor     .10000E-03    14.076       -.62083E-06** at limit **
   5  Prefactor     .10000E-03    5.3335       -.17079E-06** at limit **
   6  Prefactor     1.9708        9.2866        .11233E-04   -.23043E-04
   7  Prefactor     .10000E-03    75.172        .41623E-05** at limit **
   8  Prefactor     .10000E-03    128.58        .51673E-05** at limit **
   9  Prefactor     34.513        40.306       -.34530E-05   -.10123E-03
  10  Prefactor     1.0812        21.343        .65168E-06   -.30555E-04
  11  Prefactor     19.695        15.395       -.87138E-06   -.27050E-04
  12  Prefactor     .10000E-03    41.319       -.15967E-05** at limit **
  13  Prefactor     52.761        75.683       -.21681E-06    .49798E-05
  14  Prefactor     .10000E-03    11.856        .96862E-06** at limit **
  15  norm          .10000E-03    8.3158        .22293E-06** at limit **
  16  norm          9.2133        9.1527       -.33758E-06   -.12808E-04
  17  norm          .10000E-03    4.5448        .14722E-07** at limit **
  18  norm          .10000E-03    8.3714        .24122E-06** at limit **
  19  Prefactor     .10000E-03    4.9880       -.88722E-07** at limit **
  20  Prefactor     56.449        72.211        .14245E-05    .12921E-03
  21  Prefactor     33.936        68.328       -.23389E-05    .62225E-04
  22  norm          .10000E-03    9.6354       -.41018E-06** at limit **
  23  Prefactor     13.455        26.499        .73385E-06    .74473E-04
  24  norm          2.5690        2.1945        .11460E-07    .18925E-03
  25  norm          5.9696        6.4112        .31281E-06    .22312E-03
  26  Prefactor     5.2475        7.9649        .75593E-06    .28933E-03
  27  Prefactor     .10000E-03    57.037       -.25849E-05** at limit **
  28  Prefactor     .10000E-03    25.937        .21572E-05** at limit **
  29  Prefactor     .10000E-03    6.9150        .74450E-06** at limit **
  30  Prefactor     .10000E-03    8.4050        .33782E-05** at limit **
  31  Prefactor     .10000E-03    20.745        .16019E-07** at limit **
  32  Normalizat    .71925        .29203       -.85751E-06    .20516E-03
  33  Prefactor     1.2207        .29033        .30192E-06    .26541E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 50.196
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.9708
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 34.5134
  Prefactor  = 1.08118
  Prefactor  = 19.6954
  Prefactor  = 0.0001
  Prefactor  = 52.7613
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 9.21331
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 56.4486
  Prefactor  = 33.9359
  norm       = 0.0001
  Prefactor  = 13.455
  norm       = 2.56902
  norm       = 5.9696
  Prefactor  = 5.24748
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Normalizat = 0.71925
  Prefactor  = 1.22068
 **********
 **   18 **HESSE 
 **********

 FCN=   2686.242     FROM HESSE     STATUS=OK           683 CALLS     5241 TOTAL
                     EDM=   .98E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     50.196        99.824        .56592E-04   -1.4290    
   2  Prefactor     .10000E-03    13.582        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    63.568        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    14.079        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    5.3542        .11692E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.9708        9.7190        .14759E-02   -1.5427    
   7  Prefactor     .10000E-03    75.212        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    132.07        .41764E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     34.513        40.545        .68229E-04   -1.4532    
  10  Prefactor     1.0812        131.32        .44057E-02   -1.5500    
  11  Prefactor     19.695        15.390        .90254E-04   -1.4820    
  12  Prefactor     .10000E-03    41.358        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     52.761        75.693        .55219E-04   -1.4254    
  14  Prefactor     .10000E-03    11.850        .17416E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    8.3161        .14598E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          9.2133        9.1617        .66020E-03   -1.5101    
  17  norm          .10000E-03    4.5596        .10789E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    8.4022        .14643E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    4.9903        .11299E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     56.449        72.757        .53395E-04   -1.4204    
  21  Prefactor     33.936        68.368        .68818E-04   -1.4542    
  22  norm          .10000E-03    9.8678        .31269E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     13.455        26.468        .10919E-03   -1.4974    
  24  norm          2.5690        2.1856        .64966E-04   -1.5387    
  25  norm          5.9696        6.4026        .12662E-03   -1.5219    
  26  Prefactor     5.2475        7.9459        .16503E-03   -1.5250    
  27  Prefactor     .10000E-03    57.225        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    25.904        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    24.894        .25716E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    18.931        .27569E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .10000E-03    20.747        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    .71925        .35100        .28220E-03   -1.0314    
  33  Prefactor     1.2207        .35535        .24389E-03   -.85697    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.78146e-10
Minuit parameter uncertainties:
  1  100.159
  2  7.65283e-06
  3  1.47242e-05
  4  6.2295e-06
  5  2.09017e-05
  6  8.75518
  7  0.000281239
  8  0.000341003
  9  40.5769
  10  23.884
  11  15.3929
  12  6.30431e-05
  13  75.8319
  14  7.33088e-05
  15  1.69436e-05
  16  9.16314
  17  9.94056e-07
  18  6.26521e-05
  19  1.49443e-05
  20  72.8716
  21  68.5269
  22  1.3388e-05
  23  26.4908
  24  2.18563
  25  6.40335
  26  7.94748
  27  6.0932e-05
  28  0.000132327
  29  0.000257147
  30  0.000214726
  31  7.03934e-06
  32  0.352107
  33  0.356049
Done.

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

Extracting fit parameters...

4FGL J2328.3-4036
   Spectrum: LogParabola
455         norm:  1.000e-04  1.339e-05  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.221e+00  3.560e-01  0.000e+00  1.000e+01 ( 1.000e+00)
588        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
589        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
586   Normalization:  7.192e-01  3.521e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/929992/likelihoodResults_554774401_555033601_4FGL_J2328.3-4036_daily_bin1217.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2686.24238608
delta logL = -0.000483310504478

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2686.24190337
delta logL = -6.02678483119e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .13381E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2707       1.0000          .0000       5.0000    
     3 'Normalizat'    .71937       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2206       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=   2686.242     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      244 TOTAL
                     EDM=   .75E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10009E-03    18.455        .27182E-02** at limit **
   2  alpha         2.1801        3.4705        .50000        .44278E-04
   3  Normalizat    .71925        .30991        .28220E-03   -.23986E-03
   4  Prefactor     1.2207        .34247        .24389E-03   -.33346E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100091
  alpha      = 2.18008
  Normalizat = 0.719251
  Prefactor  = 1.22067
 **********
 **   18 **HESSE 
 **********

 FCN=   2686.242     FROM HESSE     STATUS=OK            25 CALLS      269 TOTAL
                     EDM=   .69E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10009E-03    18.548        .54364E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.1801        3.4699        .20000       -.12832    
   3  Normalizat    .71925        .31019        .56441E-04   -1.0314    
   4  Prefactor     1.2207        .34277        .48778E-04   -.85698    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.88715e-09
Minuit parameter uncertainties:
  1  0.00260323
  2  2.48073
  3  0.310948
  4  0.343398
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/929992': 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) = 2686.24190038
delta logL = 2.38663551499e-06

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
587    Prefactor:  1.221e+00  3.434e-01  0.000e+00  1.000e+01 ( 1.000e+00)
588        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
589        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
586   Normalization:  7.193e-01  3.109e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 352.082 -40.604

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/929992/cmap_HighResolution_554774401_555033601_4FGL_J2328.3-4036_daily_bin1217.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.72e-05', job_status='DONE', photon_flux_upper_limit='1.35e-07', time_completed='2021-09-29 20:45:59.702016', job_id='929992', GAL2='1.22', fit_tolerance='1e-08', EG2='0.72', EG='0.72', time_epoch_completed='1632973559.7', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.22', dlogl='2.39e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.33' WHERE bin_id='1217' AND source_name='4FGL J2328.3-4036' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 20:45:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0264>
Subject: Job 929992: <4FGL_J2328.3-4036_daily_bin1217> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2328.3-4036_daily_bin1217 352.082 -40.6037 554774401 555033601 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 :                                   579.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             305.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   623 sec.
    Turnaround time :                            625 sec.

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

