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


Performing analysis on: 4FGL_J2328.3-4036_daily_bin1592
RA = 352.082, Dec = -40.6037
tmin = 651974401, tmax = 652233601
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='935030', job_status='RUN', time_executed='2021-09-29 20:41:17.542662', time_epoch_executed='1632973277.54' WHERE source_name='4FGL J2328.3-4036' and cadence='daily' and bin_id='1592'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/935030

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/935030/ft1_4FGL_J2328.3-4036_daily_bin1592.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/935030/ft2_4FGL_J2328.3-4036_daily_bin1592.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/935030/ft1_4FGL_J2328.3-4036_daily_bin1592.fits outfile=/scratch/kocevski/935030/ft1_filteredMKT_4FGL_J2328.3-4036_daily_bin1592.fits ra=352.082 dec=-40.6037 rad=12.0 tmin=651974401.0 tmax=652233601.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.53
user 3.26
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/935030/ft1_filtered_4FGL_J2328.3-4036_daily_bin1592.fits" evtable="EVENTS" scfile=/scratch/kocevski/935030/ft2_4FGL_J2328.3-4036_daily_bin1592.fits sctable="SC_DATA" outfile=/scratch/kocevski/935030/ltcube_651974401_652233601_4FGL_J2328.3-4036_daily_bin1592.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/935030/ft2_4FGL_J2328.3-4036_daily_bin1592.fits
.....................!
real 11.54
user 11.19
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/935030/ft1_filtered_4FGL_J2328.3-4036_daily_bin1592.fits evtable="EVENTS" scfile=/scratch/kocevski/935030/ft2_4FGL_J2328.3-4036_daily_bin1592.fits sctable="SC_DATA" expcube=/scratch/kocevski/935030/ltcube_651974401_652233601_4FGL_J2328.3-4036_daily_bin1592.fits outfile=/scratch/kocevski/935030/expmap_651974401_652233601_4FGL_J2328.3-4036_daily_bin1592.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/935030/ltcube_651974401_652233601_4FGL_J2328.3-4036_daily_bin1592.fits
.....................!
real 189.48
user 184.73
sys 4.44

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

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

