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


Performing analysis on: 4FGL_J2336.6-4115_daily_bin1472
RA = 354.164, Dec = -41.2579
tmin = 620870401, tmax = 621129601
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='58608', job_status='RUN', time_executed='2021-09-30 02:02:44.662507', time_epoch_executed='1632992564.66' WHERE source_name='4FGL J2336.6-4115' and cadence='daily' and bin_id='1472'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/58608

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/58608/ft1_4FGL_J2336.6-4115_daily_bin1472.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/58608/ft2_4FGL_J2336.6-4115_daily_bin1472.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/58608/ft1_4FGL_J2336.6-4115_daily_bin1472.fits outfile=/scratch/kocevski/58608/ft1_filteredMKT_4FGL_J2336.6-4115_daily_bin1472.fits ra=354.164 dec=-41.2579 rad=12.0 tmin=620870401.0 tmax=621129601.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.23
user 3.00
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/58608/ft1_filtered_4FGL_J2336.6-4115_daily_bin1472.fits" evtable="EVENTS" scfile=/scratch/kocevski/58608/ft2_4FGL_J2336.6-4115_daily_bin1472.fits sctable="SC_DATA" outfile=/scratch/kocevski/58608/ltcube_620870401_621129601_4FGL_J2336.6-4115_daily_bin1472.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/58608/ft2_4FGL_J2336.6-4115_daily_bin1472.fits
.....................!
real 12.40
user 12.03
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/58608/ft1_filtered_4FGL_J2336.6-4115_daily_bin1472.fits evtable="EVENTS" scfile=/scratch/kocevski/58608/ft2_4FGL_J2336.6-4115_daily_bin1472.fits sctable="SC_DATA" expcube=/scratch/kocevski/58608/ltcube_620870401_621129601_4FGL_J2336.6-4115_daily_bin1472.fits outfile=/scratch/kocevski/58608/expmap_620870401_621129601_4FGL_J2336.6-4115_daily_bin1472.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/58608/ltcube_620870401_621129601_4FGL_J2336.6-4115_daily_bin1472.fits
.....................!
real 191.40
user 185.85
sys 4.94

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/58608/ft1_filtered_4FGL_J2336.6-4115_daily_bin1472.fits scfile=/scratch/kocevski/58608/ft2_4FGL_J2336.6-4115_daily_bin1472.fits outfile=/scratch/kocevski/58608/cmap_620870401_621129601_4FGL_J2336.6-4115_daily_bin1472.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.52
user 0.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/58608/ft1_filtered_4FGL_J2336.6-4115_daily_bin1472.fits scfile=/scratch/kocevski/58608/ft2_4FGL_J2336.6-4115_daily_bin1472.fits outfile=/scratch/kocevski/58608/cmap_HighResolution_620870401_621129601_4FGL_J2336.6-4115_daily_bin1472.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.53
user 0.37
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/58608/ft1_filtered_4FGL_J2336.6-4115_daily_bin1472.fits evtable="EVENTS" scfile=/scratch/kocevski/58608/ft2_4FGL_J2336.6-4115_daily_bin1472.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/58608/Model_4FGL_J2336.6-4115_daily_bin1472.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/58608/ft1_filtered_4FGL_J2336.6-4115_daily_bin1472.fits...!
real 13.79
user 12.44
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/58608/ft1_filtered_4FGL_J2336.6-4115_daily_bin1472.fits', '/scratch/kocevski/58608/ft2_4FGL_J2336.6-4115_daily_bin1472.fits', expMap='/scratch/kocevski/58608/expmap_620870401_621129601_4FGL_J2336.6-4115_daily_bin1472.fits', expCube='/scratch/kocevski/58608/ltcube_620870401_621129601_4FGL_J2336.6-4115_daily_bin1472.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/58608/Model_4FGL_J2336.6-4115_daily_bin1472.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/58608/ft1_filtered_4FGL_J2336.6-4115_daily_bin1472.fits
Spacecraft file(s): /scratch/kocevski/58608/ft2_4FGL_J2336.6-4115_daily_bin1472.fits
Exposure map: /scratch/kocevski/58608/expmap_620870401_621129601_4FGL_J2336.6-4115_daily_bin1472.fits
Exposure cube: /scratch/kocevski/58608/ltcube_620870401_621129601_4FGL_J2336.6-4115_daily_bin1472.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/58608/Model_4FGL_J2336.6-4115_daily_bin1472.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 37.2488345374

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 32.5459245137

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.8538       1.0000         .10000E-03   10000.    
     2 'Prefactor '    13.377       1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.2398       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.6433       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .60051E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .18459E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    35.286       1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.5721       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .56545E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .17814       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.0007       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .20793E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.8139       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .19659       1.0000         .10000E-03   10000.    
    15 'norm      '    2.2130       1.0000         .10000E-03   10000.    
    16 'norm      '    .73713E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.4885       1.0000         .10000E-03   10000.    
    18 'norm      '    7.1966       1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.7035       1.0000         .10000E-03   10000.    
    20 'Prefactor '    7.4022       1.0000         .10000E-03   10000.    
    21 'Prefactor '    7.1105       1.0000         .10000E-03   10000.    
    22 'norm      '    6.0725       1.0000         .10000E-03   10000.    
    23 'Prefactor '    4.8562       1.0000         .10000E-03   10000.    
    24 'norm      '    22.526       1.0000         .10000E-03   10000.    
    25 'norm      '    4.8447       1.0000         .10000E-03   10000.    
    26 'Prefactor '    61.679       1.0000         .10000E-03   10000.    
    27 'Prefactor '    6.4446       1.0000         .10000E-03   10000.    
    28 'Prefactor '    8.1127       1.0000         .10000E-03   10000.    
    29 'norm      '    1.4356       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .29005       1.0000         .10000E-03   10000.    
    31 'Prefactor '    1414.4       1.0000         .10000E-03   10000.    
    32 'Prefactor '    6.5344       1.0000         .10000E-03   10000.    
    33 'Normalizat'    .10001E-01   1.0000         .10000E-01   10.000    
    34 'Prefactor '    .32203E-05   1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5850E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   30.21591     FROM MIGRAD    STATUS=CONVERGED    586 CALLS      913 TOTAL
                     EDM=   .22E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2081.5       -.13992E-04** at limit **
   2  Prefactor     .10001E-03    1039.3        .16806E-04** at limit **
   3  Prefactor     .10000E-03    620.30       -.74137E-05** at limit **
   4  Prefactor     .10000E-03    494.88        .15057E-05** at limit **
   5  Prefactor     .10000E-03    131.11        .25198E-06** at limit **
   6  Prefactor     .10000E-03    33.214       -.25610E-05** at limit **
   7  Prefactor     32.301        33.364       -.11153E-05    .22901E-04
   8  Prefactor     .10000E-03    246.75        .25445E-05** at limit **
   9  Prefactor     .10000E-03    626.64       -.11192E-05** at limit **
  10  Prefactor     .10000E-03    590.81       -.15404E-05** at limit **
  11  Prefactor     .10000E-03    405.69        .14881E-06** at limit **
  12  Prefactor     .10000E-03    354.48        .24510E-06** at limit **
  13  Prefactor     6.8139        1.0027         .0000         .0000    
  14  Prefactor     .10000E-03    988.72        .75951E-05** at limit **
  15  norm          2315.5        7291.4        .24759E-03   -.24655E-02
  16  norm          .10000E-03    6417.5        .26750E-05** at limit **
  17  norm          9996.8        7860.5       -.10668E-02   -.17666E-03
  18  norm          7.1966        1.0024         .0000         .0000    
  19  Prefactor    10000.0        9620.1       -.26139E-03    .30033E-03
  20  Prefactor     9991.2        9188.7        .78989E-03    .83009E-03
  21  Prefactor     7.1105        1.0025         .0000         .0000    
  22  norm         10000.0        8463.3       -.98384E-04** at limit **
  23  Prefactor    10000.0        9699.2        .22788E-03   -.21759E-03
  24  norm         10000.0        8031.3        .75166E-04** at limit **
  25  norm         10000.0        9960.9       -.22271E-04** at limit **
  26  Prefactor     .14632E-02    6906.1       -.18555E-04** at limit **
  27  Prefactor     5.3020        9057.5       -.15303E-03    .70177E-03
  28  Prefactor     .22825        14.424       -.51442E-05    .33909E-04
  29  norm          .10000E-03    6591.2       -.40629E-06** at limit **
  30  Prefactor     .10000E-03    1873.7        .98947E-05** at limit **
  31  Prefactor     .18159E-03    1332.3       -.36545E-04** at limit **
  32  Prefactor     .10052E-03    6651.3       -.11362E-04** at limit **
  33  Normalizat    .10000E-01    .21157       -.16607E-04** at limit **
  34  Prefactor     .55511E-15    .24124        .12479E-06** at limit **
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100003
  Prefactor  = 0.00010001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 32.3011
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.81391
  Prefactor  = 0.0001
  norm       = 2315.46
  norm       = 0.0001
  norm       = 9996.79
  norm       = 7.19664
  Prefactor  = 9999.96
  Prefactor  = 9991.23
  Prefactor  = 7.11054
  norm       = 10000
  Prefactor  = 9999.98
  norm       = 10000
  norm       = 10000
  Prefactor  = 0.00146315
  Prefactor  = 5.30198
  Prefactor  = 0.228253
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000181588
  Prefactor  = 0.000100518
  Normalizat = 0.01
  Prefactor  = 5.55112e-16
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   30.21591     FROM HESSE     STATUS=FAILED        59 CALLS      972 TOTAL
                     EDM=   .22E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2093.3        .45647E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10001E-03    1038.2        .27379E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    624.11        .48922E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    492.58        .82386E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    129.91        .10532E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    33.230        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     32.301        33.265        .16866E-02   -1.4571    
   8  Prefactor     .10000E-03    243.96        .53457E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    621.78        .10548E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    592.93        .98774E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    406.22        .13898E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    354.24        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     514.84        507.99         .0000       -1.5186    
  14  Prefactor     .10000E-03    .24811        .75951E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          2315.5        29.157        .24759E-03   -.56677    
  16  norm          .10000E-03    .27432        .26750E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          9996.8        1.5736       -.10668E-02    1.5350    
  18  norm          7.1966        1.0024         .0000       -1.5171    
  19  Prefactor    10000.0        .95616E-01   -.26139E-03    1.5749    
  20  Prefactor     9991.2        1.0909        .78989E-03    1.6300    
  21  Prefactor     7.1105        1.0025         .0000       -1.5175    
  22  norm         10000.0        .41478E-01   -.98384E-04    1.5715    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor    10000.0        .65696E-01    .22788E-03    1.5679    
  24  norm         10000.0        .11129E-01    .75166E-04    1.5703    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm         10000.0        .52191E-01   -.22271E-04    1.5712    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .14632E-02    .47159E-02   -.18555E-04   -1.5715    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     5.3020        .90983       -.15303E-03   -1.5247    
  28  Prefactor     .22825        .16809       -.51442E-05   -1.5612    
  29  norm          .10000E-03    .20283       -.40629E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    .26943        .98947E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .18159E-03    .25920E-03   -.36545E-04   -1.5710    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     .10052E-03    .38511E-01   -.11362E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Normalizat    .10000E-01    .25711       -.16607E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  34  Prefactor     .55511E-15    .25633        .12479E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 2.23703e-10
