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


Performing analysis on: 4FGL_J2328.3-4036_daily_bin1478
RA = 352.082, Dec = -40.6037
tmin = 622425601, tmax = 622684801
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='934732', job_status='RUN', time_executed='2021-09-29 20:40:46.105375', time_epoch_executed='1632973246.11' WHERE source_name='4FGL J2328.3-4036' and cadence='daily' and bin_id='1478'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/934732

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/934732/ft1_4FGL_J2328.3-4036_daily_bin1478.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/934732/ft2_4FGL_J2328.3-4036_daily_bin1478.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/934732/ft1_4FGL_J2328.3-4036_daily_bin1478.fits outfile=/scratch/kocevski/934732/ft1_filteredMKT_4FGL_J2328.3-4036_daily_bin1478.fits ra=352.082 dec=-40.6037 rad=12.0 tmin=622425601.0 tmax=622684801.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 4.27
user 4.02
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/934732/ft2_4FGL_J2328.3-4036_daily_bin1478.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/934732/ft1_filteredMKT_4FGL_J2328.3-4036_daily_bin1478.fits evtable="EVENTS" outfile="/scratch/kocevski/934732/ft1_filtered_4FGL_J2328.3-4036_daily_bin1478.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/934732/ft1_filtered_4FGL_J2328.3-4036_daily_bin1478.fits" evtable="EVENTS" scfile=/scratch/kocevski/934732/ft2_4FGL_J2328.3-4036_daily_bin1478.fits sctable="SC_DATA" outfile=/scratch/kocevski/934732/ltcube_622425601_622684801_4FGL_J2328.3-4036_daily_bin1478.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/934732/ft2_4FGL_J2328.3-4036_daily_bin1478.fits
.....................!
real 11.65
user 11.28
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/934732/ft1_filtered_4FGL_J2328.3-4036_daily_bin1478.fits evtable="EVENTS" scfile=/scratch/kocevski/934732/ft2_4FGL_J2328.3-4036_daily_bin1478.fits sctable="SC_DATA" expcube=/scratch/kocevski/934732/ltcube_622425601_622684801_4FGL_J2328.3-4036_daily_bin1478.fits outfile=/scratch/kocevski/934732/expmap_622425601_622684801_4FGL_J2328.3-4036_daily_bin1478.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/934732/ltcube_622425601_622684801_4FGL_J2328.3-4036_daily_bin1478.fits
.....................!
real 192.42
user 187.47
sys 4.63

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/934732/ft1_filtered_4FGL_J2328.3-4036_daily_bin1478.fits scfile=/scratch/kocevski/934732/ft2_4FGL_J2328.3-4036_daily_bin1478.fits outfile=/scratch/kocevski/934732/cmap_622425601_622684801_4FGL_J2328.3-4036_daily_bin1478.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=352.082 yref=-40.6037 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.52
user 0.40
sys 0.11

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/934732/ft1_filtered_4FGL_J2328.3-4036_daily_bin1478.fits scfile=/scratch/kocevski/934732/ft2_4FGL_J2328.3-4036_daily_bin1478.fits outfile=/scratch/kocevski/934732/cmap_HighResolution_622425601_622684801_4FGL_J2328.3-4036_daily_bin1478.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.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/934732/ft1_filtered_4FGL_J2328.3-4036_daily_bin1478.fits evtable="EVENTS" scfile=/scratch/kocevski/934732/ft2_4FGL_J2328.3-4036_daily_bin1478.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/934732/Model_4FGL_J2328.3-4036_daily_bin1478.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/934732/ft1_filtered_4FGL_J2328.3-4036_daily_bin1478.fits.....................!
real 36.60
user 35.37
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10741E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    10.696       1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.3503       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    14.576       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    46.859       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10602E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    3.6062       1.0000         .10000E-03   10000.    
    19 'Prefactor '    13.116       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10163E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    3.3728       1.0000         .10000E-03   10000.    
    23 'Prefactor '    12.550       1.0000         .10000E-03   10000.    
    24 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10089E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    9.5865       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    8.3472       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .16974E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.0890       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .78637       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=   4446.608     FROM MIGRAD    STATUS=CONVERGED    873 CALLS     4536 TOTAL
                     EDM=   .13E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    25.279       -.12456E-06** at limit **
   2  Prefactor     .10000E-03    5.5493       -.32781E-08** at limit **
   3  Prefactor     .10000E-03    78.273        .39704E-06** at limit **
   4  Prefactor     .10000E-03    9.0374        .31683E-06** at limit **
   5  Prefactor     10.696        7.6876        .34835E-07   -.34287E-04
   6  Prefactor     5.3505        4.6186        .14148E-06    .11658E-04
   7  Prefactor     .10000E-03    16.827        .10712E-06** at limit **
   8  Prefactor     .10000E-03    12.142        .21979E-07** at limit **
   9  Prefactor     .10000E-03    41.972       -.55266E-06** at limit **
  10  Prefactor     14.577        15.699       -.19891E-06   -.58443E-05
  11  Prefactor     .10000E-03    7.4587       -.12449E-06** at limit **
  12  Prefactor     .10000E-03    12.212        .15004E-06** at limit **
  13  Prefactor     46.787        82.577        .68933E-05    .23154E-04
  14  Prefactor     .10000E-03    23.399       -.28382E-06** at limit **
  15  norm          .10000E-03    10.041       -.44014E-06** at limit **
  16  norm          .10000E-03    1.9842        .55416E-08** at limit **
  17  norm          .10000E-03    6.0409       -.38917E-07** at limit **
  18  norm          3.6060        8.2341        .16590E-05    .77311E-04
  19  Prefactor     13.117        7.3390        .20209E-07   -.17190E-04
  20  Prefactor     .10000E-03    26.840        .15322E-06** at limit **
  21  Prefactor     .10000E-03    28.316        .51049E-06** at limit **
  22  norm          3.3715        4.3061        .78468E-07   -.13346E-04
  23  Prefactor     12.550        13.241        .20233E-06   -.12930E-04
  24  norm          .10000E-03    .37656        .13498E-07** at limit **
  25  norm          .10000E-03    2.6362        .14982E-07** at limit **
  26  Prefactor     .10000E-03    1.4533        .37734E-07** at limit **
  27  Prefactor     9.5838        20.438        .64665E-06   -.16581E-04
  28  Prefactor     .10000E-03    34.094        .77042E-06** at limit **
  29  Prefactor     8.3474        7.2770        .34563E-06    .36365E-04
  30  Prefactor     .10021E-03    2.8908        .73523E-06** at limit **
  31  Prefactor     .10000E-03    17.809       -.16012E-06** at limit **
  32  Normalizat    1.0890        .20135       -.45724E-07   -.87545E-04
  33  Prefactor     .78643        .21466       -.10962E-05   -.57748E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.6963
  Prefactor  = 5.35048
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.5767
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 46.7872
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 3.60601
  Prefactor  = 13.1172
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.37147
  Prefactor  = 12.5503
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.58381
  Prefactor  = 0.0001
  Prefactor  = 8.34736
  Prefactor  = 0.000100207
  Prefactor  = 0.0001
  Normalizat = 1.089
  Prefactor  = 0.786428
 **********
 **   18 **HESSE 
 **********

 FCN=   4446.608     FROM HESSE     STATUS=OK           685 CALLS     5221 TOTAL
                     EDM=   .44E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    25.290        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    5.5502        .15342E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    78.713        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    9.0390        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     10.696        7.6961        .12250E-03   -1.5054    
   6  Prefactor     5.3505        4.6187        .12680E-03   -1.5245    
   7  Prefactor     .10000E-03    16.830        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    12.168        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    42.489        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     14.577        15.744        .10491E-03   -1.4944    
  11  Prefactor     .10000E-03    7.6133        .17775E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    12.215        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     46.787        82.734        .58575E-04   -1.4339    
  14  Prefactor     .10000E-03    23.802        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    10.093        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    1.9844        .91735E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    6.1851        .31889E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          3.6060        8.2488        .10639E-02   -1.5328    
  19  Prefactor     13.117        7.3409        .11060E-03   -1.4983    
  20  Prefactor     .10000E-03    26.880        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    28.351        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          3.3715        4.2768        .14862E-03   -1.5341    
  23  Prefactor     12.550        13.245        .56537E-03   -1.4999    
  24  norm          .10000E-03    .38593        .79783E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    2.6601        .10563E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    1.4636        .78389E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     9.5838        20.373        .64715E-03   -1.5089    
  28  Prefactor     .10000E-03    34.162        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     8.3474        7.2891        .69379E-03   -1.5130    
  30  Prefactor     .10021E-03    44.303        .20012E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .10000E-03    17.815        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    1.0890        .23538        .21600E-03   -.90106    
  33  Prefactor     .78643        .24963        .27338E-03   -1.0023    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.42599e-09
