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


Performing analysis on: 4FGL_J2336.6-4115_daily_bin1166
RA = 354.164, Dec = -41.2579
tmin = 541555201, tmax = 541814401
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='56192', job_status='RUN', time_executed='2021-09-30 01:50:56.978247', time_epoch_executed='1632991856.98' WHERE source_name='4FGL J2336.6-4115' and cadence='daily' and bin_id='1166'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/56192

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/56192/ft1_4FGL_J2336.6-4115_daily_bin1166.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/56192/ft2_4FGL_J2336.6-4115_daily_bin1166.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/56192/ft1_4FGL_J2336.6-4115_daily_bin1166.fits outfile=/scratch/kocevski/56192/ft1_filteredMKT_4FGL_J2336.6-4115_daily_bin1166.fits ra=354.164 dec=-41.2579 rad=12.0 tmin=541555201.0 tmax=541814401.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.62
user 3.40
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/56192/ft2_4FGL_J2336.6-4115_daily_bin1166.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/56192/ft1_filteredMKT_4FGL_J2336.6-4115_daily_bin1166.fits evtable="EVENTS" outfile="/scratch/kocevski/56192/ft1_filtered_4FGL_J2336.6-4115_daily_bin1166.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/56192/ft1_filtered_4FGL_J2336.6-4115_daily_bin1166.fits" evtable="EVENTS" scfile=/scratch/kocevski/56192/ft2_4FGL_J2336.6-4115_daily_bin1166.fits sctable="SC_DATA" outfile=/scratch/kocevski/56192/ltcube_541555201_541814401_4FGL_J2336.6-4115_daily_bin1166.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/56192/ft2_4FGL_J2336.6-4115_daily_bin1166.fits
.....................!
real 11.89
user 11.54
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/56192/ft1_filtered_4FGL_J2336.6-4115_daily_bin1166.fits evtable="EVENTS" scfile=/scratch/kocevski/56192/ft2_4FGL_J2336.6-4115_daily_bin1166.fits sctable="SC_DATA" expcube=/scratch/kocevski/56192/ltcube_541555201_541814401_4FGL_J2336.6-4115_daily_bin1166.fits outfile=/scratch/kocevski/56192/expmap_541555201_541814401_4FGL_J2336.6-4115_daily_bin1166.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/56192/ltcube_541555201_541814401_4FGL_J2336.6-4115_daily_bin1166.fits
.....................!
real 191.49
user 186.07
sys 5.08

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/56192/ft1_filtered_4FGL_J2336.6-4115_daily_bin1166.fits scfile=/scratch/kocevski/56192/ft2_4FGL_J2336.6-4115_daily_bin1166.fits outfile=/scratch/kocevski/56192/cmap_541555201_541814401_4FGL_J2336.6-4115_daily_bin1166.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/56192/ft1_filtered_4FGL_J2336.6-4115_daily_bin1166.fits scfile=/scratch/kocevski/56192/ft2_4FGL_J2336.6-4115_daily_bin1166.fits outfile=/scratch/kocevski/56192/cmap_HighResolution_541555201_541814401_4FGL_J2336.6-4115_daily_bin1166.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/56192/ft1_filtered_4FGL_J2336.6-4115_daily_bin1166.fits evtable="EVENTS" scfile=/scratch/kocevski/56192/ft2_4FGL_J2336.6-4115_daily_bin1166.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/56192/Model_4FGL_J2336.6-4115_daily_bin1166.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/56192/ft1_filtered_4FGL_J2336.6-4115_daily_bin1166.fits.....................!
real 35.37
user 33.87
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .12447E-02   1.0000         .10000E-03   10000.    
     3 'Prefactor '    113.32       1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.6214       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10073E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    6.5311       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    28.342       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10081E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10165E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .21799E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    8.8579       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .12185E-01   1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.3146       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10135E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    116.31       1.0000         .10000E-03   10000.    
    22 'norm      '    6.9026       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    7.8576       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .60022       1.0000         .10000E-03   10000.    
    27 'Prefactor '    17.794       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10078E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    .10020E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    2.9654       1.0000         .10000E-03   10000.    
    32 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    33 'Normalizat'    1.1116       1.0000         .10000E-01   10.000    
    34 'Prefactor '    .95537       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=   4203.332     FROM MIGRAD    STATUS=CONVERGED    962 CALLS     5922 TOTAL
                     EDM=   .27E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    23.730       -.59380E-07** at limit **
   2  Prefactor     .10000E-03    158.04       -.70675E-05** at limit **
   3  Prefactor     113.38        65.202        .17144E-05   -.26629E-04
   4  Prefactor     5.6107        53.126        .36443E-06   -.23731E-05
   5  Prefactor     .10000E-03    10.230       -.62265E-07** at limit **
   6  Prefactor     .10000E-03    2.9221       -.68689E-07** at limit **
   7  Prefactor     6.5308        5.6034        .11101E-06   -.72337E-05
   8  Prefactor     .10000E-03    13.997       -.33677E-06** at limit **
   9  Prefactor     28.348        36.938       -.73941E-07    .22798E-05
  10  Prefactor     .10000E-03    9.5378        .39618E-07** at limit **
  11  Prefactor     .10000E-03    7.2653        .82662E-07** at limit **
  12  Prefactor     .10000E-03    13.614        .27506E-06** at limit **
  13  Prefactor     .10000E-03    471.16       -.71340E-06** at limit **
  14  Prefactor     .10000E-03    16.953        .95386E-07** at limit **
  15  norm          8.8539        15.246        .34126E-06   -.21258E-04
  16  norm          .10000E-03    2.2886        .42687E-09** at limit **
  17  norm          .10000E-03    2.7862       -.38368E-07** at limit **
  18  norm          .10000E-03    11.146        .77856E-06** at limit **
  19  Prefactor     3.3126        4.0909       -.37127E-07    .38639E-05
  20  Prefactor     .10000E-03    16.553       -.31707E-06** at limit **
  21  Prefactor     116.26        82.620       -.29990E-05   -.21758E-04
  22  norm          6.8985        5.6304        .68707E-07   -.63286E-04
  23  Prefactor     .10000E-03    5.6819       -.54819E-07** at limit **
  24  norm          .10000E-03    .27917       -.26233E-07** at limit **
  25  norm          7.8577        6.7031       -.56834E-06    .79061E-04
  26  Prefactor     .60075        2.8620       -.66434E-06   -.36543E-05
  27  Prefactor     17.808        22.872        .88552E-07   -.12364E-04
  28  Prefactor     .10000E-03    18.699        .29348E-06** at limit **
  29  norm          .10000E-03    179.95       -.12612E-05** at limit **
  30  Prefactor     .10000E-03    3.9223        .11042E-06** at limit **
  31  Prefactor     2.9658        6.4349        .21381E-06    .80380E-04
  32  Prefactor     .10000E-03    19.707       -.10515E-06** at limit **
  33  Normalizat    1.1116        .22774       -.27938E-06   -.71646E-04
  34  Prefactor     .95557        .24122        .14612E-07   -.68016E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 113.385
  Prefactor  = 5.61074
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.53077
  Prefactor  = 0.0001
  Prefactor  = 28.348
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 8.85386
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 3.31263
  Prefactor  = 0.0001
  Prefactor  = 116.262
  norm       = 6.89855
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 7.85768
  Prefactor  = 0.600754
  Prefactor  = 17.8084
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 2.96576
  Prefactor  = 0.0001
  Normalizat = 1.11165
  Prefactor  = 0.955573
 **********
 **   18 **HESSE 
 **********

 FCN=   4203.332     FROM HESSE     STATUS=OK           730 CALLS     6652 TOTAL
                     EDM=   .48E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    23.734        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    153.41        .60159E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     113.38        64.579        .37791E-04   -1.3574    
   4  Prefactor     5.6107        53.198        .16943E-03   -1.5234    
   5  Prefactor     .10000E-03    10.233        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    2.9249        .10824E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     6.5308        5.6115        .13705E-03   -1.5197    
   8  Prefactor     .10000E-03    14.009        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     28.348        36.934        .37627E-03   -1.4643    
  10  Prefactor     .10000E-03    9.5399        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    7.3267        .17064E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    13.608        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    480.38        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    17.115        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          8.8539        15.240        .13467E-03   -1.5113    
  16  norm          .10000E-03    2.2890        .95789E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    2.7894        .10564E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    71.558        .40241E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     3.3126        4.0802        .14171E-03   -1.5344    
  20  Prefactor     .10000E-03    16.553        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     116.26        82.820        .18654E-03   -1.3547    
  22  norm          6.8985        5.6211        .12923E-03   -1.5183    
  23  Prefactor     .10000E-03    5.6880        .15086E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    .28122        .33438E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          7.8577        6.7124        .71522E-03   -1.5147    
  26  Prefactor     .60075        2.7472        .20773E-03   -1.5553    
  27  Prefactor     17.808        22.734        .94946E-04   -1.4864    
  28  Prefactor     .10000E-03    18.696        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          .10000E-03    186.38        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    3.9546        .12540E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     2.9658        6.2748        .21660E-03   -1.5364    
  32  Prefactor     .10000E-03    19.714        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Normalizat    1.1116        .27725        .23826E-03   -.89379    
  34  Prefactor     .95557        .29144        .28068E-03   -.94225    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.76163e-11