This is gtbin version HEAD
real 0.53
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/935030/ft1_filtered_4FGL_J2328.3-4036_daily_bin1592.fits scfile=/scratch/kocevski/935030/ft2_4FGL_J2328.3-4036_daily_bin1592.fits outfile=/scratch/kocevski/935030/cmap_HighResolution_651974401_652233601_4FGL_J2328.3-4036_daily_bin1592.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.37
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/935030/ft1_filtered_4FGL_J2328.3-4036_daily_bin1592.fits evtable="EVENTS" scfile=/scratch/kocevski/935030/ft2_4FGL_J2328.3-4036_daily_bin1592.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/935030/Model_4FGL_J2328.3-4036_daily_bin1592.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/935030/ft1_filtered_4FGL_J2328.3-4036_daily_bin1592.fits.....................!
real 40.64
user 39.37
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    36.402       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .14099E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    8.4585       1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.7985       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10776E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    54.646       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.5978       1.0000         .10000E-03   10000.    
    11 'Prefactor '    15.912       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .14361E-03   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      '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    6.4940       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    21.892       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10049E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    10.362       1.0000         .10000E-03   10000.    
    24 'norm      '    .36920       1.0000         .10000E-03   10000.    
    25 'norm      '    4.2188       1.0000         .10000E-03   10000.    
    26 'Prefactor '    2.1058       1.0000         .10000E-03   10000.    
    27 'Prefactor '    12.249       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.1420       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .53230       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=   5383.644     FROM MIGRAD    STATUS=CONVERGED    889 CALLS     4561 TOTAL
                     EDM=   .19E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    19.712       -.19642E-06** at limit **
   2  Prefactor     36.404        23.575        .31428E-06   -.33108E-04
   3  Prefactor     .10000E-03    122.31        .14313E-05** at limit **
   4  Prefactor     .10000E-03    13.035        .37651E-06** at limit **
   5  Prefactor     8.4591        5.3226        .15524E-06    .28347E-03
   6  Prefactor     6.7943        5.4141        .11509E-08    .37014E-04
   7  Prefactor     .10001E-03    162.63       -.21906E-05** at limit **
   8  Prefactor     54.646        26.841        .20997E-07   -.10989E-05
   9  Prefactor     .10000E-03    14.080        .50600E-07** at limit **
  10  Prefactor     4.5980        5.8454        .19525E-07    .95294E-05
  11  Prefactor     15.909        8.9286       -.34981E-07    .24063E-05
  12  Prefactor     .10000E-03    26.345        .64056E-06** at limit **
  13  Prefactor     .10000E-03    33.295       -.60583E-06** at limit **
  14  Prefactor     .10008E-03    12.814        .55113E-06** at limit **
  15  norm          .10000E-03    4.0879       -.55571E-08** at limit **
  16  norm          .10000E-03    3.3500       -.82039E-07** at limit **
  17  norm          .10000E-03    1.3332       -.72253E-08** at limit **
  18  norm          6.4943        6.7394        .88955E-07   -.26391E-04
  19  Prefactor     .10000E-03    3.5152       -.67488E-07** at limit **
  20  Prefactor     21.890        31.298       -.13382E-05   -.22674E-04
  21  Prefactor     .10000E-03    20.661       -.28896E-07** at limit **
  22  norm          .10000E-03    1.1924       -.41292E-07** at limit **
  23  Prefactor     10.364        11.046       -.27192E-08   -.77869E-04
  24  norm          .36965        .79333        .35888E-06   -.94951E-05
  25  norm          4.2194        3.9063        .13795E-05   -.29344E-03
  26  Prefactor     2.1057        2.3151        .10835E-07   -.10082E-03
  27  Prefactor     12.249        18.552        .42497E-07   -.43701E-04
  28  Prefactor     .10000E-03    14.766       -.44546E-07** at limit **
  29  Prefactor     .10000E-03    4.3957       -.53877E-08** at limit **
  30  Prefactor     .10000E-03    .98690       -.73094E-08** at limit **
  31  Prefactor     .10000E-03    12.238       -.74672E-07** at limit **
  32  Normalizat    1.1419        .17422       -.37532E-06   -.92117E-04
  33  Prefactor     .53241        .18560       -.89424E-07   -.62776E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 36.4043
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 8.4591
  Prefactor  = 6.79427
  Prefactor  = 0.000100008
  Prefactor  = 54.6456
  Prefactor  = 0.0001
  Prefactor  = 4.59803
  Prefactor  = 15.9091
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100085
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 6.4943
  Prefactor  = 0.0001
  Prefactor  = 21.8897
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 10.364
  norm       = 0.36965
  norm       = 4.21943
  Prefactor  = 2.10566
  Prefactor  = 12.2493
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.14186
  Prefactor  = 0.53241
 **********
 **   18 **HESSE 
 **********

 FCN=   5383.644     FROM HESSE     STATUS=OK           689 CALLS     5250 TOTAL
                     EDM=   .70E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    19.745        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     36.404        23.562        .66425E-04   -1.4501    
   3  Prefactor     .10000E-03    123.79        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    13.054        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     8.4591        5.3362        .13037E-03   -1.5126    
   6  Prefactor     6.7943        5.4156        .14398E-03   -1.5187    
   7  Prefactor     .10001E-03    165.37        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     54.646        26.838        .54261E-04   -1.4228    
   9  Prefactor     .10000E-03    14.123        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     4.5980        5.8416        .18772E-03   -1.5279    
  11  Prefactor     15.909        8.9233        .10041E-03   -1.4910    
  12  Prefactor     .10000E-03    26.565        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    33.518        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10008E-03    74.135        .48062E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    4.0902        .14488E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    3.3727        .13107E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    1.3335        .82731E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          6.4943        6.7344        .15749E-03   -1.5198    
  19  Prefactor     .10000E-03    3.5256        .13358E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     21.890        31.398        .85607E-04   -1.4772    
  21  Prefactor     .10000E-03    20.691        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    1.1938        .78109E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     10.364        10.933        .12447E-03   -1.5064    
  24  norm          .36965        .72496        .89258E-03   -1.5586    
  25  norm          4.2194        3.8711        .63811E-03   -1.5297    
  26  Prefactor     2.1057        2.3039        .11106E-03   -1.5418    
  27  Prefactor     12.249        18.440        .11446E-03   -1.5008    
  28  Prefactor     .10000E-03    14.769        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    4.5907        .30016E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    .98946        .71150E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .10000E-03    12.245        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    1.1419        .20222        .19827E-03   -.88419    
  33  Prefactor     .53241        .21421        .30849E-03   -1.1051    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.03344e-09
