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


Performing analysis on: 4FGL_J2328.3-4036_daily_bin808
RA = 352.082, Dec = -40.6037
tmin = 448761601, tmax = 449020801
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='925039', job_status='RUN', time_executed='2021-09-29 20:33:17.504447', time_epoch_executed='1632972797.5' WHERE source_name='4FGL J2328.3-4036' and cadence='daily' and bin_id='808'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/925039

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/925039/ft1_4FGL_J2328.3-4036_daily_bin808.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/925039/ft2_4FGL_J2328.3-4036_daily_bin808.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/925039/ft1_4FGL_J2328.3-4036_daily_bin808.fits outfile=/scratch/kocevski/925039/ft1_filteredMKT_4FGL_J2328.3-4036_daily_bin808.fits ra=352.082 dec=-40.6037 rad=12.0 tmin=448761601.0 tmax=449020801.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 5.85
user 5.51
sys 0.27

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/925039/ft2_4FGL_J2328.3-4036_daily_bin808.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/925039/ft1_filteredMKT_4FGL_J2328.3-4036_daily_bin808.fits evtable="EVENTS" outfile="/scratch/kocevski/925039/ft1_filtered_4FGL_J2328.3-4036_daily_bin808.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.52
user 0.34
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/925039/ft1_filtered_4FGL_J2328.3-4036_daily_bin808.fits" evtable="EVENTS" scfile=/scratch/kocevski/925039/ft2_4FGL_J2328.3-4036_daily_bin808.fits sctable="SC_DATA" outfile=/scratch/kocevski/925039/ltcube_448761601_449020801_4FGL_J2328.3-4036_daily_bin808.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/925039/ft2_4FGL_J2328.3-4036_daily_bin808.fits
.....................!
real 15.31
user 14.93
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/925039/ft1_filtered_4FGL_J2328.3-4036_daily_bin808.fits evtable="EVENTS" scfile=/scratch/kocevski/925039/ft2_4FGL_J2328.3-4036_daily_bin808.fits sctable="SC_DATA" expcube=/scratch/kocevski/925039/ltcube_448761601_449020801_4FGL_J2328.3-4036_daily_bin808.fits outfile=/scratch/kocevski/925039/expmap_448761601_449020801_4FGL_J2328.3-4036_daily_bin808.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/925039/ltcube_448761601_449020801_4FGL_J2328.3-4036_daily_bin808.fits
.....................!
real 190.79
user 185.34
sys 5.06

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/925039/ft1_filtered_4FGL_J2328.3-4036_daily_bin808.fits scfile=/scratch/kocevski/925039/ft2_4FGL_J2328.3-4036_daily_bin808.fits outfile=/scratch/kocevski/925039/cmap_448761601_449020801_4FGL_J2328.3-4036_daily_bin808.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.55
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/925039/ft1_filtered_4FGL_J2328.3-4036_daily_bin808.fits scfile=/scratch/kocevski/925039/ft2_4FGL_J2328.3-4036_daily_bin808.fits outfile=/scratch/kocevski/925039/cmap_HighResolution_448761601_449020801_4FGL_J2328.3-4036_daily_bin808.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.55
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/925039/ft1_filtered_4FGL_J2328.3-4036_daily_bin808.fits evtable="EVENTS" scfile=/scratch/kocevski/925039/ft2_4FGL_J2328.3-4036_daily_bin808.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/925039/Model_4FGL_J2328.3-4036_daily_bin808.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/925039/ft1_filtered_4FGL_J2328.3-4036_daily_bin808.fits.....................!
real 31.82
user 30.54
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10189E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    8.5044       1.0000         .10000E-03   10000.    
     3 'Prefactor '    17.452       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    24.195       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.4731       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    60.877       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    13.401       1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.9769       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .54373       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .17035E-02   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .89884E-02   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    15.294       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10353E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    127.22       1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    23.113       1.0000         .10000E-03   10000.    
    24 'norm      '    6.0498       1.0000         .10000E-03   10000.    
    25 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    3.8322       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10691E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    16.202       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10071E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.0250       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .79192       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=   3342.549     FROM MIGRAD    STATUS=CONVERGED    919 CALLS     4634 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    67.044        .10618E-07** at limit **
   2  Prefactor     8.5072        30.266       -.35292E-06    .31184E-05
   3  Prefactor     17.355        67.740       -.12289E-05   -.13582E-04
   4  Prefactor     .10000E-03    105.78       -.29610E-05** at limit **
   5  Prefactor     24.192        15.421       -.57548E-06   -.14044E-03
   6  Prefactor     1.4715        4.7408        .98425E-06    .32271E-03
   7  Prefactor     .10000E-03    13.520       -.24414E-07** at limit **
   8  Prefactor     60.883        33.799        .22159E-06    .78544E-04
   9  Prefactor     .10000E-03    17.225       -.95851E-07** at limit **
  10  Prefactor     13.403        21.039        .71363E-06    .13567E-03
  11  Prefactor     3.9762        3.9948       -.16308E-05   -.11705E-02
  12  Prefactor     .31893        106.13       -.10557E-04    .29059E-03
  13  Prefactor     .10007E-03    351.56        .10127E-04** at limit **
  14  Prefactor     .10000E-03    6.9277        .70430E-08** at limit **
  15  norm          .10000E-03    6.3435        .26133E-07** at limit **
  16  norm          .42389E-01    10.357        .10353E-05   -.14418E-03
  17  norm          .10000E-03    2.2070        .66620E-08** at limit **
  18  norm          15.289        14.837        .22497E-07    .24304E-04
  19  Prefactor     .10000E-03    16.319       -.40546E-06** at limit **
  20  Prefactor     .10000E-03    22.517        .56844E-07** at limit **
  21  Prefactor     127.25        93.955       -.11900E-06    .28074E-04
  22  norm          .10000E-03    2.0542        .13818E-07** at limit **
  23  Prefactor     23.103        27.549       -.55767E-06    .12735E-04
  24  norm          6.0483        2.4494       -.41533E-07   -.90916E-04
  25  norm          .10000E-03    2.3007        .19401E-07** at limit **
  26  Prefactor     .10000E-03    2.3042       -.34022E-07** at limit **
  27  Prefactor     3.8313        29.387        .49886E-06    .16217E-04
  28  Prefactor     .10000E-03    88.403       -.21258E-06** at limit **
  29  Prefactor     16.198        13.091       -.40645E-06   -.13135E-03
  30  Prefactor     .10000E-03    3.5118        .84373E-07** at limit **
  31  Prefactor     .10000E-03    117.16       -.16798E-05** at limit **
  32  Normalizat    1.0252        .27421        .41550E-05    .30323E-03
  33  Prefactor     .79207        .26751       -.33146E-05    .30742E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 8.50719
  Prefactor  = 17.3554
  Prefactor  = 0.000100003
  Prefactor  = 24.1922
  Prefactor  = 1.4715
  Prefactor  = 0.0001
  Prefactor  = 60.8833
  Prefactor  = 0.0001
  Prefactor  = 13.4031
  Prefactor  = 3.97624
  Prefactor  = 0.318934
  Prefactor  = 0.000100073
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0423891
  norm       = 0.0001
  norm       = 15.2889
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 127.249
  norm       = 0.0001
  Prefactor  = 23.103
  norm       = 6.04833
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.83132
  Prefactor  = 0.0001
  Prefactor  = 16.1976
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Normalizat = 1.02517
  Prefactor  = 0.792071
 **********
 **   18 **HESSE 
 **********

 FCN=   3342.549     FROM HESSE     STATUS=OK           703 CALLS     5337 TOTAL
                     EDM=   .45E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    67.089        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     8.5072        30.202        .13746E-03   -1.5125    
   3  Prefactor     17.355        67.775        .95873E-04   -1.4875    
   4  Prefactor     .10000E-03    105.97        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     24.192        15.389        .81435E-04   -1.4724    
   6  Prefactor     1.4715        4.7466        .20771E-03   -1.5465    
   7  Prefactor     .10000E-03    13.522        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     60.883        33.849        .51425E-04   -1.4146    
   9  Prefactor     .10000E-03    17.264        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     13.403        21.097        .10942E-03   -1.4976    
  11  Prefactor     3.9762        4.0737        .57424E-03   -1.5309    
  12  Prefactor     .31893        74.754        .12258       -1.5595    
  13  Prefactor     .10007E-03    360.34        .20368E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    6.9313        .14862E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    6.3471        .14222E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .42389E-01    12.022        .55666E-01   -1.5667    
  17  norm          .10000E-03    2.2071        .83884E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          15.289        14.839        .10242E-03   -1.4926    
  19  Prefactor     .10000E-03    16.460        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    22.530        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     127.25        93.963        .35691E-04   -1.3447    
  22  norm          .10000E-03    2.0579        .80914E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     23.103        27.495        .83318E-04   -1.4746    
  24  norm          6.0483        2.4528        .52185E-04   -1.5216    
  25  norm          .10000E-03    2.3052        .85631E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    2.3077        .85618E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     3.8313        29.269        .20617E-03   -1.5316    
  28  Prefactor     .10000E-03    88.457        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     16.198        13.128        .99504E-04   -1.4903    
  30  Prefactor     .10000E-03    3.5308        .10571E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .10000E-03    117.37        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    1.0252        .31382        .24375E-03   -.92192    
  33  Prefactor     .79207        .31212        .28477E-03   -1.0002    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.45475e-09
