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


Performing analysis on: 4FGL_J2336.6-4115_daily_bin1060
RA = 354.164, Dec = -41.2579
tmin = 514080001, tmax = 514339201
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='56027', job_status='RUN', time_executed='2021-09-30 01:51:19.741873', time_epoch_executed='1632991879.74' WHERE source_name='4FGL J2336.6-4115' and cadence='daily' and bin_id='1060'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/56027

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/56027/ft1_4FGL_J2336.6-4115_daily_bin1060.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/56027/ft2_4FGL_J2336.6-4115_daily_bin1060.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/56027/ft1_4FGL_J2336.6-4115_daily_bin1060.fits outfile=/scratch/kocevski/56027/ft1_filteredMKT_4FGL_J2336.6-4115_daily_bin1060.fits ra=354.164 dec=-41.2579 rad=12.0 tmin=514080001.0 tmax=514339201.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.59
user 3.38
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/56027/ft1_filtered_4FGL_J2336.6-4115_daily_bin1060.fits" evtable="EVENTS" scfile=/scratch/kocevski/56027/ft2_4FGL_J2336.6-4115_daily_bin1060.fits sctable="SC_DATA" outfile=/scratch/kocevski/56027/ltcube_514080001_514339201_4FGL_J2336.6-4115_daily_bin1060.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/56027/ft2_4FGL_J2336.6-4115_daily_bin1060.fits
.....................!
real 11.78
user 11.38
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/56027/ft1_filtered_4FGL_J2336.6-4115_daily_bin1060.fits evtable="EVENTS" scfile=/scratch/kocevski/56027/ft2_4FGL_J2336.6-4115_daily_bin1060.fits sctable="SC_DATA" expcube=/scratch/kocevski/56027/ltcube_514080001_514339201_4FGL_J2336.6-4115_daily_bin1060.fits outfile=/scratch/kocevski/56027/expmap_514080001_514339201_4FGL_J2336.6-4115_daily_bin1060.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/56027/ltcube_514080001_514339201_4FGL_J2336.6-4115_daily_bin1060.fits
.....................!
real 193.24
user 187.59
sys 5.27

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/56027/ft1_filtered_4FGL_J2336.6-4115_daily_bin1060.fits scfile=/scratch/kocevski/56027/ft2_4FGL_J2336.6-4115_daily_bin1060.fits outfile=/scratch/kocevski/56027/cmap_514080001_514339201_4FGL_J2336.6-4115_daily_bin1060.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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/56027/ft1_filtered_4FGL_J2336.6-4115_daily_bin1060.fits scfile=/scratch/kocevski/56027/ft2_4FGL_J2336.6-4115_daily_bin1060.fits outfile=/scratch/kocevski/56027/cmap_HighResolution_514080001_514339201_4FGL_J2336.6-4115_daily_bin1060.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/56027/ft1_filtered_4FGL_J2336.6-4115_daily_bin1060.fits evtable="EVENTS" scfile=/scratch/kocevski/56027/ft2_4FGL_J2336.6-4115_daily_bin1060.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/56027/Model_4FGL_J2336.6-4115_daily_bin1060.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/56027/ft1_filtered_4FGL_J2336.6-4115_daily_bin1060.fits.....................!
real 35.89
user 34.54
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    21.813       1.0000         .10000E-03   10000.    
     3 'Prefactor '    9.8484       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .87167E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10209E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    41.521       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10108E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10084E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.5484       1.0000         .10000E-03   10000.    
    18 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    43.360       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10074E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    1.1657       1.0000         .10000E-03   10000.    
    25 'norm      '    .30037       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    8.5188       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 '    .24077       1.0000         .10000E-03   10000.    
    31 'Prefactor '    .11028       1.0000         .10000E-03   10000.    
    32 'Prefactor '    8.7058       1.0000         .10000E-03   10000.    
    33 'Normalizat'    .94058       1.0000         .10000E-01   10.000    
    34 'Prefactor '    1.2678       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=   4390.660     FROM MIGRAD    STATUS=CONVERGED    951 CALLS     4837 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    47.660       -.25357E-06** at limit **
   2  Prefactor     21.853        28.042       -.14704E-05   -.24114E-03
   3  Prefactor     9.8387        35.108       -.36957E-06   -.68518E-04
   4  Prefactor     .10058E-03    52.768        .79423E-05** at limit **
   5  Prefactor     .10000E-03    25.050        .51373E-07** at limit **
   6  Prefactor     .10000E-03    3.0261        .52947E-07** at limit **
   7  Prefactor     .10000E-03    2.5435        .13779E-06** at limit **
   8  Prefactor     .10000E-03    19.430        .27341E-06** at limit **
   9  Prefactor     .10000E-03    35.109        .14265E-06** at limit **
  10  Prefactor     41.497        41.909       -.23041E-06   -.84071E-04
  11  Prefactor     .10000E-03    6.0058       -.14114E-06** at limit **
  12  Prefactor     .10000E-03    15.633        .50429E-07** at limit **
  13  Prefactor     .10000E-03    59.726       -.41570E-06** at limit **
  14  Prefactor     .10000E-03    25.987        .23575E-06** at limit **
  15  norm          .10000E-03    6.3570       -.16680E-07** at limit **
  16  norm          .10000E-03    11.087        .13618E-06** at limit **
  17  norm          1.5444        4.7797        .17201E-05    .50761E-03
  18  norm          .10000E-03    4.1648        .14879E-07** at limit **
  19  Prefactor     .10000E-03    5.3502        .58354E-07** at limit **
  20  Prefactor     43.317        47.736       -.89485E-06   -.85159E-04
  21  Prefactor     .10000E-03    28.156        .27628E-06** at limit **
  22  norm          .10000E-03    5.3468       -.25840E-05** at limit **
  23  Prefactor     .10000E-03    18.367        .22661E-06** at limit **
  24  norm          1.1656        1.1414        .40378E-07   -.59896E-04
  25  norm          .30270        4.0680        .90045E-06   -.10970E-03
  26  Prefactor     .10000E-03    1.4161       -.28405E-07** at limit **
  27  Prefactor     8.5183        18.669       -.23589E-06   -.98349E-04
  28  Prefactor     .10000E-03    15.447       -.76292E-07** at limit **
  29  norm          .10000E-03    20.293       -.14057E-06** at limit **
  30  Prefactor     .22834        3.7018       -.42692E-06    .53761E-04
  31  Prefactor     .39118E-01    3.8310        .97722E-06   -.34469E-03
  32  Prefactor     8.6943        33.880       -.36885E-06   -.48716E-04
  33  Normalizat    .94108        .23047        .25002E-05   -.36945E-03
  34  Prefactor     1.2674        .25037       -.31081E-05   -.35475E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 21.8529
  Prefactor  = 9.83875
  Prefactor  = 0.000100578
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 41.497
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 1.54445
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 43.3167
  Prefactor  = 0.0001
  norm       = 0.000100003
  Prefactor  = 0.0001
  norm       = 1.16561
  norm       = 0.302704
  Prefactor  = 0.0001
  Prefactor  = 8.5183
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.228344
  Prefactor  = 0.0391179
  Prefactor  = 8.69431
  Normalizat = 0.941082
  Prefactor  = 1.26743
 **********
 **   18 **HESSE 
 **********

 FCN=   4390.660     FROM HESSE     STATUS=OK           730 CALLS     5567 TOTAL
                     EDM=   .34E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    47.758        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     21.853        28.973        .85762E-04   -1.4773    
   3  Prefactor     9.8387        35.118        .12769E-03   -1.5081    
   4  Prefactor     .10058E-03    120.31        .63433E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    25.113        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    3.0293        .11258E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    2.5525        .10321E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    19.462        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    35.149        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     41.497        42.015        .62210E-04   -1.4419    
  11  Prefactor     .10000E-03    6.0487        .15853E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    15.637        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    59.849        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    26.339        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    6.3621        .16317E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    11.458        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.5444        4.9413        .25266E-03   -1.5459    
  18  norm          .10000E-03    4.1765        .13206E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    5.3863        .14958E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     43.317        47.196        .60882E-04   -1.4391    
  21  Prefactor     .10000E-03    28.183        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    5.9636        .31005E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    18.480        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          1.1656        1.1204        .67005E-04   -1.5492    
  25  norm          .30270        8.6650        .24306E-02   -1.5598    
  26  Prefactor     .10000E-03    1.4307        .76954E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     8.5183        18.642        .13734E-03   -1.5124    
  28  Prefactor     .10000E-03    15.448        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          .10000E-03    20.327        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .22834        18.766        .24016E-02   -1.5612    
  31  Prefactor     .39118E-01    11.042        .36890E-01   -1.5668    
  32  Prefactor     8.6943        33.719        .13585E-03   -1.5118    
  33  Normalizat    .94108        .26902        .25093E-03   -.95031    
  34  Prefactor     1.2674        .29130        .24820E-03   -.84281    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.393e-08
