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


Performing analysis on: 4FGL_J2336.6-4115_daily_bin1460
RA = 354.164, Dec = -41.2579
tmin = 617760001, tmax = 618019201
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='58588', job_status='RUN', time_executed='2021-09-30 02:01:51.679244', time_epoch_executed='1632992511.68' WHERE source_name='4FGL J2336.6-4115' and cadence='daily' and bin_id='1460'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/58588

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/58588/ft1_4FGL_J2336.6-4115_daily_bin1460.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/58588/ft2_4FGL_J2336.6-4115_daily_bin1460.fits


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

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

Done.
real 2.68
user 2.47
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/58588/ft1_filtered_4FGL_J2336.6-4115_daily_bin1460.fits" evtable="EVENTS" scfile=/scratch/kocevski/58588/ft2_4FGL_J2336.6-4115_daily_bin1460.fits sctable="SC_DATA" outfile=/scratch/kocevski/58588/ltcube_617760001_618019201_4FGL_J2336.6-4115_daily_bin1460.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/58588/ft2_4FGL_J2336.6-4115_daily_bin1460.fits
.....................!
real 12.68
user 12.26
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/58588/ft1_filtered_4FGL_J2336.6-4115_daily_bin1460.fits evtable="EVENTS" scfile=/scratch/kocevski/58588/ft2_4FGL_J2336.6-4115_daily_bin1460.fits sctable="SC_DATA" expcube=/scratch/kocevski/58588/ltcube_617760001_618019201_4FGL_J2336.6-4115_daily_bin1460.fits outfile=/scratch/kocevski/58588/expmap_617760001_618019201_4FGL_J2336.6-4115_daily_bin1460.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/58588/ltcube_617760001_618019201_4FGL_J2336.6-4115_daily_bin1460.fits
.....................!
real 190.41
user 185.57
sys 4.37

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/58588/ft1_filtered_4FGL_J2336.6-4115_daily_bin1460.fits scfile=/scratch/kocevski/58588/ft2_4FGL_J2336.6-4115_daily_bin1460.fits outfile=/scratch/kocevski/58588/cmap_617760001_618019201_4FGL_J2336.6-4115_daily_bin1460.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=354.164 yref=-41.2579 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/58588/ft1_filtered_4FGL_J2336.6-4115_daily_bin1460.fits scfile=/scratch/kocevski/58588/ft2_4FGL_J2336.6-4115_daily_bin1460.fits outfile=/scratch/kocevski/58588/cmap_HighResolution_617760001_618019201_4FGL_J2336.6-4115_daily_bin1460.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.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/58588/ft1_filtered_4FGL_J2336.6-4115_daily_bin1460.fits evtable="EVENTS" scfile=/scratch/kocevski/58588/ft2_4FGL_J2336.6-4115_daily_bin1460.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/58588/Model_4FGL_J2336.6-4115_daily_bin1460.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/58588/ft1_filtered_4FGL_J2336.6-4115_daily_bin1460.fits.....................!
real 23.57
user 22.38
sys 1.10

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .19895E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10153E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    52.315       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10069E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    14.316       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .18916E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    67.025       1.0000         .10000E-03   10000.    
     9 'Prefactor '    68.780       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10185E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10096E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .11376E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10020E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10085E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    11.681       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    99.231       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10348E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .28941E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    1.6928       1.0000         .10000E-03   10000.    
    25 'norm      '    24.744       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    14.456       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10138E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .21073E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    17.037       1.0000         .10000E-03   10000.    
    32 'Prefactor '    127.43       1.0000         .10000E-03   10000.    
    33 'Normalizat'    1.4841       1.0000         .10000E-01   10.000    
    34 'Prefactor '    .16257       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=   1858.518     FROM MIGRAD    STATUS=CONVERGED    922 CALLS     4776 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    221.38        .54009E-05** at limit **
   2  Prefactor     .10000E-03    76.161        .14831E-05** at limit **
   3  Prefactor     52.313        55.870        .16384E-06   -.38015E-05
   4  Prefactor     .10000E-03    52.714        .57574E-06** at limit **
   5  Prefactor     .10000E-03    30.887        .12276E-05** at limit **
   6  Prefactor     14.319        14.620        .21680E-06    .13817E-04
   7  Prefactor     .10002E-03    30.554        .96443E-05** at limit **
   8  Prefactor     67.074        55.082        .60581E-05    .34284E-03
   9  Prefactor     68.724        131.83        .31433E-05    .42680E-04
  10  Prefactor     .10000E-03    113.34       -.19163E-05** at limit **
  11  Prefactor     .10000E-03    7.5366        .31133E-08** at limit **
  12  Prefactor     .10000E-03    57.932        .11766E-05** at limit **
  13  Prefactor     .10000E-03    129.95       -.24992E-05** at limit **
  14  Prefactor     .10000E-03    18.850        .44827E-06** at limit **
  15  norm          .10000E-03    22.202        .43763E-06** at limit **
  16  norm          .10000E-03    5.1493        .12857E-07** at limit **
  17  norm          .10000E-03    6.3221       -.56702E-07** at limit **
  18  norm          11.685        19.776        .16060E-07    .55782E-04
  19  Prefactor     .10000E-03    4.8802        .10345E-07** at limit **
  20  Prefactor     99.393        156.99       -.28737E-05    .88411E-04
  21  Prefactor     .10000E-03    107.89       -.14365E-05** at limit **
  22  norm          .10002E-03    30.298       -.17204E-05** at limit **
  23  Prefactor     .10000E-03    11.859       -.95639E-09** at limit **
  24  norm          1.6934        1.8736        .28205E-08   -.76356E-04
  25  norm          24.741        19.354        .11626E-05    .46035E-03
  26  Prefactor     .10000E-03    2.0905        .18448E-07** at limit **
  27  Prefactor     14.454        25.320       -.17814E-07   -.16466E-04
  28  Prefactor     .10000E-03    36.407       -.94836E-06** at limit **
  29  norm          .10000E-03    20.416       -.88078E-06** at limit **
  30  Prefactor     .10000E-03    35.704       -.95847E-05** at limit **
  31  Prefactor     17.046        10.778        .17817E-06    .15355E-04
  32  Prefactor     127.37        98.153       -.19435E-05    .38042E-04
  33  Normalizat    1.4838        .41330        .97975E-06    .21404E-03
  34  Prefactor     .16287        .38500       -.39874E-05    .10797E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100009
  Prefactor  = 0.000100001
  Prefactor  = 52.3126
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.3186
  Prefactor  = 0.000100019
  Prefactor  = 67.0744
  Prefactor  = 68.7239
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 11.6852
  Prefactor  = 0.0001
  Prefactor  = 99.3926
  Prefactor  = 0.000100001
  norm       = 0.000100021
  Prefactor  = 0.0001
  norm       = 1.69343
  norm       = 24.7409
  Prefactor  = 0.0001
  Prefactor  = 14.454
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 17.0457
  Prefactor  = 127.366
  Normalizat = 1.48378
  Prefactor  = 0.162867
 **********
 **   18 **HESSE 
 **********

 FCN=   1858.518     FROM HESSE     STATUS=OK           718 CALLS     5494 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    222.17        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    76.564        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     52.313        55.926        .27725E-03   -1.4260    
   4  Prefactor     .10000E-03    52.785        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    30.923        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     14.319        14.635        .10586E-03   -1.4951    
   7  Prefactor     .10002E-03    36.606        .23603E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     67.074        54.423        .49025E-04   -1.4068    
   9  Prefactor     68.724        131.97        .24200E-03   -1.4048    
  10  Prefactor     .10000E-03    113.67        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    7.5385        .11560E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    57.980        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    130.12        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    18.895        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    22.247        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    5.1498        .95552E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    6.3244        .10582E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          11.685        19.845        .11721E-03   -1.5024    
  19  Prefactor     .10000E-03    4.8852        .93013E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     99.393        155.81        .20178E-03   -1.3711    
  21  Prefactor     .10000E-03    108.00        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10002E-03    29.439        .42810E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    11.872        .14501E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          1.6934        1.8593        .59514E-04   -1.5448    
  25  norm          24.741        19.412        .80528E-04   -1.4713    
  26  Prefactor     .10000E-03    2.0938        .60863E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     14.454        25.321        .10535E-03   -1.4947    
  28  Prefactor     .10000E-03    36.440        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          .10000E-03    20.439        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    86.546        .35880E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     17.046        10.823        .97034E-04   -1.4882    
  32  Prefactor     127.37        96.728        .17831E-03   -1.3446    
  33  Normalizat    1.4838        .41987        .20901E-03   -.78235    
  34  Prefactor     .16287        .38468        .58523E-03   -1.3149    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.35864e-09
