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

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

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

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

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

number of points = 7401
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2336.6-4115_daily_bin1463
RA = 354.164, Dec = -41.2579
tmin = 618537601, tmax = 618796801
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='58593', job_status='RUN', time_executed='2021-09-30 02:02:02.971835', time_epoch_executed='1632992522.97' WHERE source_name='4FGL J2336.6-4115' and cadence='daily' and bin_id='1463'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/58593

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/58593/ft1_4FGL_J2336.6-4115_daily_bin1463.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/58593/ft2_4FGL_J2336.6-4115_daily_bin1463.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/58593/ft1_4FGL_J2336.6-4115_daily_bin1463.fits outfile=/scratch/kocevski/58593/ft1_filteredMKT_4FGL_J2336.6-4115_daily_bin1463.fits ra=354.164 dec=-41.2579 rad=12.0 tmin=618537601.0 tmax=618796801.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.72
user 3.51
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/58593/ft1_filtered_4FGL_J2336.6-4115_daily_bin1463.fits" evtable="EVENTS" scfile=/scratch/kocevski/58593/ft2_4FGL_J2336.6-4115_daily_bin1463.fits sctable="SC_DATA" outfile=/scratch/kocevski/58593/ltcube_618537601_618796801_4FGL_J2336.6-4115_daily_bin1463.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/58593/ft2_4FGL_J2336.6-4115_daily_bin1463.fits
.....................!
real 11.83
user 11.46
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/58593/ft1_filtered_4FGL_J2336.6-4115_daily_bin1463.fits evtable="EVENTS" scfile=/scratch/kocevski/58593/ft2_4FGL_J2336.6-4115_daily_bin1463.fits sctable="SC_DATA" expcube=/scratch/kocevski/58593/ltcube_618537601_618796801_4FGL_J2336.6-4115_daily_bin1463.fits outfile=/scratch/kocevski/58593/expmap_618537601_618796801_4FGL_J2336.6-4115_daily_bin1463.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/58593/ltcube_618537601_618796801_4FGL_J2336.6-4115_daily_bin1463.fits
.....................!
real 190.47
user 185.11
sys 5.01

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/58593/ft1_filtered_4FGL_J2336.6-4115_daily_bin1463.fits scfile=/scratch/kocevski/58593/ft2_4FGL_J2336.6-4115_daily_bin1463.fits outfile=/scratch/kocevski/58593/cmap_618537601_618796801_4FGL_J2336.6-4115_daily_bin1463.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/58593/ft1_filtered_4FGL_J2336.6-4115_daily_bin1463.fits scfile=/scratch/kocevski/58593/ft2_4FGL_J2336.6-4115_daily_bin1463.fits outfile=/scratch/kocevski/58593/cmap_HighResolution_618537601_618796801_4FGL_J2336.6-4115_daily_bin1463.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/58593/ft1_filtered_4FGL_J2336.6-4115_daily_bin1463.fits evtable="EVENTS" scfile=/scratch/kocevski/58593/ft2_4FGL_J2336.6-4115_daily_bin1463.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/58593/Model_4FGL_J2336.6-4115_daily_bin1463.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/58593/ft1_filtered_4FGL_J2336.6-4115_daily_bin1463.fits.....................!
real 33.37
user 32.09
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.8668       1.0000         .10000E-03   10000.    
     2 'Prefactor '    10.532       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    22.563       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.2591       1.0000         .10000E-03   10000.    
     8 'Prefactor '    64.519       1.0000         .10000E-03   10000.    
     9 'Prefactor '    45.892       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.8034       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10097E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.4751       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    12.036       1.0000         .10000E-03   10000.    
    15 'norm      '    12.625       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10317E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    13.386       1.0000         .10000E-03   10000.    
    19 'Prefactor '    18.269       1.0000         .10000E-03   10000.    
    20 'Prefactor '    131.35       1.0000         .10000E-03   10000.    
    21 'Prefactor '    113.91       1.0000         .10000E-03   10000.    
    22 'norm      '    .10543E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10128E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    32 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    33 'Normalizat'    .96857       1.0000         .10000E-01   10.000    
    34 'Prefactor '    .66321       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=   3651.447     FROM MIGRAD    STATUS=CONVERGED    899 CALLS     4923 TOTAL
                     EDM=   .39E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.8754        53.017       -.28586E-07    .26330E-05
   2  Prefactor     10.531        17.108        .17720E-07    .29751E-05
   3  Prefactor     .10000E-03    13.551       -.17248E-06** at limit **
   4  Prefactor     .10000E-03    14.861       -.27079E-06** at limit **
   5  Prefactor     22.575        29.941       -.14209E-05   -.13946E-04
   6  Prefactor     .10000E-03    6.5060       -.32644E-06** at limit **
   7  Prefactor     3.2596        11.383        .26546E-05    .35136E-04
   8  Prefactor     64.540        51.436       -.16434E-05   -.54967E-05
   9  Prefactor     45.907        62.270       -.67486E-07    .20239E-04
  10  Prefactor     1.7762        89.391        .17618E-05   -.39352E-05
  11  Prefactor     .10000E-03    22.476       -.11037E-05** at limit **
  12  Prefactor     1.5525        313.96        .59533E-05    .29414E-04
  13  Prefactor     .10000E-03    74.415        .82923E-08** at limit **
  14  Prefactor     12.035        17.527        .54159E-06    .67301E-05
  15  norm          12.626        12.481        .24239E-07   -.85390E-05
  16  norm          .10000E-03    3.2261       -.51938E-07** at limit **
  17  norm          .10000E-03    7.0979        .34546E-05** at limit **
  18  norm          13.387        11.002       -.44865E-07   -.65627E-04
  19  Prefactor     18.268        9.4392        .29932E-06   -.89881E-05
  20  Prefactor     131.42        53.407       -.14938E-05   -.27783E-03
  21  Prefactor     113.92        84.300        .65035E-06   -.14335E-04
  22  norm          .10000E-03    6.5528        .50664E-05** at limit **
  23  Prefactor     .10000E-03    19.513        .10167E-06** at limit **
  24  norm          .10000E-03    .48537       -.10974E-06** at limit **
  25  norm          .10000E-03    4.8257        .26798E-05** at limit **
  26  Prefactor     .10000E-03    1.6757       -.21609E-06** at limit **
  27  Prefactor     .10000E-03    46.580       -.12330E-05** at limit **
  28  Prefactor     .10000E-03    20.149        .22861E-07** at limit **
  29  norm          .10000E-03    12.845        .53334E-07** at limit **
  30  Prefactor     .10000E-03    5.4318       -.54867E-06** at limit **
  31  Prefactor     .10000E-03    2.4226       -.12754E-06** at limit **
  32  Prefactor     .10000E-03    42.882       -.81032E-06** at limit **
  33  Normalizat    .96846        .23034       -.39159E-05    .19742E-04
  34  Prefactor     .66333        .24028        .52209E-05   -.20455E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.87544
  Prefactor  = 10.5311
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 22.5751
  Prefactor  = 0.0001
  Prefactor  = 3.25962
  Prefactor  = 64.5403
  Prefactor  = 45.9066
  Prefactor  = 1.77618
  Prefactor  = 0.0001
  Prefactor  = 1.5525
  Prefactor  = 0.000100001
  Prefactor  = 12.0354
  norm       = 12.6259
  norm       = 0.0001
  norm       = 0.0001
  norm       = 13.3874
  Prefactor  = 18.268
  Prefactor  = 131.421
  Prefactor  = 113.922
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.968456
  Prefactor  = 0.663326
 **********
 **   18 **HESSE 
 **********

 FCN=   3651.447     FROM HESSE     STATUS=OK           724 CALLS     5647 TOTAL
                     EDM=   .98E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.8754        52.959        .14296E-03   -1.5147    
   2  Prefactor     10.531        17.102        .12346E-03   -1.5059    
   3  Prefactor     .10000E-03    13.556        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    14.867        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     22.575        29.544        .84325E-04   -1.4757    
   6  Prefactor     .10000E-03    6.5884        .15052E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     3.2596        10.977        .22433E-03   -1.5347    
   8  Prefactor     64.540        50.304        .49962E-04   -1.4099    
   9  Prefactor     45.907        61.962        .59186E-04   -1.4352    
  10  Prefactor     1.7762        89.298        .31124E-03   -1.5441    
  11  Prefactor     .10000E-03    23.319        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.5525        306.37        .35362E-03   -1.5459    
  13  Prefactor     .10000E-03    74.537        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     12.035        17.509        .11547E-03   -1.5014    
  15  norm          12.626        12.480        .11274E-03   -1.4997    
  16  norm          .10000E-03    3.2368        .10599E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    7.2225        .15683E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          13.387        10.996        .10948E-03   -1.4976    
  19  Prefactor     18.268        9.4285        .93706E-04   -1.4853    
  20  Prefactor     131.42        54.459        .17566E-03   -1.3410    
  21  Prefactor     113.92        84.697        .37694E-04   -1.3569    
  22  norm          .10000E-03    6.6806        .15082E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    19.580        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    .49208        .41016E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    4.9112        .12942E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    1.6953        .76357E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    47.643        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    20.150        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          .10000E-03    12.844        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    5.5390        .13744E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .10000E-03    2.4438        .91804E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     .10000E-03    42.989        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Normalizat    .96846        .27196        .22101E-03   -.94095    
  34  Prefactor     .66333        .28003        .28241E-03   -1.0498    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.78726e-10
