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


Performing analysis on: 4FGL_J2336.6-4115_daily_bin1357
RA = 354.164, Dec = -41.2579
tmin = 591062401, tmax = 591321601
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='57463', job_status='RUN', time_executed='2021-09-30 01:56:06.316004', time_epoch_executed='1632992166.32' WHERE source_name='4FGL J2336.6-4115' and cadence='daily' and bin_id='1357'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/57463

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/57463/ft1_4FGL_J2336.6-4115_daily_bin1357.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/57463/ft2_4FGL_J2336.6-4115_daily_bin1357.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/57463/ft1_4FGL_J2336.6-4115_daily_bin1357.fits outfile=/scratch/kocevski/57463/ft1_filteredMKT_4FGL_J2336.6-4115_daily_bin1357.fits ra=354.164 dec=-41.2579 rad=12.0 tmin=591062401.0 tmax=591321601.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 3.03
user 2.80
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/57463/ft1_filtered_4FGL_J2336.6-4115_daily_bin1357.fits" evtable="EVENTS" scfile=/scratch/kocevski/57463/ft2_4FGL_J2336.6-4115_daily_bin1357.fits sctable="SC_DATA" outfile=/scratch/kocevski/57463/ltcube_591062401_591321601_4FGL_J2336.6-4115_daily_bin1357.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/57463/ft2_4FGL_J2336.6-4115_daily_bin1357.fits
.....................!
real 12.48
user 12.13
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/57463/ft1_filtered_4FGL_J2336.6-4115_daily_bin1357.fits evtable="EVENTS" scfile=/scratch/kocevski/57463/ft2_4FGL_J2336.6-4115_daily_bin1357.fits sctable="SC_DATA" expcube=/scratch/kocevski/57463/ltcube_591062401_591321601_4FGL_J2336.6-4115_daily_bin1357.fits outfile=/scratch/kocevski/57463/expmap_591062401_591321601_4FGL_J2336.6-4115_daily_bin1357.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/57463/ltcube_591062401_591321601_4FGL_J2336.6-4115_daily_bin1357.fits
.....................!
real 191.77
user 185.85
sys 5.61

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/57463/ft1_filtered_4FGL_J2336.6-4115_daily_bin1357.fits scfile=/scratch/kocevski/57463/ft2_4FGL_J2336.6-4115_daily_bin1357.fits outfile=/scratch/kocevski/57463/cmap_591062401_591321601_4FGL_J2336.6-4115_daily_bin1357.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/57463/ft1_filtered_4FGL_J2336.6-4115_daily_bin1357.fits scfile=/scratch/kocevski/57463/ft2_4FGL_J2336.6-4115_daily_bin1357.fits outfile=/scratch/kocevski/57463/cmap_HighResolution_591062401_591321601_4FGL_J2336.6-4115_daily_bin1357.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.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10486E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    15.005       1.0000         .10000E-03   10000.    
     3 'Prefactor '    70.137       1.0000         .10000E-03   10000.    
     4 'Prefactor '    40.570       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.2086       1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.3459       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .95227       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    19.623       1.0000         .10000E-03   10000.    
    13 'Prefactor '    31.268       1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.8257       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    10.332       1.0000         .10000E-03   10000.    
    17 'norm      '    .10076E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10086E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    5.4866       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .57659E-02   1.0000         .10000E-03   10000.    
    22 'norm      '    .10684E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    15.964       1.0000         .10000E-03   10000.    
    24 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    8.7909       1.0000         .10000E-03   10000.    
    26 'Prefactor '    4.8439       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10181E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    .10055E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    13.884       1.0000         .10000E-03   10000.    
    31 'Prefactor '    2.5393       1.0000         .10000E-03   10000.    
    32 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    33 'Normalizat'    1.1150       1.0000         .10000E-01   10.000    
    34 'Prefactor '    .85974       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=   6675.842     FROM MIGRAD    STATUS=CONVERGED   1692 CALLS     4916 TOTAL
                     EDM=   .88E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    53.127        .18142E-02** at limit **
   2  Prefactor     15.006        19.101        .10340E-03   -.77627E-04
   3  Prefactor     70.140        38.223        .47932E-04   -.13548E-03
   4  Prefactor     40.556        40.339        .62932E-04    .66479E-04
   5  Prefactor     .10000E-03    11.816        .18142E-02** at limit **
   6  Prefactor     2.2087        6.3814        .13840E-02   -.49753E-03
   7  Prefactor     4.3541        6.8090        .96610E-03   -.64288E-03
   8  Prefactor     .88997        257.14        .67822E-02   -.27599E-03
   9  Prefactor     .10000E-03    9.4178        .18142E-02** at limit **
  10  Prefactor     .10000E-03    6.3495        .18142E-02** at limit **
  11  Prefactor     .10000E-03    2.0262        .11339E-02** at limit **
  12  Prefactor     19.619        29.854        .90416E-04    .14963E-04
  13  Prefactor     31.267        37.226        .71655E-04   -.20626E-05
  14  Prefactor     2.8247        9.3111        .24194E-03    .94824E-04
  15  norm          .10000E-03    2.5748        .12803E-02** at limit **
  16  norm          10.329        5.9266        .12466E-03    .55475E-03
  17  norm          .10000E-03    3.4367        .29089E-03** at limit **
  18  norm          .10000E-03    4.2815        .16440E-02** at limit **
  19  Prefactor     .10000E-03    3.8618        .15567E-02** at limit **
  20  Prefactor     5.5000        28.601        .17154E-03   -.53219E-04
  21  Prefactor     .10013E-03    49.994        .16152    ** at limit **
  22  norm          .10000E-03    3.4806        .21655E-02** at limit **
  23  Prefactor     15.957        12.573        .10024E-03    .35612E-04
  24  norm          .10000E-03    .83526        .11004E-02** at limit **
  25  norm          8.7913        4.5725        .11776E-03    .28027E-03
  26  Prefactor     4.8472        3.3386        .11753E-03   -.90460E-03
  27  Prefactor     .10000E-03    34.219        .18142E-02** at limit **
  28  Prefactor     .10000E-03    15.494        .18142E-02** at limit **
  29  norm          .10000E-03    34.634        .18142E-02** at limit **
  30  Prefactor     13.886        8.3981        .53748E-03   -.67305E-04
  31  Prefactor     2.5400        2.6901        .13115E-03   -.14060E-03
  32  Prefactor     .10000E-03    16.808        .18142E-02** at limit **
  33  Normalizat    1.1148        .21620        .23082E-03    .34382E-03
  34  Prefactor     .85991        .22416        .28567E-03   -.11398E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 15.0062
  Prefactor  = 70.1405
  Prefactor  = 40.5556
  Prefactor  = 0.0001
  Prefactor  = 2.20872
  Prefactor  = 4.35414
  Prefactor  = 0.889969
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 19.6193
  Prefactor  = 31.2668
  Prefactor  = 2.82475
  norm       = 0.0001
  norm       = 10.3295
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.49997
  Prefactor  = 0.000100127
  norm       = 0.0001
  Prefactor  = 15.957
  norm       = 0.0001
  norm       = 8.79126
  Prefactor  = 4.84723
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 13.8861
  Prefactor  = 2.53997
  Prefactor  = 0.0001
  Normalizat = 1.11481
  Prefactor  = 0.859915
 **********
 **   18 **HESSE 
 **********

 FCN=   6675.842     FROM HESSE     STATUS=OK           710 CALLS     5626 TOTAL
                     EDM=   .97E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    53.132        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     15.006        19.097        .41358E-05   -1.4933    
   3  Prefactor     70.140        38.219        .95864E-05   -1.4031    
   4  Prefactor     40.556        40.337        .12586E-04   -1.4433    
   5  Prefactor     .10000E-03    11.816        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     2.2087        6.3778        .55359E-04   -1.5411    
   7  Prefactor     4.3541        6.2957        .38644E-04   -1.5291    
   8  Prefactor     .88997        222.19        .27129E-03   -1.5519    
   9  Prefactor     .10000E-03    9.4178        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    6.3501        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    2.0263        .22678E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     19.619        29.844        .36166E-05   -1.4822    
  13  Prefactor     31.267        37.213        .28662E-05   -1.4589    
  14  Prefactor     2.8247        9.3088        .96777E-05   -1.5372    
  15  norm          .10000E-03    2.5748        .25606E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          10.329        5.9259        .24931E-04   -1.5065    
  17  norm          .10000E-03    3.4367        .58178E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    4.2826        .32880E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    3.8624        .31135E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     5.5000        28.553        .68615E-05   -1.5239    
  21  Prefactor     .10013E-03    51.661        .15785       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    3.4863        .43311E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     15.957        12.568        .40097E-05   -1.4909    
  24  norm          .10000E-03    .83680        .22008E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          8.7913        4.5718        .47103E-05   -1.5115    
  26  Prefactor     4.8472        3.3378        .47013E-05   -1.5268    
  27  Prefactor     .10000E-03    34.234        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    15.494        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          .10000E-03    34.642        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     13.886        8.3964        .21499E-04   -1.4963    
  31  Prefactor     2.5400        2.6898        .52460E-05   -1.5389    
  32  Prefactor     .10000E-03    16.808        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Normalizat    1.1148        .21591        .46163E-04   -.89278    
  34  Prefactor     .85991        .22432        .11427E-04   -.97556    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.67116e-09
