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


Performing analysis on: 4FGL_J2336.6-4115_daily_bin1449
RA = 354.164, Dec = -41.2579
tmin = 614908801, tmax = 615168001
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='57603', job_status='RUN', time_executed='2021-09-30 01:56:44.460727', time_epoch_executed='1632992204.46' WHERE source_name='4FGL J2336.6-4115' and cadence='daily' and bin_id='1449'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/57603

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/57603/ft1_4FGL_J2336.6-4115_daily_bin1449.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/57603/ft2_4FGL_J2336.6-4115_daily_bin1449.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/57603/ft1_4FGL_J2336.6-4115_daily_bin1449.fits outfile=/scratch/kocevski/57603/ft1_filteredMKT_4FGL_J2336.6-4115_daily_bin1449.fits ra=354.164 dec=-41.2579 rad=12.0 tmin=614908801.0 tmax=615168001.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.56
user 3.36
sys 0.18

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/57603/ft1_filtered_4FGL_J2336.6-4115_daily_bin1449.fits" evtable="EVENTS" scfile=/scratch/kocevski/57603/ft2_4FGL_J2336.6-4115_daily_bin1449.fits sctable="SC_DATA" outfile=/scratch/kocevski/57603/ltcube_614908801_615168001_4FGL_J2336.6-4115_daily_bin1449.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/57603/ft2_4FGL_J2336.6-4115_daily_bin1449.fits
.....................!
real 11.71
user 11.36
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/57603/ft1_filtered_4FGL_J2336.6-4115_daily_bin1449.fits evtable="EVENTS" scfile=/scratch/kocevski/57603/ft2_4FGL_J2336.6-4115_daily_bin1449.fits sctable="SC_DATA" expcube=/scratch/kocevski/57603/ltcube_614908801_615168001_4FGL_J2336.6-4115_daily_bin1449.fits outfile=/scratch/kocevski/57603/expmap_614908801_615168001_4FGL_J2336.6-4115_daily_bin1449.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/57603/ltcube_614908801_615168001_4FGL_J2336.6-4115_daily_bin1449.fits
.....................!
real 190.75
user 185.40
sys 5.04

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/57603/ft1_filtered_4FGL_J2336.6-4115_daily_bin1449.fits scfile=/scratch/kocevski/57603/ft2_4FGL_J2336.6-4115_daily_bin1449.fits outfile=/scratch/kocevski/57603/cmap_614908801_615168001_4FGL_J2336.6-4115_daily_bin1449.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.50
user 0.37
sys 0.12

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

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