Minuit parameter uncertainties:
  1  40.8968
  2  17.1102
  3  1.80893e-05
  4  4.36206e-05
  5  29.5631
  6  3.79275e-06
  7  10.9835
  8  50.337
  9  62.0493
  10  25.2273
  11  6.83106e-05
  12  43.8463
  13  0.000424635
  14  17.5165
  15  12.4826
  16  3.39623e-06
  17  1.53465e-05
  18  10.9975
  19  9.4293
  20  54.48
  21  84.7873
  22  3.24197e-05
  23  3.05295e-05
  24  8.89342e-07
  25  1.48449e-05
  26  2.43331e-07
  27  1.48154e-05
  28  3.96969e-05
  29  3.14921e-05
  30  6.79682e-07
  31  7.82369e-07
  32  0.000154598
  33  0.272344
  34  0.280623
Done.

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

Extracting fit parameters...

4FGL J2336.6-4115
   Spectrum: LogParabola
490         norm:  1.000e-04  1.484e-05  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:  6.633e-01  2.806e-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.685e-01  2.723e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/58593/likelihoodResults_618537601_618796801_4FGL_J2336.6-4115_daily_bin1463.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) = 3651.44768601
delta logL = -0.000970223364675

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3651.44671591
delta logL = -1.20935510495e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2269       1.0000          .0000       5.0000    
     3 'Normalizat'    .96858       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .66322       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=   3651.447     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      233 TOTAL
                     EDM=   .46E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    9.2081        .42756E-01** at limit **
   2  alpha         2.4297        2.7361        .16586        .39549E-07
   3  Normalizat    .96845        .83605E-02    .22102E-03   -.23492E-03
   4  Prefactor     .66333        .90256E-02    .28241E-03   -.19540E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100001
  alpha      = 2.42974
  Normalizat = 0.96845
  Prefactor  = 0.663332
 **********
 **   18 **HESSE 
 **********

 FCN=   3651.447     FROM HESSE     STATUS=OK            25 CALLS      258 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    5.2014        .21145E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.4297        3.6281        .66346E-02   -.28109E-01
   3  Normalizat    .96845        .25532        .44203E-04   -.94095    
   4  Prefactor     .66333        .27542        .11296E-04   -1.0498    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.44651e-10
