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


Performing analysis on: 4FGL_J2328.3-4036_daily_bin1130
RA = 352.082, Dec = -40.6037
tmin = 532224001, tmax = 532483201
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='929726', job_status='RUN', time_executed='2021-09-29 20:38:05.524209', time_epoch_executed='1632973085.52' WHERE source_name='4FGL J2328.3-4036' and cadence='daily' and bin_id='1130'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/929726

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/929726/ft1_4FGL_J2328.3-4036_daily_bin1130.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/929726/ft2_4FGL_J2328.3-4036_daily_bin1130.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/929726/ft1_4FGL_J2328.3-4036_daily_bin1130.fits outfile=/scratch/kocevski/929726/ft1_filteredMKT_4FGL_J2328.3-4036_daily_bin1130.fits ra=352.082 dec=-40.6037 rad=12.0 tmin=532224001.0 tmax=532483201.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.49
user 3.27
sys 0.20

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/929726/ft1_filtered_4FGL_J2328.3-4036_daily_bin1130.fits" evtable="EVENTS" scfile=/scratch/kocevski/929726/ft2_4FGL_J2328.3-4036_daily_bin1130.fits sctable="SC_DATA" outfile=/scratch/kocevski/929726/ltcube_532224001_532483201_4FGL_J2328.3-4036_daily_bin1130.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/929726/ft2_4FGL_J2328.3-4036_daily_bin1130.fits
.....................!
real 11.93
user 11.58
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/929726/ft1_filtered_4FGL_J2328.3-4036_daily_bin1130.fits evtable="EVENTS" scfile=/scratch/kocevski/929726/ft2_4FGL_J2328.3-4036_daily_bin1130.fits sctable="SC_DATA" expcube=/scratch/kocevski/929726/ltcube_532224001_532483201_4FGL_J2328.3-4036_daily_bin1130.fits outfile=/scratch/kocevski/929726/expmap_532224001_532483201_4FGL_J2328.3-4036_daily_bin1130.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/929726/ltcube_532224001_532483201_4FGL_J2328.3-4036_daily_bin1130.fits
.....................!
real 191.41
user 186.39
sys 4.62

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

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

