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


Performing analysis on: 4FGL_J2336.6-4115_daily_bin1140
RA = 354.164, Dec = -41.2579
tmin = 534816001, tmax = 535075201
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='56151', job_status='RUN', time_executed='2021-09-30 01:51:23.924719', time_epoch_executed='1632991883.92' WHERE source_name='4FGL J2336.6-4115' and cadence='daily' and bin_id='1140'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/56151

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/56151/ft1_4FGL_J2336.6-4115_daily_bin1140.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/56151/ft2_4FGL_J2336.6-4115_daily_bin1140.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/56151/ft1_4FGL_J2336.6-4115_daily_bin1140.fits outfile=/scratch/kocevski/56151/ft1_filteredMKT_4FGL_J2336.6-4115_daily_bin1140.fits ra=354.164 dec=-41.2579 rad=12.0 tmin=534816001.0 tmax=535075201.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.57
user 3.33
sys 0.22

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/56151/ft1_filtered_4FGL_J2336.6-4115_daily_bin1140.fits" evtable="EVENTS" scfile=/scratch/kocevski/56151/ft2_4FGL_J2336.6-4115_daily_bin1140.fits sctable="SC_DATA" outfile=/scratch/kocevski/56151/ltcube_534816001_535075201_4FGL_J2336.6-4115_daily_bin1140.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/56151/ft2_4FGL_J2336.6-4115_daily_bin1140.fits
.....................!
real 11.95
user 11.57
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/56151/ft1_filtered_4FGL_J2336.6-4115_daily_bin1140.fits evtable="EVENTS" scfile=/scratch/kocevski/56151/ft2_4FGL_J2336.6-4115_daily_bin1140.fits sctable="SC_DATA" expcube=/scratch/kocevski/56151/ltcube_534816001_535075201_4FGL_J2336.6-4115_daily_bin1140.fits outfile=/scratch/kocevski/56151/expmap_534816001_535075201_4FGL_J2336.6-4115_daily_bin1140.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/56151/ltcube_534816001_535075201_4FGL_J2336.6-4115_daily_bin1140.fits
.....................!
real 189.49
user 185.13
sys 4.00

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/56151/ft1_filtered_4FGL_J2336.6-4115_daily_bin1140.fits scfile=/scratch/kocevski/56151/ft2_4FGL_J2336.6-4115_daily_bin1140.fits outfile=/scratch/kocevski/56151/cmap_534816001_535075201_4FGL_J2336.6-4115_daily_bin1140.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/56151/ft1_filtered_4FGL_J2336.6-4115_daily_bin1140.fits scfile=/scratch/kocevski/56151/ft2_4FGL_J2336.6-4115_daily_bin1140.fits outfile=/scratch/kocevski/56151/cmap_HighResolution_534816001_535075201_4FGL_J2336.6-4115_daily_bin1140.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.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/56151/ft1_filtered_4FGL_J2336.6-4115_daily_bin1140.fits evtable="EVENTS" scfile=/scratch/kocevski/56151/ft2_4FGL_J2336.6-4115_daily_bin1140.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/56151/Model_4FGL_J2336.6-4115_daily_bin1140.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/56151/ft1_filtered_4FGL_J2336.6-4115_daily_bin1140.fits.....................!
real 40.26
user 38.93
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.1215       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10080E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    8.9461       1.0000         .10000E-03   10000.    
     8 'Prefactor '    36.830       1.0000         .10000E-03   10000.    
     9 'Prefactor '    24.374       1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.9680       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .32478E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.5659       1.0000         .10000E-03   10000.    
    15 'norm      '    .13051E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    2.3806       1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    3.8930       1.0000         .10000E-03   10000.    
    23 'Prefactor '    6.3975       1.0000         .10000E-03   10000.    
    24 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    6.7932       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    14.752       1.0000         .10000E-03   10000.    
    28 'Prefactor '    53.328       1.0000         .10000E-03   10000.    
    29 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .14496E-02   1.0000         .10000E-03   10000.    
    32 'Prefactor '    .12174E-03   1.0000         .10000E-03   10000.    
    33 'Normalizat'    1.2756       1.0000         .10000E-01   10.000    
    34 'Prefactor '    .50665       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5850E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5148.687     FROM MIGRAD    STATUS=CONVERGED    105 CALLS     4743 TOTAL
                     EDM=   .50E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 12.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10004E-03    8.4958        .13105E-04** at limit **
   2  Prefactor     3.1246        1.0220       -.16785E-07   -.56187E-05
   3  Prefactor     .10005E-03    10.151        .16121E-04** at limit **
   4  Prefactor     .10004E-03    13.883        .24455E-04** at limit **
   5  Prefactor     .10000E-03    12.501       -.81858E-05** at limit **
   6  Prefactor     .10000E-03    1.7882        .17988E-07** at limit **
   7  Prefactor     8.9462        1.0677        .73809E-06    .19176E-02
   8  Prefactor     36.831        1.0091        .11610E-06    .22315E-03
   9  Prefactor     24.374        1.0018        .61525E-07   -.74239E-04
  10  Prefactor     4.9642        1.1034       -.70062E-06    .22724E-04
  11  Prefactor     .10000E-03    3.3037       -.97117E-07** at limit **
  12  Prefactor     .10004E-03    8.8363        .17141E-05** at limit **
  13  Prefactor     .21095E-03    2.4056       -.14963E-04** at limit **
  14  Prefactor     5.5660        1.0067        .89832E-07   -.56783E-04
  15  norm          .10012E-03    9.3494       -.47192E-05** at limit **
  16  norm          2.3805        1.0477       -.47426E-06   -.71066E-03
  17  norm          .10000E-03    1.8172       -.61735E-07** at limit **
  18  norm          .10000E-03    3.8232        .17244E-06** at limit **
  19  Prefactor     .10000E-03    2.5528       -.44049E-06** at limit **
  20  Prefactor     .10003E-03    20.727       -.35789E-04** at limit **
  21  Prefactor     .10006E-03    14.232        .24713E-04** at limit **
  22  norm          3.8924        3.0896       -.33408E-05   -.21717E-02
  23  Prefactor     6.3992        1.0193        .28490E-06    .59368E-04
  24  norm          .10000E-03    .32250       -.21320E-06** at limit **
  25  norm          6.7935        2.1052        .95624E-06    .47516E-02
  26  Prefactor     .10000E-03    1.3567        .14492E-06** at limit **
  27  Prefactor     14.755        1.0760        .38260E-06   -.84341E-04
  28  Prefactor     53.319        3.1000       -.20713E-05    .52919E-02
  29  norm          .10000E-03    9.8144        .13285E-05** at limit **
  30  Prefactor     .10000E-03    4.4165       -.52470E-07** at limit **
  31  Prefactor     .10002E-03    1.5182       -.11039E-05** at limit **
  32  Prefactor     .10000E-03    70.509       -.45634E-04** at limit **
  33  Normalizat    1.2755        .19562       -.82576E-06   -.42266E-05
  34  Prefactor     .50675        .21657        .15219E-05    .58664E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100036
  Prefactor  = 3.12458
  Prefactor  = 0.000100053
  Prefactor  = 0.000100037
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.94625
  Prefactor  = 36.8311
  Prefactor  = 24.3737
  Prefactor  = 4.96422
  Prefactor  = 0.0001
  Prefactor  = 0.000100045
  Prefactor  = 0.000210953
  Prefactor  = 5.56603
  norm       = 0.000100121
  norm       = 2.38049
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100029
  Prefactor  = 0.000100058
  norm       = 3.8924
  Prefactor  = 6.39918
  norm       = 0.0001
  norm       = 6.79353
  Prefactor  = 0.0001
  Prefactor  = 14.7552
  Prefactor  = 53.3186
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100018
  Prefactor  = 0.000100001
  Normalizat = 1.2755
  Prefactor  = 0.506745
 **********
 **   18 **HESSE 
 **********

 FCN=   5148.687     FROM HESSE     STATUS=OK           814 CALLS     5557 TOTAL
                     EDM=   .27E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10004E-03    15.973        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     3.1246        12.693        .57371E-02   -1.5354    
   3  Prefactor     .10005E-03    37.280        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10004E-03    42.476        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    12.593        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    1.7871        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     8.9462        5.9142        .33501E-02   -1.5110    
   8  Prefactor     36.831        28.897        .16510E-02   -1.4493    
   9  Prefactor     24.374        25.178        .20284E-02   -1.4720    
  10  Prefactor     4.9642        19.806        .45108E-02   -1.5262    
  11  Prefactor     .10000E-03    3.2817        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10004E-03    16.866        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .21095E-03    79.712        .15147       -1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     5.5660        11.831        .42573E-02   -1.5236    
  15  norm          .10012E-03    7.9895        .90712E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.3805        4.3853        .66375E-02   -1.5399    
  17  norm          .10000E-03    1.8151        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    3.7802        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    2.5498        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10003E-03    27.904        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10006E-03    43.004        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          3.8924        3.8155        .51123E-02   -1.5313    
  23  Prefactor     6.3992        10.673        .39671E-02   -1.5202    
  24  norm          .10000E-03    .31741        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          6.7935        4.5718        .38486E-02   -1.5187    
  26  Prefactor     .10000E-03    1.3503        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     14.755        21.374        .26070E-02   -1.4940    
  28  Prefactor     53.319        57.198        .13731E-02   -1.4246    
  29  norm          .10000E-03    9.8170        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    4.3082        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .10002E-03    1.5886        .57862E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     .10000E-03    72.999        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Normalizat    1.2755        .17650        .33257E-01   -.84301    
  34  Prefactor     .50675        .19350        .71790E-01   -1.1167    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.70336e-07