Minuit parameter uncertainties:
  1  0.000120643
  2  222.743
  3  0.255644
  4  0.275986
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/58593': 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) = 3651.44671533
delta logL = 4.56302586826e-07

Extracting fit parameters...

4FGL J2336.6-4115
   Spectrum: LogParabola
490         norm:  1.000e-04  1.206e-04  1.000e-04  1.000e+04 ( 1.000e-12)
491        alpha:  2.430e+00  2.227e+02  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:  6.633e-01  2.760e-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.684e-01  2.556e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/58593/cmap_HighResolution_618537601_618796801_4FGL_J2336.6-4115_daily_bin1463.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.34e-05', job_status='DONE', photon_flux_upper_limit='8.24e-08', time_completed='2021-09-30 02:14:02.785444', job_id='58593', GAL2='0.66', fit_tolerance='1e-08', EG2='0.97', EG='0.97', time_epoch_completed='1632993242.79', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.66', dlogl='4.56e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.22' WHERE bin_id='1463' AND source_name='4FGL J2336.6-4115' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 02:14:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0202>
Subject: Job 58593: <4FGL_J2336.6-4115_daily_bin1463> in cluster <slac> Done

Job <4FGL_J2336.6-4115_daily_bin1463> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Thu Sep 30 02:00:20 2021
Job was executed on host(s) <bullet0202>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 02:00:21 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep 30 02:00:21 2021
Terminated at Thu Sep 30 02:14:03 2021
Results reported at Thu Sep 30 02:14:03 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2336.6-4115_daily_bin1463 354.164 -41.2579 618537601 618796801 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 :                                   698.19 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             266.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   822 sec.
    Turnaround time :                            823 sec.

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

