/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 59 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

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

number of points = 7431
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2328.3-4036_daily_bin1149
RA = 352.082, Dec = -40.6037
tmin = 537148801, tmax = 537408001
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='929786', job_status='RUN', time_executed='2021-09-29 20:36:38.234353', time_epoch_executed='1632972998.23' WHERE source_name='4FGL J2328.3-4036' and cadence='daily' and bin_id='1149'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/929786

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/929786/ft1_4FGL_J2328.3-4036_daily_bin1149.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/929786/ft2_4FGL_J2328.3-4036_daily_bin1149.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/929786/ft1_4FGL_J2328.3-4036_daily_bin1149.fits outfile=/scratch/kocevski/929786/ft1_filteredMKT_4FGL_J2328.3-4036_daily_bin1149.fits ra=352.082 dec=-40.6037 rad=12.0 tmin=537148801.0 tmax=537408001.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.77
user 3.31
sys 0.22

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/929786/ft1_filtered_4FGL_J2328.3-4036_daily_bin1149.fits" evtable="EVENTS" scfile=/scratch/kocevski/929786/ft2_4FGL_J2328.3-4036_daily_bin1149.fits sctable="SC_DATA" outfile=/scratch/kocevski/929786/ltcube_537148801_537408001_4FGL_J2328.3-4036_daily_bin1149.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/929786/ft2_4FGL_J2328.3-4036_daily_bin1149.fits
.....................!
real 11.67
user 11.32
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/929786/ft1_filtered_4FGL_J2328.3-4036_daily_bin1149.fits evtable="EVENTS" scfile=/scratch/kocevski/929786/ft2_4FGL_J2328.3-4036_daily_bin1149.fits sctable="SC_DATA" expcube=/scratch/kocevski/929786/ltcube_537148801_537408001_4FGL_J2328.3-4036_daily_bin1149.fits outfile=/scratch/kocevski/929786/expmap_537148801_537408001_4FGL_J2328.3-4036_daily_bin1149.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/929786/ltcube_537148801_537408001_4FGL_J2328.3-4036_daily_bin1149.fits
.....................!
real 191.01
user 185.43
sys 5.23

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/929786/ft1_filtered_4FGL_J2328.3-4036_daily_bin1149.fits scfile=/scratch/kocevski/929786/ft2_4FGL_J2328.3-4036_daily_bin1149.fits outfile=/scratch/kocevski/929786/cmap_537148801_537408001_4FGL_J2328.3-4036_daily_bin1149.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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/929786/ft1_filtered_4FGL_J2328.3-4036_daily_bin1149.fits scfile=/scratch/kocevski/929786/ft2_4FGL_J2328.3-4036_daily_bin1149.fits outfile=/scratch/kocevski/929786/cmap_HighResolution_537148801_537408001_4FGL_J2328.3-4036_daily_bin1149.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.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/929786/ft1_filtered_4FGL_J2328.3-4036_daily_bin1149.fits evtable="EVENTS" scfile=/scratch/kocevski/929786/ft2_4FGL_J2328.3-4036_daily_bin1149.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/929786/Model_4FGL_J2328.3-4036_daily_bin1149.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/929786/ft1_filtered_4FGL_J2328.3-4036_daily_bin1149.fits.....................!
real 35.85
user 33.95
sys 1.66

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10114E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    106.73       1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.6658       1.0000         .10000E-03   10000.    
     5 'Prefactor '    13.192       1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.5365       1.0000         .10000E-03   10000.    
     7 'Prefactor '    54.637       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    18.722       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.1114       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    78.248       1.0000         .10000E-03   10000.    
    14 'Prefactor '    13.150       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    20.536       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10106E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    93.527       1.0000         .10000E-03   10000.    
    21 'Prefactor '    9.7199       1.0000         .10000E-03   10000.    
    22 'norm      '    .10150E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    17.093       1.0000         .10000E-03   10000.    
    24 'norm      '    .47571       1.0000         .10000E-03   10000.    
    25 'norm      '    1.5849       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .17700E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.1930       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .61794       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=   4338.905     FROM MIGRAD    STATUS=CONVERGED    864 CALLS     4615 TOTAL
                     EDM=   .39E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    53.712        .10234E-05** at limit **
   2  Prefactor     .10000E-03    14.866       -.10556E-05** at limit **
   3  Prefactor     106.75        74.964       -.82381E-06    .25277E-05
   4  Prefactor     6.6722        54.206       -.25833E-05   -.21062E-04
   5  Prefactor     13.190        11.411        .45068E-06    .61641E-04
   6  Prefactor     7.5367        6.0910        .17015E-06    .37916E-04
   7  Prefactor     54.650        50.260       -.17584E-05   -.45768E-04
   8  Prefactor     .10000E-03    34.858       -.15227E-05** at limit **
   9  Prefactor     18.722        19.481        .21099E-06    .33578E-04
  10  Prefactor     2.1120        20.219        .84782E-05   -.11002E-03
  11  Prefactor     .10000E-03    4.1814       -.27660E-06** at limit **
  12  Prefactor     .10000E-03    32.018       -.63930E-06** at limit **
  13  Prefactor     78.265        72.881       -.24460E-05   -.38099E-04
  14  Prefactor     13.140        21.022        .11322E-05    .11579E-03
  15  norm          .10000E-03    4.1310        .33392E-06** at limit **
  16  norm          .10000E-03    3.0950       -.81589E-08** at limit **
  17  norm          .10000E-03    3.6694       -.26616E-07** at limit **
  18  norm          20.537        9.9379       -.19389E-07    .20619E-04
  19  Prefactor     .10000E-03    5.9930        .43078E-07** at limit **
  20  Prefactor     93.528        50.375       -.13726E-06   -.69879E-05
  21  Prefactor     9.7234        31.442       -.57759E-06   -.71965E-05
  22  norm          .10000E-03    5.5926        .15977E-06** at limit **
  23  Prefactor     17.090        17.285        .26847E-06    .79027E-04
  24  norm          .47667        1.1913       -.34486E-06   -.10581E-02
  25  norm          1.5875        5.0162        .27789E-06   -.20198E-04
  26  Prefactor     .10000E-03    1.5920        .59607E-07** at limit **
  27  Prefactor     .10000E-03    7.9193       -.12838E-06** at limit **
  28  Prefactor     .10000E-03    21.347        .17760E-05** at limit **
  29  Prefactor     .10000E-03    3.2047       -.10601E-06** at limit **
  30  Prefactor     .10000E-03    2.8829        .31096E-07** at limit **
  31  Prefactor     .10000E-03    10.983        .50922E-06** at limit **
  32  Normalizat    1.1930        .22329       -.90969E-06    .13545E-03
  33  Prefactor     .61788        .22190        .13143E-05    .11523E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 106.746
  Prefactor  = 6.67218
  Prefactor  = 13.1899
  Prefactor  = 7.5367
  Prefactor  = 54.6496
  Prefactor  = 0.0001
  Prefactor  = 18.7216
  Prefactor  = 2.11202
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 78.265
  Prefactor  = 13.1404
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 20.5372
  Prefactor  = 0.0001
  Prefactor  = 93.5284
  Prefactor  = 9.72336
  norm       = 0.0001
  Prefactor  = 17.0898
  norm       = 0.476673
  norm       = 1.58752
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.193
  Prefactor  = 0.617875
 **********
 **   18 **HESSE 
 **********

 FCN=   4338.905     FROM HESSE     STATUS=OK           691 CALLS     5306 TOTAL
                     EDM=   .50E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    53.912        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    14.826        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     106.75        74.557        .38926E-04   -1.3638    
   4  Prefactor     6.6722        53.380        .15542E-03   -1.5191    
   5  Prefactor     13.190        11.349        .11028E-03   -1.4981    
   6  Prefactor     7.5367        6.0877        .13746E-03   -1.5159    
   7  Prefactor     54.650        50.200        .27133E-03   -1.4228    
   8  Prefactor     .10000E-03    35.094        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     18.722        19.476        .92565E-04   -1.4842    
  10  Prefactor     2.1120        20.314        .14196E-02   -1.5417    
  11  Prefactor     .10000E-03    4.2013        .13146E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    32.085        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     78.265        72.814        .22699E-03   -1.3936    
  14  Prefactor     13.140        20.490        .11046E-03   -1.4983    
  15  norm          .10000E-03    4.1297        .13073E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    3.0996        .11314E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    3.6885        .12317E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          20.537        9.9371        .44192E-03   -1.4801    
  19  Prefactor     .10000E-03    6.0045        .15664E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     93.528        49.923        .41557E-04   -1.3771    
  21  Prefactor     9.7234        31.435        .12853E-03   -1.5084    
  22  norm          .10000E-03    5.6321        .15094E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     17.090        16.935        .96874E-04   -1.4881    
  24  norm          .47667        1.0275        .99497E-03   -1.5570    
  25  norm          1.5875        4.9396        .23833E-03   -1.5456    
  26  Prefactor     .10000E-03    1.6050        .81126E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    7.9257        .18102E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    21.315        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    3.2687        .11516E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    11.455        .21160E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .10000E-03    10.980        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    1.1930        .25825        .21725E-03   -.86820    
  33  Prefactor     .61788        .25717        .31075E-03   -1.0684    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.99599e-10
