/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 7 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

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

number of points = 7402
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2336.6-4115_daily_bin420
RA = 354.164, Dec = -41.2579
tmin = 348192001, tmax = 348451201
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='51956', job_status='RUN', time_executed='2021-09-30 01:35:30.838204', time_epoch_executed='1632990930.84' WHERE source_name='4FGL J2336.6-4115' and cadence='daily' and bin_id='420'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/51956

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/51956/ft1_4FGL_J2336.6-4115_daily_bin420.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/51956/ft2_4FGL_J2336.6-4115_daily_bin420.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/51956/ft1_4FGL_J2336.6-4115_daily_bin420.fits outfile=/scratch/kocevski/51956/ft1_filteredMKT_4FGL_J2336.6-4115_daily_bin420.fits ra=354.164 dec=-41.2579 rad=12.0 tmin=348192001.0 tmax=348451201.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.47
user 3.20
sys 0.20

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/51956/ft1_filtered_4FGL_J2336.6-4115_daily_bin420.fits" evtable="EVENTS" scfile=/scratch/kocevski/51956/ft2_4FGL_J2336.6-4115_daily_bin420.fits sctable="SC_DATA" outfile=/scratch/kocevski/51956/ltcube_348192001_348451201_4FGL_J2336.6-4115_daily_bin420.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/51956/ft2_4FGL_J2336.6-4115_daily_bin420.fits
.....................!
real 11.68
user 11.29
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/51956/ft1_filtered_4FGL_J2336.6-4115_daily_bin420.fits evtable="EVENTS" scfile=/scratch/kocevski/51956/ft2_4FGL_J2336.6-4115_daily_bin420.fits sctable="SC_DATA" expcube=/scratch/kocevski/51956/ltcube_348192001_348451201_4FGL_J2336.6-4115_daily_bin420.fits outfile=/scratch/kocevski/51956/expmap_348192001_348451201_4FGL_J2336.6-4115_daily_bin420.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/51956/ltcube_348192001_348451201_4FGL_J2336.6-4115_daily_bin420.fits
.....................!
real 191.28
user 185.13
sys 5.73

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/51956/ft1_filtered_4FGL_J2336.6-4115_daily_bin420.fits scfile=/scratch/kocevski/51956/ft2_4FGL_J2336.6-4115_daily_bin420.fits outfile=/scratch/kocevski/51956/cmap_348192001_348451201_4FGL_J2336.6-4115_daily_bin420.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.54
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/51956/ft1_filtered_4FGL_J2336.6-4115_daily_bin420.fits scfile=/scratch/kocevski/51956/ft2_4FGL_J2336.6-4115_daily_bin420.fits outfile=/scratch/kocevski/51956/cmap_HighResolution_348192001_348451201_4FGL_J2336.6-4115_daily_bin420.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.59
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/51956/ft1_filtered_4FGL_J2336.6-4115_daily_bin420.fits evtable="EVENTS" scfile=/scratch/kocevski/51956/ft2_4FGL_J2336.6-4115_daily_bin420.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/51956/Model_4FGL_J2336.6-4115_daily_bin420.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/51956/ft1_filtered_4FGL_J2336.6-4115_daily_bin420.fits.....................!
real 36.14
user 34.81
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    14.046       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    32.044       1.0000         .10000E-03   10000.    
    10 'Prefactor '    36.492       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    23.089       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    6.0169       1.0000         .10000E-03   10000.    
    16 'norm      '    4.7433       1.0000         .10000E-03   10000.    
    17 'norm      '    9.4156       1.0000         .10000E-03   10000.    
    18 'norm      '    14.129       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    15.353       1.0000         .10000E-03   10000.    
    21 'Prefactor '    6.1540       1.0000         .10000E-03   10000.    
    22 'norm      '    12.046       1.0000         .10000E-03   10000.    
    23 'Prefactor '    13.571       1.0000         .10000E-03   10000.    
    24 'norm      '    4.8208       1.0000         .10000E-03   10000.    
    25 'norm      '    .19614E-02   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    30.802       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .15947E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .41524E-02   1.0000         .10000E-03   10000.    
    31 'Prefactor '    9.1292       1.0000         .10000E-03   10000.    
    32 'Prefactor '    52.273       1.0000         .10000E-03   10000.    
    33 'Normalizat'    1.1895       1.0000         .10000E-01   10.000    
    34 'Prefactor '    .67724       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=   4186.657     FROM MIGRAD    STATUS=CONVERGED    919 CALLS     4818 TOTAL
                     EDM=   .67E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    32.880        .54448E-06** at limit **
   2  Prefactor     .10000E-03    21.591        .26071E-06** at limit **
   3  Prefactor     .10000E-03    21.226        .19475E-06** at limit **
   4  Prefactor     .10000E-03    17.334        .31567E-06** at limit **
   5  Prefactor     .10000E-03    11.678        .21106E-06** at limit **
   6  Prefactor     .10000E-03    12.124        .58998E-06** at limit **
   7  Prefactor     14.045        8.1488       -.93747E-06   -.78027E-03
   8  Prefactor     .10000E-03    21.926        .12746E-06** at limit **
   9  Prefactor     32.057        37.683       -.21888E-06   -.47887E-04
  10  Prefactor     36.487        32.319       -.32068E-06    .63864E-05
  11  Prefactor     .10000E-03    1.9737        .21303E-07** at limit **
  12  Prefactor     .10000E-03    25.770        .33645E-06** at limit **
  13  Prefactor     23.159        79.494       -.33277E-05   -.10909E-03
  14  Prefactor     .10000E-03    31.490        .19941E-05** at limit **
  15  norm          6.0169        11.289        .34145E-07   -.65257E-04
  16  norm          4.7442        4.7347        .14650E-06    .15212E-03
  17  norm          9.4131        9.9213        .12193E-06   -.10762E-03
  18  norm          14.129        9.8059       -.75024E-07   -.52960E-04
  19  Prefactor     .10000E-03    3.0923        .72400E-07** at limit **
  20  Prefactor     15.385        58.708       -.24174E-05   -.30580E-04
  21  Prefactor     6.1526        101.67       -.29068E-05   -.58022E-05
  22  norm          12.053        9.2224       -.12770E-06   -.40401E-04
  23  Prefactor     13.571        17.623       -.27782E-06   -.25059E-04
  24  norm          4.8208        1.8875       -.15570E-07   -.43427E-04
  25  norm          .10000E-03    4.6893        .86371E-07** at limit **
  26  Prefactor     .10000E-03    2.5448        .29759E-06** at limit **
  27  Prefactor     30.799        32.385       -.54008E-06   -.31773E-04
  28  Prefactor     .10000E-03    116.25        .18686E-05** at limit **
  29  norm          .10000E-03    14.717        .12731E-06** at limit **
  30  Prefactor     .10000E-03    86.012        .15333E-04** at limit **
  31  Prefactor     9.1308        7.0010       -.56295E-06   -.28661E-03
  32  Prefactor     52.295        80.704       -.76391E-05   -.77573E-04
  33  Normalizat    1.1894        .27961        .70463E-05   -.38855E-03
  34  Prefactor     .67731        .27327       -.92349E-05   -.84406E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.0454
  Prefactor  = 0.0001
  Prefactor  = 32.0565
  Prefactor  = 36.4871
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 23.1592
  Prefactor  = 0.000100003
  norm       = 6.01686
  norm       = 4.74422
  norm       = 9.41313
  norm       = 14.1295
  Prefactor  = 0.0001
  Prefactor  = 15.3854
  Prefactor  = 6.15257
  norm       = 12.0526
  Prefactor  = 13.5711
  norm       = 4.82076
  norm       = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 30.7993
  Prefactor  = 0.000100004
  norm       = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 9.13079
  Prefactor  = 52.2948
  Normalizat = 1.18945
  Prefactor  = 0.677313
 **********
 **   18 **HESSE 
 **********

 FCN=   4186.657     FROM HESSE     STATUS=OK           732 CALLS     5550 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    32.916        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    21.650        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    21.248        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    17.350        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    11.689        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    12.254        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     14.045        8.2117        .53436E-03   -1.4958    
   8  Prefactor     .10000E-03    21.976        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     32.057        37.695        .35392E-03   -1.4575    
  10  Prefactor     36.487        32.314        .66343E-04   -1.4499    
  11  Prefactor     .10000E-03    1.9748        .88778E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    25.791        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     23.159        80.173        .83361E-04   -1.4745    
  14  Prefactor     .10000E-03    32.276        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          6.0169        11.286        .16369E-03   -1.5217    
  16  norm          4.7442        4.7432        .13727E-03   -1.5272    
  17  norm          9.4131        9.9262        .13060E-03   -1.5094    
  18  norm          14.129        9.8002        .10656E-03   -1.4956    
  19  Prefactor     .10000E-03    3.0945        .11103E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     15.385        57.749        .10222E-03   -1.4923    
  21  Prefactor     6.1526        101.42        .16183E-03   -1.5212    
  22  norm          12.053        9.0564        .11542E-03   -1.5013    
  23  Prefactor     13.571        17.595        .10873E-03   -1.4971    
  24  norm          4.8208        1.8859        .51496E-04   -1.5269    
  25  norm          .10000E-03    35.460        .24617E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    2.5637        .10059E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     30.799        32.298        .72193E-04   -1.4597    
  28  Prefactor     .10000E-03    116.90        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          .10000E-03    14.720        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    84.305        .37789E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     9.1308        6.9926        .13265E-03   -1.5104    
  32  Prefactor     52.295        79.644        .55473E-04   -1.4260    
  33  Normalizat    1.1894        .28118        .23130E-03   -.86930    
  34  Prefactor     .67731        .27523        .31796E-03   -1.0442    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.28129e-09
