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


Performing analysis on: 4FGL_J2328.3-4036_daily_bin1048
RA = 352.082, Dec = -40.6037
tmin = 510969601, tmax = 511228801
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='929472', job_status='RUN', time_executed='2021-09-29 20:36:41.480339', time_epoch_executed='1632973001.48' WHERE source_name='4FGL J2328.3-4036' and cadence='daily' and bin_id='1048'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/929472

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/929472/ft1_4FGL_J2328.3-4036_daily_bin1048.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/929472/ft2_4FGL_J2328.3-4036_daily_bin1048.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/929472/ft1_4FGL_J2328.3-4036_daily_bin1048.fits outfile=/scratch/kocevski/929472/ft1_filteredMKT_4FGL_J2328.3-4036_daily_bin1048.fits ra=352.082 dec=-40.6037 rad=12.0 tmin=510969601.0 tmax=511228801.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.43
user 3.23
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/929472/ft1_filtered_4FGL_J2328.3-4036_daily_bin1048.fits" evtable="EVENTS" scfile=/scratch/kocevski/929472/ft2_4FGL_J2328.3-4036_daily_bin1048.fits sctable="SC_DATA" outfile=/scratch/kocevski/929472/ltcube_510969601_511228801_4FGL_J2328.3-4036_daily_bin1048.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/929472/ft2_4FGL_J2328.3-4036_daily_bin1048.fits
.....................!
real 12.09
user 11.77
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/929472/ft1_filtered_4FGL_J2328.3-4036_daily_bin1048.fits evtable="EVENTS" scfile=/scratch/kocevski/929472/ft2_4FGL_J2328.3-4036_daily_bin1048.fits sctable="SC_DATA" expcube=/scratch/kocevski/929472/ltcube_510969601_511228801_4FGL_J2328.3-4036_daily_bin1048.fits outfile=/scratch/kocevski/929472/expmap_510969601_511228801_4FGL_J2328.3-4036_daily_bin1048.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/929472/ltcube_510969601_511228801_4FGL_J2328.3-4036_daily_bin1048.fits
.....................!
real 189.80
user 185.59
sys 3.87

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/929472/ft1_filtered_4FGL_J2328.3-4036_daily_bin1048.fits scfile=/scratch/kocevski/929472/ft2_4FGL_J2328.3-4036_daily_bin1048.fits outfile=/scratch/kocevski/929472/cmap_510969601_511228801_4FGL_J2328.3-4036_daily_bin1048.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/929472/ft1_filtered_4FGL_J2328.3-4036_daily_bin1048.fits scfile=/scratch/kocevski/929472/ft2_4FGL_J2328.3-4036_daily_bin1048.fits outfile=/scratch/kocevski/929472/cmap_HighResolution_510969601_511228801_4FGL_J2328.3-4036_daily_bin1048.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/929472/ft1_filtered_4FGL_J2328.3-4036_daily_bin1048.fits evtable="EVENTS" scfile=/scratch/kocevski/929472/ft2_4FGL_J2328.3-4036_daily_bin1048.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/929472/Model_4FGL_J2328.3-4036_daily_bin1048.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/929472/ft1_filtered_4FGL_J2328.3-4036_daily_bin1048.fits.....................!
real 49.30
user 48.07
sys 1.13

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.3472       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10084E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    26.505       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10325E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.3185       1.0000         .10000E-03   10000.    
    12 'Prefactor '    19.666       1.0000         .10000E-03   10000.    
    13 'Prefactor '    24.682       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10065E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    6.6197       1.0000         .10000E-03   10000.    
    19 'Prefactor '    7.5085       1.0000         .10000E-03   10000.    
    20 'Prefactor '    43.244       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10491E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    8.0634       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .13449E-02   1.0000         .10000E-03   10000.    
    24 'norm      '    .39684       1.0000         .10000E-03   10000.    
    25 'norm      '    .14431E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    1.2916       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .23835E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    .97236       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .94255       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=   7184.849     FROM MIGRAD    STATUS=CONVERGED    915 CALLS     4650 TOTAL
                     EDM=   .47E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    59.252        .39354E-06** at limit **
   2  Prefactor     .10000E-03    14.460        .52292E-07** at limit **
   3  Prefactor     .10000E-03    42.198       -.40827E-06** at limit **
   4  Prefactor     .10000E-03    7.4005        .27124E-07** at limit **
   5  Prefactor     .10000E-03    3.4951        .40525E-07** at limit **
   6  Prefactor     2.3478        3.5808        .55751E-06    .51294E-06
   7  Prefactor     .10000E-03    35.813        .57465E-06** at limit **
   8  Prefactor     26.506        18.028        .71758E-07   -.94372E-05
   9  Prefactor     .10000E-03    8.2852        .25196E-07** at limit **
  10  Prefactor     .10000E-03    11.191        .14049E-06** at limit **
  11  Prefactor     4.3191        4.1428       -.89278E-08   -.53029E-05
  12  Prefactor     19.695        36.283       -.15637E-06   -.47665E-04
  13  Prefactor     24.824        50.557        .78016E-06    .33558E-04
  14  Prefactor     .10000E-03    5.5553        .28851E-08** at limit **
  15  norm          .10000E-03    12.954        .13200E-06** at limit **
  16  norm          .10000E-03    1.5818        .45871E-07** at limit **
  17  norm          .10000E-03    1.7043       -.56496E-07** at limit **
  18  norm          6.6202        5.6326        .75429E-07    .50643E-04
  19  Prefactor     7.5109        5.4573       -.10699E-05    .56495E-04
  20  Prefactor     43.259        32.008       -.70547E-07   -.18652E-04
  21  Prefactor     .10000E-03    41.254       -.44371E-06** at limit **
  22  norm          8.0574        4.4071        .11543E-06    .15505E-03
  23  Prefactor     .10006E-03    5.9012       -.14678E-06** at limit **
  24  norm          .39632        .81482        .35663E-06    .64091E-03
  25  norm          .10005E-03    1.6134       -.21839E-06** at limit **
  26  Prefactor     1.2940        3.1012        .42960E-06   -.66453E-04
  27  Prefactor     .10000E-03    11.778       -.16392E-06** at limit **
  28  Prefactor     .10000E-03    9.9229        .74904E-07** at limit **
  29  Prefactor     .10001E-03    1.7701       -.19334E-06** at limit **
  30  Prefactor     .10000E-03    1.5904        .36219E-08** at limit **
  31  Prefactor     .10000E-03    13.029        .39982E-07** at limit **
  32  Normalizat    .97217        .14972       -.46277E-06    .35365E-05
  33  Prefactor     .94261        .16833       -.38510E-06    .30964E-08
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.34782
  Prefactor  = 0.000100001
  Prefactor  = 26.5063
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.31909
  Prefactor  = 19.6954
  Prefactor  = 24.8244
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 6.62023
  Prefactor  = 7.51089
  Prefactor  = 43.259
  Prefactor  = 0.0001
  norm       = 8.05736
  Prefactor  = 0.000100062
  norm       = 0.396325
  norm       = 0.000100045
  Prefactor  = 1.29403
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100008
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.972168
  Prefactor  = 0.942608
 **********
 **   18 **HESSE 
 **********

 FCN=   7184.849     FROM HESSE     STATUS=OK           697 CALLS     5347 TOTAL
                     EDM=   .51E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    59.733        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    14.564        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    42.274        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    7.4085        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    3.6312        .30946E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     2.3478        3.5459        .18831E-03   -1.5402    
   7  Prefactor     .10000E-03    35.874        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     26.506        18.032        .77813E-04   -1.4678    
   9  Prefactor     .10000E-03    8.3073        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    11.453        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     4.3191        4.1450        .16382E-03   -1.5292    
  12  Prefactor     19.695        36.259        .90318E-04   -1.4820    
  13  Prefactor     24.824        50.506        .80631E-04   -1.4711    
  14  Prefactor     .10000E-03    5.5885        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    13.170        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    1.5823        .10411E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    1.7083        .10800E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          6.6202        5.6342        .15597E-03   -1.5193    
  19  Prefactor     7.5109        5.3779        .14636E-03   -1.5160    
  20  Prefactor     43.259        31.832        .60963E-04   -1.4392    
  21  Prefactor     .10000E-03    41.991        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          8.0574        4.3796        .10913E-03   -1.5140    
  23  Prefactor     .10006E-03    25.519        .37265E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .39632        .75746        .10094E-02   -1.5582    
  25  norm          .10005E-03    23.072        .20106E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     1.2940        2.9981        .21317E-03   -1.5480    
  27  Prefactor     .10000E-03    11.804        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    9.9292        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10001E-03    11.566        .21683E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    1.6169        .10433E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .10000E-03    13.094        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    .97217        .17931        .22120E-03   -.93969    
  33  Prefactor     .94261        .20144        .25584E-03   -.94668    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.11896e-09
