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


Performing analysis on: 4FGL_J2336.6-4115_daily_bin1211
RA = 354.164, Dec = -41.2579
tmin = 553219201, tmax = 553478401
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='57243', job_status='RUN', time_executed='2021-09-30 01:56:06.341683', time_epoch_executed='1632992166.34' WHERE source_name='4FGL J2336.6-4115' and cadence='daily' and bin_id='1211'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/57243

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/57243/ft1_4FGL_J2336.6-4115_daily_bin1211.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/57243/ft2_4FGL_J2336.6-4115_daily_bin1211.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/57243/ft1_4FGL_J2336.6-4115_daily_bin1211.fits outfile=/scratch/kocevski/57243/ft1_filteredMKT_4FGL_J2336.6-4115_daily_bin1211.fits ra=354.164 dec=-41.2579 rad=12.0 tmin=553219201.0 tmax=553478401.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 2.81
user 2.53
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/57243/ft2_4FGL_J2336.6-4115_daily_bin1211.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/57243/ft1_filteredMKT_4FGL_J2336.6-4115_daily_bin1211.fits evtable="EVENTS" outfile="/scratch/kocevski/57243/ft1_filtered_4FGL_J2336.6-4115_daily_bin1211.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/57243/ft1_filtered_4FGL_J2336.6-4115_daily_bin1211.fits" evtable="EVENTS" scfile=/scratch/kocevski/57243/ft2_4FGL_J2336.6-4115_daily_bin1211.fits sctable="SC_DATA" outfile=/scratch/kocevski/57243/ltcube_553219201_553478401_4FGL_J2336.6-4115_daily_bin1211.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/57243/ft2_4FGL_J2336.6-4115_daily_bin1211.fits
.....................!
real 12.78
user 12.39
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/57243/ft1_filtered_4FGL_J2336.6-4115_daily_bin1211.fits evtable="EVENTS" scfile=/scratch/kocevski/57243/ft2_4FGL_J2336.6-4115_daily_bin1211.fits sctable="SC_DATA" expcube=/scratch/kocevski/57243/ltcube_553219201_553478401_4FGL_J2336.6-4115_daily_bin1211.fits outfile=/scratch/kocevski/57243/expmap_553219201_553478401_4FGL_J2336.6-4115_daily_bin1211.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/57243/ltcube_553219201_553478401_4FGL_J2336.6-4115_daily_bin1211.fits
.....................!
real 192.87
user 187.09
sys 5.43

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/57243/ft1_filtered_4FGL_J2336.6-4115_daily_bin1211.fits scfile=/scratch/kocevski/57243/ft2_4FGL_J2336.6-4115_daily_bin1211.fits outfile=/scratch/kocevski/57243/cmap_553219201_553478401_4FGL_J2336.6-4115_daily_bin1211.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/57243/ft1_filtered_4FGL_J2336.6-4115_daily_bin1211.fits scfile=/scratch/kocevski/57243/ft2_4FGL_J2336.6-4115_daily_bin1211.fits outfile=/scratch/kocevski/57243/cmap_HighResolution_553219201_553478401_4FGL_J2336.6-4115_daily_bin1211.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.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/57243/ft1_filtered_4FGL_J2336.6-4115_daily_bin1211.fits evtable="EVENTS" scfile=/scratch/kocevski/57243/ft2_4FGL_J2336.6-4115_daily_bin1211.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/57243/Model_4FGL_J2336.6-4115_daily_bin1211.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/57243/ft1_filtered_4FGL_J2336.6-4115_daily_bin1211.fits.....................!
real 39.70
user 38.27
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    66.481       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10230E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    100.64       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    13.147       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10199E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    16.601       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10850E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    83.508       1.0000         .10000E-03   10000.    
    11 'Prefactor '    11.314       1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.0648       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10514E-01   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    7.2747       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    3.6017       1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.7127       1.0000         .10000E-03   10000.    
    20 'Prefactor '    48.414       1.0000         .10000E-03   10000.    
    21 'Prefactor '    73.766       1.0000         .10000E-03   10000.    
    22 'norm      '    .41756E-01   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    11.792       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    .10223E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    3.1426       1.0000         .10000E-03   10000.    
    32 'Prefactor '    .10231E-03   1.0000         .10000E-03   10000.    
    33 'Normalizat'    1.6134       1.0000         .10000E-01   10.000    
    34 'Prefactor '    .19806       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=   4830.383     FROM MIGRAD    STATUS=CONVERGED    984 CALLS     4995 TOTAL
                     EDM=   .13E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     66.493        57.794        .50342E-06    .19750E-04
   2  Prefactor     .10000E-03    52.073       -.77035E-06** at limit **
   3  Prefactor     100.59        49.217       -.20751E-07    .40275E-04
   4  Prefactor     .10000E-03    20.480        .10259E-05** at limit **
   5  Prefactor     13.142        25.068       -.71066E-06   -.93214E-04
   6  Prefactor     .10000E-03    4.3586        .33940E-07** at limit **
   7  Prefactor     .10000E-03    4.9846        .11341E-05** at limit **
   8  Prefactor     16.591        27.777       -.97600E-06   -.11577E-03
   9  Prefactor     .10000E-03    32.496        .12838E-05** at limit **
  10  Prefactor     83.486        50.803       -.14677E-06   -.78576E-05
  11  Prefactor     11.309        10.058        .16530E-06    .21313E-04
  12  Prefactor     1.9122        321.94       -.16119E-05   -.62620E-05
  13  Prefactor     .10001E-03    39.370        .39869E-06** at limit **
  14  Prefactor     .10000E-03    14.236        .14482E-06** at limit **
  15  norm          7.2725        13.342        .21668E-05   -.18375E-03
  16  norm          .10000E-03    2.3725        .42386E-08** at limit **
  17  norm          .10000E-03    4.8664       -.24519E-07** at limit **
  18  norm          3.6007        7.6584        .61625E-06   -.56825E-05
  19  Prefactor     4.7117        4.3755       -.18471E-07    .29275E-04
  20  Prefactor     48.683        51.657        .50579E-06   -.77779E-05
  21  Prefactor     73.723        56.529       -.90663E-06   -.34764E-04
  22  norm          .10001E-03    4.2183       -.95704E-07** at limit **
  23  Prefactor     .10000E-03    4.5894       -.68933E-09** at limit **
  24  norm          .10000E-03    .61122        .35117E-07** at limit **
  25  norm          11.801        6.7530        .10068E-06   -.22298E-04
  26  Prefactor     .10000E-03    1.8783        .19723E-07** at limit **
  27  Prefactor     .10000E-03    25.254       -.17758E-05** at limit **
  28  Prefactor     .10000E-03    18.277       -.11785E-05** at limit **
  29  norm          .10000E-03    11.524       -.14418E-07** at limit **
  30  Prefactor     .10000E-03    2.0757        .53962E-08** at limit **
  31  Prefactor     3.1410        3.3397        .39871E-07    .41320E-04
  32  Prefactor     .10000E-03    20.302        .94707E-06** at limit **
  33  Normalizat    1.6129        .27974        .11246E-05   -.60134E-04
  34  Prefactor     .19892        .30493       -.40411E-05   -.61192E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 66.4932
  Prefactor  = 0.0001
  Prefactor  = 100.593
  Prefactor  = 0.0001
  Prefactor  = 13.1417
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 16.5907
  Prefactor  = 0.0001
  Prefactor  = 83.4855
  Prefactor  = 11.3089
  Prefactor  = 1.91219
  Prefactor  = 0.000100009
  Prefactor  = 0.0001
  norm       = 7.27246
  norm       = 0.0001
  norm       = 0.0001
  norm       = 3.60069
  Prefactor  = 4.71169
  Prefactor  = 48.6829
  Prefactor  = 73.7229
  norm       = 0.000100008
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 11.8007
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.141
  Prefactor  = 0.0001
  Normalizat = 1.61288
  Prefactor  = 0.198919
 **********
 **   18 **HESSE 
 **********

 FCN=   4830.383     FROM HESSE     STATUS=OK           740 CALLS     5735 TOTAL
                     EDM=   .41E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     66.493        57.945        .49224E-04   -1.4075    
   2  Prefactor     .10000E-03    53.371        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     100.59        49.248        .40075E-04   -1.3699    
   4  Prefactor     .10000E-03    20.625        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     13.142        24.335        .11047E-03   -1.4983    
   6  Prefactor     .10000E-03    4.3914        .14168E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    7.8105        .26442E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     16.591        26.468        .98301E-04   -1.4893    
   9  Prefactor     .10000E-03    32.710        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     83.486        50.844        .43957E-04   -1.3878    
  11  Prefactor     11.309        10.002        .11911E-03   -1.5035    
  12  Prefactor     1.9122        316.54        .28754E-03   -1.5431    
  13  Prefactor     .10001E-03    39.755        .15162       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    14.360        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          7.2725        13.266        .74356E-03   -1.5169    
  16  norm          .10000E-03    2.3743        .10453E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    4.9380        .14935E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          3.6007        7.6169        .21291E-03   -1.5328    
  19  Prefactor     4.7117        4.3401        .13500E-03   -1.5274    
  20  Prefactor     48.683        47.029        .57631E-04   -1.4311    
  21  Prefactor     73.723        56.868        .46747E-04   -1.3989    
  22  norm          .10001E-03    90.248        .23360E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    4.5949        .14539E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    1.0972        .10446E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          11.801        6.6840        .11666E-03   -1.5021    
  26  Prefactor     .10000E-03    1.9068        .92952E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    25.736        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    18.447        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          .10000E-03    11.525        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    2.0825        .97772E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     3.1410        3.3278        .12575E-03   -1.5353    
  32  Prefactor     .10000E-03    20.422        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Normalizat    1.6129        .24034        .19510E-03   -.74654    
  34  Prefactor     .19892        .24652        .54157E-03   -1.2878    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.05885e-10
