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


Performing analysis on: 4FGL_J2336.6-4115_daily_bin1570
RA = 354.164, Dec = -41.2579
tmin = 646272001, tmax = 646531201
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='58772', job_status='RUN', time_executed='2021-09-30 02:01:41.756283', time_epoch_executed='1632992501.76' WHERE source_name='4FGL J2336.6-4115' and cadence='daily' and bin_id='1570'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/58772

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/58772/ft1_4FGL_J2336.6-4115_daily_bin1570.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/58772/ft2_4FGL_J2336.6-4115_daily_bin1570.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/58772/ft1_4FGL_J2336.6-4115_daily_bin1570.fits outfile=/scratch/kocevski/58772/ft1_filteredMKT_4FGL_J2336.6-4115_daily_bin1570.fits ra=354.164 dec=-41.2579 rad=12.0 tmin=646272001.0 tmax=646531201.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 4.13
user 3.88
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/58772/ft1_filtered_4FGL_J2336.6-4115_daily_bin1570.fits" evtable="EVENTS" scfile=/scratch/kocevski/58772/ft2_4FGL_J2336.6-4115_daily_bin1570.fits sctable="SC_DATA" outfile=/scratch/kocevski/58772/ltcube_646272001_646531201_4FGL_J2336.6-4115_daily_bin1570.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/58772/ft2_4FGL_J2336.6-4115_daily_bin1570.fits
.....................!
real 13.05
user 12.70
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/58772/ft1_filtered_4FGL_J2336.6-4115_daily_bin1570.fits evtable="EVENTS" scfile=/scratch/kocevski/58772/ft2_4FGL_J2336.6-4115_daily_bin1570.fits sctable="SC_DATA" expcube=/scratch/kocevski/58772/ltcube_646272001_646531201_4FGL_J2336.6-4115_daily_bin1570.fits outfile=/scratch/kocevski/58772/expmap_646272001_646531201_4FGL_J2336.6-4115_daily_bin1570.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/58772/ltcube_646272001_646531201_4FGL_J2336.6-4115_daily_bin1570.fits
.....................!
real 190.34
user 184.95
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/58772/ft1_filtered_4FGL_J2336.6-4115_daily_bin1570.fits scfile=/scratch/kocevski/58772/ft2_4FGL_J2336.6-4115_daily_bin1570.fits outfile=/scratch/kocevski/58772/cmap_646272001_646531201_4FGL_J2336.6-4115_daily_bin1570.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/58772/ft1_filtered_4FGL_J2336.6-4115_daily_bin1570.fits scfile=/scratch/kocevski/58772/ft2_4FGL_J2336.6-4115_daily_bin1570.fits outfile=/scratch/kocevski/58772/cmap_HighResolution_646272001_646531201_4FGL_J2336.6-4115_daily_bin1570.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.55
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/58772/ft1_filtered_4FGL_J2336.6-4115_daily_bin1570.fits evtable="EVENTS" scfile=/scratch/kocevski/58772/ft2_4FGL_J2336.6-4115_daily_bin1570.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/58772/Model_4FGL_J2336.6-4115_daily_bin1570.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/58772/ft1_filtered_4FGL_J2336.6-4115_daily_bin1570.fits.....................!
real 34.95
user 33.67
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    6.9191       1.0000         .10000E-03   10000.    
     3 'Prefactor '    72.097       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10074E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    16.798       1.0000         .10000E-03   10000.    
     8 'Prefactor '    55.935       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    11.048       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10153E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    26.402       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .24559       1.0000         .10000E-03   10000.    
    15 'norm      '    .10557E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .67475       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    21.607       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    4.6515       1.0000         .10000E-03   10000.    
    22 'norm      '    3.1110       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      '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    3.8024       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    37.508       1.0000         .10000E-03   10000.    
    29 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    3.1524       1.0000         .10000E-03   10000.    
    31 'Prefactor '    5.3188       1.0000         .10000E-03   10000.    
    32 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    33 'Normalizat'    1.3292       1.0000         .10000E-01   10.000    
    34 'Prefactor '    .41902       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=   4100.867     FROM MIGRAD    STATUS=CONVERGED    909 CALLS     4803 TOTAL
                     EDM=   .36E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    97.517        .52720E-04** at limit **
   2  Prefactor     6.9190        25.012       -.44878E-05   -.26488E-04
   3  Prefactor     72.119        54.438        .16369E-04    .34625E-04
   4  Prefactor     .10000E-03    10.156       -.38931E-05** at limit **
   5  Prefactor     .10000E-03    26.270        .34224E-05** at limit **
   6  Prefactor     .10000E-03    12.654       -.29297E-05** at limit **
   7  Prefactor     16.796        9.1340       -.16211E-05   -.37995E-04
   8  Prefactor     55.948        39.306        .70324E-05   -.12168E-04
   9  Prefactor     .10000E-03    25.324        .89400E-05** at limit **
  10  Prefactor     11.046        28.213       -.17694E-05   -.90471E-05
  11  Prefactor     .10000E-03    3.7650       -.40386E-07** at limit **
  12  Prefactor     .10000E-03    118.14       -.57979E-04** at limit **
  13  Prefactor     26.396        33.811       -.35997E-05    .91733E-05
  14  Prefactor     .24833        11.233       -.68749E-06   -.32302E-04
  15  norm          .10000E-03    37.351        .75041E-05** at limit **
  16  norm          .66993        10.505       -.16078E-05   -.15573E-03
  17  norm          .10000E-03    2.6420       -.11484E-07** at limit **
  18  norm          .10000E-03    2.8244        .16439E-06** at limit **
  19  Prefactor     21.611        10.049       -.56415E-07    .28802E-03
  20  Prefactor     .10000E-03    30.441       -.10200E-04** at limit **
  21  Prefactor     4.6209        178.99       -.98201E-04    .27217E-05
  22  norm          3.1109        4.3197       -.19660E-06   -.11643E-03
  23  Prefactor     .10000E-03    6.0651       -.14733E-07** at limit **
  24  norm          .10000E-03    .31844       -.45334E-08** at limit **
  25  norm          .10000E-03    1.6577       -.28869E-08** at limit **
  26  Prefactor     3.8023        3.3865       -.74989E-06   -.52875E-04
  27  Prefactor     .10000E-03    10.557        .53367E-05** at limit **
  28  Prefactor     37.514        38.431        .49764E-05    .14716E-04
  29  norm          .10000E-03    33.220       -.96176E-05** at limit **
  30  Prefactor     3.1522        5.2619       -.69483E-06   -.21836E-03
  31  Prefactor     5.3178        7.2433       -.12780E-05   -.30283E-03
  32  Prefactor     .10000E-03    27.526       -.23523E-05** at limit **
  33  Normalizat    1.3292        .22989        .33666E-05    .12906E-03
  34  Prefactor     .41906        .23198       -.94758E-06    .17761E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 6.91904
  Prefactor  = 72.1186
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 16.7955
  Prefactor  = 55.9476
  Prefactor  = 0.0001
  Prefactor  = 11.0457
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 26.3956
  Prefactor  = 0.248335
  norm       = 0.0001
  norm       = 0.66993
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 21.6114
  Prefactor  = 0.0001
  Prefactor  = 4.62088
  norm       = 3.11086
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 3.80225
  Prefactor  = 0.0001
  Prefactor  = 37.5144
  norm       = 0.0001
  Prefactor  = 3.1522
  Prefactor  = 5.31776
  Prefactor  = 0.0001
  Normalizat = 1.32917
  Prefactor  = 0.419058
 **********
 **   18 **HESSE 
 **********

 FCN=   4100.867     FROM HESSE     STATUS=OK           728 CALLS     5531 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    97.515        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     6.9190        24.817        .15252E-03   -1.5182    
   3  Prefactor     72.119        54.537        .47281E-04   -1.4007    
   4  Prefactor     .10000E-03    10.157        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    26.304        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    12.839        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     16.796        9.1593        .97722E-04   -1.4888    
   8  Prefactor     55.948        39.332        .53636E-04   -1.4211    
   9  Prefactor     .10000E-03    25.329        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     11.046        28.215        .12053E-03   -1.5043    
  11  Prefactor     .10000E-03    3.7787        .12134E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    120.24        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     26.396        33.812        .77964E-04   -1.4680    
  14  Prefactor     .24833        172.90        .40380E-02   -1.5608    
  15  norm          .10000E-03    38.416        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .66993        26.932        .36665E-02   -1.5544    
  17  norm          .10000E-03    2.6444        .10157E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    2.8272        .10511E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     21.611        10.047        .86169E-04   -1.4778    
  20  Prefactor     .10000E-03    30.502        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     4.6209        182.65        .18661E-03   -1.5278    
  22  norm          3.1109        4.3028        .14957E-03   -1.5355    
  23  Prefactor     .10000E-03    6.0716        .15398E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    .32072        .35255E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    1.6611        .80477E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     3.8023        3.3843        .10673E-03   -1.5318    
  27  Prefactor     .10000E-03    10.562        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     37.514        38.435        .65442E-04   -1.4482    
  29  norm          .10000E-03    33.269        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     3.1522        5.2554        .18272E-03   -1.5353    
  31  Prefactor     5.3178        7.2264        .17192E-03   -1.5247    
  32  Prefactor     .10000E-03    27.564        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Normalizat    1.3292        .25708        .20155E-03   -.82700    
  34  Prefactor     .41906        .25512        .36015E-03   -1.1585    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.52779e-08
