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


Performing analysis on: 4FGL_J2336.6-4115_daily_bin1054
RA = 354.164, Dec = -41.2579
tmin = 512524801, tmax = 512784001
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='56018', job_status='RUN', time_executed='2021-09-30 01:50:41.398773', time_epoch_executed='1632991841.4' WHERE source_name='4FGL J2336.6-4115' and cadence='daily' and bin_id='1054'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/56018

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/56018/ft1_4FGL_J2336.6-4115_daily_bin1054.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/56018/ft2_4FGL_J2336.6-4115_daily_bin1054.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/56018/ft1_4FGL_J2336.6-4115_daily_bin1054.fits outfile=/scratch/kocevski/56018/ft1_filteredMKT_4FGL_J2336.6-4115_daily_bin1054.fits ra=354.164 dec=-41.2579 rad=12.0 tmin=512524801.0 tmax=512784001.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.64
user 3.39
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/56018/ft1_filtered_4FGL_J2336.6-4115_daily_bin1054.fits" evtable="EVENTS" scfile=/scratch/kocevski/56018/ft2_4FGL_J2336.6-4115_daily_bin1054.fits sctable="SC_DATA" outfile=/scratch/kocevski/56018/ltcube_512524801_512784001_4FGL_J2336.6-4115_daily_bin1054.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/56018/ft2_4FGL_J2336.6-4115_daily_bin1054.fits
.....................!
real 11.78
user 11.42
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/56018/ft1_filtered_4FGL_J2336.6-4115_daily_bin1054.fits evtable="EVENTS" scfile=/scratch/kocevski/56018/ft2_4FGL_J2336.6-4115_daily_bin1054.fits sctable="SC_DATA" expcube=/scratch/kocevski/56018/ltcube_512524801_512784001_4FGL_J2336.6-4115_daily_bin1054.fits outfile=/scratch/kocevski/56018/expmap_512524801_512784001_4FGL_J2336.6-4115_daily_bin1054.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/56018/ltcube_512524801_512784001_4FGL_J2336.6-4115_daily_bin1054.fits
.....................!
real 191.07
user 185.67
sys 5.03

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/56018/ft1_filtered_4FGL_J2336.6-4115_daily_bin1054.fits scfile=/scratch/kocevski/56018/ft2_4FGL_J2336.6-4115_daily_bin1054.fits outfile=/scratch/kocevski/56018/cmap_512524801_512784001_4FGL_J2336.6-4115_daily_bin1054.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.52
user 0.35
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/56018/ft1_filtered_4FGL_J2336.6-4115_daily_bin1054.fits scfile=/scratch/kocevski/56018/ft2_4FGL_J2336.6-4115_daily_bin1054.fits outfile=/scratch/kocevski/56018/cmap_HighResolution_512524801_512784001_4FGL_J2336.6-4115_daily_bin1054.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.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/56018/ft1_filtered_4FGL_J2336.6-4115_daily_bin1054.fits evtable="EVENTS" scfile=/scratch/kocevski/56018/ft2_4FGL_J2336.6-4115_daily_bin1054.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/56018/Model_4FGL_J2336.6-4115_daily_bin1054.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/56018/ft1_filtered_4FGL_J2336.6-4115_daily_bin1054.fits....................!
real 39.70
user 38.32
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10169E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    34.113       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    9.4932       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.1754       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    55.584       1.0000         .10000E-03   10000.    
    14 'Prefactor '    11.137       1.0000         .10000E-03   10000.    
    15 'norm      '    3.2216       1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    5.0838       1.0000         .10000E-03   10000.    
    18 'norm      '    .10074E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10601E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    10.130       1.0000         .10000E-03   10000.    
    23 'Prefactor '    30.617       1.0000         .10000E-03   10000.    
    24 'norm      '    1.1670       1.0000         .10000E-03   10000.    
    25 'norm      '    1.7837       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    21.467       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    56.557       1.0000         .10000E-03   10000.    
    30 'Prefactor '    16.477       1.0000         .10000E-03   10000.    
    31 'Prefactor '    5.3020       1.0000         .10000E-03   10000.    
    32 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    33 'Normalizat'    1.0766       1.0000         .10000E-01   10.000    
    34 'Prefactor '    .72631       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=   5187.320     FROM MIGRAD    STATUS=CONVERGED    908 CALLS     4766 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    13.569       -.65937E-06** at limit **
   2  Prefactor     .10000E-03    10.958        .53416E-06** at limit **
   3  Prefactor     34.079        40.138       -.80487E-05   -.55718E-03
   4  Prefactor     .10000E-03    76.944       -.18092E-05** at limit **
   5  Prefactor     .10000E-03    7.6639       -.26042E-06** at limit **
   6  Prefactor     9.4931        9.1766        .34734E-06   -.78879E-05
   7  Prefactor     .10000E-03    1.7770        .38087E-07** at limit **
   8  Prefactor     .10000E-03    7.7862        .32983E-06** at limit **
   9  Prefactor     .10000E-03    13.762       -.39941E-06** at limit **
  10  Prefactor     .10000E-03    11.198        .47571E-07** at limit **
  11  Prefactor     3.1753        3.2063       -.59589E-07    .25898E-04
  12  Prefactor     .10000E-03    17.221        .44042E-06** at limit **
  13  Prefactor     55.581        51.579       -.71169E-06   -.46106E-04
  14  Prefactor     11.137        15.305       -.64966E-07    .22624E-04
  15  norm          3.2223        7.1973        .54456E-05   -.99572E-03
  16  norm          .10000E-03    2.8788        .35193E-07** at limit **
  17  norm          5.0842        4.8943       -.64398E-07    .11536E-04
  18  norm          .10000E-03    14.635        .14680E-05** at limit **
  19  Prefactor     .10000E-03    11.453       -.89817E-06** at limit **
  20  Prefactor     .10000E-03    14.731        .89917E-06** at limit **
  21  Prefactor     .10000E-03    61.444        .36117E-05** at limit **
  22  norm          10.129        4.9651        .16237E-06    .30405E-03
  23  Prefactor     30.625        18.302       -.42033E-06    .80701E-04
  24  norm          1.1666        1.1383        .64639E-07    .20601E-03
  25  norm          1.7844        3.8984        .10726E-06   -.23027E-03
  26  Prefactor     .10000E-03    1.1711        .30774E-07** at limit **
  27  Prefactor     21.466        20.861        .60819E-06    .16617E-05
  28  Prefactor     .10000E-03    18.101       -.13563E-05** at limit **
  29  norm          56.557        47.054        .42497E-06   -.24709E-05
  30  Prefactor     16.469        9.0339       -.55249E-07    .63351E-04
  31  Prefactor     5.3012        4.1492       -.44304E-06   -.64696E-03
  32  Prefactor     .10000E-03    52.782       -.16223E-05** at limit **
  33  Normalizat    1.0770        .19225        .11951E-05   -.73102E-04
  34  Prefactor     .72587        .20486       -.10534E-05    .34198E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 34.0794
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 9.49307
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.1753
  Prefactor  = 0.0001
  Prefactor  = 55.5811
  Prefactor  = 11.1368
  norm       = 3.22228
  norm       = 0.0001
  norm       = 5.08416
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  norm       = 10.129
  Prefactor  = 30.6251
  norm       = 1.16663
  norm       = 1.78436
  Prefactor  = 0.0001
  Prefactor  = 21.4662
  Prefactor  = 0.000100001
  norm       = 56.5574
  Prefactor  = 16.469
  Prefactor  = 5.30117
  Prefactor  = 0.000100001
  Normalizat = 1.07703
  Prefactor  = 0.725867
 **********
 **   18 **HESSE 
 **********

 FCN=   5187.320     FROM HESSE     STATUS=OK           726 CALLS     5492 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    13.583        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    11.016        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     34.079        43.183        .68611E-04   -1.4540    
   4  Prefactor     .10000E-03    77.762        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    7.6693        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     9.4931        9.1830        .13007E-03   -1.5092    
   7  Prefactor     .10000E-03    1.7843        .93750E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    7.7938        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    13.770        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    11.224        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     3.1753        3.2139        .12631E-03   -1.5352    
  12  Prefactor     .10000E-03    17.235        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     55.581        51.638        .53804E-04   -1.4216    
  14  Prefactor     11.137        15.263        .12005E-03   -1.5040    
  15  norm          3.2223        7.8561        .11285E-02   -1.5349    
  16  norm          .10000E-03    2.8856        .11929E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          5.0842        4.9026        .14667E-03   -1.5257    
  18  norm          .10000E-03    15.123        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    11.612        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    14.765        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    61.965        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          10.129        4.9628        .10100E-03   -1.5071    
  23  Prefactor     30.625        18.051        .72410E-04   -1.4601    
  24  norm          1.1666        1.0989        .68846E-04   -1.5492    
  25  norm          1.7844        3.8730        .19579E-03   -1.5441    
  26  Prefactor     .10000E-03    1.1786        .76063E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     21.466        20.852        .86448E-04   -1.4781    
  28  Prefactor     .10000E-03    18.158        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          56.557        47.065        .53342E-04   -1.4202    
  30  Prefactor     16.469        9.0919        .98669E-04   -1.4896    
  31  Prefactor     5.3012        4.1712        .12401E-03   -1.5247    
  32  Prefactor     .10000E-03    52.976        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Normalizat    1.0770        .23189        .21970E-03   -.90493    
  34  Prefactor     .72587        .24558        .29140E-03   -1.0252    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.14064e-09
