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


Performing analysis on: 4FGL_J2328.3-4036_daily_bin1144
RA = 352.082, Dec = -40.6037
tmin = 535852801, tmax = 536112001
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='929771', job_status='RUN', time_executed='2021-09-29 20:37:47.241000', time_epoch_executed='1632973067.24' WHERE source_name='4FGL J2328.3-4036' and cadence='daily' and bin_id='1144'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/929771

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/929771/ft1_4FGL_J2328.3-4036_daily_bin1144.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/929771/ft2_4FGL_J2328.3-4036_daily_bin1144.fits


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

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

Done.
real 3.58
user 3.35
sys 0.19

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/929771/ft1_filtered_4FGL_J2328.3-4036_daily_bin1144.fits" evtable="EVENTS" scfile=/scratch/kocevski/929771/ft2_4FGL_J2328.3-4036_daily_bin1144.fits sctable="SC_DATA" outfile=/scratch/kocevski/929771/ltcube_535852801_536112001_4FGL_J2328.3-4036_daily_bin1144.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/929771/ft2_4FGL_J2328.3-4036_daily_bin1144.fits
.....................!
real 11.72
user 11.41
sys 0.27

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/929771/ft1_filtered_4FGL_J2328.3-4036_daily_bin1144.fits evtable="EVENTS" scfile=/scratch/kocevski/929771/ft2_4FGL_J2328.3-4036_daily_bin1144.fits sctable="SC_DATA" expcube=/scratch/kocevski/929771/ltcube_535852801_536112001_4FGL_J2328.3-4036_daily_bin1144.fits outfile=/scratch/kocevski/929771/expmap_535852801_536112001_4FGL_J2328.3-4036_daily_bin1144.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/929771/ltcube_535852801_536112001_4FGL_J2328.3-4036_daily_bin1144.fits
.....................!
real 190.11
user 185.94
sys 3.85

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/929771/ft1_filtered_4FGL_J2328.3-4036_daily_bin1144.fits scfile=/scratch/kocevski/929771/ft2_4FGL_J2328.3-4036_daily_bin1144.fits outfile=/scratch/kocevski/929771/cmap_535852801_536112001_4FGL_J2328.3-4036_daily_bin1144.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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/929771/ft1_filtered_4FGL_J2328.3-4036_daily_bin1144.fits scfile=/scratch/kocevski/929771/ft2_4FGL_J2328.3-4036_daily_bin1144.fits outfile=/scratch/kocevski/929771/cmap_HighResolution_535852801_536112001_4FGL_J2328.3-4036_daily_bin1144.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.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/929771/ft1_filtered_4FGL_J2328.3-4036_daily_bin1144.fits evtable="EVENTS" scfile=/scratch/kocevski/929771/ft2_4FGL_J2328.3-4036_daily_bin1144.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/929771/Model_4FGL_J2328.3-4036_daily_bin1144.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/929771/ft1_filtered_4FGL_J2328.3-4036_daily_bin1144.fits.....................!
real 38.16
user 36.96
sys 1.12

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10653E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10558E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    193.89       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10146E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .98087E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    16.961       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10544E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    9.4110       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    34.408       1.0000         .10000E-03   10000.    
    14 'Prefactor '    14.694       1.0000         .10000E-03   10000.    
    15 'norm      '    13.715       1.0000         .10000E-03   10000.    
    16 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    2.5892       1.0000         .10000E-03   10000.    
    18 'norm      '    4.6581       1.0000         .10000E-03   10000.    
    19 'Prefactor '    12.459       1.0000         .10000E-03   10000.    
    20 'Prefactor '    37.139       1.0000         .10000E-03   10000.    
    21 'Prefactor '    71.212       1.0000         .10000E-03   10000.    
    22 'norm      '    .10377E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10041E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    2.6511       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10117E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    11.998       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    6.0558       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    .98666       1.0000         .10000E-01   10.000    
    33 'Prefactor '    1.1488       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=   4743.388     FROM MIGRAD    STATUS=CONVERGED    880 CALLS     4665 TOTAL
                     EDM=   .14E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    73.425       -.22690E-06** at limit **
   2  Prefactor     .10000E-03    28.429       -.98946E-06** at limit **
   3  Prefactor     193.88        99.935       -.31632E-06    .11430E-04
   4  Prefactor     .10000E-03    29.065       -.84528E-06** at limit **
   5  Prefactor     .10000E-03    13.502       -.49969E-06** at limit **
   6  Prefactor     .10074E-03    2.1657       -.20077E-06** at limit **
   7  Prefactor     16.960        43.857        .31022E-06    .11731E-05
   8  Prefactor     .10000E-03    11.351        .79101E-06** at limit **
   9  Prefactor     .10000E-03    39.235        .29744E-05** at limit **
  10  Prefactor     .10000E-03    10.142       -.30254E-06** at limit **
  11  Prefactor     9.4122        10.947        .28652E-06   -.17912E-04
  12  Prefactor     .10000E-03    13.132       -.45225E-06** at limit **
  13  Prefactor     34.385        73.173       -.35144E-05   -.12204E-04
  14  Prefactor     14.696        16.855        .16898E-06    .74936E-05
  15  norm          13.713        12.755       -.93063E-08    .41128E-05
  16  norm          .10000E-03    4.4950        .18259E-07** at limit **
  17  norm          2.5900        4.2519       -.13363E-05   -.34593E-04
  18  norm          4.6580        12.895       -.32059E-06   -.27622E-04
  19  Prefactor     12.461        8.6058        .32888E-07    .37723E-04
  20  Prefactor     37.161        40.663       -.22026E-05    .22540E-04
  21  Prefactor     71.227        79.511        .19762E-05    .49026E-05
  22  norm          .10001E-03    3.9839        .14873E-05** at limit **
  23  Prefactor     .10000E-03    12.885       -.34516E-06** at limit **
  24  norm          .10000E-03    .77098       -.19069E-07** at limit **
  25  norm          2.6515        3.2903       -.28292E-06   -.85131E-05
  26  Prefactor     .10000E-03    3.8341       -.71927E-07** at limit **
  27  Prefactor     11.996        26.929        .27634E-06    .10977E-04
  28  Prefactor     .10000E-03    18.158        .11434E-05** at limit **
  29  Prefactor     6.0561        6.7685        .13694E-06   -.22561E-04
  30  Prefactor     .10000E-03    1.9041       -.35814E-07** at limit **
  31  Prefactor     .10000E-03    15.135        .95729E-07** at limit **
  32  Normalizat    .98602        .22136       -.18500E-05    .84141E-04
  33  Prefactor     1.1496        .23709        .75322E-06   -.48912E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 193.885
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100735
  Prefactor  = 16.9601
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.41224
  Prefactor  = 0.0001
  Prefactor  = 34.385
  Prefactor  = 14.6963
  norm       = 13.7133
  norm       = 0.0001
  norm       = 2.59002
  norm       = 4.65798
  Prefactor  = 12.4612
  Prefactor  = 37.1615
  Prefactor  = 71.2274
  norm       = 0.000100007
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 2.65146
  Prefactor  = 0.0001
  Prefactor  = 11.9962
  Prefactor  = 0.0001
  Prefactor  = 6.05613
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.986019
  Prefactor  = 1.14959
 **********
 **   18 **HESSE 
 **********

 FCN=   4743.388     FROM HESSE     STATUS=OK           703 CALLS     5368 TOTAL
                     EDM=   .70E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    73.544        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    28.490        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     193.88        100.01        .29009E-04   -1.2914    
   4  Prefactor     .10000E-03    29.107        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    13.866        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10074E-03    4.4714        .35472E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     16.960        43.839        .97252E-04   -1.4884    
   8  Prefactor     .10000E-03    11.384        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    39.948        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    10.176        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     9.4122        10.930        .13064E-03   -1.5094    
  12  Prefactor     .10000E-03    13.133        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     34.385        73.381        .68316E-04   -1.4535    
  14  Prefactor     14.696        16.659        .10449E-03   -1.4941    
  15  norm          13.713        12.758        .10816E-03   -1.4967    
  16  norm          .10000E-03    4.5299        .14255E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          2.5900        4.2574        .17489E-03   -1.5386    
  18  norm          4.6580        12.849        .18647E-03   -1.5276    
  19  Prefactor     12.461        8.4937        .11349E-03   -1.5002    
  20  Prefactor     37.161        41.179        .65765E-04   -1.4488    
  21  Prefactor     71.227        79.494        .47571E-04   -1.4018    
  22  norm          .10001E-03    29.131        .24095E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    12.924        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    1.1736        .11367E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          2.6515        3.2776        .13347E-03   -1.5382    
  26  Prefactor     .10000E-03    3.9071        .26230E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     11.996        26.781        .11565E-03   -1.5015    
  28  Prefactor     .10000E-03    18.159        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     6.0561        6.7664        .16316E-03   -1.5216    
  30  Prefactor     .10000E-03    1.9166        .92773E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .10000E-03    15.137        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    .98602        .26078        .25905E-03   -.93500    
  33  Prefactor     1.1496        .28298        .26976E-03   -.87897    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.00104e-10
