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


Performing analysis on: 4FGL_J2328.3-4036_daily_bin1285
RA = 352.082, Dec = -40.6037
tmin = 572400001, tmax = 572659201
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='934229', job_status='RUN', time_executed='2021-09-29 20:40:59.344961', time_epoch_executed='1632973259.34' WHERE source_name='4FGL J2328.3-4036' and cadence='daily' and bin_id='1285'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/934229

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/934229/ft1_4FGL_J2328.3-4036_daily_bin1285.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/934229/ft2_4FGL_J2328.3-4036_daily_bin1285.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/934229/ft1_4FGL_J2328.3-4036_daily_bin1285.fits outfile=/scratch/kocevski/934229/ft1_filteredMKT_4FGL_J2328.3-4036_daily_bin1285.fits ra=352.082 dec=-40.6037 rad=12.0 tmin=572400001.0 tmax=572659201.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.65
user 3.41
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/934229/ft2_4FGL_J2328.3-4036_daily_bin1285.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/934229/ft1_filteredMKT_4FGL_J2328.3-4036_daily_bin1285.fits evtable="EVENTS" outfile="/scratch/kocevski/934229/ft1_filtered_4FGL_J2328.3-4036_daily_bin1285.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.48
user 0.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/934229/ft1_filtered_4FGL_J2328.3-4036_daily_bin1285.fits" evtable="EVENTS" scfile=/scratch/kocevski/934229/ft2_4FGL_J2328.3-4036_daily_bin1285.fits sctable="SC_DATA" outfile=/scratch/kocevski/934229/ltcube_572400001_572659201_4FGL_J2328.3-4036_daily_bin1285.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/934229/ft2_4FGL_J2328.3-4036_daily_bin1285.fits
.....................!
real 11.65
user 11.32
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/934229/ft1_filtered_4FGL_J2328.3-4036_daily_bin1285.fits evtable="EVENTS" scfile=/scratch/kocevski/934229/ft2_4FGL_J2328.3-4036_daily_bin1285.fits sctable="SC_DATA" expcube=/scratch/kocevski/934229/ltcube_572400001_572659201_4FGL_J2328.3-4036_daily_bin1285.fits outfile=/scratch/kocevski/934229/expmap_572400001_572659201_4FGL_J2328.3-4036_daily_bin1285.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/934229/ltcube_572400001_572659201_4FGL_J2328.3-4036_daily_bin1285.fits
.....................!
real 191.42
user 185.54
sys 5.57

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/934229/ft1_filtered_4FGL_J2328.3-4036_daily_bin1285.fits scfile=/scratch/kocevski/934229/ft2_4FGL_J2328.3-4036_daily_bin1285.fits outfile=/scratch/kocevski/934229/cmap_572400001_572659201_4FGL_J2328.3-4036_daily_bin1285.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=352.082 yref=-40.6037 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.52
user 0.35
sys 0.16

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

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

