/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 9 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 = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2336.6-4115_daily_bin1562
RA = 354.164, Dec = -41.2579
tmin = 644198401, tmax = 644457601
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='58758', job_status='RUN', time_executed='2021-09-30 02:00:55.991105', time_epoch_executed='1632992455.99' WHERE source_name='4FGL J2336.6-4115' and cadence='daily' and bin_id='1562'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/58758

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/58758/ft1_4FGL_J2336.6-4115_daily_bin1562.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/58758/ft2_4FGL_J2336.6-4115_daily_bin1562.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/58758/ft1_4FGL_J2336.6-4115_daily_bin1562.fits outfile=/scratch/kocevski/58758/ft1_filteredMKT_4FGL_J2336.6-4115_daily_bin1562.fits ra=354.164 dec=-41.2579 rad=12.0 tmin=644198401.0 tmax=644457601.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.45
user 3.19
sys 0.20

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/58758/ft1_filtered_4FGL_J2336.6-4115_daily_bin1562.fits" evtable="EVENTS" scfile=/scratch/kocevski/58758/ft2_4FGL_J2336.6-4115_daily_bin1562.fits sctable="SC_DATA" outfile=/scratch/kocevski/58758/ltcube_644198401_644457601_4FGL_J2336.6-4115_daily_bin1562.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/58758/ft2_4FGL_J2336.6-4115_daily_bin1562.fits
.....................!
real 12.27
user 11.88
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/58758/ft1_filtered_4FGL_J2336.6-4115_daily_bin1562.fits evtable="EVENTS" scfile=/scratch/kocevski/58758/ft2_4FGL_J2336.6-4115_daily_bin1562.fits sctable="SC_DATA" expcube=/scratch/kocevski/58758/ltcube_644198401_644457601_4FGL_J2336.6-4115_daily_bin1562.fits outfile=/scratch/kocevski/58758/expmap_644198401_644457601_4FGL_J2336.6-4115_daily_bin1562.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/58758/ltcube_644198401_644457601_4FGL_J2336.6-4115_daily_bin1562.fits
.....................!
real 191.61
user 186.76
sys 4.47

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/58758/ft1_filtered_4FGL_J2336.6-4115_daily_bin1562.fits scfile=/scratch/kocevski/58758/ft2_4FGL_J2336.6-4115_daily_bin1562.fits outfile=/scratch/kocevski/58758/cmap_644198401_644457601_4FGL_J2336.6-4115_daily_bin1562.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.54
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/58758/ft1_filtered_4FGL_J2336.6-4115_daily_bin1562.fits scfile=/scratch/kocevski/58758/ft2_4FGL_J2336.6-4115_daily_bin1562.fits outfile=/scratch/kocevski/58758/cmap_HighResolution_644198401_644457601_4FGL_J2336.6-4115_daily_bin1562.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.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/58758/ft1_filtered_4FGL_J2336.6-4115_daily_bin1562.fits evtable="EVENTS" scfile=/scratch/kocevski/58758/ft2_4FGL_J2336.6-4115_daily_bin1562.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/58758/Model_4FGL_J2336.6-4115_daily_bin1562.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/58758/ft1_filtered_4FGL_J2336.6-4115_daily_bin1562.fits.....................!
real 51.79
user 50.47
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    29.619       1.0000         .10000E-03   10000.    
     2 'Prefactor '    16.938       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    11.436       1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.0505       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    13.181       1.0000         .10000E-03   10000.    
     8 'Prefactor '    77.408       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   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      '    .21469E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.8654       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .13884E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    1.6977       1.0000         .10000E-03   10000.    
    25 'norm      '    3.7252       1.0000         .10000E-03   10000.    
    26 'Prefactor '    2.7588       1.0000         .10000E-03   10000.    
    27 'Prefactor '    3.3892       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    4.0509       1.0000         .10000E-03   10000.    
    32 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    33 'Normalizat'    .83720       1.0000         .10000E-01   10.000    
    34 'Prefactor '    .89436       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=   7613.401     FROM MIGRAD    STATUS=CONVERGED    922 CALLS     4117 TOTAL
                     EDM=   .24E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     29.585        33.755        .39375E-05    .56975E-04
   2  Prefactor     16.928        18.298       -.60449E-06   -.35947E-05
   3  Prefactor     .10000E-03    8.4129        .21703E-06** at limit **
   4  Prefactor     11.435        14.424        .88003E-07   -.74384E-05
   5  Prefactor     2.0510        34.439       -.17509E-06   -.42435E-06
   6  Prefactor     .10000E-03    2.2866        .63958E-07** at limit **
   7  Prefactor     13.180        6.4380        .21596E-06    .10967E-03
   8  Prefactor     77.406        28.816       -.11192E-06   -.11540E-05
   9  Prefactor     .10000E-03    8.2880        .22171E-06** at limit **
  10  Prefactor     .10000E-03    12.533       -.36829E-06** at limit **
  11  Prefactor     .10000E-03    2.6184        .16857E-07** at limit **
  12  Prefactor     .10000E-03    11.829       -.51175E-06** at limit **
  13  Prefactor     .10000E-03    20.211        .44726E-06** at limit **
  14  Prefactor     .10000E-03    2.3165       -.67478E-07** at limit **
  15  norm          .10000E-03    3.2198       -.63016E-08** at limit **
  16  norm          .10000E-03    1.1374        .45121E-09** at limit **
  17  norm          .10000E-03    1.3272        .70573E-08** at limit **
  18  norm          .10001E-03    3.5285        .18291E-06** at limit **
  19  Prefactor     2.8643        2.7799       -.13935E-08   -.26862E-04
  20  Prefactor     .10000E-03    19.565        .70840E-06** at limit **
  21  Prefactor     .10000E-03    24.397       -.13037E-05** at limit **
  22  norm          .10001E-03    1.7612        .79306E-06** at limit **
  23  Prefactor     .10000E-03    5.3769        .68287E-07** at limit **
  24  norm          1.6977        .77967       -.13236E-08   -.85660E-04
  25  norm          3.7266        2.9283        .22772E-06   -.28704E-03
  26  Prefactor     2.7602        2.6755       -.49586E-07   -.55780E-04
  27  Prefactor     3.3753        26.096        .87166E-06    .74823E-05
  28  Prefactor     .10000E-03    16.403        .75929E-06** at limit **
  29  norm          .10000E-03    7.8920        .92960E-07** at limit **
  30  Prefactor     .10000E-03    1.9759        .27056E-06** at limit **
  31  Prefactor     4.0525        3.5824        .94219E-06    .40065E-03
  32  Prefactor     .10000E-03    8.4337        .23449E-06** at limit **
  33  Normalizat    .83711        .13875       -.39845E-06   -.21822E-03
  34  Prefactor     .89459        .15408       -.21252E-06   -.21836E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 29.5853
  Prefactor  = 16.9278
  Prefactor  = 0.0001
  Prefactor  = 11.4353
  Prefactor  = 2.051
  Prefactor  = 0.0001
  Prefactor  = 13.18
  Prefactor  = 77.4064
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.000100005
  Prefactor  = 2.86434
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100015
  Prefactor  = 0.0001
  norm       = 1.69768
  norm       = 3.72661
  Prefactor  = 2.76017
  Prefactor  = 3.37526
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 4.05247
  Prefactor  = 0.0001
  Normalizat = 0.837106
  Prefactor  = 0.894594
 **********
 **   18 **HESSE 
 **********

 FCN=   7613.401     FROM HESSE     STATUS=OK           728 CALLS     4845 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     29.585        33.891        .73617E-04   -1.4620    
   2  Prefactor     16.928        18.271        .97317E-04   -1.4885    
   3  Prefactor     .10000E-03    8.4209        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     11.435        14.408        .11847E-03   -1.5032    
   5  Prefactor     2.0510        33.790        .28869E-03   -1.5422    
   6  Prefactor     .10000E-03    2.3041        .12884E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     13.180        6.4024        .55165E-03   -1.4982    
   8  Prefactor     77.406        28.833        .45642E-04   -1.3946    
   9  Prefactor     .10000E-03    8.2886        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    12.610        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    2.6450        .13786E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    11.851        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    20.261        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    2.3180        .12969E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    3.2279        .15291E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    1.1375        .90880E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    1.3306        .98127E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10001E-03    44.391        .31076E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     2.8643        2.7815        .13901E-03   -1.5369    
  20  Prefactor     .10000E-03    19.657        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    24.484        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10001E-03    7.1565        .19604E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    5.4086        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          1.6977        .77830        .49959E-04   -1.5447    
  25  norm          3.7266        2.8552        .62144E-03   -1.5322    
  26  Prefactor     2.7602        2.6236        .12143E-03   -1.5376    
  27  Prefactor     3.3753        25.092        .21978E-03   -1.5341    
  28  Prefactor     .10000E-03    16.445        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          .10000E-03    7.8932        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    13.333        .23164E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     4.0525        3.6179        .69962E-03   -1.5305    
  32  Prefactor     .10000E-03    8.4408        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Normalizat    .83711        .16492        .22106E-03   -.98707    
  34  Prefactor     .89459        .18519        .24557E-03   -.96330    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.38879e-09
