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


Performing analysis on: 4FGL_J2336.6-4115_daily_bin1408
RA = 354.164, Dec = -41.2579
tmin = 604281601, tmax = 604540801
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='57542', job_status='RUN', time_executed='2021-09-30 01:56:32.290080', time_epoch_executed='1632992192.29' WHERE source_name='4FGL J2336.6-4115' and cadence='daily' and bin_id='1408'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/57542

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/57542/ft1_4FGL_J2336.6-4115_daily_bin1408.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/57542/ft2_4FGL_J2336.6-4115_daily_bin1408.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/57542/ft1_4FGL_J2336.6-4115_daily_bin1408.fits outfile=/scratch/kocevski/57542/ft1_filteredMKT_4FGL_J2336.6-4115_daily_bin1408.fits ra=354.164 dec=-41.2579 rad=12.0 tmin=604281601.0 tmax=604540801.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.61
user 3.37
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/57542/ft2_4FGL_J2336.6-4115_daily_bin1408.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/57542/ft1_filteredMKT_4FGL_J2336.6-4115_daily_bin1408.fits evtable="EVENTS" outfile="/scratch/kocevski/57542/ft1_filtered_4FGL_J2336.6-4115_daily_bin1408.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.34
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/57542/ft1_filtered_4FGL_J2336.6-4115_daily_bin1408.fits" evtable="EVENTS" scfile=/scratch/kocevski/57542/ft2_4FGL_J2336.6-4115_daily_bin1408.fits sctable="SC_DATA" outfile=/scratch/kocevski/57542/ltcube_604281601_604540801_4FGL_J2336.6-4115_daily_bin1408.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/57542/ft2_4FGL_J2336.6-4115_daily_bin1408.fits
.....................!
real 11.82
user 11.47
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/57542/ft1_filtered_4FGL_J2336.6-4115_daily_bin1408.fits evtable="EVENTS" scfile=/scratch/kocevski/57542/ft2_4FGL_J2336.6-4115_daily_bin1408.fits sctable="SC_DATA" expcube=/scratch/kocevski/57542/ltcube_604281601_604540801_4FGL_J2336.6-4115_daily_bin1408.fits outfile=/scratch/kocevski/57542/expmap_604281601_604540801_4FGL_J2336.6-4115_daily_bin1408.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/57542/ltcube_604281601_604540801_4FGL_J2336.6-4115_daily_bin1408.fits
.....................!
real 191.29
user 186.16
sys 4.74

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

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

