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


Performing analysis on: 4FGL_J2336.6-4115_daily_bin1279
RA = 354.164, Dec = -41.2579
tmin = 570844801, tmax = 571104001
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='57348', job_status='RUN', time_executed='2021-09-30 01:56:36.170531', time_epoch_executed='1632992196.17' WHERE source_name='4FGL J2336.6-4115' and cadence='daily' and bin_id='1279'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/57348

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/57348/ft1_4FGL_J2336.6-4115_daily_bin1279.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/57348/ft2_4FGL_J2336.6-4115_daily_bin1279.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/57348/ft1_4FGL_J2336.6-4115_daily_bin1279.fits outfile=/scratch/kocevski/57348/ft1_filteredMKT_4FGL_J2336.6-4115_daily_bin1279.fits ra=354.164 dec=-41.2579 rad=12.0 tmin=570844801.0 tmax=571104001.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.03
user 2.83
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/57348/ft1_filtered_4FGL_J2336.6-4115_daily_bin1279.fits" evtable="EVENTS" scfile=/scratch/kocevski/57348/ft2_4FGL_J2336.6-4115_daily_bin1279.fits sctable="SC_DATA" outfile=/scratch/kocevski/57348/ltcube_570844801_571104001_4FGL_J2336.6-4115_daily_bin1279.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/57348/ft2_4FGL_J2336.6-4115_daily_bin1279.fits
.....................!
real 12.70
user 12.31
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/57348/ft1_filtered_4FGL_J2336.6-4115_daily_bin1279.fits evtable="EVENTS" scfile=/scratch/kocevski/57348/ft2_4FGL_J2336.6-4115_daily_bin1279.fits sctable="SC_DATA" expcube=/scratch/kocevski/57348/ltcube_570844801_571104001_4FGL_J2336.6-4115_daily_bin1279.fits outfile=/scratch/kocevski/57348/expmap_570844801_571104001_4FGL_J2336.6-4115_daily_bin1279.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/57348/ltcube_570844801_571104001_4FGL_J2336.6-4115_daily_bin1279.fits
.....................!
real 191.64
user 185.87
sys 5.41

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/57348/ft1_filtered_4FGL_J2336.6-4115_daily_bin1279.fits scfile=/scratch/kocevski/57348/ft2_4FGL_J2336.6-4115_daily_bin1279.fits outfile=/scratch/kocevski/57348/cmap_570844801_571104001_4FGL_J2336.6-4115_daily_bin1279.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/57348/ft1_filtered_4FGL_J2336.6-4115_daily_bin1279.fits scfile=/scratch/kocevski/57348/ft2_4FGL_J2336.6-4115_daily_bin1279.fits outfile=/scratch/kocevski/57348/cmap_HighResolution_570844801_571104001_4FGL_J2336.6-4115_daily_bin1279.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.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/57348/ft1_filtered_4FGL_J2336.6-4115_daily_bin1279.fits evtable="EVENTS" scfile=/scratch/kocevski/57348/ft2_4FGL_J2336.6-4115_daily_bin1279.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/57348/Model_4FGL_J2336.6-4115_daily_bin1279.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/57348/ft1_filtered_4FGL_J2336.6-4115_daily_bin1279.fits....................!
real 27.21
user 25.94
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10778E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    7.3924       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .41397E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10799E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    696.55       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .97084E-02   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .11045E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    512.54       1.0000         .10000E-03   10000.    
    13 'Prefactor '    29.523       1.0000         .10000E-03   10000.    
    14 'Prefactor '    7.1750       1.0000         .10000E-03   10000.    
    15 'norm      '    18.501       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    24.747       1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.6100       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    5.2403       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    1.6587       1.0000         .10000E-03   10000.    
    25 'norm      '    10.633       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10144E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    16.407       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10135E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    32 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    33 'Normalizat'    1.0486       1.0000         .10000E-01   10.000    
    34 'Prefactor '    .66310       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=   2622.833     FROM MIGRAD    STATUS=CONVERGED    938 CALLS     5635 TOTAL
                     EDM=   .34E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    293.13        .25785E-05** at limit **
   2  Prefactor     .10000E-03    8.9497        .12717E-06** at limit **
   3  Prefactor     .10000E-03    55.850        .86369E-06** at limit **
   4  Prefactor     .10000E-03    23.672        .36216E-06** at limit **
   5  Prefactor     7.3781        23.036       -.33957E-06   -.61555E-04
   6  Prefactor     .10002E-03    6.7371        .10481E-05** at limit **
   7  Prefactor     .10000E-03    2.8342        .29324E-06** at limit **
   8  Prefactor     .10001E-03    179.87        .53087E-05** at limit **
   9  Prefactor     695.35        630.37        .35027E-05    .15518E-04
  10  Prefactor     .10003E-03    350.66        .64624E-05** at limit **
  11  Prefactor     .10000E-03    11.167        .70700E-06** at limit **
  12  Prefactor     512.60        333.12        .76053E-06   -.12572E-05
  13  Prefactor     29.515        78.006        .66786E-06    .16630E-05
  14  Prefactor     7.1762        29.916        .97228E-06   -.24777E-05
  15  norm          18.502        18.454        .56072E-07    .18385E-05
  16  norm          .10000E-03    4.8092        .35257E-07** at limit **
  17  norm          .10000E-03    3.3417        .22413E-07** at limit **
  18  norm          24.747        17.178        .40101E-06   -.15322E-04
  19  Prefactor     2.6075        8.5825        .55257E-06    .11638E-05
  20  Prefactor     .10000E-03    33.697        .24057E-06** at limit **
  21  Prefactor     .10000E-03    80.959        .47919E-06** at limit **
  22  norm          5.2389        7.4152        .24206E-06   -.28484E-04
  23  Prefactor     .10000E-03    26.036        .43298E-06** at limit **
  24  norm          1.6588        1.5418       -.65590E-08   -.13825E-04
  25  norm          10.633        8.6484        .20439E-06   -.43735E-04
  26  Prefactor     .10000E-03    2.4445        .32338E-06** at limit **
  27  Prefactor     16.410        27.013       -.17856E-06   -.56407E-04
  28  Prefactor     .10000E-03    18.615        .28738E-07** at limit **
  29  norm          .10000E-03    26.291        .36635E-08** at limit **
  30  Prefactor     .10000E-03    8.3659        .48979E-06** at limit **
  31  Prefactor     .10000E-03    2.4545        .21961E-06** at limit **
  32  Prefactor     .10000E-03    33.361        .29836E-06** at limit **
  33  Normalizat    1.0488        .28315       -.52792E-05   -.21683E-03
  34  Prefactor     .66251        .30818        .42270E-05   -.26087E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.37811
  Prefactor  = 0.000100019
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 695.348
  Prefactor  = 0.000100026
  Prefactor  = 0.0001
  Prefactor  = 512.599
  Prefactor  = 29.5154
  Prefactor  = 7.17624
  norm       = 18.5019
  norm       = 0.0001
  norm       = 0.0001
  norm       = 24.7474
  Prefactor  = 2.60747
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.23888
  Prefactor  = 0.0001
  norm       = 1.65885
  norm       = 10.6334
  Prefactor  = 0.0001
  Prefactor  = 16.4103
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.04885
  Prefactor  = 0.662515
 **********
 **   18 **HESSE 
 **********

 FCN=   2622.833     FROM HESSE     STATUS=OK           724 CALLS     6359 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    302.34        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    8.9587        .14968E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    56.634        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    23.723        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     7.3781        22.885        .14751E-03   -1.5165    
   6  Prefactor     .10002E-03    24.605        .23214E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    2.8671        .84220E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10001E-03    179.44        .51619E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     695.35        631.63        .78565E-04   -1.0371    
  10  Prefactor     .10003E-03    356.78        .18143E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    11.257        .16775E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     512.60        332.96        .90697E-04   -1.1140    
  13  Prefactor     29.515        78.023        .73737E-04   -1.4621    
  14  Prefactor     7.1762        29.559        .14975E-03   -1.5172    
  15  norm          18.502        18.455        .93115E-04   -1.4847    
  16  norm          .10000E-03    4.8100        .10967E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    3.3423        .91427E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          24.747        17.180        .80524E-04   -1.4713    
  19  Prefactor     2.6075        8.5021        .25249E-03   -1.5385    
  20  Prefactor     .10000E-03    33.730        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    81.252        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          5.2389        7.3914        .14787E-03   -1.5250    
  23  Prefactor     .10000E-03    26.219        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          1.6588        1.5299        .56547E-04   -1.5450    
  25  norm          10.633        8.6298        .12034E-03   -1.5056    
  26  Prefactor     .10000E-03    3.9153        .15452E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     16.410        26.725        .98880E-04   -1.4898    
  28  Prefactor     .10000E-03    18.616        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          .10000E-03    26.318        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    8.6307        .14520E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .10000E-03    2.4961        .78516E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     .10000E-03    33.415        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Normalizat    1.0488        .29530        .20598E-03   -.91412    
  34  Prefactor     .66251        .32683        .28757E-03   -1.0501    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.25361e-09
