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


Performing analysis on: 4FGL_J2336.6-4115_daily_bin1407
RA = 354.164, Dec = -41.2579
tmin = 604022401, tmax = 604281601
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='57541', job_status='RUN', time_executed='2021-09-30 01:57:18.919949', time_epoch_executed='1632992238.92' WHERE source_name='4FGL J2336.6-4115' and cadence='daily' and bin_id='1407'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/57541

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/57541/ft1_4FGL_J2336.6-4115_daily_bin1407.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/57541/ft2_4FGL_J2336.6-4115_daily_bin1407.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/57541/ft1_4FGL_J2336.6-4115_daily_bin1407.fits outfile=/scratch/kocevski/57541/ft1_filteredMKT_4FGL_J2336.6-4115_daily_bin1407.fits ra=354.164 dec=-41.2579 rad=12.0 tmin=604022401.0 tmax=604281601.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.20
user 3.96
sys 0.22

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/57541/ft1_filtered_4FGL_J2336.6-4115_daily_bin1407.fits" evtable="EVENTS" scfile=/scratch/kocevski/57541/ft2_4FGL_J2336.6-4115_daily_bin1407.fits sctable="SC_DATA" outfile=/scratch/kocevski/57541/ltcube_604022401_604281601_4FGL_J2336.6-4115_daily_bin1407.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/57541/ft2_4FGL_J2336.6-4115_daily_bin1407.fits
.....................!
real 11.79
user 11.45
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/57541/ft1_filtered_4FGL_J2336.6-4115_daily_bin1407.fits evtable="EVENTS" scfile=/scratch/kocevski/57541/ft2_4FGL_J2336.6-4115_daily_bin1407.fits sctable="SC_DATA" expcube=/scratch/kocevski/57541/ltcube_604022401_604281601_4FGL_J2336.6-4115_daily_bin1407.fits outfile=/scratch/kocevski/57541/expmap_604022401_604281601_4FGL_J2336.6-4115_daily_bin1407.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/57541/ltcube_604022401_604281601_4FGL_J2336.6-4115_daily_bin1407.fits
.....................!
real 190.30
user 184.71
sys 5.13

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/57541/ft1_filtered_4FGL_J2336.6-4115_daily_bin1407.fits scfile=/scratch/kocevski/57541/ft2_4FGL_J2336.6-4115_daily_bin1407.fits outfile=/scratch/kocevski/57541/cmap_604022401_604281601_4FGL_J2336.6-4115_daily_bin1407.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=354.164 yref=-41.2579 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.53
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/57541/ft1_filtered_4FGL_J2336.6-4115_daily_bin1407.fits scfile=/scratch/kocevski/57541/ft2_4FGL_J2336.6-4115_daily_bin1407.fits outfile=/scratch/kocevski/57541/cmap_HighResolution_604022401_604281601_4FGL_J2336.6-4115_daily_bin1407.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.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/57541/ft1_filtered_4FGL_J2336.6-4115_daily_bin1407.fits evtable="EVENTS" scfile=/scratch/kocevski/57541/ft2_4FGL_J2336.6-4115_daily_bin1407.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/57541/Model_4FGL_J2336.6-4115_daily_bin1407.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/57541/ft1_filtered_4FGL_J2336.6-4115_daily_bin1407.fits.....................!
real 38.00
user 36.70
sys 1.14

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13864E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    18.973       1.0000         .10000E-03   10000.    
     5 'Prefactor '    16.760       1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.4242       1.0000         .10000E-03   10000.    
     7 'Prefactor '    6.5641       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    14.762       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .32870E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    4.3515       1.0000         .10000E-03   10000.    
    16 'norm      '    5.7313       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    8.0106       1.0000         .10000E-03   10000.    
    20 'Prefactor '    17.966       1.0000         .10000E-03   10000.    
    21 'Prefactor '    8.1215       1.0000         .10000E-03   10000.    
    22 'norm      '    .10036E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10129E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10049E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    3.6274       1.0000         .10000E-03   10000.    
    27 'Prefactor '    21.218       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10075E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    2.5629       1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10166E-03   1.0000         .10000E-03   10000.    
    32 'Prefactor '    44.883       1.0000         .10000E-03   10000.    
    33 'Normalizat'    .66339       1.0000         .10000E-01   10.000    
    34 'Prefactor '    1.2021       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=   4818.861     FROM MIGRAD    STATUS=CONVERGED    916 CALLS     4819 TOTAL
                     EDM=   .59E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    108.60       -.41442E-05** at limit **
   2  Prefactor     .10000E-03    9.4223       -.27072E-05** at limit **
   3  Prefactor     .10000E-03    10.481        .34343E-05** at limit **
   4  Prefactor     18.969        39.857       -.60503E-05   -.67239E-05
   5  Prefactor     16.758        18.924        .13171E-06    .33237E-05
   6  Prefactor     7.4247        6.5239       -.59538E-06   -.10185E-02
   7  Prefactor     6.5647        5.3241       -.30719E-06   -.12843E-03
   8  Prefactor     .10000E-03    8.3546        .94762E-06** at limit **
   9  Prefactor     .10000E-03    17.784        .60338E-05** at limit **
  10  Prefactor     .10000E-03    22.527        .36110E-05** at limit **
  11  Prefactor     .10000E-03    1.6574       -.20052E-06** at limit **
  12  Prefactor     14.763        26.323       -.15384E-06   -.26083E-05
  13  Prefactor     .10000E-03    25.086       -.78902E-05** at limit **
  14  Prefactor     .10003E-03    8.7889       -.63554E-06** at limit **
  15  norm          4.3515        8.1746       -.24394E-06   -.14304E-03
  16  norm          5.7309        5.4790       -.79468E-06    .80727E-04
  17  norm          .10000E-03    1.8430       -.42073E-06** at limit **
  18  norm          .10000E-03    5.0952       -.50805E-08** at limit **
  19  Prefactor     8.0125        7.0816       -.98038E-07   -.15906E-03
  20  Prefactor     17.949        31.950       -.92743E-05   -.23873E-04
  21  Prefactor     8.1301        40.422        .81045E-05   -.88152E-05
  22  norm          .10000E-03    3.3597        .44199E-06** at limit **
  23  Prefactor     .10000E-03    16.546        .10584E-05** at limit **
  24  norm          .10000E-03    .56146        .11676E-06** at limit **
  25  norm          .10000E-03    4.0800        .20255E-06** at limit **
  26  Prefactor     3.6308        5.0983        .21472E-05   -.20155E-03
  27  Prefactor     21.204        36.108       -.10449E-04   -.26199E-04
  28  Prefactor     .10000E-03    45.328        .33152E-05** at limit **
  29  norm          .10000E-03    15.097       -.71976E-05** at limit **
  30  Prefactor     2.5623        4.3467        .32724E-06   -.29005E-03
  31  Prefactor     .10000E-03    2.9760        .11842E-07** at limit **
  32  Prefactor     44.889        47.446        .49027E-05   -.27683E-05
  33  Normalizat    .66312        .18724        .26032E-05   -.51473E-04
  34  Prefactor     1.2023        .20680        .26746E-08    .74846E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 18.9687
  Prefactor  = 16.7581
  Prefactor  = 7.42469
  Prefactor  = 6.56469
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.7631
  Prefactor  = 0.0001
  Prefactor  = 0.000100026
  norm       = 4.35148
  norm       = 5.73085
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 8.01254
  Prefactor  = 17.9488
  Prefactor  = 8.13007
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 3.63084
  Prefactor  = 21.204
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 2.56234
  Prefactor  = 0.0001
  Prefactor  = 44.8891
  Normalizat = 0.663115
  Prefactor  = 1.20228
 **********
 **   18 **HESSE 
 **********

 FCN=   4818.861     FROM HESSE     STATUS=OK           730 CALLS     5549 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    109.15        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    9.4179        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    10.484        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     18.969        39.842        .91951E-04   -1.4837    
   5  Prefactor     16.758        18.926        .97832E-04   -1.4889    
   6  Prefactor     7.4247        6.6006        .73597E-03   -1.5163    
   7  Prefactor     6.5647        5.3280        .13739E-03   -1.5195    
   8  Prefactor     .10000E-03    8.3562        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    17.755        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    22.754        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    1.6594        .87279E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     14.763        26.338        .10424E-03   -1.4939    
  13  Prefactor     .10000E-03    25.073        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10003E-03    52.662        .39677E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          4.3515        8.1772        .19309E-03   -1.5291    
  16  norm          5.7309        5.4742        .15204E-03   -1.5229    
  17  norm          .10000E-03    1.8441        .91993E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    5.1866        .15300E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     8.0125        7.0337        .14166E-03   -1.5142    
  20  Prefactor     17.949        31.970        .94492E-04   -1.4860    
  21  Prefactor     8.1301        40.296        .14069E-03   -1.5138    
  22  norm          .10000E-03    3.4023        .12384E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    16.659        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    .58156        .10107E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    4.2104        .27287E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     3.6308        4.9897        .14001E-03   -1.5327    
  27  Prefactor     21.204        35.513        .86954E-04   -1.4787    
  28  Prefactor     .10000E-03    45.404        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          .10000E-03    15.070        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     2.5623        4.3169        .18028E-03   -1.5388    
  31  Prefactor     .10000E-03    3.0304        .11681E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     44.889        47.408        .59844E-04   -1.4367    
  33  Normalizat    .66312        .22750        .25557E-03   -1.0537    
  34  Prefactor     1.2023        .25291        .22641E-03   -.86261    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.60746e-09
