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


Performing analysis on: 4FGL_J2328.3-4036_daily_bin1084
RA = 352.082, Dec = -40.6037
tmin = 520300801, tmax = 520560001
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='929581', job_status='RUN', time_executed='2021-09-29 20:37:16.465735', time_epoch_executed='1632973036.47' WHERE source_name='4FGL J2328.3-4036' and cadence='daily' and bin_id='1084'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/929581

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/929581/ft1_4FGL_J2328.3-4036_daily_bin1084.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/929581/ft2_4FGL_J2328.3-4036_daily_bin1084.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/929581/ft1_4FGL_J2328.3-4036_daily_bin1084.fits outfile=/scratch/kocevski/929581/ft1_filteredMKT_4FGL_J2328.3-4036_daily_bin1084.fits ra=352.082 dec=-40.6037 rad=12.0 tmin=520300801.0 tmax=520560001.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 6.08
user 5.82
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/929581/ft2_4FGL_J2328.3-4036_daily_bin1084.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/929581/ft1_filteredMKT_4FGL_J2328.3-4036_daily_bin1084.fits evtable="EVENTS" outfile="/scratch/kocevski/929581/ft1_filtered_4FGL_J2328.3-4036_daily_bin1084.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/929581/ft1_filtered_4FGL_J2328.3-4036_daily_bin1084.fits" evtable="EVENTS" scfile=/scratch/kocevski/929581/ft2_4FGL_J2328.3-4036_daily_bin1084.fits sctable="SC_DATA" outfile=/scratch/kocevski/929581/ltcube_520300801_520560001_4FGL_J2328.3-4036_daily_bin1084.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/929581/ft2_4FGL_J2328.3-4036_daily_bin1084.fits
.....................!
real 13.66
user 13.31
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/929581/ft1_filtered_4FGL_J2328.3-4036_daily_bin1084.fits evtable="EVENTS" scfile=/scratch/kocevski/929581/ft2_4FGL_J2328.3-4036_daily_bin1084.fits sctable="SC_DATA" expcube=/scratch/kocevski/929581/ltcube_520300801_520560001_4FGL_J2328.3-4036_daily_bin1084.fits outfile=/scratch/kocevski/929581/expmap_520300801_520560001_4FGL_J2328.3-4036_daily_bin1084.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/929581/ltcube_520300801_520560001_4FGL_J2328.3-4036_daily_bin1084.fits
.....................!
real 190.98
user 185.68
sys 4.60

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/929581/ft1_filtered_4FGL_J2328.3-4036_daily_bin1084.fits scfile=/scratch/kocevski/929581/ft2_4FGL_J2328.3-4036_daily_bin1084.fits outfile=/scratch/kocevski/929581/cmap_520300801_520560001_4FGL_J2328.3-4036_daily_bin1084.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.54
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/929581/ft1_filtered_4FGL_J2328.3-4036_daily_bin1084.fits scfile=/scratch/kocevski/929581/ft2_4FGL_J2328.3-4036_daily_bin1084.fits outfile=/scratch/kocevski/929581/cmap_HighResolution_520300801_520560001_4FGL_J2328.3-4036_daily_bin1084.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.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/929581/ft1_filtered_4FGL_J2328.3-4036_daily_bin1084.fits evtable="EVENTS" scfile=/scratch/kocevski/929581/ft2_4FGL_J2328.3-4036_daily_bin1084.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/929581/Model_4FGL_J2328.3-4036_daily_bin1084.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/929581/ft1_filtered_4FGL_J2328.3-4036_daily_bin1084.fits.....................!
real 42.39
user 40.43
sys 1.34

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    10.356       1.0000         .10000E-03   10000.    
     3 'Prefactor '    17.667       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    9.9147       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10513E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    43.931       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10075E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    8.2393       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    2.2269       1.0000         .10000E-03   10000.    
    18 'norm      '    14.569       1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.8505       1.0000         .10000E-03   10000.    
    20 'Prefactor '    59.009       1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.2177       1.0000         .10000E-03   10000.    
    22 'norm      '    .25046E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    1.7760       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10190E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10351E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    .69822       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .98717       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=   5051.241     FROM MIGRAD    STATUS=CONVERGED    912 CALLS     4658 TOTAL
                     EDM=   .77E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    146.70        .37866E-05** at limit **
   2  Prefactor     10.356        17.163        .68116E-06    .86854E-05
   3  Prefactor     17.645        60.339       -.72768E-05   -.16835E-04
   4  Prefactor     .10000E-03    30.593        .41593E-05** at limit **
   5  Prefactor     9.9147        7.7250        .23805E-06   -.95805E-04
   6  Prefactor     .10000E-03    2.2581        .20199E-06** at limit **
   7  Prefactor     .10000E-03    11.462       -.11772E-05** at limit **
   8  Prefactor     43.936        23.716        .56477E-06   -.12035E-04
   9  Prefactor     .10000E-03    12.053        .16288E-05** at limit **
  10  Prefactor     .10000E-03    17.331        .16782E-07** at limit **
  11  Prefactor     .10002E-03    4.2262       -.94797E-06** at limit **
  12  Prefactor     .10000E-03    9.6028        .12841E-05** at limit **
  13  Prefactor     8.2278        81.308       -.42143E-05   -.14692E-04
  14  Prefactor     .10000E-03    6.1226        .15386E-06** at limit **
  15  norm          .10000E-03    3.2586        .34740E-07** at limit **
  16  norm          .10000E-03    3.1585        .25208E-07** at limit **
  17  norm          2.2301        5.0710       -.23696E-05   -.50485E-03
  18  norm          14.569        9.4413       -.40415E-06   -.15671E-03
  19  Prefactor     3.8506        5.1249        .78564E-06   -.56369E-06
  20  Prefactor     59.083        39.252       -.13099E-05   -.31940E-03
  21  Prefactor     1.2110        651.92        .19007E-05    .14647E-05
  22  norm          .10002E-03    3.3862        .28088E-05** at limit **
  23  Prefactor     .10000E-03    6.1524        .14404E-06** at limit **
  24  norm          .10000E-03    .45820        .98128E-07** at limit **
  25  norm          .10000E-03    2.7477        .34785E-06** at limit **
  26  Prefactor     1.7766        3.2305        .32566E-06    .11107E-03
  27  Prefactor     .10000E-03    48.230       -.68959E-05** at limit **
  28  Prefactor     .10000E-03    73.366        .61217E-05** at limit **
  29  Prefactor     .10000E-03    1.8531        .34060E-08** at limit **
  30  Prefactor     .10000E-03    1.9581        .42619E-07** at limit **
  31  Prefactor     .10000E-03    23.036       -.17597E-05** at limit **
  32  Normalizat    .69826        .17362       -.29288E-05   -.14571E-03
  33  Prefactor     .98717        .18025        .65738E-06   -.34041E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 10.3562
  Prefactor  = 17.6452
  Prefactor  = 0.0001
  Prefactor  = 9.91466
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 43.9359
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100017
  Prefactor  = 0.0001
  Prefactor  = 8.22777
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 2.23014
  norm       = 14.5694
  Prefactor  = 3.85057
  Prefactor  = 59.0834
  Prefactor  = 1.211
  norm       = 0.000100016
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 1.77659
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.698256
  Prefactor  = 0.987174
 **********
 **   18 **HESSE 
 **********

 FCN=   5051.241     FROM HESSE     STATUS=OK           693 CALLS     5351 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    147.69        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     10.356        17.145        .12451E-03   -1.5064    
   3  Prefactor     17.645        60.175        .95289E-04   -1.4868    
   4  Prefactor     .10000E-03    30.735        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     9.9147        7.7233        .12726E-03   -1.5078    
   6  Prefactor     .10000E-03    6.0222        .20637E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    11.463        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     43.936        23.729        .60487E-04   -1.4381    
   9  Prefactor     .10000E-03    12.121        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    17.781        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10002E-03    10.019        .27842E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    9.6097        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     8.2278        81.127        .13967E-03   -1.5134    
  14  Prefactor     .10000E-03    6.1382        .17175E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    3.2597        .12530E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    3.1643        .12328E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          2.2301        5.0701        .22639E-03   -1.5409    
  18  norm          14.569        9.4066        .10493E-03   -1.4944    
  19  Prefactor     3.8506        5.0782        .17781E-03   -1.5315    
  20  Prefactor     59.083        40.478        .52228E-04   -1.4169    
  21  Prefactor     1.2110        661.75        .40910E-02   -1.5488    
  22  norm          .10002E-03    9.8992        .22388E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    6.1603        .17210E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    .78846        .92497E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    2.7745        .11489E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     1.7766        3.1918        .16429E-03   -1.5441    
  27  Prefactor     .10000E-03    48.375        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    73.885        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    1.8632        .94480E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    1.9692        .97086E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .10000E-03    23.093        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    .69826        .20381        .23991E-03   -1.0396    
  33  Prefactor     .98717        .21447        .22446E-03   -.93158    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.91849e-09
