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


Performing analysis on: 4FGL_J2336.6-4115_daily_bin473
RA = 354.164, Dec = -41.2579
tmin = 361929601, tmax = 362188801
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='52036', job_status='RUN', time_executed='2021-09-30 01:35:38.325957', time_epoch_executed='1632990938.33' WHERE source_name='4FGL J2336.6-4115' and cadence='daily' and bin_id='473'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/52036

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

Retrieving the FT1 file...

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

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

Retrieving 51 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/52036/ft1_4FGL_J2336.6-4115_daily_bin473.fits


Retrieving the FT1 file...

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

Retrieving 51 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/52036/ft2_4FGL_J2336.6-4115_daily_bin473.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/52036/ft1_4FGL_J2336.6-4115_daily_bin473.fits outfile=/scratch/kocevski/52036/ft1_filteredMKT_4FGL_J2336.6-4115_daily_bin473.fits ra=354.164 dec=-41.2579 rad=12.0 tmin=361929601.0 tmax=362188801.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.52
user 5.26
sys 0.24

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/52036/ft1_filtered_4FGL_J2336.6-4115_daily_bin473.fits" evtable="EVENTS" scfile=/scratch/kocevski/52036/ft2_4FGL_J2336.6-4115_daily_bin473.fits sctable="SC_DATA" outfile=/scratch/kocevski/52036/ltcube_361929601_362188801_4FGL_J2336.6-4115_daily_bin473.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/52036/ft2_4FGL_J2336.6-4115_daily_bin473.fits
.....................!
real 11.67
user 11.32
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/52036/ft1_filtered_4FGL_J2336.6-4115_daily_bin473.fits evtable="EVENTS" scfile=/scratch/kocevski/52036/ft2_4FGL_J2336.6-4115_daily_bin473.fits sctable="SC_DATA" expcube=/scratch/kocevski/52036/ltcube_361929601_362188801_4FGL_J2336.6-4115_daily_bin473.fits outfile=/scratch/kocevski/52036/expmap_361929601_362188801_4FGL_J2336.6-4115_daily_bin473.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/52036/ltcube_361929601_362188801_4FGL_J2336.6-4115_daily_bin473.fits
.....................!
real 189.74
user 185.35
sys 4.01

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

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

