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


Performing analysis on: 4FGL_J2328.3-4036_daily_bin595
RA = 352.082, Dec = -40.6037
tmin = 393552001, tmax = 393811201
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='922640', job_status='RUN', time_executed='2021-09-29 20:25:54.643598', time_epoch_executed='1632972354.64' WHERE source_name='4FGL J2328.3-4036' and cadence='daily' and bin_id='595'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/922640

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/922640/ft1_4FGL_J2328.3-4036_daily_bin595.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/922640/ft2_4FGL_J2328.3-4036_daily_bin595.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/922640/ft1_4FGL_J2328.3-4036_daily_bin595.fits outfile=/scratch/kocevski/922640/ft1_filteredMKT_4FGL_J2328.3-4036_daily_bin595.fits ra=352.082 dec=-40.6037 rad=12.0 tmin=393552001.0 tmax=393811201.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.48
user 3.27
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/922640/ft1_filtered_4FGL_J2328.3-4036_daily_bin595.fits" evtable="EVENTS" scfile=/scratch/kocevski/922640/ft2_4FGL_J2328.3-4036_daily_bin595.fits sctable="SC_DATA" outfile=/scratch/kocevski/922640/ltcube_393552001_393811201_4FGL_J2328.3-4036_daily_bin595.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/922640/ft2_4FGL_J2328.3-4036_daily_bin595.fits
.....................!
real 12.13
user 11.76
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/922640/ft1_filtered_4FGL_J2328.3-4036_daily_bin595.fits evtable="EVENTS" scfile=/scratch/kocevski/922640/ft2_4FGL_J2328.3-4036_daily_bin595.fits sctable="SC_DATA" expcube=/scratch/kocevski/922640/ltcube_393552001_393811201_4FGL_J2328.3-4036_daily_bin595.fits outfile=/scratch/kocevski/922640/expmap_393552001_393811201_4FGL_J2328.3-4036_daily_bin595.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/922640/ltcube_393552001_393811201_4FGL_J2328.3-4036_daily_bin595.fits
.....................!
real 190.28
user 185.24
sys 4.65

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/922640/ft1_filtered_4FGL_J2328.3-4036_daily_bin595.fits scfile=/scratch/kocevski/922640/ft2_4FGL_J2328.3-4036_daily_bin595.fits outfile=/scratch/kocevski/922640/cmap_393552001_393811201_4FGL_J2328.3-4036_daily_bin595.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.54
user 0.38
sys 0.14

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

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