Minuit parameter uncertainties:
  1  0.000158915
  2  2.10926e-05
  3  1.01152e-05
  4  39.8983
  5  18.9331
  6  6.60122
  7  5.32835
  8  1.29387e-06
  9  1.09171e-05
  10  6.97536e-05
  11  1.72946e-06
  12  26.3582
  13  1.78937e-05
  14  0.00235833
  15  8.17932
  16  5.47472
  17  6.07279e-06
  18  1.45297e-05
  19  7.03445
  20  32.0005
  21  36.2389
  22  7.19367e-05
  23  0.00011211
  24  4.78363e-06
  25  8.40594e-05
  26  4.99024
  27  35.5488
  28  8.96034e-05
  29  3.08379e-06
  30  4.31742
  31  2.108e-05
  32  47.4483
  33  0.22782
  34  0.253164
Done.

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

Extracting fit parameters...

4FGL J2336.6-4115
   Spectrum: LogParabola
490         norm:  1.000e-04  8.406e-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:  1.202e+00  2.532e-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:  6.631e-01  2.278e-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: 6.29e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.55e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/57541/likelihoodResults_604022401_604281601_4FGL_J2336.6-4115_daily_bin1407.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): 0
logL (Free Index) = 4818.86250583
delta logL = -0.0011335365989

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4818.86137244
delta logL = -1.49630068336e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10523E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2491       1.0000          .0000       5.0000    
     3 'Normalizat'    .66317       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2022       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=   4818.861     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      200 TOTAL
                     EDM=   .49E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    6.3736        .90712E-02** at limit **
   2  alpha         2.2844        3.5921        .41417       -.41125E-04
   3  Normalizat    .66311        .17487        .41797E-01   -.59763E-04
   4  Prefactor     1.2023        .20403        .51211E-01    .20629E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100002
  alpha      = 2.28437
  Normalizat = 0.663113
  Prefactor  = 1.20228
 **********
 **   18 **HESSE 
 **********

 FCN=   4818.861     FROM HESSE     STATUS=OK            29 CALLS      229 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    4.6334        .28510E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.2844        3.4984        .16567       -.86359E-01
   3  Normalizat    .66311        .21133        .25557E-03   -1.0537    
   4  Prefactor     1.2023        .24671        .22641E-03   -.86261    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.70381e-09
