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


Performing analysis on: 4FGL_J2328.3-4036_daily_bin1293
RA = 352.082, Dec = -40.6037
tmin = 574473601, tmax = 574732801
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='934250', job_status='RUN', time_executed='2021-09-29 20:40:54.130008', time_epoch_executed='1632973254.13' WHERE source_name='4FGL J2328.3-4036' and cadence='daily' and bin_id='1293'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/934250

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/934250/ft1_4FGL_J2328.3-4036_daily_bin1293.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/934250/ft2_4FGL_J2328.3-4036_daily_bin1293.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/934250/ft1_4FGL_J2328.3-4036_daily_bin1293.fits outfile=/scratch/kocevski/934250/ft1_filteredMKT_4FGL_J2328.3-4036_daily_bin1293.fits ra=352.082 dec=-40.6037 rad=12.0 tmin=574473601.0 tmax=574732801.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.05
user 3.82
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/934250/ft2_4FGL_J2328.3-4036_daily_bin1293.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/934250/ft1_filteredMKT_4FGL_J2328.3-4036_daily_bin1293.fits evtable="EVENTS" outfile="/scratch/kocevski/934250/ft1_filtered_4FGL_J2328.3-4036_daily_bin1293.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.48
user 0.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/934250/ft1_filtered_4FGL_J2328.3-4036_daily_bin1293.fits" evtable="EVENTS" scfile=/scratch/kocevski/934250/ft2_4FGL_J2328.3-4036_daily_bin1293.fits sctable="SC_DATA" outfile=/scratch/kocevski/934250/ltcube_574473601_574732801_4FGL_J2328.3-4036_daily_bin1293.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/934250/ft2_4FGL_J2328.3-4036_daily_bin1293.fits
.....................!
real 11.98
user 11.64
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/934250/ft1_filtered_4FGL_J2328.3-4036_daily_bin1293.fits evtable="EVENTS" scfile=/scratch/kocevski/934250/ft2_4FGL_J2328.3-4036_daily_bin1293.fits sctable="SC_DATA" expcube=/scratch/kocevski/934250/ltcube_574473601_574732801_4FGL_J2328.3-4036_daily_bin1293.fits outfile=/scratch/kocevski/934250/expmap_574473601_574732801_4FGL_J2328.3-4036_daily_bin1293.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/934250/ltcube_574473601_574732801_4FGL_J2328.3-4036_daily_bin1293.fits
.....................!
real 191.09
user 186.32
sys 4.44

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/934250/ft1_filtered_4FGL_J2328.3-4036_daily_bin1293.fits scfile=/scratch/kocevski/934250/ft2_4FGL_J2328.3-4036_daily_bin1293.fits outfile=/scratch/kocevski/934250/cmap_574473601_574732801_4FGL_J2328.3-4036_daily_bin1293.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.52
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/934250/ft1_filtered_4FGL_J2328.3-4036_daily_bin1293.fits scfile=/scratch/kocevski/934250/ft2_4FGL_J2328.3-4036_daily_bin1293.fits outfile=/scratch/kocevski/934250/cmap_HighResolution_574473601_574732801_4FGL_J2328.3-4036_daily_bin1293.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.53
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/934250/ft1_filtered_4FGL_J2328.3-4036_daily_bin1293.fits evtable="EVENTS" scfile=/scratch/kocevski/934250/ft2_4FGL_J2328.3-4036_daily_bin1293.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/934250/Model_4FGL_J2328.3-4036_daily_bin1293.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/934250/ft1_filtered_4FGL_J2328.3-4036_daily_bin1293.fits.....................!
real 42.61
user 41.36
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    64.390       1.0000         .10000E-03   10000.    
     2 'Prefactor '    21.949       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10539E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    15.711       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    17.303       1.0000         .10000E-03   10000.    
     7 'Prefactor '    13.636       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    10.868       1.0000         .10000E-03   10000.    
    12 'Prefactor '    8.1628       1.0000         .10000E-03   10000.    
    13 'Prefactor '    57.960       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10086E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    4.4476       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    9.8361       1.0000         .10000E-03   10000.    
    19 'Prefactor '    5.4964       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    75.349       1.0000         .10000E-03   10000.    
    22 'norm      '    8.0787       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .38576       1.0000         .10000E-03   10000.    
    25 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .13980E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    5.4697       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    14.820       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .11115E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10365E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    .78449       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .85047       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=   5626.769     FROM MIGRAD    STATUS=CONVERGED    876 CALLS     4581 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     64.377        55.211       -.13469E-05   -.96266E-04
   2  Prefactor     21.949        21.754       -.17551E-06    .16583E-03
   3  Prefactor     .10000E-03    32.777       -.44894E-07** at limit **
   4  Prefactor     15.711        17.431       -.20239E-06   -.35110E-06
   5  Prefactor     .10000E-03    3.0330       -.11582E-06** at limit **
   6  Prefactor     17.302        5.3094       -.45826E-07    .42203E-04
   7  Prefactor     13.636        17.994       -.31300E-07   -.29001E-05
   8  Prefactor     .10000E-03    6.5412        .48641E-06** at limit **
   9  Prefactor     .10000E-03    10.189       -.39587E-06** at limit **
  10  Prefactor     .10000E-03    3.0623        .15752E-06** at limit **
  11  Prefactor     10.866        9.0059       -.91341E-07    .80325E-05
  12  Prefactor     8.1633        23.204        .31480E-05    .13648E-03
  13  Prefactor     57.946        49.471       -.13180E-05   -.13383E-03
  14  Prefactor     .10000E-03    10.843        .14089E-06** at limit **
  15  norm          4.4476        6.0567        .19833E-08    .12767E-04
  16  norm          .10000E-03    1.7613        .80435E-08** at limit **
  17  norm          .10000E-03    1.8256        .71630E-07** at limit **
  18  norm          9.8355        7.6056        .30467E-07    .72488E-05
  19  Prefactor     5.4980        4.3541       -.72913E-08    .18600E-03
  20  Prefactor     .10000E-03    18.357       -.12867E-05** at limit **
  21  Prefactor     75.333        49.696       -.13865E-05   -.16561E-03
  22  norm          8.0762        3.9522       -.64202E-07    .12668E-03
  23  Prefactor     .10000E-03    9.4885        .74693E-07** at limit **
  24  norm          .38566        .66028       -.19466E-07    .51064E-03
  25  norm          .10000E-03    1.9044        .17577E-06** at limit **
  26  Prefactor     .10002E-03    3.6423       -.24350E-05** at limit **
  27  Prefactor     5.4965        17.399        .26609E-05    .44235E-03
  28  Prefactor     .10000E-03    16.654        .14614E-05** at limit **
  29  Prefactor     14.803        7.8480       -.13311E-06    .46360E-04
  30  Prefactor     .10000E-03    3.6787       -.20998E-06** at limit **
  31  Prefactor     .10000E-03    124.23       -.66380E-06** at limit **
  32  Normalizat    .78477        .17362        .19041E-05    .45844E-03
  33  Prefactor     .85023        .18392       -.12113E-05    .40791E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 64.3774
  Prefactor  = 21.9488
  Prefactor  = 0.0001
  Prefactor  = 15.711
  Prefactor  = 0.0001
  Prefactor  = 17.3024
  Prefactor  = 13.636
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.8662
  Prefactor  = 8.16326
  Prefactor  = 57.9455
  Prefactor  = 0.0001
  norm       = 4.44761
  norm       = 0.0001
  norm       = 0.0001
  norm       = 9.83553
  Prefactor  = 5.49803
  Prefactor  = 0.000100001
  Prefactor  = 75.3329
  norm       = 8.07616
  Prefactor  = 0.0001
  norm       = 0.385663
  norm       = 0.0001
  Prefactor  = 0.000100023
  Prefactor  = 5.49654
  Prefactor  = 0.000100001
  Prefactor  = 14.803
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Normalizat = 0.784767
  Prefactor  = 0.850231
 **********
 **   18 **HESSE 
 **********

 FCN=   5626.769     FROM HESSE     STATUS=OK           689 CALLS     5270 TOTAL
                     EDM=   .52E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     64.377        55.568        .50011E-04   -1.4102    
   2  Prefactor     21.949        21.722        .85495E-04   -1.4771    
   3  Prefactor     .10000E-03    32.816        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     15.711        17.437        .10105E-03   -1.4915    
   5  Prefactor     .10000E-03    3.0579        .12755E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     17.302        5.3123        .92138E-04   -1.4876    
   7  Prefactor     13.636        17.993        .10847E-03   -1.4969    
   8  Prefactor     .10000E-03    6.5639        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    10.241        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    3.0683        .12823E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     10.866        9.0094        .12153E-03   -1.5049    
  12  Prefactor     8.1633        23.260        .70163E-03   -1.5136    
  13  Prefactor     57.946        49.841        .52696E-04   -1.4184    
  14  Prefactor     .10000E-03    11.041        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          4.4476        6.0513        .19094E-03   -1.5286    
  16  norm          .10000E-03    1.7620        .97210E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    1.8277        .98956E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          9.8355        7.6009        .12777E-03   -1.5081    
  19  Prefactor     5.4980        4.3373        .13382E-03   -1.5239    
  20  Prefactor     .10000E-03    18.621        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     75.333        50.177        .46256E-04   -1.3970    
  22  norm          8.0762        3.9470        .99937E-04   -1.5140    
  23  Prefactor     .10000E-03    9.5815        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .38566        .55360        .75855E-03   -1.5584    
  25  norm          .10000E-03    1.9289        .10089E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10002E-03    6.4734        .18803E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     5.4965        17.821        .17181E-03   -1.5239    
  28  Prefactor     .10000E-03    16.831        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     14.803        7.9107        .10404E-03   -1.4938    
  30  Prefactor     .10000E-03    3.8168        .28005E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .10000E-03    125.13        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    .78477        .20153        .23246E-03   -1.0064    
  33  Prefactor     .85023        .21246        .25205E-03   -.97902    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.20115e-09
