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


Performing analysis on: 4FGL_J2328.3-4036_daily_bin1105
RA = 352.082, Dec = -40.6037
tmin = 525744001, tmax = 526003201
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='929643', job_status='RUN', time_executed='2021-09-29 20:36:15.889466', time_epoch_executed='1632972975.89' WHERE source_name='4FGL J2328.3-4036' and cadence='daily' and bin_id='1105'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/929643

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/929643/ft1_4FGL_J2328.3-4036_daily_bin1105.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/929643/ft2_4FGL_J2328.3-4036_daily_bin1105.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/929643/ft1_4FGL_J2328.3-4036_daily_bin1105.fits outfile=/scratch/kocevski/929643/ft1_filteredMKT_4FGL_J2328.3-4036_daily_bin1105.fits ra=352.082 dec=-40.6037 rad=12.0 tmin=525744001.0 tmax=526003201.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 4.35
user 4.11
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/929643/ft1_filtered_4FGL_J2328.3-4036_daily_bin1105.fits" evtable="EVENTS" scfile=/scratch/kocevski/929643/ft2_4FGL_J2328.3-4036_daily_bin1105.fits sctable="SC_DATA" outfile=/scratch/kocevski/929643/ltcube_525744001_526003201_4FGL_J2328.3-4036_daily_bin1105.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/929643/ft2_4FGL_J2328.3-4036_daily_bin1105.fits
.....................!
real 15.20
user 14.83
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/929643/ft1_filtered_4FGL_J2328.3-4036_daily_bin1105.fits evtable="EVENTS" scfile=/scratch/kocevski/929643/ft2_4FGL_J2328.3-4036_daily_bin1105.fits sctable="SC_DATA" expcube=/scratch/kocevski/929643/ltcube_525744001_526003201_4FGL_J2328.3-4036_daily_bin1105.fits outfile=/scratch/kocevski/929643/expmap_525744001_526003201_4FGL_J2328.3-4036_daily_bin1105.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/929643/ltcube_525744001_526003201_4FGL_J2328.3-4036_daily_bin1105.fits
.....................!
real 190.05
user 185.21
sys 4.44

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

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

This is gtbin version HEAD
real 0.52
user 0.37
sys 0.14

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

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

