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


Performing analysis on: 4FGL_J2328.3-4036_daily_bin1022
RA = 352.082, Dec = -40.6037
tmin = 504230401, tmax = 504489601
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='925685', job_status='RUN', time_executed='2021-09-29 20:32:32.515853', time_epoch_executed='1632972752.52' WHERE source_name='4FGL J2328.3-4036' and cadence='daily' and bin_id='1022'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/925685

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/925685/ft1_4FGL_J2328.3-4036_daily_bin1022.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/925685/ft2_4FGL_J2328.3-4036_daily_bin1022.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/925685/ft1_4FGL_J2328.3-4036_daily_bin1022.fits outfile=/scratch/kocevski/925685/ft1_filteredMKT_4FGL_J2328.3-4036_daily_bin1022.fits ra=352.082 dec=-40.6037 rad=12.0 tmin=504230401.0 tmax=504489601.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.58
user 3.36
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/925685/ft1_filtered_4FGL_J2328.3-4036_daily_bin1022.fits" evtable="EVENTS" scfile=/scratch/kocevski/925685/ft2_4FGL_J2328.3-4036_daily_bin1022.fits sctable="SC_DATA" outfile=/scratch/kocevski/925685/ltcube_504230401_504489601_4FGL_J2328.3-4036_daily_bin1022.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/925685/ft2_4FGL_J2328.3-4036_daily_bin1022.fits
.....................!
real 14.36
user 13.99
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/925685/ft1_filtered_4FGL_J2328.3-4036_daily_bin1022.fits evtable="EVENTS" scfile=/scratch/kocevski/925685/ft2_4FGL_J2328.3-4036_daily_bin1022.fits sctable="SC_DATA" expcube=/scratch/kocevski/925685/ltcube_504230401_504489601_4FGL_J2328.3-4036_daily_bin1022.fits outfile=/scratch/kocevski/925685/expmap_504230401_504489601_4FGL_J2328.3-4036_daily_bin1022.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/925685/ltcube_504230401_504489601_4FGL_J2328.3-4036_daily_bin1022.fits
.....................!
real 190.95
user 185.45
sys 5.19

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/925685/ft1_filtered_4FGL_J2328.3-4036_daily_bin1022.fits scfile=/scratch/kocevski/925685/ft2_4FGL_J2328.3-4036_daily_bin1022.fits outfile=/scratch/kocevski/925685/cmap_504230401_504489601_4FGL_J2328.3-4036_daily_bin1022.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.52
user 0.36
sys 0.15

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

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

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/925685/ft1_filtered_4FGL_J2328.3-4036_daily_bin1022.fits evtable="EVENTS" scfile=/scratch/kocevski/925685/ft2_4FGL_J2328.3-4036_daily_bin1022.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/925685/Model_4FGL_J2328.3-4036_daily_bin1022.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/925685/ft1_filtered_4FGL_J2328.3-4036_daily_bin1022.fits.....................!
real 38.89
user 37.29
sys 1.27

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10070E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    22.490       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.5347       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .49140E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    10.122       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .37750       1.0000         .10000E-03   10000.    
    10 'Prefactor '    33.553       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    42.147       1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.7248       1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.7236       1.0000         .10000E-03   10000.    
    15 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    9.9379       1.0000         .10000E-03   10000.    
    18 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10905E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    64.203       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10169E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    48.056       1.0000         .10000E-03   10000.    
    24 'norm      '    .10274E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10412E-02   1.0000         .10000E-03   10000.    
    26 'Prefactor '    1.5949       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10084E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    3.5367       1.0000         .10000E-03   10000.    
    29 'Prefactor '    10.818       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10291E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.0733       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .95298       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=   4739.381     FROM MIGRAD    STATUS=CONVERGED    886 CALLS     5469 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    67.322        .89161E-06** at limit **
   2  Prefactor     22.507        28.432        .11657E-06    .29622E-04
   3  Prefactor     .10000E-03    16.082       -.63856E-08** at limit **
   4  Prefactor     3.4625        51.631        .17769E-04    .93363E-04
   5  Prefactor     .10001E-03    5.2362       -.26467E-05** at limit **
   6  Prefactor     10.122        6.0460       -.16532E-07   -.12575E-03
   7  Prefactor     .10000E-03    18.472        .26002E-06** at limit **
   8  Prefactor     .10000E-03    10.380        .84665E-07** at limit **
   9  Prefactor     .38305        21.238        .10476E-05   -.12972E-03
  10  Prefactor     33.556        17.125       -.36220E-08   -.20022E-04
  11  Prefactor     .10000E-03    15.323        .83298E-07** at limit **
  12  Prefactor     42.119        48.232       -.30582E-06   -.63117E-04
  13  Prefactor     6.7486        222.73        .90480E-06    .88169E-05
  14  Prefactor     3.7368        29.823        .31293E-06   -.11192E-05
  15  norm          .10000E-03    6.7111        .33339E-07** at limit **
  16  norm          .10000E-03    2.2073       -.61375E-08** at limit **
  17  norm          9.9363        6.2577       -.21300E-08   -.27621E-03
  18  norm          .10000E-03    3.1510        .66894E-07** at limit **
  19  Prefactor     .10000E-03    14.971       -.67117E-07** at limit **
  20  Prefactor     64.201        46.294        .51585E-07   -.36174E-03
  21  Prefactor     .10000E-03    25.911       -.48580E-07** at limit **
  22  norm          .10007E-03    2.8944        .87442E-06** at limit **
  23  Prefactor     48.082        24.241       -.55747E-06    .52544E-04
  24  norm          .10000E-03    .63221       -.22879E-07** at limit **
  25  norm          .14956E-02    2.4788        .78308E-06** at limit **
  26  Prefactor     1.5957        3.6876        .36546E-06   -.51059E-04
  27  Prefactor     .10000E-03    49.495       -.19712E-06** at limit **
  28  Prefactor     3.4745        217.82       -.38392E-05   -.30488E-04
  29  Prefactor     10.821        8.4915       -.14797E-07    .25498E-04
  30  Prefactor     .10000E-03    3.4540        .30274E-06** at limit **
  31  Prefactor     .10000E-03    52.454       -.89887E-06** at limit **
  32  Normalizat    1.0729        .23856        .55847E-06   -.11467E-03
  33  Prefactor     .95341        .24227       -.11675E-05   -.48251E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 22.5074
  Prefactor  = 0.0001
  Prefactor  = 3.46248
  Prefactor  = 0.000100009
  Prefactor  = 10.1217
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.383055
  Prefactor  = 33.5559
  Prefactor  = 0.0001
  Prefactor  = 42.1193
  Prefactor  = 6.7486
  Prefactor  = 3.73681
  norm       = 0.0001
  norm       = 0.0001
  norm       = 9.93635
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 64.2013
  Prefactor  = 0.0001
  norm       = 0.000100066
  Prefactor  = 48.0816
  norm       = 0.0001
  norm       = 0.00149559
  Prefactor  = 1.59572
  Prefactor  = 0.0001
  Prefactor  = 3.47449
  Prefactor  = 10.821
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.07289
  Prefactor  = 0.953415
 **********
 **   18 **HESSE 
 **********

 FCN=   4739.381     FROM HESSE     STATUS=OK           721 CALLS     6190 TOTAL
                     EDM=   .74E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    67.502        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     22.507        28.400        .84463E-04   -1.4759    
   3  Prefactor     .10000E-03    16.082        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     3.4625        83.418        .21501E-03   -1.5336    
   5  Prefactor     .10001E-03    11.296        .50052E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     10.122        6.0460        .12465E-03   -1.5072    
   7  Prefactor     .10000E-03    18.459        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    10.388        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .38305        25.441        .94136E-01   -1.5584    
  10  Prefactor     33.556        17.136        .69179E-04   -1.4549    
  11  Prefactor     .10000E-03    15.840        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     42.119        48.192        .61748E-04   -1.4409    
  13  Prefactor     6.7486        221.29        .15473E-03   -1.5188    
  14  Prefactor     3.7368        28.608        .20926E-03   -1.5321    
  15  norm          .10000E-03    6.7162        .17418E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    2.2075        .99888E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          9.9363        6.2472        .12711E-03   -1.5077    
  18  norm          .10000E-03    3.1554        .11934E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    15.078        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     64.201        43.935        .50083E-04   -1.4104    
  21  Prefactor     .10000E-03    25.930        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10007E-03    12.991        .20711E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     48.082        23.795        .57844E-04   -1.4320    
  24  norm          .10000E-03    .97899        .10149E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .14956E-02    4.7396        .36761E-01   -1.5700    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     1.5957        3.6413        .19079E-03   -1.5455    
  27  Prefactor     .10000E-03    49.853        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     3.4745        219.05        .21494E-03   -1.5335    
  29  Prefactor     10.821        8.5237        .12181E-03   -1.5050    
  30  Prefactor     .10000E-03    3.4877        .12442E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .10000E-03    52.471        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    1.0729        .28934        .24319E-03   -.90627    
  33  Prefactor     .95341        .29160        .27939E-03   -.94299    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.39084e-09