Minuit parameter uncertainties:
  1  0.000209647
  2  4.19919e-05
  3  9.56075e-06
  4  9.9762e-05
  5  8.36614e-05
  6  4.32013e-05
  7  8.21239
  8  4.91077e-05
  9  37.7228
  10  32.3295
  11  5.38149e-07
  12  6.4737e-05
  13  80.5496
  14  0.000586648
  15  11.2905
  16  4.74357
  17  9.92798
  18  9.80135
  19  5.67201e-06
  20  57.9602
  21  50.0601
  22  9.05742
  23  17.602
  24  1.88595
  25  0.000548755
  26  2.469e-05
  27  32.3168
  28  0.00134358
  29  4.26039e-05
  30  0.000724883
  31  6.99323
  32  79.8065
  33  0.28154
  34  0.275787
Done.

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

Extracting fit parameters...

4FGL J2336.6-4115
   Spectrum: LogParabola
490         norm:  1.000e-04  5.488e-04  1.000e-04  1.000e+04 ( 1.000e-12)
491        alpha:  2.217e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
492         beta:  1.146e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
493           Eb:  8.053e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
582    Prefactor:  6.773e-01  2.758e-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.189e+00  2.815e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 354.164 -41.258
Photon Flux Upper Limit: 1.05e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.25e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/51956/likelihoodResults_348192001_348451201_4FGL_J2336.6-4115_daily_bin420.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4186.65721632
delta logL = -0.000134104187055

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4186.65708189
delta logL = 3.29819158651e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .11319E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3086       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1895       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .67724       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5850E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4186.657     FROM MIGRAD    STATUS=CONVERGED     74 CALLS      250 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10812E-03    90.309        .76708E-01** at limit **
   2  alpha         2.4540        3.4590        .41305       -.14754E-04
   3  Normalizat    1.1894        .30712E-01    .52316E-01   -.29261E-03
   4  Prefactor     .67731        .32682E-01    .71836E-01   -.11284E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000108123
  alpha      = 2.45395
  Normalizat = 1.18945
  Prefactor  = 0.67731
 **********
 **   18 **HESSE 
 **********

 FCN=   4186.657     FROM HESSE     STATUS=NOT POSDEF    41 CALLS      291 TOTAL
                     EDM=   .67E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10812E-03    707.19        .34607E-01   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.4540        3.7057        .50000       -.18419E-01
   3  Normalizat    1.1894        .55442E-01    .23131E-03   -.86929    
   4  Prefactor     .67731        .57430E-01    .31795E-03   -1.0442    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.6648e-09
