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


Performing analysis on: 4FGL_J2328.3-4036_daily_bin1606
RA = 352.082, Dec = -40.6037
tmin = 655603201, tmax = 655862401
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='501357', job_status='RUN', time_executed='2021-12-08 09:32:50.249294', time_epoch_executed='1638984770.25' WHERE source_name='4FGL J2328.3-4036' and cadence='daily' and bin_id='1606'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/501357

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/501357/ft1_4FGL_J2328.3-4036_daily_bin1606.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/501357/ft2_4FGL_J2328.3-4036_daily_bin1606.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/501357/ft1_4FGL_J2328.3-4036_daily_bin1606.fits outfile=/scratch/kocevski/501357/ft1_filteredMKT_4FGL_J2328.3-4036_daily_bin1606.fits ra=352.082 dec=-40.6037 rad=12.0 tmin=655603201.0 tmax=655862401.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 4.26
user 4.01
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/501357/ft1_filtered_4FGL_J2328.3-4036_daily_bin1606.fits" evtable="EVENTS" scfile=/scratch/kocevski/501357/ft2_4FGL_J2328.3-4036_daily_bin1606.fits sctable="SC_DATA" outfile=/scratch/kocevski/501357/ltcube_655603201_655862401_4FGL_J2328.3-4036_daily_bin1606.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/501357/ft2_4FGL_J2328.3-4036_daily_bin1606.fits
.....................!
real 13.61
user 13.24
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/501357/ft1_filtered_4FGL_J2328.3-4036_daily_bin1606.fits evtable="EVENTS" scfile=/scratch/kocevski/501357/ft2_4FGL_J2328.3-4036_daily_bin1606.fits sctable="SC_DATA" expcube=/scratch/kocevski/501357/ltcube_655603201_655862401_4FGL_J2328.3-4036_daily_bin1606.fits outfile=/scratch/kocevski/501357/expmap_655603201_655862401_4FGL_J2328.3-4036_daily_bin1606.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/501357/ltcube_655603201_655862401_4FGL_J2328.3-4036_daily_bin1606.fits
.....................!
real 190.99
user 185.62
sys 4.87

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/501357/ft1_filtered_4FGL_J2328.3-4036_daily_bin1606.fits scfile=/scratch/kocevski/501357/ft2_4FGL_J2328.3-4036_daily_bin1606.fits outfile=/scratch/kocevski/501357/cmap_655603201_655862401_4FGL_J2328.3-4036_daily_bin1606.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.57
user 0.37
sys 0.16

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    36.465       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10622E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10558E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10073E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    11.957       1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.6995       1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.9280       1.0000         .10000E-03   10000.    
     8 'Prefactor '    35.380       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10623E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10103E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10197E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .86996E-02   1.0000         .10000E-03   10000.    
    14 'Prefactor '    17.755       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    4.3030       1.0000         .10000E-03   10000.    
    17 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .58051       1.0000         .10000E-03   10000.    
    19 'Prefactor '    5.8475       1.0000         .10000E-03   10000.    
    20 'Prefactor '    45.211       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10227E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10656E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    7.0656       1.0000         .10000E-03   10000.    
    24 'norm      '    1.6053       1.0000         .10000E-03   10000.    
    25 'norm      '    3.5697       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .25114       1.0000         .10000E-03   10000.    
    27 'Prefactor '    5.6226       1.0000         .10000E-03   10000.    
    28 'Prefactor '    76.394       1.0000         .10000E-03   10000.    
    29 'Prefactor '    2.5841       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10607E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.3820       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .34136       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5900E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4171.215     FROM MIGRAD    STATUS=CONVERGED    148 CALLS     3876 TOTAL
                     EDM=   .30E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     36.480        3.1733        .67098E-06    .13937E-03
   2  Prefactor     .10000E-03    27.830       -.15022E-05** at limit **
   3  Prefactor     .10897E-03    51.062       -.46606E-05** at limit **
   4  Prefactor     .10000E-03    17.590        .16667E-05** at limit **
   5  Prefactor     11.961        2.2405       -.23200E-05   -.81482E-03
   6  Prefactor     6.6961        4.5042        .45674E-06    .16635E-03
   7  Prefactor     4.1427        107.66        .25612E-04    .11798E-02
   8  Prefactor     35.382        1.0393       -.35659E-07    .25406E-03
   9  Prefactor     .10000E-03    14.026       -.40862E-06** at limit **
  10  Prefactor     .10000E-03    7.0218       -.18801E-06** at limit **
  11  Prefactor     .10000E-03    4.6563        .40015E-07** at limit **
  12  Prefactor     .10003E-03    45.144        .44881E-05** at limit **
  13  Prefactor     .38978E-03    255.75       -.51802E-04** at limit **
  14  Prefactor     17.761        1.1977        .39922E-06    .75397E-04
  15  norm          .10000E-03    3.8364        .91600E-07** at limit **
  16  norm          4.3029        4.4000       -.36116E-06   -.49589E-04
  17  norm          .10000E-03    1.5812        .24935E-06** at limit **
  18  norm          .57023        24.112       -.40444E-04   -.78358E-03
  19  Prefactor     5.8478        5.3065       -.38513E-05   -.43234E-03
  20  Prefactor     45.202        1.6682        .90299E-07   -.13151E-02
  21  Prefactor     .10077E-03    66.211       -.78170E-05** at limit **
  22  norm          .10000E-03    2.8328        .79906E-06** at limit **
  23  Prefactor     7.0689        1.4149       -.44152E-07   -.77385E-04
  24  norm          1.6053        1.0762        .11104E-06    .28340E-04
  25  norm          3.5733        4.8468       -.77210E-06   -.21518E-04
  26  Prefactor     .25063        3.1847       -.15999E-05   -.49132E-04
  27  Prefactor     5.6092        1.6866       -.14049E-06    .33029E-03
  28  Prefactor     76.403        2.2712        .50116E-06   -.13977E-02
  29  Prefactor     2.5859        4.6484       -.77650E-06   -.38938E-04
  30  Prefactor     .10000E-03    1.3071       -.38973E-06** at limit **
  31  Prefactor     .10670E-03    79.180        .14291E-04** at limit **
  32  Normalizat    1.3815        .23948        .43752E-05    .11576E-03
  33  Prefactor     .34163        .24237       -.26717E-05    .51375E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 36.4804
  Prefactor  = 0.000100001
  Prefactor  = 0.000108972
  Prefactor  = 0.0001
  Prefactor  = 11.9609
  Prefactor  = 6.69611
  Prefactor  = 4.14271
  Prefactor  = 35.3824
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100029
  Prefactor  = 0.000389775
  Prefactor  = 17.7608
  norm       = 0.0001
  norm       = 4.30293
  norm       = 0.0001
  norm       = 0.570228
  Prefactor  = 5.84778
  Prefactor  = 45.2018
  Prefactor  = 0.000100771
  norm       = 0.0001
  Prefactor  = 7.06892
  norm       = 1.60526
  norm       = 3.57329
  Prefactor  = 0.250628
  Prefactor  = 5.60918
  Prefactor  = 76.4026
  Prefactor  = 2.58585
  Prefactor  = 0.0001
  Prefactor  = 0.000106699
  Normalizat = 1.38148
  Prefactor  = 0.341635
 **********
 **   18 **HESSE 
 **********

 FCN=   4171.215     FROM HESSE     STATUS=OK           775 CALLS     4651 TOTAL
                     EDM=   .59E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     36.480        46.006        .16592E-02   -1.4499    
   2  Prefactor     .10000E-03    27.251        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10897E-03    102.84        .90712E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    17.538        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     11.961        8.1814        .28962E-02   -1.5016    
   6  Prefactor     6.6961        5.4168        .38757E-02   -1.5190    
   7  Prefactor     4.1427        161.60        .50887E-02   -1.5301    
   8  Prefactor     35.382        27.922        .16844E-02   -1.4518    
   9  Prefactor     .10000E-03    14.016        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    7.0000        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    4.6401        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10003E-03    44.896        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .38978E-03    820.96        .91650E-02   -1.5705    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     17.761        19.890        .23763E-02   -1.4865    
  15  norm          .10000E-03    3.8361        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          4.3029        4.4039        .48552E-02   -1.5293    
  17  norm          .10000E-03    1.5806        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .57023        5.9523        .82762E-01   -1.5557    
  19  Prefactor     5.8478        5.9448        .41519E-02   -1.5224    
  20  Prefactor     45.202        38.859        .14907E-02   -1.4362    
  21  Prefactor     .10077E-03    69.332        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    2.7985        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     7.0689        14.308        .37729E-02   -1.5176    
  24  norm          1.6053        1.1036        .83618E-03   -1.5455    
  25  norm          3.5733        5.4701        .53476E-02   -1.5330    
  26  Prefactor     .25063        2.8082        .49472E-01   -1.5608    
  27  Prefactor     5.6092        21.890        .42354E-02   -1.5234    
  28  Prefactor     76.403        80.401        .11485E-02   -1.3958    
  29  Prefactor     2.5859        4.7099        .63465E-02   -1.5386    
  30  Prefactor     .10000E-03    1.3031        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .10670E-03    126.37        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    1.3815        .23223        .31479E-01   -.81166    
  33  Prefactor     .34163        .23410        .86179E-01   -1.1990    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.885e-07