Minuit parameter uncertainties:
  1  2.05933e-05
  2  30.2562
  3  68.078
  4  0.00112925
  5  15.3911
  6  4.74782
  7  9.25865e-06
  8  33.86
  9  3.48158e-05
  10  21.1083
  11  4.07395
  12  9.77641
  13  0.010346
  14  1.30302e-06
  15  1.93538e-06
  16  1.42635
  17  4.67676e-08
  18  14.8422
  19  5.29343e-05
  20  2.69955e-07
  21  94.0738
  22  1.067e-06
  23  27.5098
  24  2.45283
  25  8.04744e-07
  26  2.59107e-06
  27  21.1933
  28  7.20001e-06
  29  13.1302
  30  2.9531e-06
  31  0.000646408
  32  0.314392
  33  0.312817
Done.

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

Extracting fit parameters...

4FGL J2328.3-4036
   Spectrum: LogParabola
455         norm:  1.000e-04  1.067e-06  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.921e-01  3.128e-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.025e+00  3.144e-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: 8.08e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.82e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/925039/likelihoodResults_448761601_449020801_4FGL_J2328.3-4036_daily_bin808.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) = 3342.55133843
delta logL = -0.00224746922049

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3342.54909095
delta logL = 7.07450453774e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3285       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0252       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79206       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=   3342.549     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      231 TOTAL
                     EDM=   .50E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.8847        .80972E-03** at limit **
   2  alpha         2.1209        3.1208        .16510       -.44794E-07
   3  Normalizat    1.0252        .28678        .24374E-03    .33279E-04
   4  Prefactor     .79207        .29929        .28477E-03    .35271E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.12086
  Normalizat = 1.02517
  Prefactor  = 0.792069
 **********
 **   18 **HESSE 
 **********

 FCN=   3342.549     FROM HESSE     STATUS=OK            23 CALLS      254 TOTAL
                     EDM=   .26E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.0963        .16194E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.1209        3.5604        .66039E-02   -.15224    
   3  Normalizat    1.0252        .28712        .97497E-05   -.92192    
   4  Prefactor     .79207        .29965        .11391E-04   -1.0002    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.63719e-11
