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


Performing analysis on: 4FGL_J2336.6-4115_daily_bin1340
RA = 354.164, Dec = -41.2579
tmin = 586656001, tmax = 586915201
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='57437', job_status='RUN', time_executed='2021-09-30 01:56:13.676740', time_epoch_executed='1632992173.68' WHERE source_name='4FGL J2336.6-4115' and cadence='daily' and bin_id='1340'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/57437

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/57437/ft1_4FGL_J2336.6-4115_daily_bin1340.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/57437/ft2_4FGL_J2336.6-4115_daily_bin1340.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/57437/ft1_4FGL_J2336.6-4115_daily_bin1340.fits outfile=/scratch/kocevski/57437/ft1_filteredMKT_4FGL_J2336.6-4115_daily_bin1340.fits ra=354.164 dec=-41.2579 rad=12.0 tmin=586656001.0 tmax=586915201.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.76
user 3.48
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/57437/ft2_4FGL_J2336.6-4115_daily_bin1340.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/57437/ft1_filteredMKT_4FGL_J2336.6-4115_daily_bin1340.fits evtable="EVENTS" outfile="/scratch/kocevski/57437/ft1_filtered_4FGL_J2336.6-4115_daily_bin1340.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/57437/ft1_filtered_4FGL_J2336.6-4115_daily_bin1340.fits" evtable="EVENTS" scfile=/scratch/kocevski/57437/ft2_4FGL_J2336.6-4115_daily_bin1340.fits sctable="SC_DATA" outfile=/scratch/kocevski/57437/ltcube_586656001_586915201_4FGL_J2336.6-4115_daily_bin1340.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/57437/ft2_4FGL_J2336.6-4115_daily_bin1340.fits
.....................!
real 11.44
user 11.10
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/57437/ft1_filtered_4FGL_J2336.6-4115_daily_bin1340.fits evtable="EVENTS" scfile=/scratch/kocevski/57437/ft2_4FGL_J2336.6-4115_daily_bin1340.fits sctable="SC_DATA" expcube=/scratch/kocevski/57437/ltcube_586656001_586915201_4FGL_J2336.6-4115_daily_bin1340.fits outfile=/scratch/kocevski/57437/expmap_586656001_586915201_4FGL_J2336.6-4115_daily_bin1340.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/57437/ltcube_586656001_586915201_4FGL_J2336.6-4115_daily_bin1340.fits
.....................!
real 191.97
user 187.36
sys 4.31

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/57437/ft1_filtered_4FGL_J2336.6-4115_daily_bin1340.fits scfile=/scratch/kocevski/57437/ft2_4FGL_J2336.6-4115_daily_bin1340.fits outfile=/scratch/kocevski/57437/cmap_586656001_586915201_4FGL_J2336.6-4115_daily_bin1340.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.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/57437/ft1_filtered_4FGL_J2336.6-4115_daily_bin1340.fits scfile=/scratch/kocevski/57437/ft2_4FGL_J2336.6-4115_daily_bin1340.fits outfile=/scratch/kocevski/57437/cmap_HighResolution_586656001_586915201_4FGL_J2336.6-4115_daily_bin1340.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/57437/ft1_filtered_4FGL_J2336.6-4115_daily_bin1340.fits evtable="EVENTS" scfile=/scratch/kocevski/57437/ft2_4FGL_J2336.6-4115_daily_bin1340.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/57437/Model_4FGL_J2336.6-4115_daily_bin1340.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/57437/ft1_filtered_4FGL_J2336.6-4115_daily_bin1340.fits.....................!
real 34.22
user 32.98
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    12.859       1.0000         .10000E-03   10000.    
     5 'Prefactor '    10.585       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    17.596       1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.5620       1.0000         .10000E-03   10000.    
    10 'Prefactor '    27.686       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    33.351       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10139E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .55843E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    77.447       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10804E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    21.498       1.0000         .10000E-03   10000.    
    24 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    1.0503       1.0000         .10000E-03   10000.    
    26 'Prefactor '    1.8785       1.0000         .10000E-03   10000.    
    27 'Prefactor '    12.892       1.0000         .10000E-03   10000.    
    28 'Prefactor '    53.095       1.0000         .10000E-03   10000.    
    29 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    13.954       1.0000         .10000E-03   10000.    
    32 'Prefactor '    .39456E-03   1.0000         .10000E-03   10000.    
    33 'Normalizat'    1.0220       1.0000         .10000E-01   10.000    
    34 'Prefactor '    .80494       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=   3750.492     FROM MIGRAD    STATUS=CONVERGED    924 CALLS     4837 TOTAL
                     EDM=   .72E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    20.767        .13534E-06** at limit **
   2  Prefactor     .10000E-03    12.098       -.79303E-06** at limit **
   3  Prefactor     .10000E-03    54.104       -.11625E-05** at limit **
   4  Prefactor     12.845        34.126       -.22877E-06    .32038E-04
   5  Prefactor     10.584        18.320        .56002E-06    .92924E-04
   6  Prefactor     .10000E-03    2.9762        .77253E-07** at limit **
   7  Prefactor     .10000E-03    4.7964        .88435E-06** at limit **
   8  Prefactor     17.634        34.334       -.33553E-06    .77449E-04
   9  Prefactor     4.5585        111.28       -.32502E-06    .88506E-05
  10  Prefactor     27.688        35.366       -.67779E-06    .81131E-05
  11  Prefactor     .10000E-03    4.4152       -.94307E-07** at limit **
  12  Prefactor     33.375        58.139       -.44747E-05   -.59992E-04
  13  Prefactor     .10000E-03    53.185        .11314E-05** at limit **
  14  Prefactor     .10000E-03    12.476        .74889E-06** at limit **
  15  norm          .10000E-03    4.9558       -.15703E-07** at limit **
  16  norm          .10000E-03    2.5294       -.16754E-07** at limit **
  17  norm          .10000E-03    1.8312        .13313E-08** at limit **
  18  norm          .10002E-03    93.964        .23565E-04** at limit **
  19  Prefactor     .10000E-03    2.9726       -.13865E-06** at limit **
  20  Prefactor     77.462        48.811        .70969E-06    .25449E-03
  21  Prefactor     .10000E-03    180.72       -.99475E-06** at limit **
  22  norm          .10000E-03    2.8784        .22759E-06** at limit **
  23  Prefactor     21.497        17.558       -.20198E-06    .92301E-04
  24  norm          .10000E-03    .46364       -.39882E-07** at limit **
  25  norm          1.0486        6.8880       -.10337E-05    .44397E-03
  26  Prefactor     1.8782        3.0280       -.15853E-06    .93993E-04
  27  Prefactor     12.898        21.554        .77540E-07    .56901E-04
  28  Prefactor     53.074        80.521        .25705E-05    .75876E-04
  29  norm          .10000E-03    17.553       -.20531E-06** at limit **
  30  Prefactor     .10000E-03    4.4119       -.12974E-06** at limit **
  31  Prefactor     13.956        7.0933       -.54353E-07    .33907E-03
  32  Prefactor     .10003E-03    214.05       -.41323E-05** at limit **
  33  Normalizat    1.0219        .22218        .83270E-06    .50197E-03
  34  Prefactor     .80509        .23090        .15792E-05    .47180E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.8449
  Prefactor  = 10.5844
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 17.634
  Prefactor  = 4.55852
  Prefactor  = 27.6875
  Prefactor  = 0.0001
  Prefactor  = 33.3746
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.000100023
  Prefactor  = 0.0001
  Prefactor  = 77.4622
  Prefactor  = 0.000100004
  norm       = 0.0001
  Prefactor  = 21.4968
  norm       = 0.0001
  norm       = 1.04857
  Prefactor  = 1.87823
  Prefactor  = 12.8977
  Prefactor  = 53.0737
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.9556
  Prefactor  = 0.000100032
  Normalizat = 1.0219
  Prefactor  = 0.805088
 **********
 **   18 **HESSE 
 **********

 FCN=   3750.492     FROM HESSE     STATUS=OK           724 CALLS     5561 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    20.770        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    12.134        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    54.427        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     12.845        34.119        .11170E-03   -1.4991    
   5  Prefactor     10.584        18.219        .12315E-03   -1.5057    
   6  Prefactor     .10000E-03    2.9802        .10318E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    9.0356        .24667E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     17.634        33.306        .95481E-04   -1.4868    
   9  Prefactor     4.5585        111.22        .18847E-03   -1.5281    
  10  Prefactor     27.688        35.364        .76138E-04   -1.4655    
  11  Prefactor     .10000E-03    4.4277        .12567E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     33.375        58.762        .69388E-04   -1.4552    
  13  Prefactor     .10000E-03    53.227        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    12.555        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    4.9590        .13316E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    2.5301        .95126E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    1.8314        .80933E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10002E-03    94.130        .41026E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    2.9757        .10304E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     77.462        49.095        .45631E-04   -1.3945    
  21  Prefactor     .10000E-03    181.68        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    2.8879        .10123E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     21.497        17.541        .86386E-04   -1.4780    
  24  norm          .10000E-03    .47158        .40661E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          1.0486        7.2393        .29502E-03   -1.5503    
  26  Prefactor     1.8782        2.9964        .12906E-03   -1.5434    
  27  Prefactor     12.898        21.487        .11156E-03   -1.4990    
  28  Prefactor     53.074        81.048        .55044E-04   -1.4250    
  29  norm          .10000E-03    17.559        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    4.4443        .12561E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     13.956        7.0955        .10722E-03   -1.4961    
  32  Prefactor     .10003E-03    218.86        .21270E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Normalizat    1.0219        .26257        .22493E-03   -.92300    
  34  Prefactor     .80509        .27270        .27062E-03   -.99541    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.74389e-09
