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


Performing analysis on: 4FGL_J2336.6-4115_daily_bin1044
RA = 354.164, Dec = -41.2579
tmin = 509932801, tmax = 510192001
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='56003', job_status='RUN', time_executed='2021-09-30 01:53:39.016440', time_epoch_executed='1632992019.02' WHERE source_name='4FGL J2336.6-4115' and cadence='daily' and bin_id='1044'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/56003

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/56003/ft1_4FGL_J2336.6-4115_daily_bin1044.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/56003/ft2_4FGL_J2336.6-4115_daily_bin1044.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/56003/ft1_4FGL_J2336.6-4115_daily_bin1044.fits outfile=/scratch/kocevski/56003/ft1_filteredMKT_4FGL_J2336.6-4115_daily_bin1044.fits ra=354.164 dec=-41.2579 rad=12.0 tmin=509932801.0 tmax=510192001.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.53
user 3.29
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/56003/ft1_filtered_4FGL_J2336.6-4115_daily_bin1044.fits" evtable="EVENTS" scfile=/scratch/kocevski/56003/ft2_4FGL_J2336.6-4115_daily_bin1044.fits sctable="SC_DATA" outfile=/scratch/kocevski/56003/ltcube_509932801_510192001_4FGL_J2336.6-4115_daily_bin1044.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/56003/ft2_4FGL_J2336.6-4115_daily_bin1044.fits
.....................!
real 11.77
user 11.40
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/56003/ft1_filtered_4FGL_J2336.6-4115_daily_bin1044.fits evtable="EVENTS" scfile=/scratch/kocevski/56003/ft2_4FGL_J2336.6-4115_daily_bin1044.fits sctable="SC_DATA" expcube=/scratch/kocevski/56003/ltcube_509932801_510192001_4FGL_J2336.6-4115_daily_bin1044.fits outfile=/scratch/kocevski/56003/expmap_509932801_510192001_4FGL_J2336.6-4115_daily_bin1044.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/56003/ltcube_509932801_510192001_4FGL_J2336.6-4115_daily_bin1044.fits
.....................!
real 189.91
user 185.07
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/56003/ft1_filtered_4FGL_J2336.6-4115_daily_bin1044.fits scfile=/scratch/kocevski/56003/ft2_4FGL_J2336.6-4115_daily_bin1044.fits outfile=/scratch/kocevski/56003/cmap_509932801_510192001_4FGL_J2336.6-4115_daily_bin1044.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/56003/ft1_filtered_4FGL_J2336.6-4115_daily_bin1044.fits scfile=/scratch/kocevski/56003/ft2_4FGL_J2336.6-4115_daily_bin1044.fits outfile=/scratch/kocevski/56003/cmap_HighResolution_509932801_510192001_4FGL_J2336.6-4115_daily_bin1044.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.36
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/56003/ft1_filtered_4FGL_J2336.6-4115_daily_bin1044.fits evtable="EVENTS" scfile=/scratch/kocevski/56003/ft2_4FGL_J2336.6-4115_daily_bin1044.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/56003/Model_4FGL_J2336.6-4115_daily_bin1044.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/56003/ft1_filtered_4FGL_J2336.6-4115_daily_bin1044.fits.....................!
real 39.17
user 37.84
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11204E-01   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10081E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .39547E-02   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10317E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    46.151       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10077E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    10.430       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10367E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.2746       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    73.596       1.0000         .10000E-03   10000.    
    14 'Prefactor '    21.919       1.0000         .10000E-03   10000.    
    15 'norm      '    .10036E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10229E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    48.847       1.0000         .10000E-03   10000.    
    21 'Prefactor '    110.31       1.0000         .10000E-03   10000.    
    22 'norm      '    .10921E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .31743E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    17.031       1.0000         .10000E-03   10000.    
    26 'Prefactor '    3.6339       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10172E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .11875E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    3.0136       1.0000         .10000E-03   10000.    
    30 'Prefactor '    2.2203       1.0000         .10000E-03   10000.    
    31 'Prefactor '    .24585E-03   1.0000         .10000E-03   10000.    
    32 'Prefactor '    67.035       1.0000         .10000E-03   10000.    
    33 'Normalizat'    .94585       1.0000         .10000E-01   10.000    
    34 'Prefactor '    .96921       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=   4888.660     FROM MIGRAD    STATUS=CONVERGED   1724 CALLS     5617 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10591E-03    38.207        .14123    ** at limit **
   2  Prefactor     .10000E-03    35.000        .18142E-02** at limit **
   3  Prefactor     .10143E-03    177.91        .64405E-02** at limit **
   4  Prefactor     .10000E-03    12.105        .18142E-02** at limit **
   5  Prefactor     46.162        29.003        .59020E-04   -.31282E-04
   6  Prefactor     .10000E-03    2.7800        .11371E-02** at limit **
   7  Prefactor     .10000E-03    2.2143        .10128E-02** at limit **
   8  Prefactor     10.434        21.978        .12406E-03    .49484E-05
   9  Prefactor     .10000E-03    20.536        .18142E-02** at limit **
  10  Prefactor     4.2700        33.678        .19487E-03    .87510E-06
  11  Prefactor     .10000E-03    3.7890        .13251E-02** at limit **
  12  Prefactor     .10000E-03    84.410        .18142E-02** at limit **
  13  Prefactor     73.546        58.875        .23400E-03   -.59272E-05
  14  Prefactor     21.917        14.602        .85555E-04   -.77337E-04
  15  norm          .10000E-03    17.472        .18142E-02** at limit **
  16  norm          .10000E-03    1.8920        .93916E-03** at limit **
  17  norm          .10000E-03    2.6896        .11176E-02** at limit **
  18  norm          .10000E-03    3.3317        .12450E-02** at limit **
  19  Prefactor     .10000E-03    4.5129        .14343E-02** at limit **
  20  Prefactor     48.899        38.222        .57376E-04    .40635E-03
  21  Prefactor     110.28        63.171        .38297E-04   -.10449E-04
  22  norm          .10000E-03    2.7225        .11189E-02** at limit **
  23  Prefactor     .10005E-03    61.380        .41629E-02** at limit **
  24  norm          .10000E-03    .23609        .33064E-03** at limit **
  25  norm          17.031        6.2455        .97052E-04    .71533E-03
  26  Prefactor     3.6347        2.8362        .10004E-03   -.18637E-04
  27  Prefactor     .10000E-03    14.116        .18142E-02** at limit **
  28  Prefactor     .10000E-03    32.148        .18142E-02** at limit **
  29  norm          3.0115        36.458        .23379E-03    .33553E-05
  30  Prefactor     2.2203        6.5418        .13799E-02   -.15138E-03
  31  Prefactor     .10019E-03    49.722        .21366E-02** at limit **
  32  Prefactor     67.040        53.714        .49021E-04   -.92302E-05
  33  Normalizat    .94603        .23827        .23922E-03   -.13582E-03
  34  Prefactor     .96914        .25716        .26610E-03    .15107E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000105908
  Prefactor  = 0.000100003
  Prefactor  = 0.000101435
  Prefactor  = 0.0001
  Prefactor  = 46.1621
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.4343
  Prefactor  = 0.0001
  Prefactor  = 4.27001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 73.5459
  Prefactor  = 21.9172
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 48.8993
  Prefactor  = 110.278
  norm       = 0.0001
  Prefactor  = 0.00010005
  norm       = 0.0001
  norm       = 17.0311
  Prefactor  = 3.63469
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  norm       = 3.01145
  Prefactor  = 2.22027
  Prefactor  = 0.00010019
  Prefactor  = 67.0398
  Normalizat = 0.946027
  Prefactor  = 0.969136
 **********
 **   18 **HESSE 
 **********

 FCN=   4888.660     FROM HESSE     STATUS=OK           710 CALLS     6327 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10591E-03    38.052        .14174       -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    35.013        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10143E-03    183.49        .25762E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    12.105        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     46.162        29.003        .11804E-04   -1.4348    
   6  Prefactor     .10000E-03    2.7801        .22742E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    2.2144        .20257E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     10.434        21.978        .49625E-05   -1.5062    
   9  Prefactor     .10000E-03    20.537        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     4.2700        33.675        .77948E-05   -1.5295    
  11  Prefactor     .10000E-03    3.7895        .26503E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    84.441        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     73.546        58.872        .93601E-05   -1.3991    
  14  Prefactor     21.917        14.601        .34222E-05   -1.4771    
  15  norm          .10000E-03    17.478        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    1.8920        .18783E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    2.6897        .22352E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    3.3318        .24900E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    4.5153        .28685E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     48.899        38.219        .11475E-04   -1.4308    
  21  Prefactor     110.28        63.168        .76593E-05   -1.3604    
  22  norm          .10000E-03    2.7228        .22377E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10005E-03    62.682        .83258E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    .23609        .66129E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          17.031        6.2455        .19410E-04   -1.4882    
  26  Prefactor     3.6347        2.8360        .40016E-05   -1.5327    
  27  Prefactor     .10000E-03    14.118        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    32.149        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          3.0115        36.465        .93516E-05   -1.5361    
  30  Prefactor     2.2203        6.5300        .55195E-04   -1.5410    
  31  Prefactor     .10019E-03    50.757        .42732E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     67.040        53.669        .98042E-05   -1.4069    
  33  Normalizat    .94603        .23824        .95688E-05   -.94861    
  34  Prefactor     .96914        .25741        .10644E-04   -.93765    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.40271e-08
