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


Performing analysis on: 4FGL_J2336.6-4115_daily_bin1284
RA = 354.164, Dec = -41.2579
tmin = 572140801, tmax = 572400001
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='57356', job_status='RUN', time_executed='2021-09-30 01:56:58.360919', time_epoch_executed='1632992218.36' WHERE source_name='4FGL J2336.6-4115' and cadence='daily' and bin_id='1284'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/57356

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/57356/ft1_4FGL_J2336.6-4115_daily_bin1284.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/57356/ft2_4FGL_J2336.6-4115_daily_bin1284.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/57356/ft1_4FGL_J2336.6-4115_daily_bin1284.fits outfile=/scratch/kocevski/57356/ft1_filteredMKT_4FGL_J2336.6-4115_daily_bin1284.fits ra=354.164 dec=-41.2579 rad=12.0 tmin=572140801.0 tmax=572400001.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.20
user 3.00
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/57356/ft1_filtered_4FGL_J2336.6-4115_daily_bin1284.fits" evtable="EVENTS" scfile=/scratch/kocevski/57356/ft2_4FGL_J2336.6-4115_daily_bin1284.fits sctable="SC_DATA" outfile=/scratch/kocevski/57356/ltcube_572140801_572400001_4FGL_J2336.6-4115_daily_bin1284.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/57356/ft2_4FGL_J2336.6-4115_daily_bin1284.fits
.....................!
real 11.91
user 11.54
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/57356/ft1_filtered_4FGL_J2336.6-4115_daily_bin1284.fits evtable="EVENTS" scfile=/scratch/kocevski/57356/ft2_4FGL_J2336.6-4115_daily_bin1284.fits sctable="SC_DATA" expcube=/scratch/kocevski/57356/ltcube_572140801_572400001_4FGL_J2336.6-4115_daily_bin1284.fits outfile=/scratch/kocevski/57356/expmap_572140801_572400001_4FGL_J2336.6-4115_daily_bin1284.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/57356/ltcube_572140801_572400001_4FGL_J2336.6-4115_daily_bin1284.fits
.....................!
real 189.62
user 184.71
sys 4.55

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/57356/ft1_filtered_4FGL_J2336.6-4115_daily_bin1284.fits scfile=/scratch/kocevski/57356/ft2_4FGL_J2336.6-4115_daily_bin1284.fits outfile=/scratch/kocevski/57356/cmap_572140801_572400001_4FGL_J2336.6-4115_daily_bin1284.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/57356/ft1_filtered_4FGL_J2336.6-4115_daily_bin1284.fits scfile=/scratch/kocevski/57356/ft2_4FGL_J2336.6-4115_daily_bin1284.fits outfile=/scratch/kocevski/57356/cmap_HighResolution_572140801_572400001_4FGL_J2336.6-4115_daily_bin1284.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.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10154E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10092E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    39.325       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10261E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    21.417       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10203E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    13.460       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.3206       1.0000         .10000E-03   10000.    
    18 'norm      '    11.860       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10133E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .11497E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    1.4165       1.0000         .10000E-03   10000.    
    24 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    4.4666       1.0000         .10000E-03   10000.    
    26 'Prefactor '    4.0077       1.0000         .10000E-03   10000.    
    27 'Prefactor '    5.9424       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .11869E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .11138E-03   1.0000         .10000E-03   10000.    
    32 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    33 'Normalizat'    1.0164       1.0000         .10000E-01   10.000    
    34 'Prefactor '    .88288       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=   3633.879     FROM MIGRAD    STATUS=CONVERGED    961 CALLS     4861 TOTAL
                     EDM=   .33E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    192.19        .53076E-06** at limit **
   2  Prefactor     .10000E-03    8.3590       -.29121E-09** at limit **
   3  Prefactor     .10000E-03    13.390        .79166E-07** at limit **
   4  Prefactor     .10000E-03    19.589       -.42005E-07** at limit **
   5  Prefactor     .10000E-03    12.018       -.87557E-07** at limit **
   6  Prefactor     .10000E-03    3.4394        .79815E-08** at limit **
   7  Prefactor     .10000E-03    10.333       -.16631E-06** at limit **
   8  Prefactor     39.335        32.694        .13086E-06   -.43414E-04
   9  Prefactor     .10000E-03    197.19       -.67815E-06** at limit **
  10  Prefactor     21.435        38.189        .12082E-05    .62379E-04
  11  Prefactor     .10000E-03    6.6590       -.98135E-07** at limit **
  12  Prefactor     .10000E-03    21.482        .20892E-06** at limit **
  13  Prefactor     .10001E-03    344.26       -.97974E-06** at limit **
  14  Prefactor     .10000E-03    8.3899        .16822E-07** at limit **
  15  norm          13.463        15.623       -.24086E-06   -.13112E-04
  16  norm          .10000E-03    2.3547       -.10448E-09** at limit **
  17  norm          1.3209        5.4898        .48897E-06    .10989E-04
  18  norm          11.862        11.836        .33435E-06    .67119E-04
  19  Prefactor     .10000E-03    3.0632       -.27053E-08** at limit **
  20  Prefactor     .10000E-03    19.799       -.38996E-07** at limit **
  21  Prefactor     .10000E-03    59.539       -.24998E-07** at limit **
  22  norm          .10000E-03    2.9133       -.22121E-07** at limit **
  23  Prefactor     1.4182        21.327        .13547E-04   -.45214E-04
  24  norm          .10000E-03    .72204       -.37315E-06** at limit **
  25  norm          4.4668        4.2842        .45325E-07   -.10621E-04
  26  Prefactor     4.0077        4.9197        .97035E-07    .20528E-04
  27  Prefactor     5.9477        32.196       -.11813E-05   -.21630E-04
  28  Prefactor     .10023E-03    486.24       -.51241E-05** at limit **
  29  norm          .10000E-03    22.527       -.99401E-07** at limit **
  30  Prefactor     .10000E-03    3.7508        .37282E-07** at limit **
  31  Prefactor     .10000E-03    7.2014        .12177E-06** at limit **
  32  Prefactor     .10000E-03    361.90       -.64301E-06** at limit **
  33  Normalizat    1.0166        .21081       -.31982E-06   -.84061E-04
  34  Prefactor     .88282        .23295       -.12879E-05   -.16149E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 39.3353
  Prefactor  = 0.000100001
  Prefactor  = 21.4352
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100011
  Prefactor  = 0.0001
  norm       = 13.4634
  norm       = 0.0001
  norm       = 1.32094
  norm       = 11.8621
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 1.41821
  norm       = 0.0001
  norm       = 4.46677
  Prefactor  = 4.00774
  Prefactor  = 5.94765
  Prefactor  = 0.000100231
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  Normalizat = 1.01656
  Prefactor  = 0.882819
 **********
 **   18 **HESSE 
 **********

 FCN=   3633.879     FROM HESSE     STATUS=OK           722 CALLS     5583 TOTAL
                     EDM=   .68E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    193.52        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    8.3646        .17023E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    13.394        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    19.610        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    12.025        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    3.4444        .10918E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    10.727        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     39.335        32.598        .63917E-04   -1.4453    
   9  Prefactor     .10000E-03    198.27        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     21.435        38.249        .86551E-04   -1.4782    
  11  Prefactor     .10000E-03    6.7166        .15187E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    21.497        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10001E-03    348.21        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    8.4125        .17052E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          13.463        15.629        .10918E-03   -1.4974    
  16  norm          .10000E-03    2.3551        .90341E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.3209        5.4450        .27227E-03   -1.5478    
  18  norm          11.862        11.842        .11632E-03   -1.5019    
  19  Prefactor     .10000E-03    3.0750        .10305E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    19.821        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    59.721        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    2.9429        .10028E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     1.4182        21.493        .18185E-02   -1.5470    
  24  norm          .10000E-03    6.1345        .97257E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          4.4668        4.2763        .11793E-03   -1.5285    
  26  Prefactor     4.0077        4.8463        .12453E-03   -1.5308    
  27  Prefactor     5.9477        31.273        .16473E-03   -1.5220    
  28  Prefactor     .10023E-03    502.57        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          .10000E-03    22.544        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    3.7704        .11399E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .10000E-03    7.5096        .31541E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     .10000E-03    370.33        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Normalizat    1.0166        .25309        .21714E-03   -.92478    
  34  Prefactor     .88282        .27880        .25819E-03   -.96744    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.76608e-10