Minuit parameter uncertainties:
  1  0.000546061
  2  17.1529
  3  60.3832
  4  0.000157214
  5  7.72407
  6  8.94813e-05
  7  1.45148e-05
  8  23.7344
  9  6.07866e-05
  10  0.000114393
  11  0.000821428
  12  2.69845e-05
  13  51.763
  14  7.249e-06
  15  8.94782e-08
  16  7.36972e-06
  17  5.07107
  18  9.40756
  19  5.07879
  20  40.4969
  21  57.2622
  22  0.000791131
  23  3.42973e-06
  24  1.22085e-06
  25  1.06505e-05
  26  3.19208
  27  4.57489e-05
  28  0.000373416
  29  3.29435e-06
  30  7.24891e-06
  31  2.57127e-05
  32  0.204034
  33  0.214659
Done.

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

Extracting fit parameters...

4FGL J2328.3-4036
   Spectrum: LogParabola
455         norm:  1.000e-04  7.911e-04  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:  9.872e-01  2.147e-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:  6.983e-01  2.040e-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: 8.52e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.98e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/929581/likelihoodResults_520300801_520560001_4FGL_J2328.3-4036_daily_bin1084.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) = 5051.24151666
delta logL = -0.000482230107991

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5051.24103603
delta logL = -1.59476803674e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .14705E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4218       1.0000          .0000       5.0000    
     3 'Normalizat'    .69862       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98681       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5900E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5051.187     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      260 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .48956        182.73        .90712E-02   -.14577E-02
   2  alpha         3.4156        3.2143        .41177        .40757E-04
   3  Normalizat    .68286        .11596        .42272E-01    .13534E-04
   4  Prefactor     .99474        .89787E-01    .46102E-01    .10447E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.489559
  alpha      = 3.41564
  Normalizat = 0.682861
  Prefactor  = 0.994735
 **********
 **   18 **HESSE 
 **********

 FCN=   5051.187     FROM HESSE     STATUS=OK            33 CALLS      293 TOTAL
                     EDM=   .41E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .48956        4.3768        .14160E-03   -1.5848    
   2  alpha         3.4156        3.9116        .35443E-01    .37498    
   3  Normalizat    .68286        .19647        .24223E-03   -1.0457    
   4  Prefactor     .99474        .21221        .22357E-03   -.92905    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.05962e-08
