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


Performing analysis on: 4FGL_J2328.3-4036_daily_bin1471
RA = 352.082, Dec = -40.6037
tmin = 620611201, tmax = 620870401
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='934713', job_status='RUN', time_executed='2021-09-29 20:42:18.470498', time_epoch_executed='1632973338.47' WHERE source_name='4FGL J2328.3-4036' and cadence='daily' and bin_id='1471'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/934713

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/934713/ft1_4FGL_J2328.3-4036_daily_bin1471.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/934713/ft2_4FGL_J2328.3-4036_daily_bin1471.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/934713/ft1_4FGL_J2328.3-4036_daily_bin1471.fits outfile=/scratch/kocevski/934713/ft1_filteredMKT_4FGL_J2328.3-4036_daily_bin1471.fits ra=352.082 dec=-40.6037 rad=12.0 tmin=620611201.0 tmax=620870401.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.70
user 3.47
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/934713/ft1_filtered_4FGL_J2328.3-4036_daily_bin1471.fits" evtable="EVENTS" scfile=/scratch/kocevski/934713/ft2_4FGL_J2328.3-4036_daily_bin1471.fits sctable="SC_DATA" outfile=/scratch/kocevski/934713/ltcube_620611201_620870401_4FGL_J2328.3-4036_daily_bin1471.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/934713/ft2_4FGL_J2328.3-4036_daily_bin1471.fits
.....................!
real 12.19
user 11.86
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/934713/ft1_filtered_4FGL_J2328.3-4036_daily_bin1471.fits evtable="EVENTS" scfile=/scratch/kocevski/934713/ft2_4FGL_J2328.3-4036_daily_bin1471.fits sctable="SC_DATA" expcube=/scratch/kocevski/934713/ltcube_620611201_620870401_4FGL_J2328.3-4036_daily_bin1471.fits outfile=/scratch/kocevski/934713/expmap_620611201_620870401_4FGL_J2328.3-4036_daily_bin1471.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/934713/ltcube_620611201_620870401_4FGL_J2328.3-4036_daily_bin1471.fits
.....................!
real 189.54
user 185.07
sys 4.15

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/934713/ft1_filtered_4FGL_J2328.3-4036_daily_bin1471.fits scfile=/scratch/kocevski/934713/ft2_4FGL_J2328.3-4036_daily_bin1471.fits outfile=/scratch/kocevski/934713/cmap_620611201_620870401_4FGL_J2328.3-4036_daily_bin1471.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/934713/ft1_filtered_4FGL_J2328.3-4036_daily_bin1471.fits scfile=/scratch/kocevski/934713/ft2_4FGL_J2328.3-4036_daily_bin1471.fits outfile=/scratch/kocevski/934713/cmap_HighResolution_620611201_620870401_4FGL_J2328.3-4036_daily_bin1471.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/934713/ft1_filtered_4FGL_J2328.3-4036_daily_bin1471.fits evtable="EVENTS" scfile=/scratch/kocevski/934713/ft2_4FGL_J2328.3-4036_daily_bin1471.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/934713/Model_4FGL_J2328.3-4036_daily_bin1471.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/934713/ft1_filtered_4FGL_J2328.3-4036_daily_bin1471.fits......................!
real 21.82
user 20.57
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    41.587       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .12266E-02   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    40.311       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    26.709       1.0000         .10000E-03   10000.    
    16 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10026E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    24.991       1.0000         .10000E-03   10000.    
    20 'Prefactor '    102.09       1.0000         .10000E-03   10000.    
    21 'Prefactor '    29.843       1.0000         .10000E-03   10000.    
    22 'norm      '    .14371E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    20.738       1.0000         .10000E-03   10000.    
    24 'norm      '    .10127E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    9.4061       1.0000         .10000E-03   10000.    
    26 'Prefactor '    8.0483       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .44346E-01   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    11.704       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    39.587       1.0000         .10000E-03   10000.    
    32 'Normalizat'    .87007       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .38762       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=   1655.467     FROM MIGRAD    STATUS=CONVERGED    903 CALLS     4589 TOTAL
                     EDM=   .47E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    49.228        .81432E-07** at limit **
   2  Prefactor     41.592        41.619       -.43388E-06   -.99705E-04
   3  Prefactor     .10000E-03    90.616        .91118E-06** at limit **
   4  Prefactor     .10000E-03    43.661        .17084E-06** at limit **
   5  Prefactor     .10008E-03    9.9233       -.24769E-06** at limit **
   6  Prefactor     .10000E-03    3.2252        .43269E-07** at limit **
   7  Prefactor     40.336        64.498        .10255E-05    .17226E-04
   8  Prefactor     .10000E-03    28.696       -.44253E-06** at limit **
   9  Prefactor     .10000E-03    25.405        .26245E-06** at limit **
  10  Prefactor     .10000E-03    9.7149       -.87288E-07** at limit **
  11  Prefactor     .10000E-03    5.0098        .59154E-08** at limit **
  12  Prefactor     .10000E-03    68.376       -.75014E-06** at limit **
  13  Prefactor     .10000E-03    38.453       -.29793E-07** at limit **
  14  Prefactor     .10000E-03    14.448       -.21982E-08** at limit **
  15  norm          26.711        31.357       -.13284E-08   -.24188E-04
  16  norm          .10000E-03    4.9920        .44353E-08** at limit **
  17  norm          .10000E-03    4.2840        .14315E-06** at limit **
  18  norm          .10000E-03    8.6973        .25975E-06** at limit **
  19  Prefactor     24.997        15.511       -.13728E-06   -.21160E-03
  20  Prefactor     102.13        61.251        .45185E-06    .24588E-04
  21  Prefactor     29.894        67.361        .17733E-05    .39410E-04
  22  norm          .10000E-03    7.4576        .11354E-05** at limit **
  23  Prefactor     20.733        25.969       -.35768E-06   -.11825E-03
  24  norm          .10000E-03    1.3015        .26647E-06** at limit **
  25  norm          9.4139        9.9823       -.59980E-08   -.31585E-04
  26  Prefactor     8.0503        7.1724       -.16178E-05   -.65317E-03
  27  Prefactor     .10027E-03    69.575        .78933E-05** at limit **
  28  Prefactor     .10000E-03    57.038       -.61115E-07** at limit **
  29  Prefactor     11.713        12.130        .18391E-06   -.70884E-04
  30  Prefactor     .10000E-03    2.6064        .45290E-07** at limit **
  31  Prefactor     39.612        81.472        .89983E-06    .16121E-04
  32  Normalizat    .86943        .28134       -.44760E-05   -.44744E-04
  33  Prefactor     .38819        .28169        .55807E-05   -.15277E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 41.5924
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000100084
  Prefactor  = 0.0001
  Prefactor  = 40.3365
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 26.7109
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 24.9967
  Prefactor  = 102.128
  Prefactor  = 29.8944
  norm       = 0.0001
  Prefactor  = 20.7329
  norm       = 0.0001
  norm       = 9.41395
  Prefactor  = 8.05026
  Prefactor  = 0.000100272
  Prefactor  = 0.0001
  Prefactor  = 11.7125
  Prefactor  = 0.0001
  Prefactor  = 39.6122
  Normalizat = 0.869435
  Prefactor  = 0.38819
 **********
 **   18 **HESSE 
 **********

 FCN=   1655.467     FROM HESSE     STATUS=OK           679 CALLS     5268 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    49.299        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     41.592        41.743        .62161E-04   -1.4417    
   3  Prefactor     .10000E-03    90.678        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    43.803        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10008E-03    75.650        .24644E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    3.2419        .71334E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     40.336        64.451        .63133E-04   -1.4437    
   8  Prefactor     .10000E-03    28.737        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    25.457        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    9.7282        .12387E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    5.0172        .88941E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    68.460        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    38.466        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    14.473        .15106E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          26.711        31.338        .77516E-04   -1.4674    
  16  norm          .10000E-03    4.9926        .88795E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    4.2855        .82233E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    8.7369        .11714E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     24.997        15.469        .80131E-04   -1.4708    
  20  Prefactor     102.13        61.082        .19897E-03   -1.3683    
  21  Prefactor     29.894        67.237        .73342E-04   -1.4614    
  22  norm          .10000E-03    7.4383        .10735E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     20.733        25.975        .87953E-04   -1.4797    
  24  norm          .10000E-03    1.6445        .89580E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          9.4139        9.9714        .11787E-03   -1.5094    
  26  Prefactor     8.0503        7.4433        .10082E-03   -1.5140    
  27  Prefactor     .10027E-03    359.10        .57613E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    57.061        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     11.713        12.142        .11710E-03   -1.5023    
  30  Prefactor     .10000E-03    2.6125        .64149E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     39.612        81.408        .63706E-04   -1.4448    
  32  Normalizat    .86943        .30962        .19184E-03   -.97543    
  33  Prefactor     .38819        .30992        .29814E-03   -1.1742    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.60833e-09
