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


Performing analysis on: 4FGL_J2328.3-4036_daily_bin813
RA = 352.082, Dec = -40.6037
tmin = 450057601, tmax = 450316801
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='925054', job_status='RUN', time_executed='2021-09-29 20:32:31.200981', time_epoch_executed='1632972751.2' WHERE source_name='4FGL J2328.3-4036' and cadence='daily' and bin_id='813'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/925054

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/925054/ft1_4FGL_J2328.3-4036_daily_bin813.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/925054/ft2_4FGL_J2328.3-4036_daily_bin813.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/925054/ft1_4FGL_J2328.3-4036_daily_bin813.fits outfile=/scratch/kocevski/925054/ft1_filteredMKT_4FGL_J2328.3-4036_daily_bin813.fits ra=352.082 dec=-40.6037 rad=12.0 tmin=450057601.0 tmax=450316801.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.52
user 3.30
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/925054/ft2_4FGL_J2328.3-4036_daily_bin813.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/925054/ft1_filteredMKT_4FGL_J2328.3-4036_daily_bin813.fits evtable="EVENTS" outfile="/scratch/kocevski/925054/ft1_filtered_4FGL_J2328.3-4036_daily_bin813.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.50
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/925054/ft1_filtered_4FGL_J2328.3-4036_daily_bin813.fits" evtable="EVENTS" scfile=/scratch/kocevski/925054/ft2_4FGL_J2328.3-4036_daily_bin813.fits sctable="SC_DATA" outfile=/scratch/kocevski/925054/ltcube_450057601_450316801_4FGL_J2328.3-4036_daily_bin813.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/925054/ft2_4FGL_J2328.3-4036_daily_bin813.fits
.....................!
real 12.93
user 12.59
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/925054/ft1_filtered_4FGL_J2328.3-4036_daily_bin813.fits evtable="EVENTS" scfile=/scratch/kocevski/925054/ft2_4FGL_J2328.3-4036_daily_bin813.fits sctable="SC_DATA" expcube=/scratch/kocevski/925054/ltcube_450057601_450316801_4FGL_J2328.3-4036_daily_bin813.fits outfile=/scratch/kocevski/925054/expmap_450057601_450316801_4FGL_J2328.3-4036_daily_bin813.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/925054/ltcube_450057601_450316801_4FGL_J2328.3-4036_daily_bin813.fits
.....................!
real 193.59
user 187.95
sys 5.27

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/925054/ft1_filtered_4FGL_J2328.3-4036_daily_bin813.fits scfile=/scratch/kocevski/925054/ft2_4FGL_J2328.3-4036_daily_bin813.fits outfile=/scratch/kocevski/925054/cmap_450057601_450316801_4FGL_J2328.3-4036_daily_bin813.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.35
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/925054/ft1_filtered_4FGL_J2328.3-4036_daily_bin813.fits scfile=/scratch/kocevski/925054/ft2_4FGL_J2328.3-4036_daily_bin813.fits outfile=/scratch/kocevski/925054/cmap_HighResolution_450057601_450316801_4FGL_J2328.3-4036_daily_bin813.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.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/925054/ft1_filtered_4FGL_J2328.3-4036_daily_bin813.fits evtable="EVENTS" scfile=/scratch/kocevski/925054/ft2_4FGL_J2328.3-4036_daily_bin813.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/925054/Model_4FGL_J2328.3-4036_daily_bin813.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/925054/ft1_filtered_4FGL_J2328.3-4036_daily_bin813.fits.....................!
real 35.88
user 34.67
sys 1.14

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    16.423       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    14.915       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.2937       1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.0736       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.3949       1.0000         .10000E-03   10000.    
    15 'norm      '    4.1805       1.0000         .10000E-03   10000.    
    16 'norm      '    .51321E-01   1.0000         .10000E-03   10000.    
    17 'norm      '    .10031E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    14.867       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    3.9218       1.0000         .10000E-03   10000.    
    23 'Prefactor '    27.066       1.0000         .10000E-03   10000.    
    24 'norm      '    2.4032       1.0000         .10000E-03   10000.    
    25 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .42124E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    24.628       1.0000         .10000E-03   10000.    
    29 'Prefactor '    11.338       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    .73469       1.0000         .10000E-01   10.000    
    33 'Prefactor '    1.2179       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=   4377.331     FROM MIGRAD    STATUS=CONVERGED   1595 CALLS     5345 TOTAL
                     EDM=   .96E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    23.015        .18142E-02** at limit **
   2  Prefactor     16.429        26.854        .98831E-04    .23236E-04
   3  Prefactor     .10000E-03    36.302        .18142E-02** at limit **
   4  Prefactor     .10000E-03    53.098        .18142E-02** at limit **
   5  Prefactor     14.916        10.240        .10371E-03    .10918E-03
   6  Prefactor     .10000E-03    2.4316        .10009E-02** at limit **
   7  Prefactor     .10000E-03    18.387        .18142E-02** at limit **
   8  Prefactor     2.2883        45.448        .13551E-02    .33147E-04
   9  Prefactor     1.0494        120.74        .55939E-02    .44500E-03
  10  Prefactor     .10000E-03    40.767        .36285E-03** at limit **
  11  Prefactor     .10000E-03    16.171        .36285E-03** at limit **
  12  Prefactor     .10000E-03    85.517        .18142E-02** at limit **
  13  Prefactor     .10000E-03    22.406        .18142E-02** at limit **
  14  Prefactor     2.3968        31.447        .13231E-02    .18070E-04
  15  norm          4.1797        8.8808        .19711E-03    .17764E-04
  16  norm          .31795E-01    6.5605        .55547E-01    .28095E-03
  17  norm          .10000E-03    3.6578        .12329E-02** at limit **
  18  norm          .10000E-03    3.3911        .11888E-02** at limit **
  19  Prefactor     .10000E-03    5.2632        .14759E-02** at limit **
  20  Prefactor     14.930        52.956        .10388E-03   -.49579E-04
  21  Prefactor     .10000E-03    15.503        .18142E-02** at limit **
  22  norm          3.9184        6.4027        .15210E-03   -.29719E-03
  23  Prefactor     27.069        20.097        .77004E-04    .96998E-04
  24  norm          2.4038        1.6412        .61979E-04    .64053E-03
  25  norm          .10000E-03    3.0693        .22267E-03** at limit **
  26  Prefactor     .10000E-03    28.192        .18960E-02** at limit **
  27  Prefactor     .10000E-03    11.446        .18142E-02** at limit **
  28  Prefactor     24.607        56.123        .80719E-04   -.22957E-04
  29  Prefactor     11.338        7.2940        .11898E-03    .29526E-04
  30  Prefactor     .10000E-03    1.6907        .83828E-03** at limit **
  31  Prefactor     .10000E-03    22.197        .18142E-02** at limit **
  32  Normalizat    .73443        .26384        .26638E-03    .28189E-03
  33  Prefactor     1.2182        .28437        .23702E-03    .18088E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 16.4286
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.9159
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.28827
  Prefactor  = 1.04944
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 2.39683
  norm       = 4.17973
  norm       = 0.0317947
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.9301
  Prefactor  = 0.0001
  norm       = 3.91844
  Prefactor  = 27.0687
  norm       = 2.40381
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 24.607
  Prefactor  = 11.3378
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.734432
  Prefactor  = 1.21821
 **********
 **   18 **HESSE 
 **********

 FCN=   4377.331     FROM HESSE     STATUS=OK           677 CALLS     6022 TOTAL
                     EDM=   .87E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    23.016        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     16.429        26.839        .39533E-05   -1.4897    
   3  Prefactor     .10000E-03    36.303        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    53.107        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     14.916        10.236        .41484E-05   -1.4935    
   6  Prefactor     .10000E-03    2.4320        .20018E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    18.388        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     2.2883        45.302        .54204E-04   -1.5405    
   9  Prefactor     1.0494        120.63        .22376E-03   -1.5503    
  10  Prefactor     .10000E-03    40.768        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    16.171        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    85.551        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    22.406        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     2.3968        31.276        .52925E-04   -1.5398    
  15  norm          4.1797        8.8806        .78846E-05   -1.5299    
  16  norm          .31795E-01    6.5144        .55886E-01   -1.5672    
  17  norm          .10000E-03    3.6580        .24658E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    3.3912        .23776E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    5.2636        .29519E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     14.930        52.896        .41550E-05   -1.4935    
  21  Prefactor     .10000E-03    15.503        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          3.9184        6.3995        .60838E-05   -1.5312    
  23  Prefactor     27.069        20.091        .30802E-05   -1.4667    
  24  norm          2.4038        1.6386        .24792E-05   -1.5398    
  25  norm          .10000E-03    3.0694        .44534E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    28.754        .37920E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    11.447        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     24.607        56.076        .32288E-05   -1.4715    
  29  Prefactor     11.338        7.2922        .47591E-05   -1.5034    
  30  Prefactor     .10000E-03    1.6908        .16766E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .10000E-03    22.198        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    .73443        .26371        .10655E-04   -1.0255    
  33  Prefactor     1.2182        .28464        .47404E-04   -.85773    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.66101e-09
