/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 72 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_bin1485
RA = 354.164, Dec = -41.2579
tmin = 624240001, tmax = 624499201
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='58631', job_status='RUN', time_executed='2021-09-30 02:01:46.659264', time_epoch_executed='1632992506.66' WHERE source_name='4FGL J2336.6-4115' and cadence='daily' and bin_id='1485'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/58631

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/58631/ft1_4FGL_J2336.6-4115_daily_bin1485.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/58631/ft2_4FGL_J2336.6-4115_daily_bin1485.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/58631/ft1_4FGL_J2336.6-4115_daily_bin1485.fits outfile=/scratch/kocevski/58631/ft1_filteredMKT_4FGL_J2336.6-4115_daily_bin1485.fits ra=354.164 dec=-41.2579 rad=12.0 tmin=624240001.0 tmax=624499201.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.55
user 3.24
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/58631/ft1_filtered_4FGL_J2336.6-4115_daily_bin1485.fits" evtable="EVENTS" scfile=/scratch/kocevski/58631/ft2_4FGL_J2336.6-4115_daily_bin1485.fits sctable="SC_DATA" outfile=/scratch/kocevski/58631/ltcube_624240001_624499201_4FGL_J2336.6-4115_daily_bin1485.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/58631/ft2_4FGL_J2336.6-4115_daily_bin1485.fits
.....................!
real 11.83
user 11.46
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/58631/ft1_filtered_4FGL_J2336.6-4115_daily_bin1485.fits evtable="EVENTS" scfile=/scratch/kocevski/58631/ft2_4FGL_J2336.6-4115_daily_bin1485.fits sctable="SC_DATA" expcube=/scratch/kocevski/58631/ltcube_624240001_624499201_4FGL_J2336.6-4115_daily_bin1485.fits outfile=/scratch/kocevski/58631/expmap_624240001_624499201_4FGL_J2336.6-4115_daily_bin1485.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/58631/ltcube_624240001_624499201_4FGL_J2336.6-4115_daily_bin1485.fits
.....................!
real 190.54
user 184.75
sys 5.26

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

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