This is gtbin version HEAD
real 0.54
user 0.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/929643/ft1_filtered_4FGL_J2328.3-4036_daily_bin1105.fits evtable="EVENTS" scfile=/scratch/kocevski/929643/ft2_4FGL_J2328.3-4036_daily_bin1105.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/929643/Model_4FGL_J2328.3-4036_daily_bin1105.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/929643/ft1_filtered_4FGL_J2328.3-4036_daily_bin1105.fits.....................!
real 43.13
user 41.83
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    69.152       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    130.67       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.5975       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.6069       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    23.513       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    22.828       1.0000         .10000E-03   10000.    
    13 'Prefactor '    7.7192       1.0000         .10000E-03   10000.    
    14 'Prefactor '    13.443       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    10.668       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    7.7871       1.0000         .10000E-03   10000.    
    23 'Prefactor '    9.1211       1.0000         .10000E-03   10000.    
    24 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    2.0206       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .12718E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    3.1426       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    2.7766       1.0000         .10000E-03   10000.    
    31 'Prefactor '    23.302       1.0000         .10000E-03   10000.    
    32 'Normalizat'    .74246       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .93546       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=   5763.421     FROM MIGRAD    STATUS=CONVERGED    855 CALLS     4550 TOTAL
                     EDM=   .28E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     69.154        45.367        .17707E-06   -.37185E-05
   2  Prefactor     .10000E-03    9.3309        .23608E-06** at limit **
   3  Prefactor     130.68        69.926       -.30790E-07   -.10329E-03
   4  Prefactor     .10000E-03    10.303       -.68322E-07** at limit **
   5  Prefactor     3.5976        3.4310        .31219E-08    .65607E-05
   6  Prefactor     1.6072        3.1321        .51427E-06   -.85358E-04
   7  Prefactor     .10000E-03    13.479       -.16566E-06** at limit **
   8  Prefactor     23.513        22.248        .22892E-06   -.78648E-05
   9  Prefactor     .10000E-03    5.9824        .89291E-08** at limit **
  10  Prefactor     .10000E-03    5.8259        .20385E-06** at limit **
  11  Prefactor     .10000E-03    7.7709       -.20105E-06** at limit **
  12  Prefactor     22.828        43.091        .88241E-07   -.80256E-05
  13  Prefactor     7.7608        104.30        .20364E-05    .31501E-04
  14  Prefactor     13.444        13.930        .13980E-07   -.85689E-04
  15  norm          .10000E-03    2.7143       -.20375E-07** at limit **
  16  norm          .10000E-03    1.8551       -.99307E-08** at limit **
  17  norm          .10000E-03    1.9547       -.53163E-08** at limit **
  18  norm          10.668        7.4702        .98514E-07   -.70636E-05
  19  Prefactor     .10000E-03    4.2357       -.20970E-06** at limit **
  20  Prefactor     .10000E-03    15.252        .76891E-08** at limit **
  21  Prefactor     .10000E-03    33.507       -.20130E-06** at limit **
  22  norm          7.7874        4.2691        .13665E-06   -.40093E-04
  23  Prefactor     9.1168        10.880        .40760E-06   -.99937E-04
  24  norm          .10000E-03    .31140        .88593E-07** at limit **
  25  norm          2.0205        2.2604        .85977E-08   -.11635E-04
  26  Prefactor     .10000E-03    3.0142        .17758E-05** at limit **
  27  Prefactor     3.1563        36.092       -.71220E-05   -.15704E-03
  28  Prefactor     .10000E-03    10.083       -.37325E-07** at limit **
  29  Prefactor     .10000E-03    1.3827       -.99015E-07** at limit **
  30  Prefactor     2.7768        2.7942        .18856E-06   -.15529E-03
  31  Prefactor     23.299        36.376        .21985E-06   -.12834E-04
  32  Normalizat    .74235        .16843       -.20277E-05   -.12887E-03
  33  Prefactor     .93559        .17956        .16052E-05   -.27264E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 69.1538
  Prefactor  = 0.0001
  Prefactor  = 130.681
  Prefactor  = 0.0001
  Prefactor  = 3.59764
  Prefactor  = 1.60715
  Prefactor  = 0.0001
  Prefactor  = 23.5131
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 22.8281
  Prefactor  = 7.76078
  Prefactor  = 13.4437
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 10.6681
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.78741
  Prefactor  = 9.11678
  norm       = 0.0001
  norm       = 2.02054
  Prefactor  = 0.000100002
  Prefactor  = 3.1563
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.77682
  Prefactor  = 23.2988
  Normalizat = 0.742351
  Prefactor  = 0.935586
 **********
 **   18 **HESSE 
 **********

 FCN=   5763.421     FROM HESSE     STATUS=OK           693 CALLS     5243 TOTAL
                     EDM=   .88E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     69.154        45.383        .48270E-04   -1.4043    
   2  Prefactor     .10000E-03    9.3535        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     130.68        69.496        .17612E-03   -1.3417    
   4  Prefactor     .10000E-03    10.319        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     3.5976        3.4363        .13363E-03   -1.5329    
   6  Prefactor     1.6072        3.1046        .17761E-03   -1.5454    
   7  Prefactor     .10000E-03    13.491        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     23.513        22.248        .82606E-04   -1.4738    
   9  Prefactor     .10000E-03    5.9894        .18133E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    5.8607        .17889E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    8.0523        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     22.828        43.103        .83835E-04   -1.4752    
  13  Prefactor     7.7608        101.94        .14433E-03   -1.5151    
  14  Prefactor     13.444        13.916        .10924E-03   -1.4974    
  15  norm          .10000E-03    2.7148        .12215E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    1.8563        .10098E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    1.9607        .10360E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          10.668        7.4686        .12267E-03   -1.5055    
  19  Prefactor     .10000E-03    4.2539        .30154E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    15.270        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    33.618        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          7.7874        4.2544        .10838E-03   -1.5150    
  23  Prefactor     9.1168        10.734        .13271E-03   -1.5104    
  24  norm          .10000E-03    .32396        .82635E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          2.0205        2.2510        .11557E-03   -1.5424    
  26  Prefactor     .10000E-03    6.0517        .22770E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     3.1563        40.870        .22867E-03   -1.5353    
  28  Prefactor     .10000E-03    10.084        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    1.3848        .87119E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     2.7768        2.7844        .12188E-03   -1.5375    
  31  Prefactor     23.299        36.383        .82979E-04   -1.4742    
  32  Normalizat    .74235        .19229        .22852E-03   -1.0224    
  33  Prefactor     .93559        .20699        .23439E-03   -.94908    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.77114e-10
