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


Performing analysis on: 4FGL_J2336.6-4115_daily_bin1083
RA = 354.164, Dec = -41.2579
tmin = 520041601, tmax = 520300801
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='56063', job_status='RUN', time_executed='2021-09-30 01:51:29.253715', time_epoch_executed='1632991889.25' WHERE source_name='4FGL J2336.6-4115' and cadence='daily' and bin_id='1083'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/56063

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/56063/ft1_4FGL_J2336.6-4115_daily_bin1083.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/56063/ft2_4FGL_J2336.6-4115_daily_bin1083.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/56063/ft1_4FGL_J2336.6-4115_daily_bin1083.fits outfile=/scratch/kocevski/56063/ft1_filteredMKT_4FGL_J2336.6-4115_daily_bin1083.fits ra=354.164 dec=-41.2579 rad=12.0 tmin=520041601.0 tmax=520300801.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.29
user 4.04
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/56063/ft2_4FGL_J2336.6-4115_daily_bin1083.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/56063/ft1_filteredMKT_4FGL_J2336.6-4115_daily_bin1083.fits evtable="EVENTS" outfile="/scratch/kocevski/56063/ft1_filtered_4FGL_J2336.6-4115_daily_bin1083.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.48
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/56063/ft1_filtered_4FGL_J2336.6-4115_daily_bin1083.fits" evtable="EVENTS" scfile=/scratch/kocevski/56063/ft2_4FGL_J2336.6-4115_daily_bin1083.fits sctable="SC_DATA" outfile=/scratch/kocevski/56063/ltcube_520041601_520300801_4FGL_J2336.6-4115_daily_bin1083.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/56063/ft2_4FGL_J2336.6-4115_daily_bin1083.fits
.....................!
real 11.68
user 11.31
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/56063/ft1_filtered_4FGL_J2336.6-4115_daily_bin1083.fits evtable="EVENTS" scfile=/scratch/kocevski/56063/ft2_4FGL_J2336.6-4115_daily_bin1083.fits sctable="SC_DATA" expcube=/scratch/kocevski/56063/ltcube_520041601_520300801_4FGL_J2336.6-4115_daily_bin1083.fits outfile=/scratch/kocevski/56063/expmap_520041601_520300801_4FGL_J2336.6-4115_daily_bin1083.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/56063/ltcube_520041601_520300801_4FGL_J2336.6-4115_daily_bin1083.fits
.....................!
real 191.71
user 186.88
sys 4.48

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/56063/ft1_filtered_4FGL_J2336.6-4115_daily_bin1083.fits scfile=/scratch/kocevski/56063/ft2_4FGL_J2336.6-4115_daily_bin1083.fits outfile=/scratch/kocevski/56063/cmap_520041601_520300801_4FGL_J2336.6-4115_daily_bin1083.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.55
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/56063/ft1_filtered_4FGL_J2336.6-4115_daily_bin1083.fits scfile=/scratch/kocevski/56063/ft2_4FGL_J2336.6-4115_daily_bin1083.fits outfile=/scratch/kocevski/56063/cmap_HighResolution_520041601_520300801_4FGL_J2336.6-4115_daily_bin1083.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/56063/ft1_filtered_4FGL_J2336.6-4115_daily_bin1083.fits evtable="EVENTS" scfile=/scratch/kocevski/56063/ft2_4FGL_J2336.6-4115_daily_bin1083.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/56063/Model_4FGL_J2336.6-4115_daily_bin1083.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/56063/ft1_filtered_4FGL_J2336.6-4115_daily_bin1083.fits.....................!
real 43.11
user 41.78
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    53.067       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.5260       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10118E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .19296       1.0000         .10000E-03   10000.    
     8 'Prefactor '    25.157       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10837E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10062E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10128E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10157E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    7.3186       1.0000         .10000E-03   10000.    
    17 'norm      '    .10701E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    10.301       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .12214E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    43.627       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10127E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    23.342       1.0000         .10000E-03   10000.    
    24 'norm      '    .11180E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    1.8470       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    20.836       1.0000         .10000E-03   10000.    
    29 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    32 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    33 'Normalizat'    .93769       1.0000         .10000E-01   10.000    
    34 'Prefactor '    .84414       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=   5541.392     FROM MIGRAD    STATUS=CONVERGED    915 CALLS     4813 TOTAL
                     EDM=   .94E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    12.971       -.43351E-07** at limit **
   2  Prefactor     .10000E-03    18.056        .46672E-06** at limit **
   3  Prefactor     53.095        41.392        .27252E-06    .39946E-04
   4  Prefactor     1.7100        107.11        .11449E-05   -.12324E-04
   5  Prefactor     .10000E-03    7.7111        .33587E-07** at limit **
   6  Prefactor     .10000E-03    3.0655        .10234E-06** at limit **
   7  Prefactor     .17301        2.8317       -.46596E-08    .83755E-04
   8  Prefactor     25.264        24.756       -.32384E-06   -.66106E-05
   9  Prefactor     .10000E-03    17.847       -.22951E-07** at limit **
  10  Prefactor     .10000E-03    34.895        .31101E-06** at limit **
  11  Prefactor     .10000E-03    7.1252       -.42508E-06** at limit **
  12  Prefactor     .10000E-03    11.277       -.75118E-08** at limit **
  13  Prefactor     .10000E-03    16.751       -.41433E-08** at limit **
  14  Prefactor     .10000E-03    4.9703       -.73481E-07** at limit **
  15  norm          .10000E-03    12.676       -.36746E-06** at limit **
  16  norm          7.3233        6.1525        .18676E-06    .76220E-04
  17  norm          .10000E-03    2.1695        .11121E-06** at limit **
  18  norm          10.300        7.2809        .46305E-07   -.32127E-04
  19  Prefactor     .10000E-03    6.6827       -.85591E-06** at limit **
  20  Prefactor     43.615        32.233       -.38345E-06   -.19620E-04
  21  Prefactor     .10000E-03    12.545       -.21378E-07** at limit **
  22  norm          .10000E-03    1.0810        .20340E-07** at limit **
  23  Prefactor     23.370        16.198        .69514E-06    .82978E-04
  24  norm          .10000E-03    .52997       -.88900E-07** at limit **
  25  norm          1.8465        2.2573        .95169E-06    .11722E-03
  26  Prefactor     .10000E-03    1.2101        .10354E-06** at limit **
  27  Prefactor     .10000E-03    15.139        .22823E-06** at limit **
  28  Prefactor     20.889        42.141       -.47604E-07    .18503E-04
  29  norm          .10000E-03    17.167        .12382E-06** at limit **
  30  Prefactor     .10000E-03    5.1570        .93190E-06** at limit **
  31  Prefactor     .10000E-03    2.5225        .55000E-07** at limit **
  32  Prefactor     .10000E-03    29.566        .20219E-06** at limit **
  33  Normalizat    .93779        .16234       -.35960E-06   -.11052E-03
  34  Prefactor     .84395        .17636        .11899E-07   -.88895E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 53.0953
  Prefactor  = 1.71004
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.173006
  Prefactor  = 25.2642
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 7.3233
  norm       = 0.0001
  norm       = 10.3004
  Prefactor  = 0.0001
  Prefactor  = 43.6152
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 23.3703
  norm       = 0.0001
  norm       = 1.84654
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 20.8888
  norm       = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.937791
  Prefactor  = 0.843949
 **********
 **   18 **HESSE 
 **********

 FCN=   5541.392     FROM HESSE     STATUS=OK           726 CALLS     5539 TOTAL
                     EDM=   .62E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    12.972        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    18.132        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     53.095        41.346        .55058E-04   -1.4249    
   4  Prefactor     1.7100        107.81        .34567E-03   -1.5446    
   5  Prefactor     .10000E-03    7.7134        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    3.0752        .12728E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .17301        18.646        .21967E-02   -1.5625    
   8  Prefactor     25.264        25.186        .79866E-04   -1.4702    
   9  Prefactor     .10000E-03    17.856        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    35.498        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    7.3379        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    11.280        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    16.760        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    4.9784        .16206E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    12.789        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          7.3233        6.1221        .14826E-03   -1.5167    
  17  norm          .10000E-03    2.1931        .10691E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          10.300        7.2787        .12484E-03   -1.5066    
  19  Prefactor     .10000E-03    6.8861        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     43.615        32.231        .60696E-04   -1.4386    
  21  Prefactor     .10000E-03    12.551        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    1.0819        .75474E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     23.370        16.036        .82908E-04   -1.4741    
  24  norm          .10000E-03    6.8932        .10109E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          1.8465        2.2542        .59772E-03   -1.5436    
  26  Prefactor     .10000E-03    1.2209        .79913E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    15.190        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     20.889        41.978        .87748E-04   -1.4794    
  29  norm          .10000E-03    17.174        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    11.256        .30468E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .10000E-03    2.5667        .11536E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     .10000E-03    29.606        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Normalizat    .93779        .19249        .21338E-03   -.95145    
  34  Prefactor     .84395        .21040        .25130E-03   -.98128    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.19591e-10
