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


Performing analysis on: 4FGL_J2336.6-4115_daily_bin1163
RA = 354.164, Dec = -41.2579
tmin = 540777601, tmax = 541036801
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='56187', job_status='RUN', time_executed='2021-09-30 01:51:07.523886', time_epoch_executed='1632991867.52' WHERE source_name='4FGL J2336.6-4115' and cadence='daily' and bin_id='1163'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/56187

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/56187/ft1_4FGL_J2336.6-4115_daily_bin1163.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/56187/ft2_4FGL_J2336.6-4115_daily_bin1163.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/56187/ft1_4FGL_J2336.6-4115_daily_bin1163.fits outfile=/scratch/kocevski/56187/ft1_filteredMKT_4FGL_J2336.6-4115_daily_bin1163.fits ra=354.164 dec=-41.2579 rad=12.0 tmin=540777601.0 tmax=541036801.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.60
user 3.38
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/56187/ft1_filtered_4FGL_J2336.6-4115_daily_bin1163.fits" evtable="EVENTS" scfile=/scratch/kocevski/56187/ft2_4FGL_J2336.6-4115_daily_bin1163.fits sctable="SC_DATA" outfile=/scratch/kocevski/56187/ltcube_540777601_541036801_4FGL_J2336.6-4115_daily_bin1163.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/56187/ft2_4FGL_J2336.6-4115_daily_bin1163.fits
.....................!
real 12.18
user 11.84
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/56187/ft1_filtered_4FGL_J2336.6-4115_daily_bin1163.fits evtable="EVENTS" scfile=/scratch/kocevski/56187/ft2_4FGL_J2336.6-4115_daily_bin1163.fits sctable="SC_DATA" expcube=/scratch/kocevski/56187/ltcube_540777601_541036801_4FGL_J2336.6-4115_daily_bin1163.fits outfile=/scratch/kocevski/56187/expmap_540777601_541036801_4FGL_J2336.6-4115_daily_bin1163.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/56187/ltcube_540777601_541036801_4FGL_J2336.6-4115_daily_bin1163.fits
.....................!
real 191.09
user 186.02
sys 4.70

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/56187/ft1_filtered_4FGL_J2336.6-4115_daily_bin1163.fits scfile=/scratch/kocevski/56187/ft2_4FGL_J2336.6-4115_daily_bin1163.fits outfile=/scratch/kocevski/56187/cmap_540777601_541036801_4FGL_J2336.6-4115_daily_bin1163.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.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/56187/ft1_filtered_4FGL_J2336.6-4115_daily_bin1163.fits scfile=/scratch/kocevski/56187/ft2_4FGL_J2336.6-4115_daily_bin1163.fits outfile=/scratch/kocevski/56187/cmap_HighResolution_540777601_541036801_4FGL_J2336.6-4115_daily_bin1163.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/56187/ft1_filtered_4FGL_J2336.6-4115_daily_bin1163.fits evtable="EVENTS" scfile=/scratch/kocevski/56187/ft2_4FGL_J2336.6-4115_daily_bin1163.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/56187/Model_4FGL_J2336.6-4115_daily_bin1163.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/56187/ft1_filtered_4FGL_J2336.6-4115_daily_bin1163.fits.....................!
real 34.06
user 32.75
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10183E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.8728       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .16131E-02   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10083E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    155.01       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10413E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.1376       1.0000         .10000E-03   10000.    
    12 'Prefactor '    15.303       1.0000         .10000E-03   10000.    
    13 'Prefactor '    89.602       1.0000         .10000E-03   10000.    
    14 'Prefactor '    45.772       1.0000         .10000E-03   10000.    
    15 'norm      '    .10211E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    7.9419       1.0000         .10000E-03   10000.    
    18 'norm      '    21.767       1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.8504       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10990E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    163.66       1.0000         .10000E-03   10000.    
    22 'norm      '    1.6874       1.0000         .10000E-03   10000.    
    23 'Prefactor '    8.3545       1.0000         .10000E-03   10000.    
    24 'norm      '    .69674       1.0000         .10000E-03   10000.    
    25 'norm      '    13.119       1.0000         .10000E-03   10000.    
    26 'Prefactor '    5.8426       1.0000         .10000E-03   10000.    
    27 'Prefactor '    42.797       1.0000         .10000E-03   10000.    
    28 'Prefactor '    63.053       1.0000         .10000E-03   10000.    
    29 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    16.199       1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    32 'Prefactor '    .10369E-03   1.0000         .10000E-03   10000.    
    33 'Normalizat'    1.0653       1.0000         .10000E-01   10.000    
    34 'Prefactor '    .70429       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=   3871.087     FROM MIGRAD    STATUS=CONVERGED    869 CALLS     4747 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    35.761        .22396E-05** at limit **
   2  Prefactor     .10000E-03    12.443       -.19903E-05** at limit **
   3  Prefactor     .10000E-03    20.900       -.78041E-05** at limit **
   4  Prefactor     .10000E-03    17.010        .95208E-06** at limit **
   5  Prefactor     .10000E-03    24.465       -.15838E-05** at limit **
   6  Prefactor     7.8729        12.701       -.31447E-05    .32661E-04
   7  Prefactor     .10005E-03    4.8018       -.16895E-05** at limit **
   8  Prefactor     .10000E-03    19.499       -.72692E-05** at limit **
   9  Prefactor     154.99        94.512       -.18475E-04    .13519E-04
  10  Prefactor     .10000E-03    24.326       -.13987E-05** at limit **
  11  Prefactor     4.1376        10.176       -.77098E-06   -.10434E-03
  12  Prefactor     15.291        31.397       -.18885E-04    .57003E-05
  13  Prefactor     89.579        80.579       -.22619E-04    .12459E-04
  14  Prefactor     45.772        24.606       -.11564E-05    .25761E-04
  15  norm          .10000E-03    27.659        .58479E-05** at limit **
  16  norm          .10000E-03    3.2768        .21350E-06** at limit **
  17  norm          7.9400        7.2744       -.21644E-06    .11580E-03
  18  norm          21.764        13.829       -.18618E-06    .49604E-04
  19  Prefactor     3.8493        6.5833        .63102E-06   -.12990E-03
  20  Prefactor     .10000E-03    36.289        .88037E-06** at limit **
  21  Prefactor     163.64        81.689       -.12367E-04    .10155E-04
  22  norm          1.6877        7.7676       -.26896E-05   -.64739E-03
  23  Prefactor     8.3527        19.380       -.30026E-05   -.28292E-04
  24  norm          .69626        1.0357       -.25326E-06   -.56618E-03
  25  norm          13.114        9.3398       -.67318E-06    .12786E-03
  26  Prefactor     5.8419        4.8987        .12032E-05   -.59503E-04
  27  Prefactor     42.795        28.497       -.20274E-05    .31365E-04
  28  Prefactor     62.926        70.261       -.14496E-03    .54934E-05
  29  norm          .10000E-03    15.614        .78892E-05** at limit **
  30  Prefactor     16.197        9.9277        .13452E-05    .39505E-04
  31  Prefactor     .10000E-03    2.4191       -.46544E-06** at limit **
  32  Prefactor     .10000E-03    27.298        .58968E-05** at limit **
  33  Normalizat    1.0654        .24453        .50737E-05    .38725E-03
  34  Prefactor     .70435        .25012        .12960E-04    .18836E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.87287
  Prefactor  = 0.000100053
  Prefactor  = 0.0001
  Prefactor  = 154.986
  Prefactor  = 0.0001
  Prefactor  = 4.13759
  Prefactor  = 15.2912
  Prefactor  = 89.5787
  Prefactor  = 45.7721
  norm       = 0.000100001
  norm       = 0.0001
  norm       = 7.94
  norm       = 21.7637
  Prefactor  = 3.84927
  Prefactor  = 0.0001
  Prefactor  = 163.642
  norm       = 1.68766
  Prefactor  = 8.35272
  norm       = 0.696262
  norm       = 13.1136
  Prefactor  = 5.84187
  Prefactor  = 42.7949
  Prefactor  = 62.9256
  norm       = 0.0001
  Prefactor  = 16.1973
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Normalizat = 1.06541
  Prefactor  = 0.704345
 **********
 **   18 **HESSE 
 **********

 FCN=   3871.087     FROM HESSE     STATUS=OK           738 CALLS     5485 TOTAL
                     EDM=   .48E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    35.772        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    12.474        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    20.916        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    17.013        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    24.509        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     7.8729        12.703        .14291E-03   -1.5147    
   7  Prefactor     .10005E-03    19.808        .25895E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    19.529        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     154.99        94.323        .16190E-03   -1.3212    
  10  Prefactor     .10000E-03    24.393        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     4.1376        10.138        .19816E-03   -1.5301    
  12  Prefactor     15.291        31.417        .10238E-03   -1.4926    
  13  Prefactor     89.579        80.599        .21224E-03   -1.3812    
  14  Prefactor     45.772        24.407        .59263E-04   -1.4354    
  15  norm          .10000E-03    27.991        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    3.2797        .10998E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          7.9400        7.2308        .14228E-03   -1.5144    
  18  norm          21.764        13.820        .85852E-04   -1.4775    
  19  Prefactor     3.8493        6.6175        .16989E-03   -1.5316    
  20  Prefactor     .10000E-03    36.314        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     163.64        81.812        .15763E-03   -1.3142    
  22  norm          1.6877        7.1252        .26576E-03   -1.5448    
  23  Prefactor     8.3527        19.496        .13870E-03   -1.5130    
  24  norm          .69626        .96552        .71941E-03   -1.5541    
  25  norm          13.114        9.0365        .11059E-03   -1.4984    
  26  Prefactor     5.8419        4.8897        .11488E-03   -1.5225    
  27  Prefactor     42.795        28.492        .61279E-04   -1.4399    
  28  Prefactor     62.926        70.263        .25268E-03   -1.4120    
  29  norm          .10000E-03    15.614        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     16.197        9.9700        .99512E-04   -1.4903    
  31  Prefactor     .10000E-03    2.4520        .94471E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     .10000E-03    27.319        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Normalizat    1.0654        .28502        .24177E-03   -.90870    
  34  Prefactor     .70435        .29169        .31319E-03   -1.0336    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.84516e-09
