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


Performing analysis on: 4FGL_J2336.6-4115_daily_bin1571
RA = 354.164, Dec = -41.2579
tmin = 646531201, tmax = 646790401
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='58774', job_status='RUN', time_executed='2021-09-30 02:02:07.833487', time_epoch_executed='1632992527.83' WHERE source_name='4FGL J2336.6-4115' and cadence='daily' and bin_id='1571'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/58774

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/58774/ft1_4FGL_J2336.6-4115_daily_bin1571.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/58774/ft2_4FGL_J2336.6-4115_daily_bin1571.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/58774/ft1_4FGL_J2336.6-4115_daily_bin1571.fits outfile=/scratch/kocevski/58774/ft1_filteredMKT_4FGL_J2336.6-4115_daily_bin1571.fits ra=354.164 dec=-41.2579 rad=12.0 tmin=646531201.0 tmax=646790401.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.62
user 3.39
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/58774/ft2_4FGL_J2336.6-4115_daily_bin1571.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/58774/ft1_filteredMKT_4FGL_J2336.6-4115_daily_bin1571.fits evtable="EVENTS" outfile="/scratch/kocevski/58774/ft1_filtered_4FGL_J2336.6-4115_daily_bin1571.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.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/58774/ft1_filtered_4FGL_J2336.6-4115_daily_bin1571.fits" evtable="EVENTS" scfile=/scratch/kocevski/58774/ft2_4FGL_J2336.6-4115_daily_bin1571.fits sctable="SC_DATA" outfile=/scratch/kocevski/58774/ltcube_646531201_646790401_4FGL_J2336.6-4115_daily_bin1571.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/58774/ft2_4FGL_J2336.6-4115_daily_bin1571.fits
.....................!
real 11.72
user 11.39
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/58774/ft1_filtered_4FGL_J2336.6-4115_daily_bin1571.fits evtable="EVENTS" scfile=/scratch/kocevski/58774/ft2_4FGL_J2336.6-4115_daily_bin1571.fits sctable="SC_DATA" expcube=/scratch/kocevski/58774/ltcube_646531201_646790401_4FGL_J2336.6-4115_daily_bin1571.fits outfile=/scratch/kocevski/58774/expmap_646531201_646790401_4FGL_J2336.6-4115_daily_bin1571.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/58774/ltcube_646531201_646790401_4FGL_J2336.6-4115_daily_bin1571.fits
.....................!
real 189.94
user 184.85
sys 4.73

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/58774/ft1_filtered_4FGL_J2336.6-4115_daily_bin1571.fits scfile=/scratch/kocevski/58774/ft2_4FGL_J2336.6-4115_daily_bin1571.fits outfile=/scratch/kocevski/58774/cmap_646531201_646790401_4FGL_J2336.6-4115_daily_bin1571.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/58774/ft1_filtered_4FGL_J2336.6-4115_daily_bin1571.fits scfile=/scratch/kocevski/58774/ft2_4FGL_J2336.6-4115_daily_bin1571.fits outfile=/scratch/kocevski/58774/cmap_HighResolution_646531201_646790401_4FGL_J2336.6-4115_daily_bin1571.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=354.164 yref=-41.2579 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/58774/ft1_filtered_4FGL_J2336.6-4115_daily_bin1571.fits evtable="EVENTS" scfile=/scratch/kocevski/58774/ft2_4FGL_J2336.6-4115_daily_bin1571.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/58774/Model_4FGL_J2336.6-4115_daily_bin1571.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/58774/ft1_filtered_4FGL_J2336.6-4115_daily_bin1571.fits.....................!
real 36.57
user 35.23
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    53.204       1.0000         .10000E-03   10000.    
     2 'Prefactor '    22.873       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    21.720       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.7499       1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.6629       1.0000         .10000E-03   10000.    
     8 'Prefactor '    20.366       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10076E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    8.4583       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    23.650       1.0000         .10000E-03   10000.    
    14 'Prefactor '    31.280       1.0000         .10000E-03   10000.    
    15 'norm      '    11.700       1.0000         .10000E-03   10000.    
    16 'norm      '    .62368       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    3.4837       1.0000         .10000E-03   10000.    
    19 'Prefactor '    18.574       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10115E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    35.770       1.0000         .10000E-03   10000.    
    22 'norm      '    .14270E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    5.1443       1.0000         .10000E-03   10000.    
    24 'norm      '    1.9993       1.0000         .10000E-03   10000.    
    25 'norm      '    1.8743       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    51.398       1.0000         .10000E-03   10000.    
    29 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    4.5824       1.0000         .10000E-03   10000.    
    31 'Prefactor '    2.1303       1.0000         .10000E-03   10000.    
    32 'Prefactor '    .16321E-03   1.0000         .10000E-03   10000.    
    33 'Normalizat'    1.1914       1.0000         .10000E-01   10.000    
    34 'Prefactor '    .66238       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=   4489.253     FROM MIGRAD    STATUS=CONVERGED    920 CALLS     4113 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     53.188        56.335       -.15518E-04    .39272E-04
   2  Prefactor     22.872        22.351       -.24398E-05    .54496E-04
   3  Prefactor     .10000E-03    14.707       -.21800E-05** at limit **
   4  Prefactor     21.718        22.488        .72281E-06    .61098E-04
   5  Prefactor     .10000E-03    9.4283       -.43999E-07** at limit **
   6  Prefactor     3.7485        6.6634       -.16243E-05   -.21138E-03
   7  Prefactor     3.6624        4.2730       -.10574E-05   -.48670E-04
   8  Prefactor     20.363        25.992       -.32046E-05    .31527E-04
   9  Prefactor     .10000E-03    116.25        .31863E-04** at limit **
  10  Prefactor     .10000E-03    14.272        .45230E-05** at limit **
  11  Prefactor     8.4539        10.054       -.27726E-05   -.37080E-04
  12  Prefactor     .10000E-03    15.197       -.36149E-05** at limit **
  13  Prefactor     23.509        72.170       -.20784E-03    .58034E-04
  14  Prefactor     31.283        20.411       -.11718E-05    .17436E-03
  15  norm          11.699        10.787       -.95247E-06    .35205E-04
  16  norm          .63093        8.1961       -.34434E-05    .20881E-03
  17  norm          .10000E-03    2.2019       -.81985E-07** at limit **
  18  norm          3.4533        15.378       -.48218E-04   -.22961E-03
  19  Prefactor     18.606        14.156       -.26646E-05    .37516E-03
  20  Prefactor     .10001E-03    130.88        .34143E-04** at limit **
  21  Prefactor     35.834        78.217        .80494E-04    .20168E-03
  22  norm          .10000E-03    2.8957       -.53779E-06** at limit **
  23  Prefactor     5.0692        28.879       -.84584E-07   -.32798E-06
  24  norm          2.0000        1.4697       -.29579E-06    .48055E-03
  25  norm          1.8766        3.7065       -.21570E-05   -.47619E-03
  26  Prefactor     .10000E-03    .90317       -.11183E-06** at limit **
  27  Prefactor     .10000E-03    25.718        .26210E-05** at limit **
  28  Prefactor     51.258        83.666       -.15499E-03    .59229E-04
  29  norm          .10000E-03    9.7259       -.36652E-06** at limit **
  30  Prefactor     4.5829        6.4910       -.22780E-05    .20198E-03
  31  Prefactor     2.1309        3.2012       -.15886E-05   -.25308E-03
  32  Prefactor     .10005E-03    95.708       -.26713E-04** at limit **
  33  Normalizat    1.1913        .21903        .13988E-04    .24521E-03
  34  Prefactor     .66273        .22157        .14263E-04    .45428E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 53.1885
  Prefactor  = 22.8716
  Prefactor  = 0.0001
  Prefactor  = 21.7185
  Prefactor  = 0.0001
  Prefactor  = 3.74853
  Prefactor  = 3.66238
  Prefactor  = 20.3625
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 8.45388
  Prefactor  = 0.0001
  Prefactor  = 23.5094
  Prefactor  = 31.283
  norm       = 11.6994
  norm       = 0.630925
  norm       = 0.0001
  norm       = 3.4533
  Prefactor  = 18.606
  Prefactor  = 0.000100012
  Prefactor  = 35.8342
  norm       = 0.000100001
  Prefactor  = 5.06923
  norm       = 1.99999
  norm       = 1.87662
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 51.258
  norm       = 0.0001
  Prefactor  = 4.58293
  Prefactor  = 2.13085
  Prefactor  = 0.000100052
  Normalizat = 1.19131
  Prefactor  = 0.662725
 **********
 **   18 **HESSE 
 **********

 FCN=   4489.253     FROM HESSE     STATUS=OK           734 CALLS     4847 TOTAL
                     EDM=   .42E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     53.188        56.387        .54988E-04   -1.4248    
   2  Prefactor     22.872        22.328        .83753E-04   -1.4751    
   3  Prefactor     .10000E-03    14.718        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     21.718        22.487        .85945E-04   -1.4776    
   5  Prefactor     .10000E-03    9.4321        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     3.7485        6.6514        .20850E-03   -1.5321    
   7  Prefactor     3.6624        4.2617        .13914E-03   -1.5325    
   8  Prefactor     20.363        25.969        .88753E-04   -1.4805    
   9  Prefactor     .10000E-03    116.72        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    14.292        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     8.4539        10.054        .13784E-03   -1.5126    
  12  Prefactor     .10000E-03    15.199        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     23.509        72.208        .82368E-04   -1.4738    
  14  Prefactor     31.283        20.397        .71641E-04   -1.4589    
  15  norm          11.699        10.788        .11712E-03   -1.5024    
  16  norm          .63093        18.958        .35045E-02   -1.5549    
  17  norm          .10000E-03    2.2080        .97081E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          3.4533        15.239        .21664E-03   -1.5336    
  19  Prefactor     18.606        13.827        .92933E-04   -1.4845    
  20  Prefactor     .10001E-03    132.76        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     35.834        78.478        .67007E-04   -1.4510    
  22  norm          .10000E-03    5.0429        .21601E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     5.0692        27.711        .17725E-03   -1.5258    
  24  norm          2.0000        1.4602        .62097E-04   -1.5425    
  25  norm          1.8766        3.6124        .17098E-03   -1.5434    
  26  Prefactor     .10000E-03    .90514        .62177E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    26.025        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     51.258        83.670        .27970E-03   -1.4275    
  29  norm          .10000E-03    9.7258        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     4.5829        6.4888        .18804E-03   -1.5280    
  31  Prefactor     2.1309        3.1772        .14031E-03   -1.5416    
  32  Prefactor     .10005E-03    96.073        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Normalizat    1.1913        .25658        .21941E-03   -.86872    
  34  Prefactor     .66273        .25675        .30877E-03   -1.0501    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.22005e-09