Minuit parameter uncertainties:
  1  0.00518471
  2  0.00641283
  3  0.000394798
  4  0.000114098
  5  1.97074e-05
  6  3.89308e-05
  7  33.2838
  8  0.000651824
  9  5.8537e-05
  10  0.000128022
  11  1.30186e-05
  12  1.3482e-05
  13  1.00272
  14  1.45971e-05
  15  29.1568
  16  7.27908e-06
  17  1.57361
  18  1.00243
  19  0.0956159
  20  1.09094
  21  1.00249
  22  0.0141557
  23  0.065696
  24  0.00542926
  25  0.00887193
  26  0.00471588
  27  0.909836
  28  0.168087
  29  3.14381e-05
  30  2.2482e-05
  31  0.000259201
  32  0.000282432
  33  1.98347e-06
  34  2.40465e-08
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 30.2159097033

Extracting fit parameters...

4FGL J2336.6-4115
   Spectrum: LogParabola
490         norm:  1.000e+04  8.872e-03  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:  5.551e-16  2.405e-08  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.000e-02  1.983e-06  1.000e-02  1.000e+01 ( 1.000e+00)

calc_int error: parameter max 10000.0 is not large enough
delta logLike = 8.52829629139e-09

TS (Fixed Index): 0.48
Ra Dec: 354.164 -41.258
Photon Flux Upper Limit: -1.00e+00 ph cm-2 s-1
Energy Flux Upper Limit: -4.05e+02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/58608/likelihoodResults_620870401_621129601_4FGL_J2336.6-4115_daily_bin1472.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) = 23.8980753854
delta logL = 6.31783431791

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 23.8933505724
delta logL = 6.32255913093

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'alpha     '    5.0000       1.0000          .0000       5.0000    
 **********
 **   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=   23.89335     FROM MIGRAD    STATUS=CONVERGED      9 CALLS       44 TOTAL
                     EDM=   .49E-23    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1    alpha       5.0000        .13464        .46267E-01** at limit **
                               ERR DEF=  .500    