Minuit parameter uncertainties:
  1  9.25263e-05
  2  0.000131452
  3  43.2231
  4  0.000653141
  5  2.86145e-05
  6  9.18439
  7  4.26848e-07
  8  3.08968e-05
  9  5.84509e-05
  10  3.11554e-06
  11  3.2141
  12  6.029e-05
  13  51.6799
  14  15.2688
  15  7.85859
  16  8.12396e-07
  17  4.903
  18  0.000112684
  19  9.72406e-05
  20  0.000105865
  21  0.000916799
  22  4.96301
  23  18.0542
  24  1.09891
  25  3.8735
  26  5.28608e-06
  27  20.8589
  28  0.000217369
  29  47.0961
  30  9.09271
  31  4.17139
  32  0.00046669
  33  0.232112
  34  0.24595
Done.

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

Extracting fit parameters...

4FGL J2336.6-4115
   Spectrum: LogParabola
490         norm:  1.784e+00  3.873e+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:  7.259e-01  2.459e-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.077e+00  2.321e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/56018/likelihoodResults_512524801_512784001_4FGL_J2336.6-4115_daily_bin1054.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) = 5187.31448224
delta logL = 0.00585215196952

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5187.31376744
delta logL = 0.00656694765166

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.9275       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0738       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0787       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .72438       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=   5187.314     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      273 TOTAL
                     EDM=   .51E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.9298        4.1340        .20032E-03   -.48297E-04
   2  alpha         2.0746        1.1870        .28018E-01    .43754E-04
   3  Normalizat    1.0787        .21657        .21955E-03   -.22474E-04
   4  Prefactor     .72436        .24144        .29167E-03   -.36250E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.92981
  alpha      = 2.07457
  Normalizat = 1.07871
  Prefactor  = 0.724356
 **********
 **   18 **HESSE 
 **********

 FCN=   5187.314     FROM HESSE     STATUS=OK            25 CALLS      298 TOTAL
                     EDM=   .54E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.9298        4.0689        .80128E-05   -1.5430    
   2  alpha         2.0746        1.1705        .56036E-02   -.17100    
   3  Normalizat    1.0787        .21676        .87819E-05   -.90438    
   4  Prefactor     .72436        .24164        .11667E-04   -1.0258    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.3656e-12