Minuit parameter uncertainties:
  1  0.000282925
  2  19.1043
  3  38.2324
  4  40.3645
  5  1.28296e-05
  6  6.37981
  7  6.29661
  8  28.2289
  9  1.58883e-05
  10  7.45839e-06
  11  6.13677e-06
  12  29.8671
  13  37.2409
  14  9.31358
  15  6.45742e-07
  16  5.92623
  17  9.71183e-06
  18  1.50106e-05
  19  5.60687e-05
  20  25.0818
  21  0.00512461
  22  1.97599e-06
  23  12.5703
  24  1.66203e-06
  25  4.57201
  26  3.33795
  27  0.000346886
  28  4.17931e-05
  29  7.38697e-05
  30  8.39715
  31  2.68996
  32  7.99354e-05
  33  0.216079
  34  0.224563
Done.

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

Extracting fit parameters...

4FGL J2336.6-4115
   Spectrum: LogParabola
490         norm:  8.791e+00  4.572e+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.599e-01  2.246e-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.115e+00  2.161e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 9.38
Ra Dec: 354.164 -41.258
Photon Index (Fixed Index): 2.22 +/- 0.00
Photon Flux (Fixed Index): 5.75e-08 +/- 2.99e-08
Energy Flux (Fixed Index): 2.33e-05 +/- 1.21e-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) = 6675.83540525
delta logL = 0.00690660371038

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6675.83419647
delta logL = 0.00811538711969

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.9989       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1572       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1180       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85762       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=   6675.834     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      230 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.9993        4.8551        .12010E-03   -.27962E-02
   2  alpha         2.1570        .46672        .12404E-01   -.27737E-03
   3  Normalizat    1.1182        .20207        .23052E-03    .19290E-03
   4  Prefactor     .85749        .22228        .28605E-03    .22046E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 8.99934
  alpha      = 2.15705
  Normalizat = 1.1182
  Prefactor  = 0.85749
 **********
 **   18 **HESSE 
 **********

 FCN=   6675.834     FROM HESSE     STATUS=OK            23 CALLS      253 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.9993        4.8059        .24020E-04   -1.5108    
   2  alpha         2.1570        .46183        .49614E-03   -.13761    
   3  Normalizat    1.1182        .20220        .46103E-04   -.89170    
   4  Prefactor     .85749        .22244        .11442E-04   -.97643    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.55697e-09
