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


Performing analysis on: 4FGL_J2336.6-4115_daily_bin1606
RA = 354.164, Dec = -41.2579
tmin = 655603201, tmax = 655862401
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='504002', job_status='RUN', time_executed='2021-12-08 09:41:37.638108', time_epoch_executed='1638985297.64' WHERE source_name='4FGL J2336.6-4115' and cadence='daily' and bin_id='1606'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/504002

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/504002/ft1_4FGL_J2336.6-4115_daily_bin1606.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/504002/ft2_4FGL_J2336.6-4115_daily_bin1606.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/504002/ft1_4FGL_J2336.6-4115_daily_bin1606.fits outfile=/scratch/kocevski/504002/ft1_filteredMKT_4FGL_J2336.6-4115_daily_bin1606.fits ra=354.164 dec=-41.2579 rad=12.0 tmin=655603201.0 tmax=655862401.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 4.29
user 4.01
sys 0.25

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/504002/ft1_filtered_4FGL_J2336.6-4115_daily_bin1606.fits" evtable="EVENTS" scfile=/scratch/kocevski/504002/ft2_4FGL_J2336.6-4115_daily_bin1606.fits sctable="SC_DATA" outfile=/scratch/kocevski/504002/ltcube_655603201_655862401_4FGL_J2336.6-4115_daily_bin1606.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/504002/ft2_4FGL_J2336.6-4115_daily_bin1606.fits
.....................!
real 13.95
user 13.57
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/504002/ft1_filtered_4FGL_J2336.6-4115_daily_bin1606.fits evtable="EVENTS" scfile=/scratch/kocevski/504002/ft2_4FGL_J2336.6-4115_daily_bin1606.fits sctable="SC_DATA" expcube=/scratch/kocevski/504002/ltcube_655603201_655862401_4FGL_J2336.6-4115_daily_bin1606.fits outfile=/scratch/kocevski/504002/expmap_655603201_655862401_4FGL_J2336.6-4115_daily_bin1606.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/504002/ltcube_655603201_655862401_4FGL_J2336.6-4115_daily_bin1606.fits
.....................!
real 192.20
user 185.94
sys 5.00

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/504002/ft1_filtered_4FGL_J2336.6-4115_daily_bin1606.fits scfile=/scratch/kocevski/504002/ft2_4FGL_J2336.6-4115_daily_bin1606.fits outfile=/scratch/kocevski/504002/cmap_655603201_655862401_4FGL_J2336.6-4115_daily_bin1606.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.56
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/504002/ft1_filtered_4FGL_J2336.6-4115_daily_bin1606.fits scfile=/scratch/kocevski/504002/ft2_4FGL_J2336.6-4115_daily_bin1606.fits outfile=/scratch/kocevski/504002/cmap_HighResolution_655603201_655862401_4FGL_J2336.6-4115_daily_bin1606.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.56
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/504002/ft1_filtered_4FGL_J2336.6-4115_daily_bin1606.fits evtable="EVENTS" scfile=/scratch/kocevski/504002/ft2_4FGL_J2336.6-4115_daily_bin1606.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/504002/Model_4FGL_J2336.6-4115_daily_bin1606.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/504002/ft1_filtered_4FGL_J2336.6-4115_daily_bin1606.fits.....................!
real 36.68
user 35.32
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    34.057       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10923E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.8325       1.0000         .10000E-03   10000.    
     8 'Prefactor '    39.237       1.0000         .10000E-03   10000.    
     9 'Prefactor '    11.942       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10159E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10676E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .24769E-02   1.0000         .10000E-03   10000.    
    14 'Prefactor '    16.435       1.0000         .10000E-03   10000.    
    15 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    4.2901       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .55171E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    5.8080       1.0000         .10000E-03   10000.    
    20 'Prefactor '    42.965       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10134E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    6.3875       1.0000         .10000E-03   10000.    
    24 'norm      '    1.6049       1.0000         .10000E-03   10000.    
    25 'norm      '    3.1773       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .80916E-01   1.0000         .10000E-03   10000.    
    27 'Prefactor '    4.8283       1.0000         .10000E-03   10000.    
    28 'Prefactor '    80.079       1.0000         .10000E-03   10000.    
    29 'norm      '    .10099E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    2.3423       1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    32 'Prefactor '    .12415E-03   1.0000         .10000E-03   10000.    
    33 'Normalizat'    1.4236       1.0000         .10000E-01   10.000    
    34 'Prefactor '    .36060       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=   4269.703     FROM MIGRAD    STATUS=CONVERGED    938 CALLS     4877 TOTAL
                     EDM=   .84E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     34.031        44.302       -.10986E-05    .44149E-05
   2  Prefactor     .10000E-03    20.623        .17289E-05** at limit **
   3  Prefactor     .10000E-03    94.196       -.20591E-04** at limit **
   4  Prefactor     .10000E-03    12.061        .19432E-05** at limit **
   5  Prefactor     .10000E-03    17.947       -.88567E-05** at limit **
   6  Prefactor     .10000E-03    6.5258        .16379E-06** at limit **
   7  Prefactor     4.8333        5.5858       -.61583E-06   -.84193E-05
   8  Prefactor     39.252        36.191        .97645E-06    .44338E-04
   9  Prefactor     12.072        69.872        .12471E-03    .29553E-05
  10  Prefactor     .10000E-03    16.847        .77706E-05** at limit **
  11  Prefactor     .10000E-03    4.5658       -.42364E-06** at limit **
  12  Prefactor     .10000E-03    81.051       -.62103E-04** at limit **
  13  Prefactor     .10000E-03    378.93        .26608E-04** at limit **
  14  Prefactor     16.428        19.801        .78123E-06    .54875E-04
  15  norm          .10000E-03    3.8001       -.21860E-07** at limit **
  16  norm          4.2909        4.3978       -.29091E-05    .15375E-03
  17  norm          .10000E-03    1.5747       -.33194E-08** at limit **
  18  norm          .19410E-03    8.9229       -.14828E-06** at limit **
  19  Prefactor     5.8068        5.9189        .22265E-05    .30882E-04
  20  Prefactor     42.984        37.689       -.29169E-06   -.17042E-04
  21  Prefactor     .10000E-03    63.273        .25102E-04** at limit **
  22  norm          .10000E-03    2.7268       -.58058E-07** at limit **
  23  Prefactor     6.3858        14.115        .34553E-05   -.49054E-04
  24  norm          1.6051        1.1079       -.18710E-07   -.78839E-03
  25  norm          3.1770        5.3810        .24762E-05   -.32433E-03
  26  Prefactor     .82956E-01    2.2285        .15592E-06   -.23329E-03
  27  Prefactor     4.8301        22.883        .28170E-05   -.43616E-04
  28  Prefactor     80.102        83.492        .16975E-04   -.11335E-03
  29  norm          .10000E-03    12.725       -.30132E-05** at limit **
  30  Prefactor     2.3424        4.5673       -.14136E-05   -.46002E-03
  31  Prefactor     .10000E-03    1.2452        .41736E-07** at limit **
  32  Prefactor     .10000E-03    116.20        .86264E-04** at limit **
  33  Normalizat    1.4236        .22814       -.11605E-05   -.80863E-04
  34  Prefactor     .36040        .23452       -.91536E-05   -.19931E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 34.0308
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.83334
  Prefactor  = 39.2515
  Prefactor  = 12.072
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.000100002
  Prefactor  = 16.4278
  norm       = 0.0001
  norm       = 4.29091
  norm       = 0.0001
  norm       = 0.0001941
  Prefactor  = 5.80682
  Prefactor  = 42.9838
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 6.38584
  norm       = 1.60509
  norm       = 3.17702
  Prefactor  = 0.0829559
  Prefactor  = 4.83012
  Prefactor  = 80.1016
  norm       = 0.0001
  Prefactor  = 2.34238
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Normalizat = 1.42359
  Prefactor  = 0.360396
 **********
 **   18 **HESSE 
 **********

 FCN=   4269.703     FROM HESSE     STATUS=OK           736 CALLS     5613 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     34.031        44.349        .68667E-04   -1.4541    
   2  Prefactor     .10000E-03    20.930        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    95.578        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    12.063        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    18.011        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    6.6037        .16299E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     4.8333        5.5800        .14735E-03   -1.5268    
   8  Prefactor     39.252        36.233        .63989E-04   -1.4454    
   9  Prefactor     12.072        69.904        .11592E-03   -1.5013    
  10  Prefactor     .10000E-03    16.832        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    4.5799        .13634E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    81.810        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    385.56        .20027E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     16.428        19.818        .98796E-04   -1.4897    
  15  norm          .10000E-03    3.8005        .12441E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          4.2909        4.3997        .13461E-03   -1.5294    
  17  norm          .10000E-03    1.5749        .80078E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .19410E-03    9.9801        .56629E-01   -1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     5.8068        5.9010        .14309E-03   -1.5226    
  20  Prefactor     42.984        37.643        .61160E-04   -1.4396    
  21  Prefactor     .10000E-03    63.620        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    2.7592        .10509E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     6.3858        14.058        .15881E-03   -1.5203    
  24  norm          1.6051        1.1059        .16726E-03   -1.5455    
  25  norm          3.1770        5.3350        .17887E-03   -1.5351    
  26  Prefactor     .82956E-01    28.941        .16820E-02   -1.5650    
  27  Prefactor     4.8301        24.686        .18308E-03   -1.5268    
  28  Prefactor     80.102        83.279        .44880E-04   -1.3916    
  29  norm          .10000E-03    12.726        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     2.3424        4.5423        .18871E-03   -1.5402    
  31  Prefactor     .10000E-03    1.2490        .71197E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     .10000E-03    116.86        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Normalizat    1.4236        .24638        .19410E-03   -.79949    
  34  Prefactor     .36040        .24918        .38070E-03   -1.1888    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.01449e-09