Minuit parameter uncertainties:
  1  0.000257102
  2  28.9916
  3  35.1921
  4  0.0167143
  5  5.79504e-05
  6  3.90929e-06
  7  8.423e-06
  8  5.55087e-05
  9  0.000184043
  10  42.0447
  11  7.89117e-06
  12  1.10956e-05
  13  0.000276582
  14  2.27917e-05
  15  2.36087e-06
  16  2.43759e-05
  17  4.94264
  18  2.28686e-06
  19  6.49173e-06
  20  47.2368
  21  9.89289e-05
  22  0.000288879
  23  9.30985e-05
  24  1.12044
  25  3.23907
  26  1.11688e-06
  27  18.6543
  28  3.00862e-05
  29  5.62068e-05
  30  4.14057
  31  1.313
  32  33.7931
  33  0.269405
  34  0.291673
Done.

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

Extracting fit parameters...

4FGL J2336.6-4115
   Spectrum: LogParabola
490         norm:  3.027e-01  3.239e+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

GAL_V02
   Spectrum: PowerLaw
582    Prefactor:  1.267e+00  2.917e-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:  9.411e-01  2.694e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.01
Ra Dec: 354.164 -41.258
Photon Flux Upper Limit: 7.16e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.90e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/56027/likelihoodResults_514080001_514339201_4FGL_J2336.6-4115_daily_bin1060.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4390.63247617
delta logL = 0.0276996458479

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4390.62625584
delta logL = 0.0339199843002

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .48995       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.0801       1.0000          .0000       5.0000    
     3 'Normalizat'    .93323       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2707       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=   4390.626     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      226 TOTAL
                     EDM=   .79E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .48937        89.626        .11230E-01    .11474E-02
   2  alpha         3.0815        2.6659        .42647        .21016E-04
   3  Normalizat    .93324        .39915E-01    .45325E-01    .94079E-06
   4  Prefactor     1.2707        .44334E-01    .56060E-01   -.20198E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.489366
  alpha      = 3.08149
  Normalizat = 0.933236
  Prefactor  = 1.27072
 **********
 **   18 **HESSE 
 **********

 FCN=   4390.626     FROM HESSE     STATUS=OK            33 CALLS      259 TOTAL
                     EDM=   .30E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .48937        5.8355        .16823E-03   -1.5568    
   2  alpha         3.0815        4.0302        .54485E-01    .23475    
   3  Normalizat    .93324        .25763        .25183E-03   -.95302    
   4  Prefactor     1.2707        .28855        .24789E-03   -.84182    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.00625e-08