Minuit parameter uncertainties:
  1  57.9944
  2  7.38764e-05
  3  49.2677
  4  9.23878e-05
  5  24.3538
  6  3.79486e-07
  7  0.000143231
  8  26.4869
  9  0.000159734
  10  50.8705
  11  10.0037
  12  49.4717
  13  0.00118912
  14  1.15422e-05
  15  13.2716
  16  1.51811e-07
  17  6.18672e-07
  18  7.61893
  19  4.34034
  20  47.0647
  21  56.9104
  22  0.00173322
  23  1.75806e-07
  24  6.78388e-07
  25  6.68447
  26  1.47543e-06
  27  0.000171777
  28  0.000106688
  29  6.53102e-07
  30  2.02424e-07
  31  3.328
  32  8.80767e-05
  33  0.240517
  34  0.247814
Done.

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

Extracting fit parameters...

4FGL J2336.6-4115
   Spectrum: LogParabola
490         norm:  1.180e+01  6.684e+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.989e-01  2.478e-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.613e+00  2.405e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.46
Ra Dec: 354.164 -41.258
Photon Index (Fixed Index): 2.22 +/- 0.00
Photon Flux (Fixed Index): 7.72e-08 +/- 4.37e-08
Energy Flux (Fixed Index): 3.13e-05 +/- 1.77e-05

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) = 4830.37272725
delta logL = 0.0103613085303

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4830.3706853
delta logL = 0.0124032563217

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4830.371     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      242 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          11.441        6.6102        .11711E-03    .50150E-03
   2  alpha         2.2912        .48027        .10409E-01    .44131E-04
   3  Normalizat    1.6073        .22986        .19534E-03   -.23745E-04
   4  Prefactor     .20273        .24036        .53679E-03   -.14486E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 11.4407
  alpha      = 2.29119
  Normalizat = 1.60732
  Prefactor  = 0.202734
 **********
 **   18 **HESSE 
 **********

 FCN=   4830.371     FROM HESSE     STATUS=OK            25 CALLS      267 TOTAL
                     EDM=   .96E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          11.441        6.5158        .46844E-05   -1.5031    
   2  alpha         2.2912        .47322        .41635E-03   -.83621E-01
   3  Normalizat    1.6073        .22948        .78136E-05   -.74806    
   4  Prefactor     .20273        .23997        .21472E-04   -1.2851    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.64841e-11
