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


Performing analysis on: 4FGL_J2336.6-4115_daily_bin1133
RA = 354.164, Dec = -41.2579
tmin = 533001601, tmax = 533260801
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='56140', job_status='RUN', time_executed='2021-09-30 01:52:25.204181', time_epoch_executed='1632991945.2' WHERE source_name='4FGL J2336.6-4115' and cadence='daily' and bin_id='1133'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/56140

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/56140/ft1_4FGL_J2336.6-4115_daily_bin1133.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/56140/ft2_4FGL_J2336.6-4115_daily_bin1133.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/56140/ft1_4FGL_J2336.6-4115_daily_bin1133.fits outfile=/scratch/kocevski/56140/ft1_filteredMKT_4FGL_J2336.6-4115_daily_bin1133.fits ra=354.164 dec=-41.2579 rad=12.0 tmin=533001601.0 tmax=533260801.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.55
user 3.31
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/56140/ft2_4FGL_J2336.6-4115_daily_bin1133.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/56140/ft1_filteredMKT_4FGL_J2336.6-4115_daily_bin1133.fits evtable="EVENTS" outfile="/scratch/kocevski/56140/ft1_filtered_4FGL_J2336.6-4115_daily_bin1133.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/56140/ft1_filtered_4FGL_J2336.6-4115_daily_bin1133.fits" evtable="EVENTS" scfile=/scratch/kocevski/56140/ft2_4FGL_J2336.6-4115_daily_bin1133.fits sctable="SC_DATA" outfile=/scratch/kocevski/56140/ltcube_533001601_533260801_4FGL_J2336.6-4115_daily_bin1133.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/56140/ft2_4FGL_J2336.6-4115_daily_bin1133.fits
.....................!
real 11.66
user 11.30
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/56140/ft1_filtered_4FGL_J2336.6-4115_daily_bin1133.fits evtable="EVENTS" scfile=/scratch/kocevski/56140/ft2_4FGL_J2336.6-4115_daily_bin1133.fits sctable="SC_DATA" expcube=/scratch/kocevski/56140/ltcube_533001601_533260801_4FGL_J2336.6-4115_daily_bin1133.fits outfile=/scratch/kocevski/56140/expmap_533001601_533260801_4FGL_J2336.6-4115_daily_bin1133.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/56140/ltcube_533001601_533260801_4FGL_J2336.6-4115_daily_bin1133.fits
.....................!
real 191.91
user 187.18
sys 4.32

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/56140/ft1_filtered_4FGL_J2336.6-4115_daily_bin1133.fits scfile=/scratch/kocevski/56140/ft2_4FGL_J2336.6-4115_daily_bin1133.fits outfile=/scratch/kocevski/56140/cmap_533001601_533260801_4FGL_J2336.6-4115_daily_bin1133.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/56140/ft1_filtered_4FGL_J2336.6-4115_daily_bin1133.fits scfile=/scratch/kocevski/56140/ft2_4FGL_J2336.6-4115_daily_bin1133.fits outfile=/scratch/kocevski/56140/cmap_HighResolution_533001601_533260801_4FGL_J2336.6-4115_daily_bin1133.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.53
user 0.39
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/56140/ft1_filtered_4FGL_J2336.6-4115_daily_bin1133.fits evtable="EVENTS" scfile=/scratch/kocevski/56140/ft2_4FGL_J2336.6-4115_daily_bin1133.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/56140/Model_4FGL_J2336.6-4115_daily_bin1133.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/56140/ft1_filtered_4FGL_J2336.6-4115_daily_bin1133.fits.....................!
real 39.97
user 38.69
sys 1.14

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .40907       1.0000         .10000E-03   10000.    
     3 'Prefactor '    11.107       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.5279       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .85510E-01   1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.6380       1.0000         .10000E-03   10000.    
    10 'Prefactor '    8.9910       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.3054       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-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      '    8.1759       1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.9736       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10076E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    87.212       1.0000         .10000E-03   10000.    
    22 'norm      '    3.4565       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .99035E-01   1.0000         .10000E-03   10000.    
    25 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10175E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    58.352       1.0000         .10000E-03   10000.    
    28 'Prefactor '    27.787       1.0000         .10000E-03   10000.    
    29 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    3.2986       1.0000         .10000E-03   10000.    
    32 'Prefactor '    14.649       1.0000         .10000E-03   10000.    
    33 'Normalizat'    1.0752       1.0000         .10000E-01   10.000    
    34 'Prefactor '    .80863       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=   5219.157     FROM MIGRAD    STATUS=CONVERGED    970 CALLS     4871 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    29.524        .44373E-06** at limit **
   2  Prefactor     .27329        20.307        .43944E-05   -.52874E-03
   3  Prefactor     11.090        31.095       -.46331E-05   -.38997E-03
   4  Prefactor     .10000E-03    13.111       -.16684E-08** at limit **
   5  Prefactor     6.5257        16.629        .10002E-05    .14209E-03
   6  Prefactor     .10000E-03    3.5947       -.29143E-07** at limit **
   7  Prefactor     .10000E-03    4.7628        .28174E-06** at limit **
   8  Prefactor     .10204E-03    17.401       -.13121E-05** at limit **
   9  Prefactor     3.6362        64.158        .17556E-05    .22342E-04
  10  Prefactor     8.9868        30.096        .18455E-05    .85267E-04
  11  Prefactor     .10000E-03    2.1944        .45036E-07** at limit **
  12  Prefactor     .10000E-03    10.904       -.22663E-07** at limit **
  13  Prefactor     .10000E-03    32.367       -.46379E-06** at limit **
  14  Prefactor     4.2994        12.705        .80193E-05   -.22434E-03
  15  norm          .10000E-03    4.0543        .13824E-07** at limit **
  16  norm          .10000E-03    2.3924       -.85536E-07** at limit **
  17  norm          .10000E-03    2.7009       -.42197E-08** at limit **
  18  norm          8.1745        8.7277        .80035E-07   -.51930E-04
  19  Prefactor     4.9722        4.5540       -.14924E-06    .63056E-04
  20  Prefactor     .10000E-03    52.159        .39400E-06** at limit **
  21  Prefactor     87.194        58.008       -.12730E-05   -.15214E-03
  22  norm          3.4566        3.5798        .59752E-07   -.50930E-04
  23  Prefactor     .10000E-03    5.1609       -.10398E-06** at limit **
  24  norm          .99369E-01    .61917       -.27384E-06   -.58520E-03
  25  norm          .10000E-03    1.7281        .25355E-07** at limit **
  26  Prefactor     .10000E-03    1.4761       -.34730E-06** at limit **
  27  Prefactor     58.343        24.643       -.19842E-05   -.11097E-02
  28  Prefactor     27.786        36.100        .37850E-06    .32535E-04
  29  norm          .10000E-03    11.943       -.23367E-07** at limit **
  30  Prefactor     .10000E-03    3.6737        .47064E-07** at limit **
  31  Prefactor     3.2968        4.4661        .39073E-06   -.74635E-03
  32  Prefactor     14.646        46.642       -.31059E-06   -.97455E-05
  33  Normalizat    1.0753        .18082        .73495E-06   -.23493E-03
  34  Prefactor     .80859        .19585       -.12074E-05   -.92525E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.273287
  Prefactor  = 11.0903
  Prefactor  = 0.0001
  Prefactor  = 6.52566
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000102038
  Prefactor  = 3.6362
  Prefactor  = 8.98682
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.29941
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 8.17452
  Prefactor  = 4.9722
  Prefactor  = 0.0001
  Prefactor  = 87.194
  norm       = 3.45664
  Prefactor  = 0.0001
  norm       = 0.0993686
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 58.3433
  Prefactor  = 27.7863
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.29675
  Prefactor  = 14.646
  Normalizat = 1.07531
  Prefactor  = 0.808595
 **********
 **   18 **HESSE 
 **********

 FCN=   5219.157     FROM HESSE     STATUS=OK           742 CALLS     5613 TOTAL
                     EDM=   .24E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    29.569        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .27329        24.174        .88392E-01   -1.5603    
   3  Prefactor     11.090        32.146        .12021E-03   -1.5042    
   4  Prefactor     .10000E-03    13.116        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     6.5257        16.598        .15707E-03   -1.5197    
   6  Prefactor     .10000E-03    3.6266        .13375E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    4.9014        .30592E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10204E-03    18.445        .89314E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     3.6362        64.102        .21181E-03   -1.5327    
  10  Prefactor     8.9868        30.111        .13367E-03   -1.5108    
  11  Prefactor     .10000E-03    2.1978        .10451E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    10.905        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    32.407        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     4.2994        13.202        .97076E-03   -1.5293    
  15  norm          .10000E-03    4.0558        .14207E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    2.3972        .10913E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    2.7071        .11575E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          8.1745        8.7237        .14021E-03   -1.5136    
  19  Prefactor     4.9722        4.5473        .14160E-03   -1.5262    
  20  Prefactor     .10000E-03    52.459        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     87.194        58.407        .43021E-04   -1.3838    
  22  norm          3.4566        3.5645        .13307E-03   -1.5336    
  23  Prefactor     .10000E-03    5.1715        .16024E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .99369E-01    1.0178        .10613E-02   -1.5645    
  25  norm          .10000E-03    1.7510        .92655E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    1.4952        .85477E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     58.343        25.314        .52519E-04   -1.4179    
  28  Prefactor     27.786        36.098        .76001E-04   -1.4653    
  29  norm          .10000E-03    11.946        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    3.7017        .13509E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     3.2968        4.4661        .16024E-03   -1.5345    
  32  Prefactor     14.646        46.756        .10465E-03   -1.4942    
  33  Normalizat    1.0753        .21061        .21421E-03   -.90548    
  34  Prefactor     .80859        .22668        .27337E-03   -.99412    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.44467e-08