Minuit parameter uncertainties:
  1  44.3917
  2  0.000109705
  3  0.0010446
  4  2.48422e-06
  5  8.03372e-05
  6  5.11312e-05
  7  5.58058
  8  36.2529
  9  58.2021
  10  0.000283477
  11  9.32483e-05
  12  0.00101288
  13  0.00159996
  14  19.8261
  15  2.34266e-07
  16  4.39999
  17  1.03149e-08
  18  0.0613005
  19  5.90162
  20  37.6636
  21  0.000103267
  22  8.3084e-06
  23  14.0648
  24  1.10588
  25  5.33584
  26  3.09854
  27  21.8532
  28  83.4006
  29  8.76418e-06
  30  4.54297
  31  4.15916e-06
  32  0.00133938
  33  0.246588
  34  0.249932
Done.

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

Extracting fit parameters...

4FGL J2336.6-4115
   Spectrum: LogParabola
490         norm:  3.177e+00  5.336e+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.604e-01  2.499e-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.424e+00  2.466e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/504002/likelihoodResults_655603201_655862401_4FGL_J2336.6-4115_daily_bin1606.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4268.99786483
delta logL = 0.704644016346

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4268.96765168
delta logL = 0.734857158629

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.2703       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.7443       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3490       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .41399       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=   4268.968     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      244 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.2690        19.502        .98699E-02    .52853E-03
   2  alpha         3.7448        4.3713        .31906        .40618E-04
   3  Normalizat    1.3490        .54479E-01    .31981E-01   -.87817E-05
   4  Prefactor     .41396        .57116E-01    .80408E-01    .26774E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.26895
  alpha      = 3.74477
  Normalizat = 1.34901
  Prefactor  = 0.413956
 **********
 **   18 **HESSE 
 **********

 FCN=   4268.968     FROM HESSE     STATUS=OK            33 CALLS      277 TOTAL
                     EDM=   .49E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.2690        7.2315        .56816E-04   -1.5483    
   2  alpha         3.7448        4.0551        .13187E-01    .52118    
   3  Normalizat    1.3490        .24674        .19812E-03   -.82115    
   4  Prefactor     .41396        .25539        .35621E-03   -1.1610    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.90214e-08