Minuit parameter uncertainties:
  1  46.0504
  2  0.000295298
  3  0.0608561
  4  0.000172908
  5  8.1822
  6  5.41719
  7  51.8983
  8  27.9322
  9  5.28049e-06
  10  2.34115e-06
  11  4.57456e-06
  12  0.00229567
  13  0.989353
  14  19.8974
  15  2.91513e-06
  16  4.40424
  17  1.31973e-06
  18  3.68479
  19  5.94535
  20  38.8805
  21  0.0146376
  22  4.02082e-06
  23  14.3146
  24  1.10359
  25  5.47083
  26  1.67765
  27  21.9209
  28  80.5158
  29  4.71058
  30  2.19482e-06
  31  0.0583151
  32  0.232405
  33  0.234754
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
587    Prefactor:  3.416e-01  2.348e-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.381e+00  2.324e-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: 7.15e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.50e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/501357/likelihoodResults_655603201_655862401_4FGL_J2328.3-4036_daily_bin1606.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) = 4171.21684545
delta logL = -0.00166977169738

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4171.21516206
delta logL = 1.36172957355e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    3.5450       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3815       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .34164       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=   4171.215     FROM MIGRAD    STATUS=CONVERGED    111 CALLS      327 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10248E-03    1.2699        .11224E-01** at limit **
   2  alpha         4.3564        2.8538        .18798        .55403E-06
   3  Normalizat    1.3815        .73210E-02    .19535E-03    .22560E-02
   4  Prefactor     .34164        .75361E-02    .38187E-03    .77091E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000102475
  alpha      = 4.3564
  Normalizat = 1.38147
  Prefactor  = 0.341638
 **********
 **   18 **HESSE 
 **********

 FCN=   4171.215     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      360 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10248E-03    1.8262        .11228E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         4.3564        4.2568        .75193E-02    .83688    
   3  Normalizat    1.3815        .87957E-02    .39069E-04   -.81166    
   4  Prefactor     .34164        .90515E-02    .76374E-04   -1.1990    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.79354e-08