Minuit parameter uncertainties:
  1  45.4055
  2  1.18289e-05
  3  69.5394
  4  5.15691e-07
  5  3.4365
  6  3.10492
  7  1.70083e-05
  8  22.2563
  9  7.6004e-07
  10  3.77096e-06
  11  9.25993e-06
  12  43.1614
  13  56.3715
  14  13.919
  15  2.31548e-07
  16  1.05697e-07
  17  1.19346e-06
  18  7.46923
  19  2.11178e-06
  20  1.41761e-05
  21  3.0882e-05
  22  4.25457
  23  10.7364
  24  8.54984e-07
  25  2.25112
  26  0.000229392
  27  22.7342
  28  4.16157e-07
  29  1.42603e-06
  30  2.78452
  31  36.4172
  32  0.192467
  33  0.20716
Done.

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

Extracting fit parameters...

4FGL J2328.3-4036
   Spectrum: LogParabola
455         norm:  7.787e+00  4.255e+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:  9.356e-01  2.072e-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:  7.424e-01  1.925e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.99
Ra Dec: 352.082 -40.604
Photon Index (Fixed Index): 2.33 +/- 0.00
Photon Flux (Fixed Index): 5.88e-08 +/- 3.21e-08
Energy Flux (Fixed Index): 2.06e-05 +/- 1.12e-05

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) = 5762.58195276
delta logL = 0.838929940868

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5762.57477536
delta logL = 0.846107340538

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.6933       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.1589       1.0000          .0000       5.0000    
     3 'Normalizat'    .69045       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97874       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=   5762.575     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      237 TOTAL
                     EDM=   .46E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.6922        27.302        .52538E-02    .13716E-02
   2  alpha         3.1593        3.9904        .20780        .14423E-03
   3  Normalizat    .69052        .64565E-01    .42163E-01   -.54104E-04
   4  Prefactor     .97881        .69304E-01    .46001E-01   -.18514E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.69221
  alpha      = 3.15926
  Normalizat = 0.690525
  Prefactor  = 0.978807
 **********
 **   18 **HESSE 
 **********

 FCN=   5762.575     FROM HESSE     STATUS=OK            31 CALLS      268 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.6922        4.7575        .62734E-04   -1.5324    
   2  alpha         3.1593        .86705        .87220E-02    .26686    
   3  Normalizat    .69052        .18576        .23595E-03   -1.0427    
   4  Prefactor     .97881        .20997        .22969E-03   -.93439    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.19722e-10
Minuit parameter uncertainties:
  1  4.75799
  2  0.886908
  3  0.185932
  4  0.210149
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/929643': 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) = 5762.57477349
delta logL = 0.846109208612

Extracting fit parameters...

4FGL J2328.3-4036
   Spectrum: LogParabola
455         norm:  3.692e+00  4.758e+00  1.000e-04  1.000e+04 ( 1.000e-12)
456        alpha:  3.159e+00  8.869e-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:  9.788e-01  2.101e-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:  6.905e-01  1.859e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.80
Ra Dec: 352.082 -40.604
Photon Index (Free Index): 3.16 +/- 0.89
Photon Flux (Free Index): 9.00e-08 +/- 4.34e-08
Energy Flux (Free Index): 1.75e-05 +/- 8.65e-06

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/929643/cmap_HighResolution_525744001_526003201_4FGL_J2328.3-4036_daily_bin1105.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.88e-08', energy_flux2='1.75e-05', photon_flux_error='3.21e-08', dlogl='8.46e-01', energy_flux='2.06e-05', photon_flux2='9.00e-08', job_status='DONE', time_completed='2021-09-29 20:49:28.124278', photon_index_error2='0.89', photon_index2='3.16', ts='5.99', fit_tolerance='1e-08', GAL='0.94', photon_index_error='0.00', energy_flux_error2='8.65e-06', EG='0.74', time_epoch_completed='1632973768.12', return_code='0', job_id='929643', GAL2='0.98', EG2='0.69', return_code2='0', energy_flux_error='1.12e-05', photon_flux_error2='4.34e-08', ts2='7.80', photon_index='2.33' WHERE bin_id='1105' AND source_name='4FGL J2328.3-4036' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 20:49:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0264>
Subject: Job 929643: <4FGL_J2328.3-4036_daily_bin1105> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2328.3-4036_daily_bin1105 352.082 -40.6037 525744001 526003201 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 :                                   785.09 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             342.15 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   847 sec.
    Turnaround time :                            850 sec.

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

