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


Performing analysis on: 4FGL_J2328.3-4036_daily_bin1463
RA = 352.082, Dec = -40.6037
tmin = 618537601, tmax = 618796801
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='934692', job_status='RUN', time_executed='2021-09-29 20:41:34.460802', time_epoch_executed='1632973294.46' WHERE source_name='4FGL J2328.3-4036' and cadence='daily' and bin_id='1463'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/934692

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/934692/ft1_4FGL_J2328.3-4036_daily_bin1463.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/934692/ft2_4FGL_J2328.3-4036_daily_bin1463.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/934692/ft1_4FGL_J2328.3-4036_daily_bin1463.fits outfile=/scratch/kocevski/934692/ft1_filteredMKT_4FGL_J2328.3-4036_daily_bin1463.fits ra=352.082 dec=-40.6037 rad=12.0 tmin=618537601.0 tmax=618796801.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.74
user 3.54
sys 0.18

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/934692/ft1_filtered_4FGL_J2328.3-4036_daily_bin1463.fits" evtable="EVENTS" scfile=/scratch/kocevski/934692/ft2_4FGL_J2328.3-4036_daily_bin1463.fits sctable="SC_DATA" outfile=/scratch/kocevski/934692/ltcube_618537601_618796801_4FGL_J2328.3-4036_daily_bin1463.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/934692/ft2_4FGL_J2328.3-4036_daily_bin1463.fits
.....................!
real 11.97
user 11.65
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/934692/ft1_filtered_4FGL_J2328.3-4036_daily_bin1463.fits evtable="EVENTS" scfile=/scratch/kocevski/934692/ft2_4FGL_J2328.3-4036_daily_bin1463.fits sctable="SC_DATA" expcube=/scratch/kocevski/934692/ltcube_618537601_618796801_4FGL_J2328.3-4036_daily_bin1463.fits outfile=/scratch/kocevski/934692/expmap_618537601_618796801_4FGL_J2328.3-4036_daily_bin1463.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/934692/ltcube_618537601_618796801_4FGL_J2328.3-4036_daily_bin1463.fits
.....................!
real 189.93
user 185.19
sys 4.43

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

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

This is gtbin version HEAD
real 0.52
user 0.39
sys 0.12

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

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