Minuit parameter uncertainties:
  1  0.000221645
  2  2.66249e-05
  3  0.000214592
  4  5.96899e-06
  5  4.813e-06
  6  3.54626
  7  0.000277577
  8  18.0353
  9  4.53378e-06
  10  1.29953e-06
  11  4.14525
  12  36.2994
  13  50.5927
  14  4.19449e-06
  15  3.25717e-05
  16  1.35239e-06
  17  9.12045e-08
  18  5.6346
  19  5.37825
  20  31.8444
  21  0.000152222
  22  4.37975
  23  0.00252407
  24  0.757476
  25  0.00204807
  26  2.99848
  27  2.49124e-05
  28  2.2804e-05
  29  0.00059201
  30  2.4372e-06
  31  1.23526e-05
  32  0.179422
  33  0.201602
Done.

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

Extracting fit parameters...

4FGL J2328.3-4036
   Spectrum: LogParabola
455         norm:  8.057e+00  4.380e+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:  9.426e-01  2.016e-01  0.000e+00  1.000e+01 ( 1.000e+00)
588        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
589        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
586   Normalization:  9.722e-01  1.794e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 16.69
Ra Dec: 352.082 -40.604
Photon Index (Fixed Index): 2.33 +/- 0.00
Photon Flux (Fixed Index): 6.09e-08 +/- 3.31e-08
Energy Flux (Fixed Index): 2.13e-05 +/- 1.16e-05

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7182.92737487
delta logL = 1.92174460749

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7182.78276303
delta logL = 2.06635645008

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.0913       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.3127       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0074       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92872       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=   7182.783     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      215 TOTAL
                     EDM=   .65E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.0892        3.4222        .44548E-02   -.87842E-04
   2  alpha         1.3125        .33002        .27272       -.48730E-04
   3  Normalizat    1.0073        .14583        .46259E-01    .93585E-05
   4  Prefactor     .92871        .16722        .45370E-01    .15668E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 5.0892
  alpha      = 1.31247
  Normalizat = 1.00734
  Prefactor  = 0.928712
 **********
 **   18 **HESSE 
 **********

 FCN=   7182.783     FROM HESSE     STATUS=OK            33 CALLS      248 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.0892        5.1078        .11344E-03   -1.5257    
   2  alpha         1.3125        .52417        .11274E-01   -.49498    
   3  Normalizat    1.0073        .17514        .21818E-03   -.92785    
   4  Prefactor     .92871        .20100        .25806E-03   -.95145    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.19843e-09