Minuit parameter uncertainties:
  1  4.80608
  2  0.464549
  3  0.202338
  4  0.222675
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/57463': 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) = 6675.83419556
delta logL = 0.00811629619511

Extracting fit parameters...

4FGL J2336.6-4115
   Spectrum: LogParabola
490         norm:  8.999e+00  4.806e+00  1.000e-04  1.000e+04 ( 1.000e-12)
491        alpha:  2.157e+00  4.645e-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.575e-01  2.227e-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.118e+00  2.023e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.37
Ra Dec: 354.164 -41.258
Photon Index (Free Index): 2.16 +/- 0.46
Photon Flux (Free Index): 5.50e-08 +/- 3.46e-08
Energy Flux (Free Index): 2.40e-05 +/- 1.35e-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/57463/cmap_HighResolution_591062401_591321601_4FGL_J2336.6-4115_daily_bin1357.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.75e-08', energy_flux2='2.40e-05', photon_flux_error='2.99e-08', dlogl='8.12e-03', energy_flux='2.33e-05', photon_flux2='5.50e-08', job_status='DONE', time_completed='2021-09-30 02:10:42.276309', photon_index_error2='0.46', photon_index2='2.16', ts='9.38', fit_tolerance='1e-08', GAL='0.86', photon_index_error='0.00', energy_flux_error2='1.35e-05', EG='1.11', time_epoch_completed='1632993042.28', return_code='0', job_id='57463', GAL2='0.86', EG2='1.12', return_code2='0', energy_flux_error='1.21e-05', photon_flux_error2='3.46e-08', ts2='9.37', photon_index='2.22' WHERE bin_id='1357' AND source_name='4FGL J2336.6-4115' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 02:10:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0031>
Subject: Job 57463: <4FGL_J2336.6-4115_daily_bin1357> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2336.6-4115_daily_bin1357 354.164 -41.2579 591062401 591321601 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 :                                   867.36 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             328.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   905 sec.
    Turnaround time :                            908 sec.

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