Minuit parameter uncertainties:
  1  3.73031e-07
  2  7.76769e-07
  3  2.04218e-05
  4  5.18649e-06
  5  7.69686
  6  4.61901
  7  1.7931e-06
  8  7.5462e-06
  9  4.98665e-05
  10  15.7487
  11  5.48415e-07
  12  4.2e-06
  13  82.9384
  14  1.79209e-05
  15  2.30252e-06
  16  1.57528e-07
  17  2.56007e-06
  18  8.25137
  19  7.34143
  20  5.93248e-07
  21  1.50833e-05
  22  4.27716
  23  13.2481
  24  2.50754e-07
  25  4.66386e-07
  26  1.21113e-07
  27  20.3878
  28  2.93379e-05
  29  7.28983
  30  0.00605955
  31  2.38768e-06
  32  0.235608
  33  0.24999
Done.

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

Extracting fit parameters...

4FGL J2328.3-4036
   Spectrum: LogParabola
455         norm:  3.371e+00  4.277e+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

GAL_V02
   Spectrum: PowerLaw
587    Prefactor:  7.864e-01  2.500e-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.089e+00  2.356e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.04
Ra Dec: 352.082 -40.604
Photon Index (Fixed Index): 2.33 +/- 0.00
Photon Flux (Fixed Index): 2.55e-08 +/- 3.23e-08
Energy Flux (Fixed Index): 8.90e-06 +/- 1.13e-05