Minuit parameter uncertainties:
  1  8.33518e-05
  2  5.14183
  3  32.1963
  4  1.91841e-06
  5  16.6093
  6  1.10939e-06
  7  8.2126e-06
  8  0.0122659
  9  30.5723
  10  30.1621
  11  1.20158e-06
  12  5.58208e-06
  13  0.000147667
  14  13.2105
  15  5.27666e-07
  16  7.19663e-06
  17  4.08108e-07
  18  8.72502
  19  4.54758
  20  5.43944e-05
  21  58.4456
  22  3.56473
  23  6.91752e-06
  24  0.635737
  25  8.58141e-07
  26  1.09893e-05
  27  25.3185
  28  36.1264
  29  9.19903e-06
  30  7.38682e-07
  31  4.46654
  32  46.8731
  33  0.210776
  34  0.22694
Done.

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

Extracting fit parameters...

4FGL J2336.6-4115
   Spectrum: LogParabola
490         norm:  1.000e-04  8.581e-07  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.086e-01  2.269e-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.075e+00  2.108e-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: 4.56e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.85e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/56140/likelihoodResults_533001601_533260801_4FGL_J2336.6-4115_daily_bin1133.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) = 5219.15924261
delta logL = -0.00270258449655

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5219.05550897
delta logL = 0.101031059001

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .42517E-01   1.0000         .10000E-03   10000.    
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0440       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82988       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=   5219.056     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      325 TOTAL
                     EDM=   .69E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .42642E-01    .10587        .28573E-03    .15457E-01
   2  alpha         5.0000        4.4057        .50000    ** at limit **
   3  Normalizat    1.0441        .21264        .21696E-03    .58783E-03
   4  Prefactor     .82980        .23016        .27020E-03    .24332E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0426422
  alpha      = 5
  Normalizat = 1.04411
  Prefactor  = 0.829801
 **********
 **   18 **HESSE 
 **********

 FCN=   5219.056     FROM HESSE     STATUS=OK            29 CALLS      354 TOTAL
                     EDM=   .71E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .42642E-01    .10206        .11429E-04   -1.5667    
   2  alpha         5.0000        4.3307        .50000        1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.0441        .21328        .43392E-04   -.91567    
   4  Prefactor     .82980        .23058        .10808E-04   -.98639    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.09829e-09
