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


Performing analysis on: 4FGL_J2336.6-4115_daily_bin1037
RA = 354.164, Dec = -41.2579
tmin = 508118401, tmax = 508377601
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='55992', job_status='RUN', time_executed='2021-09-30 01:51:47.506563', time_epoch_executed='1632991907.51' WHERE source_name='4FGL J2336.6-4115' and cadence='daily' and bin_id='1037'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/55992

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/55992/ft1_4FGL_J2336.6-4115_daily_bin1037.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/55992/ft2_4FGL_J2336.6-4115_daily_bin1037.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/55992/ft1_4FGL_J2336.6-4115_daily_bin1037.fits outfile=/scratch/kocevski/55992/ft1_filteredMKT_4FGL_J2336.6-4115_daily_bin1037.fits ra=354.164 dec=-41.2579 rad=12.0 tmin=508118401.0 tmax=508377601.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.65
user 3.44
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/55992/ft1_filtered_4FGL_J2336.6-4115_daily_bin1037.fits" evtable="EVENTS" scfile=/scratch/kocevski/55992/ft2_4FGL_J2336.6-4115_daily_bin1037.fits sctable="SC_DATA" outfile=/scratch/kocevski/55992/ltcube_508118401_508377601_4FGL_J2336.6-4115_daily_bin1037.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/55992/ft2_4FGL_J2336.6-4115_daily_bin1037.fits
.....................!
real 11.85
user 11.49
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/55992/ft1_filtered_4FGL_J2336.6-4115_daily_bin1037.fits evtable="EVENTS" scfile=/scratch/kocevski/55992/ft2_4FGL_J2336.6-4115_daily_bin1037.fits sctable="SC_DATA" expcube=/scratch/kocevski/55992/ltcube_508118401_508377601_4FGL_J2336.6-4115_daily_bin1037.fits outfile=/scratch/kocevski/55992/expmap_508118401_508377601_4FGL_J2336.6-4115_daily_bin1037.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/55992/ltcube_508118401_508377601_4FGL_J2336.6-4115_daily_bin1037.fits
.....................!
real 190.16
user 184.89
sys 4.64

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/55992/ft1_filtered_4FGL_J2336.6-4115_daily_bin1037.fits scfile=/scratch/kocevski/55992/ft2_4FGL_J2336.6-4115_daily_bin1037.fits outfile=/scratch/kocevski/55992/cmap_508118401_508377601_4FGL_J2336.6-4115_daily_bin1037.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.57
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/55992/ft1_filtered_4FGL_J2336.6-4115_daily_bin1037.fits scfile=/scratch/kocevski/55992/ft2_4FGL_J2336.6-4115_daily_bin1037.fits outfile=/scratch/kocevski/55992/cmap_HighResolution_508118401_508377601_4FGL_J2336.6-4115_daily_bin1037.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=354.164 yref=-41.2579 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/55992/ft1_filtered_4FGL_J2336.6-4115_daily_bin1037.fits evtable="EVENTS" scfile=/scratch/kocevski/55992/ft2_4FGL_J2336.6-4115_daily_bin1037.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/55992/Model_4FGL_J2336.6-4115_daily_bin1037.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/55992/ft1_filtered_4FGL_J2336.6-4115_daily_bin1037.fits.....................!
real 39.86
user 37.95
sys 1.32

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.4589       1.0000         .10000E-03   10000.    
     2 'Prefactor '    9.5451       1.0000         .10000E-03   10000.    
     3 'Prefactor '    11.566       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.4743       1.0000         .10000E-03   10000.    
     7 'Prefactor '    7.9846       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    9.3960       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.5601       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    6.2987       1.0000         .10000E-03   10000.    
    19 'Prefactor '    7.7844       1.0000         .10000E-03   10000.    
    20 'Prefactor '    18.614       1.0000         .10000E-03   10000.    
    21 'Prefactor '    10.813       1.0000         .10000E-03   10000.    
    22 'norm      '    .20954E-01   1.0000         .10000E-03   10000.    
    23 'Prefactor '    33.656       1.0000         .10000E-03   10000.    
    24 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .43686       1.0000         .10000E-03   10000.    
    26 'Prefactor '    3.0094       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .25775E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10090E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    1.7787       1.0000         .10000E-03   10000.    
    32 'Prefactor '    5.1016       1.0000         .10000E-03   10000.    
    33 'Normalizat'    1.2107       1.0000         .10000E-01   10.000    
    34 'Prefactor '    .69854       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=   4992.275     FROM MIGRAD    STATUS=CONVERGED    941 CALLS     4193 TOTAL
                     EDM=   .41E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.5637        112.00        .17382E-04    .97077E-04
   2  Prefactor     9.5484        14.033        .13382E-06    .12876E-04
   3  Prefactor     11.628        37.334        .63787E-06    .34665E-05
   4  Prefactor     .10000E-03    19.400        .55250E-07** at limit **
   5  Prefactor     .10000E-03    14.245        .84554E-06** at limit **
   6  Prefactor     4.4811        11.799        .14722E-06   -.40845E-04
   7  Prefactor     7.9835        6.6090        .18004E-05   -.47417E-03
   8  Prefactor     .10000E-03    25.940       -.36458E-06** at limit **
   9  Prefactor     .10000E-03    16.334       -.86637E-06** at limit **
  10  Prefactor     9.3976        21.840        .70062E-06    .82741E-05
  11  Prefactor     .10000E-03    2.6222       -.35722E-07** at limit **
  12  Prefactor     .10000E-03    12.654       -.35017E-06** at limit **
  13  Prefactor     5.5691        85.813        .19141E-05    .80261E-05
  14  Prefactor     .10000E-03    5.8228       -.20742E-07** at limit **
  15  norm          .10000E-03    5.6857       -.38181E-07** at limit **
  16  norm          .10000E-03    2.0671       -.52775E-08** at limit **
  17  norm          .10000E-03    6.9909       -.82564E-06** at limit **
  18  norm          6.2998        8.4370        .26012E-05   -.23062E-03
  19  Prefactor     7.7830        6.8390       -.13398E-06   -.30116E-04
  20  Prefactor     18.654        31.923        .33527E-05    .40687E-04
  21  Prefactor     10.822        39.570        .29012E-06    .12232E-04
  22  norm          .10000E-03    2.9116       -.15702E-05** at limit **
  23  Prefactor     33.671        18.198        .48893E-06    .83102E-04
  24  norm          .10000E-03    .31973       -.20063E-10** at limit **
  25  norm          .43727        5.3867        .37623E-05   -.11605E-04
  26  Prefactor     3.0098        2.7139        .20773E-07    .58313E-05
  27  Prefactor     .10000E-03    26.282       -.11032E-05** at limit **
  28  Prefactor     .10000E-03    510.35       -.90451E-05** at limit **
  29  norm          .10000E-03    25.450        .85349E-06** at limit **
  30  Prefactor     .10000E-03    8.8590       -.57305E-06** at limit **
  31  Prefactor     1.7784        3.2107        .25432E-06   -.85777E-04
  32  Prefactor     5.0600        135.24       -.28684E-05   -.14775E-04
  33  Normalizat    1.2107        .19821       -.18361E-05    .24281E-03
  34  Prefactor     .69842        .20597        .10888E-05    .31463E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.56372
  Prefactor  = 9.54845
  Prefactor  = 11.6278
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.48107
  Prefactor  = 7.98353
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.39755
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.56905
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 6.29979
  Prefactor  = 7.783
  Prefactor  = 18.6537
  Prefactor  = 10.822
  norm       = 0.000100002
  Prefactor  = 33.6713
  norm       = 0.0001
  norm       = 0.437267
  Prefactor  = 3.00977
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.77841
  Prefactor  = 5.05997
  Normalizat = 1.21075
  Prefactor  = 0.698416
 **********
 **   18 **HESSE 
 **********

 FCN=   4992.275     FROM HESSE     STATUS=OK           740 CALLS     4933 TOTAL
                     EDM=   .89E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.5637        117.98        .13783E-03   -1.5123    
   2  Prefactor     9.5484        14.011        .12971E-03   -1.5090    
   3  Prefactor     11.628        37.279        .11779E-03   -1.5026    
   4  Prefactor     .10000E-03    19.443        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    14.258        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     4.4811        11.768        .19035E-03   -1.5285    
   7  Prefactor     7.9835        6.5785        .70947E-03   -1.5143    
   8  Prefactor     .10000E-03    26.003        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    16.354        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     9.3976        21.852        .13074E-03   -1.5095    
  11  Prefactor     .10000E-03    2.6387        .11172E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    12.658        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     5.5691        85.706        .17038E-03   -1.5236    
  14  Prefactor     .10000E-03    5.8431        .16650E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    5.6965        .16454E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    2.0681        .99207E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    7.2674        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          6.2998        8.4176        .79969E-03   -1.5206    
  19  Prefactor     7.7830        6.8490        .14372E-03   -1.5150    
  20  Prefactor     18.654        34.279        .92832E-04   -1.4844    
  21  Prefactor     10.822        39.574        .12184E-03   -1.5050    
  22  norm          .10000E-03    8.2712        .35384E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     33.671        18.250        .69073E-04   -1.4547    
  24  norm          .10000E-03    .32444        .38961E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .43727        5.3726        .29898E-03   -1.5576    
  26  Prefactor     3.0098        2.7123        .10672E-03   -1.5361    
  27  Prefactor     .10000E-03    26.725        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    527.96        .42905E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          .10000E-03    25.597        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    8.9814        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     1.7784        3.1788        .16266E-03   -1.5441    
  32  Prefactor     5.0600        135.67        .17801E-03   -1.5258    
  33  Normalizat    1.2107        .23157        .21015E-03   -.86271    
  34  Prefactor     .69842        .23959        .29646E-03   -1.0359    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.88747e-10