Minuit parameter uncertainties:
  1  33.9129
  2  18.2773
  3  2.66058e-06
  4  14.4122
  5  16.6603
  6  6.3823e-07
  7  6.4027
  8  28.8381
  9  4.61547e-06
  10  2.87662e-06
  11  1.60532e-06
  12  9.93769e-06
  13  1.59357e-05
  14  4.74927e-07
  15  2.30387e-07
  16  1.13206e-08
  17  1.68423e-06
  18  0.000972781
  19  2.78162
  20  2.36444e-05
  21  3.18999e-05
  22  0.000644451
  23  4.04625e-07
  24  0.778302
  25  2.85531
  26  2.62372
  27  18.4163
  28  2.05338e-05
  29  2.0153e-06
  30  0.000334367
  31  3.61814
  32  4.06243e-06
  33  0.16502
  34  0.185323
Done.

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

Extracting fit parameters...

4FGL J2336.6-4115
   Spectrum: LogParabola
490         norm:  3.727e+00  2.855e+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:  8.946e-01  1.853e-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:  8.371e-01  1.650e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.28
Ra Dec: 354.164 -41.258
Photon Index (Fixed Index): 2.22 +/- 0.00
Photon Flux (Fixed Index): 2.44e-08 +/- 1.87e-08
Energy Flux (Fixed Index): 9.88e-06 +/- 7.57e-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) = 7613.35067799
delta logL = 0.0504289393111

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7613.34921052
delta logL = 0.0518964093581

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.7699       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9778       1.0000          .0000       5.0000    
     3 'Normalizat'    .84366       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89088       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=   7613.349     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      203 TOTAL
                     EDM=   .74E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.7707        111.12        .51981E-02    .98259E-04
   2  alpha         1.9781        3.0751        .42348        .39660E-05
   3  Normalizat    .84354        .10011        .44177E-01    .21973E-04
   4  Prefactor     .89107        .83675E-01    .44889E-01    .17715E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.7707
  alpha      = 1.97813
  Normalizat = 0.843544
  Prefactor  = 0.891069
 **********
 **   18 **HESSE 
 **********

 FCN=   7613.349     FROM HESSE     STATUS=OK            33 CALLS      236 TOTAL
                     EDM=   .87E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.7707        3.0443        .13147E-03   -1.5320    
   2  alpha         1.9781        .74123        .19689E-01   -.21030    
   3  Normalizat    .84354        .16111        .22030E-03   -.98473    
   4  Prefactor     .89107        .18457        .24602E-03   -.96454    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.7159e-14
