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


Performing analysis on: 4FGL_J2328.3-4036_daily_bin1282
RA = 352.082, Dec = -40.6037
tmin = 571622401, tmax = 571881601
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='934221', job_status='RUN', time_executed='2021-09-29 20:43:48.664350', time_epoch_executed='1632973428.66' WHERE source_name='4FGL J2328.3-4036' and cadence='daily' and bin_id='1282'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/934221

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/934221/ft1_4FGL_J2328.3-4036_daily_bin1282.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/934221/ft2_4FGL_J2328.3-4036_daily_bin1282.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/934221/ft1_4FGL_J2328.3-4036_daily_bin1282.fits outfile=/scratch/kocevski/934221/ft1_filteredMKT_4FGL_J2328.3-4036_daily_bin1282.fits ra=352.082 dec=-40.6037 rad=12.0 tmin=571622401.0 tmax=571881601.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.72
user 2.51
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/934221/ft2_4FGL_J2328.3-4036_daily_bin1282.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/934221/ft1_filteredMKT_4FGL_J2328.3-4036_daily_bin1282.fits evtable="EVENTS" outfile="/scratch/kocevski/934221/ft1_filtered_4FGL_J2328.3-4036_daily_bin1282.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.50
user 0.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/934221/ft1_filtered_4FGL_J2328.3-4036_daily_bin1282.fits" evtable="EVENTS" scfile=/scratch/kocevski/934221/ft2_4FGL_J2328.3-4036_daily_bin1282.fits sctable="SC_DATA" outfile=/scratch/kocevski/934221/ltcube_571622401_571881601_4FGL_J2328.3-4036_daily_bin1282.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/934221/ft2_4FGL_J2328.3-4036_daily_bin1282.fits
.....................!
real 12.97
user 12.59
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/934221/ft1_filtered_4FGL_J2328.3-4036_daily_bin1282.fits evtable="EVENTS" scfile=/scratch/kocevski/934221/ft2_4FGL_J2328.3-4036_daily_bin1282.fits sctable="SC_DATA" expcube=/scratch/kocevski/934221/ltcube_571622401_571881601_4FGL_J2328.3-4036_daily_bin1282.fits outfile=/scratch/kocevski/934221/expmap_571622401_571881601_4FGL_J2328.3-4036_daily_bin1282.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/934221/ltcube_571622401_571881601_4FGL_J2328.3-4036_daily_bin1282.fits
.....................!
real 190.93
user 184.97
sys 5.64

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/934221/ft1_filtered_4FGL_J2328.3-4036_daily_bin1282.fits scfile=/scratch/kocevski/934221/ft2_4FGL_J2328.3-4036_daily_bin1282.fits outfile=/scratch/kocevski/934221/cmap_571622401_571881601_4FGL_J2328.3-4036_daily_bin1282.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.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/934221/ft1_filtered_4FGL_J2328.3-4036_daily_bin1282.fits scfile=/scratch/kocevski/934221/ft2_4FGL_J2328.3-4036_daily_bin1282.fits outfile=/scratch/kocevski/934221/cmap_HighResolution_571622401_571881601_4FGL_J2328.3-4036_daily_bin1282.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/934221/ft1_filtered_4FGL_J2328.3-4036_daily_bin1282.fits evtable="EVENTS" scfile=/scratch/kocevski/934221/ft2_4FGL_J2328.3-4036_daily_bin1282.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/934221/Model_4FGL_J2328.3-4036_daily_bin1282.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/934221/ft1_filtered_4FGL_J2328.3-4036_daily_bin1282.fits......................!
real 26.69
user 25.51
sys 1.14

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/934221/ft1_filtered_4FGL_J2328.3-4036_daily_bin1282.fits', '/scratch/kocevski/934221/ft2_4FGL_J2328.3-4036_daily_bin1282.fits', expMap='/scratch/kocevski/934221/expmap_571622401_571881601_4FGL_J2328.3-4036_daily_bin1282.fits', expCube='/scratch/kocevski/934221/ltcube_571622401_571881601_4FGL_J2328.3-4036_daily_bin1282.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/934221/Model_4FGL_J2328.3-4036_daily_bin1282.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/934221/ft1_filtered_4FGL_J2328.3-4036_daily_bin1282.fits
Spacecraft file(s): /scratch/kocevski/934221/ft2_4FGL_J2328.3-4036_daily_bin1282.fits
Exposure map: /scratch/kocevski/934221/expmap_571622401_571881601_4FGL_J2328.3-4036_daily_bin1282.fits
Exposure cube: /scratch/kocevski/934221/ltcube_571622401_571881601_4FGL_J2328.3-4036_daily_bin1282.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/934221/Model_4FGL_J2328.3-4036_daily_bin1282.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 2605.33540006

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    49.833       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10585E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    36.382       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    163.61       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    13.542       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    35.231       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .13700E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    13.916       1.0000         .10000E-03   10000.    
    15 'norm      '    13.086       1.0000         .10000E-03   10000.    
    16 'norm      '    8.3732       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    26.291       1.0000         .10000E-03   10000.    
    19 'Prefactor '    12.028       1.0000         .10000E-03   10000.    
    20 'Prefactor '    129.34       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .11138E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10624E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    8.8383       1.0000         .10000E-03   10000.    
    27 'Prefactor '    5.1030       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10074E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .19392E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .22845E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    31.142       1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.0535       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .86221       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=   2605.118     FROM MIGRAD    STATUS=CONVERGED    885 CALLS     4691 TOTAL
                     EDM=   .94E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     49.842        70.348       -.15168E-06    .22322E-04
   2  Prefactor     .10000E-03    114.02       -.23128E-05** at limit **
   3  Prefactor     .10000E-03    169.26        .41590E-06** at limit **
   4  Prefactor     36.370        43.767        .31718E-06    .61085E-04
   5  Prefactor     .10000E-03    5.3855        .11512E-07** at limit **
   6  Prefactor     .10000E-03    5.5180       -.31917E-07** at limit **
   7  Prefactor     .10000E-03    37.073       -.12891E-05** at limit **
   8  Prefactor     163.59        105.87        .55354E-06    .46910E-04
   9  Prefactor     .10000E-03    25.166        .16443E-06** at limit **
  10  Prefactor     13.560        37.965       -.64718E-06   -.10205E-04
  11  Prefactor     .10000E-03    11.728       -.85662E-07** at limit **
  12  Prefactor     35.219        67.566        .17512E-06    .25049E-04
  13  Prefactor     .10000E-03    159.47       -.38776E-06** at limit **
  14  Prefactor     13.930        34.018       -.16767E-06    .66962E-05
  15  norm          13.083        20.554       -.14569E-06    .22309E-04
  16  norm          8.3738        11.792       -.42599E-06    .48692E-04
  17  norm          .10000E-03    6.4579       -.49583E-06** at limit **
  18  norm          26.304        19.352       -.90776E-08    .11676E-03
  19  Prefactor     12.025        11.061        .80321E-07    .57605E-04
  20  Prefactor     129.42        74.333        .25375E-05    .34838E-03
  21  Prefactor     .10000E-03    86.919       -.58649E-07** at limit **
  22  norm          .10000E-03    10.053       -.17871E-05** at limit **
  23  Prefactor     .10000E-03    8.6370        .71762E-07** at limit **
  24  norm          .10000E-03    1.0491        .20925E-06** at limit **
  25  norm          .10000E-03    5.6370       -.63643E-06** at limit **
  26  Prefactor     8.8319        7.8726        .20827E-06    .16987E-03
  27  Prefactor     5.1866        93.424       -.24454E-05   -.32200E-04
  28  Prefactor     .10000E-03    81.744        .27767E-06** at limit **
  29  Prefactor     .10006E-03    35.637       -.97766E-05** at limit **
  30  Prefactor     .10000E-03    4.9740        .15324E-05** at limit **
  31  Prefactor     31.194        66.669       -.24531E-05   -.13482E-04
  32  Normalizat    1.0521        .32700       -.34674E-05    .32057E-03
  33  Prefactor     .86337        .32638        .51341E-05    .43689E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 49.8425
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 36.3695
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 163.594
  Prefactor  = 0.0001
  Prefactor  = 13.5595
  Prefactor  = 0.0001
  Prefactor  = 35.2193
  Prefactor  = 0.0001
  Prefactor  = 13.9301
  norm       = 13.0831
  norm       = 8.37375
  norm       = 0.0001
  norm       = 26.3037
  Prefactor  = 12.0246
  Prefactor  = 129.425
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 8.83188
  Prefactor  = 5.18656
  Prefactor  = 0.0001
  Prefactor  = 0.000100057
  Prefactor  = 0.000100001
  Prefactor  = 31.1939
  Normalizat = 1.05214
  Prefactor  = 0.863366
 **********
 **   18 **HESSE 
 **********

 FCN=   2605.118     FROM HESSE     STATUS=OK           683 CALLS     5374 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     49.842        70.392        .56808E-04   -1.4295    
   2  Prefactor     .10000E-03    116.13        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    170.16        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     36.370        43.759        .66443E-04   -1.4501    
   5  Prefactor     .10000E-03    5.3967        .11557E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    5.5380        .11710E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    37.152        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     163.59        105.84        .15766E-03   -1.3143    
   9  Prefactor     .10000E-03    25.169        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     13.560        37.954        .10884E-03   -1.4971    
  11  Prefactor     .10000E-03    11.781        .17074E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     35.219        67.567        .67516E-04   -1.4520    
  13  Prefactor     .10000E-03    160.02        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     13.930        33.928        .10737E-03   -1.4961    
  15  norm          13.083        20.551        .11073E-03   -1.4984    
  16  norm          8.3738        11.760        .69270E-03   -1.5129    
  17  norm          .10000E-03    6.4771        .12660E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          26.304        19.345        .78128E-04   -1.4682    
  19  Prefactor     12.025        11.046        .11550E-03   -1.5014    
  20  Prefactor     129.42        76.757        .17701E-03   -1.3428    
  21  Prefactor     .10000E-03    87.115        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    10.300        .31554E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    8.6430        .14650E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    1.0673        .10149E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    5.7256        .11842E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     8.8319        7.7681        .10170E-03   -1.5114    
  27  Prefactor     5.1866        90.386        .17798E-03   -1.5252    
  28  Prefactor     .10000E-03    81.877        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10006E-03    43.394        .32489E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    9.0407        .20964E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     31.194        65.510        .71799E-04   -1.4590    
  32  Normalizat    1.0521        .37625        .24820E-03   -.91304    
  33  Prefactor     .86337        .38629        .29609E-03   -.97433    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.06665e-09