Minuit parameter uncertainties:
  1  0.000121921
  2  6.72724e-05
  3  6.94573e-05
  4  9.74287e-06
  5  0.000117912
  6  12.7072
  7  0.00205544
  8  9.6849e-05
  9  94.4145
  10  0.000118965
  11  10.142
  12  31.4506
  13  80.698
  14  24.4125
  15  0.000384576
  16  2.42829e-06
  17  7.23159
  18  13.8217
  19  6.61872
  20  7.5476e-05
  21  81.8686
  22  6.9366
  23  19.5106
  24  0.965544
  25  9.03742
  26  4.89006
  27  28.5015
  28  70.3554
  29  1.8664e-05
  30  9.97099
  31  2.91158e-05
  32  0.000320793
  33  0.285429
  34  0.292324
Done.

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

Extracting fit parameters...

4FGL J2336.6-4115
   Spectrum: LogParabola
490         norm:  1.311e+01  9.037e+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:  7.043e-01  2.923e-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.065e+00  2.854e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.63
Ra Dec: 354.164 -41.258
Photon Index (Fixed Index): 2.22 +/- 0.00
Photon Flux (Fixed Index): 8.58e-08 +/- 5.91e-08
Energy Flux (Fixed Index): 3.48e-05 +/- 2.40e-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) = 3869.77071529
delta logL = 1.31596046343

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3869.75702966
delta logL = 1.32964609352

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.7851       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.2378       1.0000          .0000       5.0000    
     3 'Normalizat'    .96180       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .78527       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=   3869.757     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      278 TOTAL
                     EDM=   .36E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.7841        7.5194        .66099E-04    .94287E-03
   2  alpha         3.2380        .84791        .73869E-02    .82706E-04
   3  Normalizat    .96182        .27617        .25229E-03    .13519E-05
   4  Prefactor     .78523        .29429        .29810E-03   -.15285E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 5.78405
  alpha      = 3.23798
  Normalizat = 0.961817
  Prefactor  = 0.785233
 **********
 **   18 **HESSE 
 **********

 FCN=   3869.757     FROM HESSE     STATUS=OK            25 CALLS      303 TOTAL
                     EDM=   .36E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.7841        6.3642        .26440E-05   -1.5227    
   2  alpha         3.2380        .72179        .29548E-03    .29965    
   3  Normalizat    .96182        .27544        .10092E-04   -.94321    
   4  Prefactor     .78523        .29314        .11924E-04   -1.0027    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.63376e-10