Minuit parameter uncertainties:
  1  6.39423e-05
  2  4.93968e-05
  3  100.099
  4  1.95841e-05
  5  5.32287e-05
  6  0.00362641
  7  43.9226
  8  1.94635e-05
  9  8.02075e-05
  10  1.95461e-05
  11  10.9327
  12  2.15509e-06
  13  73.5746
  14  16.6647
  15  12.7606
  16  7.58557e-07
  17  4.25786
  18  12.8566
  19  8.49456
  20  41.2107
  21  79.6129
  22  0.000919844
  23  1.18379e-05
  24  1.26244e-05
  25  3.27784
  26  1.06229e-05
  27  26.8082
  28  1.43029e-05
  29  6.76726
  30  3.73285e-06
  31  1.80247e-06
  32  0.261122
  33  0.28335
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
587    Prefactor:  1.150e+00  2.834e-01  0.000e+00  1.000e+01 ( 1.000e+00)
588        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
589        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
586   Normalization:  9.860e-01  2.611e-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.03e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.59e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/929771/likelihoodResults_535852801_536112001_4FGL_J2328.3-4036_daily_bin1144.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) = 4743.38811018
delta logL = -0.000164061509167

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4743.38792988
delta logL = 1.62347187143e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .26478E-02   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4570       1.0000          .0000       5.0000    
     3 'Normalizat'    .98610       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1496       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5900E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4743.236     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      252 TOTAL
                     EDM=   .76E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .35301        16.553        .99799E-02    .16506E-02
   2  alpha         4.0187        3.3865        .41159        .12623E-04
   3  Normalizat    .94862        .41005E-01    .45993E-01    .30977E-03
   4  Prefactor     1.1723        .46017E-01    .60451E-01    .50739E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.353009
  alpha      = 4.01872
  Normalizat = 0.948619
  Prefactor  = 1.17229
 **********
 **   18 **HESSE 
 **********

 FCN=   4743.236     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      281 TOTAL
                     EDM=   .42E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .35301        59.599        .72996E-04   -1.5589    
   2  alpha         4.0187        3.9208        .33122E-01    .65289    
   3  Normalizat    .94862        .19147        .26334E-03   -.94772    
   4  Prefactor     1.1723        .21522        .26735E-03   -.87188    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.16729e-08
