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


Performing analysis on: 4FGL_J2328.3-4036_daily_bin1047
RA = 352.082, Dec = -40.6037
tmin = 510710401, tmax = 510969601
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='929469', job_status='RUN', time_executed='2021-09-29 20:35:23.860296', time_epoch_executed='1632972923.86' WHERE source_name='4FGL J2328.3-4036' and cadence='daily' and bin_id='1047'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/929469

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/929469/ft1_4FGL_J2328.3-4036_daily_bin1047.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/929469/ft2_4FGL_J2328.3-4036_daily_bin1047.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/929469/ft1_4FGL_J2328.3-4036_daily_bin1047.fits outfile=/scratch/kocevski/929469/ft1_filteredMKT_4FGL_J2328.3-4036_daily_bin1047.fits ra=352.082 dec=-40.6037 rad=12.0 tmin=510710401.0 tmax=510969601.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.45
user 3.23
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/929469/ft1_filtered_4FGL_J2328.3-4036_daily_bin1047.fits" evtable="EVENTS" scfile=/scratch/kocevski/929469/ft2_4FGL_J2328.3-4036_daily_bin1047.fits sctable="SC_DATA" outfile=/scratch/kocevski/929469/ltcube_510710401_510969601_4FGL_J2328.3-4036_daily_bin1047.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/929469/ft2_4FGL_J2328.3-4036_daily_bin1047.fits
.....................!
real 12.37
user 11.99
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/929469/ft1_filtered_4FGL_J2328.3-4036_daily_bin1047.fits evtable="EVENTS" scfile=/scratch/kocevski/929469/ft2_4FGL_J2328.3-4036_daily_bin1047.fits sctable="SC_DATA" expcube=/scratch/kocevski/929469/ltcube_510710401_510969601_4FGL_J2328.3-4036_daily_bin1047.fits outfile=/scratch/kocevski/929469/expmap_510710401_510969601_4FGL_J2328.3-4036_daily_bin1047.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/929469/ltcube_510710401_510969601_4FGL_J2328.3-4036_daily_bin1047.fits
.....................!
real 192.02
user 186.06
sys 5.60

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/929469/ft1_filtered_4FGL_J2328.3-4036_daily_bin1047.fits scfile=/scratch/kocevski/929469/ft2_4FGL_J2328.3-4036_daily_bin1047.fits outfile=/scratch/kocevski/929469/cmap_510710401_510969601_4FGL_J2328.3-4036_daily_bin1047.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/929469/ft1_filtered_4FGL_J2328.3-4036_daily_bin1047.fits scfile=/scratch/kocevski/929469/ft2_4FGL_J2328.3-4036_daily_bin1047.fits outfile=/scratch/kocevski/929469/cmap_HighResolution_510710401_510969601_4FGL_J2328.3-4036_daily_bin1047.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.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/929469/ft1_filtered_4FGL_J2328.3-4036_daily_bin1047.fits evtable="EVENTS" scfile=/scratch/kocevski/929469/ft2_4FGL_J2328.3-4036_daily_bin1047.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/929469/Model_4FGL_J2328.3-4036_daily_bin1047.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/929469/ft1_filtered_4FGL_J2328.3-4036_daily_bin1047.fits.....................!
real 42.26
user 40.91
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.1049       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10077E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    11.351       1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.9934       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    32.519       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10108E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    12.203       1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.8241       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    11.863       1.0000         .10000E-03   10000.    
    15 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    8.6451       1.0000         .10000E-03   10000.    
    17 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    61.495       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    2.1782       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .68676       1.0000         .10000E-03   10000.    
    24 'norm      '    1.1788       1.0000         .10000E-03   10000.    
    25 'norm      '    1.5225       1.0000         .10000E-03   10000.    
    26 'Prefactor '    1.9401       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .76195E-02   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10069E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    2.0566       1.0000         .10000E-03   10000.    
    30 'Prefactor '    2.1203       1.0000         .10000E-03   10000.    
    31 'Prefactor '    3.6134       1.0000         .10000E-03   10000.    
    32 'Normalizat'    .84072       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .66401       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=   5664.812     FROM MIGRAD    STATUS=CONVERGED    115 CALLS     3181 TOTAL
                     EDM=   .47E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .98998        61.933       -.10344E-04    .11198E-02
   2  Prefactor     .10000E-03    4.4292        .38498E-07** at limit **
   3  Prefactor     .10000E-03    5.7428       -.29283E-05** at limit **
   4  Prefactor     .10000E-03    9.8237        .67675E-05** at limit **
   5  Prefactor     11.353        1.1246        .54372E-07    .39230E-03
   6  Prefactor     3.9927        3.5676        .29974E-05    .24058E-02
   7  Prefactor     .10001E-03    12.838       -.37730E-05** at limit **
   8  Prefactor     32.518        1.0260       -.67274E-07    .43746E-03
   9  Prefactor     .10000E-03    6.5064       -.42193E-05** at limit **
  10  Prefactor     12.202        1.0258       -.58738E-07   -.11701E-07
  11  Prefactor     3.8240        1.0950       -.49774E-07   -.15789E-03
  12  Prefactor     .10002E-03    8.1873        .26548E-05** at limit **
  13  Prefactor     .10000E-03    5.4118        .38513E-06** at limit **
  14  Prefactor     11.872        1.2835       -.20381E-06   -.15311E-03
  15  norm          .10000E-03    2.2429        .12889E-06** at limit **
  16  norm          8.6450        3.7577       -.69715E-06   -.56677E-02
  17  norm          .10000E-03    1.3809       -.12888E-06** at limit **
  18  norm          .10000E-03    2.1403        .18161E-07** at limit **
  19  Prefactor     .10000E-03    5.0441        .14666E-06** at limit **
  20  Prefactor     61.456        5.4375       -.39431E-06    .27092E-02
  21  Prefactor     .10000E-03    5.7508        .12562E-05** at limit **
  22  norm          2.1790        2.2436        .12963E-06    .15055E-04
  23  Prefactor     .68830        1.0423        .56547E-07   -.14768E-03
  24  norm          1.1786        .87368        .30045E-07   -.96105E-04
  25  norm          1.5247        2.5338        .13359E-06    .31962E-04
  26  Prefactor     1.9427        2.8663       -.89143E-06   -.11595E-04
  27  Prefactor     .10684E-03    130.57       -.48722E-05** at limit **
  28  Prefactor     .10000E-03    35.702        .20745E-05** at limit **
  29  Prefactor     2.0579        3.6664        .25738E-05    .73232E-03
  30  Prefactor     2.1200        2.8174       -.14920E-07    .12702E-03
  31  Prefactor     3.6349        2.9287        .16383E-06    .33998E-03
  32  Normalizat    .84075        .16623       -.27035E-05   -.60838E-04
  33  Prefactor     .66407        .18145        .13289E-05   -.39072E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.989976
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.000100002
  Prefactor  = 11.3531
  Prefactor  = 3.99265
  Prefactor  = 0.000100014
  Prefactor  = 32.5182
  Prefactor  = 0.000100002
  Prefactor  = 12.2023
  Prefactor  = 3.82396
  Prefactor  = 0.000100023
  Prefactor  = 0.000100001
  Prefactor  = 11.8716
  norm       = 0.0001
  norm       = 8.64499
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 61.4565
  Prefactor  = 0.0001
  norm       = 2.17898
  Prefactor  = 0.6883
  norm       = 1.17857
  norm       = 1.52466
  Prefactor  = 1.94268
  Prefactor  = 0.000106838
  Prefactor  = 0.000100002
  Prefactor  = 2.0579
  Prefactor  = 2.11999
  Prefactor  = 3.6349
  Normalizat = 0.840753
  Prefactor  = 0.664074
 **********
 **   18 **HESSE 
 **********

 FCN=   5664.812     FROM HESSE     STATUS=OK           781 CALLS     3962 TOTAL
                     EDM=   .16E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .98998        36.190        .14743       -1.5509    
   2  Prefactor     .10000E-03    4.4267        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    13.414        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    15.016        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     11.353        6.4358        .29727E-02   -1.5034    
   6  Prefactor     3.9927        3.7109        .50455E-02   -1.5308    
   7  Prefactor     .10001E-03    19.546        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     32.518        17.580        .17567E-02   -1.4567    
   9  Prefactor     .10000E-03    13.180        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     12.202        10.614        .28668E-02   -1.5009    
  11  Prefactor     3.8240        6.0610        .51598E-02   -1.5317    
  12  Prefactor     .10002E-03    18.219        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    10.984        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     11.872        13.679        .29077E-02   -1.5019    
  15  norm          .10000E-03    2.2428        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          8.6450        5.8012        .34083E-02   -1.5120    
  17  norm          .10000E-03    1.3796        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    2.1332        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    2.9071        .44502E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     61.456        30.286        .12792E-02   -1.4138    
  21  Prefactor     .10000E-03    10.938        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          2.1790        2.3256        .69739E-02   -1.5413    
  23  Prefactor     .68830        8.9500        .65433E-01   -1.5542    
  24  norm          1.1786        .92815        .10534E-01   -1.5491    
  25  norm          1.5247        2.5983        .86551E-02   -1.5461    
  26  Prefactor     1.9427        3.0420        .74517E-02   -1.5429    
  27  Prefactor     .10684E-03    13.425        .92800E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    35.548        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     2.0579        3.8159        .72050E-02   -1.5421    
  30  Prefactor     2.1200        2.8450        .70808E-02   -1.5417    
  31  Prefactor     3.6349        61.527        .53138E-02   -1.5327    
  32  Normalizat    .84075        .14969        .44139E-01   -.98574    
  33  Prefactor     .66407        .15527        .41920E-01   -1.0495    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.59465e-07
