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


Performing analysis on: 4FGL_J2328.3-4036_daily_bin1162
RA = 352.082, Dec = -40.6037
tmin = 540518401, tmax = 540777601
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='929824', job_status='RUN', time_executed='2021-09-29 20:37:08.613865', time_epoch_executed='1632973028.61' WHERE source_name='4FGL J2328.3-4036' and cadence='daily' and bin_id='1162'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/929824

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/929824/ft1_4FGL_J2328.3-4036_daily_bin1162.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/929824/ft2_4FGL_J2328.3-4036_daily_bin1162.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/929824/ft1_4FGL_J2328.3-4036_daily_bin1162.fits outfile=/scratch/kocevski/929824/ft1_filteredMKT_4FGL_J2328.3-4036_daily_bin1162.fits ra=352.082 dec=-40.6037 rad=12.0 tmin=540518401.0 tmax=540777601.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.78
user 3.52
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/929824/ft2_4FGL_J2328.3-4036_daily_bin1162.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/929824/ft1_filteredMKT_4FGL_J2328.3-4036_daily_bin1162.fits evtable="EVENTS" outfile="/scratch/kocevski/929824/ft1_filtered_4FGL_J2328.3-4036_daily_bin1162.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/929824/ft1_filtered_4FGL_J2328.3-4036_daily_bin1162.fits" evtable="EVENTS" scfile=/scratch/kocevski/929824/ft2_4FGL_J2328.3-4036_daily_bin1162.fits sctable="SC_DATA" outfile=/scratch/kocevski/929824/ltcube_540518401_540777601_4FGL_J2328.3-4036_daily_bin1162.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/929824/ft2_4FGL_J2328.3-4036_daily_bin1162.fits
.....................!
real 12.09
user 11.71
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/929824/ft1_filtered_4FGL_J2328.3-4036_daily_bin1162.fits evtable="EVENTS" scfile=/scratch/kocevski/929824/ft2_4FGL_J2328.3-4036_daily_bin1162.fits sctable="SC_DATA" expcube=/scratch/kocevski/929824/ltcube_540518401_540777601_4FGL_J2328.3-4036_daily_bin1162.fits outfile=/scratch/kocevski/929824/expmap_540518401_540777601_4FGL_J2328.3-4036_daily_bin1162.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/929824/ltcube_540518401_540777601_4FGL_J2328.3-4036_daily_bin1162.fits
.....................!
real 190.47
user 185.47
sys 4.68

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/929824/ft1_filtered_4FGL_J2328.3-4036_daily_bin1162.fits scfile=/scratch/kocevski/929824/ft2_4FGL_J2328.3-4036_daily_bin1162.fits outfile=/scratch/kocevski/929824/cmap_540518401_540777601_4FGL_J2328.3-4036_daily_bin1162.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.55
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/929824/ft1_filtered_4FGL_J2328.3-4036_daily_bin1162.fits scfile=/scratch/kocevski/929824/ft2_4FGL_J2328.3-4036_daily_bin1162.fits outfile=/scratch/kocevski/929824/cmap_HighResolution_540518401_540777601_4FGL_J2328.3-4036_daily_bin1162.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/929824/ft1_filtered_4FGL_J2328.3-4036_daily_bin1162.fits evtable="EVENTS" scfile=/scratch/kocevski/929824/ft2_4FGL_J2328.3-4036_daily_bin1162.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/929824/Model_4FGL_J2328.3-4036_daily_bin1162.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/929824/ft1_filtered_4FGL_J2328.3-4036_daily_bin1162.fits.....................!
real 35.10
user 33.85
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    19.098       1.0000         .10000E-03   10000.    
     2 'Prefactor '    13.916       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10260E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .14514       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10596E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10090E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .71959E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    11.862       1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.7968       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    98.879       1.0000         .10000E-03   10000.    
    14 'Prefactor '    23.349       1.0000         .10000E-03   10000.    
    15 'norm      '    8.9340       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10053E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    12.840       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10099E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .78952E-02   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10921E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    7.0840       1.0000         .10000E-03   10000.    
    23 'Prefactor '    16.927       1.0000         .10000E-03   10000.    
    24 'norm      '    .51460       1.0000         .10000E-03   10000.    
    25 'norm      '    1.4791       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10582E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    13.596       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    25.295       1.0000         .10000E-03   10000.    
    32 'Normalizat'    .67679       1.0000         .10000E-01   10.000    
    33 'Prefactor '    1.2282       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5900E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4244.974     FROM MIGRAD    STATUS=CONVERGED   1651 CALLS     5415 TOTAL
                     EDM=   .77E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     19.160        44.181        .91650E-04   -.29895E-04
   2  Prefactor     13.935        29.780        .10737E-03    .61941E-04
   3  Prefactor     .10000E-03    55.332        .18142E-02** at limit **
   4  Prefactor     .10000E-03    11.457        .18142E-02** at limit **
   5  Prefactor     .18293        64.730        .34546E-02    .45585E-03
   6  Prefactor     .10000E-03    7.0196        .22839E-02** at limit **
   7  Prefactor     .10000E-03    15.265        .18142E-02** at limit **
   8  Prefactor     .10000E-03    108.22        .41928E-02** at limit **
   9  Prefactor     .10000E-03    10.768        .18142E-02** at limit **
  10  Prefactor     11.872        18.548        .11631E-03   -.11827E-04
  11  Prefactor     4.7971        5.9858        .17199E-03   -.19434E-04
  12  Prefactor     .10000E-03    20.394        .18142E-02** at limit **
  13  Prefactor     98.879        89.152        .40427E-04   -.30934E-05
  14  Prefactor     23.359        20.427        .82896E-04   -.23493E-03
  15  norm          8.9327        8.9168        .13410E-03    .10089E-04
  16  norm          .10000E-03    2.7226        .10496E-02** at limit **
  17  norm          .10000E-03    4.4934        .13407E-02** at limit **
  18  norm          12.844        11.126        .11179E-03    .34374E-04
  19  Prefactor     .10000E-03    3.6182        .12064E-02** at limit **
  20  Prefactor     .11187E-03    57.482        .10927    ** at limit **
  21  Prefactor     .10000E-03    57.021        .18142E-02** at limit **
  22  norm          7.0808        5.6519        .11738E-03    .12238E-02
  23  Prefactor     16.928        13.848        .97347E-04   -.10277E-03
  24  norm          .51371        1.4022        .11045E-03    .38135E-03
  25  norm          1.4796        3.2662        .16901E-03    .36035E-03
  26  Prefactor     .10000E-03    4.4429        .18476E-02** at limit **
  27  Prefactor     .10000E-03    6.8954        .16706E-02** at limit **
  28  Prefactor     .10000E-03    23.657        .18142E-02** at limit **
  29  Prefactor     13.613        10.942        .10863E-03    .31502E-04
  30  Prefactor     .10000E-03    1.6597        .81619E-03** at limit **
  31  Prefactor     25.082        75.244        .79649E-04   -.24836E-04
  32  Normalizat    .67629        .27414        .27616E-03    .25730E-04
  33  Prefactor     1.2286        .28235        .23705E-03    .29233E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 19.1601
  Prefactor  = 13.9355
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.182929
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.8721
  Prefactor  = 4.79711
  Prefactor  = 0.0001
  Prefactor  = 98.8786
  Prefactor  = 23.3594
  norm       = 8.93266
  norm       = 0.0001
  norm       = 0.0001
  norm       = 12.8436
  Prefactor  = 0.0001
  Prefactor  = 0.000111871
  Prefactor  = 0.0001
  norm       = 7.0808
  Prefactor  = 16.9277
  norm       = 0.513711
  norm       = 1.47965
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.6125
  Prefactor  = 0.0001
  Prefactor  = 25.0815
  Normalizat = 0.676295
  Prefactor  = 1.22861
 **********
 **   18 **HESSE 
 **********

 FCN=   4244.974     FROM HESSE     STATUS=OK           673 CALLS     6088 TOTAL
                     EDM=   .66E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     19.160        44.168        .36660E-05   -1.4832    
   2  Prefactor     13.935        29.774        .42948E-05   -1.4961    
   3  Prefactor     .10000E-03    55.335        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    11.456        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .18293        65.212        .13819E-03   -1.5622    
   6  Prefactor     .10000E-03    7.0530        .45678E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    15.265        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    109.02        .83856E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    10.769        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     11.872        18.536        .46525E-05   -1.5019    
  11  Prefactor     4.7971        5.9848        .68794E-05   -1.5270    
  12  Prefactor     .10000E-03    20.395        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     98.879        89.106        .80854E-05   -1.3716    
  14  Prefactor     23.359        20.410        .33158E-05   -1.4741    
  15  norm          8.9327        8.9167        .53638E-05   -1.5110    
  16  norm          .10000E-03    2.7226        .20992E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    4.4940        .26813E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          12.844        11.123        .44715E-05   -1.4991    
  19  Prefactor     .10000E-03    3.6183        .24127E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .11187E-03    54.907        .11229       -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    57.026        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          7.0808        5.6413        .46954E-05   -1.5176    
  23  Prefactor     16.928        13.844        .38939E-05   -1.4885    
  24  norm          .51371        1.4011        .44181E-05   -1.5565    
  25  norm          1.4796        3.2659        .67603E-05   -1.5465    
  26  Prefactor     .10000E-03    4.4626        .36952E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    6.8955        .33412E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    23.657        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     13.613        10.935        .43452E-05   -1.4970    
  30  Prefactor     .10000E-03    1.6598        .16324E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     25.082        75.225        .31860E-05   -1.4706    
  32  Normalizat    .67629        .27166        .11046E-04   -1.0484    
  33  Prefactor     1.2286        .28167        .47410E-04   -.85455    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.55167e-09
