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


Performing analysis on: 4FGL_J2336.6-4115_daily_bin1042
RA = 354.164, Dec = -41.2579
tmin = 509414401, tmax = 509673601
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='56000', job_status='RUN', time_executed='2021-09-30 01:51:15.871102', time_epoch_executed='1632991875.87' WHERE source_name='4FGL J2336.6-4115' and cadence='daily' and bin_id='1042'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/56000

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/56000/ft1_4FGL_J2336.6-4115_daily_bin1042.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/56000/ft2_4FGL_J2336.6-4115_daily_bin1042.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/56000/ft1_4FGL_J2336.6-4115_daily_bin1042.fits outfile=/scratch/kocevski/56000/ft1_filteredMKT_4FGL_J2336.6-4115_daily_bin1042.fits ra=354.164 dec=-41.2579 rad=12.0 tmin=509414401.0 tmax=509673601.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.68
user 3.47
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/56000/ft2_4FGL_J2336.6-4115_daily_bin1042.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/56000/ft2_4FGL_J2336.6-4115_daily_bin1042.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/56000/ft1_filteredMKT_4FGL_J2336.6-4115_daily_bin1042.fits evtable="EVENTS" outfile="/scratch/kocevski/56000/ft1_filtered_4FGL_J2336.6-4115_daily_bin1042.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.48
user 0.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/56000/ft1_filtered_4FGL_J2336.6-4115_daily_bin1042.fits" evtable="EVENTS" scfile=/scratch/kocevski/56000/ft2_4FGL_J2336.6-4115_daily_bin1042.fits sctable="SC_DATA" outfile=/scratch/kocevski/56000/ltcube_509414401_509673601_4FGL_J2336.6-4115_daily_bin1042.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/56000/ft2_4FGL_J2336.6-4115_daily_bin1042.fits
.....................!
real 11.69
user 11.30
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/56000/ft1_filtered_4FGL_J2336.6-4115_daily_bin1042.fits evtable="EVENTS" scfile=/scratch/kocevski/56000/ft2_4FGL_J2336.6-4115_daily_bin1042.fits sctable="SC_DATA" expcube=/scratch/kocevski/56000/ltcube_509414401_509673601_4FGL_J2336.6-4115_daily_bin1042.fits outfile=/scratch/kocevski/56000/expmap_509414401_509673601_4FGL_J2336.6-4115_daily_bin1042.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/56000/ltcube_509414401_509673601_4FGL_J2336.6-4115_daily_bin1042.fits
.....................!
real 189.22
user 183.27
sys 5.64

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 184 point sources and 0 extended sources

Setting source of interest to:
4FGL J2336.6-4115 @ 354.164 -41.2579

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/56000/ft1_filtered_4FGL_J2336.6-4115_daily_bin1042.fits scfile=/scratch/kocevski/56000/ft2_4FGL_J2336.6-4115_daily_bin1042.fits outfile=/scratch/kocevski/56000/cmap_509414401_509673601_4FGL_J2336.6-4115_daily_bin1042.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=354.164 yref=-41.2579 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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/56000/ft1_filtered_4FGL_J2336.6-4115_daily_bin1042.fits scfile=/scratch/kocevski/56000/ft2_4FGL_J2336.6-4115_daily_bin1042.fits outfile=/scratch/kocevski/56000/cmap_HighResolution_509414401_509673601_4FGL_J2336.6-4115_daily_bin1042.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=354.164 yref=-41.2579 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/56000/ft1_filtered_4FGL_J2336.6-4115_daily_bin1042.fits evtable="EVENTS" scfile=/scratch/kocevski/56000/ft2_4FGL_J2336.6-4115_daily_bin1042.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/56000/Model_4FGL_J2336.6-4115_daily_bin1042.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/56000/ft1_filtered_4FGL_J2336.6-4115_daily_bin1042.fits.....................!
real 36.72
user 35.44
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/56000/ft1_filtered_4FGL_J2336.6-4115_daily_bin1042.fits', '/scratch/kocevski/56000/ft2_4FGL_J2336.6-4115_daily_bin1042.fits', expMap='/scratch/kocevski/56000/expmap_509414401_509673601_4FGL_J2336.6-4115_daily_bin1042.fits', expCube='/scratch/kocevski/56000/ltcube_509414401_509673601_4FGL_J2336.6-4115_daily_bin1042.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/56000/Model_4FGL_J2336.6-4115_daily_bin1042.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2336.6-4115'