Minuit parameter uncertainties:
  1  5.3868e-06
  2  9.00406e-05
  3  64.6192
  4  34.5933
  5  1.26591e-06
  6  1.56035e-06
  7  5.61195
  8  1.3298e-05
  9  36.964
  10  1.68299e-07
  11  4.69848e-06
  12  1.63251e-05
  13  0.00177521
  14  9.28691e-07
  15  15.2465
  16  6.72089e-08
  17  5.98606e-07
  18  0.000193187
  19  4.08052
  20  1.67129e-05
  21  82.9028
  22  5.62156
  23  5.06906e-07
  24  2.76745e-08
  25  6.71304
  26  2.56935
  27  22.7453
  28  1.62183e-05
  29  0.000958326
  30  4.95507e-06
  31  6.27616
  32  1.58375e-05
  33  0.277611
  34  0.291923
Done.

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

Extracting fit parameters...

4FGL J2336.6-4115
   Spectrum: LogParabola
490         norm:  7.858e+00  6.713e+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.556e-01  2.919e-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.112e+00  2.776e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.30
Ra Dec: 354.164 -41.258
Photon Index (Fixed Index): 2.22 +/- 0.00
Photon Flux (Fixed Index): 5.14e-08 +/- 4.39e-08
Energy Flux (Fixed Index): 2.08e-05 +/- 1.78e-05

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

