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


Performing analysis on: 4FGL_J2328.3-4036_daily_bin1058
RA = 352.082, Dec = -40.6037
tmin = 513561601, tmax = 513820801
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='929503', job_status='RUN', time_executed='2021-09-29 20:38:01.078594', time_epoch_executed='1632973081.08' WHERE source_name='4FGL J2328.3-4036' and cadence='daily' and bin_id='1058'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/929503

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/929503/ft1_4FGL_J2328.3-4036_daily_bin1058.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/929503/ft2_4FGL_J2328.3-4036_daily_bin1058.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/929503/ft1_4FGL_J2328.3-4036_daily_bin1058.fits outfile=/scratch/kocevski/929503/ft1_filteredMKT_4FGL_J2328.3-4036_daily_bin1058.fits ra=352.082 dec=-40.6037 rad=12.0 tmin=513561601.0 tmax=513820801.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.65
user 3.42
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/929503/ft2_4FGL_J2328.3-4036_daily_bin1058.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/929503/ft1_filteredMKT_4FGL_J2328.3-4036_daily_bin1058.fits evtable="EVENTS" outfile="/scratch/kocevski/929503/ft1_filtered_4FGL_J2328.3-4036_daily_bin1058.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/929503/ft1_filtered_4FGL_J2328.3-4036_daily_bin1058.fits" evtable="EVENTS" scfile=/scratch/kocevski/929503/ft2_4FGL_J2328.3-4036_daily_bin1058.fits sctable="SC_DATA" outfile=/scratch/kocevski/929503/ltcube_513561601_513820801_4FGL_J2328.3-4036_daily_bin1058.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/929503/ft2_4FGL_J2328.3-4036_daily_bin1058.fits
.....................!
real 12.94
user 12.61
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/929503/ft1_filtered_4FGL_J2328.3-4036_daily_bin1058.fits evtable="EVENTS" scfile=/scratch/kocevski/929503/ft2_4FGL_J2328.3-4036_daily_bin1058.fits sctable="SC_DATA" expcube=/scratch/kocevski/929503/ltcube_513561601_513820801_4FGL_J2328.3-4036_daily_bin1058.fits outfile=/scratch/kocevski/929503/expmap_513561601_513820801_4FGL_J2328.3-4036_daily_bin1058.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/929503/ltcube_513561601_513820801_4FGL_J2328.3-4036_daily_bin1058.fits
.....................!
real 189.88
user 184.96
sys 4.58

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/929503/ft1_filtered_4FGL_J2328.3-4036_daily_bin1058.fits scfile=/scratch/kocevski/929503/ft2_4FGL_J2328.3-4036_daily_bin1058.fits outfile=/scratch/kocevski/929503/cmap_513561601_513820801_4FGL_J2328.3-4036_daily_bin1058.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=352.082 yref=-40.6037 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.53
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/929503/ft1_filtered_4FGL_J2328.3-4036_daily_bin1058.fits scfile=/scratch/kocevski/929503/ft2_4FGL_J2328.3-4036_daily_bin1058.fits outfile=/scratch/kocevski/929503/cmap_HighResolution_513561601_513820801_4FGL_J2328.3-4036_daily_bin1058.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=352.082 yref=-40.6037 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/929503/ft1_filtered_4FGL_J2328.3-4036_daily_bin1058.fits evtable="EVENTS" scfile=/scratch/kocevski/929503/ft2_4FGL_J2328.3-4036_daily_bin1058.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/929503/Model_4FGL_J2328.3-4036_daily_bin1058.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/929503/ft1_filtered_4FGL_J2328.3-4036_daily_bin1058.fits....................!
real 37.32
user 35.99
sys 1.26

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    11.545       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10093E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    7.5331       1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.6596       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.0890       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10077E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.3500       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    3.3833       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10210E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    107.37       1.0000         .10000E-03   10000.    
    22 'norm      '    7.8363       1.0000         .10000E-03   10000.    
    23 'Prefactor '    14.972       1.0000         .10000E-03   10000.    
    24 'norm      '    .28470       1.0000         .10000E-03   10000.    
    25 'norm      '    .11950E-01   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    18.754       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    .84686       1.0000         .10000E-01   10.000    
    33 'Prefactor '    1.4430       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=   4537.546     FROM MIGRAD    STATUS=CONVERGED    861 CALLS     4519 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    35.143       -.58081E-06** at limit **
   2  Prefactor     11.544        32.007        .31656E-06   -.15074E-04
   3  Prefactor     .10000E-03    63.447       -.78687E-06** at limit **
   4  Prefactor     .10000E-03    22.487       -.18227E-07** at limit **
   5  Prefactor     7.5350        8.6812        .20526E-06    .21754E-04
   6  Prefactor     4.6600        4.6615        .17660E-06    .48795E-04
   7  Prefactor     .10000E-03    14.867       -.71173E-06** at limit **
   8  Prefactor     6.0909        20.763        .69541E-05    .24138E-03
   9  Prefactor     .10000E-03    22.544       -.18301E-06** at limit **
  10  Prefactor     .10000E-03    17.329        .14885E-05** at limit **
  11  Prefactor     .10000E-03    5.4340        .22814E-07** at limit **
  12  Prefactor     .10000E-03    63.034       -.59086E-06** at limit **
  13  Prefactor     .10001E-03    28.024       -.14836E-05** at limit **
  14  Prefactor     1.3513        59.898        .17626E-05    .71975E-06
  15  norm          .10000E-03    4.6459        .37107E-07** at limit **
  16  norm          .10000E-03    3.8919       -.12883E-06** at limit **
  17  norm          .10000E-03    3.3602        .66923E-07** at limit **
  18  norm          3.3860        10.916        .90018E-06    .83481E-04
  19  Prefactor     .10000E-03    3.5023       -.11276E-06** at limit **
  20  Prefactor     .10001E-03    43.587        .15376E-05** at limit **
  21  Prefactor     107.37        77.992        .19604E-06   -.32631E-05
  22  norm          7.8390        6.4399        .12528E-06    .71357E-03
  23  Prefactor     14.974        16.307       -.39148E-06   -.64045E-04
  24  norm          .28467        1.2181        .85284E-06    .50253E-03
  25  norm          .10158E-03    11.979       -.34859E-05** at limit **
  26  Prefactor     .10000E-03    1.5651        .32192E-08** at limit **
  27  Prefactor     .10000E-03    9.8408        .11456E-07** at limit **
  28  Prefactor     .10000E-03    55.954        .12118E-05** at limit **
  29  Prefactor     18.755        9.9272        .17371E-06    .60775E-04
  30  Prefactor     .10000E-03    2.9067       -.10072E-07** at limit **
  31  Prefactor     .10001E-03    48.486        .17682E-05** at limit **
  32  Normalizat    .84648        .23505       -.66929E-06    .11618E-03
  33  Prefactor     1.4434        .24850       -.72631E-06    .12582E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 11.544
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 7.53502
  Prefactor  = 4.65996
  Prefactor  = 0.000100001
  Prefactor  = 6.09089
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100005
  Prefactor  = 1.35126
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 3.38603
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 107.369
  norm       = 7.83898
  Prefactor  = 14.9744
  norm       = 0.284672
  norm       = 0.00010158
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 18.7546
  Prefactor  = 0.0001
  Prefactor  = 0.000100007
  Normalizat = 0.846478
  Prefactor  = 1.44344
 **********
 **   18 **HESSE 
 **********

 FCN=   4537.546     FROM HESSE     STATUS=OK           693 CALLS     5212 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    35.204        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     11.544        32.000        .11790E-03   -1.5028    
   3  Prefactor     .10000E-03    63.595        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    22.522        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     7.5350        8.6933        .14612E-03   -1.5159    
   6  Prefactor     4.6600        4.6581        .14010E-03   -1.5276    
   7  Prefactor     .10000E-03    14.934        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     6.0909        21.076        .81353E-03   -1.5214    
   9  Prefactor     .10000E-03    22.633        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    17.746        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    5.4704        .15332E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    63.199        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10001E-03    28.321        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.3513        54.983        .37659E-03   -1.5475    
  15  norm          .10000E-03    4.6476        .14181E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    3.9051        .12978E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    3.3661        .12053E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          3.3860        10.883        .21998E-03   -1.5340    
  19  Prefactor     .10000E-03    3.5089        .12301E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10001E-03    43.905        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     107.37        78.178        .38812E-04   -1.3632    
  22  norm          7.8390        6.4351        .14221E-03   -1.5148    
  23  Prefactor     14.974        16.224        .10351E-03   -1.4934    
  24  norm          .28467        1.1317        .13066E-03   -1.5601    
  25  norm          .10158E-03    6.7327        .47978E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    1.5737        .82279E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    9.8493        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    56.257        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     18.755        9.9412        .92487E-04   -1.4842    
  30  Prefactor     .10000E-03    2.9248        .11196E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .10001E-03    48.943        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    .84648        .28873        .28834E-03   -.98367    
  33  Prefactor     1.4434        .30582        .25363E-03   -.79136    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.53316e-09