Minuit parameter uncertainties:
  1  11.9783
  2  2.49496e-06
  3  0.000394076
  4  0.000327558
  5  6.43622
  6  3.71109
  7  0.00103874
  8  17.5825
  9  0.000309323
  10  10.6157
  11  6.062
  12  0.00129243
  13  0.000181702
  14  13.683
  15  6.51862e-07
  16  5.80157
  17  5.68622e-07
  18  5.87602e-07
  19  2.86272e-06
  20  30.2937
  21  3.71698e-05
  22  2.3257
  23  4.96453
  24  0.928158
  25  2.59847
  26  3.04224
  27  0.0191665
  28  0.000562506
  29  3.81632
  30  2.84519
  31  29.9453
  32  0.149768
  33  0.155368
Done.

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

Extracting fit parameters...

4FGL J2328.3-4036
   Spectrum: LogParabola
455         norm:  2.179e+00  2.326e+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:  6.641e-01  1.554e-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.408e-01  1.498e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.04
Ra Dec: 352.082 -40.604
Photon Index (Fixed Index): 2.33 +/- 0.00
Photon Flux (Fixed Index): 1.65e-08 +/- 1.76e-08
Energy Flux (Fixed Index): 5.75e-06 +/- 6.14e-06

TS (Fixed Index): 2.04
Ra Dec: 352.082 -40.604
Photon Flux Upper Limit: 6.40e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.24e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/929469/likelihoodResults_510710401_510969601_4FGL_J2328.3-4036_daily_bin1047.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) = 5664.56100583
delta logL = 0.25085897716

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5664.55808504
delta logL = 0.253779773756

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.2971       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7230       1.0000          .0000       5.0000    
     3 'Normalizat'    .84864       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .65896       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=   5664.558     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      200 TOTAL
                     EDM=   .35E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.2968        2.6654        .67697E-02   -.15811E-04
   2  alpha         1.7227        .70415        .43998       -.19920E-04
   3  Normalizat    .84866        .13827        .44242E-01    .10685E-04
   4  Prefactor     .65894        .15431        .41852E-01    .19535E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.29683
  alpha      = 1.72273
  Normalizat = 0.848661
  Prefactor  = 0.658938
 **********
 **   18 **HESSE 
 **********

 FCN=   5664.558     FROM HESSE     STATUS=OK            33 CALLS      233 TOTAL
                     EDM=   .12E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.2968        2.4721        .11441E-03   -1.5405    
   2  alpha         1.7227        .78017        .19518E-01   -.31615    
   3  Normalizat    .84866        .16193        .20045E-03   -.98288    
   4  Prefactor     .65894        .18092        .25029E-03   -1.0516    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.23615e-12