Minuit parameter uncertainties:
  1  0.000272756
  2  5.07293e-06
  3  5.3012e-06
  4  1.7799e-05
  5  2.87771e-06
  6  1.24968e-06
  7  4.54753e-05
  8  32.6125
  9  0.000642021
  10  38.2926
  11  1.81381e-05
  12  3.6887e-06
  13  0.00400206
  14  9.74417e-07
  15  15.6333
  16  1.37509e-07
  17  5.36439
  18  11.8443
  19  3.25693e-06
  20  7.24437e-06
  21  6.36056e-06
  22  2.93824e-06
  23  11.0465
  24  2.42672e-05
  25  4.27657
  26  4.84678
  27  27.2986
  28  0.0217124
  29  6.92742e-06
  30  5.59568e-06
  31  2.35953e-05
  32  0.0026433
  33  0.253391
  34  0.279251
Done.

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

Extracting fit parameters...

4FGL J2336.6-4115
   Spectrum: LogParabola
490         norm:  4.467e+00  4.277e+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.828e-01  2.793e-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.017e+00  2.534e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.98
Ra Dec: 354.164 -41.258
Photon Index (Fixed Index): 2.22 +/- 0.00
Photon Flux (Fixed Index): 2.92e-08 +/- 2.80e-08
Energy Flux (Fixed Index): 1.18e-05 +/- 1.13e-05

