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


Performing analysis on: 4FGL_J2328.3-4036_daily_bin1037
RA = 352.082, Dec = -40.6037
tmin = 508118401, tmax = 508377601
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='929438', job_status='RUN', time_executed='2021-09-29 20:35:43.962529', time_epoch_executed='1632972943.96' WHERE source_name='4FGL J2328.3-4036' and cadence='daily' and bin_id='1037'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/929438

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/929438/ft1_4FGL_J2328.3-4036_daily_bin1037.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/929438/ft2_4FGL_J2328.3-4036_daily_bin1037.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/929438/ft1_4FGL_J2328.3-4036_daily_bin1037.fits outfile=/scratch/kocevski/929438/ft1_filteredMKT_4FGL_J2328.3-4036_daily_bin1037.fits ra=352.082 dec=-40.6037 rad=12.0 tmin=508118401.0 tmax=508377601.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.64
user 3.41
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/929438/ft1_filtered_4FGL_J2328.3-4036_daily_bin1037.fits" evtable="EVENTS" scfile=/scratch/kocevski/929438/ft2_4FGL_J2328.3-4036_daily_bin1037.fits sctable="SC_DATA" outfile=/scratch/kocevski/929438/ltcube_508118401_508377601_4FGL_J2328.3-4036_daily_bin1037.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/929438/ft2_4FGL_J2328.3-4036_daily_bin1037.fits
.....................!
real 11.93
user 11.59
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/929438/ft1_filtered_4FGL_J2328.3-4036_daily_bin1037.fits evtable="EVENTS" scfile=/scratch/kocevski/929438/ft2_4FGL_J2328.3-4036_daily_bin1037.fits sctable="SC_DATA" expcube=/scratch/kocevski/929438/ltcube_508118401_508377601_4FGL_J2328.3-4036_daily_bin1037.fits outfile=/scratch/kocevski/929438/expmap_508118401_508377601_4FGL_J2328.3-4036_daily_bin1037.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/929438/ltcube_508118401_508377601_4FGL_J2328.3-4036_daily_bin1037.fits
.....................!
real 190.29
user 185.66
sys 4.23

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/929438/ft1_filtered_4FGL_J2328.3-4036_daily_bin1037.fits scfile=/scratch/kocevski/929438/ft2_4FGL_J2328.3-4036_daily_bin1037.fits outfile=/scratch/kocevski/929438/cmap_508118401_508377601_4FGL_J2328.3-4036_daily_bin1037.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.55
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/929438/ft1_filtered_4FGL_J2328.3-4036_daily_bin1037.fits scfile=/scratch/kocevski/929438/ft2_4FGL_J2328.3-4036_daily_bin1037.fits outfile=/scratch/kocevski/929438/cmap_HighResolution_508118401_508377601_4FGL_J2328.3-4036_daily_bin1037.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.56
user 0.41
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/929438/ft1_filtered_4FGL_J2328.3-4036_daily_bin1037.fits evtable="EVENTS" scfile=/scratch/kocevski/929438/ft2_4FGL_J2328.3-4036_daily_bin1037.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/929438/Model_4FGL_J2328.3-4036_daily_bin1037.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/929438/ft1_filtered_4FGL_J2328.3-4036_daily_bin1037.fits.....................!
real 38.69
user 37.39
sys 1.14

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.607       1.0000         .10000E-03   10000.    
     2 'Prefactor '    8.9489       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10097E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    40.831       1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.3978       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.4241       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10006E-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      '    .11695E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    6.2891       1.0000         .10000E-03   10000.    
    19 'Prefactor '    7.7873       1.0000         .10000E-03   10000.    
    20 'Prefactor '    19.054       1.0000         .10000E-03   10000.    
    21 'Prefactor '    13.963       1.0000         .10000E-03   10000.    
    22 'norm      '    .37825E-02   1.0000         .10000E-03   10000.    
    23 'Prefactor '    34.448       1.0000         .10000E-03   10000.    
    24 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .43118       1.0000         .10000E-03   10000.    
    26 'Prefactor '    3.8803       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10134E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    1.8130       1.0000         .10000E-03   10000.    
    31 'Prefactor '    16.517       1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.1339       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .78169       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=   5026.293     FROM MIGRAD    STATUS=CONVERGED    901 CALLS     3957 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.611        78.394        .27146E-02   -.48914E-03
   2  Prefactor     8.9508        13.546        .33496E-02   -.74082E-04
   3  Prefactor     .10000E-03    19.641        .90712E-02** at limit **
   4  Prefactor     .10000E-03    19.541        .90712E-02** at limit **
   5  Prefactor     .10000E-03    8.8925        .90712E-02** at limit **
   6  Prefactor     .10000E-03    1.5478        .90712E-02** at limit **
   7  Prefactor     .10000E-03    15.403        .90712E-02** at limit **
   8  Prefactor     40.836        24.960        .15683E-02    .30244E-03
   9  Prefactor     2.3965        33.192        .66111E-02    .94736E-04
  10  Prefactor     .10000E-03    8.9509        .90712E-02** at limit **
  11  Prefactor     .10000E-03    2.5933        .90712E-02** at limit **
  12  Prefactor     .10000E-03    11.428        .90712E-02** at limit **
  13  Prefactor     3.4215        133.34        .54650E-02    .76862E-04
  14  Prefactor     .10000E-03    6.0014        .90712E-02** at limit **
  15  norm          .10000E-03    5.6552        .90712E-02** at limit **
  16  norm          .10000E-03    2.0569        .90712E-02** at limit **
  17  norm          .10000E-03    6.4269        .90712E-02** at limit **
  18  norm          6.2899        8.4791        .40016E-02    .10545E-03
  19  Prefactor     7.7877        6.8992        .35924E-02    .21519E-02
  20  Prefactor     19.098        33.565        .22939E-02    .29118E-03
  21  Prefactor     13.957        41.768        .26798E-02    .24110E-03
  22  norm          .10000E-03    2.9196        .70057E-01** at limit **
  23  Prefactor     34.445        18.452        .17069E-02   -.55428E-04
  24  norm          .10000E-03    .32455        .90712E-02** at limit **
  25  norm          .43104        5.6311        .10986E-01    .14861E-02
  26  Prefactor     3.8801        3.2784        .51210E-02    .38339E-04
  27  Prefactor     .10000E-03    28.592        .90712E-02** at limit **
  28  Prefactor     .10000E-03    202.86        .90712E-02** at limit **
  29  Prefactor     .10000E-03    8.2302        .90712E-02** at limit **
  30  Prefactor     1.8126        3.2570        .77563E-02    .49793E-03
  31  Prefactor     16.514        56.804        .24637E-02    .11415E-03
  32  Normalizat    1.1337        .19023        .36761E-01    .40685E-05
  33  Prefactor     .78205        .20240        .63401E-01    .16421E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.6105
  Prefactor  = 8.95082
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 40.8356
  Prefactor  = 2.39647
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.42153
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 6.28987
  Prefactor  = 7.78772
  Prefactor  = 19.0978
  Prefactor  = 13.9572
  norm       = 0.0001
  Prefactor  = 34.4454
  norm       = 0.0001
  norm       = 0.431038
  Prefactor  = 3.88006
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 1.81256
  Prefactor  = 16.5143
  Normalizat = 1.13367
  Prefactor  = 0.78205
 **********
 **   18 **HESSE 
 **********

 FCN=   5026.293     FROM HESSE     STATUS=OK           693 CALLS     4650 TOTAL
                     EDM=   .91E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.611        78.889        .10858E-03   -1.4970    
   2  Prefactor     8.9508        13.529        .13398E-03   -1.5110    
   3  Prefactor     .10000E-03    19.648        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    19.585        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    9.1501        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    1.5666        .86113E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    15.410        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     40.836        24.924        .62732E-04   -1.4429    
   9  Prefactor     2.3965        33.108        .26445E-03   -1.5398    
  10  Prefactor     .10000E-03    9.0094        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    2.6089        .11148E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    11.429        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     3.4215        133.45        .21860E-03   -1.5338    
  14  Prefactor     .10000E-03    6.0223        .16961E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    5.6657        .16466E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    2.0579        .99299E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    6.6394        .34960E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          6.2899        8.4658        .16006E-03   -1.5206    
  19  Prefactor     7.7877        6.9058        .71847E-03   -1.5150    
  20  Prefactor     19.098        34.801        .91756E-04   -1.4834    
  21  Prefactor     13.957        41.768        .10719E-03   -1.4961    
  22  norm          .10000E-03    8.2325        .35484E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     34.445        18.499        .68277E-04   -1.4533    
  24  norm          .10000E-03    .32921        .39387E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .43104        5.5381        .30393E-03   -1.5577    
  26  Prefactor     3.8801        3.2766        .11402E-03   -1.5314    
  27  Prefactor     .10000E-03    29.055        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    204.72        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    8.3387        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     1.8126        3.2275        .16405E-03   -1.5439    
  31  Prefactor     16.514        56.795        .98548E-04   -1.4895    
  32  Normalizat    1.1337        .22666        .21528E-03   -.88678    
  33  Prefactor     .78205        .23974        .28045E-03   -1.0039    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.14748e-09