Minuit parameter uncertainties:
  1  0.000334751
  2  24.8537
  3  54.5749
  4  1.14621e-06
  5  6.42753e-05
  6  0.000171572
  7  9.16007
  8  39.35
  9  4.95029e-06
  10  28.2493
  11  6.69718e-06
  12  0.0012603
  13  33.8364
  14  13.1409
  15  0.000244261
  16  8.49872
  17  8.23841e-08
  18  2.91031e-05
  19  10.0475
  20  4.82664e-06
  21  58.2941
  22  4.30324
  23  7.4962e-06
  24  7.37551e-07
  25  1.28675e-06
  26  3.38452
  27  4.07499e-05
  28  38.4609
  29  7.57439e-05
  30  5.25613
  31  7.22755
  32  1.2194e-05
  33  0.257326
  34  0.255814
Done.

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

Extracting fit parameters...

4FGL J2336.6-4115
   Spectrum: LogParabola
490         norm:  1.000e-04  1.287e-06  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:  4.191e-01  2.558e-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.329e+00  2.573e-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: 5.53e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.24e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/58772/likelihoodResults_646272001_646531201_4FGL_J2336.6-4115_daily_bin1570.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) = 4100.86953727
delta logL = -0.00272275490079

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4100.86681452
delta logL = -1.18398020277e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2157       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3292       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .41905       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=   4100.867     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      226 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10002E-03    2.8024        .80480E-03** at limit **
   2  alpha         2.1969        3.4914        .16597        .15065E-05
   3  Normalizat    1.3292        .23607        .20155E-03   -.24255E-05
   4  Prefactor     .41905        .24875        .36015E-03    .18624E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100018
  alpha      = 2.19685
  Normalizat = 1.32918
  Prefactor  = 0.419055
 **********
 **   18 **HESSE 
 **********

 FCN=   4100.867     FROM HESSE     STATUS=OK            23 CALLS      249 TOTAL
                     EDM=   .24E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10002E-03    1.6625        .16096E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.1969        2.5329        .66389E-02   -.12156    
   3  Normalizat    1.3292        .23623        .80618E-05   -.82700    
   4  Prefactor     .41905        .24891        .14406E-04   -1.1585    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.44342e-08