TS (Fixed Index): 1.98
Ra Dec: 354.164 -41.258
Photon Flux Upper Limit: 1.01e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.08e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/57356/likelihoodResults_572140801_572400001_4FGL_J2336.6-4115_daily_bin1284.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) = 3633.66884708
delta logL = 0.210148707812

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3633.66497591
delta logL = 0.214019873851

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.1862       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.8200       1.0000          .0000       5.0000    
     3 'Normalizat'    .99550       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89698       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3633.665     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      271 TOTAL
                     EDM=   .21E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.1862        4.2255        .44250E-03   -.12968E-03
   2  alpha         2.8200        1.0125        .13383E-01    .43816E-05
   3  Normalizat    .99550        .25038        .21912E-03    .20235E-06
   4  Prefactor     .89698        .27770        .25627E-03    .44363E-07
                               ERR DEF=  .500    
Final values: 
  norm       = 3.1862
  alpha      = 2.82
  Normalizat = 0.995499
  Prefactor  = 0.896984
 **********
 **   18 **HESSE 
 **********

 FCN=   3633.665     FROM HESSE     STATUS=OK            25 CALLS      296 TOTAL
                     EDM=   .92E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.1862        3.8810        .17700E-04   -1.5351    
   2  alpha         2.8200        .93358        .53533E-03    .12835    
   3  Normalizat    .99550        .25034        .43824E-04   -.93181    
   4  Prefactor     .89698        .27774        .10251E-04   -.96247    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.18577e-12
Minuit parameter uncertainties:
  1  3.88126
  2  0.957176
  3  0.250637
  4  0.278184
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/57356': 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) = 3633.66497591
delta logL = 0.214019875581

Extracting fit parameters...

4FGL J2336.6-4115
   Spectrum: LogParabola
490         norm:  3.186e+00  3.881e+00  1.000e-04  1.000e+04 ( 1.000e-12)
491        alpha:  2.820e+00  9.572e-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.970e-01  2.782e-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:  9.955e-01  2.506e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.41
Ra Dec: 354.164 -41.258
Photon Index (Free Index): 2.82 +/- 0.96
Photon Flux (Free Index): 4.68e-08 +/- 4.72e-08
Energy Flux (Free Index): 1.11e-05 +/- 9.55e-06

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/57356/cmap_HighResolution_572140801_572400001_4FGL_J2336.6-4115_daily_bin1284.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.08e-05', comment='SUCCESS', photon_flux='2.92e-08', energy_flux2='1.11e-05', photon_flux_error='2.80e-08', dlogl='2.14e-01', energy_flux='1.18e-05', photon_flux2='4.68e-08', job_status='DONE', time_completed='2021-09-30 02:08:50.038530', photon_index_error2='0.96', photon_index2='2.82', ts='1.98', fit_tolerance='1e-08', GAL='0.88', photon_index_error='0.00', photon_flux_upper_limit='1.01e-07', energy_flux_error2='9.55e-06', EG='1.02', time_epoch_completed='1632992930.04', return_code='0', job_id='57356', GAL2='0.90', EG2='1.00', return_code2='0', energy_flux_error='1.13e-05', photon_flux_error2='4.72e-08', ts2='2.41', photon_index='2.22' WHERE bin_id='1284' AND source_name='4FGL J2336.6-4115' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 02:08:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0232>
Subject: Job 57356: <4FGL_J2336.6-4115_daily_bin1284> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2336.6-4115_daily_bin1284 354.164 -41.2579 572140801 572400001 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 :                                   688.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             285.65 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   803 sec.
    Turnaround time :                            804 sec.

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

