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


Performing analysis on: 4FGL_J2328.3-4036_daily_bin1580
RA = 352.082, Dec = -40.6037
tmin = 648864001, tmax = 649123201
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='935001', job_status='RUN', time_executed='2021-09-29 20:41:45.304719', time_epoch_executed='1632973305.3' WHERE source_name='4FGL J2328.3-4036' and cadence='daily' and bin_id='1580'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/935001

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/935001/ft1_4FGL_J2328.3-4036_daily_bin1580.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/935001/ft2_4FGL_J2328.3-4036_daily_bin1580.fits


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

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

Done.
real 2.96
user 2.76
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/935001/ft1_filtered_4FGL_J2328.3-4036_daily_bin1580.fits" evtable="EVENTS" scfile=/scratch/kocevski/935001/ft2_4FGL_J2328.3-4036_daily_bin1580.fits sctable="SC_DATA" outfile=/scratch/kocevski/935001/ltcube_648864001_649123201_4FGL_J2328.3-4036_daily_bin1580.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/935001/ft2_4FGL_J2328.3-4036_daily_bin1580.fits
.....................!
real 12.80
user 12.48
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/935001/ft1_filtered_4FGL_J2328.3-4036_daily_bin1580.fits evtable="EVENTS" scfile=/scratch/kocevski/935001/ft2_4FGL_J2328.3-4036_daily_bin1580.fits sctable="SC_DATA" expcube=/scratch/kocevski/935001/ltcube_648864001_649123201_4FGL_J2328.3-4036_daily_bin1580.fits outfile=/scratch/kocevski/935001/expmap_648864001_649123201_4FGL_J2328.3-4036_daily_bin1580.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/935001/ltcube_648864001_649123201_4FGL_J2328.3-4036_daily_bin1580.fits
.....................!
real 191.55
user 186.19
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/935001/ft1_filtered_4FGL_J2328.3-4036_daily_bin1580.fits scfile=/scratch/kocevski/935001/ft2_4FGL_J2328.3-4036_daily_bin1580.fits outfile=/scratch/kocevski/935001/cmap_648864001_649123201_4FGL_J2328.3-4036_daily_bin1580.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/935001/ft1_filtered_4FGL_J2328.3-4036_daily_bin1580.fits scfile=/scratch/kocevski/935001/ft2_4FGL_J2328.3-4036_daily_bin1580.fits outfile=/scratch/kocevski/935001/cmap_HighResolution_648864001_649123201_4FGL_J2328.3-4036_daily_bin1580.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/935001/ft1_filtered_4FGL_J2328.3-4036_daily_bin1580.fits evtable="EVENTS" scfile=/scratch/kocevski/935001/ft2_4FGL_J2328.3-4036_daily_bin1580.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/935001/Model_4FGL_J2328.3-4036_daily_bin1580.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/935001/ft1_filtered_4FGL_J2328.3-4036_daily_bin1580.fits.....................!
real 32.79
user 31.57
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    11.466       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    9.3133       1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.2541       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .22498E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    58.669       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10422E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    49.842       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    42.629       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .30415E-02   1.0000         .10000E-03   10000.    
    15 'norm      '    25.918       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10039E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    16.025       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    1.2963       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10107E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .13825E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    17.042       1.0000         .10000E-03   10000.    
    28 'Prefactor '    48.918       1.0000         .10000E-03   10000.    
    29 'Prefactor '    1.1004       1.0000         .10000E-03   10000.    
    30 'Prefactor '    9.8063       1.0000         .10000E-03   10000.    
    31 'Prefactor '    10.077       1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.0295       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .81320       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=   3725.935     FROM MIGRAD    STATUS=CONVERGED    950 CALLS     4732 TOTAL
                     EDM=   .40E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    12.341       -.61685E-07** at limit **
   2  Prefactor     .10000E-03    19.537        .25781E-06** at limit **
   3  Prefactor     11.473        66.451        .17674E-05    .44956E-04
   4  Prefactor     .10000E-03    13.641       -.27441E-07** at limit **
   5  Prefactor     9.3194        7.1784        .48289E-07    .17334E-04
   6  Prefactor     7.2582        9.6174        .11066E-06   -.59803E-05
   7  Prefactor     .10000E-03    190.01       -.34119E-06** at limit **
   8  Prefactor     58.705        67.359        .31030E-06    .33961E-04
   9  Prefactor     .10000E-03    57.491        .28107E-05** at limit **
  10  Prefactor     49.861        32.812        .20391E-07    .22152E-04
  11  Prefactor     .10000E-03    3.6519        .42979E-07** at limit **
  12  Prefactor     .10000E-03    27.615       -.10046E-06** at limit **
  13  Prefactor     42.722        99.936        .63484E-06    .27430E-04
  14  Prefactor     .38691        17.527        .14583E-05   -.22182E-03
  15  norm          25.916        19.796        .42607E-07    .34133E-05
  16  norm          .10000E-03    3.1297       -.47910E-07** at limit **
  17  norm          .10000E-03    6.6472        .52484E-06** at limit **
  18  norm          .10000E-03    20.702       -.44991E-06** at limit **
  19  Prefactor     .10000E-03    5.7882       -.43857E-06** at limit **
  20  Prefactor     16.156        64.258        .58707E-05    .27159E-04
  21  Prefactor     .10000E-03    37.939       -.26695E-06** at limit **
  22  norm          1.2920        8.0045       -.17945E-05   -.11269E-03
  23  Prefactor     .10000E-03    12.107       -.59034E-06** at limit **
  24  norm          .10000E-03    .51002       -.21540E-06** at limit **
  25  norm          .10000E-03    4.7394       -.77677E-06** at limit **
  26  Prefactor     .10000E-03    3.7013       -.16725E-05** at limit **
  27  Prefactor     17.024        20.463        .19005E-05    .27226E-03
  28  Prefactor     48.936        45.039       -.70567E-08    .12752E-04
  29  Prefactor     1.1060        7.8769        .19285E-05   -.29942E-04
  30  Prefactor     9.8129        6.3756        .13148E-06    .13463E-03
  31  Prefactor     10.098        35.462       -.80407E-06   -.41177E-05
  32  Normalizat    1.0294        .23401       -.42196E-06    .17714E-03
  33  Prefactor     .81238        .23922        .90142E-06    .52171E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.4734
  Prefactor  = 0.0001
  Prefactor  = 9.31937
  Prefactor  = 7.25823
  Prefactor  = 0.0001
  Prefactor  = 58.7051
  Prefactor  = 0.0001
  Prefactor  = 49.861
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 42.7218
  Prefactor  = 0.386911
  norm       = 25.9157
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.1561
  Prefactor  = 0.0001
  norm       = 1.29198
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 17.0236
  Prefactor  = 48.9364
  Prefactor  = 1.10603
  Prefactor  = 9.81287
  Prefactor  = 10.0984
  Normalizat = 1.0294
  Prefactor  = 0.812383
 **********
 **   18 **HESSE 
 **********

 FCN=   3725.935     FROM HESSE     STATUS=OK           695 CALLS     5427 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    12.342        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    19.552        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     11.473        66.537        .11831E-03   -1.5030    
   4  Prefactor     .10000E-03    13.654        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     9.3194        7.2206        .13132E-03   -1.5097    
   6  Prefactor     7.2582        9.6098        .14892E-03   -1.5169    
   7  Prefactor     .10000E-03    190.97        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     58.705        67.227        .26189E-03   -1.4174    
   9  Prefactor     .10000E-03    57.303        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     49.861        32.856        .56803E-04   -1.4295    
  11  Prefactor     .10000E-03    3.6531        .11392E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    27.623        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     42.722        99.700        .30700E-03   -1.4400    
  14  Prefactor     .38691        185.71        .47207E-02   -1.5584    
  15  norm          25.916        19.789        .78687E-04   -1.4689    
  16  norm          .10000E-03    3.1316        .10544E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    6.6939        .15266E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    21.037        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    5.8626        .14332E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     16.156        60.904        .10005E-03   -1.4904    
  21  Prefactor     .10000E-03    38.011        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          1.2920        6.9609        .23587E-03   -1.5481    
  23  Prefactor     .10000E-03    12.177        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    .52482        .84874E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    4.9177        .25821E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    6.5133        .20741E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     17.024        20.540        .97020E-04   -1.4883    
  28  Prefactor     48.936        45.032        .28667E-03   -1.4308    
  29  Prefactor     1.1060        7.5618        .30648E-03   -1.5498    
  30  Prefactor     9.8129        6.3858        .11346E-03   -1.5081    
  31  Prefactor     10.098        35.309        .12623E-03   -1.5072    
  32  Normalizat    1.0294        .27815        .22470E-03   -.92052    
  33  Prefactor     .81238        .28519        .27503E-03   -.99273    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.67763e-09