Minuit parameter uncertainties:
  1  70.5101
  2  0.00106633
  3  0.000425033
  4  43.7978
  5  1.40123e-05
  6  1.21111e-05
  7  0.000379483
  8  105.963
  9  2.32412e-05
  10  38.0219
  11  3.33483e-05
  12  67.7144
  13  0.000350594
  14  33.9745
  15  20.5619
  16  11.7637
  17  7.92431e-06
  18  19.3494
  19  11.0482
  20  76.8163
  21  8.75014e-05
  22  3.88809e-05
  23  1.98426e-05
  24  1.47221e-05
  25  6.23947e-06
  26  7.76903
  27  43.3796
  28  0.000386963
  29  0.00314602
  30  0.000232508
  31  65.6616
  32  0.377204
  33  0.387517
Done.

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

Extracting fit parameters...

4FGL J2328.3-4036
   Spectrum: LogParabola
455         norm:  1.000e-04  3.888e-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:  8.634e-01  3.875e-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.052e+00  3.772e-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: 1.41e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.92e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/934221/likelihoodResults_571622401_571881601_4FGL_J2328.3-4036_daily_bin1282.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) = 2605.11812561
delta logL = -0.000462998628791

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2605.11766081
delta logL = 1.80474535227e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10278E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.7997       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0523       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86325       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=   2605.118     FROM MIGRAD    STATUS=FAILED        93 CALLS      283 TOTAL
                     EDM=   .46E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10020E-03    1565.9        .18911E-02** at limit **
   2  alpha         2.8661        3.9266        .16613       -.40708E-06
   3  Normalizat    1.0521        .75583E-01    .24821E-03    .10728E-03
   4  Prefactor     .86336        .82745E-01    .29608E-03    .68634E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   2605.118     FROM SIMPLEX   STATUS=UNCHANGED    164 CALLS      447 TOTAL
                     EDM=   .69E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10020E-03    1565.9        .61004E-03** at limit **
   2  alpha         2.8661        3.9266        .68907E-05   -.40708E-06
   3  Normalizat    1.0521        .75583E-01    .23597E-06    .10728E-03
   4  Prefactor     .86336        .82745E-01    .49958E-07    .68634E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   2605.118     FROM MIGRAD    STATUS=CONVERGED     32 CALLS      479 TOTAL
                     EDM=   .86E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10009E-03    18.467        .37823E-03** at limit **
   2  alpha         2.8578        3.1641        .66450E-01   -.77639E-06
   3  Normalizat    1.0521        .34805        .49642E-04    .10182E-03
   4  Prefactor     .86336        .38107        .11843E-04    .64411E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100089
  alpha      = 2.85782
  Normalizat = 1.05214
  Prefactor  = 0.863356
 **********
 **   18 **HESSE 
 **********

 FCN=   2605.118     FROM HESSE     STATUS=OK            23 CALLS      502 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10009E-03    17.441        .75645E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.8578        3.9250        .26580E-02    .14362    
   3  Normalizat    1.0521        .34794        .99283E-05   -.91303    
   4  Prefactor     .86336        .38092        .23687E-05   -.97434    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.07413e-08
