/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 4 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 = 7674
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2328.3-4036_daily_bin163
RA = 352.082, Dec = -40.6037
tmin = 281577601, tmax = 281836801
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='920378', job_status='RUN', time_executed='2021-09-29 20:20:44.219596', time_epoch_executed='1632972044.22' WHERE source_name='4FGL J2328.3-4036' and cadence='daily' and bin_id='163'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/920378

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/920378/ft1_4FGL_J2328.3-4036_daily_bin163.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/920378/ft2_4FGL_J2328.3-4036_daily_bin163.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/920378/ft1_4FGL_J2328.3-4036_daily_bin163.fits outfile=/scratch/kocevski/920378/ft1_filteredMKT_4FGL_J2328.3-4036_daily_bin163.fits ra=352.082 dec=-40.6037 rad=12.0 tmin=281577601.0 tmax=281836801.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.60
user 3.36
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/920378/ft2_4FGL_J2328.3-4036_daily_bin163.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/920378/ft1_filteredMKT_4FGL_J2328.3-4036_daily_bin163.fits evtable="EVENTS" outfile="/scratch/kocevski/920378/ft1_filtered_4FGL_J2328.3-4036_daily_bin163.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.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/920378/ft1_filtered_4FGL_J2328.3-4036_daily_bin163.fits" evtable="EVENTS" scfile=/scratch/kocevski/920378/ft2_4FGL_J2328.3-4036_daily_bin163.fits sctable="SC_DATA" outfile=/scratch/kocevski/920378/ltcube_281577601_281836801_4FGL_J2328.3-4036_daily_bin163.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/920378/ft2_4FGL_J2328.3-4036_daily_bin163.fits
.....................!
real 11.80
user 11.47
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/920378/ft1_filtered_4FGL_J2328.3-4036_daily_bin163.fits evtable="EVENTS" scfile=/scratch/kocevski/920378/ft2_4FGL_J2328.3-4036_daily_bin163.fits sctable="SC_DATA" expcube=/scratch/kocevski/920378/ltcube_281577601_281836801_4FGL_J2328.3-4036_daily_bin163.fits outfile=/scratch/kocevski/920378/expmap_281577601_281836801_4FGL_J2328.3-4036_daily_bin163.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/920378/ltcube_281577601_281836801_4FGL_J2328.3-4036_daily_bin163.fits
.....................!
real 192.71
user 187.23
sys 5.14

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/920378/ft1_filtered_4FGL_J2328.3-4036_daily_bin163.fits scfile=/scratch/kocevski/920378/ft2_4FGL_J2328.3-4036_daily_bin163.fits outfile=/scratch/kocevski/920378/cmap_281577601_281836801_4FGL_J2328.3-4036_daily_bin163.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.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/920378/ft1_filtered_4FGL_J2328.3-4036_daily_bin163.fits scfile=/scratch/kocevski/920378/ft2_4FGL_J2328.3-4036_daily_bin163.fits outfile=/scratch/kocevski/920378/cmap_HighResolution_281577601_281836801_4FGL_J2328.3-4036_daily_bin163.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=352.082 yref=-40.6037 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/920378/ft1_filtered_4FGL_J2328.3-4036_daily_bin163.fits evtable="EVENTS" scfile=/scratch/kocevski/920378/ft2_4FGL_J2328.3-4036_daily_bin163.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/920378/Model_4FGL_J2328.3-4036_daily_bin163.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/920378/ft1_filtered_4FGL_J2328.3-4036_daily_bin163.fits.....................!
real 46.57
user 45.27
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10111E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    13.207       1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.3729       1.0000         .10000E-03   10000.    
     6 'Prefactor '    9.6440       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    44.396       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .14743E-02   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10066E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    21.033       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    4.7011       1.0000         .10000E-03   10000.    
    18 'norm      '    11.206       1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.7068       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .12183E-02   1.0000         .10000E-03   10000.    
    21 'Prefactor '    36.592       1.0000         .10000E-03   10000.    
    22 'norm      '    2.1213       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    3.5949       1.0000         .10000E-03   10000.    
    25 'norm      '    6.6485       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    11.911       1.0000         .10000E-03   10000.    
    28 'Prefactor '    5.1272       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    3.6626       1.0000         .10000E-03   10000.    
    32 'Normalizat'    .88661       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .66172       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=   6560.496     FROM MIGRAD    STATUS=CONVERGED    882 CALLS     3954 TOTAL
                     EDM=   .48E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    36.201       -.38079E-06** at limit **
   2  Prefactor     .10000E-03    8.0484        .30416E-07** at limit **
   3  Prefactor     .10000E-03    27.780       -.10584E-05** at limit **
   4  Prefactor     13.207        13.338        .11398E-07   -.49279E-05
   5  Prefactor     4.3728        3.8611       -.21155E-08   -.50100E-04
   6  Prefactor     9.6438        4.0423        .37362E-07    .55622E-04
   7  Prefactor     .10000E-03    14.239       -.10748E-06** at limit **
   8  Prefactor     .10000E-03    21.940        .14136E-05** at limit **
   9  Prefactor     44.404        19.180        .13384E-06    .73451E-06
  10  Prefactor     .10007E-03    6.0445       -.92519E-06** at limit **
  11  Prefactor     .10000E-03    6.1848        .53754E-07** at limit **
  12  Prefactor     .10000E-03    25.350       -.40915E-06** at limit **
  13  Prefactor     .10001E-03    44.574        .18245E-05** at limit **
  14  Prefactor     .10000E-03    4.2131        .15882E-07** at limit **
  15  norm          21.032        11.270       -.85370E-07   -.47909E-05
  16  norm          .10000E-03    2.7388       -.39222E-07** at limit **
  17  norm          4.7018        3.7358       -.41997E-07    .21549E-03
  18  norm          11.206        6.0603        .15877E-07    .18170E-04
  19  Prefactor     1.7067        2.5247        .18602E-05   -.85284E-04
  20  Prefactor     .10003E-03    161.23       -.59325E-05** at limit **
  21  Prefactor     36.587        26.099       -.62872E-07   -.49223E-04
  22  norm          2.1231        4.5338       -.82457E-06    .73707E-04
  23  Prefactor     .10000E-03    3.6635       -.48693E-07** at limit **
  24  norm          3.5946        1.2193       -.50470E-07   -.16726E-03
  25  norm          6.6499        4.3156       -.18748E-06    .55633E-04
  26  Prefactor     .10000E-03    1.8359        .15895E-06** at limit **
  27  Prefactor     11.907        12.724       -.63882E-07   -.43836E-04
  28  Prefactor     5.1277        18.323        .55051E-05   -.33484E-04
  29  Prefactor     .10000E-03    1.5851       -.11281E-07** at limit **
  30  Prefactor     .10000E-03    .78375        .14917E-07** at limit **
  31  Prefactor     3.6597        64.205       -.23681E-06   -.14142E-04
  32  Normalizat    .88665        .14108       -.36013E-06    .81177E-04
  33  Prefactor     .66176        .15266       -.22288E-06    .28343E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 13.2066
  Prefactor  = 4.37284
  Prefactor  = 9.64376
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 44.4035
  Prefactor  = 0.000100073
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100008
  Prefactor  = 0.0001
  norm       = 21.0324
  norm       = 0.0001
  norm       = 4.70179
  norm       = 11.2064
  Prefactor  = 1.70673
  Prefactor  = 0.000100027
  Prefactor  = 36.5867
  norm       = 2.12309
  Prefactor  = 0.0001
  norm       = 3.59463
  norm       = 6.64991
  Prefactor  = 0.0001
  Prefactor  = 11.9074
  Prefactor  = 5.12766
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.65974
  Normalizat = 0.886649
  Prefactor  = 0.661756
 **********
 **   18 **HESSE 
 **********

 FCN=   6560.496     FROM HESSE     STATUS=OK           695 CALLS     4649 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    36.454        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    8.0753        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    27.868        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     13.207        13.334        .11022E-03   -1.4981    
   5  Prefactor     4.3728        3.8645        .14369E-03   -1.5290    
   6  Prefactor     9.6438        4.0414        .10156E-03   -1.5087    
   7  Prefactor     .10000E-03    14.252        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    22.400        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     44.404        19.179        .60171E-04   -1.4374    
  10  Prefactor     .10007E-03    36.261        .37605E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    6.3746        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    25.461        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10001E-03    44.846        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    4.2209        .16234E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          21.032        11.270        .87336E-04   -1.4790    
  16  norm          .10000E-03    2.7618        .13083E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          4.7018        3.7272        .13310E-03   -1.5274    
  18  norm          11.206        6.0590        .11968E-03   -1.5038    
  19  Prefactor     1.7067        2.5374        .77021E-03   -1.5447    
  20  Prefactor     .10003E-03    160.69        .41254E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     36.587        26.106        .66252E-04   -1.4497    
  22  norm          2.1231        4.3807        .20690E-03   -1.5417    
  23  Prefactor     .10000E-03    3.6698        .15138E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          3.5946        1.2132        .49313E-04   -1.5329    
  25  norm          6.6499        4.2509        .11747E-03   -1.5192    
  26  Prefactor     .10000E-03    3.5533        .20751E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     11.907        12.494        .11607E-03   -1.5018    
  28  Prefactor     5.1277        18.343        .88777E-03   -1.5255    
  29  Prefactor     .10000E-03    1.5951        .99475E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    .78699        .70014E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     3.6597        64.353        .21106E-03   -1.5325    
  32  Normalizat    .88665        .16513        .20613E-03   -.96931    
  33  Prefactor     .66176        .17913        .26358E-03   -1.0505    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.57141e-09
