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


Performing analysis on: 4FGL_J2336.6-4115_daily_bin1533
RA = 354.164, Dec = -41.2579
tmin = 636681601, tmax = 636940801
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='58712', job_status='RUN', time_executed='2021-09-30 02:01:10.146047', time_epoch_executed='1632992470.15' WHERE source_name='4FGL J2336.6-4115' and cadence='daily' and bin_id='1533'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/58712

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/58712/ft1_4FGL_J2336.6-4115_daily_bin1533.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/58712/ft2_4FGL_J2336.6-4115_daily_bin1533.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/58712/ft1_4FGL_J2336.6-4115_daily_bin1533.fits outfile=/scratch/kocevski/58712/ft1_filteredMKT_4FGL_J2336.6-4115_daily_bin1533.fits ra=354.164 dec=-41.2579 rad=12.0 tmin=636681601.0 tmax=636940801.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 5.15
user 4.92
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/58712/ft1_filtered_4FGL_J2336.6-4115_daily_bin1533.fits" evtable="EVENTS" scfile=/scratch/kocevski/58712/ft2_4FGL_J2336.6-4115_daily_bin1533.fits sctable="SC_DATA" outfile=/scratch/kocevski/58712/ltcube_636681601_636940801_4FGL_J2336.6-4115_daily_bin1533.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/58712/ft2_4FGL_J2336.6-4115_daily_bin1533.fits
.....................!
real 11.72
user 11.37
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/58712/ft1_filtered_4FGL_J2336.6-4115_daily_bin1533.fits evtable="EVENTS" scfile=/scratch/kocevski/58712/ft2_4FGL_J2336.6-4115_daily_bin1533.fits sctable="SC_DATA" expcube=/scratch/kocevski/58712/ltcube_636681601_636940801_4FGL_J2336.6-4115_daily_bin1533.fits outfile=/scratch/kocevski/58712/expmap_636681601_636940801_4FGL_J2336.6-4115_daily_bin1533.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/58712/ltcube_636681601_636940801_4FGL_J2336.6-4115_daily_bin1533.fits
.....................!
real 190.13
user 185.24
sys 4.53

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/58712/ft1_filtered_4FGL_J2336.6-4115_daily_bin1533.fits scfile=/scratch/kocevski/58712/ft2_4FGL_J2336.6-4115_daily_bin1533.fits outfile=/scratch/kocevski/58712/cmap_636681601_636940801_4FGL_J2336.6-4115_daily_bin1533.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.35
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/58712/ft1_filtered_4FGL_J2336.6-4115_daily_bin1533.fits scfile=/scratch/kocevski/58712/ft2_4FGL_J2336.6-4115_daily_bin1533.fits outfile=/scratch/kocevski/58712/cmap_HighResolution_636681601_636940801_4FGL_J2336.6-4115_daily_bin1533.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/58712/ft1_filtered_4FGL_J2336.6-4115_daily_bin1533.fits evtable="EVENTS" scfile=/scratch/kocevski/58712/ft2_4FGL_J2336.6-4115_daily_bin1533.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/58712/Model_4FGL_J2336.6-4115_daily_bin1533.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/58712/ft1_filtered_4FGL_J2336.6-4115_daily_bin1533.fits.....................!
real 32.79
user 31.55
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .79151E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    15.862       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    56.527       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10156E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10316E-02   1.0000         .10000E-03   10000.    
    12 'Prefactor '    17.703       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    35.274       1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    4.7338       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    16.983       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10088E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    45.919       1.0000         .10000E-03   10000.    
    22 'norm      '    .33428E-01   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .21885E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    12.943       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    5.1703       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    2.1228       1.0000         .10000E-03   10000.    
    32 'Prefactor '    36.733       1.0000         .10000E-03   10000.    
    33 'Normalizat'    1.2897       1.0000         .10000E-01   10.000    
    34 'Prefactor '    .52343       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=   3590.112     FROM MIGRAD    STATUS=CONVERGED   1677 CALLS     5659 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    21.449        .18142E-02** at limit **
   2  Prefactor     .10000E-03    16.909        .18142E-02** at limit **
   3  Prefactor     .10000E-03    13.495        .18142E-02** at limit **
   4  Prefactor     .10000E-03    16.736        .18142E-02** at limit **
   5  Prefactor     .10000E-03    19.019        .18142E-02** at limit **
   6  Prefactor     .10003E-03    67.533        .40688E-02** at limit **
   7  Prefactor     15.865        9.5934        .10056E-03    .22610E-03
   8  Prefactor     .10000E-03    52.206        .18142E-02** at limit **
   9  Prefactor     56.556        62.324        .26678E-03   -.34923E-04
  10  Prefactor     .10000E-03    32.146        .18142E-02** at limit **
  11  Prefactor     .10000E-03    36.707        .37266E-02** at limit **
  12  Prefactor     17.730        42.159        .95192E-04   -.26155E-04
  13  Prefactor     .10000E-03    38.135        .18142E-02** at limit **
  14  Prefactor     35.252        22.874        .67475E-04   -.14911E-04
  15  norm          .10000E-03    5.5250        .13753E-02** at limit **
  16  norm          4.7201        9.1618        .18494E-03    .63317E-05
  17  norm          .10000E-03    2.6317        .94851E-03** at limit **
  18  norm          16.986        13.825        .97189E-04    .54393E-05
  19  Prefactor     .10000E-03    6.1548        .14368E-02** at limit **
  20  Prefactor     .10000E-03    70.851        .18142E-02** at limit **
  21  Prefactor     45.920        62.531        .59168E-04   -.47075E-05
  22  norm          .18228E-01    6.8509        .36833E-01    .18145E-03
  23  Prefactor     .10000E-03    4.8111        .12829E-02** at limit **
  24  norm          .10001E-03    8.4538        .98137E-03** at limit **
  25  norm          12.952        7.0725        .10819E-03    .23570E-03
  26  Prefactor     .10000E-03    1.1380        .62237E-03** at limit **
  27  Prefactor     5.1619        18.849        .88399E-03    .42305E-04
  28  Prefactor     .10000E-03    27.880        .18142E-02** at limit **
  29  norm          .10000E-03    14.201        .18142E-02** at limit **
  30  Prefactor     .10000E-03    3.5647        .11026E-02** at limit **
  31  Prefactor     2.1226        3.5854        .14284E-03    .50062E-04
  32  Prefactor     36.739        54.136        .66126E-04   -.10316E-04
  33  Normalizat    1.2897        .27540        .20697E-03    .41468E-03
  34  Prefactor     .52338        .28762        .33384E-03    .10569E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100032
  Prefactor  = 15.8649
  Prefactor  = 0.0001
  Prefactor  = 56.5562
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.7303
  Prefactor  = 0.0001
  Prefactor  = 35.2524
  norm       = 0.0001
  norm       = 4.72008
  norm       = 0.0001
  norm       = 16.9855
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 45.92
  norm       = 0.0182277
  Prefactor  = 0.0001
  norm       = 0.000100005
  norm       = 12.9523
  Prefactor  = 0.0001
  Prefactor  = 5.16187
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.12259
  Prefactor  = 36.7386
  Normalizat = 1.28965
  Prefactor  = 0.523383
 **********
 **   18 **HESSE 
 **********

 FCN=   3590.112     FROM HESSE     STATUS=OK           708 CALLS     6367 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    21.450        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    16.910        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    13.495        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    16.736        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    19.019        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10003E-03    68.630        .81376E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     15.865        9.5932        .40226E-05   -1.4911    
   8  Prefactor     .10000E-03    52.210        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     56.556        62.318        .10671E-04   -1.4202    
  10  Prefactor     .10000E-03    32.149        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    37.077        .74532E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     17.730        42.158        .38077E-05   -1.4866    
  13  Prefactor     .10000E-03    38.136        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     35.252        22.864        .26990E-05   -1.4520    
  15  norm          .10000E-03    5.5251        .27505E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          4.7201        9.1509        .73975E-05   -1.5273    
  17  norm          .10000E-03    2.6318        .18970E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          16.986        13.825        .38876E-05   -1.4883    
  19  Prefactor     .10000E-03    6.1565        .28736E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    70.877        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     45.920        62.505        .23667E-05   -1.4352    
  22  norm          .18228E-01    5.7474        .41613E-01   -1.5681    
  23  Prefactor     .10000E-03    4.8111        .25658E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10001E-03    8.5532        .19627E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          12.952        7.0546        .43275E-05   -1.4988    
  26  Prefactor     .10000E-03    1.1380        .12447E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     5.1619        18.842        .35360E-04   -1.5254    
  28  Prefactor     .10000E-03    27.881        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          .10000E-03    14.201        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    3.5649        .22052E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     2.1226        3.5851        .57136E-05   -1.5417    
  32  Prefactor     36.739        54.121        .26450E-05   -1.4495    
  33  Normalizat    1.2897        .27558        .41395E-04   -.83876    
  34  Prefactor     .52338        .28779        .13354E-04   -1.1092    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.69221e-09