Minuit parameter uncertainties:
  1  2.68178e-06
  2  6.33197e-05
  3  0.000292685
  4  34.1704
  5  18.2282
  6  1.98281e-06
  7  0.000277794
  8  33.3411
  9  45.1261
  10  35.391
  11  1.37437e-05
  12  58.8646
  13  4.60208e-05
  14  1.87594e-05
  15  1.56488e-06
  16  1.6551e-06
  17  2.94563e-06
  18  0.00297676
  19  4.18171e-06
  20  49.1206
  21  0.0017813
  22  4.05576e-05
  23  17.545
  24  2.31497e-06
  25  5.511
  26  2.99664
  27  21.5
  28  81.2172
  29  2.14661e-05
  30  5.73014e-05
  31  7.0959
  32  0.00535326
  33  0.262899
  34  0.273161
Done.

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

Extracting fit parameters...

4FGL J2336.6-4115
   Spectrum: LogParabola
490         norm:  1.049e+00  5.511e+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.051e-01  2.732e-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.022e+00  2.629e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/57437/likelihoodResults_586656001_586915201_4FGL_J2336.6-4115_daily_bin1340.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): 102
logL (Free Index) = 3750.06559025
delta logL = 0.426422022285

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3750.06504173
delta logL = 0.426970543095

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .74086       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.9451       1.0000          .0000       5.0000    
     3 'Normalizat'    .96273       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84195       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=   3750.065     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      213 TOTAL
                     EDM=   .74E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .74014        15.221        .12218E-01    .68729E-03
   2  alpha         3.9457        4.4107        .46041        .32180E-04
   3  Normalizat    .96273        .43827E-01    .45698E-01    .38331E-05
   4  Prefactor     .84196        .47577E-01    .44261E-01    .78814E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.740138
  alpha      = 3.94571
  Normalizat = 0.962733
  Prefactor  = 0.841958
 **********
 **   18 **HESSE 
 **********

 FCN=   3750.065     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      246 TOTAL
                     EDM=   .41E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .74014        45.981        .58490E-04   -1.5536    
   2  alpha         3.9457        2.8984        .18763E-01    .61662    
   3  Normalizat    .96273        .26384        .23045E-03   -.94290    
   4  Prefactor     .84196        .28350        .26490E-03   -.98200    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.06697e-07
