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


Performing analysis on: 4FGL_J2336.6-4115_daily_bin1602
RA = 354.164, Dec = -41.2579
tmin = 654566401, tmax = 654825601
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='862883', job_status='RUN', time_executed='2021-10-02 00:25:47.323785', time_epoch_executed='1633159547.32' WHERE source_name='4FGL J2336.6-4115' and cadence='daily' and bin_id='1602'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/862883

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/862883/ft1_4FGL_J2336.6-4115_daily_bin1602.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/862883/ft2_4FGL_J2336.6-4115_daily_bin1602.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/862883/ft1_4FGL_J2336.6-4115_daily_bin1602.fits outfile=/scratch/kocevski/862883/ft1_filteredMKT_4FGL_J2336.6-4115_daily_bin1602.fits ra=354.164 dec=-41.2579 rad=12.0 tmin=654566401.0 tmax=654825601.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 4.98
user 4.73
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/862883/ft1_filtered_4FGL_J2336.6-4115_daily_bin1602.fits" evtable="EVENTS" scfile=/scratch/kocevski/862883/ft2_4FGL_J2336.6-4115_daily_bin1602.fits sctable="SC_DATA" outfile=/scratch/kocevski/862883/ltcube_654566401_654825601_4FGL_J2336.6-4115_daily_bin1602.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/862883/ft2_4FGL_J2336.6-4115_daily_bin1602.fits
.....................!
real 12.31
user 11.95
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/862883/ft1_filtered_4FGL_J2336.6-4115_daily_bin1602.fits evtable="EVENTS" scfile=/scratch/kocevski/862883/ft2_4FGL_J2336.6-4115_daily_bin1602.fits sctable="SC_DATA" expcube=/scratch/kocevski/862883/ltcube_654566401_654825601_4FGL_J2336.6-4115_daily_bin1602.fits outfile=/scratch/kocevski/862883/expmap_654566401_654825601_4FGL_J2336.6-4115_daily_bin1602.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/862883/ltcube_654566401_654825601_4FGL_J2336.6-4115_daily_bin1602.fits
.....................!
real 190.61
user 185.11
sys 5.16

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/862883/ft1_filtered_4FGL_J2336.6-4115_daily_bin1602.fits scfile=/scratch/kocevski/862883/ft2_4FGL_J2336.6-4115_daily_bin1602.fits outfile=/scratch/kocevski/862883/cmap_654566401_654825601_4FGL_J2336.6-4115_daily_bin1602.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.51
user 0.36
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/862883/ft1_filtered_4FGL_J2336.6-4115_daily_bin1602.fits scfile=/scratch/kocevski/862883/ft2_4FGL_J2336.6-4115_daily_bin1602.fits outfile=/scratch/kocevski/862883/cmap_HighResolution_654566401_654825601_4FGL_J2336.6-4115_daily_bin1602.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=354.164 yref=-41.2579 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/862883/ft1_filtered_4FGL_J2336.6-4115_daily_bin1602.fits evtable="EVENTS" scfile=/scratch/kocevski/862883/ft2_4FGL_J2336.6-4115_daily_bin1602.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/862883/Model_4FGL_J2336.6-4115_daily_bin1602.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/862883/ft1_filtered_4FGL_J2336.6-4115_daily_bin1602.fits.....................!
real 39.97
user 38.67
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10207E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    56.567       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    7.8038       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.1206       1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.8714       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .11165E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    114.96       1.0000         .10000E-03   10000.    
    14 'Prefactor '    7.3161       1.0000         .10000E-03   10000.    
    15 'norm      '    9.1686       1.0000         .10000E-03   10000.    
    16 'norm      '    .31762E-02   1.0000         .10000E-03   10000.    
    17 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    4.4737       1.0000         .10000E-03   10000.    
    19 'Prefactor '    9.5949       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    102.95       1.0000         .10000E-03   10000.    
    22 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    1.3184       1.0000         .10000E-03   10000.    
    25 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    28.968       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .45593E-03   1.0000         .10000E-03   10000.    
    32 'Prefactor '    76.260       1.0000         .10000E-03   10000.    
    33 'Normalizat'    1.5387       1.0000         .10000E-01   10.000    
    34 'Prefactor '    .43139       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=   5143.722     FROM MIGRAD    STATUS=CONVERGED    928 CALLS     4845 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    85.490       -.89748E-06** at limit **
   2  Prefactor     .10000E-03    8.6626        .11598E-07** at limit **
   3  Prefactor     56.561        53.196       -.18354E-05   -.73610E-04
   4  Prefactor     .10000E-03    25.025        .77156E-06** at limit **
   5  Prefactor     7.8843        50.861       -.17134E-04   -.19039E-03
   6  Prefactor     1.1203        12.289        .25790E-04   -.19093E-03
   7  Prefactor     5.8690        7.4784        .25164E-05    .70895E-03
   8  Prefactor     .10000E-03    42.171        .20912E-05** at limit **
   9  Prefactor     .10000E-03    15.621        .73520E-06** at limit **
  10  Prefactor     .10000E-03    5.5361       -.13545E-06** at limit **
  11  Prefactor     .10000E-03    4.0270       -.40969E-06** at limit **
  12  Prefactor     .10000E-03    21.628       -.69434E-06** at limit **
  13  Prefactor     114.92        81.931        .26563E-05   -.96782E-05
  14  Prefactor     7.3191        10.538        .14653E-06   -.47705E-04
  15  norm          9.1684        10.370        .16442E-06   -.23908E-04
  16  norm          .10000E-03    5.2669        .20693E-05** at limit **
  17  norm          .10000E-03    4.1463       -.16701E-06** at limit **
  18  norm          4.4752        11.751        .21694E-05   -.52972E-04
  19  Prefactor     9.6022        6.5603       -.33897E-06   -.75967E-03
  20  Prefactor     .10000E-03    20.288       -.79617E-06** at limit **
  21  Prefactor     102.94        72.875        .61383E-06    .86191E-05
  22  norm          .10000E-03    2.9849       -.31725E-06** at limit **
  23  Prefactor     .10000E-03    26.594       -.14151E-06** at limit **
  24  norm          1.3194        1.1567        .11793E-06   -.78367E-03
  25  norm          .10000E-03    3.7174       -.12480E-06** at limit **
  26  Prefactor     .10000E-03    1.4440        .15852E-06** at limit **
  27  Prefactor     28.973        30.607       -.57851E-06   -.17642E-03
  28  Prefactor     .10000E-03    24.185        .25524E-06** at limit **
  29  norm          .10000E-03    12.727       -.38026E-06** at limit **
  30  Prefactor     .10000E-03    2.4750        .37182E-06** at limit **
  31  Prefactor     .10020E-03    2.6214        .42136E-06** at limit **
  32  Prefactor     76.282        63.455       -.11393E-05   -.11989E-04
  33  Normalizat    1.5385        .21886       -.11090E-05    .33046E-03
  34  Prefactor     .43163        .22502        .45257E-06    .19330E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 56.5611
  Prefactor  = 0.0001
  Prefactor  = 7.88429
  Prefactor  = 1.12028
  Prefactor  = 5.86904
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 114.917
  Prefactor  = 7.31907
  norm       = 9.1684
  norm       = 0.000100003
  norm       = 0.0001
  norm       = 4.47523
  Prefactor  = 9.60219
  Prefactor  = 0.0001
  Prefactor  = 102.941
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 1.31937
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 28.9732
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100201
  Prefactor  = 76.2823
  Normalizat = 1.53853
  Prefactor  = 0.431626
 **********
 **   18 **HESSE 
 **********

 FCN=   5143.722     FROM HESSE     STATUS=OK           724 CALLS     5569 TOTAL
                     EDM=   .50E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    85.657        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    8.6664        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     56.561        53.295        .53337E-04   -1.4202    
   4  Prefactor     .10000E-03    25.070        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     7.8843        51.543        .14354E-03   -1.5146    
   6  Prefactor     1.1203        12.345        .22183E-02   -1.5496    
   7  Prefactor     5.8690        7.4993        .16573E-03   -1.5223    
   8  Prefactor     .10000E-03    42.338        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    15.619        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    5.5374        .16482E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    4.0559        .14056E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    21.659        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     114.92        81.802        .18762E-03   -1.3560    
  14  Prefactor     7.3191        10.501        .14829E-03   -1.5167    
  15  norm          9.1684        10.365        .66180E-03   -1.5102    
  16  norm          .10000E-03    25.236        .31076E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    4.2486        .28498E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          4.4752        11.720        .95184E-03   -1.5285    
  19  Prefactor     9.6022        6.4863        .12937E-03   -1.5088    
  20  Prefactor     .10000E-03    20.321        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     102.94        72.979        .39627E-04   -1.3675    
  22  norm          .10000E-03    6.2309        .23777E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    27.154        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          1.3194        1.1466        .19169E-03   -1.5478    
  25  norm          .10000E-03    3.8589        .26912E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    1.4507        .83927E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     28.973        30.397        .74438E-04   -1.4631    
  28  Prefactor     .10000E-03    24.188        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          .10000E-03    12.733        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    2.4809        .11019E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .10020E-03    102.81        .21682E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     76.282        63.618        .45981E-04   -1.3959    
  33  Normalizat    1.5385        .24945        .20633E-03   -.76701    
  34  Prefactor     .43163        .25027        .38750E-03   -1.1522    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.959e-09