This is gtbin version HEAD
real 0.54
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    6.5503       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    42.043       1.0000         .10000E-03   10000.    
     5 'Prefactor '    14.849       1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.9880       1.0000         .10000E-03   10000.    
     7 'Prefactor '    29.778       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .51465       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    65.286       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    20.208       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    3.0235       1.0000         .10000E-03   10000.    
    18 'norm      '    .10634E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    8.9956       1.0000         .10000E-03   10000.    
    20 'Prefactor '    6.9550       1.0000         .10000E-03   10000.    
    21 'Prefactor '    14.533       1.0000         .10000E-03   10000.    
    22 'norm      '    .10225E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    17.606       1.0000         .10000E-03   10000.    
    24 'norm      '    .10323E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10060E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    5.6492       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    32 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    33 'Normalizat'    1.1609       1.0000         .10000E-01   10.000    
    34 'Prefactor '    .71147       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=   5106.939     FROM MIGRAD    STATUS=CONVERGED    897 CALLS     4818 TOTAL
                     EDM=   .11E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    14.355        .47257E-07** at limit **
   2  Prefactor     6.5561        22.797       -.88578E-07    .93715E-05
   3  Prefactor     .10000E-03    31.274        .31323E-06** at limit **
   4  Prefactor     42.040        32.128       -.15044E-06   -.89098E-05
   5  Prefactor     14.848        25.416        .11503E-06    .23577E-05
   6  Prefactor     8.9879        7.1701       -.76199E-09    .41906E-05
   7  Prefactor     29.776        8.4060       -.69247E-07    .11996E-04
   8  Prefactor     .10000E-03    23.109        .17363E-06** at limit **
   9  Prefactor     .10000E-03    20.238       -.17485E-07** at limit **
  10  Prefactor     .10000E-03    28.946        .29143E-06** at limit **
  11  Prefactor     .51187        4.4077       -.24399E-09   -.27080E-04
  12  Prefactor     .10000E-03    12.027       -.31442E-07** at limit **
  13  Prefactor     65.282        75.443       -.32669E-06   -.83201E-05
  14  Prefactor     .10000E-03    13.302        .27752E-06** at limit **
  15  norm          20.208        13.409       -.18219E-07   -.34604E-05
  16  norm          .10000E-03    2.2856        .23473E-07** at limit **
  17  norm          3.0231        3.3428       -.82257E-07    .21151E-04
  18  norm          .10000E-03    5.7805        .10261E-05** at limit **
  19  Prefactor     8.9944        9.2485        .19790E-06   -.33217E-04
  20  Prefactor     6.9144        48.053       -.57662E-06   -.14606E-04
  21  Prefactor     14.533        32.780       -.17144E-07   -.14682E-04
  22  norm          .10000E-03    1.8168       -.15512E-05** at limit **
  23  Prefactor     17.600        22.791       -.64392E-06   -.39198E-04
  24  norm          .10000E-03    .75202        .10754E-06** at limit **
  25  norm          .10000E-03    1.3824       -.88487E-06** at limit **
  26  Prefactor     5.6473        4.3442       -.57669E-07   -.49688E-04
  27  Prefactor     .10000E-03    16.720       -.41810E-07** at limit **
  28  Prefactor     .10000E-03    26.062        .16801E-06** at limit **
  29  norm          .10000E-03    13.462        .49073E-07** at limit **
  30  Prefactor     .10000E-03    2.5917        .13124E-06** at limit **
  31  Prefactor     .10000E-03    2.7499        .16203E-06** at limit **
  32  Prefactor     .10000E-03    16.569        .30305E-07** at limit **
  33  Normalizat    1.1611        .21244        .29236E-05   -.17064E-03
  34  Prefactor     .71120        .22131       -.40735E-05   -.21525E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 6.55605
  Prefactor  = 0.0001
  Prefactor  = 42.04
  Prefactor  = 14.8482
  Prefactor  = 8.98788
  Prefactor  = 29.7761
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.511865
  Prefactor  = 0.0001
  Prefactor  = 65.2819
  Prefactor  = 0.0001
  norm       = 20.2084
  norm       = 0.0001
  norm       = 3.02312
  norm       = 0.000100003
  Prefactor  = 8.99441
  Prefactor  = 6.91439
  Prefactor  = 14.5331
  norm       = 0.0001
  Prefactor  = 17.6001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 5.64728
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.1611
  Prefactor  = 0.711201
 **********
 **   18 **HESSE 
 **********

 FCN=   5106.939     FROM HESSE     STATUS=OK           730 CALLS     5548 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    14.358        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     6.5561        22.741        .15680E-03   -1.5196    
   3  Prefactor     .10000E-03    31.358        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     42.040        32.130        .61825E-04   -1.4410    
   5  Prefactor     14.848        25.417        .10394E-03   -1.4937    
   6  Prefactor     8.9879        7.1672        .13369E-03   -1.5108    
   7  Prefactor     29.776        8.4100        .73421E-04   -1.4616    
   8  Prefactor     .10000E-03    23.173        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    20.243        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    29.074        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .51187        17.968        .28736E-02   -1.5565    
  12  Prefactor     .10000E-03    12.028        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     65.282        75.471        .49669E-04   -1.4090    
  14  Prefactor     .10000E-03    13.389        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          20.208        13.408        .89098E-04   -1.4809    
  16  norm          .10000E-03    2.2874        .10550E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          3.0231        3.3422        .13338E-03   -1.5360    
  18  norm          .10000E-03    13.857        .32089E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     8.9944        9.3117        .13363E-03   -1.5108    
  20  Prefactor     6.9144        48.438        .15212E-03   -1.5182    
  21  Prefactor     14.533        32.732        .10506E-03   -1.4945    
  22  norm          .10000E-03    1.9036        .95743E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     17.600        22.964        .95453E-04   -1.4869    
  24  norm          .10000E-03    1.5279        .11826E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    1.4123        .82771E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     5.6473        4.3195        .12315E-03   -1.5233    
  27  Prefactor     .10000E-03    16.742        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    26.076        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          .10000E-03    13.465        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    2.6044        .11232E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .10000E-03    2.7780        .11549E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     .10000E-03    16.577        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Normalizat    1.1611        .23058        .21731E-03   -.87814    
  34  Prefactor     .71120        .24036        .29721E-03   -1.0309    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.67696e-08