Minuit parameter uncertainties:
  1  6.67704e-05
  2  1.69528e-05
  3  2.73769e-05
  4  2.04777e-05
  5  3.62349e-05
  6  0.00296931
  7  9.5941
  8  0.000134459
  9  62.3903
  10  9.5213e-05
  11  0.000233321
  12  42.229
  13  2.78725e-05
  14  22.8694
  15  6.16278e-06
  16  9.15363
  17  2.45887e-06
  18  13.8271
  19  1.2193e-05
  20  4.82e-05
  21  62.5944
  22  0.645624
  23  4.12163e-06
  24  0.000431093
  25  7.05501
  26  3.747e-06
  27  18.8641
  28  8.25471e-06
  29  2.1334e-06
  30  3.54074e-06
  31  3.5855
  32  54.1937
  33  0.275889
  34  0.288593
Done.

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

Extracting fit parameters...

4FGL J2336.6-4115
   Spectrum: LogParabola
490         norm:  1.295e+01  7.055e+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:  5.234e-01  2.886e-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.290e+00  2.759e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.50
Ra Dec: 354.164 -41.258
Photon Index (Fixed Index): 2.22 +/- 0.00
Photon Flux (Fixed Index): 8.48e-08 +/- 4.62e-08
Energy Flux (Fixed Index): 3.43e-05 +/- 1.87e-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) = 3590.07407152
delta logL = 0.0382413958387

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3590.07299079
delta logL = 0.0393221252439

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    12.078       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3436       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2813       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .52914       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=   3590.073     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      280 TOTAL
                     EDM=   .69E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          12.093        7.2855        .10278E-03    .11320E-02
   2  alpha         2.3446        .46516        .86932E-02    .12056E-03
   3  Normalizat    1.2813        .26574        .20751E-03    .49156E-03
   4  Prefactor     .52885        .28324        .33221E-03    .31946E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 12.0932
  alpha      = 2.34456
  Normalizat = 1.28135
  Prefactor  = 0.528853
 **********
 **   18 **HESSE 
 **********

 FCN=   3590.073     FROM HESSE     STATUS=OK            23 CALLS      303 TOTAL
                     EDM=   .68E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          12.093        7.1737        .20557E-04   -1.5012    
   2  alpha         2.3446        .45797        .34773E-03   -.62214E-01
   3  Normalizat    1.2813        .26588        .41502E-04   -.84125    
   4  Prefactor     .52885        .28338        .13288E-04   -1.1067    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.84868e-10
