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


Performing analysis on: 4FGL_J2336.6-4115_daily_bin1160
RA = 354.164, Dec = -41.2579
tmin = 540000001, tmax = 540259201
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='56183', job_status='RUN', time_executed='2021-09-30 01:51:23.678889', time_epoch_executed='1632991883.68' WHERE source_name='4FGL J2336.6-4115' and cadence='daily' and bin_id='1160'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/56183

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/56183/ft1_4FGL_J2336.6-4115_daily_bin1160.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/56183/ft2_4FGL_J2336.6-4115_daily_bin1160.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/56183/ft1_4FGL_J2336.6-4115_daily_bin1160.fits outfile=/scratch/kocevski/56183/ft1_filteredMKT_4FGL_J2336.6-4115_daily_bin1160.fits ra=354.164 dec=-41.2579 rad=12.0 tmin=540000001.0 tmax=540259201.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.54
user 3.31
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/56183/ft2_4FGL_J2336.6-4115_daily_bin1160.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/56183/ft1_filteredMKT_4FGL_J2336.6-4115_daily_bin1160.fits evtable="EVENTS" outfile="/scratch/kocevski/56183/ft1_filtered_4FGL_J2336.6-4115_daily_bin1160.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/56183/ft1_filtered_4FGL_J2336.6-4115_daily_bin1160.fits" evtable="EVENTS" scfile=/scratch/kocevski/56183/ft2_4FGL_J2336.6-4115_daily_bin1160.fits sctable="SC_DATA" outfile=/scratch/kocevski/56183/ltcube_540000001_540259201_4FGL_J2336.6-4115_daily_bin1160.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/56183/ft2_4FGL_J2336.6-4115_daily_bin1160.fits
.....................!
real 11.55
user 11.18
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/56183/ft1_filtered_4FGL_J2336.6-4115_daily_bin1160.fits evtable="EVENTS" scfile=/scratch/kocevski/56183/ft2_4FGL_J2336.6-4115_daily_bin1160.fits sctable="SC_DATA" expcube=/scratch/kocevski/56183/ltcube_540000001_540259201_4FGL_J2336.6-4115_daily_bin1160.fits outfile=/scratch/kocevski/56183/expmap_540000001_540259201_4FGL_J2336.6-4115_daily_bin1160.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/56183/ltcube_540000001_540259201_4FGL_J2336.6-4115_daily_bin1160.fits
.....................!
real 190.07
user 185.25
sys 4.49

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/56183/ft1_filtered_4FGL_J2336.6-4115_daily_bin1160.fits scfile=/scratch/kocevski/56183/ft2_4FGL_J2336.6-4115_daily_bin1160.fits outfile=/scratch/kocevski/56183/cmap_540000001_540259201_4FGL_J2336.6-4115_daily_bin1160.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/56183/ft1_filtered_4FGL_J2336.6-4115_daily_bin1160.fits scfile=/scratch/kocevski/56183/ft2_4FGL_J2336.6-4115_daily_bin1160.fits outfile=/scratch/kocevski/56183/cmap_HighResolution_540000001_540259201_4FGL_J2336.6-4115_daily_bin1160.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.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/56183/ft1_filtered_4FGL_J2336.6-4115_daily_bin1160.fits evtable="EVENTS" scfile=/scratch/kocevski/56183/ft2_4FGL_J2336.6-4115_daily_bin1160.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/56183/Model_4FGL_J2336.6-4115_daily_bin1160.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/56183/ft1_filtered_4FGL_J2336.6-4115_daily_bin1160.fits.....................!
real 40.01
user 38.68
sys 1.25

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/56183/ft1_filtered_4FGL_J2336.6-4115_daily_bin1160.fits', '/scratch/kocevski/56183/ft2_4FGL_J2336.6-4115_daily_bin1160.fits', expMap='/scratch/kocevski/56183/expmap_540000001_540259201_4FGL_J2336.6-4115_daily_bin1160.fits', expCube='/scratch/kocevski/56183/ltcube_540000001_540259201_4FGL_J2336.6-4115_daily_bin1160.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/56183/Model_4FGL_J2336.6-4115_daily_bin1160.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/56183/ft1_filtered_4FGL_J2336.6-4115_daily_bin1160.fits
Spacecraft file(s): /scratch/kocevski/56183/ft2_4FGL_J2336.6-4115_daily_bin1160.fits
Exposure map: /scratch/kocevski/56183/expmap_540000001_540259201_4FGL_J2336.6-4115_daily_bin1160.fits
Exposure cube: /scratch/kocevski/56183/ltcube_540000001_540259201_4FGL_J2336.6-4115_daily_bin1160.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/56183/Model_4FGL_J2336.6-4115_daily_bin1160.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) = 5130.53495471

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    90.180       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .33991       1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.5398       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    42.213       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.1454       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    1.4646       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    9.6059       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    28.342       1.0000         .10000E-03   10000.    
    22 'norm      '    1.3532       1.0000         .10000E-03   10000.    
    23 'Prefactor '    11.159       1.0000         .10000E-03   10000.    
    24 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    2.1196       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    6.1162       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    1.9558       1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    32 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    33 'Normalizat'    .91409       1.0000         .10000E-01   10.000    
    34 'Prefactor '    1.1459       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=   5130.518     FROM MIGRAD    STATUS=CONVERGED    903 CALLS     4758 TOTAL
                     EDM=   .13E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     90.172        62.006       -.72829E-05    .28480E-05
   2  Prefactor     .10000E-03    25.158        .41387E-05** at limit **
   3  Prefactor     .10000E-03    24.792        .25442E-05** at limit **
   4  Prefactor     .10000E-03    23.413       -.12797E-05** at limit **
   5  Prefactor     .10000E-03    11.596       -.31169E-06** at limit **
   6  Prefactor     .32331        8.3139       -.26098E-06   -.39246E-04
   7  Prefactor     4.5392        4.6210       -.10976E-05    .62609E-05
   8  Prefactor     .10000E-03    6.6327       -.33956E-08** at limit **
   9  Prefactor     42.215        38.535        .21787E-05   -.83736E-06
  10  Prefactor     .10000E-03    14.845        .31538E-05** at limit **
  11  Prefactor     4.1446        5.5037       -.15420E-06   -.29296E-03
  12  Prefactor     .10000E-03    45.853       -.23758E-05** at limit **
  13  Prefactor     .10000E-03    20.705       -.58419E-05** at limit **
  14  Prefactor     .10000E-03    12.557        .34074E-05** at limit **
  15  norm          1.4648        6.4064        .61637E-07   -.49678E-03
  16  norm          .10000E-03    1.9924        .81298E-09** at limit **
  17  norm          .10000E-03    1.8433       -.13663E-07** at limit **
  18  norm          .10000E-03    8.6141        .73235E-06** at limit **
  19  Prefactor     9.6064        8.0798        .54791E-06   -.13273E-04
  20  Prefactor     .10000E-03    11.013       -.30935E-05** at limit **
  21  Prefactor     28.332        58.188       -.16059E-04    .40300E-06
  22  norm          1.3527        3.3184       -.11124E-06    .36579E-05
  23  Prefactor     11.155        19.458       -.25128E-05   -.92191E-05
  24  norm          .10000E-03    .43596       -.18803E-07** at limit **
  25  norm          2.1205        3.6180       -.19703E-07    .16287E-04
  26  Prefactor     .10000E-03    1.2435       -.45666E-08** at limit **
  27  Prefactor     6.1142        15.266       -.19517E-06   -.59117E-04
  28  Prefactor     .10000E-03    16.344       -.43022E-06** at limit **
  29  norm          .10000E-03    17.458       -.32446E-05** at limit **
  30  Prefactor     1.9545        5.6676        .27581E-06   -.58653E-03
  31  Prefactor     .10000E-03    3.7323       -.14506E-07** at limit **
  32  Prefactor     .10000E-03    24.584        .18167E-05** at limit **
  33  Normalizat    .91430        .19039        .27105E-05   -.99817E-04
  34  Prefactor     1.1456        .20836       -.36447E-06    .67328E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 90.1718
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.323312
  Prefactor  = 4.53919
  Prefactor  = 0.0001
  Prefactor  = 42.2155
  Prefactor  = 0.0001
  Prefactor  = 4.14463
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.46483
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 9.60637
  Prefactor  = 0.0001
  Prefactor  = 28.332
  norm       = 1.35272
  Prefactor  = 11.1548
  norm       = 0.0001
  norm       = 2.12053
  Prefactor  = 0.0001
  Prefactor  = 6.11416
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 1.95455
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.914303
  Prefactor  = 1.14563
 **********
 **   18 **HESSE 
 **********

 FCN=   5130.518     FROM HESSE     STATUS=OK           728 CALLS     5486 TOTAL
                     EDM=   .33E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     90.172        62.018        .42313E-04   -1.3806    
   2  Prefactor     .10000E-03    25.401        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    24.851        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    23.461        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    11.602        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .32331        55.641        .39551E-02   -1.5594    
   7  Prefactor     4.5392        4.6191        .14996E-03   -1.5282    
   8  Prefactor     .10000E-03    6.6335        .18017E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     42.215        38.539        .61700E-04   -1.4408    
  10  Prefactor     .10000E-03    14.867        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     4.1446        5.5954        .94950E-03   -1.5301    
  12  Prefactor     .10000E-03    45.979        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    20.738        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    12.671        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.4648        12.857        .17767E-02   -1.5466    
  16  norm          .10000E-03    1.9930        .98738E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    1.8457        .94926E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    8.7938        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     9.6064        8.0536        .12930E-03   -1.5088    
  20  Prefactor     .10000E-03    11.026        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     28.332        58.342        .75254E-04   -1.4643    
  22  norm          1.3527        3.2461        .19034E-03   -1.5475    
  23  Prefactor     11.155        19.380        .11993E-03   -1.5040    
  24  norm          .10000E-03    .58173        .90935E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          2.1205        3.5673        .16639E-03   -1.5417    
  26  Prefactor     .10000E-03    1.2600        .77892E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     6.1142        15.305        .81169E-03   -1.5213    
  28  Prefactor     .10000E-03    16.345        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          .10000E-03    17.483        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     1.9545        7.5807        .14834E-02   -1.5428    
  31  Prefactor     .10000E-03    3.8507        .26994E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     .10000E-03    24.607        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Normalizat    .91430        .23225        .23910E-03   -.95959    
  34  Prefactor     1.1456        .25443        .24848E-03   -.88021    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.32119e-08