This is gtbin version HEAD
real 0.53
user 0.39
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/934692/ft1_filtered_4FGL_J2328.3-4036_daily_bin1463.fits evtable="EVENTS" scfile=/scratch/kocevski/934692/ft2_4FGL_J2328.3-4036_daily_bin1463.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/934692/Model_4FGL_J2328.3-4036_daily_bin1463.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/934692/ft1_filtered_4FGL_J2328.3-4036_daily_bin1463.fits.....................!
real 34.47
user 33.25
sys 1.13

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.2735       1.0000         .10000E-03   10000.    
     2 'Prefactor '    9.3313       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    22.282       1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.0751       1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.1627       1.0000         .10000E-03   10000.    
     7 'Prefactor '    22.398       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    11.378       1.0000         .10000E-03   10000.    
    10 'Prefactor '    34.275       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    10.735       1.0000         .10000E-03   10000.    
    15 'norm      '    11.879       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    11.920       1.0000         .10000E-03   10000.    
    19 'Prefactor '    17.394       1.0000         .10000E-03   10000.    
    20 'Prefactor '    119.59       1.0000         .10000E-03   10000.    
    21 'Prefactor '    108.05       1.0000         .10000E-03   10000.    
    22 'norm      '    .10044E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.0281       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .73010       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=   3860.460     FROM MIGRAD    STATUS=CONVERGED    867 CALLS     4585 TOTAL
                     EDM=   .67E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.2711        94.076       -.67692E-07   -.10708E-04
   2  Prefactor     9.3315        16.781        .11474E-05   -.44683E-04
   3  Prefactor     .10000E-03    20.174        .72311E-06** at limit **
   4  Prefactor     22.282        30.495       -.31955E-05   -.13560E-04
   5  Prefactor     6.0768        10.176        .47796E-05   -.33506E-03
   6  Prefactor     6.1639        6.3899        .32285E-06   -.32669E-04
   7  Prefactor     22.402        44.805        .72964E-06    .23668E-04
   8  Prefactor     .10000E-03    11.041        .66389E-06** at limit **
   9  Prefactor     11.380        28.799        .77249E-06   -.28442E-05
  10  Prefactor     34.277        22.892        .40724E-06   -.70709E-05
  11  Prefactor     .10000E-03    10.362       -.53984E-06** at limit **
  12  Prefactor     .10000E-03    157.82       -.28927E-06** at limit **
  13  Prefactor     .10000E-03    45.741        .14278E-05** at limit **
  14  Prefactor     10.734        17.561        .50731E-06    .11890E-04
  15  norm          11.878        12.169        .29210E-07   -.73943E-05
  16  norm          .10000E-03    3.1778       -.84429E-08** at limit **
  17  norm          .10000E-03    7.3785        .12037E-05** at limit **
  18  norm          11.922        10.386        .63953E-07   -.24735E-04
  19  Prefactor     17.395        9.2534        .31037E-07    .28804E-04
  20  Prefactor     119.63        51.285        .38550E-05    .49853E-03
  21  Prefactor     108.05        85.578        .86477E-06   -.28098E-04
  22  norm          .10000E-03    6.1300        .15538E-05** at limit **
  23  Prefactor     .10000E-03    17.153       -.87898E-06** at limit **
  24  norm          .10000E-03    .48259        .11667E-07** at limit **
  25  norm          .10000E-03    4.4043        .79962E-06** at limit **
  26  Prefactor     .10000E-03    2.2697       -.29494E-07** at limit **
  27  Prefactor     .10001E-03    40.497       -.53469E-05** at limit **
  28  Prefactor     .10000E-03    21.249        .41970E-06** at limit **
  29  Prefactor     .10000E-03    4.6593       -.12504E-07** at limit **
  30  Prefactor     .10000E-03    2.2131       -.38424E-08** at limit **
  31  Prefactor     .10000E-03    46.378        .37391E-05** at limit **
  32  Normalizat    1.0277        .23367       -.28098E-05    .54188E-04
  33  Prefactor     .73053        .23553        .66855E-06   -.80012E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.2711
  Prefactor  = 9.33152
  Prefactor  = 0.0001
  Prefactor  = 22.2816
  Prefactor  = 6.07682
  Prefactor  = 6.16385
  Prefactor  = 22.4018
  Prefactor  = 0.0001
  Prefactor  = 11.3799
  Prefactor  = 34.277
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 10.7342
  norm       = 11.8778
  norm       = 0.0001
  norm       = 0.000100001
  norm       = 11.9216
  Prefactor  = 17.3952
  Prefactor  = 119.631
  Prefactor  = 108.055
  norm       = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100006
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  Normalizat = 1.02765
  Prefactor  = 0.730535
 **********
 **   18 **HESSE 
 **********

 FCN=   3860.460     FROM HESSE     STATUS=OK           689 CALLS     5274 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.2711        94.143        .19490E-03   -1.5295    
   2  Prefactor     9.3315        16.809        .65598E-03   -1.5097    
   3  Prefactor     .10000E-03    20.204        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     22.282        30.804        .84856E-04   -1.4764    
   5  Prefactor     6.0768        10.686        .81447E-03   -1.5215    
   6  Prefactor     6.1639        6.4060        .14953E-03   -1.5211    
   7  Prefactor     22.402        44.816        .84635E-04   -1.4761    
   8  Prefactor     .10000E-03    11.068        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     11.380        28.786        .11877E-03   -1.5033    
  10  Prefactor     34.277        22.901        .68448E-04   -1.4536    
  11  Prefactor     .10000E-03    10.513        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    160.24        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    45.881        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     10.734        17.550        .12228E-03   -1.5053    
  15  norm          11.878        12.168        .11623E-03   -1.5019    
  16  norm          .10000E-03    3.1877        .10816E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    7.4983        .32791E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          11.922        10.382        .11603E-03   -1.5017    
  19  Prefactor     17.395        9.2538        .96033E-04   -1.4874    
  20  Prefactor     119.63        53.312        .18399E-03   -1.3516    
  21  Prefactor     108.05        86.207        .38690E-04   -1.3625    
  22  norm          .10000E-03    6.1424        .14877E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    17.243        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    .48868        .42057E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    4.4550        .12688E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    2.3018        .91376E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10001E-03    41.988        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    21.260        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    4.7287        .13093E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    2.2288        .90231E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .10000E-03    47.164        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    1.0277        .28149        .23013E-03   -.92110    
  33  Prefactor     .73053        .28405        .28667E-03   -1.0234    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.49892e-09