4FGL J2336.6-4115
   Spectrum: LogParabola
490         norm:  1.808e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
491        alpha:  2.217e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
492         beta:  1.146e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
493           Eb:  8.053e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/56000/ft1_filtered_4FGL_J2336.6-4115_daily_bin1042.fits
Spacecraft file(s): /scratch/kocevski/56000/ft2_4FGL_J2336.6-4115_daily_bin1042.fits
Exposure map: /scratch/kocevski/56000/expmap_509414401_509673601_4FGL_J2336.6-4115_daily_bin1042.fits
Exposure cube: /scratch/kocevski/56000/ltcube_509414401_509673601_4FGL_J2336.6-4115_daily_bin1042.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/56000/Model_4FGL_J2336.6-4115_daily_bin1042.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) = 4277.43389248

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    39.638       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10958E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10129E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .11025E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .13924E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    27.549       1.0000         .10000E-03   10000.    
    11 'Prefactor '    7.7561       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    227.61       1.0000         .10000E-03   10000.    
    14 'Prefactor '    8.9182       1.0000         .10000E-03   10000.    
    15 'norm      '    .10038E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .12615E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    11.535       1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.5090       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    5.9821       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    5.0850       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    .10089E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    8.9109       1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    32 'Prefactor '    .36509E-03   1.0000         .10000E-03   10000.    
    33 'Normalizat'    1.1845       1.0000         .10000E-01   10.000    
    34 'Prefactor '    .92872       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5850E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4277.404     FROM MIGRAD    STATUS=CONVERGED    912 CALLS     4784 TOTAL
                     EDM=   .82E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     39.586        67.838       -.10801E-05   -.11940E-03
   2  Prefactor     .10000E-03    33.338        .20738E-07** at limit **
   3  Prefactor     .10000E-03    59.666        .14212E-05** at limit **
   4  Prefactor     .10000E-03    16.104       -.53658E-07** at limit **
   5  Prefactor     .10000E-03    32.030       -.29794E-06** at limit **
   6  Prefactor     .10002E-03    6.0411        .73569E-06** at limit **
   7  Prefactor     .10000E-03    4.1825       -.32310E-07** at limit **
   8  Prefactor     .10000E-03    17.632        .20406E-06** at limit **
   9  Prefactor     .10000E-03    89.913       -.56238E-06** at limit **
  10  Prefactor     27.559        37.455        .30488E-06    .42043E-04
  11  Prefactor     7.7587        10.414        .23647E-06   -.12333E-04
  12  Prefactor     .10000E-03    13.423       -.85630E-07** at limit **
  13  Prefactor     227.64        113.18        .72829E-06    .72530E-04
  14  Prefactor     8.9186        18.698        .34968E-06   -.78143E-05
  15  norm          .10000E-03    7.2050        .34590E-07** at limit **
  16  norm          .10000E-03    2.2127       -.73289E-09** at limit **
  17  norm          .10003E-03    4.7552       -.13359E-05** at limit **
  18  norm          11.532        9.2682       -.44683E-07    .53726E-05
  19  Prefactor     2.5097        4.8470        .23194E-06   -.46667E-04
  20  Prefactor     .10000E-03    31.053       -.57187E-06** at limit **
  21  Prefactor     .10000E-03    35.842       -.46431E-08** at limit **
  22  norm          5.9781        5.6115        .27079E-05   -.31698E-03
  23  Prefactor     .10000E-03    15.875        .62832E-07** at limit **
  24  norm          .10000E-03    .59439        .32750E-07** at limit **
  25  norm          5.0880        6.6964       -.69848E-06   -.39956E-04
  26  Prefactor     .10000E-03    1.0085        .23614E-07** at limit **
  27  Prefactor     .10000E-03    15.069       -.23256E-07** at limit **
  28  Prefactor     .10000E-03    22.437        .20271E-06** at limit **
  29  norm          .10000E-03    14.995       -.10177E-06** at limit **
  30  Prefactor     8.9115        10.839        .17031E-05   -.21956E-03
  31  Prefactor     .10000E-03    2.4533        .16166E-07** at limit **
  32  Prefactor     .10003E-03    418.94       -.90272E-05** at limit **
  33  Normalizat    1.1844        .22682       -.31247E-06   -.11190E-04
  34  Prefactor     .92881        .24953       -.16356E-05    .48646E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 39.5857
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100024
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 27.5589
  Prefactor  = 7.75869
  Prefactor  = 0.0001
  Prefactor  = 227.642
  Prefactor  = 8.91861
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.000100033
  norm       = 11.5316
  Prefactor  = 2.50968
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.97811
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 5.08799
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 8.91151
  Prefactor  = 0.0001
  Prefactor  = 0.000100028
  Normalizat = 1.18442
  Prefactor  = 0.928811
 **********
 **   18 **HESSE 
 **********

 FCN=   4277.404     FROM HESSE     STATUS=OK           724 CALLS     5508 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     39.586        68.323        .63665E-04   -1.4449    
   2  Prefactor     .10000E-03    33.722        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    60.053        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    16.111        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    32.237        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10002E-03    38.363        .30886E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    8.4289        .25812E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    17.678        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    90.254        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     27.559        37.437        .76327E-04   -1.4658    
  11  Prefactor     7.7587        10.415        .14398E-03   -1.5151    
  12  Prefactor     .10000E-03    13.425        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     227.64        113.11        .13410E-03   -1.2679    
  14  Prefactor     8.9186        18.724        .13422E-03   -1.5111    
  15  norm          .10000E-03    7.2117        .17146E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    2.2128        .95014E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10003E-03    12.381        .27396E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          11.532        9.2661        .11795E-03   -1.5029    
  19  Prefactor     2.5097        4.8133        .19296E-03   -1.5391    
  20  Prefactor     .10000E-03    31.139        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    35.886        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          5.9781        5.6604        .69130E-03   -1.5219    
  23  Prefactor     .10000E-03    15.928        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    .61515        .98108E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          5.0880        6.6787        .17565E-03   -1.5257    
  26  Prefactor     .10000E-03    1.0102        .64137E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    15.104        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    22.449        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          .10000E-03    15.000        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     8.9115        10.728        .67135E-03   -1.5111    
  31  Prefactor     .10000E-03    2.4695        .10000E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     .10003E-03    430.34        .42610E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Normalizat    1.1844        .27931        .23699E-03   -.87086    
  34  Prefactor     .92881        .30563        .29329E-03   -.95142    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.74144e-09
