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


Performing analysis on: 4FGL_J2328.3-4036_daily_bin1484
RA = 352.082, Dec = -40.6037
tmin = 623980801, tmax = 624240001
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='934748', job_status='RUN', time_executed='2021-09-29 20:42:29.010025', time_epoch_executed='1632973349.01' WHERE source_name='4FGL J2328.3-4036' and cadence='daily' and bin_id='1484'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/934748

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/934748/ft1_4FGL_J2328.3-4036_daily_bin1484.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/934748/ft2_4FGL_J2328.3-4036_daily_bin1484.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/934748/ft1_4FGL_J2328.3-4036_daily_bin1484.fits outfile=/scratch/kocevski/934748/ft1_filteredMKT_4FGL_J2328.3-4036_daily_bin1484.fits ra=352.082 dec=-40.6037 rad=12.0 tmin=623980801.0 tmax=624240001.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.98
user 3.75
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/934748/ft1_filtered_4FGL_J2328.3-4036_daily_bin1484.fits" evtable="EVENTS" scfile=/scratch/kocevski/934748/ft2_4FGL_J2328.3-4036_daily_bin1484.fits sctable="SC_DATA" outfile=/scratch/kocevski/934748/ltcube_623980801_624240001_4FGL_J2328.3-4036_daily_bin1484.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/934748/ft2_4FGL_J2328.3-4036_daily_bin1484.fits
.....................!
real 11.73
user 11.36
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/934748/ft1_filtered_4FGL_J2328.3-4036_daily_bin1484.fits evtable="EVENTS" scfile=/scratch/kocevski/934748/ft2_4FGL_J2328.3-4036_daily_bin1484.fits sctable="SC_DATA" expcube=/scratch/kocevski/934748/ltcube_623980801_624240001_4FGL_J2328.3-4036_daily_bin1484.fits outfile=/scratch/kocevski/934748/expmap_623980801_624240001_4FGL_J2328.3-4036_daily_bin1484.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/934748/ltcube_623980801_624240001_4FGL_J2328.3-4036_daily_bin1484.fits
.....................!
real 191.26
user 185.84
sys 5.11

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/934748/ft1_filtered_4FGL_J2328.3-4036_daily_bin1484.fits scfile=/scratch/kocevski/934748/ft2_4FGL_J2328.3-4036_daily_bin1484.fits outfile=/scratch/kocevski/934748/cmap_623980801_624240001_4FGL_J2328.3-4036_daily_bin1484.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/934748/ft1_filtered_4FGL_J2328.3-4036_daily_bin1484.fits scfile=/scratch/kocevski/934748/ft2_4FGL_J2328.3-4036_daily_bin1484.fits outfile=/scratch/kocevski/934748/cmap_HighResolution_623980801_624240001_4FGL_J2328.3-4036_daily_bin1484.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.53
user 0.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .14810E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    115.85       1.0000         .10000E-03   10000.    
     4 'Prefactor '    10.713       1.0000         .10000E-03   10000.    
     5 'Prefactor '    9.4182       1.0000         .10000E-03   10000.    
     6 'Prefactor '    18.199       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    18.905       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.1382       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    9.3622       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    31.919       1.0000         .10000E-03   10000.    
    20 'Prefactor '    18.112       1.0000         .10000E-03   10000.    
    21 'Prefactor '    75.632       1.0000         .10000E-03   10000.    
    22 'norm      '    4.6401       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .44975E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .45741       1.0000         .10000E-03   10000.    
    25 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .86718       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .91708       1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    .59027       1.0000         .10000E-01   10.000    
    33 'Prefactor '    1.0365       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5900E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   3799.938     FROM MIGRAD    STATUS=CONVERGED    906 CALLS     4616 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    50.164       -.70948E-05** at limit **
   2  Prefactor     .10011E-03    39.949        .73306E-05** at limit **
   3  Prefactor     115.81        77.279       -.17141E-04   -.22307E-03
   4  Prefactor     10.713        15.484       -.15308E-06   -.10055E-04
   5  Prefactor     9.4178        6.3267       -.74131E-06    .19963E-04
   6  Prefactor     18.199        7.1393       -.66413E-06    .57149E-04
   7  Prefactor     .10000E-03    44.879        .12071E-04** at limit **
   8  Prefactor     .10000E-03    25.888       -.10371E-05** at limit **
   9  Prefactor     18.909        30.325       -.53684E-05    .46573E-04
  10  Prefactor     1.1378        4.1080        .96198E-06   -.89446E-03
  11  Prefactor     .10000E-03    2.2780        .14191E-07** at limit **
  12  Prefactor     .10000E-03    12.110        .31463E-07** at limit **
  13  Prefactor     .10000E-03    50.967       -.79190E-05** at limit **
  14  Prefactor     9.3627        22.103        .49132E-08   -.47836E-04
  15  norm          .10000E-03    5.7122       -.18705E-07** at limit **
  16  norm          .10000E-03    2.2714       -.11073E-07** at limit **
  17  norm          .10000E-03    3.3223       -.42236E-07** at limit **
  18  norm          .10000E-03    4.8942       -.18341E-07** at limit **
  19  Prefactor     31.926        12.201       -.22046E-06   -.25353E-03
  20  Prefactor     18.125        46.940       -.22631E-05   -.12814E-04
  21  Prefactor     75.619        61.717       -.43672E-05    .48724E-04
  22  norm          4.6394        6.2574        .33866E-06   -.56322E-03
  23  Prefactor     .10000E-03    77.435        .11546E-05** at limit **
  24  norm          .45714        1.2819       -.12694E-06   -.57798E-03
  25  norm          .10000E-03    5.2478       -.36477E-07** at limit **
  26  Prefactor     .86741        4.3153        .11214E-05   -.24205E-03
  27  Prefactor     .10000E-03    57.981        .10225E-04** at limit **
  28  Prefactor     .10000E-03    23.642        .60839E-06** at limit **
  29  Prefactor     .10000E-03    7.8375       -.24996E-07** at limit **
  30  Prefactor     .91220        5.9048       -.76954E-07   -.72986E-03
  31  Prefactor     .10000E-03    49.810       -.66313E-05** at limit **
  32  Normalizat    .59066        .21967        .38332E-05   -.43481E-03
  33  Prefactor     1.0361        .22378       -.54339E-06   -.28943E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100112
  Prefactor  = 115.808
  Prefactor  = 10.7129
  Prefactor  = 9.41778
  Prefactor  = 18.1993
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 18.9087
  Prefactor  = 1.13782
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.36268
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 31.9258
  Prefactor  = 18.1247
  Prefactor  = 75.6189
  norm       = 4.63942
  Prefactor  = 0.0001
  norm       = 0.457136
  norm       = 0.0001
  Prefactor  = 0.86741
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.912201
  Prefactor  = 0.0001
  Normalizat = 0.590657
  Prefactor  = 1.03611
 **********
 **   18 **HESSE 
 **********

 FCN=   3799.938     FROM HESSE     STATUS=OK           693 CALLS     5309 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    50.134        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10011E-03    50.047        .92107E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     115.81        80.618        .18690E-03   -1.3552    
   4  Prefactor     10.713        15.483        .12241E-03   -1.5053    
   5  Prefactor     9.4178        6.3275        .12258E-03   -1.5094    
   6  Prefactor     18.199        7.1328        .93884E-04   -1.4854    
   7  Prefactor     .10000E-03    44.707        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    25.972        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     18.909        30.201        .92117E-04   -1.4838    
  10  Prefactor     1.1378        28.472        .21812E-02   -1.5495    
  11  Prefactor     .10000E-03    2.2801        .90862E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    12.111        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    50.898        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     9.3627        21.546        .13098E-03   -1.5096    
  15  norm          .10000E-03    5.7219        .14389E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    2.2717        .90731E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    3.3531        .10969E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    4.9273        .13316E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     31.926        11.914        .70922E-04   -1.4577    
  20  Prefactor     18.125        47.283        .94110E-04   -1.4856    
  21  Prefactor     75.619        61.656        .46171E-04   -1.3967    
  22  norm          4.6394        6.3159        .68370E-03   -1.5277    
  23  Prefactor     .10000E-03    78.736        .42418E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .45714        1.1036        .97973E-03   -1.5573    
  25  norm          .10000E-03    5.3291        .27438E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .86741        4.0238        .22895E-03   -1.5522    
  27  Prefactor     .10000E-03    58.533        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    23.646        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    7.9733        .16836E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .91220        5.5312        .25418E-03   -1.5517    
  31  Prefactor     .10000E-03    49.833        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    .59066        .26155        .26819E-03   -1.0838    
  33  Prefactor     1.0361        .26956        .23036E-03   -.91535    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.09978e-08