Minuit parameter uncertainties:
  1  40.1759
  2  16.8177
  3  0.000121811
  4  30.8263
  5  10.689
  6  6.4067
  7  44.8832
  8  8.15664e-05
  9  28.8208
  10  22.9065
  11  4.8661e-05
  12  0.000192373
  13  0.000356289
  14  17.558
  15  12.1707
  16  3.71329e-09
  17  0.00012491
  18  10.3832
  19  9.25461
  20  53.3337
  21  86.3073
  22  0.000135699
  23  0.00013001
  24  1.57629e-06
  25  5.90049e-05
  26  7.09138e-06
  27  0.001027
  28  7.40235e-05
  29  1.01086e-05
  30  1.65432e-07
  31  0.000952836
  32  0.281903
  33  0.284617
Done.

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

Extracting fit parameters...

4FGL J2328.3-4036
   Spectrum: LogParabola
455         norm:  1.000e-04  1.357e-04  1.000e-04  1.000e+04 ( 1.000e-12)
456        alpha:  2.333e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
457         beta:  7.057e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
458           Eb:  7.709e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
587    Prefactor:  7.305e-01  2.846e-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.028e+00  2.819e-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: 1.05e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.67e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/934692/likelihoodResults_618537601_618796801_4FGL_J2328.3-4036_daily_bin1463.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3860.46113389
delta logL = -0.000776163903083

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3860.46035782
delta logL = -1.00100805867e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10289E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3100       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0277       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .73057       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=   3860.460     FROM MIGRAD    STATUS=CONVERGED    103 CALLS      243 TOTAL
                     EDM=   .42E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    162.83        .52502E-01** at limit **
   2  alpha         1.9555        2.5873        .16521E-01   -.61932E-09
   3  Normalizat    1.0276        .32178E-01    .23014E-03    .13242E-03
   4  Prefactor     .73054        .34620E-01    .28667E-03    .11227E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.95548
  Normalizat = 1.02765
  Prefactor  = 0.730539
 **********
 **   18 **HESSE 
 **********

 FCN=   3860.460     FROM HESSE     STATUS=OK            25 CALLS      268 TOTAL
                     EDM=   .28E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    7.5416        .26037E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.9555        2.6539        .33042E-02   -.21957    
   3  Normalizat    1.0276        .26033        .46027E-04   -.92110    
   4  Prefactor     .73054        .27875        .11467E-04   -1.0234    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.83708e-11
Minuit parameter uncertainties:
  1  2.5647e-06
  2  206.199
  3  0.260655
  4  0.279282
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/934692': 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) = 3860.46035624
delta logL = 1.48887602336e-06

Extracting fit parameters...

4FGL J2328.3-4036
   Spectrum: LogParabola
455         norm:  1.000e-04  2.565e-06  1.000e-04  1.000e+04 ( 1.000e-12)
456        alpha:  1.955e+00  2.062e+02  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.305e-01  2.793e-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.028e+00  2.607e-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/934692/cmap_HighResolution_618537601_618796801_4FGL_J2328.3-4036_daily_bin1463.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.67e-05', job_status='DONE', photon_flux_upper_limit='1.05e-07', time_completed='2021-09-29 20:53:31.393242', job_id='934692', GAL2='0.73', fit_tolerance='1e-08', EG2='1.03', EG='1.03', time_epoch_completed='1632974011.39', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.73', dlogl='1.49e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.33' WHERE bin_id='1463' AND source_name='4FGL J2328.3-4036' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 20:53:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0142>
Subject: Job 934692: <4FGL_J2328.3-4036_daily_bin1463> in cluster <slac> Done

Job <4FGL_J2328.3-4036_daily_bin1463> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 20:40:31 2021
Job was executed on host(s) <bullet0142>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 20:40:34 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 20:40:34 2021
Terminated at Wed Sep 29 20:53:32 2021
Results reported at Wed Sep 29 20:53:32 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2328.3-4036_daily_bin1463 352.082 -40.6037 618537601 618796801 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 :                                   696.28 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             298.44 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   777 sec.
    Turnaround time :                            781 sec.

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