Minuit parameter uncertainties:
  1  4.83093e-05
  2  26.8585
  3  0.000103667
  4  0.000111889
  5  10.2374
  6  3.38281e-06
  7  0.000101571
  8  20.3804
  9  22.5487
  10  0.000397905
  11  4.78568e-05
  12  0.000492597
  13  3.08812e-05
  14  17.3271
  15  8.8834
  16  0.908887
  17  5.6849e-05
  18  5.17734e-06
  19  2.05246e-05
  20  53.0626
  21  3.8565e-05
  22  6.40057
  23  20.0961
  24  1.63863
  25  4.90927e-05
  26  4.43084e-05
  27  1.97107e-05
  28  56.1966
  29  7.29273
  30  3.99325e-07
  31  1.20171e-05
  32  0.264171
  33  0.285001
Done.

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

Extracting fit parameters...

4FGL J2328.3-4036
   Spectrum: LogParabola
455         norm:  3.918e+00  6.401e+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.218e+00  2.850e-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.344e-01  2.642e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.05
Ra Dec: 352.082 -40.604
Photon Index (Fixed Index): 2.33 +/- 0.00
Photon Flux (Fixed Index): 2.96e-08 +/- 4.83e-08
Energy Flux (Fixed Index): 1.03e-05 +/- 1.69e-05

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