Minuit parameter uncertainties:
  1  0.000879319
  2  8.87915e-06
  3  53.3402
  4  0.000206709
  5  40.3681
  6  7.43923
  7  7.50052
  8  0.000629809
  9  3.78368e-05
  10  2.2829e-05
  11  5.68942e-05
  12  3.4699e-05
  13  81.8823
  14  10.5036
  15  10.3673
  16  0.000574787
  17  2.29653e-05
  18  11.7257
  19  6.4868
  20  6.25398e-05
  21  73.0424
  22  2.58017e-05
  23  0.000309419
  24  1.14659
  25  1.62943e-05
  26  1.32669e-05
  27  30.4135
  28  0.000117866
  29  7.06635e-06
  30  3.95776e-05
  31  0.00909956
  32  63.6751
  33  0.249646
  34  0.250904
Done.

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

Extracting fit parameters...

4FGL J2336.6-4115
   Spectrum: LogParabola
490         norm:  1.000e-04  1.629e-05  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:  4.316e-01  2.509e-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.539e+00  2.496e-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: 5.84e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.36e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/862883/likelihoodResults_654566401_654825601_4FGL_J2336.6-4115_daily_bin1602.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) = 5143.72344444
delta logL = -0.00123483111656

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5143.72220679
delta logL = 2.81554730464e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10058E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8825       1.0000          .0000       5.0000    
     3 'Normalizat'    1.5392       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .43098       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5143.722     FROM MIGRAD    STATUS=FAILED        97 CALLS      283 TOTAL
                     EDM=   .30E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10860E-03    1830.7        .24508E-02** at limit **
   2  alpha         1.5922        3.4403        .17145E-01    .65189E-05
   3  Normalizat    1.5385        .79676E-01    .20633E-03   -.18568E-04
   4  Prefactor     .43162        .85260E-01    .38751E-03    .11295E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5143.722     FROM SIMPLEX   STATUS=PROGRESS     147 CALLS      430 TOTAL
                     EDM=   .43E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10815E-03    1830.7        .41626E-03** at limit **
   2  alpha         1.5921        3.4403        .61190E-04    .65189E-05
   3  Normalizat    1.5385        .79676E-01    .16579E-05   -.18568E-04
   4  Prefactor     .43162        .85260E-01    .15039E-05    .11295E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5143.722     FROM MIGRAD    STATUS=CONVERGED     37 CALLS      467 TOTAL
                     EDM=   .24E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    12.699        .49016E-03** at limit **
   2  alpha         1.5405        3.8004        .34290E-02    .26524E-07
   3  Normalizat    1.5385        .23386        .82532E-05   -.20938E-04
   4  Prefactor     .43163        .24704        .15500E-04    .26698E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.54045
  Normalizat = 1.53853
  Prefactor  = 0.431625
 **********
 **   18 **HESSE 
 **********

 FCN=   5143.722     FROM HESSE     STATUS=OK            23 CALLS      490 TOTAL
                     EDM=   .24E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    12.700        .98032E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.5405        3.7159        .68580E-03   -.39393    
   3  Normalizat    1.5385        .23384        .16506E-05   -.76701    
   4  Prefactor     .43163        .24709        .31001E-05   -1.1522    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.38919e-11