This is gtbin version HEAD
real 0.55
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/922640/ft1_filtered_4FGL_J2328.3-4036_daily_bin595.fits evtable="EVENTS" scfile=/scratch/kocevski/922640/ft2_4FGL_J2328.3-4036_daily_bin595.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/922640/Model_4FGL_J2328.3-4036_daily_bin595.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/922640/ft1_filtered_4FGL_J2328.3-4036_daily_bin595.fits.....................!
real 40.98
user 39.57
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10006E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    20.041       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    48.594       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    10.775       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.3775       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    1.0457       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    19.860       1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.4298       1.0000         .10000E-03   10000.    
    20 'Prefactor '    32.014       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10444E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10986E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    6.0113       1.0000         .10000E-03   10000.    
    25 'norm      '    .63776       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .15834E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    2.1545       1.0000         .10000E-03   10000.    
    28 'Prefactor '    189.92       1.0000         .10000E-03   10000.    
    29 'Prefactor '    4.1684       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    91.945       1.0000         .10000E-03   10000.    
    32 'Normalizat'    .96890       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .89062       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=   5266.126     FROM MIGRAD    STATUS=CONVERGED    882 CALLS     4630 TOTAL
                     EDM=   .56E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    13.157        .17820E-06** at limit **
   2  Prefactor     .10000E-03    7.3682        .56372E-06** at limit **
   3  Prefactor     20.047        44.777       -.55135E-06    .50277E-05
   4  Prefactor     .10000E-03    37.300       -.22993E-05** at limit **
   5  Prefactor     .10000E-03    6.5274       -.25110E-06** at limit **
   6  Prefactor     .10000E-03    1.3962       -.78734E-07** at limit **
   7  Prefactor     48.594        36.080        .38833E-08    .15493E-04
   8  Prefactor     .10000E-03    12.516        .75779E-06** at limit **
   9  Prefactor     .10000E-03    13.745       -.51623E-06** at limit **
  10  Prefactor     10.775        13.140        .25675E-08   -.10869E-04
  11  Prefactor     1.3802        4.5311        .29279E-06    .29355E-04
  12  Prefactor     .10000E-03    30.377        .43039E-05** at limit **
  13  Prefactor     .10000E-03    12.983        .35412E-06** at limit **
  14  Prefactor     .10000E-03    14.007       -.61948E-06** at limit **
  15  norm          .10000E-03    3.3467        .14351E-07** at limit **
  16  norm          1.0460        5.6248       -.75192E-06    .88908E-04
  17  norm          .10000E-03    1.8797       -.72420E-07** at limit **
  18  norm          19.860        11.412        .26520E-06   -.46402E-04
  19  Prefactor     1.4200        5.7268        .69858E-05   -.79280E-04
  20  Prefactor     32.039        32.062        .34487E-05   -.15252E-03
  21  Prefactor     .10000E-03    90.215        .17129E-05** at limit **
  22  norm          .10001E-03    4.8711        .35296E-05** at limit **
  23  Prefactor     .10000E-03    37.431       -.24412E-05** at limit **
  24  norm          6.0115        1.7139       -.16305E-06    .22461E-02
  25  norm          .63816        4.5752        .14057E-05    .83214E-04
  26  Prefactor     .10000E-03    3.7018        .31743E-05** at limit **
  27  Prefactor     2.1648        79.385        .17364E-05    .58525E-04
  28  Prefactor     189.92        96.208        .19179E-06    .20195E-04
  29  Prefactor     4.1691        5.5958        .98127E-07    .10409E-04
  30  Prefactor     .10000E-03    1.0002       -.31238E-07** at limit **
  31  Prefactor     91.939        62.832        .71335E-06    .56279E-04
  32  Normalizat    .96891        .18954       -.52109E-06    .14169E-03
  33  Prefactor     .89059        .20102        .87358E-06    .37780E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 20.047
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 48.594
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.7749
  Prefactor  = 1.38024
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 1.04604
  norm       = 0.0001
  norm       = 19.86
  Prefactor  = 1.41997
  Prefactor  = 32.0392
  Prefactor  = 0.0001
  norm       = 0.000100006
  Prefactor  = 0.0001
  norm       = 6.01153
  norm       = 0.638158
  Prefactor  = 0.000100004
  Prefactor  = 2.16483
  Prefactor  = 189.922
  Prefactor  = 4.16908
  Prefactor  = 0.0001
  Prefactor  = 91.9389
  Normalizat = 0.968905
  Prefactor  = 0.890594
 **********
 **   18 **HESSE 
 **********

 FCN=   5266.126     FROM HESSE     STATUS=OK           687 CALLS     5317 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    13.157        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    7.3748        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     20.047        44.583        .89468E-04   -1.4812    
   4  Prefactor     .10000E-03    37.619        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    6.6558        .18103E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    1.4086        .83725E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     48.594        36.073        .57524E-04   -1.4313    
   8  Prefactor     .10000E-03    12.555        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    13.833        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     10.775        13.178        .12206E-03   -1.5051    
  11  Prefactor     1.3802        4.4882        .26928E-03   -1.5473    
  12  Prefactor     .10000E-03    30.342        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    12.983        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    14.236        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    3.3474        .12966E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.0460        5.4935        .32625E-03   -1.5503    
  17  norm          .10000E-03    1.8831        .97161E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          19.860        11.419        .89875E-04   -1.4816    
  19  Prefactor     1.4200        7.8683        .18066E-02   -1.5470    
  20  Prefactor     32.039        32.483        .70817E-04   -1.4575    
  21  Prefactor     .10000E-03    90.358        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10001E-03    15.358        .21193E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    38.608        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          6.0115        1.7205        .46219E-04   -1.5218    
  25  norm          .63816        4.3014        .28211E-03   -1.5548    
  26  Prefactor     .10000E-03    7.9338        .20873E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     2.1648        61.967        .28068E-03   -1.5414    
  28  Prefactor     189.92        96.210        .14652E-03   -1.2943    
  29  Prefactor     4.1691        5.5806        .18892E-03   -1.5300    
  30  Prefactor     .10000E-03    1.0024        .70870E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     91.939        62.833        .41909E-04   -1.3787    
  32  Normalizat    .96891        .22620        .23075E-03   -.94080    
  33  Prefactor     .89059        .24096        .26548E-03   -.96471    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.99958e-09
