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


Performing analysis on: 4FGL_J2328.3-4036_daily_bin846
RA = 352.082, Dec = -40.6037
tmin = 458611201, tmax = 458870401
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='925154', job_status='RUN', time_executed='2021-09-29 20:34:16.469114', time_epoch_executed='1632972856.47' WHERE source_name='4FGL J2328.3-4036' and cadence='daily' and bin_id='846'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/925154

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/925154/ft1_4FGL_J2328.3-4036_daily_bin846.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/925154/ft2_4FGL_J2328.3-4036_daily_bin846.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/925154/ft1_4FGL_J2328.3-4036_daily_bin846.fits outfile=/scratch/kocevski/925154/ft1_filteredMKT_4FGL_J2328.3-4036_daily_bin846.fits ra=352.082 dec=-40.6037 rad=12.0 tmin=458611201.0 tmax=458870401.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.38
sys 0.20

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/925154/ft1_filtered_4FGL_J2328.3-4036_daily_bin846.fits" evtable="EVENTS" scfile=/scratch/kocevski/925154/ft2_4FGL_J2328.3-4036_daily_bin846.fits sctable="SC_DATA" outfile=/scratch/kocevski/925154/ltcube_458611201_458870401_4FGL_J2328.3-4036_daily_bin846.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/925154/ft2_4FGL_J2328.3-4036_daily_bin846.fits
.....................!
real 11.78
user 11.37
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/925154/ft1_filtered_4FGL_J2328.3-4036_daily_bin846.fits evtable="EVENTS" scfile=/scratch/kocevski/925154/ft2_4FGL_J2328.3-4036_daily_bin846.fits sctable="SC_DATA" expcube=/scratch/kocevski/925154/ltcube_458611201_458870401_4FGL_J2328.3-4036_daily_bin846.fits outfile=/scratch/kocevski/925154/expmap_458611201_458870401_4FGL_J2328.3-4036_daily_bin846.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/925154/ltcube_458611201_458870401_4FGL_J2328.3-4036_daily_bin846.fits
.....................!
real 191.78
user 184.91
sys 6.47

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

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