Minuit parameter uncertainties:
  1  0.000210949
  2  8.44308e-06
  3  0.00055717
  4  13.3372
  5  3.86475
  6  4.0415
  7  4.26884e-05
  8  0.00051422
  9  19.1818
  10  0.00326531
  11  8.27873e-06
  12  0.000199081
  13  0.00116611
  14  3.13381e-06
  15  11.2709
  16  4.64694e-06
  17  3.72741
  18  6.05936
  19  2.53754
  20  0.00417662
  21  26.1142
  22  4.38141
  23  1.37731e-06
  24  1.21325
  25  4.25109
  26  7.09735e-06
  27  12.4968
  28  18.3636
  29  2.14981e-06
  30  1.49435e-06
  31  30.7313
  32  0.165226
  33  0.179285
Done.

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

Extracting fit parameters...

4FGL J2328.3-4036
   Spectrum: LogParabola
455         norm:  2.123e+00  4.381e+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:  6.618e-01  1.793e-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:  8.866e-01  1.652e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.32
Ra Dec: 352.082 -40.604
Photon Flux Upper Limit: 8.02e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.80e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/920378/likelihoodResults_281577601_281836801_4FGL_J2328.3-4036_daily_bin163.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) = 6558.55580098
delta logL = 1.94048685244

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6558.53450501
delta logL = 1.96178282959

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .44106       1.0000         .10000E-03   10000.    
     2 'alpha     '    4.3824       1.0000          .0000       5.0000    
     3 'Normalizat'    .80388       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .71965       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=   6558.535     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      253 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .44017        3.8076        .64086E-02    .11346E-02
   2  alpha         4.3838        4.6565        .34019        .35439E-04
   3  Normalizat    .80383        .42085E-01    .43661E-01   -.12828E-04
   4  Prefactor     .71967        .47512E-01    .42662E-01   -.25062E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.44017
  alpha      = 4.38377
  Normalizat = 0.803831
  Prefactor  = 0.719671
 **********
 **   18 **HESSE 
 **********

 FCN=   6558.535     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      286 TOTAL
                     EDM=   .17E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .44017        6.6146        .28823E-04   -1.5575    
   2  alpha         4.3838        4.6343        .16146E-01    .85338    
   3  Normalizat    .80383        .15520        .21476E-03   -.99927    
   4  Prefactor     .71967        .17284        .25331E-03   -1.0276    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.66012e-07