Minuit parameter uncertainties:
  1  0.000347806
  2  194.363
  3  0.236422
  4  0.24956
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/58772': 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) = 4100.8668145
delta logL = 1.16997398436e-08

Extracting fit parameters...

4FGL J2336.6-4115
   Spectrum: LogParabola
490         norm:  1.000e-04  3.478e-04  1.000e-04  1.000e+04 ( 1.000e-12)
491        alpha:  2.197e+00  1.944e+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:  4.191e-01  2.496e-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.329e+00  2.364e-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/58772/cmap_HighResolution_646272001_646531201_4FGL_J2336.6-4115_daily_bin1570.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.24e-05', job_status='DONE', photon_flux_upper_limit='5.53e-08', time_completed='2021-09-30 02:14:15.083219', job_id='58772', GAL2='0.42', fit_tolerance='1e-08', EG2='1.33', EG='1.33', time_epoch_completed='1632993255.08', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.42', dlogl='1.17e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.22' WHERE bin_id='1570' AND source_name='4FGL J2336.6-4115' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 02:14:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0054>
Subject: Job 58772: <4FGL_J2336.6-4115_daily_bin1570> in cluster <slac> Done

Job <4FGL_J2336.6-4115_daily_bin1570> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Thu Sep 30 02:00:38 2021
Job was executed on host(s) <bullet0054>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 02:00:40 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:40 2021
Terminated at Thu Sep 30 02:14:15 2021
Results reported at Thu Sep 30 02:14:15 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2336.6-4115_daily_bin1570 354.164 -41.2579 646272001 646531201 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 :                                   747.17 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             266.56 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   815 sec.
    Turnaround time :                            817 sec.

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