Minuit parameter uncertainties:
  1  0.00425254
  2  223.554
  3  0.00879572
  4  0.00905153
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/501357': 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) = 4171.21515298
delta logL = 2.26987158385e-05

Extracting fit parameters...

4FGL J2328.3-4036
   Spectrum: LogParabola
455         norm:  1.025e-04  4.253e-03  1.000e-04  1.000e+04 ( 1.000e-12)
456        alpha:  4.356e+00  2.236e+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:  3.416e-01  9.052e-03  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.381e+00  8.796e-03  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/501357/cmap_HighResolution_655603201_655862401_4FGL_J2328.3-4036_daily_bin1606.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.50e-05', job_status='DONE', photon_flux_upper_limit='7.15e-08', time_completed='2021-12-08 09:44:39.310211', job_id='501357', GAL2='0.34', fit_tolerance='1e-08', EG2='1.38', EG='1.38', time_epoch_completed='1638985479.31', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.34', dlogl='2.27e-05', ts2='0.00', photon_index_error='0.00', photon_index='2.33' WHERE bin_id='1606' AND source_name='4FGL J2328.3-4036' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Dec  8 09:44:39 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0117>
Subject: Job 501357: <4FGL_J2328.3-4036_daily_bin1606> in cluster <slac> Done

Job <4FGL_J2328.3-4036_daily_bin1606> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Wed Dec  8 09:30:20 2021
Job was executed on host(s) <bullet0117>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Dec  8 09:31:27 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Dec  8 09:31:27 2021
Terminated at Wed Dec  8 09:44:40 2021
Results reported at Wed Dec  8 09:44:40 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2328.3-4036_daily_bin1606 352.082 -40.6037 655603201 655862401 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 :                                   708.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             295.22 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   792 sec.
    Turnaround time :                            860 sec.

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

