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


Performing analysis on: 4FGL_J2328.3-4036_daily_bin1283
RA = 352.082, Dec = -40.6037
tmin = 571881601, tmax = 572140801
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='934224', job_status='RUN', time_executed='2021-09-29 20:42:11.957561', time_epoch_executed='1632973331.96' WHERE source_name='4FGL J2328.3-4036' and cadence='daily' and bin_id='1283'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/934224

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/934224/ft1_4FGL_J2328.3-4036_daily_bin1283.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/934224/ft2_4FGL_J2328.3-4036_daily_bin1283.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/934224/ft1_4FGL_J2328.3-4036_daily_bin1283.fits outfile=/scratch/kocevski/934224/ft1_filteredMKT_4FGL_J2328.3-4036_daily_bin1283.fits ra=352.082 dec=-40.6037 rad=12.0 tmin=571881601.0 tmax=572140801.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.53
user 2.33
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/934224/ft1_filtered_4FGL_J2328.3-4036_daily_bin1283.fits" evtable="EVENTS" scfile=/scratch/kocevski/934224/ft2_4FGL_J2328.3-4036_daily_bin1283.fits sctable="SC_DATA" outfile=/scratch/kocevski/934224/ltcube_571881601_572140801_4FGL_J2328.3-4036_daily_bin1283.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/934224/ft2_4FGL_J2328.3-4036_daily_bin1283.fits
.....................!
real 12.60
user 12.28
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/934224/ft1_filtered_4FGL_J2328.3-4036_daily_bin1283.fits evtable="EVENTS" scfile=/scratch/kocevski/934224/ft2_4FGL_J2328.3-4036_daily_bin1283.fits sctable="SC_DATA" expcube=/scratch/kocevski/934224/ltcube_571881601_572140801_4FGL_J2328.3-4036_daily_bin1283.fits outfile=/scratch/kocevski/934224/expmap_571881601_572140801_4FGL_J2328.3-4036_daily_bin1283.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/934224/ltcube_571881601_572140801_4FGL_J2328.3-4036_daily_bin1283.fits
.....................!
real 192.14
user 187.33
sys 4.08

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/934224/ft1_filtered_4FGL_J2328.3-4036_daily_bin1283.fits scfile=/scratch/kocevski/934224/ft2_4FGL_J2328.3-4036_daily_bin1283.fits outfile=/scratch/kocevski/934224/cmap_571881601_572140801_4FGL_J2328.3-4036_daily_bin1283.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.57
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/934224/ft1_filtered_4FGL_J2328.3-4036_daily_bin1283.fits scfile=/scratch/kocevski/934224/ft2_4FGL_J2328.3-4036_daily_bin1283.fits outfile=/scratch/kocevski/934224/cmap_HighResolution_571881601_572140801_4FGL_J2328.3-4036_daily_bin1283.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.54
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/934224/ft1_filtered_4FGL_J2328.3-4036_daily_bin1283.fits evtable="EVENTS" scfile=/scratch/kocevski/934224/ft2_4FGL_J2328.3-4036_daily_bin1283.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/934224/Model_4FGL_J2328.3-4036_daily_bin1283.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/934224/ft1_filtered_4FGL_J2328.3-4036_daily_bin1283.fits......................!
real 29.91
user 28.03
sys 1.30

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    66.528       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .11079E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    32.226       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.0260       1.0000         .10000E-03   10000.    
     7 'Prefactor '    182.05       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10620E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .13615E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    41.482       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10159E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    7.2408       1.0000         .10000E-03   10000.    
    15 'norm      '    .10060E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    12.294       1.0000         .10000E-03   10000.    
    17 'norm      '    2.8958       1.0000         .10000E-03   10000.    
    18 'norm      '    20.259       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10904E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    54.155       1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.0390       1.0000         .10000E-03   10000.    
    22 'norm      '    .11024E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .12748E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10021E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    6.2822       1.0000         .10000E-03   10000.    
    26 'Prefactor '    3.9553       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .56133E-01   1.0000         .10000E-03   10000.    
    29 'Prefactor '    7.9215       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .11843E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.7812       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .93425       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=   2885.346     FROM MIGRAD    STATUS=CONVERGED    921 CALLS     4657 TOTAL
                     EDM=   .79E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    52.529       -.12429E-05** at limit **
   2  Prefactor     66.536        55.071       -.84026E-06   -.29997E-04
   3  Prefactor     .10000E-03    84.403        .42428E-05** at limit **
   4  Prefactor     32.240        39.280       -.13311E-05   -.23098E-04
   5  Prefactor     .10000E-03    4.1604        .32364E-06** at limit **
   6  Prefactor     4.0296        12.302       -.14728E-05   -.36781E-04
   7  Prefactor     181.92        202.75       -.74439E-05   -.28516E-04
   8  Prefactor     .10000E-03    64.301       -.85106E-06** at limit **
   9  Prefactor     .10000E-03    66.906        .98876E-06** at limit **
  10  Prefactor     41.547        68.212       -.61948E-05   -.40776E-04
  11  Prefactor     .10000E-03    9.4011        .45955E-06** at limit **
  12  Prefactor     .10000E-03    36.524       -.47501E-06** at limit **
  13  Prefactor     .10000E-03    47.967        .12298E-05** at limit **
  14  Prefactor     7.2018        55.988        .82886E-05    .30604E-04
  15  norm          .10000E-03    9.3080        .73051E-07** at limit **
  16  norm          12.294        13.466       -.16084E-05   -.10126E-03
  17  norm          2.8990        8.7498       -.10111E-05   -.14499E-05
  18  norm          20.258        20.767       -.79038E-06   -.59690E-04
  19  Prefactor     .10000E-03    41.283        .14011E-05** at limit **
  20  Prefactor     54.273        122.02        .44139E-05    .25690E-04
  21  Prefactor     .99563        1473.3        .86489E-04   -.11114E-04
  22  norm          .10000E-03    10.138       -.79633E-06** at limit **
  23  Prefactor     .10000E-03    113.43       -.44676E-05** at limit **
  24  norm          .10000E-03    1.0745       -.11358E-06** at limit **
  25  norm          6.2802        11.844       -.13340E-05   -.12487E-03
  26  Prefactor     3.9541        5.5785       -.44115E-06   -.59224E-04
  27  Prefactor     .10000E-03    49.394        .82089E-06** at limit **
  28  Prefactor     .10002E-03    1983.7       -.88122E-05** at limit **
  29  Prefactor     7.9149        14.491        .56098E-06    .29878E-04
  30  Prefactor     .10000E-03    7.4121        .54754E-06** at limit **
  31  Prefactor     .10000E-03    93.313        .22961E-05** at limit **
  32  Normalizat    1.7823        .40930        .16966E-05   -.29437E-03
  33  Prefactor     .93308        .41128       -.66783E-05    .71707E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 66.536
  Prefactor  = 0.0001
  Prefactor  = 32.2398
  Prefactor  = 0.0001
  Prefactor  = 4.02959
  Prefactor  = 181.918
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 41.547
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.20184
  norm       = 0.0001
  norm       = 12.2945
  norm       = 2.89903
  norm       = 20.2576
  Prefactor  = 0.0001
  Prefactor  = 54.2734
  Prefactor  = 0.99563
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 6.28023
  Prefactor  = 3.9541
  Prefactor  = 0.0001
  Prefactor  = 0.000100023
  Prefactor  = 7.91494
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.78234
  Prefactor  = 0.933079
 **********
 **   18 **HESSE 
 **********

 FCN=   2885.346     FROM HESSE     STATUS=OK           693 CALLS     5350 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    52.528        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     66.536        55.101        .49206E-04   -1.4075    
   3  Prefactor     .10000E-03    84.578        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     32.240        39.247        .70585E-04   -1.4572    
   5  Prefactor     .10000E-03    4.1692        .10699E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     4.0296        12.271        .20098E-03   -1.5306    
   7  Prefactor     181.92        203.27        .14960E-03   -1.3002    
   8  Prefactor     .10000E-03    64.302        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    66.990        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     41.547        68.087        .62239E-04   -1.4418    
  11  Prefactor     .10000E-03    9.4156        .16090E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    36.528        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    47.980        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     7.2018        55.989        .14906E-03   -1.5171    
  15  norm          .10000E-03    9.3085        .16008E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          12.294        13.494        .11425E-03   -1.5007    
  17  norm          2.8990        8.8154        .23880E-03   -1.5367    
  18  norm          20.258        20.716        .88988E-04   -1.4807    
  19  Prefactor     .10000E-03    42.627        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     54.273        126.17        .54506E-04   -1.4233    
  21  Prefactor     .99563        123.40        .16451       -1.5508    
  22  norm          .10000E-03    10.123        .16598E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    116.25        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    1.0849        .54262E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          6.2802        11.985        .80076E-03   -1.5207    
  26  Prefactor     3.9541        5.5622        .14444E-03   -1.5310    
  27  Prefactor     .10000E-03    49.527        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10002E-03    2037.7        .37200E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     7.9149        14.634        .14246E-03   -1.5145    
  30  Prefactor     .10000E-03    7.4664        .14245E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .10000E-03    93.412        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    1.7823        .48614        .26545E-03   -.70126    
  33  Prefactor     .93308        .47700        .37274E-03   -.94995    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.02864e-09