This is gtbin version HEAD
real 0.52
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/925154/ft1_filtered_4FGL_J2328.3-4036_daily_bin846.fits scfile=/scratch/kocevski/925154/ft2_4FGL_J2328.3-4036_daily_bin846.fits outfile=/scratch/kocevski/925154/cmap_HighResolution_458611201_458870401_4FGL_J2328.3-4036_daily_bin846.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/925154/ft1_filtered_4FGL_J2328.3-4036_daily_bin846.fits evtable="EVENTS" scfile=/scratch/kocevski/925154/ft2_4FGL_J2328.3-4036_daily_bin846.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/925154/Model_4FGL_J2328.3-4036_daily_bin846.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/925154/ft1_filtered_4FGL_J2328.3-4036_daily_bin846.fits.....................!
real 35.11
user 33.79
sys 1.25

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10110E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    36.584       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .50644       1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.0723       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    17.615       1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.0139       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    119.82       1.0000         .10000E-03   10000.    
    14 'Prefactor '    10.733       1.0000         .10000E-03   10000.    
    15 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    4.7708       1.0000         .10000E-03   10000.    
    18 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    9.2491       1.0000         .10000E-03   10000.    
    20 'Prefactor '    93.174       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .77020E-01   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .23835E-02   1.0000         .10000E-03   10000.    
    24 'norm      '    1.5096       1.0000         .10000E-03   10000.    
    25 'norm      '    .50301       1.0000         .10000E-03   10000.    
    26 'Prefactor '    9.0680       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    25.108       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    3.9883       1.0000         .10000E-03   10000.    
    31 'Prefactor '    10.609       1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.0168       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .72202       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5900E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   3891.348     FROM MIGRAD    STATUS=CONVERGED    185 CALLS     4047 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10028E-03    88.170        .29426E-06** at limit **
   2  Prefactor     36.576        2.4483        .33238E-06   -.20303E-02
   3  Prefactor     .10118E-03    47.414        .14939E-05** at limit **
   4  Prefactor     .10000E-03    10.880        .78286E-06** at limit **
   5  Prefactor     .50189        11.997       -.47981E-06   -.27429E-02
   6  Prefactor     5.0713        5.0941        .53925E-07   -.96288E-04
   7  Prefactor     .10003E-03    22.131       -.21609E-05** at limit **
   8  Prefactor     .10006E-03    19.647       -.98502E-06** at limit **
   9  Prefactor     17.613        1.0745        .72412E-07    .19213E-03
  10  Prefactor     5.0185        1.2414        .93439E-07    .20541E-03
  11  Prefactor     .10000E-03    5.9938       -.87383E-07** at limit **
  12  Prefactor     .10120E-03    39.135       -.65041E-06** at limit **
  13  Prefactor     119.79        7.5806        .64384E-06   -.97990E-03
  14  Prefactor     10.728        1.4521        .16232E-06   -.61123E-03
  15  norm          .10000E-03    8.2802       -.12957E-05** at limit **
  16  norm          .10000E-03    2.6772       -.54646E-08** at limit **
  17  norm          4.7766        5.0375        .12496E-06   -.21577E-03
  18  norm          .10000E-03    7.0705        .68071E-06** at limit **
  19  Prefactor     9.2660        6.8998        .52991E-06   -.76825E-02
  20  Prefactor     93.519        80.027       -.73521E-05   -.23544E-02
  21  Prefactor     .10079E-03    18.298        .11630E-05** at limit **
  22  norm          .44148E-02    1421.7        .73419E-04   -.12185E-03
  23  Prefactor     .10026E-03    196.41        .12413E-04** at limit **
  24  norm          1.5099        1.3972       -.11087E-06    .34604E-04
  25  norm          .48712        19.575       -.26062E-06    .89059E-03
  26  Prefactor     9.0676        5.1880       -.10190E-06   -.53870E-03
  27  Prefactor     .10037E-03    19.782        .80676E-06** at limit **
  28  Prefactor     25.085        5.2160        .97264E-06   -.20375E-02
  29  Prefactor     .10000E-03    4.9518       -.23969E-07** at limit **
  30  Prefactor     3.9882        4.6574       -.45925E-07    .10578E-03
  31  Prefactor     10.605        1.9214        .43089E-06   -.11042E-02
  32  Normalizat    1.0171        .24568        .22929E-05    .88057E-04
  33  Prefactor     .72183        .26109       -.12658E-05    .66909E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100279
  Prefactor  = 36.5759
  Prefactor  = 0.000101182
  Prefactor  = 0.000100001
  Prefactor  = 0.501894
  Prefactor  = 5.07125
  Prefactor  = 0.000100031
  Prefactor  = 0.000100062
  Prefactor  = 17.6129
  Prefactor  = 5.01849
  Prefactor  = 0.0001
  Prefactor  = 0.000101198
  Prefactor  = 119.787
  Prefactor  = 10.7284
  norm       = 0.0001
  norm       = 0.0001
  norm       = 4.77656
  norm       = 0.0001
  Prefactor  = 9.26597
  Prefactor  = 93.5193
  Prefactor  = 0.000100793
  norm       = 0.00441477
  Prefactor  = 0.000100257
  norm       = 1.50995
  norm       = 0.487124
  Prefactor  = 9.06759
  Prefactor  = 0.000100367
  Prefactor  = 25.0851
  Prefactor  = 0.0001
  Prefactor  = 3.98824
  Prefactor  = 10.6045
  Normalizat = 1.01711
  Prefactor  = 0.721828
 **********
 **   18 **HESSE 
 **********

 FCN=   3891.348     FROM HESSE     STATUS=OK           785 CALLS     4832 TOTAL
                     EDM=   .35E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10028E-03    89.604        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     36.576        34.322        .16565E-02   -1.4498    
   3  Prefactor     .10118E-03    53.533        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    10.874        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .50189        5.0180        .73103E-01   -1.5566    
   6  Prefactor     5.0713        5.1116        .44633E-02   -1.5258    
   7  Prefactor     .10003E-03    22.634        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10006E-03    20.195        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     17.613        18.877        .23857E-02   -1.4868    
  10  Prefactor     5.0185        14.992        .44897E-02   -1.5260    
  11  Prefactor     .10000E-03    5.9417        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10120E-03    45.660        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     119.79        79.564        .91908E-03   -1.3515    
  14  Prefactor     10.728        19.187        .30574E-02   -1.5053    
  15  norm          .10000E-03    8.2334        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    2.6767        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          4.7766        5.1239        .46051E-02   -1.5271    
  18  norm          .10000E-03    7.0114        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     9.2660        12.261        .32945E-02   -1.5099    
  20  Prefactor     93.519        74.624        .10409E-02   -1.3771    
  21  Prefactor     .10079E-03    32.383        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .44148E-02    6.6626        .80242E-01   -1.5695    
  23  Prefactor     .10026E-03    39.461        .10032       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          1.5099        1.4669        .87040E-02   -1.5462    
  25  norm          .48712        5.4356        .71806E-01   -1.5568    
  26  Prefactor     9.0676        5.2079        .33274E-02   -1.5106    
  27  Prefactor     .10037E-03    30.667        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     25.085        57.577        .19986E-02   -1.4706    
  29  Prefactor     .10000E-03    4.8883        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     3.9882        4.8388        .50489E-02   -1.5309    
  31  Prefactor     10.605        42.197        .30752E-02   -1.5057    
  32  Normalizat    1.0171        .21494        .43861E-01   -.92459    
  33  Prefactor     .72183        .22180        .64038E-01   -1.0268    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.50972e-07