Minuit parameter uncertainties:
  1  9.18168
  2  14.8811
  3  0.191604
  4  0.215382
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/929771': 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): 102
logL (Free Index) = 4743.23624064
delta logL = 0.151705477297

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
587    Prefactor:  1.172e+00  2.154e-01  0.000e+00  1.000e+01 ( 1.000e+00)
588        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
589        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
586   Normalization:  9.486e-01  1.916e-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/929771/cmap_HighResolution_535852801_536112001_4FGL_J2328.3-4036_daily_bin1144.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.59e-05', job_status='DONE', photon_flux_upper_limit='1.03e-07', time_completed='2021-09-29 20:51:19.673693', job_id='929771', GAL2='1.17', fit_tolerance='1e-08', EG2='0.95', EG='0.99', time_epoch_completed='1632973879.67', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.15', dlogl='1.52e-01', ts2='0.34', photon_index_error='0.00', photon_index='2.33' WHERE bin_id='1144' AND source_name='4FGL J2328.3-4036' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 20:51:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0022>
Subject: Job 929771: <4FGL_J2328.3-4036_daily_bin1144> in cluster <slac> Done

Job <4FGL_J2328.3-4036_daily_bin1144> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep 29 20:35:26 2021
Job was executed on host(s) <bullet0022>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 20:35:27 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 20:35:27 2021
Terminated at Wed Sep 29 20:51:20 2021
Results reported at Wed Sep 29 20:51:20 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2328.3-4036_daily_bin1144 352.082 -40.6037 535852801 536112001 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 :                                   790.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             248.61 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   952 sec.
    Turnaround time :                            954 sec.

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