Minuit parameter uncertainties:
  1  63.7242
  2  14.0162
  3  37.3537
  4  3.85643e-05
  5  3.33603e-05
  6  11.7739
  7  6.57911
  8  0.00014467
  9  8.48302e-05
  10  21.8705
  11  1.82052e-06
  12  2.75901e-05
  13  43.769
  14  2.98892e-06
  15  7.52489e-07
  16  1.45557e-07
  17  7.78826e-06
  18  8.41913
  19  6.84967
  20  34.3152
  21  39.6699
  22  0.000227063
  23  18.2529
  24  7.56779e-08
  25  3.06545
  26  2.71237
  27  0.000109226
  28  0.00155014
  29  0.000105706
  30  4.80438e-05
  31  3.17915
  32  52.5348
  33  0.231764
  34  0.239941
Done.

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

Extracting fit parameters...

4FGL J2336.6-4115
   Spectrum: LogParabola
490         norm:  4.373e-01  3.065e+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:  6.984e-01  2.399e-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.211e+00  2.318e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/55992/likelihoodResults_508118401_508377601_4FGL_J2336.6-4115_daily_bin1037.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) = 4992.22307843
delta logL = 0.0514442107442

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4992.21934915
delta logL = 0.0551734971332

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .59701       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.0066       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2026       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .70178       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.

 FCN=   4992.219     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      211 TOTAL
                     EDM=   .55E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .59576        71.285        .11661E-01    .11370E-02
   2  alpha         3.0082        3.2211        .42273        .27948E-04
   3  Normalizat    1.2025        .35874E-01    .34829E-01   -.36295E-05
   4  Prefactor     .70185        .39667E-01    .66836E-01    .16124E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.595763
  alpha      = 3.00825
  Normalizat = 1.20253
  Prefactor  = 0.701851
 **********
 **   18 **HESSE 
 **********

 FCN=   4992.219     FROM HESSE     STATUS=OK            33 CALLS      244 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .59576        3.1836        .15441E-03   -1.5554    
   2  alpha         3.0082        3.7724        .38734E-01    .20473    
   3  Normalizat    1.2025        .21785        .21074E-03   -.86525    
   4  Prefactor     .70185        .23844        .29573E-03   -1.0345    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.8784e-08