Minuit parameter uncertainties:
  1  65.6665
  2  13.5331
  3  5.67214e-05
  4  6.08096e-05
  5  9.26689e-05
  6  2.56847e-07
  7  4.20673e-06
  8  24.9302
  9  17.8265
  10  0.000101101
  11  3.00771e-07
  12  5.39013e-07
  13  42.8389
  14  8.08267e-08
  15  5.97793e-07
  16  1.84957e-07
  17  1.12195e-06
  18  8.46741
  19  6.90653
  20  34.8378
  21  41.8554
  22  3.63319e-05
  23  18.5024
  24  7.62147e-08
  25  3.09007
  26  3.27673
  27  2.24361e-05
  28  0.00115095
  29  1.33036e-05
  30  3.22785
  31  56.982
  32  0.226854
  33  0.240061
Done.

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

Extracting fit parameters...

4FGL J2328.3-4036
   Spectrum: LogParabola
455         norm:  1.000e-04  3.633e-05  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:  7.820e-01  2.401e-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.134e+00  2.269e-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.92e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.77e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/929438/likelihoodResults_508118401_508377601_4FGL_J2328.3-4036_daily_bin1037.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) = 5026.29315912
delta logL = -6.21064800725e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5026.2803564
delta logL = 0.0127406185757

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .35610       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.9135       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1290       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .78317       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=   5026.280     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      424 TOTAL
                     EDM=   .60E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .35604        42.947        .32342E-01    .43298E-03
   2  alpha         2.9132        2.9900        .41886        .34427E-04
   3  Normalizat    1.1290        .21869E-01    .36927E-01    .41101E-05
   4  Prefactor     .78316        .24266E-01    .63351E-01    .15439E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.356044
  alpha      = 2.91316
  Normalizat = 1.12898
  Prefactor  = 0.783164
 **********
 **   18 **HESSE 
 **********

 FCN=   5026.280     FROM HESSE     STATUS=OK            35 CALLS      459 TOTAL
                     EDM=   .50E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .35604        337.55        .18776E-02   -1.5589    
   2  alpha         2.9132        2.7286        .55813E-01    .16602    
   3  Normalizat    1.1290        .22775        .21564E-03   -.88827    
   4  Prefactor     .78316        .24357        .28022E-03   -1.0035    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.95812e-08