This is gtbin version HEAD
real 0.53
user 0.36
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    72.156       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.1015       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    38.188       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10250E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    31.892       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      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10165E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10166E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    11.400       1.0000         .10000E-03   10000.    
    20 'Prefactor '    39.260       1.0000         .10000E-03   10000.    
    21 'Prefactor '    10.099       1.0000         .10000E-03   10000.    
    22 'norm      '    7.2950       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .21164E-01   1.0000         .10000E-03   10000.    
    25 'norm      '    1.9446       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10065E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    8.7146       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10065E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    .96700       1.0000         .10000E-01   10.000    
    33 'Prefactor '    1.1993       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=   4732.148     FROM MIGRAD    STATUS=CONVERGED    906 CALLS     4600 TOTAL
                     EDM=   .32E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    30.424       -.15900E-05** at limit **
   2  Prefactor     .10000E-03    10.746        .26207E-06** at limit **
   3  Prefactor     72.170        65.434       -.16245E-05   -.76274E-04
   4  Prefactor     .10000E-03    8.7211        .31976E-06** at limit **
   5  Prefactor     .10000E-03    3.7952        .27037E-07** at limit **
   6  Prefactor     1.1010        3.1606        .51771E-06   -.16079E-03
   7  Prefactor     .10000E-03    25.557        .11396E-05** at limit **
   8  Prefactor     38.187        28.538       -.96904E-06   -.17687E-03
   9  Prefactor     .10000E-03    8.6029       -.16569E-06** at limit **
  10  Prefactor     .10000E-03    13.447        .14067E-06** at limit **
  11  Prefactor     .10000E-03    12.860       -.13152E-06** at limit **
  12  Prefactor     .10000E-03    17.582        .84721E-06** at limit **
  13  Prefactor     31.884        55.598       -.33277E-06   -.22260E-04
  14  Prefactor     .10000E-03    4.8752        .18188E-07** at limit **
  15  norm          .10000E-03    4.3176        .45545E-08** at limit **
  16  norm          .10000E-03    3.9410        .93503E-08** at limit **
  17  norm          .10000E-03    10.801       -.26183E-06** at limit **
  18  norm          .10000E-03    7.8530        .46490E-06** at limit **
  19  Prefactor     11.401        7.4863        .11421E-07    .29365E-04
  20  Prefactor     39.260        46.309       -.20033E-05   -.12663E-03
  21  Prefactor     9.9175        97.109       -.13139E-05   -.11827E-04
  22  norm          7.2950        7.5494        .30534E-06   -.88707E-04
  23  Prefactor     .10000E-03    6.4984        .99478E-08** at limit **
  24  norm          .21267E-01    .62145        .24669E-07   -.78629E-05
  25  norm          1.9446        4.9975        .40604E-06   -.14854E-03
  26  Prefactor     .10000E-03    3.4997       -.42433E-09** at limit **
  27  Prefactor     .10000E-03    20.678       -.17985E-05** at limit **
  28  Prefactor     .10000E-03    26.645        .13442E-05** at limit **
  29  Prefactor     8.7162        8.3684        .14950E-05   -.55651E-03
  30  Prefactor     .10000E-03    3.5842       -.48120E-06** at limit **
  31  Prefactor     .10000E-03    48.914       -.21905E-07** at limit **
  32  Normalizat    .96658        .21646        .30346E-06    .27671E-04
  33  Prefactor     1.1998        .23347       -.63384E-06    .68681E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 72.1697
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.101
  Prefactor  = 0.0001
  Prefactor  = 38.187
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 31.8839
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 11.4013
  Prefactor  = 39.2605
  Prefactor  = 9.91751
  norm       = 7.29496
  Prefactor  = 0.0001
  norm       = 0.0212666
  norm       = 1.94456
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 8.71617
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Normalizat = 0.966575
  Prefactor  = 1.19983
 **********
 **   18 **HESSE 
 **********

 FCN=   4732.148     FROM HESSE     STATUS=OK           683 CALLS     5283 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    30.864        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    10.774        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     72.170        66.290        .47261E-04   -1.4007    
   4  Prefactor     .10000E-03    8.7381        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    3.8251        .13087E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.1010        3.1544        .20131E-03   -1.5498    
   7  Prefactor     .10000E-03    25.812        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     38.187        29.126        .64858E-04   -1.4471    
   9  Prefactor     .10000E-03    8.6157        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    13.533        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    13.394        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    17.700        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     31.884        55.716        .70953E-04   -1.4578    
  14  Prefactor     .10000E-03    4.8790        .14833E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    4.3189        .13961E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    3.9666        .13330E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    10.928        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    7.9624        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     11.401        7.4991        .11865E-03   -1.5033    
  20  Prefactor     39.260        47.205        .63970E-04   -1.4454    
  21  Prefactor     9.9175        98.159        .12609E-03   -1.5078    
  22  norm          7.2950        7.5199        .14457E-03   -1.5168    
  23  Prefactor     .10000E-03    6.5059        .17120E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .21267E-01    8.6701        .10225E-02   -1.5679    
  25  norm          1.9446        4.9703        .22552E-03   -1.5429    
  26  Prefactor     .10000E-03    3.6122        .25095E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    21.173        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    26.931        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     8.7162        9.0487        .67892E-03   -1.5117    
  30  Prefactor     .10000E-03    8.0972        .24664E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .10000E-03    49.002        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    .96658        .26591        .25319E-03   -.94159    
  33  Prefactor     1.1998        .28757        .25756E-03   -.86337    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.62169e-08
Minuit parameter uncertainties:
  1  0.000339514
  2  4.4425e-05
  3  66.3582
  4  3.46041e-05
  5  1.82481e-07
  6  3.15485
  7  0.000212937
  8  29.1371
  9  1.47744e-05
  10  2.18084e-05
  11  2.42197e-05
  12  0.000130386
  13  55.8069
  14  4.26846e-07
  15  2.90042e-07
  16  8.09507e-07
  17  2.47985e-05
  18  4.60106e-05
  19  7.49974
  20  47.2501
  21  62.5351
  22  7.52091
  23  1.83381e-06
  24  0.856902
  25  4.97139
  26  1.06504e-05
  27  0.000278971
  28  0.000259643
  29  9.0501
  30  0.000228642
  31  2.28491e-05
  32  0.266271
  33  0.287947