Minuit parameter uncertainties:
  1  56.4435
  2  22.3362
  3  8.0768e-05
  4  22.4953
  5  3.75131e-05
  6  6.65267
  7  4.26203
  8  25.9829
  9  0.00124555
  10  1.84301e-06
  11  10.0563
  12  3.65167e-05
  13  72.4787
  14  20.4016
  15  10.7902
  16  6.91889
  17  1.27103e-05
  18  14.5144
  19  13.8296
  20  0.00255454
  21  78.7054
  22  0.000121143
  23  23.721
  24  1.46019
  25  3.61279
  26  9.68592e-06
  27  0.000532553
  28  83.8622
  29  4.97823e-06
  30  6.48983
  31  3.17749
  32  0.00449629
  33  0.256856
  34  0.257204
Done.

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

Extracting fit parameters...

4FGL J2336.6-4115
   Spectrum: LogParabola
490         norm:  1.877e+00  3.613e+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.627e-01  2.572e-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.191e+00  2.569e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/58774/likelihoodResults_646531201_646790401_4FGL_J2336.6-4115_daily_bin1571.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) = 4488.99178234
delta logL = 0.261566770904

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4488.9680838
delta logL = 0.285265310897

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4488.968     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      206 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.3245        37.509        .95268E-02    .46322E-03
   2  alpha         3.2772        3.8680        .43983        .28358E-04
   3  Normalizat    1.1603        .51282E-01    .35940E-01   -.41795E-04
   4  Prefactor     .68068        .52326E-01    .68891E-01   -.76834E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.32447
  alpha      = 3.27723
  Normalizat = 1.1603
  Prefactor  = 0.680681
 **********
 **   18 **HESSE 
 **********

 FCN=   4488.968     FROM HESSE     STATUS=OK            33 CALLS      239 TOTAL
                     EDM=   .84E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.3245        3.2251        .89737E-04   -1.5478    
   2  alpha         3.2772        1.6240        .18698E-01    .31613    
   3  Normalizat    1.1603        .24231        .22190E-03   -.87839    
   4  Prefactor     .68068        .25666        .30486E-03   -1.0429    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.39888e-09