Minuit parameter uncertainties:
  1  2.28569e-05
  2  55.1434
  3  0.000366247
  4  39.2787
  5  1.51644e-05
  6  12.2788
  7  204.061
  8  6.29217e-05
  9  0.000323308
  10  68.2145
  11  3.78854e-05
  12  3.3169e-05
  13  8.39954e-05
  14  40.2126
  15  1.70648e-06
  16  13.4972
  17  8.81938
  18  20.7232
  19  0.000269641
  20  126.795
  21  22.2143
  22  2.80592e-05
  23  0.000280412
  24  7.50476e-06
  25  11.9901
  26  5.5629
  27  0.000124482
  28  0.0143362
  29  14.6406
  30  5.64423e-05
  31  0.000164153
  32  0.487469
  33  0.479167
Done.

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

Extracting fit parameters...

4FGL J2328.3-4036
   Spectrum: LogParabola
455         norm:  1.000e-04  2.806e-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:  9.331e-01  4.792e-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.782e+00  4.875e-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.84e-07 ph cm-2 s-1
Energy Flux Upper Limit: 6.42e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/934224/likelihoodResults_571881601_572140801_4FGL_J2328.3-4036_daily_bin1283.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) = 2885.3462676
delta logL = -0.000469692792194

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2885.34579914
delta logL = -1.24017878989e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10147E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3576       1.0000          .0000       5.0000    
     3 'Normalizat'    1.7817       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93380       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=   2885.346     FROM MIGRAD    STATUS=FAILED       118 CALLS      268 TOTAL
                     EDM=   .91E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .90370E-01    .73419E-01** at limit **
   2  alpha         3.3422        4.0521        .50000       -.11487E-04
   3  Normalizat    1.7824        .19244E-02    .26546E-03   -.41110E-04
   4  Prefactor     .93307        .20557E-02    .37273E-03   -.27466E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   2885.345     FROM SIMPLEX   STATUS=PROGRESS     111 CALLS      379 TOTAL
                     EDM=   .74E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .67325E-01    .90370E-01    .46398E-03   -.22437E-04
   2  alpha         3.9681        4.0521        .24339E-01   -.11487E-04
   3  Normalizat    1.7827        .19244E-02    .69220E-05   -.41110E-04
   4  Prefactor     .93322        .20557E-02    .45620E-05   -.27466E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   2885.345     FROM MIGRAD    STATUS=CONVERGED    112 CALLS      491 TOTAL
                     EDM=   .58E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .78437E-01    14.032        .56539E-04   -.27849E-04
   2  alpha         3.9752        2.8866        .80000E-02   -.71054E-08
   3  Normalizat    1.7755        .45373        .10618E-04    .33619E-04
   4  Prefactor     .93721        .46696        .29819E-05    .23638E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0784374
  alpha      = 3.97516
  Normalizat = 1.77551
  Prefactor  = 0.937206
 **********
 **   18 **HESSE 
 **********

 FCN=   2885.345     FROM HESSE     STATUS=OK            23 CALLS      514 TOTAL
                     EDM=   .58E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .78437E-01    13.527        .22616E-05   -1.5764    
   2  alpha         3.9752        2.8301        .32000E-03    .63114    
   3  Normalizat    1.7755        .45203        .21236E-05   -.70305    
   4  Prefactor     .93721        .46560        .59638E-06   -.94853    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.8211e-12
