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


Performing analysis on: 4FGL_J2328.3-4036_daily_bin1626
RA = 352.082, Dec = -40.6037
tmin = 660787201, tmax = 661046401
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='172008', job_status='RUN', time_executed='2021-12-13 00:37:14.500024', time_epoch_executed='1639384634.5' WHERE source_name='4FGL J2328.3-4036' and cadence='daily' and bin_id='1626'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/172008

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/172008/ft1_4FGL_J2328.3-4036_daily_bin1626.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/172008/ft2_4FGL_J2328.3-4036_daily_bin1626.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/172008/ft1_4FGL_J2328.3-4036_daily_bin1626.fits outfile=/scratch/kocevski/172008/ft1_filteredMKT_4FGL_J2328.3-4036_daily_bin1626.fits ra=352.082 dec=-40.6037 rad=12.0 tmin=660787201.0 tmax=661046401.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.32
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/172008/ft1_filtered_4FGL_J2328.3-4036_daily_bin1626.fits" evtable="EVENTS" scfile=/scratch/kocevski/172008/ft2_4FGL_J2328.3-4036_daily_bin1626.fits sctable="SC_DATA" outfile=/scratch/kocevski/172008/ltcube_660787201_661046401_4FGL_J2328.3-4036_daily_bin1626.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/172008/ft2_4FGL_J2328.3-4036_daily_bin1626.fits
.....................!
real 11.37
user 11.04
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/172008/ft1_filtered_4FGL_J2328.3-4036_daily_bin1626.fits evtable="EVENTS" scfile=/scratch/kocevski/172008/ft2_4FGL_J2328.3-4036_daily_bin1626.fits sctable="SC_DATA" expcube=/scratch/kocevski/172008/ltcube_660787201_661046401_4FGL_J2328.3-4036_daily_bin1626.fits outfile=/scratch/kocevski/172008/expmap_660787201_661046401_4FGL_J2328.3-4036_daily_bin1626.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/172008/ltcube_660787201_661046401_4FGL_J2328.3-4036_daily_bin1626.fits
.....................!
real 189.50
user 185.06
sys 4.13

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/172008/ft1_filtered_4FGL_J2328.3-4036_daily_bin1626.fits scfile=/scratch/kocevski/172008/ft2_4FGL_J2328.3-4036_daily_bin1626.fits outfile=/scratch/kocevski/172008/cmap_660787201_661046401_4FGL_J2328.3-4036_daily_bin1626.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/172008/ft1_filtered_4FGL_J2328.3-4036_daily_bin1626.fits scfile=/scratch/kocevski/172008/ft2_4FGL_J2328.3-4036_daily_bin1626.fits outfile=/scratch/kocevski/172008/cmap_HighResolution_660787201_661046401_4FGL_J2328.3-4036_daily_bin1626.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.54
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/172008/ft1_filtered_4FGL_J2328.3-4036_daily_bin1626.fits evtable="EVENTS" scfile=/scratch/kocevski/172008/ft2_4FGL_J2328.3-4036_daily_bin1626.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/172008/Model_4FGL_J2328.3-4036_daily_bin1626.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/172008/ft1_filtered_4FGL_J2328.3-4036_daily_bin1626.fits.....................!
real 38.00
user 36.72
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    5.8427       1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.6132       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.2092       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    24.297       1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.7413       1.0000         .10000E-03   10000.    
    10 'Prefactor '    26.566       1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.0219       1.0000         .10000E-03   10000.    
    12 'Prefactor '    58.239       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10140E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    5.1335       1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    5.3944       1.0000         .10000E-03   10000.    
    20 'Prefactor '    6.7091       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10051E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    1.2397       1.0000         .10000E-03   10000.    
    25 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    29.955       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    8.3048       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .53674       1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    .85958       1.0000         .10000E-01   10.000    
    33 'Prefactor '    1.0333       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=   4760.036     FROM MIGRAD    STATUS=CONVERGED    874 CALLS     4528 TOTAL
                     EDM=   .29E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    20.845       -.75397E-06** at limit **
   2  Prefactor     5.8379        23.542        .13410E-07    .23147E-05
   3  Prefactor     6.6120        41.336        .22192E-05   -.76912E-04
   4  Prefactor     .10000E-03    16.999       -.18252E-05** at limit **
   5  Prefactor     .10000E-03    3.7152       -.11163E-08** at limit **
   6  Prefactor     2.2092        3.0911        .37697E-07   -.38651E-04
   7  Prefactor     .10000E-03    20.826       -.11484E-05** at limit **
   8  Prefactor     24.294        26.727        .53966E-07    .26642E-04
   9  Prefactor     5.7407        16.937        .26419E-05   -.23057E-03
  10  Prefactor     26.562        20.507        .66755E-06    .11885E-03
  11  Prefactor     4.0216        7.9663        .96435E-07   -.81547E-04
  12  Prefactor     58.239        37.487       -.76532E-07   -.18030E-04
  13  Prefactor     .10000E-03    171.43       -.62573E-06** at limit **
  14  Prefactor     .10000E-03    7.8882        .18184E-07** at limit **
  15  norm          .10000E-03    10.566        .30879E-07** at limit **
  16  norm          .10000E-03    2.5811       -.19491E-09** at limit **
  17  norm          5.1335        4.9239        .53539E-06    .33149E-03
  18  norm          .10000E-03    3.2760        .11382E-06** at limit **
  19  Prefactor     5.3943        4.5646        .78012E-08   -.10766E-04
  20  Prefactor     6.7050        38.080       -.44350E-06   -.15040E-04
  21  Prefactor     .10000E-03    47.288        .33568E-06** at limit **
  22  norm          .10000E-03    1.9356        .18223E-08** at limit **
  23  Prefactor     .10000E-03    3.2785       -.10615E-06** at limit **
  24  norm          1.2395        .93786        .14937E-07   -.41882E-04
  25  norm          .10000E-03    1.4274       -.26059E-08** at limit **
  26  Prefactor     .10000E-03    1.5178       -.83178E-09** at limit **
  27  Prefactor     29.956        22.225       -.19424E-06   -.40178E-04
  28  Prefactor     .10000E-03    17.968        .27982E-05** at limit **
  29  Prefactor     8.3054        7.6152        .13377E-06   -.66199E-04
  30  Prefactor     .52760        4.5068        .50999E-06   -.28156E-03
  31  Prefactor     .10000E-03    17.944        .77236E-06** at limit **
  32  Normalizat    .85956        .19969       -.41009E-06   -.39294E-04
  33  Prefactor     1.0334        .21644       -.32561E-06   -.32696E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 5.83788
  Prefactor  = 6.61205
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 2.20923
  Prefactor  = 0.0001
  Prefactor  = 24.2944
  Prefactor  = 5.7407
  Prefactor  = 26.5616
  Prefactor  = 4.02157
  Prefactor  = 58.2389
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 5.13353
  norm       = 0.0001
  Prefactor  = 5.39429
  Prefactor  = 6.70502
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.23951
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 29.9556
  Prefactor  = 0.000100002
  Prefactor  = 8.3054
  Prefactor  = 0.527605
  Prefactor  = 0.0001
  Normalizat = 0.859562
  Prefactor  = 1.03338
 **********
 **   18 **HESSE 
 **********

 FCN=   4760.036     FROM HESSE     STATUS=OK           695 CALLS     5223 TOTAL
                     EDM=   .80E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    20.926        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     5.8379        22.678        .16615E-03   -1.5225    
   3  Prefactor     6.6120        43.677        .78023E-03   -1.5194    
   4  Prefactor     .10000E-03    17.463        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    3.7383        .12983E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     2.2092        3.0755        .13900E-03   -1.5411    
   7  Prefactor     .10000E-03    21.017        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     24.294        26.757        .81265E-04   -1.4722    
   9  Prefactor     5.7407        18.759        .83815E-03   -1.5229    
  10  Prefactor     26.562        20.630        .77723E-04   -1.4677    
  11  Prefactor     4.0216        7.9641        .20108E-03   -1.5307    
  12  Prefactor     58.239        37.500        .52570E-04   -1.4180    
  13  Prefactor     .10000E-03    172.63        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    7.9276        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    10.698        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    2.5833        .10824E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          5.1335        4.9962        .14477E-03   -1.5255    
  18  norm          .10000E-03    3.2880        .12199E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     5.3943        4.5623        .13049E-03   -1.5243    
  20  Prefactor     6.7050        38.559        .15491E-03   -1.5190    
  21  Prefactor     .10000E-03    47.472        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    1.9388        .93433E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    3.2816        .12201E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          1.2395        .94099        .55475E-04   -1.5485    
  25  norm          .10000E-03    1.4348        .80429E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    1.5321        .82911E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     29.956        22.171        .73205E-04   -1.4613    
  28  Prefactor     .10000E-03    19.078        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     8.3054        7.6339        .13911E-03   -1.5132    
  30  Prefactor     .52760        8.1855        .23984E-02   -1.5563    
  31  Prefactor     .10000E-03    18.041        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    .85956        .24106        .23587E-03   -.97896    
  33  Prefactor     1.0334        .26180        .24683E-03   -.91625    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.01361e-10