Minuit parameter uncertainties:
  1  0.0300064
  2  0.000625922
  3  0.032551
  4  8.91185e-07
  5  29.0114
  6  6.08095e-06
  7  4.8068e-06
  8  21.995
  9  2.85496e-05
  10  24.0011
  11  1.14344e-05
  12  0.000541982
  13  58.9187
  14  14.6036
  15  6.20258e-05
  16  1.09373e-06
  17  7.83037e-06
  18  6.76687e-06
  19  6.31458e-07
  20  38.2381
  21  63.2061
  22  1.22586e-05
  23  0.00353949
  24  4.89823e-07
  25  6.24573
  26  2.83613
  27  4.11494e-05
  28  0.000551202
  29  20.9738
  30  6.53211
  31  0.00621041
  32  53.708
  33  0.238502
  34  0.257732
Done.

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

Extracting fit parameters...

4FGL J2336.6-4115
   Spectrum: LogParabola
490         norm:  1.703e+01  6.246e+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:  9.691e-01  2.577e-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.460e-01  2.385e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 32.35
Ra Dec: 354.164 -41.258
Photon Index (Fixed Index): 2.22 +/- 0.00
Photon Flux (Fixed Index): 1.11e-07 +/- 4.09e-08
Energy Flux (Fixed Index): 4.51e-05 +/- 1.66e-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) = 4887.96159434
delta logL = 0.698175742345

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4887.90231919
delta logL = 0.757450895084

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    18.394       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7818       1.0000          .0000       5.0000    
     3 'Normalizat'    .98281       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94649       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=   4887.902     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      204 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          18.395        6.7969        .25505E-05   -.11689E-02
   2  alpha         1.7821        .29440       -.66088E-05   -.45236E-03
   3  Normalizat    .98283        .19125        .53887E-07    .56621E-04
   4  Prefactor     .94649        .21474       -.50910E-06    .41500E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 18.3955
  alpha      = 1.78208
  Normalizat = 0.982828
  Prefactor  = 0.946494
 **********
 **   18 **HESSE 
 **********

 FCN=   4887.902     FROM HESSE     STATUS=OK            31 CALLS      235 TOTAL
                     EDM=   .49E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          18.395        6.9456        .93385E-04   -1.4850    
   2  alpha         1.7821        .34373        .92135E-02   -.29127    
   3  Normalizat    .98283        .22676        .23538E-03   -.93608    
   4  Prefactor     .94649        .25489        .26907E-03   -.94535    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.93127e-09