Minuit parameter uncertainties:
  1  6.3649
  2  0.733255
  3  0.275844
  4  0.293728
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/56187': 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) = 3869.75702961
delta logL = 1.32964614032

Extracting fit parameters...

4FGL J2336.6-4115
   Spectrum: LogParabola
490         norm:  5.784e+00  6.365e+00  1.000e-04  1.000e+04 ( 1.000e-12)
491        alpha:  3.238e+00  7.333e-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:  7.852e-01  2.937e-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.618e-01  2.758e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.40
Ra Dec: 354.164 -41.258
Photon Index (Free Index): 3.24 +/- 0.73
Photon Flux (Free Index): 1.61e-07 +/- 8.01e-08
Energy Flux (Free Index): 3.13e-05 +/- 1.52e-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/56187/cmap_HighResolution_540777601_541036801_4FGL_J2336.6-4115_daily_bin1163.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.58e-08', energy_flux2='3.13e-05', photon_flux_error='5.91e-08', dlogl='1.33e+00', energy_flux='3.48e-05', photon_flux2='1.61e-07', job_status='DONE', time_completed='2021-09-30 02:02:03.916464', photon_index_error2='0.73', photon_index2='3.24', ts='4.63', fit_tolerance='1e-08', GAL='0.70', photon_index_error='0.00', energy_flux_error2='1.52e-05', EG='1.07', time_epoch_completed='1632992523.92', return_code='0', job_id='56187', GAL2='0.79', EG2='0.96', return_code2='0', energy_flux_error='2.40e-05', photon_flux_error2='8.01e-08', ts2='7.40', photon_index='2.22' WHERE bin_id='1163' AND source_name='4FGL J2336.6-4115' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 02:02:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0235>
Subject: Job 56187: <4FGL_J2336.6-4115_daily_bin1163> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2336.6-4115_daily_bin1163 354.164 -41.2579 540777601 541036801 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 :                                   636.05 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             288.39 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   677 sec.
    Turnaround time :                            679 sec.

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