TS (Fixed Index): 1.04
Ra Dec: 352.082 -40.604
Photon Flux Upper Limit: 1.09e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.79e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/934732/likelihoodResults_622425601_622684801_4FGL_J2328.3-4036_daily_bin1478.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) = 4446.52707536
delta logL = 0.0812532327909

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4446.51514709
delta logL = 0.0931815054382

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.7588       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.7581       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0747       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79564       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=   4446.515     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      195 TOTAL
                     EDM=   .45E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.7588        91.779        .61266E-02    .24444E-03
   2  alpha         2.7580        3.3960        .41432        .26268E-04
   3  Normalizat    1.0748        .61639E-01    .39136E-01    .47161E-05
   4  Prefactor     .79562        .61796E-01    .43660E-01    .12864E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.75882
  alpha      = 2.75803
  Normalizat = 1.07479
  Prefactor  = 0.795616
 **********
 **   18 **HESSE 
 **********

 FCN=   4446.515     FROM HESSE     STATUS=OK            33 CALLS      228 TOTAL
                     EDM=   .42E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.7588        4.2136        .12046E-03   -1.5376    
   2  alpha         2.7580        1.0442        .16189E-01    .10340    
   3  Normalizat    1.0748        .22962        .21724E-03   -.90565    
   4  Prefactor     .79562        .24875        .27192E-03   -.99890    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.20056e-12
Minuit parameter uncertainties:
  1  4.21402
  2  1.07759
  3  0.229829
  4  0.249106
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/934732': 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) = 4446.51514701
delta logL = 0.0931815844342

Extracting fit parameters...

4FGL J2328.3-4036
   Spectrum: LogParabola
455         norm:  2.759e+00  4.214e+00  1.000e-04  1.000e+04 ( 1.000e-12)
456        alpha:  2.758e+00  1.078e+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:  7.956e-01  2.491e-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.075e+00  2.298e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.22
Ra Dec: 352.082 -40.604
Photon Index (Free Index): 2.76 +/- 1.08
Photon Flux (Free Index): 3.70e-08 +/- 4.66e-08
Energy Flux (Free Index): 8.84e-06 +/- 1.02e-05

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/934732/cmap_HighResolution_622425601_622684801_4FGL_J2328.3-4036_daily_bin1478.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.79e-05', comment='SUCCESS', photon_flux='2.55e-08', energy_flux2='8.84e-06', photon_flux_error='3.23e-08', dlogl='9.32e-02', energy_flux='8.90e-06', photon_flux2='3.70e-08', job_status='DONE', time_completed='2021-09-29 20:53:27.722914', photon_index_error2='1.08', photon_index2='2.76', ts='1.04', fit_tolerance='1e-08', GAL='0.79', photon_index_error='0.00', photon_flux_upper_limit='1.09e-07', energy_flux_error2='1.02e-05', EG='1.09', time_epoch_completed='1632974007.72', return_code='0', job_id='934732', GAL2='0.80', EG2='1.07', return_code2='0', energy_flux_error='1.13e-05', photon_flux_error2='4.66e-08', ts2='1.22', photon_index='2.33' WHERE bin_id='1478' AND source_name='4FGL J2328.3-4036' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 20:53:27 PDT 2021


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

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2328.3-4036_daily_bin1478 352.082 -40.6037 622425601 622684801 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 :                                   755.43 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             299.08 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   773 sec.
    Turnaround time :                            775 sec.

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