Minuit parameter uncertainties:
  1  6.94592
  2  0.34492
  3  0.226987
  4  0.255215
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/56003': 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) = 4887.90231876
delta logL = 0.757451329007

Extracting fit parameters...

4FGL J2336.6-4115
   Spectrum: LogParabola
490         norm:  1.840e+01  6.946e+00  1.000e-04  1.000e+04 ( 1.000e-12)
491        alpha:  1.782e+00  3.449e-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:  9.465e-01  2.552e-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.828e-01  2.270e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 33.98
Ra Dec: 354.164 -41.258
Photon Index (Free Index): 1.78 +/- 0.34
Photon Flux (Free Index): 7.74e-08 +/- 3.83e-08
Energy Flux (Free Index): 6.20e-05 +/- 3.15e-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/56003/cmap_HighResolution_509932801_510192001_4FGL_J2336.6-4115_daily_bin1044.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.11e-07', energy_flux2='6.20e-05', photon_flux_error='4.09e-08', dlogl='7.57e-01', energy_flux='4.51e-05', photon_flux2='7.74e-08', job_status='DONE', time_completed='2021-09-30 02:06:44.642503', photon_index_error2='0.34', photon_index2='1.78', ts='32.35', fit_tolerance='1e-08', GAL='0.97', photon_index_error='0.00', energy_flux_error2='3.15e-05', EG='0.95', time_epoch_completed='1632992804.64', return_code='0', job_id='56003', GAL2='0.95', EG2='0.98', return_code2='0', energy_flux_error='1.66e-05', photon_flux_error2='3.83e-08', ts2='33.98', photon_index='2.22' WHERE bin_id='1044' AND source_name='4FGL J2336.6-4115' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 02:06:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0232>
Subject: Job 56003: <4FGL_J2336.6-4115_daily_bin1044> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2336.6-4115_daily_bin1044 354.164 -41.2579 509932801 510192001 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 :                                   779.45 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             312.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   974 sec.
    Turnaround time :                            976 sec.

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