Minuit parameter uncertainties:
  1  68.4585
  2  7.3775e-05
  3  0.000797885
  4  1.55801e-06
  5  5.51623e-05
  6  0.00190753
  7  0.000123126
  8  9.3937e-05
  9  0.000761465
  10  37.4693
  11  10.4171
  12  3.50263e-05
  13  113.215
  14  18.7367
  15  2.0305e-06
  16  9.05704e-08
  17  0.0012715
  18  9.26726
  19  4.81405
  20  0.000224181
  21  4.68478e-05
  22  5.66087
  23  5.4052e-06
  24  3.51807e-07
  25  6.67971
  26  2.77887e-07
  27  3.6271e-05
  28  0.000117013
  29  4.48622e-05
  30  10.7306
  31  3.22418e-06
  32  0.00693446
  33  0.279665
  34  0.306198
Done.

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

Extracting fit parameters...

4FGL J2336.6-4115
   Spectrum: LogParabola
490         norm:  5.088e+00  6.680e+00  1.000e-04  1.000e+04 ( 1.000e-12)
491        alpha:  2.217e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
492         beta:  1.146e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
493           Eb:  8.053e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
582    Prefactor:  9.288e-01  3.062e-01  0.000e+00  1.000e+01 ( 1.000e+00)
583        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
584        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
581   Normalization:  1.184e+00  2.797e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.89
Ra Dec: 354.164 -41.258
Photon Flux Upper Limit: 1.28e-07 ph cm-2 s-1
Energy Flux Upper Limit: 5.20e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/56000/likelihoodResults_509414401_509673601_4FGL_J2336.6-4115_daily_bin1042.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) = 4276.69779153
delta logL = 0.706633838963

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4276.6858475
delta logL = 0.718577868126

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.7343       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.6483       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0990       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99637       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5850E+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=   4276.686     FROM MIGRAD    STATUS=CONVERGED     80 CALLS      285 TOTAL
                     EDM=   .38E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.7347        48.388        .62599E-04    .13412E-02
   2  alpha         3.6483        3.8854        .12166E-01    .58636E-04
   3  Normalizat    1.0990        .28954        .24434E-03    .23194E-03
   4  Prefactor     .99637        .33762        .28392E-03    .27688E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.73472
  alpha      = 3.64832
  Normalizat = 1.09902
  Prefactor  = 0.996369
 **********
 **   18 **HESSE 
 **********

 FCN=   4276.686     FROM HESSE     STATUS=OK            25 CALLS      310 TOTAL
                     EDM=   .36E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.7347        5.0341        .25040E-05   -1.5445    
   2  alpha         3.6483        1.5932        .48665E-03    .47724    
   3  Normalizat    1.0990        .28181        .48869E-04   -.89783    
   4  Prefactor     .99637        .31061        .56785E-04   -.92851    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.58167e-10
