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


Performing analysis on: 4FGL_J2328.3-4036_daily_bin1335
RA = 352.082, Dec = -40.6037
tmin = 585360001, tmax = 585619201
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='934359', job_status='RUN', time_executed='2021-09-29 20:40:36.875764', time_epoch_executed='1632973236.88' WHERE source_name='4FGL J2328.3-4036' and cadence='daily' and bin_id='1335'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/934359

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/934359/ft1_4FGL_J2328.3-4036_daily_bin1335.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/934359/ft2_4FGL_J2328.3-4036_daily_bin1335.fits


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

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

Done.
real 2.84
user 2.65
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/934359/ft2_4FGL_J2328.3-4036_daily_bin1335.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/934359/ft1_filteredMKT_4FGL_J2328.3-4036_daily_bin1335.fits evtable="EVENTS" outfile="/scratch/kocevski/934359/ft1_filtered_4FGL_J2328.3-4036_daily_bin1335.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/934359/ft1_filtered_4FGL_J2328.3-4036_daily_bin1335.fits" evtable="EVENTS" scfile=/scratch/kocevski/934359/ft2_4FGL_J2328.3-4036_daily_bin1335.fits sctable="SC_DATA" outfile=/scratch/kocevski/934359/ltcube_585360001_585619201_4FGL_J2328.3-4036_daily_bin1335.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/934359/ft2_4FGL_J2328.3-4036_daily_bin1335.fits
.....................!
real 12.29
user 11.94
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/934359/ft1_filtered_4FGL_J2328.3-4036_daily_bin1335.fits evtable="EVENTS" scfile=/scratch/kocevski/934359/ft2_4FGL_J2328.3-4036_daily_bin1335.fits sctable="SC_DATA" expcube=/scratch/kocevski/934359/ltcube_585360001_585619201_4FGL_J2328.3-4036_daily_bin1335.fits outfile=/scratch/kocevski/934359/expmap_585360001_585619201_4FGL_J2328.3-4036_daily_bin1335.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/934359/ltcube_585360001_585619201_4FGL_J2328.3-4036_daily_bin1335.fits
.....................!
real 190.47
user 185.77
sys 4.38

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/934359/ft1_filtered_4FGL_J2328.3-4036_daily_bin1335.fits scfile=/scratch/kocevski/934359/ft2_4FGL_J2328.3-4036_daily_bin1335.fits outfile=/scratch/kocevski/934359/cmap_585360001_585619201_4FGL_J2328.3-4036_daily_bin1335.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/934359/ft1_filtered_4FGL_J2328.3-4036_daily_bin1335.fits scfile=/scratch/kocevski/934359/ft2_4FGL_J2328.3-4036_daily_bin1335.fits outfile=/scratch/kocevski/934359/cmap_HighResolution_585360001_585619201_4FGL_J2328.3-4036_daily_bin1335.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.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/934359/ft1_filtered_4FGL_J2328.3-4036_daily_bin1335.fits evtable="EVENTS" scfile=/scratch/kocevski/934359/ft2_4FGL_J2328.3-4036_daily_bin1335.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/934359/Model_4FGL_J2328.3-4036_daily_bin1335.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/934359/ft1_filtered_4FGL_J2328.3-4036_daily_bin1335.fits.....................!
real 33.72
user 32.49
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    9.4064       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10285E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    8.7685       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .57846       1.0000         .10000E-03   10000.    
     7 'Prefactor '    52.887       1.0000         .10000E-03   10000.    
     8 'Prefactor '    66.666       1.0000         .10000E-03   10000.    
     9 'Prefactor '    65.607       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.6921       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10938E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    39.119       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    15.952       1.0000         .10000E-03   10000.    
    16 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .96662       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10112E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10635E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10120E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .93762       1.0000         .10000E-03   10000.    
    25 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    2.6329       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10582E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    8.0347       1.0000         .10000E-03   10000.    
    31 'Prefactor '    3.6690       1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.4524       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .69771       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=   4012.775     FROM MIGRAD    STATUS=CONVERGED    892 CALLS     4627 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    14.188        .30770E-05** at limit **
   2  Prefactor     9.4003        31.424        .12555E-05   -.31993E-04
   3  Prefactor     .10000E-03    71.532        .66029E-05** at limit **
   4  Prefactor     .10000E-03    22.722        .78452E-05** at limit **
   5  Prefactor     8.7672        7.7448       -.66863E-06   -.21232E-03
   6  Prefactor     .57887        5.8277       -.12034E-05    .21498E-04
   7  Prefactor     52.911        54.017        .12511E-04    .22988E-04
   8  Prefactor     66.665        62.875        .13873E-07    .15091E-04
   9  Prefactor     65.585        48.969       -.87356E-05    .31193E-04
  10  Prefactor     2.6872        64.401       -.43230E-05   -.51133E-04
  11  Prefactor     .10000E-03    4.7093       -.15654E-07** at limit **
  12  Prefactor     .10000E-03    289.79       -.48803E-05** at limit **
  13  Prefactor     39.156        106.06        .47656E-04    .82668E-05
  14  Prefactor     .10000E-03    22.942        .16165E-04** at limit **
  15  norm          15.952        20.763        .61884E-07   -.56366E-04
  16  norm          .10000E-03    5.9785       -.90842E-06** at limit **
  17  norm          .10000E-03    2.4426       -.23740E-08** at limit **
  18  norm          .10000E-03    3.6985        .12422E-07** at limit **
  19  Prefactor     .96416        9.9634        .23638E-05   -.76352E-03
  20  Prefactor     .10000E-03    40.170       -.97351E-05** at limit **
  21  Prefactor     .10000E-03    21.801       -.22457E-04** at limit **
  22  norm          .10000E-03    3.0607        .39153E-06** at limit **
  23  Prefactor     .10000E-03    13.056       -.20919E-05** at limit **
  24  norm          .93840        1.4502       -.43923E-06   -.17932E-02
  25  norm          .10000E-03    2.1167       -.45217E-07** at limit **
  26  Prefactor     2.6323        3.3289       -.12697E-06   -.24850E-03
  27  Prefactor     .10000E-03    9.3983       -.27843E-07** at limit **
  28  Prefactor     .10000E-03    39.492        .37058E-05** at limit **
  29  Prefactor     .10000E-03    3.5241        .31422E-06** at limit **
  30  Prefactor     8.0338        5.9830        .10688E-05   -.16253E-03
  31  Prefactor     3.6411        224.57       -.61383E-04   -.24911E-05
  32  Normalizat    1.4526        .24556        .12638E-05   -.11707E-03
  33  Prefactor     .69764        .25587       -.26353E-05   -.77636E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 9.40034
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.76717
  Prefactor  = 0.578871
  Prefactor  = 52.9111
  Prefactor  = 66.6645
  Prefactor  = 65.5846
  Prefactor  = 2.68718
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 39.1565
  Prefactor  = 0.0001
  norm       = 15.952
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.964158
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.9384
  norm       = 0.0001
  Prefactor  = 2.63235
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.03378
  Prefactor  = 3.64109
  Normalizat = 1.45258
  Prefactor  = 0.697638
 **********
 **   18 **HESSE 
 **********

 FCN=   4012.775     FROM HESSE     STATUS=OK           691 CALLS     5318 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    14.188        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     9.4003        31.316        .13067E-03   -1.5095    
   3  Prefactor     .10000E-03    71.649        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    22.790        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     8.7672        7.7573        .13536E-03   -1.5116    
   6  Prefactor     .57887        23.832        .28841E-02   -1.5556    
   7  Prefactor     52.911        54.025        .55151E-04   -1.4252    
   8  Prefactor     66.665        62.763        .49156E-04   -1.4073    
   9  Prefactor     65.585        48.885        .49548E-04   -1.4087    
  10  Prefactor     2.6872        64.656        .24831E-03   -1.5380    
  11  Prefactor     .10000E-03    4.7164        .13424E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    292.33        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     39.156        105.85        .64084E-04   -1.4456    
  14  Prefactor     .10000E-03    23.074        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          15.952        20.742        .10028E-03   -1.4909    
  16  norm          .10000E-03    6.0047        .15103E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    2.4452        .96668E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    3.7047        .11898E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .96416        17.564        .33292E-02   -1.5512    
  20  Prefactor     .10000E-03    40.428        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    21.776        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    5.9615        .21427E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    13.077        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .93840        1.3364        .80520E-03   -1.5514    
  25  norm          .10000E-03    2.1298        .89958E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     2.6323        3.3141        .12497E-03   -1.5383    
  27  Prefactor     .10000E-03    9.4056        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    39.537        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    3.5409        .11608E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     8.0338        5.9741        .11915E-03   -1.5141    
  31  Prefactor     3.6411        228.97        .21087E-03   -1.5326    
  32  Normalizat    1.4526        .30048        .21919E-03   -.79120    
  33  Prefactor     .69764        .30837        .32979E-03   -1.0362    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.26717e-09