Minuit parameter uncertainties:
  1  4.06946
  2  1.21976
  3  0.216938
  4  0.241993
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/56018': 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) = 5187.31376699
delta logL = 0.00656739670012

Extracting fit parameters...

4FGL J2336.6-4115
   Spectrum: LogParabola
490         norm:  1.930e+00  4.069e+00  1.000e-04  1.000e+04 ( 1.000e-12)
491        alpha:  2.075e+00  1.220e+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:  7.244e-01  2.420e-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.079e+00  2.169e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.27
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/56018/cmap_HighResolution_512524801_512784001_4FGL_J2336.6-4115_daily_bin1054.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.01e-05', job_status='DONE', photon_flux_upper_limit='7.44e-08', time_completed='2021-09-30 02:05:05.317395', job_id='56018', GAL2='0.72', fit_tolerance='1e-08', EG2='1.08', EG='1.08', time_epoch_completed='1632992705.32', return_code2='0', ts='0.27', comment='SUCCESS', return_code='0', GAL='0.73', dlogl='6.57e-03', ts2='0.28', photon_index_error='0.00', photon_index='2.22' WHERE bin_id='1054' AND source_name='4FGL J2336.6-4115' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 02:05:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0084>
Subject: Job 56018: <4FGL_J2336.6-4115_daily_bin1054> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2336.6-4115_daily_bin1054 354.164 -41.2579 512524801 512784001 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 :                                   859.12 sec.
    Max Memory :                                 1161 MB
    Average Memory :                             331.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   874 sec.
    Turnaround time :                            877 sec.

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