Minuit parameter uncertainties:
  1  3.22556
  2  1.78797
  3  0.242545
  4  0.25711
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/58774': 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) = 4488.9680783
delta logL = 0.285270812634

Extracting fit parameters...

4FGL J2336.6-4115
   Spectrum: LogParabola
490         norm:  1.324e+00  3.226e+00  1.000e-04  1.000e+04 ( 1.000e-12)
491        alpha:  3.277e+00  1.788e+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.807e-01  2.571e-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.160e+00  2.425e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.37
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/58774/cmap_HighResolution_646531201_646790401_4FGL_J2336.6-4115_daily_bin1571.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.20e-05', job_status='DONE', photon_flux_upper_limit='7.91e-08', time_completed='2021-09-30 02:14:32.656805', job_id='58774', GAL2='0.68', fit_tolerance='1e-08', EG2='1.16', EG='1.19', time_epoch_completed='1632993272.66', return_code2='0', ts='0.37', comment='SUCCESS', return_code='0', GAL='0.66', dlogl='2.85e-01', ts2='0.94', photon_index_error='0.00', photon_index='2.22' WHERE bin_id='1571' AND source_name='4FGL J2336.6-4115' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 02:14:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0210>
Subject: Job 58774: <4FGL_J2336.6-4115_daily_bin1571> in cluster <slac> Done

Job <4FGL_J2336.6-4115_daily_bin1571> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Thu Sep 30 02:00:38 2021
Job was executed on host(s) <bullet0210>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 02:00:40 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep 30 02:00:40 2021
Terminated at Thu Sep 30 02:14:33 2021
Results reported at Thu Sep 30 02:14:33 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2336.6-4115_daily_bin1571 354.164 -41.2579 646531201 646790401 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 :                                   741.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             306.64 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   832 sec.
    Turnaround time :                            835 sec.

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