Minuit parameter uncertainties:
  1  0.00152176
  2  12.5998
  3  0.00280618
  4  0.00252049
  5  4.26298e-05
  6  5.31882e-06
  7  5.91461
  8  28.9076
  9  25.1887
  10  19.832
  11  1.62004e-06
  12  0.00173376
  13  0.188339
  14  11.8363
  15  0.00196632
  16  4.38589
  17  5.94795e-06
  18  1.9503e-05
  19  1.28281e-05
  20  0.00181356
  21  0.00314753
  22  3.8157
  23  10.6764
  24  8.16709e-07
  25  4.57203
  26  6.82766e-06
  27  21.3854
  28  57.2574
  29  4.58501e-05
  30  1.68755e-05
  31  0.000337583
  32  0.000600901
  33  0.176582
  34  0.193756
Done.

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

Extracting fit parameters...

4FGL J2336.6-4115
   Spectrum: LogParabola
490         norm:  6.794e+00  4.572e+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:  5.067e-01  1.938e-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.276e+00  1.766e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.18
Ra Dec: 354.164 -41.258
Photon Index (Fixed Index): 2.22 +/- 0.00
Photon Flux (Fixed Index): 4.45e-08 +/- 2.99e-08
Energy Flux (Fixed Index): 1.80e-05 +/- 1.21e-05

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) = 5148.68499914
delta logL = 0.00154814092002

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5148.68469773
delta logL = 0.00184954890301

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.8776       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1689       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2781       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .50485       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=   5148.685     FROM MIGRAD    STATUS=CONVERGED     82 CALLS      228 TOTAL
                     EDM=   .82E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.8778        4.7383        .11893E-03   -.10840E-02
   2  alpha         2.1689        .77921        .16125E-01   -.83505E-04
   3  Normalizat    1.2783        .20114        .18820E-03    .99937E-04
   4  Prefactor     .50466        .21946        .31845E-03    .93213E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 6.87782
  alpha      = 2.16887
  Normalizat = 1.27833
  Prefactor  = 0.504664
 **********
 **   18 **HESSE 
 **********

 FCN=   5148.685     FROM HESSE     STATUS=OK            23 CALLS      251 TOTAL
                     EDM=   .88E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.8778        4.6710        .47572E-05   -1.5183    
   2  alpha         2.1689        .76743        .64502E-03   -.13284    
   3  Normalizat    1.2783        .20095        .37640E-04   -.84215    
   4  Prefactor     .50466        .21938        .12738E-04   -1.1176    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.77745e-10
