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


Performing analysis on: 4FGL_J2328.3-4036_daily_bin1270
RA = 352.082, Dec = -40.6037
tmin = 568512001, tmax = 568771201
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='930158', job_status='RUN', time_executed='2021-09-29 20:37:25.974789', time_epoch_executed='1632973045.97' WHERE source_name='4FGL J2328.3-4036' and cadence='daily' and bin_id='1270'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/930158

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/930158/ft1_4FGL_J2328.3-4036_daily_bin1270.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/930158/ft2_4FGL_J2328.3-4036_daily_bin1270.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/930158/ft1_4FGL_J2328.3-4036_daily_bin1270.fits outfile=/scratch/kocevski/930158/ft1_filteredMKT_4FGL_J2328.3-4036_daily_bin1270.fits ra=352.082 dec=-40.6037 rad=12.0 tmin=568512001.0 tmax=568771201.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.54
user 3.33
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/930158/ft1_filtered_4FGL_J2328.3-4036_daily_bin1270.fits" evtable="EVENTS" scfile=/scratch/kocevski/930158/ft2_4FGL_J2328.3-4036_daily_bin1270.fits sctable="SC_DATA" outfile=/scratch/kocevski/930158/ltcube_568512001_568771201_4FGL_J2328.3-4036_daily_bin1270.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/930158/ft2_4FGL_J2328.3-4036_daily_bin1270.fits
.....................!
real 13.27
user 12.90
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/930158/ft1_filtered_4FGL_J2328.3-4036_daily_bin1270.fits evtable="EVENTS" scfile=/scratch/kocevski/930158/ft2_4FGL_J2328.3-4036_daily_bin1270.fits sctable="SC_DATA" expcube=/scratch/kocevski/930158/ltcube_568512001_568771201_4FGL_J2328.3-4036_daily_bin1270.fits outfile=/scratch/kocevski/930158/expmap_568512001_568771201_4FGL_J2328.3-4036_daily_bin1270.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/930158/ltcube_568512001_568771201_4FGL_J2328.3-4036_daily_bin1270.fits
.....................!
real 191.14
user 186.60
sys 4.21

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/930158/ft1_filtered_4FGL_J2328.3-4036_daily_bin1270.fits scfile=/scratch/kocevski/930158/ft2_4FGL_J2328.3-4036_daily_bin1270.fits outfile=/scratch/kocevski/930158/cmap_568512001_568771201_4FGL_J2328.3-4036_daily_bin1270.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.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/930158/ft1_filtered_4FGL_J2328.3-4036_daily_bin1270.fits scfile=/scratch/kocevski/930158/ft2_4FGL_J2328.3-4036_daily_bin1270.fits outfile=/scratch/kocevski/930158/cmap_HighResolution_568512001_568771201_4FGL_J2328.3-4036_daily_bin1270.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.56
user 0.38
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/930158/ft1_filtered_4FGL_J2328.3-4036_daily_bin1270.fits evtable="EVENTS" scfile=/scratch/kocevski/930158/ft2_4FGL_J2328.3-4036_daily_bin1270.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/930158/Model_4FGL_J2328.3-4036_daily_bin1270.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/930158/ft1_filtered_4FGL_J2328.3-4036_daily_bin1270.fits.....................!
real 32.46
user 31.18
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.7286       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    9.9844       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .65783       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.1886       1.0000         .10000E-03   10000.    
     9 'Prefactor '    107.96       1.0000         .10000E-03   10000.    
    10 'Prefactor '    7.0988       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    32.211       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    15.921       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      '    14.210       1.0000         .10000E-03   10000.    
    18 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    48.124       1.0000         .10000E-03   10000.    
    22 'norm      '    .23355E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    10.879       1.0000         .10000E-03   10000.    
    24 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .56171E-01   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    158.55       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    4.7346       1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10344E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.3785       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .48386       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=   3513.138     FROM MIGRAD    STATUS=CONVERGED    891 CALLS     4622 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.5939        475.47       -.18141E-04   -.33355E-04
   2  Prefactor     .10000E-03    9.7342        .72049E-07** at limit **
   3  Prefactor     .10000E-03    23.464        .44358E-07** at limit **
   4  Prefactor     .10000E-03    33.040       -.39271E-06** at limit **
   5  Prefactor     9.9849        8.9614       -.25563E-06   -.92434E-04
   6  Prefactor     .66008        6.1383        .22710E-05   -.23003E-03
   7  Prefactor     .10000E-03    23.585       -.70019E-08** at limit **
   8  Prefactor     7.2234        51.730        .77807E-06    .31948E-05
   9  Prefactor     107.95        47.208        .31912E-07   -.59323E-04
  10  Prefactor     7.1048        20.053        .60760E-06    .14695E-04
  11  Prefactor     .10000E-03    3.2353        .96382E-07** at limit **
  12  Prefactor     32.220        33.514        .38256E-07   -.65644E-05
  13  Prefactor     .10000E-03    124.03        .12945E-05** at limit **
  14  Prefactor     15.924        20.897        .38520E-07   -.23510E-04
  15  norm          .10000E-03    6.1551        .95117E-07** at limit **
  16  norm          .10000E-03    2.9664        .13073E-07** at limit **
  17  norm          14.205        9.2321       -.51696E-06   -.99529E-03
  18  norm          .10000E-03    4.3330        .22145E-06** at limit **
  19  Prefactor     .10000E-03    6.2165        .69054E-07** at limit **
  20  Prefactor     .10000E-03    24.433        .27633E-06** at limit **
  21  Prefactor     48.130        66.223        .20833E-07   -.10694E-04
  22  norm          .10006E-03    6.6447        .26964E-05** at limit **
  23  Prefactor     10.880        17.911       -.19331E-06   -.40675E-04
  24  norm          .10000E-03    .53515        .79693E-07** at limit **
  25  norm          .85236E-01    5.1590       -.12147E-05    .35472E-03
  26  Prefactor     .10000E-03    1.8667        .15055E-06** at limit **
  27  Prefactor     .10000E-03    18.385        .31338E-06** at limit **
  28  Prefactor     158.55        100.45       -.16545E-06   -.11422E-04
  29  Prefactor     .10000E-03    3.2943        .38820E-07** at limit **
  30  Prefactor     4.7349        4.6212       -.45296E-07   -.88191E-04
  31  Prefactor     .10000E-03    80.673        .36265E-06** at limit **
  32  Normalizat    1.3785        .26427        .28455E-05   -.63849E-03
  33  Prefactor     .48376        .25972       -.77493E-05   -.37115E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.5939
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.98493
  Prefactor  = 0.660078
  Prefactor  = 0.0001
  Prefactor  = 7.2234
  Prefactor  = 107.945
  Prefactor  = 7.10484
  Prefactor  = 0.0001
  Prefactor  = 32.22
  Prefactor  = 0.000100001
  Prefactor  = 15.924
  norm       = 0.0001
  norm       = 0.0001
  norm       = 14.2055
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 48.1303
  norm       = 0.000100058
  Prefactor  = 10.8796
  norm       = 0.0001
  norm       = 0.0852362
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 158.548
  Prefactor  = 0.0001
  Prefactor  = 4.73494
  Prefactor  = 0.0001
  Normalizat = 1.37848
  Prefactor  = 0.483758
 **********
 **   18 **HESSE 
 **********

 FCN=   3513.138     FROM HESSE     STATUS=OK           695 CALLS     5317 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.5939        492.25        .24652E-02   -1.5386    
   2  Prefactor     .10000E-03    9.7386        .18063E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    23.472        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    33.075        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     9.9849        8.9572        .12681E-03   -1.5076    
   6  Prefactor     .66008        10.152        .25825E-02   -1.5545    
   7  Prefactor     .10000E-03    23.603        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     7.2234        51.425        .14961E-03   -1.5170    
   9  Prefactor     107.95        47.168        .38707E-04   -1.3626    
  10  Prefactor     7.1048        20.206        .15056E-03   -1.5175    
  11  Prefactor     .10000E-03    3.2406        .10413E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     32.220        33.517        .70602E-04   -1.4572    
  13  Prefactor     .10000E-03    124.38        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     15.924        20.966        .10038E-03   -1.4910    
  15  norm          .10000E-03    6.1581        .14364E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    2.9677        .99699E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          14.205        9.0309        .10625E-03   -1.4954    
  18  norm          .10000E-03    4.3498        .12055E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    6.2421        .14389E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    24.459        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     48.130        66.577        .57803E-04   -1.4319    
  22  norm          .10006E-03    24.235        .22851E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     10.880        17.954        .12147E-03   -1.5048    
  24  norm          .10000E-03    .54425        .42284E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .85236E-01    89.284        .22366E-02   -1.5650    
  26  Prefactor     .10000E-03    1.8832        .79109E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    18.448        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     158.55        100.55        .16011E-03   -1.3183    
  29  Prefactor     .10000E-03    3.3031        .10506E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     4.7349        4.6213        .12112E-03   -1.5273    
  31  Prefactor     .10000E-03    80.865        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    1.3785        .29158        .20943E-03   -.81253    
  33  Prefactor     .48376        .28027        .34726E-03   -1.1273    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.04089e-08
