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


Performing analysis on: 4FGL_J2328.3-4036_daily_bin1379
RA = 352.082, Dec = -40.6037
tmin = 596764801, tmax = 597024001
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='934473', job_status='RUN', time_executed='2021-09-29 20:41:21.000460', time_epoch_executed='1632973281.0' WHERE source_name='4FGL J2328.3-4036' and cadence='daily' and bin_id='1379'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/934473

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/934473/ft1_4FGL_J2328.3-4036_daily_bin1379.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/934473/ft2_4FGL_J2328.3-4036_daily_bin1379.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/934473/ft1_4FGL_J2328.3-4036_daily_bin1379.fits outfile=/scratch/kocevski/934473/ft1_filteredMKT_4FGL_J2328.3-4036_daily_bin1379.fits ra=352.082 dec=-40.6037 rad=12.0 tmin=596764801.0 tmax=597024001.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 2.62
user 2.41
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/934473/ft1_filtered_4FGL_J2328.3-4036_daily_bin1379.fits" evtable="EVENTS" scfile=/scratch/kocevski/934473/ft2_4FGL_J2328.3-4036_daily_bin1379.fits sctable="SC_DATA" outfile=/scratch/kocevski/934473/ltcube_596764801_597024001_4FGL_J2328.3-4036_daily_bin1379.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/934473/ft2_4FGL_J2328.3-4036_daily_bin1379.fits
.....................!
real 8.80
user 8.51
sys 0.27

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/934473/ft1_filtered_4FGL_J2328.3-4036_daily_bin1379.fits evtable="EVENTS" scfile=/scratch/kocevski/934473/ft2_4FGL_J2328.3-4036_daily_bin1379.fits sctable="SC_DATA" expcube=/scratch/kocevski/934473/ltcube_596764801_597024001_4FGL_J2328.3-4036_daily_bin1379.fits outfile=/scratch/kocevski/934473/expmap_596764801_597024001_4FGL_J2328.3-4036_daily_bin1379.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/934473/ltcube_596764801_597024001_4FGL_J2328.3-4036_daily_bin1379.fits
.....................!
real 140.03
user 136.20
sys 3.62

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/934473/ft1_filtered_4FGL_J2328.3-4036_daily_bin1379.fits scfile=/scratch/kocevski/934473/ft2_4FGL_J2328.3-4036_daily_bin1379.fits outfile=/scratch/kocevski/934473/cmap_596764801_597024001_4FGL_J2328.3-4036_daily_bin1379.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.43
user 0.28
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/934473/ft1_filtered_4FGL_J2328.3-4036_daily_bin1379.fits scfile=/scratch/kocevski/934473/ft2_4FGL_J2328.3-4036_daily_bin1379.fits outfile=/scratch/kocevski/934473/cmap_HighResolution_596764801_597024001_4FGL_J2328.3-4036_daily_bin1379.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.44
user 0.28
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/934473/ft1_filtered_4FGL_J2328.3-4036_daily_bin1379.fits evtable="EVENTS" scfile=/scratch/kocevski/934473/ft2_4FGL_J2328.3-4036_daily_bin1379.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/934473/Model_4FGL_J2328.3-4036_daily_bin1379.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/934473/ft1_filtered_4FGL_J2328.3-4036_daily_bin1379.fits.....................!
real 28.73
user 27.70
sys 0.98

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    8.4157       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    8.1375       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    14.929       1.0000         .10000E-03   10000.    
     8 'Prefactor '    31.812       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    11.577       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.9831       1.0000         .10000E-03   10000.    
    13 'Prefactor '    34.953       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    4.7446       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .58892       1.0000         .10000E-03   10000.    
    18 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    10.344       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    6.3108       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10110E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .13691E-02   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    23.881       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    6.4359       1.0000         .10000E-03   10000.    
    31 'Prefactor '    22.844       1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.1925       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .81014       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=   4842.056     FROM MIGRAD    STATUS=CONVERGED    895 CALLS     4593 TOTAL
                     EDM=   .24E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    97.595        .20885E-06** at limit **
   2  Prefactor     8.4153        16.971        .14846E-06   -.96726E-05
   3  Prefactor     .10000E-03    76.036        .69666E-06** at limit **
   4  Prefactor     .10000E-03    17.898        .31867E-06** at limit **
   5  Prefactor     8.1375        5.8254        .14985E-07   -.24382E-04
   6  Prefactor     .10000E-03    2.5818       -.24930E-05** at limit **
   7  Prefactor     15.020        63.612        .74168E-06   -.10436E-04
   8  Prefactor     31.797        35.871        .30343E-06    .14860E-04
   9  Prefactor     .10000E-03    11.736       -.16324E-05** at limit **
  10  Prefactor     11.578        14.016        .15253E-06   -.71898E-05
  11  Prefactor     .10000E-03    2.3791       -.65097E-06** at limit **
  12  Prefactor     7.9846        27.026        .11913E-06    .98727E-06
  13  Prefactor     34.950        37.243        .11085E-06   -.73123E-06
  14  Prefactor     .10000E-03    4.1939        .96167E-07** at limit **
  15  norm          4.7452        12.911        .10773E-06   -.12482E-04
  16  norm          .10000E-03    1.9060        .26721E-07** at limit **
  17  norm          .58937        7.1597        .30863E-05   -.14428E-03
  18  norm          .10000E-03    6.3521        .58401E-06** at limit **
  19  Prefactor     10.345        7.0141        .16731E-07   -.11596E-03
  20  Prefactor     .10000E-03    19.947        .80127E-06** at limit **
  21  Prefactor     .10000E-03    66.241        .20800E-05** at limit **
  22  norm          6.3099        5.8662       -.15041E-05   -.32758E-03
  23  Prefactor     .10000E-03    17.862        .92938E-06** at limit **
  24  norm          .10000E-03    .43986        .17197E-06** at limit **
  25  norm          .10065E-03    2.9139        .44242E-06** at limit **
  26  Prefactor     .10000E-03    2.2816        .18141E-06** at limit **
  27  Prefactor     23.878        24.525        .95874E-07   -.49130E-04
  28  Prefactor     .10000E-03    32.203        .91885E-06** at limit **
  29  Prefactor     .10000E-03    4.3665        .16222E-05** at limit **
  30  Prefactor     6.4350        5.4369        .18693E-07   -.66403E-04
  31  Prefactor     22.812        47.774        .44793E-06   -.63177E-05
  32  Normalizat    1.1928        .21765       -.26152E-05   -.32256E-04
  33  Prefactor     .80980        .23213        .20832E-05   -.22931E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 8.41532
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.13749
  Prefactor  = 0.0001
  Prefactor  = 15.0202
  Prefactor  = 31.7973
  Prefactor  = 0.0001
  Prefactor  = 11.5776
  Prefactor  = 0.0001
  Prefactor  = 7.98461
  Prefactor  = 34.9504
  Prefactor  = 0.0001
  norm       = 4.74522
  norm       = 0.0001
  norm       = 0.589366
  norm       = 0.0001
  Prefactor  = 10.3453
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.3099
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.000100653
  Prefactor  = 0.0001
  Prefactor  = 23.8778
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.43496
  Prefactor  = 22.812
  Normalizat = 1.19277
  Prefactor  = 0.809796
 **********
 **   18 **HESSE 
 **********

 FCN=   4842.056     FROM HESSE     STATUS=OK           701 CALLS     5294 TOTAL
                     EDM=   .70E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    98.075        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     8.4153        16.943        .13819E-03   -1.5128    
   3  Prefactor     .10000E-03    76.257        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    17.948        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     8.1375        5.8253        .13786E-03   -1.5137    
   6  Prefactor     .10000E-03    2.5650        .10828E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     15.020        63.648        .10366E-03   -1.4933    
   8  Prefactor     31.797        35.889        .71042E-04   -1.4580    
   9  Prefactor     .10000E-03    11.730        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     11.578        14.016        .11774E-03   -1.5027    
  11  Prefactor     .10000E-03    2.3772        .10474E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     7.9846        27.023        .14191E-03   -1.5143    
  13  Prefactor     34.950        37.245        .67784E-04   -1.4525    
  14  Prefactor     .10000E-03    4.1975        .13918E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          4.7452        12.914        .92361E-03   -1.5272    
  16  norm          .10000E-03    1.9063        .93822E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .58937        7.4200        .15368E-02   -1.5554    
  18  norm          .10000E-03    6.4164        .17137E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     10.345        6.9849        .12458E-03   -1.5065    
  20  Prefactor     .10000E-03    19.996        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    66.586        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          6.3099        6.1249        .12910E-03   -1.5206    
  23  Prefactor     .10000E-03    18.095        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    .45610        .90021E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10065E-03    7.7281        .38080E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    2.3011        .10233E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     23.878        24.453        .81969E-04   -1.4730    
  28  Prefactor     .10000E-03    32.234        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    4.4347        .14212E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     6.4350        5.4395        .13761E-03   -1.5201    
  31  Prefactor     22.812        47.761        .83806E-04   -1.4752    
  32  Normalizat    1.1928        .24718        .22053E-03   -.86827    
  33  Prefactor     .80980        .26562        .28846E-03   -.99368    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.98687e-10