Minuit parameter uncertainties:
  1  1.03036e-06
  2  31.3707
  3  0.000117031
  4  3.19832e-05
  5  7.7582
  6  7.43101
  7  54.0752
  8  62.8258
  9  48.9151
  10  26.3939
  11  2.12361e-06
  12  0.000231324
  13  106.36
  14  5.47414e-05
  15  20.7511
  16  9.79809e-06
  17  7.47966e-07
  18  2.79036e-06
  19  8.23274
  20  1.92195e-05
  21  6.99692e-06
  22  7.89686e-05
  23  5.89155e-05
  24  1.3364
  25  5.85589e-07
  26  3.31434
  27  8.85334e-06
  28  0.000231975
  29  5.6535e-05
  30  5.97454
  31  57.98
  32  0.300843
  33  0.309132
Done.

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

Extracting fit parameters...

4FGL J2328.3-4036
   Spectrum: LogParabola
455         norm:  1.000e-04  7.897e-05  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:  6.976e-01  3.091e-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.453e+00  3.008e-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/934359/likelihoodResults_585360001_585619201_4FGL_J2328.3-4036_daily_bin1335.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) = 4012.77534639
delta logL = -0.000798253142875

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4012.7745553
delta logL = -7.1576632763e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .14910E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2892       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4533       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .69684       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=   4012.775     FROM MIGRAD    STATUS=FAILED        93 CALLS      258 TOTAL
                     EDM=   .23E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10418E-03    520.53        .22282E-02** at limit **
   2  alpha         2.1062        2.8015        .16535        .91965E-05
   3  Normalizat    1.4526        .49991E-01    .21919E-03   -.19774E-03
   4  Prefactor     .69763        .54480E-01    .32979E-03   -.25806E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   4012.775     FROM SIMPLEX   STATUS=UNCHANGED    141 CALLS      399 TOTAL
                     EDM=   .15E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10418E-03    520.53        .55604E-03** at limit **
   2  alpha         2.1062        2.8015        .79292E-04    .91965E-05
   3  Normalizat    1.4526        .49991E-01    .15433E-05   -.19774E-03
   4  Prefactor     .69763        .54480E-01    .26097E-05   -.25806E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4012.775     FROM MIGRAD    STATUS=CONVERGED     42 CALLS      441 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    8.9491        .44563E-03** at limit **
   2  alpha         2.0186        3.9305        .66141E-01   -.34377E-08
   3  Normalizat    1.4526        .27685        .43839E-04    .89262E-04
   4  Prefactor     .69763        .30123        .13192E-04   -.25165E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.01857
  Normalizat = 1.45259
  Prefactor  = 0.697633
 **********
 **   18 **HESSE 
 **********

 FCN=   4012.775     FROM HESSE     STATUS=OK            23 CALLS      464 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    7.9687        .89126E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.0186        3.5019        .26456E-02   -.19378    
   3  Normalizat    1.4526        .27686        .87677E-05   -.79120    
   4  Prefactor     .69763        .30125        .26383E-05   -1.0362    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.11858e-10