Minuit parameter uncertainties:
  1  0.000417075
  2  28.417
  3  2.40232e-05
  4  34.043
  5  0.00065166
  6  6.04635
  7  0.000124087
  8  9.17597e-06
  9  6.24547
  10  17.1385
  11  3.95887e-05
  12  48.2363
  13  77.6024
  14  20.6923
  15  2.30319e-06
  16  4.90778e-07
  17  6.24761
  18  2.34975e-06
  19  1.07145e-05
  20  43.9573
  21  6.33172e-05
  22  0.00185897
  23  23.7993
  24  9.05211e-06
  25  0.162672
  26  3.64182
  27  0.000200045
  28  55.3886
  29  8.5247
  30  1.27146e-05
  31  9.23629e-05
  32  0.289764
  33  0.292078
Done.

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

Extracting fit parameters...

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

EG_v02
   Spectrum: FileFunction
586   Normalization:  1.073e+00  2.898e-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: 7.64e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.67e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/925685/likelihoodResults_504230401_504489601_4FGL_J2328.3-4036_daily_bin1022.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) = 4739.38091582
delta logL = -0.00036735181493

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4739.38054942
delta logL = -9.55881660047e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3670       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0725       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95384       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   4739.381     FROM MIGRAD    STATUS=FAILED        96 CALLS      259 TOTAL
                     EDM=   .24E-06    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10480E-03    23.797        .20308E-02** at limit **
   2  alpha         2.7724        3.8839        .16490       -.17755E-05
   3  Normalizat    1.0729        .26117        .24319E-03   -.27842E-03
   4  Prefactor     .95342        .28587        .27939E-03   -.18494E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   4739.381     FROM SIMPLEX   STATUS=UNCHANGED    112 CALLS      371 TOTAL
                     EDM=   .10E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10480E-03    23.797        .53137E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.7724        3.8839        .85010E-03    .10919    
   3  Normalizat    1.0729        .26117        .95512E-04   -.90627    
   4  Prefactor     .95342        .28587        .12876E-03   -.94299    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4739.381     FROM MIGRAD    STATUS=CONVERGED      6 CALLS      377 TOTAL
                     EDM=   .19E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    19.201       -.25654E-05** at limit **
   2  alpha         2.8808        2.5021        .34226E-01   -.10767E-06
   3  Normalizat    1.0729        .26111        .65034E-06   -.29585E-06
   4  Prefactor     .95341        .28586       -.25944E-06   -.78476E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100001
  alpha      = 2.88078
  Normalizat = 1.07289
  Prefactor  = 0.953414
 **********
 **   18 **HESSE 
 **********

 FCN=   4739.381     FROM HESSE     STATUS=OK            27 CALLS      404 TOTAL
                     EDM=   .46E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    19.594        .81232E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.8808        3.5410        .65961E-01    .15291    
   3  Normalizat    1.0729        .26147        .48637E-04   -.90627    
   4  Prefactor     .95341        .28623        .11176E-04   -.94299    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.58541e-10