Minuit parameter uncertainties:
  1  0.000210555
  2  2.49096
  3  0.211584
  4  0.24695
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/57541': 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) = 4818.86137119
delta logL = 1.10154178401e-06

Extracting fit parameters...

4FGL J2336.6-4115
   Spectrum: LogParabola
490         norm:  1.000e-04  2.106e-04  1.000e-04  1.000e+04 ( 1.000e-12)
491        alpha:  2.284e+00  2.491e+00  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:  1.202e+00  2.470e-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:  6.631e-01  2.116e-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/57541/cmap_HighResolution_604022401_604281601_4FGL_J2336.6-4115_daily_bin1407.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.55e-05', job_status='DONE', photon_flux_upper_limit='6.29e-08', time_completed='2021-09-30 02:11:20.538992', job_id='57541', GAL2='1.20', fit_tolerance='1e-08', EG2='0.66', EG='0.66', time_epoch_completed='1632993080.54', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.20', dlogl='1.10e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.22' WHERE bin_id='1407' AND source_name='4FGL J2336.6-4115' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 02:11:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0067>
Subject: Job 57541: <4FGL_J2336.6-4115_daily_bin1407> in cluster <slac> Done

Job <4FGL_J2336.6-4115_daily_bin1407> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Sep 30 01:55:42 2021
Job was executed on host(s) <bullet0067>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 01:55:45 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:55:45 2021
Terminated at Thu Sep 30 02:11:21 2021
Results reported at Thu Sep 30 02:11:21 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2336.6-4115_daily_bin1407 354.164 -41.2579 604022401 604281601 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 :                                   811.21 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             291.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   935 sec.
    Turnaround time :                            939 sec.

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