Minuit parameter uncertainties:
  1  6.05943
  2  2.95622
  3  0.246957
  4  0.256097
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/504002': 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) = 4268.96765155
delta logL = 0.73485729604

Extracting fit parameters...

4FGL J2336.6-4115
   Spectrum: LogParabola
490         norm:  1.269e+00  6.059e+00  1.000e-04  1.000e+04 ( 1.000e-12)
491        alpha:  3.745e+00  2.956e+00  0.000e+00  5.000e+00 ( 1.000e+00)
492         beta:  1.146e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
493           Eb:  8.053e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
582    Prefactor:  4.140e-01  2.561e-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.349e+00  2.470e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.00
Ra Dec: 354.164 -41.258
Photon Index (Free Index): 3.74 +/- 2.96
Photon Flux (Free Index): 8.08e-08 +/- 6.89e-08
Energy Flux (Free Index): 1.35e-05 +/- 1.26e-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/504002/cmap_HighResolution_655603201_655862401_4FGL_J2336.6-4115_daily_bin1606.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.02e-05', comment='SUCCESS', energy_flux2='1.35e-05', dlogl='7.35e-01', photon_flux2='8.08e-08', job_status='DONE', time_completed='2021-12-08 09:54:41.103725', photon_index_error2='2.96', photon_index2='3.74', ts='0.48', fit_tolerance='1e-08', GAL='0.36', photon_index_error='0.00', photon_flux_upper_limit='9.94e-08', energy_flux_error2='1.26e-05', EG='1.42', time_epoch_completed='1638986081.1', return_code='0', job_id='504002', GAL2='0.41', EG2='1.35', return_code2='0', photon_flux_error2='6.89e-08', ts2='2.00', photon_index='2.22' WHERE bin_id='1606' AND source_name='4FGL J2336.6-4115' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Dec  8 09:54:41 PST 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0119>
Subject: Job 504002: <4FGL_J2336.6-4115_daily_bin1606> in cluster <slac> Done

Job <4FGL_J2336.6-4115_daily_bin1606> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Dec  8 09:40:19 2021
Job was executed on host(s) <bullet0119>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Dec  8 09:40:46 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Dec  8 09:40:46 2021
Terminated at Wed Dec  8 09:54:42 2021
Results reported at Wed Dec  8 09:54:42 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2336.6-4115_daily_bin1606 354.164 -41.2579 655603201 655862401 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 :                                   781.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             322.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   838 sec.
    Turnaround time :                            863 sec.

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