Minuit parameter uncertainties:
  1  0.00172223
  2  9.61213e-06
  3  9.13666e-05
  4  1.52776e-05
  5  22.9123
  6  0.00136262
  7  1.22258e-05
  8  0.00196973
  9  638.31
  10  0.00614251
  11  9.95301e-05
  12  334.235
  13  78.2947
  14  29.1536
  15  18.4611
  16  9.86272e-07
  17  7.37357e-07
  18  17.1833
  19  8.50607
  20  3.39043e-05
  21  0.000124901
  22  7.39266
  23  0.000110818
  24  1.52995
  25  8.63078
  26  4.47298e-06
  27  26.744
  28  4.50746e-06
  29  1.32331e-05
  30  4.55781e-05
  31  1.02087e-05
  32  3.40988e-05
  33  0.295766
  34  0.32778
Done.

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

Extracting fit parameters...

4FGL J2336.6-4115
   Spectrum: LogParabola
490         norm:  1.063e+01  8.631e+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:  6.625e-01  3.278e-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.049e+00  2.958e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.71
Ra Dec: 354.164 -41.258
Photon Index (Fixed Index): 2.22 +/- 0.00
Photon Flux (Fixed Index): 6.96e-08 +/- 5.65e-08
Energy Flux (Fixed Index): 2.82e-05 +/- 2.29e-05