Minuit parameter uncertainties:
  1  2.92759
  2  2.89159
  3  0.196672
  4  0.212388
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/929581': 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) = 5051.1871472
delta logL = 0.0538872324232

Extracting fit parameters...

4FGL J2328.3-4036
   Spectrum: LogParabola
455         norm:  4.896e-01  2.928e+00  1.000e-04  1.000e+04 ( 1.000e-12)
456        alpha:  3.416e+00  2.892e+00  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:  9.947e-01  2.124e-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:  6.829e-01  1.967e-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/929581/cmap_HighResolution_520300801_520560001_4FGL_J2328.3-4036_daily_bin1084.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.98e-05', job_status='DONE', photon_flux_upper_limit='8.52e-08', time_completed='2021-09-29 20:51:20.780392', job_id='929581', GAL2='0.99', fit_tolerance='1e-08', EG2='0.68', EG='0.70', time_epoch_completed='1632973880.78', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.99', dlogl='5.39e-02', ts2='0.12', photon_index_error='0.00', photon_index='2.33' WHERE bin_id='1084' AND source_name='4FGL J2328.3-4036' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 20:51:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0216>
Subject: Job 929581: <4FGL_J2328.3-4036_daily_bin1084> in cluster <slac> Done

Job <4FGL_J2328.3-4036_daily_bin1084> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep 29 20:35:17 2021
Job was executed on host(s) <bullet0216>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 20:35:19 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 20:35:19 2021
Terminated at Wed Sep 29 20:51:21 2021
Results reported at Wed Sep 29 20:51:21 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2328.3-4036_daily_bin1084 352.082 -40.6037 520300801 520560001 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 :                                   818.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             304.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   963 sec.
    Turnaround time :                            964 sec.

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