Minuit parameter uncertainties:
  1  2.7544
  2  2.83151
  3  0.21801
  4  0.238792
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/55992': 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) = 4992.21934878
delta logL = 0.0551738653758

Extracting fit parameters...

4FGL J2336.6-4115
   Spectrum: LogParabola
490         norm:  5.958e-01  2.754e+00  1.000e-04  1.000e+04 ( 1.000e-12)
491        alpha:  3.008e+00  2.832e+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.019e-01  2.388e-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.203e+00  2.180e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.02
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/55992/cmap_HighResolution_508118401_508377601_4FGL_J2336.6-4115_daily_bin1037.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.60e-05', job_status='DONE', photon_flux_upper_limit='6.43e-08', time_completed='2021-09-30 02:05:28.214117', job_id='55992', GAL2='0.70', fit_tolerance='1e-08', EG2='1.20', EG='1.21', time_epoch_completed='1632992728.21', return_code2='0', ts='0.02', comment='SUCCESS', return_code='0', GAL='0.70', dlogl='5.52e-02', ts2='0.14', photon_index_error='0.00', photon_index='2.22' WHERE bin_id='1037' AND source_name='4FGL J2336.6-4115' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 02:05:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0031>
Subject: Job 55992: <4FGL_J2336.6-4115_daily_bin1037> in cluster <slac> Done

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

Your job looked like:

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

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