Minuit parameter uncertainties:
  1  44.243
  2  29.8062
  3  3.0783e-05
  4  1.25992e-05
  5  6.91345
  6  3.31975e-05
  7  3.30586e-06
  8  2.8924e-05
  9  1.05194e-05
  10  18.5446
  11  5.98557
  12  2.45708e-05
  13  89.2264
  14  20.4163
  15  8.91806
  16  7.67908e-06
  17  9.54362e-06
  18  11.1247
  19  9.54006e-06
  20  0.0511079
  21  1.3932e-05
  22  5.6417
  23  13.8465
  24  1.40114
  25  3.26628
  26  2.00636e-05
  27  1.00227e-05
  28  1.00338e-05
  29  10.9369
  30  3.56391e-06
  31  75.511
  32  0.272197
  33  0.282017
Done.

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

Extracting fit parameters...

4FGL J2328.3-4036
   Spectrum: LogParabola
455         norm:  7.081e+00  5.642e+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:  1.229e+00  2.820e-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:  6.763e-01  2.722e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.04
Ra Dec: 352.082 -40.604
Photon Index (Fixed Index): 2.33 +/- 0.00
Photon Flux (Fixed Index): 5.35e-08 +/- 4.26e-08
Energy Flux (Fixed Index): 1.87e-05 +/- 1.49e-05

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) = 4244.48149371
delta logL = 0.492502281167

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4244.47396102
delta logL = 0.50003496649

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.4833       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6506       1.0000          .0000       5.0000    
     3 'Normalizat'    .70550       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2140       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=   4244.474     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      209 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.4833        5.1787        .39405E-02    .54026E-02
   2  alpha         1.6506        .49592        .34764       -.35191E-04
   3  Normalizat    .70551        .20036        .61228E-01    .97685E-05
   4  Prefactor     1.2141        .22599        .53909E-01    .11493E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 6.48332
  alpha      = 1.65062
  Normalizat = 0.70551
  Prefactor  = 1.21405
 **********
 **   18 **HESSE 
 **********

 FCN=   4244.474     FROM HESSE     STATUS=OK            31 CALLS      240 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.4833        6.4480        .12835E-03   -1.5199    
   2  alpha         1.6506        .70188        .13388E-01   -.34666    
   3  Normalizat    .70551        .24402        .27084E-03   -1.0368    
   4  Prefactor     1.2141        .27568        .23836E-03   -.85900    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.7859e-08