Minuit parameter uncertainties:
  1  55.6123
  2  21.7294
  3  3.56254e-05
  4  17.4429
  5  1.36716e-05
  6  5.31245
  7  18.0003
  8  6.16475e-05
  9  7.15669e-05
  10  1.35538e-05
  11  9.01048
  12  23.2856
  13  49.8767
  14  7.37242e-06
  15  6.05217
  16  4.74811e-07
  17  2.95782e-06
  18  7.60169
  19  4.33757
  20  0.000315221
  21  50.2054
  22  3.94712
  23  1.88678e-05
  24  0.553609
  25  6.46385e-06
  26  0.000779142
  27  17.8384
  28  0.000304641
  29  7.91121
  30  1.47287e-05
  31  0.00054495
  32  0.201721
  33  0.21267
Done.

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

Extracting fit parameters...

4FGL J2328.3-4036
   Spectrum: LogParabola
455         norm:  8.076e+00  3.947e+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.502e-01  2.127e-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:  7.848e-01  2.017e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 12.21
Ra Dec: 352.082 -40.604
Photon Index (Fixed Index): 2.33 +/- 0.00
Photon Flux (Fixed Index): 6.10e-08 +/- 2.98e-08
Energy Flux (Fixed Index): 2.13e-05 +/- 1.04e-05

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) = 5626.66925264
delta logL = 0.100087778947

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5626.66824316
delta logL = 0.101097262636

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    9.0307       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1400       1.0000          .0000       5.0000    
     3 'Normalizat'    .79387       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84329       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=   5626.668     FROM MIGRAD    STATUS=CONVERGED     43 CALLS      226 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          9.0307        112.22        .33343E-02    .71662E-03
   2  alpha         2.1401        3.3032        .26078        .44676E-05
   3  Normalizat    .79387        .14926        .43530E-01   -.40471E-04
   4  Prefactor     .84329        .15321        .44278E-01    .71439E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 9.03069
  alpha      = 2.14005
  Normalizat = 0.79387
  Prefactor  = 0.843295
 **********
 **   18 **HESSE 
 **********

 FCN=   5626.668     FROM HESSE     STATUS=OK            33 CALLS      259 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          9.0307        4.8254        .10824E-03   -1.5107    
   2  alpha         2.1401        .42195        .10613E-01   -.14448    
   3  Normalizat    .79387        .18558        .23127E-03   -1.0030    
   4  Prefactor     .84329        .20917        .25300E-03   -.98152    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.02666e-10
