/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 128 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

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

number of points = 7401
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2328.3-4036_daily_bin402
RA = 352.082, Dec = -40.6037
tmin = 343526401, tmax = 343785601
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='920784', job_status='RUN', time_executed='2021-09-29 20:23:20.498682', time_epoch_executed='1632972200.5' WHERE source_name='4FGL J2328.3-4036' and cadence='daily' and bin_id='402'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/920784

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/920784/ft1_4FGL_J2328.3-4036_daily_bin402.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/920784/ft2_4FGL_J2328.3-4036_daily_bin402.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/920784/ft1_4FGL_J2328.3-4036_daily_bin402.fits outfile=/scratch/kocevski/920784/ft1_filteredMKT_4FGL_J2328.3-4036_daily_bin402.fits ra=352.082 dec=-40.6037 rad=12.0 tmin=343526401.0 tmax=343785601.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.43
user 3.21
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/920784/ft1_filtered_4FGL_J2328.3-4036_daily_bin402.fits" evtable="EVENTS" scfile=/scratch/kocevski/920784/ft2_4FGL_J2328.3-4036_daily_bin402.fits sctable="SC_DATA" outfile=/scratch/kocevski/920784/ltcube_343526401_343785601_4FGL_J2328.3-4036_daily_bin402.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/920784/ft2_4FGL_J2328.3-4036_daily_bin402.fits
.....................!
real 12.11
user 11.75
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/920784/ft1_filtered_4FGL_J2328.3-4036_daily_bin402.fits evtable="EVENTS" scfile=/scratch/kocevski/920784/ft2_4FGL_J2328.3-4036_daily_bin402.fits sctable="SC_DATA" expcube=/scratch/kocevski/920784/ltcube_343526401_343785601_4FGL_J2328.3-4036_daily_bin402.fits outfile=/scratch/kocevski/920784/expmap_343526401_343785601_4FGL_J2328.3-4036_daily_bin402.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/920784/ltcube_343526401_343785601_4FGL_J2328.3-4036_daily_bin402.fits
.....................!
real 191.14
user 186.35
sys 4.47

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/920784/ft1_filtered_4FGL_J2328.3-4036_daily_bin402.fits scfile=/scratch/kocevski/920784/ft2_4FGL_J2328.3-4036_daily_bin402.fits outfile=/scratch/kocevski/920784/cmap_343526401_343785601_4FGL_J2328.3-4036_daily_bin402.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.15

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

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