Minuit parameter uncertainties:
  1  5.03537
  2  1.77677
  3  0.282201
  4  0.311171
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/56000': 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) = 4276.6858474
delta logL = 0.718577967633

Extracting fit parameters...

4FGL J2336.6-4115
   Spectrum: LogParabola
490         norm:  1.735e+00  5.035e+00  1.000e-04  1.000e+04 ( 1.000e-12)
491        alpha:  3.648e+00  1.777e+00  0.000e+00  5.000e+00 ( 1.000e+00)
492         beta:  1.146e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
493           Eb:  8.053e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
582    Prefactor:  9.964e-01  3.112e-01  0.000e+00  1.000e+01 ( 1.000e+00)
583        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
584        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
581   Normalization:  1.099e+00  2.822e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.41
Ra Dec: 354.164 -41.258
Photon Index (Free Index): 3.65 +/- 1.78
Photon Flux (Free Index): 9.40e-08 +/- 7.39e-08
Energy Flux (Free Index): 1.60e-05 +/- 1.33e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/56000/cmap_HighResolution_509414401_509673601_4FGL_J2336.6-4115_daily_bin1042.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.20e-05', comment='SUCCESS', energy_flux2='1.60e-05', dlogl='7.19e-01', photon_flux2='9.40e-08', job_status='DONE', time_completed='2021-09-30 02:03:57.079509', photon_index_error2='1.78', photon_index2='3.65', ts='0.89', fit_tolerance='1e-08', GAL='0.93', photon_index_error='0.00', photon_flux_upper_limit='1.28e-07', energy_flux_error2='1.33e-05', EG='1.18', time_epoch_completed='1632992637.08', return_code='0', job_id='56000', GAL2='1.00', EG2='1.10', return_code2='0', photon_flux_error2='7.39e-08', ts2='2.41', photon_index='2.22' WHERE bin_id='1042' AND source_name='4FGL J2336.6-4115' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 02:03:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0228>
Subject: Job 56000: <4FGL_J2336.6-4115_daily_bin1042> in cluster <slac> Done

Job <4FGL_J2336.6-4115_daily_bin1042> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Thu Sep 30 01:50:28 2021
Job was executed on host(s) <bullet0228>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 01:50:30 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep 30 01:50:30 2021
Terminated at Thu Sep 30 02:03:57 2021
Results reported at Thu Sep 30 02:03:57 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2336.6-4115_daily_bin1042 354.164 -41.2579 509414401 509673601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2336.6-4115 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   744.32 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             266.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   814 sec.
    Turnaround time :                            809 sec.

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