Minuit parameter uncertainties:
  1  2.0893e-05
  2  138.341
  3  0.23401
  4  0.247704
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/862883': 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) = 5143.72220059
delta logL = 9.02002830117e-06

Extracting fit parameters...

4FGL J2336.6-4115
   Spectrum: LogParabola
490         norm:  1.000e-04  2.089e-05  1.000e-04  1.000e+04 ( 1.000e-12)
491        alpha:  1.540e+00  1.383e+02  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:  4.316e-01  2.477e-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.539e+00  2.340e-01  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/862883/cmap_HighResolution_654566401_654825601_4FGL_J2336.6-4115_daily_bin1602.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.36e-05', job_status='DONE', photon_flux_upper_limit='5.84e-08', time_completed='2021-10-02 00:40:25.931126', job_id='862883', GAL2='0.43', fit_tolerance='1e-08', EG2='1.54', EG='1.54', time_epoch_completed='1633160425.93', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.43', dlogl='9.02e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.22' WHERE bin_id='1602' AND source_name='4FGL J2336.6-4115' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Oct  2 00:40:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0258>
Subject: Job 862883: <4FGL_J2336.6-4115_daily_bin1602> in cluster <slac> Done

Job <4FGL_J2336.6-4115_daily_bin1602> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sat Oct  2 00:25:12 2021
Job was executed on host(s) <bullet0258>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Oct  2 00:25:15 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Oct  2 00:25:15 2021
Terminated at Sat Oct  2 00:40:26 2021
Results reported at Sat Oct  2 00:40:26 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2336.6-4115_daily_bin1602 354.164 -41.2579 654566401 654825601 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 :                                   881.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             320.56 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   911 sec.
    Turnaround time :                            914 sec.

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