Minuit parameter uncertainties:
  1  6.44866
  2  0.71275
  3  0.244399
  4  0.276012
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/929824': 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) = 4244.47396101
delta logL = 0.500034981053

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
587    Prefactor:  1.214e+00  2.760e-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:  7.055e-01  2.444e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.04
Ra Dec: 352.082 -40.604
Photon Index (Free Index): 1.65 +/- 0.71
Photon Flux (Free Index): 2.50e-08 +/- 3.29e-08
Energy Flux (Free Index): 3.05e-05 +/- 3.33e-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/929824/cmap_HighResolution_540518401_540777601_4FGL_J2328.3-4036_daily_bin1162.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.35e-08', energy_flux2='3.05e-05', photon_flux_error='4.26e-08', dlogl='5.00e-01', energy_flux='1.87e-05', photon_flux2='2.50e-08', job_status='DONE', time_completed='2021-09-29 20:49:08.855262', photon_index_error2='0.71', photon_index2='1.65', ts='4.04', fit_tolerance='1e-08', GAL='1.23', photon_index_error='0.00', energy_flux_error2='3.33e-05', EG='0.68', time_epoch_completed='1632973748.86', return_code='0', job_id='929824', GAL2='1.21', EG2='0.71', return_code2='0', energy_flux_error='1.49e-05', photon_flux_error2='3.29e-08', ts2='5.04', photon_index='2.33' WHERE bin_id='1162' AND source_name='4FGL J2328.3-4036' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 20:49:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0055>
Subject: Job 929824: <4FGL_J2328.3-4036_daily_bin1162> in cluster <slac> Done

Job <4FGL_J2328.3-4036_daily_bin1162> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep 29 20:35:28 2021
Job was executed on host(s) <bullet0055>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 20:35:29 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:29 2021
Terminated at Wed Sep 29 20:49:09 2021
Results reported at Wed Sep 29 20:49:09 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2328.3-4036_daily_bin1162 352.082 -40.6037 540518401 540777601 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 :                                   693.11 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             265.21 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.