This is gtbin version HEAD
real 0.54
user 0.35
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/52036/ft1_filtered_4FGL_J2336.6-4115_daily_bin473.fits scfile=/scratch/kocevski/52036/ft2_4FGL_J2336.6-4115_daily_bin473.fits outfile=/scratch/kocevski/52036/cmap_HighResolution_361929601_362188801_4FGL_J2336.6-4115_daily_bin473.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/52036/ft1_filtered_4FGL_J2336.6-4115_daily_bin473.fits evtable="EVENTS" scfile=/scratch/kocevski/52036/ft2_4FGL_J2336.6-4115_daily_bin473.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/52036/Model_4FGL_J2336.6-4115_daily_bin473.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/52036/ft1_filtered_4FGL_J2336.6-4115_daily_bin473.fits.....................!
real 37.47
user 36.21
sys 1.14

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    73.673       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    54.819       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    11.987       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .21519E-02   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    9.9390       1.0000         .10000E-03   10000.    
    10 'Prefactor '    20.233       1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.5907       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    7.0257       1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10115E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .14207E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    4.1563       1.0000         .10000E-03   10000.    
    19 'Prefactor '    9.3371       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .40550E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    6.0653       1.0000         .10000E-03   10000.    
    23 'Prefactor '    20.300       1.0000         .10000E-03   10000.    
    24 'norm      '    8.1333       1.0000         .10000E-03   10000.    
    25 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    7.7154       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    2.6143       1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    32 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    33 'Normalizat'    1.2736       1.0000         .10000E-01   10.000    
    34 'Prefactor '    .66038       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=   4634.729     FROM MIGRAD    STATUS=CONVERGED   1660 CALLS     5584 TOTAL
                     EDM=   .43E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     73.672        66.107        .46776E-04   -.73886E-05
   2  Prefactor     .10000E-03    42.497        .18142E-02** at limit **
   3  Prefactor     54.823        46.104        .54176E-04   -.42095E-04
   4  Prefactor     .10000E-03    16.427        .18142E-02** at limit **
   5  Prefactor     12.016        25.235        .11570E-03    .19554E-04
   6  Prefactor     .10000E-03    3.4378        .12319E-02** at limit **
   7  Prefactor     .10001E-03    39.443        .25434E-02** at limit **
   8  Prefactor     .10000E-03    26.746        .18142E-02** at limit **
   9  Prefactor     9.9572        87.814        .12710E-03   -.50089E-05
  10  Prefactor     20.232        29.732        .89045E-04   -.31791E-04
  11  Prefactor     3.5911        7.4699        .10663E-02   -.16153E-04
  12  Prefactor     .10000E-03    21.072        .18142E-02** at limit **
  13  Prefactor     .10000E-03    20.196        .18142E-02** at limit **
  14  Prefactor     7.0234        14.409        .15135E-03    .75266E-04
  15  norm          .10000E-03    4.2472        .13702E-02** at limit **
  16  norm          .10000E-03    9.5928        .18142E-02** at limit **
  17  norm          .10000E-03    8.9142        .25490E-02** at limit **
  18  norm          4.1565        8.8777        .19770E-03   -.11961E-04
  19  Prefactor     9.3356        10.775        .65577E-03    .13382E-03
  20  Prefactor     .10001E-03    73.882        .11717    ** at limit **
  21  Prefactor     .10000E-03    30.825        .18142E-02** at limit **
  22  norm          6.0518        6.7681        .14802E-03   -.70737E-04
  23  Prefactor     20.299        23.601        .88897E-04    .10231E-05
  24  norm          8.1334        2.3964        .50562E-04    .36919E-03
  25  norm          .10000E-03    4.1851        .26848E-03** at limit **
  26  Prefactor     7.7156        5.4708        .12525E-03   -.56004E-04
  27  Prefactor     .10000E-03    13.626        .18142E-02** at limit **
  28  Prefactor     .10000E-03    16.706        .18142E-02** at limit **
  29  norm          .10000E-03    13.547        .18142E-02** at limit **
  30  Prefactor     2.6145        6.4281        .12613E-02    .11268E-03
  31  Prefactor     .10000E-03    3.6290        .12532E-02** at limit **
  32  Prefactor     .10000E-03    31.474        .18142E-02** at limit **
  33  Normalizat    1.2735        .26399        .22457E-03   -.90242E-04
  34  Prefactor     .66041        .27313        .32658E-03   -.12873E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 73.6721
  Prefactor  = 0.0001
  Prefactor  = 54.8232
  Prefactor  = 0.0001
  Prefactor  = 12.0161
  Prefactor  = 0.0001
  Prefactor  = 0.000100006
  Prefactor  = 0.0001
  Prefactor  = 9.95719
  Prefactor  = 20.2325
  Prefactor  = 3.59113
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.02343
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.000100001
  norm       = 4.1565
  Prefactor  = 9.33557
  Prefactor  = 0.000100009
  Prefactor  = 0.0001
  norm       = 6.05178
  Prefactor  = 20.2987
  norm       = 8.13339
  norm       = 0.0001
  Prefactor  = 7.7156
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 2.61446
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.27354
  Prefactor  = 0.660413
 **********
 **   18 **HESSE 
 **********

 FCN=   4634.729     FROM HESSE     STATUS=OK           712 CALLS     6296 TOTAL
                     EDM=   .43E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     73.672        66.108        .93552E-05   -1.3989    
   2  Prefactor     .10000E-03    42.509        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     54.823        46.102        .10835E-04   -1.4226    
   4  Prefactor     .10000E-03    16.428        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     12.016        25.159        .46280E-05   -1.5015    
   6  Prefactor     .10000E-03    3.4379        .24637E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10001E-03    39.829        .50869E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    26.751        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     9.9572        87.800        .50841E-05   -1.5077    
  10  Prefactor     20.232        29.726        .35618E-05   -1.4808    
  11  Prefactor     3.5911        7.4662        .42650E-04   -1.5329    
  12  Prefactor     .10000E-03    21.073        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    20.196        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     7.0234        14.408        .60539E-05   -1.5178    
  15  norm          .10000E-03    4.2472        .27403E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    9.5972        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    8.9589        .50981E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          4.1565        8.8771        .79081E-05   -1.5300    
  19  Prefactor     9.3356        10.766        .26231E-04   -1.5097    
  20  Prefactor     .10001E-03    69.399        .12176       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    30.826        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          6.0518        6.7516        .59208E-05   -1.5216    
  23  Prefactor     20.299        23.588        .35559E-05   -1.4807    
  24  norm          8.1334        2.3961        .20225E-05   -1.5138    
  25  norm          .10000E-03    4.1851        .53696E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     7.7156        5.4705        .50100E-05   -1.5152    
  27  Prefactor     .10000E-03    13.627        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    16.706        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          .10000E-03    13.547        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     2.6145        6.4236        .50454E-04   -1.5385    
  31  Prefactor     .10000E-03    3.6304        .25063E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     .10000E-03    31.476        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Normalizat    1.2735        .26411        .44914E-04   -.84360    
  34  Prefactor     .66041        .27336        .13063E-04   -1.0510    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.30159e-10