Minuit parameter uncertainties:
  1  0.00248586
  2  237.24
  3  0.348702
  4  0.382096
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/934221': 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) = 2605.11766063
delta logL = 1.98542602448e-06

Extracting fit parameters...

4FGL J2328.3-4036
   Spectrum: LogParabola
455         norm:  1.001e-04  2.486e-03  1.000e-04  1.000e+04 ( 1.000e-12)
456        alpha:  2.858e+00  2.372e+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:  8.634e-01  3.821e-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.052e+00  3.487e-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/934221/cmap_HighResolution_571622401_571881601_4FGL_J2328.3-4036_daily_bin1282.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.92e-05', job_status='DONE', photon_flux_upper_limit='1.41e-07', time_completed='2021-09-29 20:53:55.463867', job_id='934221', GAL2='0.86', fit_tolerance='1e-08', EG2='1.05', EG='1.05', time_epoch_completed='1632974035.46', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.86', dlogl='1.99e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.33' WHERE bin_id='1282' AND source_name='4FGL J2328.3-4036' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 20:53:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0170>
Subject: Job 934221: <4FGL_J2328.3-4036_daily_bin1282> in cluster <slac> Done

Job <4FGL_J2328.3-4036_daily_bin1282> 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) <bullet0170>, 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:53:56 2021
Results reported at Wed Sep 29 20:53:56 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2328.3-4036_daily_bin1282 352.082 -40.6037 571622401 571881601 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 :                                   581.19 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             254.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   821 sec.
    Turnaround time :                            823 sec.

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