Minuit parameter uncertainties:
  1  0.153427
  2  20.0472
  3  0.0554444
  4  0.0574351
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/51956': 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): 102
logL (Free Index) = 4186.65708096
delta logL = 1.25454516819e-06

Extracting fit parameters...

4FGL J2336.6-4115
   Spectrum: LogParabola
490         norm:  1.081e-04  1.534e-01  1.000e-04  1.000e+04 ( 1.000e-12)
491        alpha:  2.454e+00  2.005e+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:  6.773e-01  5.744e-02  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.189e+00  5.544e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 354.164 -41.258

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/51956/cmap_HighResolution_348192001_348451201_4FGL_J2336.6-4115_daily_bin420.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.25e-05', job_status='DONE', photon_flux_upper_limit='1.05e-07', time_completed='2021-09-30 01:48:05.826999', job_id='51956', GAL2='0.68', fit_tolerance='1e-08', EG2='1.19', EG='1.19', time_epoch_completed='1632991685.83', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.68', dlogl='1.25e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.22' WHERE bin_id='420' AND source_name='4FGL J2336.6-4115' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 01:48:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0210>
Subject: Job 51956: <4FGL_J2336.6-4115_daily_bin420> in cluster <slac> Done

Job <4FGL_J2336.6-4115_daily_bin420> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Sep 30 01:35:13 2021
Job was executed on host(s) <bullet0210>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 01:35:15 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:35:15 2021
Terminated at Thu Sep 30 01:48:06 2021
Results reported at Thu Sep 30 01:48:06 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2336.6-4115_daily_bin420 354.164 -41.2579 348192001 348451201 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 :                                   752.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             357.40 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   771 sec.
    Turnaround time :                            773 sec.

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