Minuit parameter uncertainties:
  1  0.000108903
  2  22.711
  3  34.0236
  4  0.00024125
  5  2.01543e-06
  6  3.07573
  7  0.000169006
  8  26.7697
  9  18.7787
  10  20.6354
  11  7.9662
  12  37.5157
  13  0.000318234
  14  3.93348e-06
  15  5.95916e-06
  16  2.09722e-07
  17  4.99662
  18  7.07043e-06
  19  4.56256
  20  32.1895
  21  7.9691e-05
  22  2.02642e-07
  23  5.61193e-06
  24  0.941
  25  7.22385e-07
  26  7.87828e-07
  27  22.1771
  28  0.000396057
  29  7.63477
  30  4.15657
  31  0.000107196
  32  0.241362
  33  0.262121
Done.

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

Extracting fit parameters...

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

EG_v02
   Spectrum: FileFunction
586   Normalization:  8.596e-01  2.414e-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: 6.18e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.16e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/172008/likelihoodResults_660787201_661046401_4FGL_J2328.3-4036_daily_bin1626.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) = 4760.03801465
delta logL = -0.00244726097117

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4759.9997954
delta logL = 0.035771983622

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .27365E-01   1.0000         .10000E-03   10000.    
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    .83732       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0498       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=   4760.000     FROM MIGRAD    STATUS=CONVERGED    115 CALLS      355 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .27386E-01    .11360        .32966E-03    .15883E-01
   2  alpha         5.0000        4.9999        .50000    ** at limit **
   3  Normalizat    .83751        .24078        .23872E-03   -.38956E-03
   4  Prefactor     1.0496        .26392        .24515E-03   -.30563E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0273861
  alpha      = 5
  Normalizat = 0.837508
  Prefactor  = 1.04959
 **********
 **   18 **HESSE 
 **********

 FCN=   4760.000     FROM HESSE     STATUS=OK            31 CALLS      386 TOTAL
                     EDM=   .73E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .27386E-01    .10749        .65932E-04   -1.5675    
   2  alpha         5.0000        4.9934        .50000        1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .83751        .24143        .47743E-04   -.98692    
   4  Prefactor     1.0496        .26445        .49030E-04   -.91094    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.29592e-10