Minuit parameter uncertainties:
  1  0.000294628
  2  461.81
  3  0.261787
  4  0.286688
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/925685': 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) = 4739.38054721
delta logL = 1.26030954561e-06

Extracting fit parameters...

4FGL J2328.3-4036
   Spectrum: LogParabola
455         norm:  1.000e-04  2.946e-04  1.000e-04  1.000e+04 ( 1.000e-12)
456        alpha:  2.881e+00  4.618e+02  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:  9.534e-01  2.867e-01  0.000e+00  1.000e+01 ( 1.000e+00)
588        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
589        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
586   Normalization:  1.073e+00  2.618e-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/925685/cmap_HighResolution_504230401_504489601_4FGL_J2328.3-4036_daily_bin1022.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.67e-05', job_status='DONE', photon_flux_upper_limit='7.64e-08', time_completed='2021-09-29 20:46:56.006354', job_id='925685', GAL2='0.95', fit_tolerance='1e-08', EG2='1.07', EG='1.07', time_epoch_completed='1632973616.01', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.95', dlogl='1.26e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.33' WHERE bin_id='1022' AND source_name='4FGL J2328.3-4036' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 20:46:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0015>
Subject: Job 925685: <4FGL_J2328.3-4036_daily_bin1022> in cluster <slac> Done

Job <4FGL_J2328.3-4036_daily_bin1022> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep 29 20:30:55 2021
Job was executed on host(s) <bullet0015>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 20:30:56 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 20:30:56 2021
Terminated at Wed Sep 29 20:46:56 2021
Results reported at Wed Sep 29 20:46:56 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2328.3-4036_daily_bin1022 352.082 -40.6037 504230401 504489601 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 :                                   861.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             299.53 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   960 sec.
    Turnaround time :                            961 sec.

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