Minuit parameter uncertainties:
  1  22.0481
  2  23.6038
  3  0.227948
  4  0.243909
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/929438': 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) = 5026.28035638
delta logL = 0.0127406301917

Extracting fit parameters...

4FGL J2328.3-4036
   Spectrum: LogParabola
455         norm:  3.560e-01  2.205e+01  1.000e-04  1.000e+04 ( 1.000e-12)
456        alpha:  2.913e+00  2.360e+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:  7.832e-01  2.439e-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.129e+00  2.279e-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/929438/cmap_HighResolution_508118401_508377601_4FGL_J2328.3-4036_daily_bin1037.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.77e-05', job_status='DONE', photon_flux_upper_limit='7.92e-08', time_completed='2021-09-29 20:48:44.532369', job_id='929438', GAL2='0.78', fit_tolerance='1e-08', EG2='1.13', EG='1.13', time_epoch_completed='1632973724.53', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.78', dlogl='1.27e-02', ts2='0.03', photon_index_error='0.00', photon_index='2.33' WHERE bin_id='1037' AND source_name='4FGL J2328.3-4036' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 20:48:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0210>
Subject: Job 929438: <4FGL_J2328.3-4036_daily_bin1037> in cluster <slac> Done

Job <4FGL_J2328.3-4036_daily_bin1037> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep 29 20:35:11 2021
Job was executed on host(s) <bullet0210>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 20:35:13 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:13 2021
Terminated at Wed Sep 29 20:48:47 2021
Results reported at Wed Sep 29 20:48:47 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2328.3-4036_daily_bin1037 352.082 -40.6037 508118401 508377601 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 :                                   777.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             328.88 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   818 sec.
    Turnaround time :                            816 sec.

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