This is gtbin version HEAD
real 0.53
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/57542/ft1_filtered_4FGL_J2336.6-4115_daily_bin1408.fits scfile=/scratch/kocevski/57542/ft2_4FGL_J2336.6-4115_daily_bin1408.fits outfile=/scratch/kocevski/57542/cmap_HighResolution_604281601_604540801_4FGL_J2336.6-4115_daily_bin1408.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.40
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/57542/ft1_filtered_4FGL_J2336.6-4115_daily_bin1408.fits evtable="EVENTS" scfile=/scratch/kocevski/57542/ft2_4FGL_J2336.6-4115_daily_bin1408.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/57542/Model_4FGL_J2336.6-4115_daily_bin1408.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/57542/ft1_filtered_4FGL_J2336.6-4115_daily_bin1408.fits....................!
real 39.79
user 38.34
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    83.497       1.0000         .10000E-03   10000.    
     2 'Prefactor '    33.828       1.0000         .10000E-03   10000.    
     3 'Prefactor '    24.693       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10118E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10392E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    31.984       1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.3453       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    8.4112       1.0000         .10000E-03   10000.    
    15 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    10.447       1.0000         .10000E-03   10000.    
    20 'Prefactor '    34.697       1.0000         .10000E-03   10000.    
    21 'Prefactor '    4.6217       1.0000         .10000E-03   10000.    
    22 'norm      '    5.8877       1.0000         .10000E-03   10000.    
    23 'Prefactor '    4.5858       1.0000         .10000E-03   10000.    
    24 'norm      '    .10616E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    1.2400       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10066E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .11493E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10067E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    3.3183       1.0000         .10000E-03   10000.    
    32 'Prefactor '    22.131       1.0000         .10000E-03   10000.    
    33 'Normalizat'    1.5094       1.0000         .10000E-01   10.000    
    34 'Prefactor '    .61276       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=   4785.845     FROM MIGRAD    STATUS=CONVERGED    909 CALLS     4861 TOTAL
                     EDM=   .10E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     83.509        63.675       -.13604E-05   -.43256E-05
   2  Prefactor     33.830        30.814       -.24967E-05   -.17276E-05
   3  Prefactor     24.670        54.102        .40056E-05    .22758E-05
   4  Prefactor     .10000E-03    20.595        .87660E-07** at limit **
   5  Prefactor     .10000E-03    14.636       -.14246E-06** at limit **
   6  Prefactor     .10000E-03    11.371       -.30439E-06** at limit **
   7  Prefactor     .10000E-03    2.6433        .29949E-06** at limit **
   8  Prefactor     .10000E-03    14.395       -.90332E-07** at limit **
   9  Prefactor     .10000E-03    21.377        .46430E-06** at limit **
  10  Prefactor     31.990        27.718       -.11267E-06   -.53459E-05
  11  Prefactor     4.3454        4.6027        .18370E-06    .11803E-05
  12  Prefactor     .10000E-03    13.791        .74754E-07** at limit **
  13  Prefactor     .10000E-03    20.269        .32327E-06** at limit **
  14  Prefactor     8.4211        14.998        .29707E-06    .33943E-04
  15  norm          .10000E-03    6.2420        .26018E-07** at limit **
  16  norm          .10000E-03    3.5078        .26780E-06** at limit **
  17  norm          .10000E-03    2.6881       -.12287E-06** at limit **
  18  norm          .10000E-03    3.4218       -.48498E-06** at limit **
  19  Prefactor     10.451        10.382        .29042E-06    .82933E-04
  20  Prefactor     34.715        43.415       -.23772E-05   -.67412E-06
  21  Prefactor     4.6112        98.126        .48752E-05   -.15674E-06
  22  norm          5.8878        5.9436        .34444E-06    .16718E-04
  23  Prefactor     4.5944        40.789       -.23586E-05    .13938E-04
  24  norm          .10000E-03    .88169       -.46417E-06** at limit **
  25  norm          1.2397        3.7413        .69741E-06    .15349E-03
  26  Prefactor     .10000E-03    2.5315       -.28339E-06** at limit **
  27  Prefactor     .10000E-03    64.977       -.57058E-06** at limit **
  28  Prefactor     .10000E-03    27.343       -.99541E-06** at limit **
  29  norm          .10000E-03    15.640       -.42561E-06** at limit **
  30  Prefactor     .10000E-03    1.9576       -.18839E-06** at limit **
  31  Prefactor     3.3122        7.1623        .50271E-05    .30782E-04
  32  Prefactor     22.112        55.983        .41444E-05   -.37094E-05
  33  Normalizat    1.5087        .22611       -.10214E-05    .92729E-04
  34  Prefactor     .61346        .23104       -.55591E-06   -.81203E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 83.5092
  Prefactor  = 33.8302
  Prefactor  = 24.6695
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 31.9899
  Prefactor  = 4.34544
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.42105
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 10.451
  Prefactor  = 34.7145
  Prefactor  = 4.61122
  norm       = 5.88783
  Prefactor  = 4.59438
  norm       = 0.000100001
  norm       = 1.23969
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.31224
  Prefactor  = 22.1122
  Normalizat = 1.50867
  Prefactor  = 0.613463
 **********
 **   18 **HESSE 
 **********

 FCN=   4785.845     FROM HESSE     STATUS=OK           730 CALLS     5591 TOTAL
                     EDM=   .50E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     83.509        63.773        .21980E-03   -1.3878    
   2  Prefactor     33.830        30.831        .68898E-04   -1.4544    
   3  Prefactor     24.670        54.224        .80612E-04   -1.4714    
   4  Prefactor     .10000E-03    20.603        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    14.645        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    11.518        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    2.6579        .10985E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    14.408        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    21.385        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     31.990        27.744        .70850E-04   -1.4576    
  11  Prefactor     4.3454        4.6035        .14856E-03   -1.5291    
  12  Prefactor     .10000E-03    13.795        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    20.274        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     8.4211        14.748        .13823E-03   -1.5128    
  15  norm          .10000E-03    6.2460        .16881E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    3.5208        .12646E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    2.6912        .11066E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    3.4301        .12498E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     10.451        10.148        .12397E-03   -1.5061    
  20  Prefactor     34.715        43.543        .68032E-04   -1.4529    
  21  Prefactor     4.6112        98.563        .18722E-03   -1.5278    
  22  norm          5.8878        5.9139        .13982E-03   -1.5223    
  23  Prefactor     4.5944        38.338        .18797E-03   -1.5279    
  24  norm          .10000E-03    3.2689        .11582E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          1.2397        3.6604        .21788E-03   -1.5485    
  26  Prefactor     .10000E-03    2.5658        .10745E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    65.678        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    27.368        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          .10000E-03    15.647        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    1.9608        .94549E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     3.3122        7.2166        .11111E-02   -1.5344    
  32  Prefactor     22.112        56.110        .85144E-04   -1.4767    
  33  Normalizat    1.5087        .27203        .21586E-03   -.77535    
  34  Prefactor     .61346        .27286        .34677E-03   -1.0702    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.01124e-10