Minuit parameter uncertainties:
  1  11.6761
  2  9.93504
  3  0.264193
  4  0.283994
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/57437': 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): 102
logL (Free Index) = 3750.06504169
delta logL = 0.426970587715

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
582    Prefactor:  8.420e-01  2.840e-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.627e-01  2.642e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.05
Ra Dec: 354.164 -41.258

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/57437/cmap_HighResolution_586656001_586915201_4FGL_J2336.6-4115_daily_bin1340.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.93e-05', job_status='DONE', photon_flux_upper_limit='9.70e-08', time_completed='2021-09-30 02:08:02.016243', job_id='57437', GAL2='0.84', fit_tolerance='1e-08', EG2='0.96', EG='1.02', time_epoch_completed='1632992882.02', return_code2='102', ts='0.05', comment='SUCCESS', return_code='0', GAL='0.81', dlogl='4.27e-01', ts2='0.94', photon_index_error='0.00', photon_index='2.22' WHERE bin_id='1340' AND source_name='4FGL J2336.6-4115' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 02:08:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0205>
Subject: Job 57437: <4FGL_J2336.6-4115_daily_bin1340> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2336.6-4115_daily_bin1340 354.164 -41.2579 586656001 586915201 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 :                                   702.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             327.20 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   748 sec.
    Turnaround time :                            749 sec.

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