Minuit parameter uncertainties:
  1  0.00013241
  2  41.7722
  3  0.000651603
  4  0.000242159
  5  0.00503316
  6  5.74688e-07
  7  64.5626
  8  0.000110642
  9  8.11729e-05
  10  6.74784e-06
  11  2.53279e-06
  12  0.000366241
  13  2.69216e-05
  14  1.28772e-05
  15  31.3575
  16  1.7466e-06
  17  7.94868e-06
  18  1.60981e-05
  19  15.471
  20  61.1192
  21  67.4084
  22  5.64359e-05
  23  25.989
  24  8.26692e-06
  25  9.9732
  26  7.44411
  27  0.0199029
  28  0.00018187
  29  12.1445
  30  3.37498e-06
  31  81.6374
  32  0.310256
  33  0.311264
Done.

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

Extracting fit parameters...

4FGL J2328.3-4036
   Spectrum: LogParabola
455         norm:  1.000e-04  5.644e-05  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:  3.882e-01  3.113e-01  0.000e+00  1.000e+01 ( 1.000e+00)
588        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
589        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
586   Normalization:  8.694e-01  3.103e-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.31e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.58e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/934713/likelihoodResults_620611201_620870401_4FGL_J2328.3-4036_daily_bin1471.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) = 1655.46740233
delta logL = -0.000639636892402

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1655.4667628
delta logL = -1.03746060631e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10405E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3590       1.0000          .0000       5.0000    
     3 'Normalizat'    .86950       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .38814       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=   1655.466     FROM MIGRAD    STATUS=CONVERGED    143 CALLS      291 TOTAL
                     EDM=   .50E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .66275E-01    11.969        .28661E-01    .57475E-03
   2  alpha         3.6111        4.0044        .50000        .14526E-04
   3  Normalizat    .86710        .18522E-01    .19184E-03    .39343E-04
   4  Prefactor     .38945        .19806E-01    .29813E-03    .39134E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0662746
  alpha      = 3.6111
  Normalizat = 0.867097
  Prefactor  = 0.389454
 **********
 **   18 **HESSE 
 **********

 FCN=   1655.466     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      322 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .66275E-01    1558.3        .90536E-03   -1.5657    
   2  alpha         3.6111        3.3633        .99498E-01    .46055    
   3  Normalizat    .86710        .20681        .38368E-04   -.97626    
   4  Prefactor     .38945        .15849        .11925E-04   -1.1735    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.51913e-08