Minuit parameter uncertainties:
  1  9.17799e-05
  2  23.5684
  3  0.00127386
  4  2.4159e-05
  5  5.33645
  6  5.41602
  7  0.00223955
  8  26.8441
  9  3.23882e-05
  10  5.84234
  11  8.92407
  12  0.000306043
  13  0.000312167
  14  0.00502366
  15  1.17134e-07
  16  9.69567e-06
  17  9.44907e-08
  18  6.73518
  19  4.86145e-06
  20  31.4213
  21  3.68888e-06
  22  9.92442e-07
  23  10.935
  24  0.724974
  25  3.87133
  26  2.30401
  27  18.4487
  28  1.56403e-05
  29  4.55494e-06
  30  6.03604e-07
  31  2.43325e-05
  32  0.202354
  33  0.214532
Done.

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

Extracting fit parameters...

4FGL J2328.3-4036
   Spectrum: LogParabola
455         norm:  1.000e-04  9.924e-07  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:  5.324e-01  2.145e-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.142e+00  2.024e-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: 4.54e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.59e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/935030/likelihoodResults_651974401_652233601_4FGL_J2328.3-4036_daily_bin1592.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) = 5383.64746695
delta logL = -0.00388741852021

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5383.64357946
delta logL = 6.64240360493e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3246       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1419       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .53241       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=   5383.644     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      229 TOTAL
                     EDM=   .41E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    40.525        .78326E-02** at limit **
   2  alpha         1.9608        3.0134        .50000       -.96384E-07
   3  Normalizat    1.1419        .22871E-01    .19827E-03    .13030E-03
   4  Prefactor     .53241        .25179E-01    .30849E-03    .97587E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.96083
  Normalizat = 1.14186
  Prefactor  = 0.53241
 **********
 **   18 **HESSE 
 **********

 FCN=   5383.644     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      258 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    259.47        .80879E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.9608        3.0662        .50000       -.21737    
   3  Normalizat    1.1419        .92669E-01    .39654E-04   -.88419    
   4  Prefactor     .53241        .10200        .12339E-04   -1.1051    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.7117e-10
Minuit parameter uncertainties:
  1  0.000137939
  2  1765.16
  3  0.0926823
  4  0.102038
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/935030': 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) = 5383.64357682
delta logL = 2.71106910077e-06

Extracting fit parameters...

4FGL J2328.3-4036
   Spectrum: LogParabola
455         norm:  1.000e-04  1.379e-04  1.000e-04  1.000e+04 ( 1.000e-12)
456        alpha:  1.961e+00  1.765e+03  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:  5.324e-01  1.020e-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.142e+00  9.268e-02  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/935030/cmap_HighResolution_651974401_652233601_4FGL_J2328.3-4036_daily_bin1592.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.59e-05', job_status='DONE', photon_flux_upper_limit='4.54e-08', time_completed='2021-09-29 20:55:39.052257', job_id='935030', GAL2='0.53', fit_tolerance='1e-08', EG2='1.14', EG='1.14', time_epoch_completed='1632974139.05', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.53', dlogl='2.71e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.33' WHERE bin_id='1592' AND source_name='4FGL J2328.3-4036' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 20:55:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0280>
Subject: Job 935030: <4FGL_J2328.3-4036_daily_bin1592> in cluster <slac> Done

Job <4FGL_J2328.3-4036_daily_bin1592> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 20:40:44 2021
Job was executed on host(s) <bullet0280>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 20:40:46 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:46 2021
Terminated at Wed Sep 29 20:55:42 2021
Results reported at Wed Sep 29 20:55:42 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2328.3-4036_daily_bin1592 352.082 -40.6037 651974401 652233601 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 :                                   851.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             349.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   893 sec.
    Turnaround time :                            898 sec.

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