Final values: 
  alpha      = 5
 **********
 **   18 **HESSE 
 **********

 FCN=   23.89335     FROM HESSE     STATUS=OK             5 CALLS       49 TOTAL
                     EDM=   .49E-23    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1    alpha       5.0000        .13461        .79509E-03    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.88171e-24
Minuit parameter uncertainties:
  1  7.23312e-13
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/58608': 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) = 23.8933505724
delta logL = 6.32255913093

Extracting fit parameters...

4FGL J2336.6-4115
   Spectrum: LogParabola
490         norm:  1.000e+04  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12) fixed
491        alpha:  5.000e+00  7.233e-13  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:  5.507e-08  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
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.000e-02  0.000e+00  1.000e-02  1.000e+01 ( 1.000e+00) fixed


TS (Free Index): 13.12
Ra Dec: 354.164 -41.258
Photon Index (Free Index): 5.00 +/- 0.00
Photon Flux (Free Index): 5.77e-03 +/- 7.52e-15
Energy Flux (Free Index): 7.91e-01 +/- 9.78e-13

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/58608/cmap_HighResolution_620870401_621129601_4FGL_J2336.6-4115_daily_bin1472.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='-4.05e+02', comment='SUCCESS', energy_flux2='7.91e-01', dlogl='6.32e+00', photon_flux2='5.77e-03', job_status='DONE', time_completed='2021-09-30 02:08:11.980326', photon_index_error2='0.00', photon_index2='5.00', ts='0.48', fit_tolerance='1e-08', GAL='0.00', photon_index_error='0.00', photon_flux_upper_limit='-1.00e+00', energy_flux_error2='9.78e-13', EG='0.01', time_epoch_completed='1632992891.98', return_code='101', job_id='58608', GAL2='0.00', EG2='0.01', return_code2='0', photon_flux_error2='7.52e-15', ts2='13.12', photon_index='2.22' WHERE bin_id='1472' AND source_name='4FGL J2336.6-4115' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 02:08:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0058>
Subject: Job 58608: <4FGL_J2336.6-4115_daily_bin1472> in cluster <slac> Done

Job <4FGL_J2336.6-4115_daily_bin1472> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Thu Sep 30 02:00:22 2021
Job was executed on host(s) <bullet0058>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 02:00:23 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep 30 02:00:23 2021
Terminated at Thu Sep 30 02:08:12 2021
Results reported at Thu Sep 30 02:08:12 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2336.6-4115_daily_bin1472 354.164 -41.2579 620870401 621129601 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 :                                   323.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             192.94 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   469 sec.
    Turnaround time :                            470 sec.

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