Minuit parameter uncertainties:
  1  66.1737
  2  2.24547e-05
  3  46.1318
  4  1.01521e-05
  5  25.1814
  6  2.23162e-06
  7  0.000997225
  8  8.61746e-05
  9  59.2515
  10  29.748
  11  7.46814
  12  3.84709e-05
  13  2.75308e-05
  14  14.4156
  15  3.11711e-06
  16  4.21742e-05
  17  0.000178085
  18  8.8799
  19  10.7681
  20  0.00157094
  21  6.74189e-05
  22  6.7524
  23  23.5991
  24  2.3961
  25  5.82273e-06
  26  5.4709
  27  2.78733e-06
  28  3.1725e-06
  29  1.74436e-06
  30  6.42526
  31  1.75087e-05
  32  5.62553e-05
  33  0.26439
  34  0.273919
Done.

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

Extracting fit parameters...

4FGL J2336.6-4115
   Spectrum: LogParabola
490         norm:  1.000e-04  5.823e-06  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.604e-01  2.739e-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.274e+00  2.644e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/52036/likelihoodResults_361929601_362188801_4FGL_J2336.6-4115_daily_bin473.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) = 4634.73018234
delta logL = -0.00113785696249

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4634.72904452
delta logL = -3.39387042914e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2249       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2736       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .66044       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=   4634.729     FROM MIGRAD    STATUS=CONVERGED     99 CALLS      248 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    468.69        .26910E-02** at limit **
   2  alpha         2.3716        3.1458        .16588        .12816E-07
   3  Normalizat    1.2735        .61929E-01    .22457E-03   -.16523E-03
   4  Prefactor     .66041        .67232E-01    .32658E-03   -.11697E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.37155
  Normalizat = 1.27354
  Prefactor  = 0.660414
 **********
 **   18 **HESSE 
 **********

 FCN=   4634.729     FROM HESSE     STATUS=OK            23 CALLS      271 TOTAL
                     EDM=   .35E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    4.3023        .53820E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.3716        3.4294        .66353E-02   -.51401E-01
   3  Normalizat    1.2735        .24791        .44914E-04   -.84360    
   4  Prefactor     .66041        .26889        .13063E-04   -1.0510    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.45935e-11
Minuit parameter uncertainties:
  1  2.03794e-06
  2  190.412
  3  0.248139
  4  0.269416
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/52036': 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) = 4634.72904417
delta logL = 3.19611899613e-07

Extracting fit parameters...

4FGL J2336.6-4115
   Spectrum: LogParabola
490         norm:  1.000e-04  2.038e-06  1.000e-04  1.000e+04 ( 1.000e-12)
491        alpha:  2.372e+00  1.904e+02  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.604e-01  2.694e-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.274e+00  2.481e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/52036/cmap_HighResolution_361929601_362188801_4FGL_J2336.6-4115_daily_bin473.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.93e-05', job_status='DONE', photon_flux_upper_limit='7.23e-08', time_completed='2021-09-30 01:50:08.167613', job_id='52036', GAL2='0.66', fit_tolerance='1e-08', EG2='1.27', EG='1.27', time_epoch_completed='1632991808.17', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.66', dlogl='3.20e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.22' WHERE bin_id='473' AND source_name='4FGL J2336.6-4115' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 01:50:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0230>
Subject: Job 52036: <4FGL_J2336.6-4115_daily_bin473> in cluster <slac> Done

Job <4FGL_J2336.6-4115_daily_bin473> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Sep 30 01:35:20 2021
Job was executed on host(s) <bullet0230>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 01:35:21 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep 30 01:35:21 2021
Terminated at Thu Sep 30 01:50:08 2021
Results reported at Thu Sep 30 01:50:08 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2336.6-4115_daily_bin473 354.164 -41.2579 361929601 362188801 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 :                                   864.33 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             314.87 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   887 sec.
    Turnaround time :                            888 sec.

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