Minuit parameter uncertainties:
  1  0.102057
  2  0.0010103
  3  0.21345
  4  0.230853
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/56140': 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) = 5219.05550766
delta logL = 0.101032372244

Extracting fit parameters...

4FGL J2336.6-4115
   Spectrum: LogParabola
490         norm:  4.264e-02  1.021e-01  1.000e-04  1.000e+04 ( 1.000e-12)
491        alpha:  5.000e+00  1.010e-03  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.298e-01  2.309e-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.044e+00  2.135e-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/56140/cmap_HighResolution_533001601_533260801_4FGL_J2336.6-4115_daily_bin1133.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.85e-05', job_status='DONE', photon_flux_upper_limit='4.56e-08', time_completed='2021-09-30 02:06:56.330874', job_id='56140', GAL2='0.83', fit_tolerance='1e-08', EG2='1.04', EG='1.08', time_epoch_completed='1632992816.33', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.81', dlogl='1.01e-01', ts2='0.22', photon_index_error='0.00', photon_index='2.22' WHERE bin_id='1133' AND source_name='4FGL J2336.6-4115' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 02:06:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0258>
Subject: Job 56140: <4FGL_J2336.6-4115_daily_bin1133> in cluster <slac> Done

Job <4FGL_J2336.6-4115_daily_bin1133> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Thu Sep 30 01:50:40 2021
Job was executed on host(s) <bullet0258>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 01:50:41 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:50:41 2021
Terminated at Thu Sep 30 02:06:57 2021
Results reported at Thu Sep 30 02:06:57 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2336.6-4115_daily_bin1133 354.164 -41.2579 533001601 533260801 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 :                                   865.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             303.28 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   975 sec.
    Turnaround time :                            977 sec.

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