Minuit parameter uncertainties:
  1  1.1482e-05
  2  220.874
  3  0.287559
  4  0.300264
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/925039': 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) = 3342.54909051
delta logL = 4.44555553258e-07

Extracting fit parameters...

4FGL J2328.3-4036
   Spectrum: LogParabola
455         norm:  1.000e-04  1.148e-05  1.000e-04  1.000e+04 ( 1.000e-12)
456        alpha:  2.121e+00  2.209e+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.921e-01  3.003e-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.025e+00  2.876e-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/925039/cmap_HighResolution_448761601_449020801_4FGL_J2328.3-4036_daily_bin808.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.82e-05', job_status='DONE', photon_flux_upper_limit='8.08e-08', time_completed='2021-09-29 20:44:16.258022', job_id='925039', GAL2='0.79', fit_tolerance='1e-08', EG2='1.03', EG='1.03', time_epoch_completed='1632973456.26', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.79', dlogl='4.45e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.33' WHERE bin_id='808' AND source_name='4FGL J2328.3-4036' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 20:44:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0221>
Subject: Job 925039: <4FGL_J2328.3-4036_daily_bin808> in cluster <slac> Done

Job <4FGL_J2328.3-4036_daily_bin808> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep 29 20:30:26 2021
Job was executed on host(s) <bullet0221>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 20:30:27 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:30:27 2021
Terminated at Wed Sep 29 20:44:16 2021
Results reported at Wed Sep 29 20:44:16 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2328.3-4036_daily_bin808 352.082 -40.6037 448761601 449020801 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 :                                   657.17 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             282.61 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   829 sec.
    Turnaround time :                            830 sec.

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