This is gtbin version HEAD
real 0.53
user 0.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/58631/ft1_filtered_4FGL_J2336.6-4115_daily_bin1485.fits scfile=/scratch/kocevski/58631/ft2_4FGL_J2336.6-4115_daily_bin1485.fits outfile=/scratch/kocevski/58631/cmap_HighResolution_624240001_624499201_4FGL_J2336.6-4115_daily_bin1485.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/58631/ft1_filtered_4FGL_J2336.6-4115_daily_bin1485.fits evtable="EVENTS" scfile=/scratch/kocevski/58631/ft2_4FGL_J2336.6-4115_daily_bin1485.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/58631/Model_4FGL_J2336.6-4115_daily_bin1485.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/58631/ft1_filtered_4FGL_J2336.6-4115_daily_bin1485.fits.....................!
real 40.02
user 38.71
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    104.64       1.0000         .10000E-03   10000.    
     2 'Prefactor '    7.7881       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.0873       1.0000         .10000E-03   10000.    
     7 'Prefactor '    12.294       1.0000         .10000E-03   10000.    
     8 'Prefactor '    13.798       1.0000         .10000E-03   10000.    
     9 'Prefactor '    11.051       1.0000         .10000E-03   10000.    
    10 'Prefactor '    12.500       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10114E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10093E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    12.553       1.0000         .10000E-03   10000.    
    20 'Prefactor '    30.395       1.0000         .10000E-03   10000.    
    21 'Prefactor '    19.007       1.0000         .10000E-03   10000.    
    22 'norm      '    .10069E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    9.3021       1.0000         .10000E-03   10000.    
    24 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    3.0759       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
    32 'Prefactor '    29.327       1.0000         .10000E-03   10000.    
    33 'Normalizat'    1.5798       1.0000         .10000E-01   10.000    
    34 'Prefactor '    .37343       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=   5094.700     FROM MIGRAD    STATUS=CONVERGED    922 CALLS     5687 TOTAL
                     EDM=   .22E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     104.65        61.708        .16469E-06    .51591E-04
   2  Prefactor     7.8020        22.585       -.13422E-05   -.14397E-04
   3  Prefactor     .10000E-03    29.921       -.37365E-07** at limit **
   4  Prefactor     .10000E-03    29.962        .34530E-06** at limit **
   5  Prefactor     .10000E-03    8.1344       -.15051E-07** at limit **
   6  Prefactor     5.0876        7.7328        .50357E-05   -.18875E-03
   7  Prefactor     12.296        6.4367       -.20597E-06    .51127E-04
   8  Prefactor     13.801        25.407        .12947E-05    .44874E-06
   9  Prefactor     11.001        38.860       -.36927E-06   -.69440E-04
  10  Prefactor     12.503        33.405        .52556E-06    .20132E-04
  11  Prefactor     .10000E-03    4.5031        .12151E-06** at limit **
  12  Prefactor     .10000E-03    16.435        .22333E-06** at limit **
  13  Prefactor     .10000E-03    126.40        .15246E-05** at limit **
  14  Prefactor     .10000E-03    9.0871        .26432E-06** at limit **
  15  norm          .10000E-03    3.9099        .36933E-07** at limit **
  16  norm          .10000E-03    2.2402        .27247E-07** at limit **
  17  norm          .10000E-03    2.4602        .14186E-06** at limit **
  18  norm          .10000E-03    4.4268       -.50289E-06** at limit **
  19  Prefactor     12.555        8.6017       -.26842E-07   -.52680E-04
  20  Prefactor     30.408        33.701       -.28365E-06    .52923E-05
  21  Prefactor     18.919        49.560       -.20074E-05   -.13776E-03
  22  norm          .10000E-03    5.6543        .89546E-06** at limit **
  23  Prefactor     9.3093        20.020       -.18775E-06   -.40663E-04
  24  norm          .10000E-03    .76707        .20090E-06** at limit **
  25  norm          3.0762        2.9769       -.10450E-07   -.58444E-05
  26  Prefactor     .10000E-03    2.0259        .17935E-06** at limit **
  27  Prefactor     .10000E-03    8.2843        .16852E-07** at limit **
  28  Prefactor     .10000E-03    21.308       -.11664E-06** at limit **
  29  norm          .10000E-03    11.914       -.76561E-07** at limit **
  30  Prefactor     .10000E-03    3.4889        .89909E-07** at limit **
  31  Prefactor     .10000E-03    1.9592       -.12218E-07** at limit **
  32  Prefactor     29.337        40.747        .26742E-06    .37860E-04
  33  Normalizat    1.5791        .21920        .21124E-05   -.18529E-03
  34  Prefactor     .37422        .22674       -.55669E-05   -.27725E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 104.648
  Prefactor  = 7.80203
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.08763
  Prefactor  = 12.2962
  Prefactor  = 13.8007
  Prefactor  = 11.0007
  Prefactor  = 12.5026
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 12.5546
  Prefactor  = 30.4079
  Prefactor  = 18.9187
  norm       = 0.0001
  Prefactor  = 9.30928
  norm       = 0.0001
  norm       = 3.07618
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 29.3366
  Normalizat = 1.5791
  Prefactor  = 0.374221
 **********
 **   18 **HESSE 
 **********

 FCN=   5094.700     FROM HESSE     STATUS=OK           726 CALLS     6413 TOTAL
                     EDM=   .47E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     104.65        61.792        .19655E-03   -1.3658    
   2  Prefactor     7.8020        22.594        .14369E-03   -1.5149    
   3  Prefactor     .10000E-03    30.032        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    30.111        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    8.1366        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     5.0876        7.8027        .89131E-03   -1.5257    
   7  Prefactor     12.296        6.4412        .11424E-03   -1.5007    
   8  Prefactor     13.801        25.430        .53914E-03   -1.4965    
   9  Prefactor     11.001        38.865        .12052E-03   -1.5044    
  10  Prefactor     12.503        33.403        .11330E-03   -1.5001    
  11  Prefactor     .10000E-03    4.5229        .14790E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    16.439        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    127.52        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    9.1202        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    3.9106        .13784E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    2.2417        .10433E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    2.4650        .10930E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    4.4506        .14657E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     12.555        8.5592        .11306E-03   -1.4999    
  20  Prefactor     30.408        33.476        .72674E-04   -1.4605    
  21  Prefactor     18.919        49.760        .91868E-04   -1.4838    
  22  norm          .10000E-03    5.7497        .32776E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     9.3093        19.903        .13140E-03   -1.5098    
  24  norm          .10000E-03    1.2202        .11785E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          3.0762        2.9788        .11631E-03   -1.5357    
  26  Prefactor     .10000E-03    2.1081        .19828E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    8.2935        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    21.314        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          .10000E-03    11.917        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    3.5284        .13015E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .10000E-03    1.9888        .97409E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     29.337        40.756        .73983E-04   -1.4624    
  33  Normalizat    1.5791        .24450        .19715E-03   -.75579    
  34  Prefactor     .37422        .24522        .40581E-03   -1.1814    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.65706e-10