Minuit parameter uncertainties:
  1  72.0742
  2  9.59131e-06
  3  4.97415e-06
  4  1.21765e-05
  5  8.95842
  6  5.17788
  7  1.47043e-05
  8  38.5936
  9  47.1849
  10  20.2256
  11  4.63559e-06
  12  33.5362
  13  0.000588903
  14  20.9759
  15  9.20981e-06
  16  1.74714e-06
  17  9.03175
  18  1.62328e-05
  19  1.41672e-05
  20  3.79606e-05
  21  66.6799
  22  0.00236459
  23  17.9624
  24  2.11708e-06
  25  5.52235
  26  6.19949e-06
  27  4.12966e-05
  28  100.663
  29  4.33306e-06
  30  4.62164
  31  1.61764e-05
  32  0.291928
  33  0.281073
Done.

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

Extracting fit parameters...

4FGL J2328.3-4036
   Spectrum: LogParabola
455         norm:  1.001e-04  2.365e-03  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:  4.838e-01  2.811e-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.378e+00  2.919e-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.12e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.92e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/930158/likelihoodResults_568512001_568771201_4FGL_J2328.3-4036_daily_bin1270.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) = 3513.13836777
delta logL = -0.000196846413473

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3513.13817688
delta logL = -5.95752044319e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .19125E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3285       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3777       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .48441       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=   3513.138     FROM MIGRAD    STATUS=CONVERGED     61 CALLS      238 TOTAL
                     EDM=   .56E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.4336        .65483E-01** at limit **
   2  alpha         2.3255        3.7333        .41275        .43409E-06
   3  Normalizat    1.3785        .43780E-02    .47376E-01    .18482E-03
   4  Prefactor     .48376        .45346E-02    .78402E-01    .14334E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100002
  alpha      = 2.32552
  Normalizat = 1.37849
  Prefactor  = 0.48376
 **********
 **   18 **HESSE 
 **********

 FCN=   3513.138     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      271 TOTAL
                     EDM=   .94E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    452.74        .22925E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.3255        3.6005        .50000       -.69848E-01
   3  Normalizat    1.3785        .24703E-01    .20943E-03   -.81253    
   4  Prefactor     .48376        .25522E-01    .34726E-03   -1.1273    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.38159e-09