Minuit parameter uncertainties:
  1  4.67127
  2  0.780258
  3  0.201069
  4  0.219745
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/56151': 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) = 5148.68469721
delta logL = 0.00185007330219

Extracting fit parameters...

4FGL J2336.6-4115
   Spectrum: LogParabola
490         norm:  6.878e+00  4.671e+00  1.000e-04  1.000e+04 ( 1.000e-12)
491        alpha:  2.169e+00  7.803e-01  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:  5.047e-01  2.197e-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.278e+00  2.011e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.20
Ra Dec: 354.164 -41.258
Photon Index (Free Index): 2.17 +/- 0.78
Photon Flux (Free Index): 4.26e-08 +/- 4.15e-08
Energy Flux (Free Index): 1.83e-05 +/- 1.31e-05

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/56151/cmap_HighResolution_534816001_535075201_4FGL_J2336.6-4115_daily_bin1140.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.45e-08', energy_flux2='1.83e-05', photon_flux_error='2.99e-08', dlogl='1.85e-03', energy_flux='1.80e-05', photon_flux2='4.26e-08', job_status='DONE', time_completed='2021-09-30 02:04:28.963921', photon_index_error2='0.78', photon_index2='2.17', ts='6.18', fit_tolerance='1e-08', GAL='0.51', photon_index_error='0.00', energy_flux_error2='1.31e-05', EG='1.28', time_epoch_completed='1632992668.96', return_code='0', job_id='56151', GAL2='0.50', EG2='1.28', return_code2='0', energy_flux_error='1.21e-05', photon_flux_error2='4.15e-08', ts2='6.20', photon_index='2.22' WHERE bin_id='1140' AND source_name='4FGL J2336.6-4115' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 02:04:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0090>
Subject: Job 56151: <4FGL_J2336.6-4115_daily_bin1140> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2336.6-4115_daily_bin1140 354.164 -41.2579 534816001 535075201 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 :                                   757.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             310.41 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   827 sec.
    Turnaround time :                            828 sec.

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