Minuit parameter uncertainties:
  1  3.37981
  2  4.7067
  3  0.257973
  4  0.288908
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/56027': 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) = 4390.62625574
delta logL = 0.0339200749613

Extracting fit parameters...

4FGL J2336.6-4115
   Spectrum: LogParabola
490         norm:  4.894e-01  3.380e+00  1.000e-04  1.000e+04 ( 1.000e-12)
491        alpha:  3.081e+00  4.707e+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.271e+00  2.889e-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:  9.332e-01  2.580e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.01
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/56027/cmap_HighResolution_514080001_514339201_4FGL_J2336.6-4115_daily_bin1060.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.90e-05', job_status='DONE', photon_flux_upper_limit='7.16e-08', time_completed='2021-09-30 02:04:33.070863', job_id='56027', GAL2='1.27', fit_tolerance='1e-08', EG2='0.93', EG='0.94', time_epoch_completed='1632992673.07', return_code2='0', ts='0.01', comment='SUCCESS', return_code='0', GAL='1.27', dlogl='3.39e-02', ts2='0.08', photon_index_error='0.00', photon_index='2.22' WHERE bin_id='1060' AND source_name='4FGL J2336.6-4115' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 02:04:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0233>
Subject: Job 56027: <4FGL_J2336.6-4115_daily_bin1060> in cluster <slac> Done

Job <4FGL_J2336.6-4115_daily_bin1060> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Thu Sep 30 01:50:30 2021
Job was executed on host(s) <bullet0233>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 01:50:31 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:50:31 2021
Terminated at Thu Sep 30 02:04:33 2021
Results reported at Thu Sep 30 02:04:33 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2336.6-4115_daily_bin1060 354.164 -41.2579 514080001 514339201 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 :                                   772.14 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             309.58 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   842 sec.
    Turnaround time :                            843 sec.

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