Minuit parameter uncertainties:
  1  8.20198e-07
  2  2.56915e-05
  3  55.3527
  4  4.47297e-06
  5  7.22124
  6  9.61185
  7  0.000148901
  8  67.3137
  9  6.38179e-05
  10  32.868
  11  1.75497e-06
  12  2.0275e-06
  13  100.092
  14  17.0045
  15  19.7939
  16  2.9895e-06
  17  2.61259e-05
  18  3.34295e-05
  19  8.23298e-06
  20  61.1402
  21  2.19752e-05
  22  5.99864
  23  1.63088e-05
  24  8.86822e-07
  25  3.61254e-06
  26  0.000208729
  27  20.5482
  28  45.0638
  29  5.78475
  30  6.38628
  31  35.3821
  32  0.278548
  33  0.285708
Done.

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

Extracting fit parameters...

4FGL J2328.3-4036
   Spectrum: LogParabola
455         norm:  1.292e+00  5.999e+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.124e-01  2.857e-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.029e+00  2.785e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/935001/likelihoodResults_648864001_649123201_4FGL_J2328.3-4036_daily_bin1580.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) = 3725.87499777
delta logL = 0.0598006742725

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3725.87458594
delta logL = 0.0602125064129

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.3195       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.8764       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0189       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81681       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=   3725.875     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      225 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.3245        136.71        .95786E-02    .39955E-03
   2  alpha         2.8806        2.7999        .41757        .12860E-04
   3  Normalizat    1.0185        .50487E-01    .43520E-01   -.21883E-04
   4  Prefactor     .81716        .56321E-01    .43936E-01   -.17946E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.32448
  alpha      = 2.88057
  Normalizat = 1.01851
  Prefactor  = 0.817156
 **********
 **   18 **HESSE 
 **********

 FCN=   3725.875     FROM HESSE     STATUS=OK            33 CALLS      258 TOTAL
                     EDM=   .18E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.3245        4.0080        .15699E-03   -1.5478    
   2  alpha         2.8806        1.5539        .24766E-01    .15282    
   3  Normalizat    1.0185        .25080        .22575E-03   -.92413    
   4  Prefactor     .81716        .27371        .27425E-03   -.99099    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.80197e-11