Minuit parameter uncertainties:
  1  6.5162
  2  0.47611
  3  0.229635
  4  0.241148
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/57243': 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) = 4830.37068524
delta logL = 0.0124033162947

Extracting fit parameters...

4FGL J2336.6-4115
   Spectrum: LogParabola
490         norm:  1.144e+01  6.516e+00  1.000e-04  1.000e+04 ( 1.000e-12)
491        alpha:  2.291e+00  4.761e-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:  2.027e-01  2.411e-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.607e+00  2.296e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.49
Ra Dec: 354.164 -41.258
Photon Index (Free Index): 2.29 +/- 0.48
Photon Flux (Free Index): 8.20e-08 +/- 5.17e-08
Energy Flux (Free Index): 3.04e-05 +/- 1.68e-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/57243/cmap_HighResolution_553219201_553478401_4FGL_J2336.6-4115_daily_bin1211.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.72e-08', energy_flux2='3.04e-05', photon_flux_error='4.37e-08', dlogl='1.24e-02', energy_flux='3.13e-05', photon_flux2='8.20e-08', job_status='DONE', time_completed='2021-09-30 02:08:25.630491', photon_index_error2='0.48', photon_index2='2.29', ts='7.46', fit_tolerance='1e-08', GAL='0.20', photon_index_error='0.00', energy_flux_error2='1.68e-05', EG='1.61', time_epoch_completed='1632992905.63', return_code='0', job_id='57243', GAL2='0.20', EG2='1.61', return_code2='0', energy_flux_error='1.77e-05', photon_flux_error2='5.17e-08', ts2='7.49', photon_index='2.22' WHERE bin_id='1211' AND source_name='4FGL J2336.6-4115' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 02:08:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0051>
Subject: Job 57243: <4FGL_J2336.6-4115_daily_bin1211> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2336.6-4115_daily_bin1211 354.164 -41.2579 553219201 553478401 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 :                                   736.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             324.38 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   789 sec.
    Turnaround time :                            792 sec.

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

