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


Performing analysis on: 4FGL_J2328.3-4036_daily_bin1093
RA = 352.082, Dec = -40.6037
tmin = 522633601, tmax = 522892801
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='929610', job_status='RUN', time_executed='2021-09-29 20:37:45.267955', time_epoch_executed='1632973065.27' WHERE source_name='4FGL J2328.3-4036' and cadence='daily' and bin_id='1093'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/929610

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/929610/ft1_4FGL_J2328.3-4036_daily_bin1093.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/929610/ft2_4FGL_J2328.3-4036_daily_bin1093.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/929610/ft1_4FGL_J2328.3-4036_daily_bin1093.fits outfile=/scratch/kocevski/929610/ft1_filteredMKT_4FGL_J2328.3-4036_daily_bin1093.fits ra=352.082 dec=-40.6037 rad=12.0 tmin=522633601.0 tmax=522892801.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.66
user 3.33
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/929610/ft1_filtered_4FGL_J2328.3-4036_daily_bin1093.fits" evtable="EVENTS" scfile=/scratch/kocevski/929610/ft2_4FGL_J2328.3-4036_daily_bin1093.fits sctable="SC_DATA" outfile=/scratch/kocevski/929610/ltcube_522633601_522892801_4FGL_J2328.3-4036_daily_bin1093.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/929610/ft2_4FGL_J2328.3-4036_daily_bin1093.fits
.....................!
real 12.46
user 12.12
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/929610/ft1_filtered_4FGL_J2328.3-4036_daily_bin1093.fits evtable="EVENTS" scfile=/scratch/kocevski/929610/ft2_4FGL_J2328.3-4036_daily_bin1093.fits sctable="SC_DATA" expcube=/scratch/kocevski/929610/ltcube_522633601_522892801_4FGL_J2328.3-4036_daily_bin1093.fits outfile=/scratch/kocevski/929610/expmap_522633601_522892801_4FGL_J2328.3-4036_daily_bin1093.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/929610/ltcube_522633601_522892801_4FGL_J2328.3-4036_daily_bin1093.fits
.....................!
real 189.36
user 185.33
sys 3.61

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

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

This is gtbin version HEAD
real 0.54
user 0.39
sys 0.13

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

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