TS (Fixed Index): 2.71
Ra Dec: 354.164 -41.258
Photon Flux Upper Limit: 1.84e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.45e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/57348/likelihoodResults_570844801_571104001_4FGL_J2336.6-4115_daily_bin1279.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) = 2622.16636121
delta logL = 0.666979070815

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2622.16206156
delta logL = 0.6712787285

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.6861       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.9618       1.0000          .0000       5.0000    
     3 'Normalizat'    .99177       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .70179       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=   2622.162     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      245 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.6931        98.395        .38796E-02    .94269E-04
   2  alpha         2.9609        3.9438        .18171        .27863E-04
   3  Normalizat    .99205        .11420        .46064E-01    .27356E-05
   4  Prefactor     .70154        .12841        .63230E-01    .94479E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 6.69309
  alpha      = 2.96087
  Normalizat = 0.992051
  Prefactor  = 0.701544
 **********
 **   18 **HESSE 
 **********

 FCN=   2622.162     FROM HESSE     STATUS=OK            33 CALLS      278 TOTAL
                     EDM=   .18E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.6931        7.2432        .76444E-04   -1.5190    
   2  alpha         2.9609        .71590        .76772E-02    .18541    
   3  Normalizat    .99205        .29217        .21054E-03   -.93297    
   4  Prefactor     .70154        .32803        .27972E-03   -1.0347    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.7515e-12
Minuit parameter uncertainties:
  1  7.24415
  2  0.726435
  3  0.292645
  4  0.32894
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/57348': 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) = 2622.16206032
delta logL = 0.671279965868

Extracting fit parameters...

4FGL J2336.6-4115
   Spectrum: LogParabola
490         norm:  6.693e+00  7.244e+00  1.000e-04  1.000e+04 ( 1.000e-12)
491        alpha:  2.961e+00  7.264e-01  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.015e-01  3.289e-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.921e-01  2.926e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.08
Ra Dec: 354.164 -41.258
Photon Index (Free Index): 2.96 +/- 0.73
Photon Flux (Free Index): 1.21e-07 +/- 7.83e-08
Energy Flux (Free Index): 2.67e-05 +/- 1.70e-05

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/57348/cmap_HighResolution_570844801_571104001_4FGL_J2336.6-4115_daily_bin1279.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.45e-05', comment='SUCCESS', photon_flux='6.96e-08', energy_flux2='2.67e-05', photon_flux_error='5.65e-08', dlogl='6.71e-01', energy_flux='2.82e-05', photon_flux2='1.21e-07', job_status='DONE', time_completed='2021-09-30 02:07:24.383610', photon_index_error2='0.73', photon_index2='2.96', ts='2.71', fit_tolerance='1e-08', GAL='0.66', photon_index_error='0.00', photon_flux_upper_limit='1.84e-07', energy_flux_error2='1.70e-05', EG='1.05', time_epoch_completed='1632992844.38', return_code='0', job_id='57348', GAL2='0.70', EG2='0.99', return_code2='0', energy_flux_error='2.29e-05', photon_flux_error2='7.83e-08', ts2='4.08', photon_index='2.22' WHERE bin_id='1279' AND source_name='4FGL J2336.6-4115' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 02:07:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0279>
Subject: Job 57348: <4FGL_J2336.6-4115_daily_bin1279> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2336.6-4115_daily_bin1279 354.164 -41.2579 570844801 571104001 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 :                                   633.15 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             316.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   718 sec.
    Turnaround time :                            720 sec.

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

