/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 52 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 = 7413
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2328.3-4036_daily_bin1501
RA = 352.082, Dec = -40.6037
tmin = 628387201, tmax = 628646401
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='934791', job_status='RUN', time_executed='2021-09-29 20:41:43.788923', time_epoch_executed='1632973303.79' WHERE source_name='4FGL J2328.3-4036' and cadence='daily' and bin_id='1501'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/934791

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/934791/ft1_4FGL_J2328.3-4036_daily_bin1501.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/934791/ft2_4FGL_J2328.3-4036_daily_bin1501.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/934791/ft1_4FGL_J2328.3-4036_daily_bin1501.fits outfile=/scratch/kocevski/934791/ft1_filteredMKT_4FGL_J2328.3-4036_daily_bin1501.fits ra=352.082 dec=-40.6037 rad=12.0 tmin=628387201.0 tmax=628646401.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.57
user 3.34
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/934791/ft2_4FGL_J2328.3-4036_daily_bin1501.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/934791/ft1_filteredMKT_4FGL_J2328.3-4036_daily_bin1501.fits evtable="EVENTS" outfile="/scratch/kocevski/934791/ft1_filtered_4FGL_J2328.3-4036_daily_bin1501.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/934791/ft1_filtered_4FGL_J2328.3-4036_daily_bin1501.fits" evtable="EVENTS" scfile=/scratch/kocevski/934791/ft2_4FGL_J2328.3-4036_daily_bin1501.fits sctable="SC_DATA" outfile=/scratch/kocevski/934791/ltcube_628387201_628646401_4FGL_J2328.3-4036_daily_bin1501.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/934791/ft2_4FGL_J2328.3-4036_daily_bin1501.fits
.....................!
real 11.61
user 11.27
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/934791/ft1_filtered_4FGL_J2328.3-4036_daily_bin1501.fits evtable="EVENTS" scfile=/scratch/kocevski/934791/ft2_4FGL_J2328.3-4036_daily_bin1501.fits sctable="SC_DATA" expcube=/scratch/kocevski/934791/ltcube_628387201_628646401_4FGL_J2328.3-4036_daily_bin1501.fits outfile=/scratch/kocevski/934791/expmap_628387201_628646401_4FGL_J2328.3-4036_daily_bin1501.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/934791/ltcube_628387201_628646401_4FGL_J2328.3-4036_daily_bin1501.fits
.....................!
real 189.54
user 185.22
sys 4.01

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/934791/ft1_filtered_4FGL_J2328.3-4036_daily_bin1501.fits scfile=/scratch/kocevski/934791/ft2_4FGL_J2328.3-4036_daily_bin1501.fits outfile=/scratch/kocevski/934791/cmap_628387201_628646401_4FGL_J2328.3-4036_daily_bin1501.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.58
user 0.37
sys 0.14

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

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

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    25.605       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .70517       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.0973       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10453E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .21932E-01   1.0000         .10000E-03   10000.    
    11 'Prefactor '    12.776       1.0000         .10000E-03   10000.    
    12 'Prefactor '    56.561       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    7.5140       1.0000         .10000E-03   10000.    
    16 'norm      '    2.6806       1.0000         .10000E-03   10000.    
    17 'norm      '    12.205       1.0000         .10000E-03   10000.    
    18 'norm      '    9.7207       1.0000         .10000E-03   10000.    
    19 'Prefactor '    14.974       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10087E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .13124E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .25752E-02   1.0000         .10000E-03   10000.    
    24 'norm      '    .59639       1.0000         .10000E-03   10000.    
    25 'norm      '    4.5834       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    7.6772       1.0000         .10000E-03   10000.    
    28 'Prefactor '    78.656       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    2.6588       1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.2151       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .85509       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=   4479.451     FROM MIGRAD    STATUS=CONVERGED    906 CALLS     4634 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    18.690        .17808E-07** at limit **
   2  Prefactor     .10000E-03    20.407        .58655E-07** at limit **
   3  Prefactor     .10000E-03    17.828       -.28573E-07** at limit **
   4  Prefactor     .10000E-03    27.098       -.28039E-07** at limit **
   5  Prefactor     25.606        10.984        .29140E-06    .14646E-03
   6  Prefactor     .70617        6.3524        .17613E-05    .12042E-03
   7  Prefactor     .10001E-03    48.221       -.54356E-08** at limit **
   8  Prefactor     6.0814        33.060        .98925E-07    .10294E-04
   9  Prefactor     .10001E-03    67.144        .25140E-06** at limit **
  10  Prefactor     .10097E-03    20.387       -.21667E-05** at limit **
  11  Prefactor     12.777        12.118        .73267E-06   -.13121E-04
  12  Prefactor     56.571        61.745        .69147E-06    .94123E-05
  13  Prefactor     .10000E-03    18.913        .39577E-07** at limit **
  14  Prefactor     .10000E-03    19.240       -.31380E-06** at limit **
  15  norm          7.5156        15.142        .15606E-05    .41284E-04
  16  norm          2.6807        8.9691        .77693E-05    .23243E-03
  17  norm          12.207        9.5917       -.64474E-06   -.21358E-03
  18  norm          9.7215        10.542        .70890E-07   -.95968E-04
  19  Prefactor     14.976        9.1933       -.34788E-06   -.42936E-03
  20  Prefactor     .10003E-03    95.026        .31935E-06** at limit **
  21  Prefactor     .10001E-03    68.205       -.27438E-07** at limit **
  22  norm          .10015E-03    10.244       -.65871E-05** at limit **
  23  Prefactor     .10002E-03    16.358        .72938E-05** at limit **
  24  norm          .59642        .95807       -.35959E-06   -.42051E-03
  25  norm          4.5852        6.1932        .20786E-05    .52607E-03
  26  Prefactor     .10000E-03    1.5002        .27726E-07** at limit **
  27  Prefactor     7.6774        20.264        .90169E-06   -.43055E-05
  28  Prefactor     78.650        65.823        .43675E-06   -.59661E-04
  29  Prefactor     .10000E-03    2.2837       -.90177E-08** at limit **
  30  Prefactor     2.6599        5.1182        .59798E-06    .67506E-04
  31  Prefactor     .10000E-03    16.490       -.13998E-07** at limit **
  32  Normalizat    1.2150        .21904       -.58386E-06   -.37808E-03
  33  Prefactor     .85515        .23889       -.29106E-05   -.30031E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 25.6057
  Prefactor  = 0.70617
  Prefactor  = 0.000100014
  Prefactor  = 6.08139
  Prefactor  = 0.000100009
  Prefactor  = 0.000100975
  Prefactor  = 12.777
  Prefactor  = 56.5706
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 7.51564
  norm       = 2.68073
  norm       = 12.2065
  norm       = 9.7215
  Prefactor  = 14.9763
  Prefactor  = 0.000100035
  Prefactor  = 0.000100012
  norm       = 0.000100147
  Prefactor  = 0.000100024
  norm       = 0.596415
  norm       = 4.58517
  Prefactor  = 0.0001
  Prefactor  = 7.67736
  Prefactor  = 78.6505
  Prefactor  = 0.0001
  Prefactor  = 2.65991
  Prefactor  = 0.0001
  Normalizat = 1.215
  Prefactor  = 0.855146
 **********
 **   18 **HESSE 
 **********

 FCN=   4479.451     FROM HESSE     STATUS=OK           699 CALLS     5333 TOTAL
                     EDM=   .71E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    18.694        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    20.616        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    17.865        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    27.178        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     25.606        11.004        .79167E-04   -1.4695    
   6  Prefactor     .70617        6.5383        .32082E-03   -1.5540    
   7  Prefactor     .10001E-03    48.833        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     6.0814        33.179        .16259E-03   -1.5215    
   9  Prefactor     .10001E-03    68.663        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10097E-03    22.640        .83217E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     12.777        12.116        .56033E-03   -1.4993    
  12  Prefactor     56.571        61.773        .53340E-04   -1.4202    
  13  Prefactor     .10000E-03    18.921        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    19.493        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          7.5156        15.140        .73152E-03   -1.5160    
  16  norm          2.6807        9.3878        .12444E-02   -1.5380    
  17  norm          12.207        8.8425        .11466E-03   -1.5009    
  18  norm          9.7215        10.537        .12853E-03   -1.5084    
  19  Prefactor     14.976        8.5035        .10350E-03   -1.4934    
  20  Prefactor     .10003E-03    96.236        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10001E-03    68.808        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10015E-03    34.647        .26461E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10002E-03    58.574        .41872E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .59642        .95838        .46633E-04   -1.5554    
  25  norm          4.5852        6.0685        .89349E-03   -1.5280    
  26  Prefactor     .10000E-03    1.5108        .79958E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     7.6774        20.205        .14473E-03   -1.5154    
  28  Prefactor     78.650        65.840        .45281E-04   -1.3932    
  29  Prefactor     .10000E-03    2.2875        .98769E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     2.6599        5.1107        .19753E-03   -1.5382    
  31  Prefactor     .10000E-03    16.494        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    1.2150        .26494        .23539E-03   -.86141    
  33  Prefactor     .85515        .28733        .30037E-03   -.97726    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.08231e-09