Minuit parameter uncertainties:
  1  8.99314e-05
  2  16.9532
  3  8.28307e-05
  4  1.7016e-05
  5  5.82569
  6  4.1064e-06
  7  61.9508
  8  35.9132
  9  9.7073e-06
  10  14.0199
  11  4.91414e-07
  12  27.0649
  13  37.2693
  14  3.97686e-06
  15  12.9221
  16  3.9519e-07
  17  4.18269
  18  1.72252e-05
  19  6.98542
  20  7.69708e-05
  21  0.000305218
  22  6.12546
  23  5.34429e-05
  24  1.84224e-06
  25  0.00449277
  26  5.77584e-06
  27  24.4635
  28  1.8572e-05
  29  1.8257e-05
  30  5.43994
  31  47.8416
  32  0.247421
  33  0.266044
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
587    Prefactor:  8.098e-01  2.660e-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.193e+00  2.474e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.30
Ra Dec: 352.082 -40.604
Photon Index (Fixed Index): 2.33 +/- 0.00
Photon Flux (Fixed Index): 4.77e-08 +/- 4.63e-08
Energy Flux (Fixed Index): 1.67e-05 +/- 1.62e-05

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

Saving results to:
/scratch/kocevski/934473/likelihoodResults_596764801_597024001_4FGL_J2328.3-4036_daily_bin1379.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): 0
logL (Free Index) = 4842.04581164
delta logL = 0.0106410971866

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4842.04371506
delta logL = 0.012737680865

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.0079       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4642       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1840       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81600       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=   4842.044     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      244 TOTAL
                     EDM=   .32E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.0080        5.2926        .12258E-03   -.23724E-03
   2  alpha         2.4641        .83824        .15389E-01   -.25542E-04
   3  Normalizat    1.1840        .24375        .22122E-03    .40175E-03
   4  Prefactor     .81597        .26298        .28748E-03    .25254E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 6.00801
  alpha      = 2.46415
  Normalizat = 1.18399
  Prefactor  = 0.815968
 **********
 **   18 **HESSE 
 **********

 FCN=   4842.044     FROM HESSE     STATUS=OK            25 CALLS      269 TOTAL
                     EDM=   .35E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.0080        5.1218        .49032E-05   -1.5218    
   2  alpha         2.4641        .81073        .61556E-03   -.14341E-01
   3  Normalizat    1.1840        .24357        .44243E-04   -.87099    
   4  Prefactor     .81597        .26295        .11499E-04   -.99142    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.53422e-10