Minuit parameter uncertainties:
  1  0.00200494
  2  780.952
  3  0.0247035
  4  0.0255227
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/930158': 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) = 3513.13817092
delta logL = 3.01997715724e-09

Extracting fit parameters...

4FGL J2328.3-4036
   Spectrum: LogParabola
455         norm:  1.000e-04  2.005e-03  1.000e-04  1.000e+04 ( 1.000e-12)
456        alpha:  2.326e+00  7.810e+02  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:  4.838e-01  2.552e-02  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.378e+00  2.470e-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/930158/cmap_HighResolution_568512001_568771201_4FGL_J2328.3-4036_daily_bin1270.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.92e-05', job_status='DONE', photon_flux_upper_limit='1.12e-07', time_completed='2021-09-29 20:48:31.697217', job_id='930158', GAL2='0.48', fit_tolerance='1e-08', EG2='1.38', EG='1.38', time_epoch_completed='1632973711.7', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.48', dlogl='3.02e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.33' WHERE bin_id='1270' AND source_name='4FGL J2328.3-4036' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 20:48:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0245>
Subject: Job 930158: <4FGL_J2328.3-4036_daily_bin1270> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2328.3-4036_daily_bin1270 352.082 -40.6037 568512001 568771201 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 :                                   663.21 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             267.69 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   766 sec.
    Turnaround time :                            768 sec.

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