This is gtbin version HEAD
real 0.53
user 0.37
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/920784/ft1_filtered_4FGL_J2328.3-4036_daily_bin402.fits evtable="EVENTS" scfile=/scratch/kocevski/920784/ft2_4FGL_J2328.3-4036_daily_bin402.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/920784/Model_4FGL_J2328.3-4036_daily_bin402.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/920784/ft1_filtered_4FGL_J2328.3-4036_daily_bin402.fits.....................!
real 36.64
user 35.41
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    88.335       1.0000         .10000E-03   10000.    
     2 'Prefactor '    18.661       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .11063E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10113E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.7182       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    16.048       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .67711       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .53650       1.0000         .10000E-03   10000.    
    12 'Prefactor '    114.72       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    12.931       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    8.1379       1.0000         .10000E-03   10000.    
    18 'norm      '    .11006E-02   1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.8476       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .33298E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10652E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    14.825       1.0000         .10000E-03   10000.    
    25 'norm      '    .10137E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    26.786       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    13.222       1.0000         .10000E-03   10000.    
    30 'Prefactor '    1.5483       1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.3269       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .62551       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=   4441.393     FROM MIGRAD    STATUS=CONVERGED    888 CALLS     4589 TOTAL
                     EDM=   .19E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     88.225        92.821        .74078E-06    .19568E-04
   2  Prefactor     18.664        29.078        .47090E-06    .28984E-04
   3  Prefactor     .10000E-03    120.19       -.16937E-06** at limit **
   4  Prefactor     .10000E-03    39.152        .13945E-06** at limit **
   5  Prefactor     5.7218        9.5560       -.35853E-07   -.27233E-04
   6  Prefactor     .10000E-03    2.1241       -.21894E-06** at limit **
   7  Prefactor     .10000E-03    21.746       -.22001E-06** at limit **
   8  Prefactor     .10000E-03    6.8345       -.16509E-06** at limit **
   9  Prefactor     16.058        30.892       -.11799E-06    .77587E-05
  10  Prefactor     .69305        11.777       -.14015E-05    .87756E-04
  11  Prefactor     .56114        17.941       -.47870E-05    .14846E-04
  12  Prefactor     114.73        61.845       -.47834E-06   -.72544E-05
  13  Prefactor     .10000E-03    72.402       -.13757E-05** at limit **
  14  Prefactor     .10000E-03    6.3846       -.61206E-07** at limit **
  15  norm          12.929        14.465       -.10125E-06    .37469E-05
  16  norm          .10000E-03    2.7716       -.90174E-08** at limit **
  17  norm          8.1315        6.7761        .80908E-10    .75564E-04
  18  norm          .10018E-03    12.494       -.21268E-05** at limit **
  19  Prefactor     3.8472        5.4718       -.10660E-06    .17389E-04
  20  Prefactor     .10000E-03    128.80       -.16285E-05** at limit **
  21  Prefactor     .10000E-03    36.334       -.70855E-07** at limit **
  22  norm          .10000E-03    5.1218       -.27544E-06** at limit **
  23  Prefactor     .10000E-03    7.2166       -.15068E-07** at limit **
  24  norm          14.826        2.7686       -.11913E-07    .12226E-04
  25  norm          .10000E-03    2.6942       -.68037E-07** at limit **
  26  Prefactor     .10000E-03    2.2833       -.11536E-06** at limit **
  27  Prefactor     26.789        29.528       -.26004E-07    .15374E-04
  28  Prefactor     .10000E-03    16.209        .54510E-07** at limit **
  29  Prefactor     13.224        9.2171       -.17392E-06    .20688E-04
  30  Prefactor     1.5495        5.2769       -.16140E-05    .46490E-04
  31  Prefactor     .10000E-03    27.976       -.28099E-06** at limit **
  32  Normalizat    1.3267        .23799        .87148E-06    .36481E-03
  33  Prefactor     .62574        .24957        .16249E-05    .11152E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 88.2248
  Prefactor  = 18.6639
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.72181
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.0582
  Prefactor  = 0.693048
  Prefactor  = 0.561141
  Prefactor  = 114.732
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 12.9291
  norm       = 0.0001
  norm       = 8.13147
  norm       = 0.000100176
  Prefactor  = 3.84718
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 14.8258
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 26.7891
  Prefactor  = 0.0001
  Prefactor  = 13.2241
  Prefactor  = 1.54951
  Prefactor  = 0.0001
  Normalizat = 1.32665
  Prefactor  = 0.625738
 **********
 **   18 **HESSE 
 **********

 FCN=   4441.393     FROM HESSE     STATUS=OK           705 CALLS     5294 TOTAL
                     EDM=   .80E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     88.225        93.302        .21375E-03   -1.3827    
   2  Prefactor     18.664        28.867        .92716E-04   -1.4844    
   3  Prefactor     .10000E-03    120.56        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    39.210        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     5.7218        9.5458        .16797E-03   -1.5230    
   6  Prefactor     .10000E-03    2.1671        .94920E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    21.757        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    6.8365        .17019E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     16.058        30.899        .99978E-04   -1.4906    
  10  Prefactor     .69305        87.089        .42146E-02   -1.5541    
  11  Prefactor     .56114        18.620        .28802E-02   -1.5558    
  12  Prefactor     114.73        61.917        .18781E-03   -1.3562    
  13  Prefactor     .10000E-03    72.654        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    6.3901        .16447E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          12.929        14.468        .11139E-03   -1.4989    
  16  norm          .10000E-03    2.7727        .10835E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          8.1315        6.7632        .14054E-03   -1.5138    
  18  norm          .10018E-03    14.403        .62435E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     3.8472        5.4613        .17882E-03   -1.5316    
  20  Prefactor     .10000E-03    130.80        .21345E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    36.378        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    5.2135        .14720E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    7.2264        .17484E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          14.826        2.7729        .44882E-04   -1.4938    
  25  norm          .10000E-03    2.7185        .10683E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    2.2967        .98273E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     26.789        29.494        .77404E-04   -1.4672    
  28  Prefactor     .10000E-03    16.209        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     13.224        9.2878        .11016E-03   -1.4981    
  30  Prefactor     1.5495        5.2924        .25888E-03   -1.5459    
  31  Prefactor     .10000E-03    27.997        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    1.3267        .29103        .23108E-03   -.82774    
  33  Prefactor     .62574        .29302        .34279E-03   -1.0651    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.98498e-10