Minuit parameter uncertainties:
  1  1.07062e-05
  2  4.58277e-05
  3  44.6574
  4  0.00043027
  5  3.26232e-05
  6  9.06453e-06
  7  36.0895
  8  4.58386e-05
  9  9.89423e-05
  10  13.1816
  11  4.48934
  12  0.000594284
  13  3.04837e-05
  14  8.21096e-05
  15  1.04433e-06
  16  4.79481
  17  9.03039e-07
  18  11.4206
  19  6.68627
  20  32.5005
  21  6.5599e-05
  22  0.000629304
  23  0.000131079
  24  1.72056
  25  3.31367
  26  0.000356805
  27  23.1905
  28  96.2897
  29  5.5813
  30  2.23268e-06
  31  62.8789
  32  0.226419
  33  0.241245
Done.

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

Extracting fit parameters...

4FGL J2328.3-4036
   Spectrum: LogParabola
455         norm:  1.000e-04  6.293e-04  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.906e-01  2.412e-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.689e-01  2.264e-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.57e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.64e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/922640/likelihoodResults_393552001_393811201_4FGL_J2328.3-4036_daily_bin595.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): 102
logL (Free Index) = 5266.12645362
delta logL = -0.000311163687002

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5266.1261421
delta logL = 3.55949850928e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10621E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3988       1.0000          .0000       5.0000    
     3 'Normalizat'    .96895       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89053       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=   5266.114     FROM MIGRAD    STATUS=FAILED       166 CALLS      339 TOTAL
                     EDM=   .13E-05    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .76030E-01    .76042        .19806E-02   -.47122E-01
   2  alpha         4.0980        2.5093        .16478       -.42408E-03
   3  Normalizat    .95833        .22680        .23075E-03   -.71046E-04
   4  Prefactor     .89742        .24328        .26548E-03   -.12003E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5266.114     FROM SIMPLEX   STATUS=UNCHANGED     72 CALLS      411 TOTAL
                     EDM=   .89E-05    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .76030E-01    .76042        .11281E-03   -1.5763    
   2  alpha         4.0980        2.5093        .17543E-01    2.4481    
   3  Normalizat    .95833        .22680        .19601E-03   -.94440    
   4  Prefactor     .89742        .24328        .17467E-03   -.96231    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5266.114     FROM MIGRAD    STATUS=CONVERGED     30 CALLS      441 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .76031E-01    1.1815        .39611E-03   -.18826E-02
   2  alpha         4.0980        2.9807        .32955E-01   -.11536E-05
   3  Normalizat    .95833        .22575        .92299E-05    .19708E-05
   4  Prefactor     .89743        .24308        .10619E-04    .85646E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0760307
  alpha      = 4.09804
  Normalizat = 0.958334
  Prefactor  = 0.897425
 **********
 **   18 **HESSE 
 **********

 FCN=   5266.114     FROM HESSE     STATUS=OK            27 CALLS      468 TOTAL
                     EDM=   .16E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .76031E-01    2.3979        .79223E-04   -1.5763    
   2  alpha         4.0980        4.0819        .13182E-02    2.4481    
   3  Normalizat    .95833        .22522        .18460E-05   -.94440    
   4  Prefactor     .89743        .24305        .21239E-05   -.96231    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.61597e-12
Minuit parameter uncertainties:
  1  0.853445
  2  6.00779
  3  0.22544
  4  0.243345
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/922640': 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) = 5266.11404262
delta logL = 0.0120998391558

Extracting fit parameters...

4FGL J2328.3-4036
   Spectrum: LogParabola
455         norm:  7.603e-02  8.534e-01  1.000e-04  1.000e+04 ( 1.000e-12)
456        alpha:  4.098e+00  6.008e+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.974e-01  2.433e-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.583e-01  2.254e-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/922640/cmap_HighResolution_393552001_393811201_4FGL_J2328.3-4036_daily_bin595.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.64e-05', job_status='DONE', photon_flux_upper_limit='7.57e-08', time_completed='2021-09-29 20:40:28.646984', job_id='922640', GAL2='0.90', fit_tolerance='1e-08', EG2='0.96', EG='0.97', time_epoch_completed='1632973228.65', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.89', dlogl='1.21e-02', ts2='0.03', photon_index_error='0.00', photon_index='2.33' WHERE bin_id='595' AND source_name='4FGL J2328.3-4036' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 20:40:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0273>
Subject: Job 922640: <4FGL_J2328.3-4036_daily_bin595> in cluster <slac> Done

Job <4FGL_J2328.3-4036_daily_bin595> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep 29 20:25:42 2021
Job was executed on host(s) <bullet0273>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 20:25:44 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:25:44 2021
Terminated at Wed Sep 29 20:40:29 2021
Results reported at Wed Sep 29 20:40:29 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2328.3-4036_daily_bin595 352.082 -40.6037 393552001 393811201 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 :                                   869.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             300.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   884 sec.
    Turnaround time :                            887 sec.

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