Minuit parameter uncertainties:
  1  9.55483e-06
  2  22.7705
  3  9.35065e-06
  4  32.1428
  5  25.4351
  6  7.16788
  7  8.41035
  8  1.66477e-05
  9  2.46765e-05
  10  3.35302e-05
  11  6.06675
  12  1.8421e-05
  13  75.5819
  14  1.83221e-05
  15  13.4103
  16  4.7151e-07
  17  3.3424
  18  0.000381688
  19  9.31316
  20  36.6438
  21  32.7719
  22  2.62962e-05
  23  22.9753
  24  2.65614e-06
  25  1.33679e-05
  26  4.31971
  27  2.32129e-05
  28  3.50337e-05
  29  1.68768e-05
  30  8.93268e-07
  31  1.37761e-06
  32  1.84403e-05
  33  0.230778
  34  0.240716
Done.

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

Extracting fit parameters...

4FGL J2336.6-4115
   Spectrum: LogParabola
490         norm:  1.000e-04  1.337e-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:  7.112e-01  2.407e-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.161e+00  2.308e-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: 4.69e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.90e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/57603/likelihoodResults_614908801_615168001_4FGL_J2336.6-4115_daily_bin1449.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) = 5106.94221935
delta logL = -0.00328292556878

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5106.93893645
delta logL = -2.6760972105e-08

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5106.939     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      222 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.5457        .82778E-03** at limit **
   2  alpha         2.2190        2.7055        .16596       -.77818E-07
   3  Normalizat    1.1611        .21468        .21731E-03    .23542E-05
   4  Prefactor     .71120        .23606        .29722E-03    .73058E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.21904
  Normalizat = 1.1611
  Prefactor  = 0.7112
 **********
 **   18 **HESSE 
 **********

 FCN=   5106.939     FROM HESSE     STATUS=OK            23 CALLS      245 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.4123        .16556E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.2190        3.7748        .66385E-02   -.11262    
   3  Normalizat    1.1611        .21490        .86924E-05   -.87814    
   4  Prefactor     .71120        .23630        .11889E-04   -1.0309    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.34388e-10
Minuit parameter uncertainties:
  1  2.52648e-05
  2  246.631
  3  0.215067
  4  0.236636
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/57603': 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) = 5106.93893642
delta logL = 1.45519152284e-10

Extracting fit parameters...

4FGL J2336.6-4115
   Spectrum: LogParabola
490         norm:  1.000e-04  2.526e-05  1.000e-04  1.000e+04 ( 1.000e-12)
491        alpha:  2.219e+00  2.466e+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:  7.112e-01  2.366e-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.161e+00  2.151e-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/57603/cmap_HighResolution_614908801_615168001_4FGL_J2336.6-4115_daily_bin1449.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.90e-05', job_status='DONE', photon_flux_upper_limit='4.69e-08', time_completed='2021-09-30 02:11:17.529692', job_id='57603', GAL2='0.71', fit_tolerance='1e-08', EG2='1.16', EG='1.16', time_epoch_completed='1632993077.53', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.71', dlogl='1.46e-10', ts2='-0.00', photon_index_error='0.00', photon_index='2.22' WHERE bin_id='1449' AND source_name='4FGL J2336.6-4115' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 02:11:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0055>
Subject: Job 57603: <4FGL_J2336.6-4115_daily_bin1449> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2336.6-4115_daily_bin1449 354.164 -41.2579 614908801 615168001 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 :                                   854.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             328.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   926 sec.
    Turnaround time :                            929 sec.

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