Minuit parameter uncertainties:
  1  2.47221
  2  0.794917
  3  0.162021
  4  0.181079
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/929469': 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) = 5664.55808497
delta logL = 0.25377984293

Extracting fit parameters...

4FGL J2328.3-4036
   Spectrum: LogParabola
455         norm:  2.297e+00  2.472e+00  1.000e-04  1.000e+04 ( 1.000e-12)
456        alpha:  1.723e+00  7.949e-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:  6.589e-01  1.811e-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.487e-01  1.620e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.56
Ra Dec: 352.082 -40.604
Photon Index (Free Index): 1.72 +/- 0.79
Photon Flux (Free Index): 9.30e-09 +/- 1.27e-08
Energy Flux (Free Index): 9.52e-06 +/- 1.36e-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/929469/cmap_HighResolution_510710401_510969601_4FGL_J2328.3-4036_daily_bin1047.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.24e-05', comment='SUCCESS', photon_flux='1.65e-08', energy_flux2='9.52e-06', photon_flux_error='1.76e-08', dlogl='2.54e-01', energy_flux='5.75e-06', photon_flux2='9.30e-09', job_status='DONE', time_completed='2021-09-29 20:48:28.093269', photon_index_error2='0.79', photon_index2='1.72', ts='2.04', fit_tolerance='1e-08', GAL='0.66', photon_index_error='0.00', photon_flux_upper_limit='6.40e-08', energy_flux_error2='1.36e-05', EG='0.84', time_epoch_completed='1632973708.09', return_code='0', job_id='929469', GAL2='0.66', EG2='0.85', return_code2='0', energy_flux_error='6.14e-06', photon_flux_error2='1.27e-08', ts2='2.56', photon_index='2.33' WHERE bin_id='1047' AND source_name='4FGL J2328.3-4036' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 20:48:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0103>
Subject: Job 929469: <4FGL_J2328.3-4036_daily_bin1047> in cluster <slac> Done

Job <4FGL_J2328.3-4036_daily_bin1047> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep 29 20:35:12 2021
Job was executed on host(s) <bullet0103>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 20:35:14 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 20:35:14 2021
Terminated at Wed Sep 29 20:48:29 2021
Results reported at Wed Sep 29 20:48:29 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2328.3-4036_daily_bin1047 352.082 -40.6037 510710401 510969601 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 :                                   783.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             299.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   794 sec.
    Turnaround time :                            797 sec.

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