This is gtbin version HEAD
real 0.53
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/929726/ft1_filtered_4FGL_J2328.3-4036_daily_bin1130.fits scfile=/scratch/kocevski/929726/ft2_4FGL_J2328.3-4036_daily_bin1130.fits outfile=/scratch/kocevski/929726/cmap_HighResolution_532224001_532483201_4FGL_J2328.3-4036_daily_bin1130.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.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/929726/ft1_filtered_4FGL_J2328.3-4036_daily_bin1130.fits evtable="EVENTS" scfile=/scratch/kocevski/929726/ft2_4FGL_J2328.3-4036_daily_bin1130.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/929726/Model_4FGL_J2328.3-4036_daily_bin1130.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/929726/ft1_filtered_4FGL_J2328.3-4036_daily_bin1130.fits.....................!
real 34.20
user 32.93
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    41.811       1.0000         .10000E-03   10000.    
     3 'Prefactor '    62.748       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    7.3453       1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.9480       1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.8713       1.0000         .10000E-03   10000.    
     8 'Prefactor '    40.898       1.0000         .10000E-03   10000.    
     9 'Prefactor '    11.396       1.0000         .10000E-03   10000.    
    10 'Prefactor '    11.067       1.0000         .10000E-03   10000.    
    11 'Prefactor '    13.394       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    95.461       1.0000         .10000E-03   10000.    
    14 'Prefactor '    32.753       1.0000         .10000E-03   10000.    
    15 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    5.8184       1.0000         .10000E-03   10000.    
    20 'Prefactor '    38.259       1.0000         .10000E-03   10000.    
    21 'Prefactor '    84.788       1.0000         .10000E-03   10000.    
    22 'norm      '    6.3683       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10480E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .17683E-02   1.0000         .10000E-03   10000.    
    25 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    3.1864       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .15184E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10241       1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.1600       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .57374       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=   3772.437     FROM MIGRAD    STATUS=CONVERGED    920 CALLS     4634 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    20.342        .16370E-06** at limit **
   2  Prefactor     42.029        32.924        .39537E-05    .81192E-03
   3  Prefactor     62.757        82.037       -.52973E-06    .15381E-03
   4  Prefactor     .10000E-03    14.576        .86769E-07** at limit **
   5  Prefactor     7.3433        6.4946       -.12264E-06    .14038E-03
   6  Prefactor     7.9451        5.5073       -.10688E-06    .10979E-03
   7  Prefactor     4.8783        146.25        .14394E-05    .89330E-05
   8  Prefactor     40.879        39.603       -.15857E-06    .37350E-04
   9  Prefactor     11.363        35.358       -.10894E-05    .37180E-04
  10  Prefactor     11.060        12.791       -.21593E-06    .17237E-04
  11  Prefactor     13.389        10.143       -.18045E-06    .39263E-04
  12  Prefactor     .10000E-03    16.004       -.19389E-07** at limit **
  13  Prefactor     95.404        87.129       -.14227E-05   -.55542E-04
  14  Prefactor     32.751        19.645       -.59847E-06    .78863E-04
  15  norm          .10000E-03    10.591        .15519E-06** at limit **
  16  norm          .10000E-03    2.6424        .34601E-07** at limit **
  17  norm          .10000E-03    2.8114       -.39324E-08** at limit **
  18  norm          .10000E-03    8.7477       -.71876E-06** at limit **
  19  Prefactor     5.8203        6.5750       -.25526E-06    .16786E-03
  20  Prefactor     38.248        50.620       -.62276E-06    .10623E-03
  21  Prefactor     84.713        75.226       -.23905E-05   -.79674E-04
  22  norm          6.3660        6.3072       -.18220E-07    .20366E-03
  23  Prefactor     .10000E-03    28.729        .45199E-06** at limit **
  24  norm          .10007E-03    .85975        .55470E-07** at limit **
  25  norm          .10000E-03    4.2736        .14203E-06** at limit **
  26  Prefactor     3.1888        5.8083        .45924E-06    .49291E-03
  27  Prefactor     .10000E-03    125.85        .74369E-06** at limit **
  28  Prefactor     .10000E-03    33.204        .27145E-06** at limit **
  29  Prefactor     .10000E-03    5.1887        .25379E-07** at limit **
  30  Prefactor     .11107E-02    5.7123       -.39053E-05** at limit **
  31  Prefactor     .10000E-03    28.374       -.75957E-07** at limit **
  32  Normalizat    1.1612        .26074        .69017E-05    .67236E-03
  33  Prefactor     .57309        .25203       -.66505E-05    .50116E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 42.0286
  Prefactor  = 62.7572
  Prefactor  = 0.0001
  Prefactor  = 7.34328
  Prefactor  = 7.94506
  Prefactor  = 4.87828
  Prefactor  = 40.8795
  Prefactor  = 11.3627
  Prefactor  = 11.0602
  Prefactor  = 13.3888
  Prefactor  = 0.0001
  Prefactor  = 95.4035
  Prefactor  = 32.751
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 5.82034
  Prefactor  = 38.2476
  Prefactor  = 84.7135
  norm       = 6.36598
  Prefactor  = 0.0001
  norm       = 0.000100068
  norm       = 0.0001
  Prefactor  = 3.18877
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.00111068
  Prefactor  = 0.0001
  Normalizat = 1.16124
  Prefactor  = 0.573086
 **********
 **   18 **HESSE 
 **********

 FCN=   3772.437     FROM HESSE     STATUS=OK           699 CALLS     5333 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    20.341        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     42.029        36.403        .61995E-04   -1.4410    
   3  Prefactor     62.757        81.943        .50657E-04   -1.4122    
   4  Prefactor     .10000E-03    14.599        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     7.3433        6.4998        .14268E-03   -1.5166    
   6  Prefactor     7.9451        5.5001        .11401E-03   -1.5144    
   7  Prefactor     4.8783        144.87        .18225E-03   -1.5266    
   8  Prefactor     40.879        39.577        .62681E-04   -1.4428    
   9  Prefactor     11.363        35.266        .11867E-03   -1.5034    
  10  Prefactor     11.060        12.792        .12043E-03   -1.5043    
  11  Prefactor     13.389        10.141        .10945E-03   -1.4976    
  12  Prefactor     .10000E-03    16.007        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     95.404        87.122        .20569E-03   -1.3751    
  14  Prefactor     32.751        19.317        .70016E-04   -1.4563    
  15  norm          .10000E-03    10.627        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    2.6426        .97504E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    2.8125        .10054E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    8.8004        .17729E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     5.8203        6.4953        .15895E-03   -1.5225    
  20  Prefactor     38.248        50.769        .64798E-04   -1.4470    
  21  Prefactor     84.713        75.292        .21813E-03   -1.3865    
  22  norm          6.3660        6.3080        .13084E-03   -1.5203    
  23  Prefactor     .10000E-03    28.959        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10007E-03    17.343        .10313E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    4.2926        .12376E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     3.1888        5.5977        .17728E-03   -1.5351    
  27  Prefactor     .10000E-03    126.98        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    33.210        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    5.2446        .13658E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .11107E-02    17.554        .35033E-01   -1.5702    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .10000E-03    28.402        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    1.1612        .28397        .22067E-03   -.87809    
  33  Prefactor     .57309        .27193        .31842E-03   -1.0873    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.21907e-08