Minuit parameter uncertainties:
  1  4.96115e-05
  2  8.44932e-05
  3  0.0002548
  4  0.000323537
  5  11.0054
  6  4.29783
  7  0.00167679
  8  28.4337
  9  0.0016035
  10  0.00939914
  11  12.1186
  12  61.8432
  13  9.92624e-05
  14  0.000330368
  15  15.1478
  16  9.39299
  17  8.84346
  18  10.5388
  19  8.50421
  20  0.00365881
  21  0.00178929
  22  0.00451074
  23  0.00239432
  24  0.958405
  25  6.06931
  26  1.96968e-06
  27  20.2235
  28  65.9009
  29  2.23149e-07
  30  5.11152
  31  4.20558e-05
  32  0.265229
  33  0.287837
Done.

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

Extracting fit parameters...

4FGL J2328.3-4036
   Spectrum: LogParabola
455         norm:  1.001e-04  4.511e-03  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.551e-01  2.878e-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.215e+00  2.652e-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.24e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.34e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/934791/likelihoodResults_628387201_628646401_4FGL_J2328.3-4036_daily_bin1501.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) = 4479.45094875
delta logL = -0.000137542428092

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4479.31871609
delta logL = 0.132095116352

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .75866E-01   1.0000         .10000E-03   10000.    
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1653       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88922       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=   4479.319     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      396 TOTAL
                     EDM=   .50E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .75990E-01    .17012        .33263E-03    .11466E-01
   2  alpha         5.0000        4.1962        .50000    ** at limit **
   3  Normalizat    1.1651        .27459        .23961E-03   -.63674E-04
   4  Prefactor     .88932        .28750        .29510E-03   -.48619E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0759902
  alpha      = 5
  Normalizat = 1.16512
  Prefactor  = 0.889315
 **********
 **   18 **HESSE 
 **********

 FCN=   4479.319     FROM HESSE     STATUS=OK            29 CALLS      425 TOTAL
                     EDM=   .11E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .75990E-01    .16004        .66527E-04   -1.5653    
   2  alpha         5.0000        4.3952        .11092        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.1651        .27150        .95843E-05   -.87688    
   4  Prefactor     .88932        .28615        .11804E-04   -.96515    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.11696e-11