Minuit parameter uncertainties:
  1  4.00877
  2  1.68046
  3  0.251093
  4  0.274171
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/935001': 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) = 3725.87457642
delta logL = 0.0602220309129

Extracting fit parameters...

4FGL J2328.3-4036
   Spectrum: LogParabola
455         norm:  1.324e+00  4.009e+00  1.000e-04  1.000e+04 ( 1.000e-12)
456        alpha:  2.881e+00  1.680e+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:  8.172e-01  2.742e-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.019e+00  2.511e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.09
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/935001/cmap_HighResolution_648864001_649123201_4FGL_J2328.3-4036_daily_bin1580.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.72e-05', job_status='DONE', photon_flux_upper_limit='1.06e-07', time_completed='2021-09-29 20:53:23.085687', job_id='935001', GAL2='0.82', fit_tolerance='1e-08', EG2='1.02', EG='1.03', time_epoch_completed='1632974003.09', return_code2='0', ts='0.09', comment='SUCCESS', return_code='0', GAL='0.81', dlogl='6.02e-02', ts2='0.21', photon_index_error='0.00', photon_index='2.33' WHERE bin_id='1580' AND source_name='4FGL J2328.3-4036' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 20:53:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0171>
Subject: Job 935001: <4FGL_J2328.3-4036_daily_bin1580> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2328.3-4036_daily_bin1580 352.082 -40.6037 648864001 649123201 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 :                                   690.16 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             278.13 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   757 sec.
    Turnaround time :                            760 sec.

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