Minuit parameter uncertainties:
  1  3.38382e-05
  2  36.4222
  3  82.0905
  4  6.48428e-07
  5  6.50038
  6  5.50046
  7  53.3096
  8  39.6029
  9  35.3307
  10  12.7949
  11  10.1426
  12  3.59852e-05
  13  87.2395
  14  19.3206
  15  3.03104e-06
  16  9.84464e-07
  17  5.66357e-07
  18  1.87771e-05
  19  6.4961
  20  50.8268
  21  75.3769
  22  6.30862
  23  7.91152e-05
  24  0.00216478
  25  5.9365e-06
  26  5.59866
  27  0.000174048
  28  0.000137671
  29  1.53032e-05
  30  0.266473
  31  8.46213e-05
  32  0.284347
  33  0.272554
Done.

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

Extracting fit parameters...

4FGL J2328.3-4036
   Spectrum: LogParabola
455         norm:  6.366e+00  6.309e+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:  5.731e-01  2.726e-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.161e+00  2.843e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.41
Ra Dec: 352.082 -40.604
Photon Index (Fixed Index): 2.33 +/- 0.00
Photon Flux (Fixed Index): 4.81e-08 +/- 4.76e-08
Energy Flux (Fixed Index): 1.68e-05 +/- 1.66e-05

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

Saving results to:
/scratch/kocevski/929726/likelihoodResults_532224001_532483201_4FGL_J2328.3-4036_daily_bin1130.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) = 3772.42081326
delta logL = 0.0156898884688

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3772.41993582
delta logL = 0.0165673309007

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.5346       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1581       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1715       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .56636       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=   3772.420     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      202 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.5346        224.26        .39248E-02   -.33776E-03
   2  alpha         2.1582        3.4633        .41649       -.49109E-06
   3  Normalizat    1.1715        .19850        .35632E-01    .24833E-05
   4  Prefactor     .56635        .12252        .72323E-01    .18643E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 6.53462
  alpha      = 2.15819
  Normalizat = 1.17148
  Prefactor  = 0.566347
 **********
 **   18 **HESSE 
 **********

 FCN=   3772.420     FROM HESSE     STATUS=OK            33 CALLS      235 TOTAL
                     EDM=   .85E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.5346        5.8722        .13576E-03   -1.5197    
   2  alpha         2.1582        .92148        .16446E-01   -.13715    
   3  Normalizat    1.1715        .25930        .21984E-03   -.87489    
   4  Prefactor     .56635        .26748        .32018E-03   -1.0902    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.47785e-11
Minuit parameter uncertainties:
  1  5.8727
  2  0.944189
  3  0.259583
  4  0.268079
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/929726': 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) = 3772.41993582
delta logL = 0.0165673358315

Extracting fit parameters...

4FGL J2328.3-4036
   Spectrum: LogParabola
455         norm:  6.535e+00  5.873e+00  1.000e-04  1.000e+04 ( 1.000e-12)
456        alpha:  2.158e+00  9.442e-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:  5.663e-01  2.681e-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.171e+00  2.596e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.45
Ra Dec: 352.082 -40.604
Photon Index (Free Index): 2.16 +/- 0.94
Photon Flux (Free Index): 4.01e-08 +/- 5.45e-08
Energy Flux (Free Index): 1.76e-05 +/- 1.72e-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/929726/cmap_HighResolution_532224001_532483201_4FGL_J2328.3-4036_daily_bin1130.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.24e-05', comment='SUCCESS', photon_flux='4.81e-08', energy_flux2='1.76e-05', photon_flux_error='4.76e-08', dlogl='1.66e-02', energy_flux='1.68e-05', photon_flux2='4.01e-08', job_status='DONE', time_completed='2021-09-29 20:50:07.697480', photon_index_error2='0.94', photon_index2='2.16', ts='2.41', fit_tolerance='1e-08', GAL='0.57', photon_index_error='0.00', photon_flux_upper_limit='1.50e-07', energy_flux_error2='1.72e-05', EG='1.16', time_epoch_completed='1632973807.7', return_code='0', job_id='929726', GAL2='0.57', EG2='1.17', return_code2='0', energy_flux_error='1.66e-05', photon_flux_error2='5.45e-08', ts2='2.45', photon_index='2.33' WHERE bin_id='1130' AND source_name='4FGL J2328.3-4036' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 20:50:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0005>
Subject: Job 929726: <4FGL_J2328.3-4036_daily_bin1130> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2328.3-4036_daily_bin1130 352.082 -40.6037 532224001 532483201 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 :                                   693.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             244.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   882 sec.
    Turnaround time :                            885 sec.

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