Minuit parameter uncertainties:
  1  0.00276725
  2  0.000435095
  3  55.9819
  4  9.81273e-05
  5  0.000220777
  6  14.6383
  7  0.00165763
  8  54.463
  9  132.534
  10  0.000780355
  11  8.48978e-06
  12  0.000344536
  13  0.00103237
  14  8.07279e-05
  15  9.16295e-05
  16  1.14086e-06
  17  4.98617e-05
  18  19.8565
  19  5.97457e-06
  20  156.457
  21  0.000500303
  22  0.00156176
  23  1.46411e-05
  24  1.85935
  25  19.4166
  26  1.74769e-06
  27  25.3394
  28  0.000232261
  29  0.000156668
  30  0.00121158
  31  10.8241
  32  96.8484
  33  0.420861
  34  0.390861
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
582    Prefactor:  1.629e-01  3.909e-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.484e+00  4.209e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.21
Ra Dec: 354.164 -41.258
Photon Index (Fixed Index): 2.22 +/- 0.00
Photon Flux (Fixed Index): 1.62e-07 +/- 1.27e-07
Energy Flux (Fixed Index): 6.56e-05 +/- 5.15e-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) = 1856.08523632
delta logL = 2.43251108895

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1856.06348714
delta logL = 2.4542602701

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.8249       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.8041       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2277       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .36506       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=   1856.063     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      261 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.8003        44.962        .41601E-02   -.61386E-03
   2  alpha         3.8064        4.2387        .11307       -.21015E-04
   3  Normalizat    1.2276        .18196        .50707E-01   -.20605E-03
   4  Prefactor     .36520        .19611        .90300E-01   -.15499E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 5.80029
  alpha      = 3.80642
  Normalizat = 1.22758
  Prefactor  = 0.365198
 **********
 **   18 **HESSE 
 **********

 FCN=   1856.063     FROM HESSE     STATUS=OK            29 CALLS      290 TOTAL
                     EDM=   .36E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.8003        8.9934        .41736E-04   -1.5226    
   2  alpha         3.8064        .92495        .49866E-03    .54986    
   3  Normalizat    1.2276        .39822        .22418E-03   -.85755    
   4  Prefactor     .36520        .39753        .40031E-03   -1.1862    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.59131e-10