Minuit parameter uncertainties:
  1  63.8248
  2  30.8452
  3  54.3325
  4  5.65693e-05
  5  1.17031e-05
  6  7.30918e-05
  7  2.79801e-06
  8  9.45993e-06
  9  5.84921e-06
  10  27.7556
  11  4.60384
  12  2.69138e-06
  13  5.6975e-06
  14  14.7547
  15  7.49129e-06
  16  8.77298e-07
  17  1.10103e-05
  18  1.30305e-06
  19  10.15
  20  43.5831
  21  42.7175
  22  5.91448
  23  26.5664
  24  0.000127286
  25  3.66105
  26  1.53871e-05
  27  0.000192152
  28  5.2418e-05
  29  6.864e-06
  30  1.14849e-05
  31  7.21853
  32  56.2443
  33  0.272296
  34  0.273455
Done.

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

Extracting fit parameters...

4FGL J2336.6-4115
   Spectrum: LogParabola
490         norm:  1.240e+00  3.661e+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:  6.135e-01  2.735e-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.509e+00  2.723e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/57542/likelihoodResults_604281601_604540801_4FGL_J2336.6-4115_daily_bin1408.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4785.84142549
delta logL = 0.00338747294154

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4785.84135067
delta logL = 0.00346229640763

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.2752       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0689       1.0000          .0000       5.0000    
     3 'Normalizat'    1.5100       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .61255       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5850E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4785.841     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      277 TOTAL
                     EDM=   .33E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.2752        3.6332        .10903E-02   -.54829E-03
   2  alpha         2.0689        1.6018        .41738E-01    .46940E-05
   3  Normalizat    1.5100        .25151        .21579E-03    .78500E-05
   4  Prefactor     .61256        .27107        .34701E-03   -.65196E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.27522
  alpha      = 2.06886
  Normalizat = 1.50998
  Prefactor  = 0.612559
 **********
 **   18 **HESSE 
 **********

 FCN=   4785.841     FROM HESSE     STATUS=OK            25 CALLS      302 TOTAL
                     EDM=   .35E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.2752        3.6190        .43611E-04   -1.5482    
   2  alpha         2.0689        1.5981        .16695E-02   -.17332    
   3  Normalizat    1.5100        .25166        .86316E-05   -.77498    
   4  Prefactor     .61256        .27125        .13880E-04   -1.0706    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.5016e-10
Minuit parameter uncertainties:
  1  3.61967
  2  1.73916
  3  0.25187
  4  0.271833
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/57542': 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) = 4785.84135065
delta logL = 0.00346231329149

Extracting fit parameters...

4FGL J2336.6-4115
   Spectrum: LogParabola
490         norm:  1.275e+00  3.620e+00  1.000e-04  1.000e+04 ( 1.000e-12)
491        alpha:  2.069e+00  1.739e+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:  6.126e-01  2.718e-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.510e+00  2.519e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.15
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/57542/cmap_HighResolution_604281601_604540801_4FGL_J2336.6-4115_daily_bin1408.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.33e-05', job_status='DONE', photon_flux_upper_limit='8.23e-08', time_completed='2021-09-30 02:10:35.194353', job_id='57542', GAL2='0.61', fit_tolerance='1e-08', EG2='1.51', EG='1.51', time_epoch_completed='1632993035.19', return_code2='0', ts='0.15', comment='SUCCESS', return_code='0', GAL='0.61', dlogl='3.46e-03', ts2='0.16', photon_index_error='0.00', photon_index='2.22' WHERE bin_id='1408' AND source_name='4FGL J2336.6-4115' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 02:10:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0037>
Subject: Job 57542: <4FGL_J2336.6-4115_daily_bin1408> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2336.6-4115_daily_bin1408 354.164 -41.2579 604281601 604540801 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 :                                   829.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             283.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   890 sec.
    Turnaround time :                            893 sec.

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