Minuit parameter uncertainties:
  1  0.160044
  2  2.47763e-05
  3  0.271828
  4  0.286634
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/934791': 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) = 4479.31871563
delta logL = 0.13209557653

Extracting fit parameters...

4FGL J2328.3-4036
   Spectrum: LogParabola
455         norm:  7.599e-02  1.600e-01  1.000e-04  1.000e+04 ( 1.000e-12)
456        alpha:  5.000e+00  2.478e-05  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.893e-01  2.866e-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.165e+00  2.718e-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/934791/cmap_HighResolution_628387201_628646401_4FGL_J2328.3-4036_daily_bin1501.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.34e-05', job_status='DONE', photon_flux_upper_limit='1.24e-07', time_completed='2021-09-29 20:55:09.447267', job_id='934791', GAL2='0.89', fit_tolerance='1e-08', EG2='1.17', EG='1.21', time_epoch_completed='1632974109.45', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.86', dlogl='1.32e-01', ts2='0.29', photon_index_error='0.00', photon_index='2.33' WHERE bin_id='1501' AND source_name='4FGL J2328.3-4036' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 20:55:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0291>
Subject: Job 934791: <4FGL_J2328.3-4036_daily_bin1501> in cluster <slac> Done

Job <4FGL_J2328.3-4036_daily_bin1501> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 20:40:35 2021
Job was executed on host(s) <bullet0291>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 20:40:37 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:37 2021
Terminated at Wed Sep 29 20:55:09 2021
Results reported at Wed Sep 29 20:55:09 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2328.3-4036_daily_bin1501 352.082 -40.6037 628387201 628646401 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 :                                   775.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             332.97 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   872 sec.
    Turnaround time :                            874 sec.

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