Minuit parameter uncertainties:
  1  7.17425
  2  0.460582
  3  0.266166
  4  0.284146
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/58712': 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) = 3590.07298147
delta logL = 0.039331449263

Extracting fit parameters...

4FGL J2336.6-4115
   Spectrum: LogParabola
490         norm:  1.209e+01  7.174e+00  1.000e-04  1.000e+04 ( 1.000e-12)
491        alpha:  2.345e+00  4.606e-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:  5.289e-01  2.841e-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.281e+00  2.662e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.52
Ra Dec: 354.164 -41.258
Photon Index (Free Index): 2.34 +/- 0.46
Photon Flux (Free Index): 9.26e-08 +/- 5.45e-08
Energy Flux (Free Index): 3.24e-05 +/- 1.79e-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/58712/cmap_HighResolution_636681601_636940801_4FGL_J2336.6-4115_daily_bin1533.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.48e-08', energy_flux2='3.24e-05', photon_flux_error='4.62e-08', dlogl='3.93e-02', energy_flux='3.43e-05', photon_flux2='9.26e-08', job_status='DONE', time_completed='2021-09-30 02:13:15.301572', photon_index_error2='0.46', photon_index2='2.34', ts='7.50', fit_tolerance='1e-08', GAL='0.52', photon_index_error='0.00', energy_flux_error2='1.79e-05', EG='1.29', time_epoch_completed='1632993195.3', return_code='0', job_id='58712', GAL2='0.53', EG2='1.28', return_code2='0', energy_flux_error='1.87e-05', photon_flux_error2='5.45e-08', ts2='7.52', photon_index='2.22' WHERE bin_id='1533' AND source_name='4FGL J2336.6-4115' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 02:13:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0250>
Subject: Job 58712: <4FGL_J2336.6-4115_daily_bin1533> in cluster <slac> Done

Job <4FGL_J2336.6-4115_daily_bin1533> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Thu Sep 30 02:00:32 2021
Job was executed on host(s) <bullet0250>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 02:00:33 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:33 2021
Terminated at Thu Sep 30 02:13:16 2021
Results reported at Thu Sep 30 02:13:16 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2336.6-4115_daily_bin1533 354.164 -41.2579 636681601 636940801 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 :                                   667.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             314.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   762 sec.
    Turnaround time :                            764 sec.

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