Minuit parameter uncertainties:
  1  8.92635e-06
  2  1.26746e-06
  3  41.368
  4  27.2061
  5  9.68224e-06
  6  8.03477e-07
  7  3.59223
  8  25.1968
  9  2.83584e-06
  10  0.000114165
  11  5.53794e-06
  12  5.84213e-06
  13  1.29217e-05
  14  9.42728e-07
  15  1.70922e-05
  16  6.12258
  17  1.65698e-06
  18  7.27931
  19  2.37016e-05
  20  32.2434
  21  9.23861e-06
  22  6.75552e-07
  23  16.0391
  24  8.09947e-05
  25  2.25428
  26  2.45647e-08
  27  7.11072e-06
  28  42.0373
  29  9.82781e-06
  30  0.000414248
  31  6.09465e-07
  32  0.0001117
  33  0.192629
  34  0.210604
Done.

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

Extracting fit parameters...

4FGL J2336.6-4115
   Spectrum: LogParabola
490         norm:  1.847e+00  2.254e+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:  8.439e-01  2.106e-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.378e-01  1.926e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.42
Ra Dec: 354.164 -41.258
Photon Index (Fixed Index): 2.22 +/- 0.00
Photon Flux (Fixed Index): 1.21e-08 +/- 1.48e-08
Energy Flux (Fixed Index): 4.89e-06 +/- 5.98e-06

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