Minuit parameter uncertainties:
  1  4.28557e-05
  2  2.48757e-05
  3  74.6224
  4  37.7904
  5  11.3505
  6  6.08818
  7  50.239
  8  0.000122565
  9  19.4831
  10  13.1058
  11  3.87063e-06
  12  8.50843e-05
  13  72.8975
  14  20.5011
  15  8.77589e-06
  16  5.81279e-07
  17  1.08736e-06
  18  9.93791
  19  5.68512e-07
  20  49.9456
  21  31.4886
  22  1.55874e-05
  23  16.9395
  24  1.0275
  25  4.94085
  26  4.67622e-06
  27  1.29626e-06
  28  0.000113193
  29  1.03093e-05
  30  4.24502e-05
  31  2.24984e-05
  32  0.258524
  33  0.257662
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
587    Prefactor:  6.179e-01  2.577e-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.193e+00  2.585e-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: 9.66e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.38e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/929786/likelihoodResults_537148801_537408001_4FGL_J2328.3-4036_daily_bin1149.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) = 4338.90573531
delta logL = -0.000846237190672

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4338.90488984
delta logL = -7.68635800341e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10986E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3668       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1928       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .61808       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=   4338.905     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      203 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    7.0307        .90712E-02** at limit **
   2  alpha         2.4018        3.5755        .41226       -.30431E-04
   3  Normalizat    1.1930        .20470        .35069E-01   -.12052E-03
   4  Prefactor     .61787        .21807        .70210E-01   -.21449E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.40177
  Normalizat = 1.193
  Prefactor  = 0.61787
 **********
 **   18 **HESSE 
 **********

 FCN=   4338.905     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      234 TOTAL
                     EDM=   .85E-02    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    430.71        .31605E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.4018        2.8960        .50000       -.39304E-01
   3  Normalizat    1.1930        .44555E-01    .21725E-03   -.86819    
   4  Prefactor     .61787        .47409E-01    .31075E-03   -1.0684    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 0.0085075