Minuit parameter uncertainties:
  1  0.000344315
  2  32.0476
  3  0.000597425
  4  3.71058e-06
  5  8.69478
  6  4.65844
  7  0.000274554
  8  21.1019
  9  6.46012e-05
  10  0.000557665
  11  2.9684e-06
  12  0.000469801
  13  0.00078872
  14  17.2555
  15  7.73809e-06
  16  1.86893e-05
  17  6.74156e-06
  18  10.889
  19  1.54992e-05
  20  0.00097756
  21  78.2534
  22  6.43564
  23  16.2292
  24  1.1318
  25  0.00652317
  26  1.45104e-06
  27  7.30962e-06
  28  0.000873572
  29  9.94203
  30  2.78384e-06
  31  0.00121104
  32  0.289256
  33  0.306211
Done.

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

Extracting fit parameters...

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

EG_v02
   Spectrum: FileFunction
586   Normalization:  8.465e-01  2.893e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.21
Ra Dec: 352.082 -40.604
Photon Index (Fixed Index): 2.33 +/- 0.00
Photon Flux (Fixed Index): 5.92e-08 +/- 4.86e-08
Energy Flux (Fixed Index): 2.07e-05 +/- 1.70e-05

TS (Fixed Index): 3.21
Ra Dec: 352.082 -40.604
Photon Flux Upper Limit: 1.65e-07 ph cm-2 s-1
Energy Flux Upper Limit: 5.76e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/929503/likelihoodResults_513561601_513820801_4FGL_J2328.3-4036_daily_bin1058.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) = 4537.49903775
delta logL = 0.0472586320302

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4537.49791547
delta logL = 0.0483809104171

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.8088       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0719       1.0000          .0000       5.0000    
     3 'Normalizat'    .86557       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4320       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=   4537.498     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      232 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.7817        251.42        .35874E-02    .65838E-04
   2  alpha         2.0677        3.2713        .41941       -.57070E-05
   3  Normalizat    .86542        .26508        .64541E-01    .14173E-04
   4  Prefactor     1.4324        .18426        .57546E-01    .17103E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 7.78174
  alpha      = 2.06767
  Normalizat = 0.865423
  Prefactor  = 1.43238
 **********
 **   18 **HESSE 
 **********

 FCN=   4537.498     FROM HESSE     STATUS=OK            33 CALLS      265 TOTAL
                     EDM=   .73E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.7817        6.7705        .14349E-03   -1.5150    
   2  alpha         2.0677        .83821        .16117E-01   -.17381    
   3  Normalizat    .86542        .27696        .28549E-03   -.97686    
   4  Prefactor     1.4324        .30479        .25446E-03   -.79451    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.30691e-11