Minuit parameter uncertainties:
  1  0.000234284
  2  0.00473571
  3  80.6945
  4  15.4883
  5  6.32795
  6  7.13315
  7  0.000354941
  8  6.87011e-05
  9  30.2255
  10  11.3891
  11  1.9796e-06
  12  2.41941e-06
  13  0.000313626
  14  21.5634
  15  1.99831e-06
  16  7.84054e-08
  17  4.92879e-06
  18  1.82768e-06
  19  11.9145
  20  47.3808
  21  61.7083
  22  6.31679
  23  7.55182e-05
  24  1.10364
  25  1.22734e-05
  26  3.73664
  27  0.000336415
  28  2.26697e-05
  29  3.17079e-05
  30  4.49284
  31  0.000209604
  32  0.262095
  33  0.269913
Done.

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

Extracting fit parameters...

4FGL J2328.3-4036
   Spectrum: LogParabola
455         norm:  4.639e+00  6.317e+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.036e+00  2.699e-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:  5.907e-01  2.621e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.18
Ra Dec: 352.082 -40.604
Photon Index (Fixed Index): 2.33 +/- 0.00
Photon Flux (Fixed Index): 3.50e-08 +/- 4.77e-08
Energy Flux (Fixed Index): 1.22e-05 +/- 1.67e-05