Minuit parameter uncertainties:
  1  0.000571242
  2  7566.2
  3  0.0445562
  4  0.047412
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/929786': 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) = 4338.90488824
delta logL = 8.31088982522e-07

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
587    Prefactor:  6.179e-01  4.741e-02  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.193e+00  4.456e-02  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/929786/cmap_HighResolution_537148801_537408001_4FGL_J2328.3-4036_daily_bin1149.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.38e-05', job_status='DONE', photon_flux_upper_limit='9.66e-08', time_completed='2021-09-29 20:49:06.735320', job_id='929786', GAL2='0.62', fit_tolerance='1e-08', EG2='1.19', EG='1.19', time_epoch_completed='1632973746.74', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.62', dlogl='8.31e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.33' WHERE bin_id='1149' AND source_name='4FGL J2328.3-4036' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 20:49:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0294>
Subject: Job 929786: <4FGL_J2328.3-4036_daily_bin1149> in cluster <slac> Done

Job <4FGL_J2328.3-4036_daily_bin1149> 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) <bullet0294>, 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:49:07 2021
Results reported at Wed Sep 29 20:49:07 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2328.3-4036_daily_bin1149 352.082 -40.6037 537148801 537408001 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 :                                   745.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             279.29 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   820 sec.
    Turnaround time :                            821 sec.

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