Minuit parameter uncertainties:
  1  0.107494
  2  0.000516636
  3  0.241745
  4  0.264778
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/172008': 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) = 4759.99979495
delta logL = 0.0357724349178

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
587    Prefactor:  1.050e+00  2.648e-01  0.000e+00  1.000e+01 ( 1.000e+00)
588        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
589        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
586   Normalization:  8.375e-01  2.417e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

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

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.16e-05', job_status='DONE', photon_flux_upper_limit='6.18e-08', time_completed='2021-12-13 00:50:19.510867', job_id='172008', GAL2='1.05', fit_tolerance='1e-08', EG2='0.84', EG='0.86', time_epoch_completed='1639385419.51', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.03', dlogl='3.58e-02', ts2='0.08', photon_index_error='0.00', photon_index='2.33' WHERE bin_id='1626' AND source_name='4FGL J2328.3-4036' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Dec 13 00:50:19 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0128>
Subject: Job 172008: <4FGL_J2328.3-4036_daily_bin1626> in cluster <slac> Done

Job <4FGL_J2328.3-4036_daily_bin1626> was submitted from host <rhel6-64c> by user <kocevski> in cluster <slac> at Mon Dec 13 00:36:06 2021
Job was executed on host(s) <bullet0128>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Dec 13 00:36:07 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Dec 13 00:36:07 2021
Terminated at Mon Dec 13 00:50:20 2021
Results reported at Mon Dec 13 00:50:20 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2328.3-4036_daily_bin1626 352.082 -40.6037 660787201 661046401 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 :                                   787.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             343.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   852 sec.
    Turnaround time :                            854 sec.

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