Minuit parameter uncertainties:
  1  8.99546
  2  0.956759
  3  0.399209
  4  0.400564
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/58588': 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) = 1856.0634829
delta logL = 2.45426450748

Extracting fit parameters...

4FGL J2336.6-4115
   Spectrum: LogParabola
490         norm:  5.800e+00  8.995e+00  1.000e-04  1.000e+04 ( 1.000e-12)
491        alpha:  3.806e+00  9.568e-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:  3.652e-01  4.006e-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.228e+00  3.992e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.55
Ra Dec: 354.164 -41.258
Photon Index (Free Index): 3.81 +/- 0.96
Photon Flux (Free Index): 4.10e-07 +/- 1.85e-07
Energy Flux (Free Index): 6.73e-05 +/- 2.99e-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/58588/cmap_HighResolution_617760001_618019201_4FGL_J2336.6-4115_daily_bin1460.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.62e-07', energy_flux2='6.73e-05', photon_flux_error='1.27e-07', dlogl='2.45e+00', energy_flux='6.56e-05', photon_flux2='4.10e-07', job_status='DONE', time_completed='2021-09-30 02:10:14.657572', photon_index_error2='0.96', photon_index2='3.81', ts='4.21', fit_tolerance='1e-08', GAL='0.16', photon_index_error='0.00', energy_flux_error2='2.99e-05', EG='1.48', time_epoch_completed='1632993014.66', return_code='0', job_id='58588', GAL2='0.37', EG2='1.23', return_code2='0', energy_flux_error='5.15e-05', photon_flux_error2='1.85e-07', ts2='9.55', photon_index='2.22' WHERE bin_id='1460' AND source_name='4FGL J2336.6-4115' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 02:10:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0126>
Subject: Job 58588: <4FGL_J2336.6-4115_daily_bin1460> in cluster <slac> Done

Job <4FGL_J2336.6-4115_daily_bin1460> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Thu Sep 30 02:00:20 2021
Job was executed on host(s) <bullet0126>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 02:00:21 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep 30 02:00:21 2021
Terminated at Thu Sep 30 02:10:17 2021
Results reported at Thu Sep 30 02:10:17 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2336.6-4115_daily_bin1460 354.164 -41.2579 617760001 618019201 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 :                                   470.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             277.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   593 sec.
    Turnaround time :                            597 sec.

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