Minuit parameter uncertainties:
  1  0.0100167
  2  34.3404
  3  0.0159243
  4  0.000150349
  5  3.174
  6  5.11204
  7  0.00167323
  8  0.00223939
  9  18.8832
  10  15.0032
  11  2.97808e-06
  12  0.0148033
  13  79.6347
  14  19.1976
  15  5.34281e-05
  16  1.47223e-06
  17  5.12435
  18  2.69476e-05
  19  12.2643
  20  74.6994
  21  0.0101433
  22  0.339139
  23  0.00636716
  24  1.46689
  25  3.25445
  26  5.20813
  27  0.00671554
  28  57.7046
  29  9.96936e-08
  30  4.83925
  31  42.3157
  32  0.21512
  33  0.222076
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
587    Prefactor:  7.218e-01  2.221e-01  0.000e+00  1.000e+01 ( 1.000e+00)
588        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
589        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
586   Normalization:  1.017e+00  2.151e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/925154/likelihoodResults_458611201_458870401_4FGL_J2328.3-4036_daily_bin846.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3891.34793772
delta logL = 1.13728765427e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3890.87158666
delta logL = 0.476352198666

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .97638       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.9121       1.0000          .0000       5.0000    
     3 'Normalizat'    .94421       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .76352       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=   3890.872     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      276 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .97061        18.506        .13082E-01    .35395E-04
   2  alpha         3.9153        4.4513        .40510        .72969E-05
   3  Normalizat    .94434        .45013E-01    .45464E-01   -.82108E-04
   4  Prefactor     .76343        .48817E-01    .62303E-01   -.27601E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.970614
  alpha      = 3.91529
  Normalizat = 0.944336
  Prefactor  = 0.76343
 **********
 **   18 **HESSE 
 **********

 FCN=   3890.872     FROM HESSE     STATUS=OK            33 CALLS      309 TOTAL
                     EDM=   .48E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .97061        17.329        .63236E-04   -1.5511    
   2  alpha         3.9153        4.4289        .16706E-01    .60179    
   3  Normalizat    .94434        .24931        .23256E-03   -.94919    
   4  Prefactor     .76343        .26443        .27558E-03   -1.0109    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.7933e-11
Minuit parameter uncertainties:
  1  8.20467
  2  4.91977
  3  0.249617
  4  0.26487
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/925154': 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) = 3890.8715841
delta logL = 0.476354759325

Extracting fit parameters...

4FGL J2328.3-4036
   Spectrum: LogParabola
455         norm:  9.706e-01  8.205e+00  1.000e-04  1.000e+04 ( 1.000e-12)
456        alpha:  3.915e+00  4.920e+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.634e-01  2.649e-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:  9.443e-01  2.496e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.01
Ra Dec: 352.082 -40.604
Photon Index (Free Index): 3.92 +/- 4.92
Photon Flux (Free Index): 8.04e-08 +/- 9.01e-08
Energy Flux (Free Index): 1.26e-05 +/- 1.97e-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/925154/cmap_HighResolution_458611201_458870401_4FGL_J2328.3-4036_daily_bin846.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.25e-05', comment='SUCCESS', energy_flux2='1.26e-05', dlogl='4.76e-01', photon_flux2='8.04e-08', job_status='DONE', time_completed='2021-09-29 20:45:42.002361', photon_index_error2='4.92', photon_index2='3.92', ts='0.00', fit_tolerance='1e-08', GAL='0.72', photon_index_error='0.00', photon_flux_upper_limit='1.22e-07', energy_flux_error2='1.97e-05', EG='1.02', time_epoch_completed='1632973542.0', return_code='0', job_id='925154', GAL2='0.76', EG2='0.94', return_code2='0', photon_flux_error2='9.01e-08', ts2='1.01', photon_index='2.33' WHERE bin_id='846' AND source_name='4FGL J2328.3-4036' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 20:45:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0119>
Subject: Job 925154: <4FGL_J2328.3-4036_daily_bin846> in cluster <slac> Done

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

Your job looked like:

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

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