Minuit parameter uncertainties:
  1  20.8777
  2  91.9378
  3  0.207001
  4  0.158667
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/934713': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1655.46580056
delta logL = 0.000962140569072

Extracting fit parameters...

4FGL J2328.3-4036
   Spectrum: LogParabola
455         norm:  6.627e-02  2.088e+01  1.000e-04  1.000e+04 ( 1.000e-12)
456        alpha:  3.611e+00  9.194e+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:  3.895e-01  1.587e-01  0.000e+00  1.000e+01 ( 1.000e+00)
588        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
589        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
586   Normalization:  8.671e-01  2.070e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 352.082 -40.604

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/934713/cmap_HighResolution_620611201_620870401_4FGL_J2328.3-4036_daily_bin1471.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.58e-05', job_status='DONE', photon_flux_upper_limit='1.31e-07', time_completed='2021-09-29 20:51:09.738319', job_id='934713', GAL2='0.39', fit_tolerance='1e-08', EG2='0.87', EG='0.87', time_epoch_completed='1632973869.74', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.39', dlogl='9.62e-04', ts2='0.00', photon_index_error='0.00', photon_index='2.33' WHERE bin_id='1471' AND source_name='4FGL J2328.3-4036' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 20:51:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0150>
Subject: Job 934713: <4FGL_J2328.3-4036_daily_bin1471> in cluster <slac> Done

Job <4FGL_J2328.3-4036_daily_bin1471> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 20:40:32 2021
Job was executed on host(s) <bullet0150>, 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:51:10 2021
Results reported at Wed Sep 29 20:51:10 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2328.3-4036_daily_bin1471 352.082 -40.6037 620611201 620870401 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 :                                   490.51 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             292.40 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   635 sec.
    Turnaround time :                            638 sec.

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