This is gtbin version HEAD
real 0.54
user 0.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    94.945       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .47119E-02   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .12311E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10511E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.1235       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10226E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .29605E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.3411       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .39303E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    31.488       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .35875E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    97.221       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .37162E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .18275E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .11885E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .87998E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .40385E-01   1.0000         .10000E-03   10000.    
    18 'norm      '    15.513       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .95876E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .11130E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .38855E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    4.5577       1.0000         .10000E-03   10000.    
    23 'Prefactor '    28.002       1.0000         .10000E-03   10000.    
    24 'norm      '    .66722       1.0000         .10000E-03   10000.    
    25 'norm      '    1.7793       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10092E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    66.878       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .86433E-02   1.0000         .10000E-03   10000.    
    29 'Prefactor '    18.554       1.0000         .10000E-03   10000.    
    30 'Prefactor '    4.9211       1.0000         .10000E-03   10000.    
    31 'Prefactor '    30.473       1.0000         .10000E-03   10000.    
    32 'Normalizat'    .80228       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .89900       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5900E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   3922.585     FROM MIGRAD    STATUS=CONVERGED    243 CALLS     3375 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     87.886        88.232       -.79760E-05   -.16602E-03
   2  Prefactor     .10002E-03    42.588       -.62217E-05** at limit **
   3  Prefactor     .10000E-03    22.074       -.59849E-05** at limit **
   4  Prefactor     .10002E-03    14.924       -.71644E-05** at limit **
   5  Prefactor     4.1295        7.4920        .16954E-05    .58808E-03
   6  Prefactor     .10000E-03    4.7323       -.10730E-05** at limit **
   7  Prefactor     .10096E-03    15.658        .42006E-04** at limit **
   8  Prefactor     2.2586        3.6654        .78634E-05   -.15808E-02
   9  Prefactor     .10028E-03    16.291       -.17641E-04** at limit **
  10  Prefactor     31.273        11.928       -.63093E-05    .11579E-01
  11  Prefactor     .10000E-03    14.087        .44941E-06** at limit **
  12  Prefactor     96.480        44.136        .11825E-05    .67145E-02
  13  Prefactor     .10000E-03    15.694       -.25704E-05** at limit **
  14  Prefactor     .10000E-03    17.153       -.19701E-05** at limit **
  15  norm          .10000E-03    8.9575       -.19885E-05** at limit **
  16  norm          .10000E-03    7.9638       -.23484E-06** at limit **
  17  norm          .10068E-03    74.322       -.69340E-05** at limit **
  18  norm          15.519        1.9184        .21821E-06   -.59848E-04
  19  Prefactor     .10000E-03    30.461        .18498E-04** at limit **
  20  Prefactor     .10000E-03    22.993       -.40531E-05** at limit **
  21  Prefactor     .10013E-03    19.351        .12164E-04** at limit **
  22  norm          4.5553        5.0558        .32593E-05   -.11666E-03
  23  Prefactor     27.519        20.488       -.96825E-06   -.48576E-02
  24  norm          .66465        1.0836       -.49996E-06    .16574E-03
  25  norm          1.8077        4.5506       -.21568E-05   -.10609E-03
  26  Prefactor     .10000E-03    2.9711       -.47685E-05** at limit **
  27  Prefactor     68.367        35.341        .55964E-05   -.99497E-03
  28  Prefactor     .10011E-03    54.938        .16410E-05** at limit **
  29  Prefactor     18.587        5.5901       -.47013E-05   -.69744E-04
  30  Prefactor     4.8945        6.2173       -.90430E-06    .52502E-04
  31  Prefactor     30.786        41.225       -.57985E-05    .51295E-02
  32  Normalizat    .80534        .27637        .52914E-05    .25399E-04
  33  Prefactor     .89819        .28011       -.28712E-05    .68713E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 87.8862
  Prefactor  = 0.000100017
  Prefactor  = 0.000100002
  Prefactor  = 0.000100019
  Prefactor  = 4.12953
  Prefactor  = 0.0001
  Prefactor  = 0.000100957
  Prefactor  = 2.25863
  Prefactor  = 0.000100275
  Prefactor  = 31.2731
  Prefactor  = 0.0001
  Prefactor  = 96.4795
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.00010068
  norm       = 15.5189
  Prefactor  = 0.000100001
  Prefactor  = 0.000100004
  Prefactor  = 0.00010013
  norm       = 4.55526
  Prefactor  = 27.5192
  norm       = 0.664647
  norm       = 1.80766
  Prefactor  = 0.0001
  Prefactor  = 68.3675
  Prefactor  = 0.000100114
  Prefactor  = 18.5869
  Prefactor  = 4.89448
  Prefactor  = 30.7858
  Normalizat = 0.805335
  Prefactor  = 0.898186
 **********
 **   18 **HESSE 
 **********

 FCN=   3922.585     FROM HESSE     STATUS=OK           773 CALLS     4148 TOTAL
                     EDM=   .93E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     87.886        88.167        .10312E-02   -1.3830    
   2  Prefactor     .10002E-03    42.670        .96415E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    22.588        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10002E-03    15.047        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     4.1295        7.5272        .49628E-02   -1.5302    
   6  Prefactor     .10000E-03    4.5350        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10096E-03    21.367        .10698E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     2.2586        57.631        .66990E-02   -1.5407    
   9  Prefactor     .10028E-03    40.023        .10636E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     31.273        20.357        .17851E-02   -1.4589    
  11  Prefactor     .10000E-03    13.421        .10656E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     96.480        57.586        .10192E-02   -1.3740    
  13  Prefactor     .10000E-03    15.678        .10648E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    16.982        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    8.9148        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    7.8541        .10422E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10068E-03    8.8884        .50841E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          15.519        10.642        .25423E-02   -1.4920    
  19  Prefactor     .10000E-03    7.7296        .80585E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    24.532        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10013E-03    20.051        .10638E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          4.5553        6.1190        .47140E-02   -1.5281    
  23  Prefactor     27.519        25.604        .18927E-02   -1.4658    
  24  norm          .66465        1.2578        .18617E-01   -1.5545    
  25  norm          1.8077        4.6464        .78444E-02   -1.5439    
  26  Prefactor     .10000E-03    2.9336        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     68.367        35.818        .12270E-02   -1.4052    
  28  Prefactor     .10011E-03    55.374        .91708E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     18.587        11.276        .23246E-02   -1.4845    
  30  Prefactor     4.8945        6.2702        .45327E-02   -1.5265    
  31  Prefactor     30.786        66.471        .18145E-02   -1.4598    
  32  Normalizat    .80534        .23539        .43640E-01   -.99871    
  33  Prefactor     .89819        .23608        .44992E-01   -.96205    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.26753e-07