Minuit parameter uncertainties:
  1  3.41271
  2  4.4853
  3  0.155283
  4  0.172972
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/920378': 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) = 6558.53450428
delta logL = 1.96178355635

Extracting fit parameters...

4FGL J2328.3-4036
   Spectrum: LogParabola
455         norm:  4.402e-01  3.413e+00  1.000e-04  1.000e+04 ( 1.000e-12)
456        alpha:  4.384e+00  4.485e+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.197e-01  1.730e-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:  8.038e-01  1.553e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.48
Ra Dec: 352.082 -40.604
Photon Index (Free Index): 4.38 +/- 4.49
Photon Flux (Free Index): 8.11e-08 +/- 4.55e-08
Energy Flux (Free Index): 1.18e-05 +/- 9.60e-06

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/920378/cmap_HighResolution_281577601_281836801_4FGL_J2328.3-4036_daily_bin163.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.80e-05', comment='SUCCESS', energy_flux2='1.18e-05', dlogl='1.96e+00', photon_flux2='8.11e-08', job_status='DONE', time_completed='2021-09-29 20:36:10.359636', photon_index_error2='4.49', photon_index2='4.38', ts='0.32', fit_tolerance='1e-08', GAL='0.66', photon_index_error='0.00', photon_flux_upper_limit='8.02e-08', energy_flux_error2='9.60e-06', EG='0.89', time_epoch_completed='1632972970.36', return_code='0', job_id='920378', GAL2='0.72', EG2='0.80', return_code2='102', photon_flux_error2='4.55e-08', ts2='4.48', photon_index='2.33' WHERE bin_id='163' AND source_name='4FGL J2328.3-4036' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 20:36:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0091>
Subject: Job 920378: <4FGL_J2328.3-4036_daily_bin163> in cluster <slac> Done

Job <4FGL_J2328.3-4036_daily_bin163> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Wed Sep 29 20:20:30 2021
Job was executed on host(s) <bullet0091>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 20:20:32 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:20:32 2021
Terminated at Wed Sep 29 20:36:11 2021
Results reported at Wed Sep 29 20:36:11 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2328.3-4036_daily_bin163 352.082 -40.6037 281577601 281836801 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 :                                   922.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             361.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   938 sec.
    Turnaround time :                            941 sec.

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