TS (Fixed Index): 1.18
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/934748/likelihoodResults_623980801_624240001_4FGL_J2328.3-4036_daily_bin1484.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) = 3799.79619917
delta logL = 0.141921899155

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3799.43681148
delta logL = 0.501309591732

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .17319       1.0000         .10000E-03   10000.    
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    .47524       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1430       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=   3799.437     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      310 TOTAL
                     EDM=   .82E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .17318        4.7221        .42040E-02   -.20394E-02
   2  alpha         5.0000        4.3176        .46267    ** at limit **
   3  Normalizat    .47536        .13004        .67145E-01   -.59363E-04
   4  Prefactor     1.1428        .13253        .36143E-01   -.88940E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.173184
  alpha      = 5
  Normalizat = 0.475359
  Prefactor  = 1.14275
 **********
 **   18 **HESSE 
 **********

 FCN=   3799.437     FROM HESSE     STATUS=OK            31 CALLS      341 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .17318        .14011        .18931E-04   -1.5625    
   2  alpha         5.0000        3.4290        .46265E-01    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .47536        .25023        .29720E-03   -1.1357    
   4  Prefactor     1.1428        .27278        .22094E-03   -.88112    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.01002e-10
Minuit parameter uncertainties:
  1  0.140113
  2  1.86784e-06
  3  0.250823
  4  0.27312
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/934748': 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) = 3799.4368109
delta logL = 0.501310170152

Extracting fit parameters...

4FGL J2328.3-4036
   Spectrum: LogParabola
455         norm:  1.732e-01  1.401e-01  1.000e-04  1.000e+04 ( 1.000e-12)
456        alpha:  5.000e+00  1.868e-06  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.143e+00  2.731e-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:  4.754e-01  2.508e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.43
Ra Dec: 352.082 -40.604
Photon Index (Free Index): 5.00 +/- 0.00
Photon Flux (Free Index): 9.43e-08 +/- 7.58e-08
Energy Flux (Free Index): 1.28e-05 +/- 1.03e-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/934748/cmap_HighResolution_623980801_624240001_4FGL_J2328.3-4036_daily_bin1484.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.25e-05', comment='SUCCESS', photon_flux='3.50e-08', energy_flux2='1.28e-05', photon_flux_error='4.77e-08', dlogl='5.01e-01', energy_flux='1.22e-05', photon_flux2='9.43e-08', job_status='DONE', time_completed='2021-09-29 20:55:04.126348', photon_index_error2='0.00', photon_index2='5.00', ts='1.18', fit_tolerance='1e-08', GAL='1.04', photon_index_error='0.00', photon_flux_upper_limit='1.22e-07', energy_flux_error2='1.03e-05', EG='0.59', time_epoch_completed='1632974104.13', return_code='0', job_id='934748', GAL2='1.14', EG2='0.48', return_code2='0', energy_flux_error='1.67e-05', photon_flux_error2='7.58e-08', ts2='2.43', photon_index='2.33' WHERE bin_id='1484' AND source_name='4FGL J2328.3-4036' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 20:55:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0181>
Subject: Job 934748: <4FGL_J2328.3-4036_daily_bin1484> in cluster <slac> Done

Job <4FGL_J2328.3-4036_daily_bin1484> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 20:40:33 2021
Job was executed on host(s) <bullet0181>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 20:40:34 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 20:40:34 2021
Terminated at Wed Sep 29 20:55:04 2021
Results reported at Wed Sep 29 20:55:04 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2328.3-4036_daily_bin1484 352.082 -40.6037 623980801 624240001 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 :                                   698.30 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             274.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   870 sec.
    Turnaround time :                            871 sec.

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