Minuit parameter uncertainties:
  1  88.2986
  2  0.0016824
  3  0.000455709
  4  0.00107022
  5  7.52897
  6  1.75416e-05
  7  0.00904731
  8  22.8423
  9  0.00663982
  10  20.3612
  11  5.3597e-06
  12  57.6189
  13  0.000268534
  14  0.000195104
  15  1.97387e-05
  16  2.63065e-05
  17  0.00491773
  18  10.6428
  19  0.000206244
  20  0.000630612
  21  0.00322905
  22  6.11984
  23  25.6139
  24  1.25782
  25  4.64736
  26  2.65049e-05
  27  35.8293
  28  0.0050249
  29  11.2773
  30  6.27101
  31  66.6314
  32  0.235689
  33  0.236352
Done.

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

Extracting fit parameters...

4FGL J2328.3-4036
   Spectrum: LogParabola
455         norm:  4.555e+00  6.120e+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.982e-01  2.364e-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.053e-01  2.357e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.46
Ra Dec: 352.082 -40.604
Photon Index (Fixed Index): 2.33 +/- 0.00
Photon Flux (Fixed Index): 3.44e-08 +/- 4.62e-08
Energy Flux (Fixed Index): 1.20e-05 +/- 1.62e-05

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

Saving results to:
/scratch/kocevski/929610/likelihoodResults_522633601_522892801_4FGL_J2328.3-4036_daily_bin1093.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) = 3922.54968582
delta logL = 0.0348773888254

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3922.54876829
delta logL = 0.0357949192858

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3922.549     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      231 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.7205        5.2126        .14459E-03   -.15327E-02
   2  alpha         2.1035        .84414        .16928E-01   -.12406E-03
   3  Normalizat    .81348        .25398        .25065E-03    .89555E-04
   4  Prefactor     .89331        .27591        .26052E-03    .12092E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 4.72051
  alpha      = 2.10347
  Normalizat = 0.813479
  Prefactor  = 0.893312
 **********
 **   18 **HESSE 
 **********

 FCN=   3922.549     FROM HESSE     STATUS=OK            23 CALLS      254 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.7205        5.2259        .57836E-05   -1.5273    
   2  alpha         2.1035        .84601        .67711E-03   -.15928    
   3  Normalizat    .81348        .25423        .10026E-04   -.99571    
   4  Prefactor     .89331        .27619        .10421E-04   -.96375    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.65949e-09
Minuit parameter uncertainties:
  1  5.22642
  2  0.863518
  3  0.254598
  4  0.276622
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/929610': 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) = 3922.54876454
delta logL = 0.0357986663789

Extracting fit parameters...

4FGL J2328.3-4036
   Spectrum: LogParabola
455         norm:  4.721e+00  5.226e+00  1.000e-04  1.000e+04 ( 1.000e-12)
456        alpha:  2.103e+00  8.635e-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.933e-01  2.766e-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.135e-01  2.546e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.52
Ra Dec: 352.082 -40.604
Photon Index (Free Index): 2.10 +/- 0.86
Photon Flux (Free Index): 2.72e-08 +/- 4.13e-08
Energy Flux (Free Index): 1.30e-05 +/- 1.50e-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/929610/cmap_HighResolution_522633601_522892801_4FGL_J2328.3-4036_daily_bin1093.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.37e-05', comment='SUCCESS', photon_flux='3.44e-08', energy_flux2='1.30e-05', photon_flux_error='4.62e-08', dlogl='3.58e-02', energy_flux='1.20e-05', photon_flux2='2.72e-08', job_status='DONE', time_completed='2021-09-29 20:48:59.445676', photon_index_error2='0.86', photon_index2='2.10', ts='1.46', fit_tolerance='1e-08', GAL='0.90', photon_index_error='0.00', photon_flux_upper_limit='1.25e-07', energy_flux_error2='1.50e-05', EG='0.81', time_epoch_completed='1632973739.45', return_code='0', job_id='929610', GAL2='0.89', EG2='0.81', return_code2='0', energy_flux_error='1.62e-05', photon_flux_error2='4.13e-08', ts2='1.52', photon_index='2.33' WHERE bin_id='1093' AND source_name='4FGL J2328.3-4036' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 20:48:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0278>
Subject: Job 929610: <4FGL_J2328.3-4036_daily_bin1093> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2328.3-4036_daily_bin1093 352.082 -40.6037 522633601 522892801 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 :                                   648.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             266.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   819 sec.
    Turnaround time :                            822 sec.

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