Saving results to:
/scratch/kocevski/56192/likelihoodResults_541555201_541814401_4FGL_J2336.6-4115_daily_bin1166.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) = 4203.25711611
delta logL = 0.0751333603039

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4203.25212159
delta logL = 0.0801278818217

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.4069       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9506       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1250       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94604       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=   4203.252     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      253 TOTAL
                     EDM=   .15E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.4083        6.9637        .13826E-03   -.37824E-05
   2  alpha         1.9505        .63856        .14385E-01   -.46158E-05
   3  Normalizat    1.1251        .26045        .23703E-03   -.23982E-05
   4  Prefactor     .94588        .28775        .28191E-03    .68557E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 8.40825
  alpha      = 1.95046
  Normalizat = 1.1251
  Prefactor  = 0.945883
 **********
 **   18 **HESSE 
 **********

 FCN=   4203.252     FROM HESSE     STATUS=OK            25 CALLS      278 TOTAL
                     EDM=   .10E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.4083        6.9626        .55304E-05   -1.5128    
   2  alpha         1.9505        .63835        .28771E-02   -.22163    
   3  Normalizat    1.1251        .26067        .94812E-05   -.88950    
   4  Prefactor     .94588        .28802        .11276E-04   -.94556    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.0494e-13
Minuit parameter uncertainties:
  1  6.96329
  2  0.645872
  3  0.260972
  4  0.288482
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/56192': 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) = 4203.2521214
delta logL = 0.080128068199

Extracting fit parameters...

4FGL J2336.6-4115
   Spectrum: LogParabola
490         norm:  8.408e+00  6.963e+00  1.000e-04  1.000e+04 ( 1.000e-12)
491        alpha:  1.950e+00  6.459e-01  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.459e-01  2.885e-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.125e+00  2.610e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.47
Ra Dec: 354.164 -41.258
Photon Index (Free Index): 1.95 +/- 0.65
Photon Flux (Free Index): 4.12e-08 +/- 4.31e-08
Energy Flux (Free Index): 2.44e-05 +/- 2.27e-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/56192/cmap_HighResolution_541555201_541814401_4FGL_J2336.6-4115_daily_bin1166.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.90e-05', comment='SUCCESS', photon_flux='5.14e-08', energy_flux2='2.44e-05', photon_flux_error='4.39e-08', dlogl='8.01e-02', energy_flux='2.08e-05', photon_flux2='4.12e-08', job_status='DONE', time_completed='2021-09-30 02:04:45.222292', photon_index_error2='0.65', photon_index2='1.95', ts='2.30', fit_tolerance='1e-08', GAL='0.96', photon_index_error='0.00', photon_flux_upper_limit='1.46e-07', energy_flux_error2='2.27e-05', EG='1.11', time_epoch_completed='1632992685.22', return_code='0', job_id='56192', GAL2='0.95', EG2='1.13', return_code2='0', energy_flux_error='1.78e-05', photon_flux_error2='4.31e-08', ts2='2.47', photon_index='2.22' WHERE bin_id='1166' AND source_name='4FGL J2336.6-4115' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 02:04:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0206>
Subject: Job 56192: <4FGL_J2336.6-4115_daily_bin1166> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2336.6-4115_daily_bin1166 354.164 -41.2579 541555201 541814401 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 :                                   814.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             313.41 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   837 sec.
    Turnaround time :                            839 sec.

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