Minuit parameter uncertainties:
  1  5.10826
  2  0.529257
  3  0.175238
  4  0.201164
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/929472': 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) = 7182.78276289
delta logL = 2.06635658648

Extracting fit parameters...

4FGL J2328.3-4036
   Spectrum: LogParabola
455         norm:  5.089e+00  5.108e+00  1.000e-04  1.000e+04 ( 1.000e-12)
456        alpha:  1.312e+00  5.293e-01  0.000e+00  5.000e+00 ( 1.000e+00)
457         beta:  7.057e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
458           Eb:  7.709e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
587    Prefactor:  9.287e-01  2.012e-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.007e+00  1.752e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 20.93
Ra Dec: 352.082 -40.604
Photon Index (Free Index): 1.31 +/- 0.53
Photon Flux (Free Index): 1.74e-08 +/- 1.77e-08
Energy Flux (Free Index): 5.32e-05 +/- 4.87e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/929472/cmap_HighResolution_510969601_511228801_4FGL_J2328.3-4036_daily_bin1048.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.09e-08', energy_flux2='5.32e-05', photon_flux_error='3.31e-08', dlogl='2.07e+00', energy_flux='2.13e-05', photon_flux2='1.74e-08', job_status='DONE', time_completed='2021-09-29 20:51:51.190950', photon_index_error2='0.53', photon_index2='1.31', ts='16.69', fit_tolerance='1e-08', GAL='0.94', photon_index_error='0.00', energy_flux_error2='4.87e-05', EG='0.97', time_epoch_completed='1632973911.19', return_code='0', job_id='929472', GAL2='0.93', EG2='1.01', return_code2='0', energy_flux_error='1.16e-05', photon_flux_error2='1.77e-08', ts2='20.93', photon_index='2.33' WHERE bin_id='1048' AND source_name='4FGL J2328.3-4036' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 20:51:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0107>
Subject: Job 929472: <4FGL_J2328.3-4036_daily_bin1048> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2328.3-4036_daily_bin1048 352.082 -40.6037 510969601 511228801 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 :                                   906.34 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             277.82 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   997 sec.
    Turnaround time :                            998 sec.

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