Minuit parameter uncertainties:
  1  6.77115
  2  0.855307
  3  0.277418
  4  0.305178
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/929503': 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) = 4537.49789863
delta logL = 0.0483977551849

Extracting fit parameters...

4FGL J2328.3-4036
   Spectrum: LogParabola
455         norm:  7.782e+00  6.771e+00  1.000e-04  1.000e+04 ( 1.000e-12)
456        alpha:  2.068e+00  8.553e-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:  1.432e+00  3.052e-01  0.000e+00  1.000e+01 ( 1.000e+00)
588        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
589        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
586   Normalization:  8.654e-01  2.774e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.30
Ra Dec: 352.082 -40.604
Photon Index (Free Index): 2.07 +/- 0.86
Photon Flux (Free Index): 4.32e-08 +/- 6.09e-08
Energy Flux (Free Index): 2.19e-05 +/- 1.96e-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/929503/cmap_HighResolution_513561601_513820801_4FGL_J2328.3-4036_daily_bin1058.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.76e-05', comment='SUCCESS', photon_flux='5.92e-08', energy_flux2='2.19e-05', photon_flux_error='4.86e-08', dlogl='4.84e-02', energy_flux='2.07e-05', photon_flux2='4.32e-08', job_status='DONE', time_completed='2021-09-29 20:51:03.950991', photon_index_error2='0.86', photon_index2='2.07', ts='3.21', fit_tolerance='1e-08', GAL='1.44', photon_index_error='0.00', photon_flux_upper_limit='1.65e-07', energy_flux_error2='1.96e-05', EG='0.85', time_epoch_completed='1632973863.95', return_code='0', job_id='929503', GAL2='1.43', EG2='0.87', return_code2='0', energy_flux_error='1.70e-05', photon_flux_error2='6.09e-08', ts2='3.30', photon_index='2.33' WHERE bin_id='1058' AND source_name='4FGL J2328.3-4036' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 20:51:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0048>
Subject: Job 929503: <4FGL_J2328.3-4036_daily_bin1058> in cluster <slac> Done

Job <4FGL_J2328.3-4036_daily_bin1058> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep 29 20:35:14 2021
Job was executed on host(s) <bullet0048>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 20:35:16 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:16 2021
Terminated at Wed Sep 29 20:51:04 2021
Results reported at Wed Sep 29 20:51:04 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2328.3-4036_daily_bin1058 352.082 -40.6037 513561601 513820801 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 :                                   754.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             294.61 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   948 sec.
    Turnaround time :                            950 sec.

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