Minuit parameter uncertainties:
  1  2.05928
  2  9.6815
  3  0.453096
  4  0.467607
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/934224': 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) = 2885.34469002
delta logL = 0.00110788866778

Extracting fit parameters...

4FGL J2328.3-4036
   Spectrum: LogParabola
455         norm:  7.844e-02  2.059e+00  1.000e-04  1.000e+04 ( 1.000e-12)
456        alpha:  3.975e+00  9.681e+00  0.000e+00  5.000e+00 ( 1.000e+00)
457         beta:  7.057e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
458           Eb:  7.709e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
587    Prefactor:  9.372e-01  4.676e-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.776e+00  4.531e-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/934224/cmap_HighResolution_571881601_572140801_4FGL_J2328.3-4036_daily_bin1283.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.42e-05', job_status='DONE', photon_flux_upper_limit='1.84e-07', time_completed='2021-09-29 20:52:47.239292', job_id='934224', GAL2='0.94', fit_tolerance='1e-08', EG2='1.78', EG='1.78', time_epoch_completed='1632973967.24', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.93', dlogl='1.11e-03', ts2='0.00', photon_index_error='0.00', photon_index='2.33' WHERE bin_id='1283' 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@bullet0270>
Subject: Job 934224: <4FGL_J2328.3-4036_daily_bin1283> in cluster <slac> Done

Job <4FGL_J2328.3-4036_daily_bin1283> 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) <bullet0270>, 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:52:47 2021
Results reported at Wed Sep 29 20:52:47 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2328.3-4036_daily_bin1283 352.082 -40.6037 571881601 572140801 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 :                                   605.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             298.16 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   753 sec.
    Turnaround time :                            754 sec.

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