Done.

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

Extracting fit parameters...

4FGL J2328.3-4036
   Spectrum: LogParabola
455         norm:  7.295e+00  7.521e+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:  1.200e+00  2.879e-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.666e-01  2.663e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.20
Ra Dec: 352.082 -40.604
Photon Index (Fixed Index): 2.33 +/- 0.00
Photon Flux (Fixed Index): 5.51e-08 +/- 5.68e-08
Energy Flux (Fixed Index): 1.93e-05 +/- 1.98e-05

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

Saving results to:
/scratch/kocevski/934229/likelihoodResults_572400001_572659201_4FGL_J2328.3-4036_daily_bin1285.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) = 4732.02775652
delta logL = 0.120256142133

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4732.02743953
delta logL = 0.120573128182

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.9104       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0525       1.0000          .0000       5.0000    
     3 'Normalizat'    .97975       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1867       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4732.027     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      283 TOTAL
                     EDM=   .13E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.9146        7.2530        .67137E-03    .11604E-03
   2  alpha         2.0524        .53567        .12427E-01   -.18873E-05
   3  Normalizat    .97969        .25384        .25168E-03   -.90344E-07
   4  Prefactor     1.1868        .28549        .25870E-03    .25665E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 8.91461
  alpha      = 2.05242
  Normalizat = 0.979689
  Prefactor  = 1.18677
 **********
 **   18 **HESSE 
 **********

 FCN=   4732.027     FROM HESSE     STATUS=OK            27 CALLS      310 TOTAL
                     EDM=   .55E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.9146        7.1825        .13427E-03   -1.5111    
   2  alpha         2.0524        .53052        .49709E-03   -.18000    
   3  Normalizat    .97969        .25413        .10067E-04   -.93714    
   4  Prefactor     1.1868        .28580        .10348E-04   -.86739    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.48427e-12
Minuit parameter uncertainties:
  1  7.18324
  2  0.534723
  3  0.254441
  4  0.286175
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/934229': 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) = 4732.02743933
delta logL = 0.120573328233

Extracting fit parameters...

4FGL J2328.3-4036
   Spectrum: LogParabola
455         norm:  8.915e+00  7.183e+00  1.000e-04  1.000e+04 ( 1.000e-12)
456        alpha:  2.052e+00  5.347e-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:  1.187e+00  2.862e-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.797e-01  2.544e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.49
Ra Dec: 352.082 -40.604
Photon Index (Free Index): 2.05 +/- 0.53
Photon Flux (Free Index): 4.87e-08 +/- 4.22e-08
Energy Flux (Free Index): 2.54e-05 +/- 2.40e-05

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/934229/cmap_HighResolution_572400001_572659201_4FGL_J2328.3-4036_daily_bin1285.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.29e-05', comment='SUCCESS', photon_flux='5.51e-08', energy_flux2='2.54e-05', photon_flux_error='5.68e-08', dlogl='1.21e-01', energy_flux='1.93e-05', photon_flux2='4.87e-08', job_status='DONE', time_completed='2021-09-29 20:54:32.075655', photon_index_error2='0.53', photon_index2='2.05', ts='2.20', fit_tolerance='1e-08', GAL='1.20', photon_index_error='0.00', photon_flux_upper_limit='1.51e-07', energy_flux_error2='2.40e-05', EG='0.97', time_epoch_completed='1632974072.08', return_code='0', job_id='934229', GAL2='1.19', EG2='0.98', return_code2='0', energy_flux_error='1.98e-05', photon_flux_error2='4.22e-08', ts2='2.49', photon_index='2.33' WHERE bin_id='1285' AND source_name='4FGL J2328.3-4036' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 20:54:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0281>
Subject: Job 934229: <4FGL_J2328.3-4036_daily_bin1285> in cluster <slac> Done

Job <4FGL_J2328.3-4036_daily_bin1285> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 20:40:13 2021
Job was executed on host(s) <bullet0281>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 20:40: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:40:14 2021
Terminated at Wed Sep 29 20:54:32 2021
Results reported at Wed Sep 29 20:54:32 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2328.3-4036_daily_bin1285 352.082 -40.6037 572400001 572659201 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 :                                   796.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             290.59 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   858 sec.
    Turnaround time :                            859 sec.

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