Minuit parameter uncertainties:
  1  5.12215
  2  0.825659
  3  0.243804
  4  0.263355
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/934473': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4842.04371505
delta logL = 0.0127376902919

Extracting fit parameters...

4FGL J2328.3-4036
   Spectrum: LogParabola
455         norm:  6.008e+00  5.122e+00  1.000e-04  1.000e+04 ( 1.000e-12)
456        alpha:  2.464e+00  8.257e-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:  8.160e-01  2.634e-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.184e+00  2.438e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.32
Ra Dec: 352.082 -40.604
Photon Index (Free Index): 2.46 +/- 0.83
Photon Flux (Free Index): 5.37e-08 +/- 5.47e-08
Energy Flux (Free Index): 1.63e-05 +/- 1.24e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/934473/cmap_HighResolution_596764801_597024001_4FGL_J2328.3-4036_daily_bin1379.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.57e-05', comment='SUCCESS', photon_flux='4.77e-08', energy_flux2='1.63e-05', photon_flux_error='4.63e-08', dlogl='1.27e-02', energy_flux='1.67e-05', photon_flux2='5.37e-08', job_status='DONE', time_completed='2021-09-29 20:51:38.279798', photon_index_error2='0.83', photon_index2='2.46', ts='3.30', fit_tolerance='1e-08', GAL='0.81', photon_index_error='0.00', photon_flux_upper_limit='1.31e-07', energy_flux_error2='1.24e-05', EG='1.19', time_epoch_completed='1632973898.28', return_code='0', job_id='934473', GAL2='0.82', EG2='1.18', return_code2='0', energy_flux_error='1.62e-05', photon_flux_error2='5.47e-08', ts2='3.32', photon_index='2.33' WHERE bin_id='1379' AND source_name='4FGL J2328.3-4036' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 20:51:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0168>
Subject: Job 934473: <4FGL_J2328.3-4036_daily_bin1379> in cluster <slac> Done

Job <4FGL_J2328.3-4036_daily_bin1379> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 20:40:22 2021
Job was executed on host(s) <bullet0168>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 20:40:23 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:23 2021
Terminated at Wed Sep 29 20:51:38 2021
Results reported at Wed Sep 29 20:51:38 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2328.3-4036_daily_bin1379 352.082 -40.6037 596764801 597024001 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 :                                   601.12 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             285.09 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   675 sec.
    Turnaround time :                            676 sec.

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