Minuit parameter uncertainties:
  1  61.8301
  2  22.6188
  3  3.81888e-05
  4  2.5766e-07
  5  1.50018e-05
  6  7.80423
  7  6.44161
  8  25.4496
  9  38.9544
  10  33.4531
  11  1.32124e-05
  12  6.03258e-05
  13  0.000758174
  14  2.58353e-05
  15  1.57337e-06
  16  3.09073e-07
  17  1.51976e-06
  18  2.65006e-07
  19  8.56003
  20  33.4963
  21  49.8698
  22  8.04858e-07
  23  19.9169
  24  1.16105e-05
  25  2.97895
  26  1.73171e-06
  27  3.13207e-06
  28  3.79781e-05
  29  3.67672e-05
  30  1.23436e-06
  31  4.23418e-07
  32  40.7942
  33  0.244684
  34  0.245909
Done.

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

Extracting fit parameters...

4FGL J2336.6-4115
   Spectrum: LogParabola
490         norm:  3.076e+00  2.979e+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:  3.742e-01  2.459e-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.579e+00  2.447e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.25
Ra Dec: 354.164 -41.258
Photon Index (Fixed Index): 2.22 +/- 0.00
Photon Flux (Fixed Index): 2.01e-08 +/- 1.95e-08
Energy Flux (Fixed Index): 8.15e-06 +/- 7.90e-06

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) = 5094.41373724
delta logL = 0.286749410905

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5094.37817472
delta logL = 0.322311923355

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.2388       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.3814       1.0000          .0000       5.0000    
     3 'Normalizat'    1.5922       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .36806       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=   5094.378     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      212 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.2377        2.2677        .68675E-02   -.22320E-03
   2  alpha         1.3811        .64099        .48185       -.25355E-04
   3  Normalizat    1.5922        .20894        .44463E-01   -.57408E-05
   4  Prefactor     .36803        .22399        .92323E-01    .42797E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.23772
  alpha      = 1.38114
  Normalizat = 1.59219
  Prefactor  = 0.368027
 **********
 **   18 **HESSE 
 **********

 FCN=   5094.378     FROM HESSE     STATUS=OK            33 CALLS      245 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.2377        2.7884        .10461E-03   -1.5409    
   2  alpha         1.3811        .88337        .20046E-01   -.46402    
   3  Normalizat    1.5922        .22642        .19653E-03   -.75220    
   4  Prefactor     .36803        .24200        .40911E-03   -1.1847    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.70467e-09
Minuit parameter uncertainties:
  1  2.78852
  2  0.908134
  3  0.226568
  4  0.242676
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/58631': 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) = 5094.37817464
delta logL = 0.322312003996

Extracting fit parameters...

4FGL J2336.6-4115
   Spectrum: LogParabola
490         norm:  2.238e+00  2.789e+00  1.000e-04  1.000e+04 ( 1.000e-12)
491        alpha:  1.381e+00  9.081e-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:  3.680e-01  2.427e-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.592e+00  2.266e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.91
Ra Dec: 354.164 -41.258
Photon Index (Free Index): 1.38 +/- 0.91
Photon Flux (Free Index): 7.50e-09 +/- 1.05e-08
Energy Flux (Free Index): 1.46e-05 +/- 2.34e-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/58631/cmap_HighResolution_624240001_624499201_4FGL_J2336.6-4115_daily_bin1485.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.01e-08', energy_flux2='1.46e-05', photon_flux_error='1.95e-08', dlogl='3.22e-01', energy_flux='8.15e-06', photon_flux2='7.50e-09', job_status='DONE', time_completed='2021-09-30 02:15:57.304911', photon_index_error2='0.91', photon_index2='1.38', ts='5.25', fit_tolerance='1e-08', GAL='0.37', photon_index_error='0.00', energy_flux_error2='2.34e-05', EG='1.58', time_epoch_completed='1632993357.3', return_code='0', job_id='58631', GAL2='0.37', EG2='1.59', return_code2='0', energy_flux_error='7.90e-06', photon_flux_error2='1.05e-08', ts2='5.91', photon_index='2.22' WHERE bin_id='1485' AND source_name='4FGL J2336.6-4115' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 02:15:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0037>
Subject: Job 58631: <4FGL_J2336.6-4115_daily_bin1485> in cluster <slac> Done

Job <4FGL_J2336.6-4115_daily_bin1485> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Thu Sep 30 02:00:24 2021
Job was executed on host(s) <bullet0037>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 02:00: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 02:00:26 2021
Terminated at Thu Sep 30 02:15:58 2021
Results reported at Thu Sep 30 02:15:58 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2336.6-4115_daily_bin1485 354.164 -41.2579 624240001 624499201 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 :                                   813.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             301.69 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   931 sec.
    Turnaround time :                            934 sec.

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