Minuit parameter uncertainties:
  1  62.0628
  2  6.68823e-05
  3  2.7129e-05
  4  1.59924e-05
  5  1.18174e-05
  6  8.48949
  7  4.61949
  8  5.13468e-06
  9  38.5614
  10  2.86238e-05
  11  5.5961
  12  5.77757e-05
  13  1.33774e-05
  14  3.78465e-05
  15  8.68163
  16  5.21467e-07
  17  2.74859e-07
  18  4.18606e-05
  19  8.05449
  20  3.88626e-06
  21  58.4598
  22  3.24649
  23  19.3912
  24  2.44968e-06
  25  3.56765
  26  1.76698e-06
  27  15.3148
  28  2.1613e-06
  29  6.98407e-06
  30  7.58445
  31  1.32491e-05
  32  5.25728e-06
  33  0.232502
  34  0.254698
Done.

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

Extracting fit parameters...

4FGL J2336.6-4115
   Spectrum: LogParabola
490         norm:  2.121e+00  3.568e+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:  1.146e+00  2.547e-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:  9.143e-01  2.325e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.53
Ra Dec: 354.164 -41.258
Photon Flux Upper Limit: 7.62e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.09e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/56183/likelihoodResults_540000001_540259201_4FGL_J2336.6-4115_daily_bin1160.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) = 5130.49845397
delta logL = 0.0197300884502

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5130.49717724
delta logL = 0.021006821069

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.9615       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5238       1.0000          .0000       5.0000    
     3 'Normalizat'    .90754       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1501       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=   5130.497     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      243 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.9614        3.6719        .14876E-03    .25227E-03
   2  alpha         2.5240        1.5154        .25915E-01    .19640E-04
   3  Normalizat    .90757        .22090        .23988E-03   -.69193E-04
   4  Prefactor     1.1500        .25228        .24806E-03   -.94915E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.96142
  alpha      = 2.52398
  Normalizat = 0.907566
  Prefactor  = 1.15004
 **********
 **   18 **HESSE 
 **********

 FCN=   5130.497     FROM HESSE     STATUS=OK            25 CALLS      268 TOTAL
                     EDM=   .92E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.9614        3.4368        .59505E-05   -1.5428    
   2  alpha         2.5240        1.4301        .10366E-02    .95932E-02
   3  Normalizat    .90757        .22068        .95954E-05   -.96195    
   4  Prefactor     1.1500        .25219        .99224E-05   -.87883    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.16397e-11