Minuit parameter uncertainties:
  1  93.458
  2  28.8887
  3  9.01713e-05
  4  8.96497e-05
  5  9.54832
  6  1.12963e-06
  7  7.02695e-06
  8  3.39668e-06
  9  30.9302
  10  15.56
  11  6.46634
  12  61.9522
  13  7.6076e-05
  14  3.85685e-07
  15  14.4721
  16  5.77135e-07
  17  6.76385
  18  0.00318271
  19  5.46198
  20  0.000222177
  21  6.39183e-06
  22  1.11136e-05
  23  2.36468e-06
  24  2.77293
  25  6.25737e-06
  26  4.58685e-07
  27  29.5105
  28  2.12092e-06
  29  9.2888
  30  5.29398
  31  1.74363e-05
  32  0.291392
  33  0.293744
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
587    Prefactor:  6.257e-01  2.937e-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.327e+00  2.914e-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: 9.90e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.46e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/920784/likelihoodResults_343526401_343785601_4FGL_J2328.3-4036_daily_bin402.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) = 4441.39434113
delta logL = -0.000913447839594

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4441.39342411
delta logL = 3.57530097972e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.9853       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3266       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .62579       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=   4441.393     FROM MIGRAD    STATUS=CONVERGED     61 CALLS      265 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .55162        .52690E-01** at limit **
   2  alpha         2.9894        3.9944        .42177       -.24586E-05
   3  Normalizat    1.3266        .30989E-02    .52265E-01   -.28429E-03
   4  Prefactor     .62574        .32947E-02    .77415E-01   -.11663E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100001
  alpha      = 2.9894
  Normalizat = 1.32664
  Prefactor  = 0.625744
 **********
 **   18 **HESSE 
 **********

 FCN=   4441.393     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      298 TOTAL
                     EDM=   .15E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    313.01        .16733E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.9894        3.4464        .50000        .19703    
   3  Normalizat    1.3266        .34314E-01    .23108E-03   -.82774    
   4  Prefactor     .62574        .36402E-01    .34279E-03   -1.0651    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.45857e-06
Minuit parameter uncertainties:
  1  0.00123734
  2  1135.78
  3  0.0343148
  4  0.036403
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/920784': 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): 102
logL (Free Index) = 4441.39342402
delta logL = 3.66133463103e-06

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
587    Prefactor:  6.257e-01  3.640e-02  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.327e+00  3.431e-02  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/920784/cmap_HighResolution_343526401_343785601_4FGL_J2328.3-4036_daily_bin402.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.46e-05', job_status='DONE', photon_flux_upper_limit='9.90e-08', time_completed='2021-09-29 20:36:10.377604', job_id='920784', GAL2='0.63', fit_tolerance='1e-08', EG2='1.33', EG='1.33', time_epoch_completed='1632972970.38', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.63', dlogl='3.66e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.33' WHERE bin_id='402' AND source_name='4FGL J2328.3-4036' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 20:36:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0238>
Subject: Job 920784: <4FGL_J2328.3-4036_daily_bin402> in cluster <slac> Done

Job <4FGL_J2328.3-4036_daily_bin402> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Wed Sep 29 20:21:03 2021
Job was executed on host(s) <bullet0238>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 20:21:05 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:21:05 2021
Terminated at Wed Sep 29 20:36:10 2021
Results reported at Wed Sep 29 20:36:10 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2328.3-4036_daily_bin402 352.082 -40.6037 343526401 343785601 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 :                                   765.09 sec.
    Max Memory :                                 1171 MB
    Average Memory :                             269.66 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   905 sec.
    Turnaround time :                            907 sec.

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