Minuit parameter uncertainties:
  1  3.0444
  2  0.753085
  3  0.161203
  4  0.184697
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/58758': 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) = 7613.3492097
delta logL = 0.0518972320324

Extracting fit parameters...

4FGL J2336.6-4115
   Spectrum: LogParabola
490         norm:  3.771e+00  3.044e+00  1.000e-04  1.000e+04 ( 1.000e-12)
491        alpha:  1.978e+00  7.531e-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:  8.911e-01  1.847e-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:  8.435e-01  1.612e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.38
Ra Dec: 354.164 -41.258
Photon Index (Free Index): 1.98 +/- 0.75
Photon Flux (Free Index): 1.90e-08 +/- 2.22e-08
Energy Flux (Free Index): 1.08e-05 +/- 9.43e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/58758/cmap_HighResolution_644198401_644457601_4FGL_J2336.6-4115_daily_bin1562.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.44e-08', energy_flux2='1.08e-05', photon_flux_error='1.87e-08', dlogl='5.19e-02', energy_flux='9.88e-06', photon_flux2='1.90e-08', job_status='DONE', time_completed='2021-09-30 02:15:43.313971', photon_index_error2='0.75', photon_index2='1.98', ts='4.28', fit_tolerance='1e-08', GAL='0.89', photon_index_error='0.00', energy_flux_error2='9.43e-06', EG='0.84', time_epoch_completed='1632993343.31', return_code='0', job_id='58758', GAL2='0.89', EG2='0.84', return_code2='0', energy_flux_error='7.57e-06', photon_flux_error2='2.22e-08', ts2='4.38', photon_index='2.22' WHERE bin_id='1562' AND source_name='4FGL J2336.6-4115' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 02:15:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0058>
Subject: Job 58758: <4FGL_J2336.6-4115_daily_bin1562> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2336.6-4115_daily_bin1562 354.164 -41.2579 644198401 644457601 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 :                                   883.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             331.38 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   905 sec.
    Turnaround time :                            907 sec.

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