Minuit parameter uncertainties:
  1  6.22483e-05
  2  157.252
  3  0.277144
  4  0.301953
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/934359': 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) = 4012.77454606
delta logL = 2.08157507586e-06

Extracting fit parameters...

4FGL J2328.3-4036
   Spectrum: LogParabola
455         norm:  1.000e-04  6.225e-05  1.000e-04  1.000e+04 ( 1.000e-12)
456        alpha:  2.019e+00  1.573e+02  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:  6.976e-01  3.020e-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.453e+00  2.771e-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/934359/cmap_HighResolution_585360001_585619201_4FGL_J2328.3-4036_daily_bin1335.png

Cleaning up...

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

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:52:47.656957', job_id='934359', GAL2='0.70', fit_tolerance='1e-08', EG2='1.45', EG='1.45', time_epoch_completed='1632973967.66', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.70', dlogl='2.08e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.33' WHERE bin_id='1335' AND source_name='4FGL J2328.3-4036' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 20:52:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0166>
Subject: Job 934359: <4FGL_J2328.3-4036_daily_bin1335> in cluster <slac> Done

Job <4FGL_J2328.3-4036_daily_bin1335> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 20:40:18 2021
Job was executed on host(s) <bullet0166>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 20:40:19 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:19 2021
Terminated at Wed Sep 29 20:52:48 2021
Results reported at Wed Sep 29 20:52:48 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2328.3-4036_daily_bin1335 352.082 -40.6037 585360001 585619201 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 :                                   726.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             277.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   748 sec.
    Turnaround time :                            750 sec.

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