Saving results to:
/scratch/kocevski/56063/likelihoodResults_520041601_520300801_4FGL_J2336.6-4115_daily_bin1083.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) = 5541.38090845
delta logL = 0.0109058778207

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5541.37972166
delta logL = 0.0120926588897

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.7485       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4185       1.0000          .0000       5.0000    
     3 'Normalizat'    .93486       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84580       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=   5541.380     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      194 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.7495        83.152        .79280E-02    .13435E-03
   2  alpha         2.4191        3.7743        .41179        .15036E-04
   3  Normalizat    .93486        .74507E-01    .45346E-01   -.63447E-05
   4  Prefactor     .84580        .64271E-01    .44310E-01    .10407E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.74949
  alpha      = 2.41913
  Normalizat = 0.934858
  Prefactor  = 0.845799
 **********
 **   18 **HESSE 
 **********

 FCN=   5541.380     FROM HESSE     STATUS=OK            33 CALLS      227 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.7495        2.3212        .11359E-03   -1.5443    
   2  alpha         2.4191        1.3010        .27991E-01   -.32353E-01
   3  Normalizat    .93486        .18656        .21366E-03   -.95246    
   4  Prefactor     .84580        .20940        .25104E-03   -.98062    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.34672e-09
Minuit parameter uncertainties:
  1  2.32128
  2  1.36836
  3  0.186685
  4  0.209597
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/56063': 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) = 5541.37972131
delta logL = 0.0120930164612

Extracting fit parameters...

4FGL J2336.6-4115
   Spectrum: LogParabola
490         norm:  1.749e+00  2.321e+00  1.000e-04  1.000e+04 ( 1.000e-12)
491        alpha:  2.419e+00  1.368e+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:  8.458e-01  2.096e-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.349e-01  1.867e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.44
Ra Dec: 354.164 -41.258
Photon Index (Free Index): 2.42 +/- 1.37
Photon Flux (Free Index): 1.47e-08 +/- 2.45e-08
Energy Flux (Free Index): 4.78e-06 +/- 5.69e-06

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/56063/cmap_HighResolution_520041601_520300801_4FGL_J2336.6-4115_daily_bin1083.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.27e-05', comment='SUCCESS', photon_flux='1.21e-08', energy_flux2='4.78e-06', photon_flux_error='1.48e-08', dlogl='1.21e-02', energy_flux='4.89e-06', photon_flux2='1.47e-08', job_status='DONE', time_completed='2021-09-30 02:07:01.296313', photon_index_error2='1.37', photon_index2='2.42', ts='1.42', fit_tolerance='1e-08', GAL='0.84', photon_index_error='0.00', photon_flux_upper_limit='5.60e-08', energy_flux_error2='5.69e-06', EG='0.94', time_epoch_completed='1632992821.3', return_code='0', job_id='56063', GAL2='0.85', EG2='0.93', return_code2='0', energy_flux_error='5.98e-06', photon_flux_error2='2.45e-08', ts2='1.44', photon_index='2.22' WHERE bin_id='1083' AND source_name='4FGL J2336.6-4115' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 02:07:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0048>
Subject: Job 56063: <4FGL_J2336.6-4115_daily_bin1083> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2336.6-4115_daily_bin1083 354.164 -41.2579 520041601 520300801 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 :                                   900.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             341.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   986 sec.
    Turnaround time :                            988 sec.

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