Saving results to:
/scratch/kocevski/925054/likelihoodResults_450057601_450316801_4FGL_J2328.3-4036_daily_bin813.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) = 4377.32322586
delta logL = 0.00785713509958

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4377.3219757
delta logL = 0.00910729754469

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.6873       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4355       1.0000          .0000       5.0000    
     3 'Normalizat'    .73199       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2199       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=   4377.322     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      205 TOTAL
                     EDM=   .11E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.6891        163.67        .52582E-02    .23694E-03
   2  alpha         2.4378        3.0138        .41126        .22706E-04
   3  Normalizat    .73185        .68618E-01    .42716E-01    .87775E-06
   4  Prefactor     1.2200        .77945E-01    .53572E-01   -.12629E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.68906
  alpha      = 2.43781
  Normalizat = 0.731845
  Prefactor  = 1.22003
 **********
 **   18 **HESSE 
 **********

 FCN=   4377.322     FROM HESSE     STATUS=OK            33 CALLS      238 TOTAL
                     EDM=   .27E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.6891        4.9985        .14549E-03   -1.5324    
   2  alpha         2.4378        .79395        .15111E-01   -.24877E-01
   3  Normalizat    .73185        .24913        .26681E-03   -1.0265    
   4  Prefactor     1.2200        .27920        .23686E-03   -.85717    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.72788e-12
Minuit parameter uncertainties:
  1  4.9991
  2  0.807947
  3  0.249513
  4  0.279545
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/925054': 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) = 4377.3219695
delta logL = 0.00911349838861

Extracting fit parameters...

4FGL J2328.3-4036
   Spectrum: LogParabola
455         norm:  3.689e+00  4.999e+00  1.000e-04  1.000e+04 ( 1.000e-12)
456        alpha:  2.438e+00  8.079e-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.220e+00  2.795e-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.318e-01  2.495e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.07
Ra Dec: 352.082 -40.604
Photon Index (Free Index): 2.44 +/- 0.81
Photon Flux (Free Index): 3.19e-08 +/- 4.02e-08
Energy Flux (Free Index): 9.92e-06 +/- 1.25e-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/925054/cmap_HighResolution_450057601_450316801_4FGL_J2328.3-4036_daily_bin813.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.09e-05', comment='SUCCESS', photon_flux='2.96e-08', energy_flux2='9.92e-06', photon_flux_error='4.83e-08', dlogl='9.11e-03', energy_flux='1.03e-05', photon_flux2='3.19e-08', job_status='DONE', time_completed='2021-09-29 20:45:38.328945', photon_index_error2='0.81', photon_index2='2.44', ts='1.05', fit_tolerance='1e-08', GAL='1.22', photon_index_error='0.00', photon_flux_upper_limit='1.17e-07', energy_flux_error2='1.25e-05', EG='0.73', time_epoch_completed='1632973538.33', return_code='0', job_id='925054', GAL2='1.22', EG2='0.73', return_code2='0', energy_flux_error='1.69e-05', photon_flux_error2='4.02e-08', ts2='1.07', photon_index='2.33' WHERE bin_id='813' AND source_name='4FGL J2328.3-4036' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 20:45:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0107>
Subject: Job 925054: <4FGL_J2328.3-4036_daily_bin813> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2328.3-4036_daily_bin813 352.082 -40.6037 450057601 450316801 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 :                                   786.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             270.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   911 sec.
    Turnaround time :                            913 sec.

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