Minuit parameter uncertainties:
  1  4.82562
  2  0.42402
  3  0.185729
  4  0.209372
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/934250': 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) = 5626.66824316
delta logL = 0.101097263818

Extracting fit parameters...

4FGL J2328.3-4036
   Spectrum: LogParabola
455         norm:  9.031e+00  4.826e+00  1.000e-04  1.000e+04 ( 1.000e-12)
456        alpha:  2.140e+00  4.240e-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.433e-01  2.094e-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:  7.939e-01  1.857e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 12.37
Ra Dec: 352.082 -40.604
Photon Index (Free Index): 2.14 +/- 0.42
Photon Flux (Free Index): 5.43e-08 +/- 3.11e-08
Energy Flux (Free Index): 2.46e-05 +/- 1.51e-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/934250/cmap_HighResolution_574473601_574732801_4FGL_J2328.3-4036_daily_bin1293.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.10e-08', energy_flux2='2.46e-05', photon_flux_error='2.98e-08', dlogl='1.01e-01', energy_flux='2.13e-05', photon_flux2='5.43e-08', job_status='DONE', time_completed='2021-09-29 20:54:05.106775', photon_index_error2='0.42', photon_index2='2.14', ts='12.21', fit_tolerance='1e-08', GAL='0.85', photon_index_error='0.00', energy_flux_error2='1.51e-05', EG='0.78', time_epoch_completed='1632974045.11', return_code='0', job_id='934250', GAL2='0.84', EG2='0.79', return_code2='0', energy_flux_error='1.04e-05', photon_flux_error2='3.11e-08', ts2='12.37', photon_index='2.33' WHERE bin_id='1293' AND source_name='4FGL J2328.3-4036' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 20:54:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0102>
Subject: Job 934250: <4FGL_J2328.3-4036_daily_bin1293> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2328.3-4036_daily_bin1293 352.082 -40.6037 574473601 574732801 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 :                                   778.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             289.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   831 sec.
    Turnaround time :                            831 sec.

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