Minuit parameter uncertainties:
  1  3.43711
  2  1.52254
  3  0.220896
  4  0.252455
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/56183': 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) = 5130.49717723
delta logL = 0.0210068334172

Extracting fit parameters...

4FGL J2336.6-4115
   Spectrum: LogParabola
490         norm:  1.961e+00  3.437e+00  1.000e-04  1.000e+04 ( 1.000e-12)
491        alpha:  2.524e+00  1.523e+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:  1.150e+00  2.525e-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:  9.076e-01  2.209e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.53
Ra Dec: 354.164 -41.258

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/56183/cmap_HighResolution_540000001_540259201_4FGL_J2336.6-4115_daily_bin1160.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.09e-05', job_status='DONE', photon_flux_upper_limit='7.62e-08', time_completed='2021-09-30 02:05:46.573653', job_id='56183', GAL2='1.15', fit_tolerance='1e-08', EG2='0.91', EG='0.91', time_epoch_completed='1632992746.57', return_code2='0', ts='0.53', comment='SUCCESS', return_code='0', GAL='1.15', dlogl='2.10e-02', ts2='0.57', photon_index_error='0.00', photon_index='2.22' WHERE bin_id='1160' AND source_name='4FGL J2336.6-4115' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 02:05:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0064>
Subject: Job 56183: <4FGL_J2336.6-4115_daily_bin1160> in cluster <slac> Done

Job <4FGL_J2336.6-4115_daily_bin1160> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Thu Sep 30 01:50:45 2021
Job was executed on host(s) <bullet0064>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 01:50:47 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:47 2021
Terminated at Thu Sep 30 02:05:46 2021
Results reported at Thu Sep 30 02:05:46 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2336.6-4115_daily_bin1160 354.164 -41.2579 540000001 540259201 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 :                                   835.06 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             294.38 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   899 sec.
    Turnaround time :                            901 sec.

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

