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


Performing analysis on: 4FGL_J2336.6-4115_daily_bin1108
RA = 354.164, Dec = -41.2579
tmin = 526521601, tmax = 526780801
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='56101', job_status='RUN', time_executed='2021-09-30 01:50:54.609394', time_epoch_executed='1632991854.61' WHERE source_name='4FGL J2336.6-4115' and cadence='daily' and bin_id='1108'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/56101

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/56101/ft1_4FGL_J2336.6-4115_daily_bin1108.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/56101/ft2_4FGL_J2336.6-4115_daily_bin1108.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/56101/ft1_4FGL_J2336.6-4115_daily_bin1108.fits outfile=/scratch/kocevski/56101/ft1_filteredMKT_4FGL_J2336.6-4115_daily_bin1108.fits ra=354.164 dec=-41.2579 rad=12.0 tmin=526521601.0 tmax=526780801.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 4.39
user 4.15
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/56101/ft2_4FGL_J2336.6-4115_daily_bin1108.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/56101/ft1_filteredMKT_4FGL_J2336.6-4115_daily_bin1108.fits evtable="EVENTS" outfile="/scratch/kocevski/56101/ft1_filtered_4FGL_J2336.6-4115_daily_bin1108.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/56101/ft1_filtered_4FGL_J2336.6-4115_daily_bin1108.fits" evtable="EVENTS" scfile=/scratch/kocevski/56101/ft2_4FGL_J2336.6-4115_daily_bin1108.fits sctable="SC_DATA" outfile=/scratch/kocevski/56101/ltcube_526521601_526780801_4FGL_J2336.6-4115_daily_bin1108.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/56101/ft2_4FGL_J2336.6-4115_daily_bin1108.fits
.....................!
real 11.93
user 11.56
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/56101/ft1_filtered_4FGL_J2336.6-4115_daily_bin1108.fits evtable="EVENTS" scfile=/scratch/kocevski/56101/ft2_4FGL_J2336.6-4115_daily_bin1108.fits sctable="SC_DATA" expcube=/scratch/kocevski/56101/ltcube_526521601_526780801_4FGL_J2336.6-4115_daily_bin1108.fits outfile=/scratch/kocevski/56101/expmap_526521601_526780801_4FGL_J2336.6-4115_daily_bin1108.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/56101/ltcube_526521601_526780801_4FGL_J2336.6-4115_daily_bin1108.fits
.....................!
real 192.25
user 186.77
sys 5.16

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/56101/ft1_filtered_4FGL_J2336.6-4115_daily_bin1108.fits scfile=/scratch/kocevski/56101/ft2_4FGL_J2336.6-4115_daily_bin1108.fits outfile=/scratch/kocevski/56101/cmap_526521601_526780801_4FGL_J2336.6-4115_daily_bin1108.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.55
user 0.36
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.6682       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.8273       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.7699       1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.7706       1.0000         .10000E-03   10000.    
     8 'Prefactor '    28.083       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .11630E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.6598       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    63.312       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10067E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    4.4329       1.0000         .10000E-03   10000.    
    17 'norm      '    3.2024       1.0000         .10000E-03   10000.    
    18 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    5.9043       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10141E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .23973E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    2.9474       1.0000         .10000E-03   10000.    
    27 'Prefactor '    12.439       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10084E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    32.498       1.0000         .10000E-03   10000.    
    30 'Prefactor '    6.6567       1.0000         .10000E-03   10000.    
    31 'Prefactor '    1.3010       1.0000         .10000E-03   10000.    
    32 'Prefactor '    1.9054       1.0000         .10000E-03   10000.    
    33 'Normalizat'    1.0244       1.0000         .10000E-01   10.000    
    34 'Prefactor '    .83843       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=   4166.333     FROM MIGRAD    STATUS=CONVERGED    929 CALLS     4801 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.5902        370.63       -.25912E-03    .43038E-04
   2  Prefactor     .10000E-03    6.9722       -.10316E-05** at limit **
   3  Prefactor     .10000E-03    11.819        .90068E-05** at limit **
   4  Prefactor     5.8405        28.080        .27521E-05    .41352E-04
   5  Prefactor     .10000E-03    10.915       -.71271E-05** at limit **
   6  Prefactor     8.7684        9.6608       -.64055E-06    .58214E-05
   7  Prefactor     5.7721        7.0231        .51005E-06    .88510E-04
   8  Prefactor     28.072        34.282       -.34229E-05    .94297E-04
   9  Prefactor     .10000E-03    99.546        .12843E-04** at limit **
  10  Prefactor     3.6606        32.191       -.46824E-05   -.54185E-04
  11  Prefactor     .10000E-03    2.6155       -.31569E-07** at limit **
  12  Prefactor     .10000E-03    31.179        .19211E-04** at limit **
  13  Prefactor     63.315        66.779        .85085E-06    .13315E-04
  14  Prefactor     .10000E-03    7.6067        .13906E-05** at limit **
  15  norm          .10000E-03    3.7599       -.18524E-07** at limit **
  16  norm          4.4326        4.6838       -.31156E-05    .11322E-03
  17  norm          3.2021        4.1189       -.49193E-06   -.25875E-04
  18  norm          .10000E-03    4.2570       -.92894E-07** at limit **
  19  Prefactor     5.9031        5.4595        .31440E-05    .31097E-03
  20  Prefactor     .10000E-03    20.120        .80201E-05** at limit **
  21  Prefactor     .10000E-03    35.071       -.24481E-04** at limit **
  22  norm          .10000E-03    2.0588       -.41009E-07** at limit **
  23  Prefactor     .10000E-03    17.443       -.11076E-04** at limit **
  24  norm          .10000E-03    .29513       -.67840E-07** at limit **
  25  norm          .10024E-03    2.5894        .27635E-07** at limit **
  26  Prefactor     2.9475        2.4910       -.10053E-06    .69123E-04
  27  Prefactor     12.435        13.897       -.72891E-06    .47789E-04
  28  Prefactor     .10000E-03    93.605        .24889E-05** at limit **
  29  norm          32.489        36.194       -.39629E-05    .31086E-05
  30  Prefactor     6.6588        7.0259        .14863E-05    .42166E-03
  31  Prefactor     1.3005        4.3319       -.15299E-05   -.60726E-03
  32  Prefactor     1.8696        242.72       -.91339E-04   -.10502E-04
  33  Normalizat    1.0244        .20320        .28755E-05    .75099E-03
  34  Prefactor     .83847        .22239        .44806E-05    .59913E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.59015
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.84053
  Prefactor  = 0.0001
  Prefactor  = 8.76841
  Prefactor  = 5.7721
  Prefactor  = 28.0723
  Prefactor  = 0.0001
  Prefactor  = 3.66059
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 63.3151
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 4.43255
  norm       = 3.20213
  norm       = 0.0001
  Prefactor  = 5.90313
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  norm       = 0.000100239
  Prefactor  = 2.94745
  Prefactor  = 12.4351
  Prefactor  = 0.000100001
  norm       = 32.4891
  Prefactor  = 6.65879
  Prefactor  = 1.30048
  Prefactor  = 1.8696
  Normalizat = 1.02442
  Prefactor  = 0.838466
 **********
 **   18 **HESSE 
 **********

 FCN=   4166.333     FROM HESSE     STATUS=OK           736 CALLS     5537 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.5902        379.27        .32645E-02   -1.5456    
   2  Prefactor     .10000E-03    6.9731        .16644E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    11.824        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     5.8405        27.994        .16637E-03   -1.5225    
   5  Prefactor     .10000E-03    10.915        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     8.7684        9.6578        .13535E-03   -1.5116    
   7  Prefactor     5.7721        7.0062        .16023E-03   -1.5227    
   8  Prefactor     28.072        34.246        .75599E-04   -1.4648    
   9  Prefactor     .10000E-03    100.12        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     3.6606        32.229        .21115E-03   -1.5325    
  11  Prefactor     .10000E-03    2.6221        .10194E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    31.187        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     63.315        66.836        .50433E-04   -1.4115    
  14  Prefactor     .10000E-03    7.6334        .17384E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    3.7606        .12224E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          4.4326        4.6854        .13971E-03   -1.5287    
  17  norm          3.2021        4.1127        .14474E-03   -1.5350    
  18  norm          .10000E-03    4.2666        .13005E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     5.9031        5.4590        .13988E-03   -1.5222    
  20  Prefactor     .10000E-03    20.146        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    35.142        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    2.0701        .90362E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    17.743        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    .29813        .34221E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10024E-03    5.2866        .35773E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     2.9475        2.4878        .90410E-04   -1.5365    
  27  Prefactor     12.435        13.888        .11358E-03   -1.5003    
  28  Prefactor     .10000E-03    94.029        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          32.489        36.221        .70289E-04   -1.4567    
  30  Prefactor     6.6588        6.9893        .15553E-03   -1.5192    
  31  Prefactor     1.3005        4.3351        .23153E-03   -1.5480    
  32  Prefactor     1.8696        245.03        .30123E-03   -1.5434    
  33  Normalizat    1.0244        .24523        .21675E-03   -.92217    
  34  Prefactor     .83847        .26720        .26555E-03   -.98326    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.2857e-09
Minuit parameter uncertainties:
  1  49.4345
  2  3.46311e-06
  3  1.00333e-05
  4  25.5928
  5  3.21018e-05
  6  9.65956
  7  7.00717
  8  34.2698
  9  0.000402916
  10  21.7387
  11  1.08476e-05
  12  9.6807e-05
  13  66.915
  14  4.42486e-05
  15  5.32649e-06
  16  4.68576
  17  4.1131
  18  1.7245e-05
  19  5.4595
  20  5.46251e-05
  21  7.26807e-05
  22  1.00175e-05
  23  0.000283646
  24  3.23551e-06
  25  0.0022505
  26  2.48788
  27  13.8916
  28  0.000698368
  29  36.2451
  30  6.99013
  31  4.33613
  32  42.9866
  33  0.245505
  34  0.267615
Done.

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

Extracting fit parameters...

4FGL J2336.6-4115
   Spectrum: LogParabola
490         norm:  1.002e-04  2.250e-03  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.385e-01  2.676e-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.024e+00  2.455e-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.06e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.86e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/56101/likelihoodResults_526521601_526780801_4FGL_J2336.6-4115_daily_bin1108.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) = 4166.33266938
delta logL = -3.8910558942e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4165.34283174
delta logL = 0.989798725204

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .11555       1.0000         .10000E-03   10000.    
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    .92900       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90767       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=   4165.343     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      293 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .11543        3.8192        .39396E-02    .11735E-02
   2  alpha         5.0000        3.1020        .46369    ** at limit **
   3  Normalizat    .92996        .10964        .45271E-01    .37813E-05
   4  Prefactor     .90664        .11824        .45103E-01    .64275E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.11543
  alpha      = 5
  Normalizat = 0.929957
  Prefactor  = 0.906641
 **********
 **   18 **HESSE 
 **********

 FCN=   4165.343     FROM HESSE     STATUS=OK            37 CALLS      330 TOTAL
                     EDM=   .36E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .11543        .11835        .17897E-03   -1.5640    
   2  alpha         5.0000        3.1014        .50000        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .92996        .24617        .22597E-03   -.95415    
   4  Prefactor     .90664        .27117        .25626E-03   -.95909    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.58409e-10
Minuit parameter uncertainties:
  1  0.118348
  2  5.98974e-07
  3  0.246464
  4  0.271573
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/56101': 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) = 4165.34282371
delta logL = 0.989806759281

Extracting fit parameters...

4FGL J2336.6-4115
   Spectrum: LogParabola
490         norm:  1.154e-01  1.183e-01  1.000e-04  1.000e+04 ( 1.000e-12)
491        alpha:  5.000e+00  5.990e-07  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:  9.066e-01  2.716e-01  0.000e+00  1.000e+01 ( 1.000e+00)
583        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
584        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
581   Normalization:  9.300e-01  2.465e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.09
Ra Dec: 354.164 -41.258
Photon Index (Free Index): 5.00 +/- 0.00
Photon Flux (Free Index): 6.66e-08 +/- 6.79e-08
Energy Flux (Free Index): 9.13e-06 +/- 9.34e-06

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/56101/cmap_HighResolution_526521601_526780801_4FGL_J2336.6-4115_daily_bin1108.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.86e-05', comment='SUCCESS', energy_flux2='9.13e-06', dlogl='9.90e-01', photon_flux2='6.66e-08', job_status='DONE', time_completed='2021-09-30 02:03:39.564813', photon_index_error2='0.00', photon_index2='5.00', ts='-0.00', fit_tolerance='1e-08', GAL='0.84', photon_index_error='0.00', photon_flux_upper_limit='7.06e-08', energy_flux_error2='9.34e-06', EG='1.02', time_epoch_completed='1632992619.56', return_code='0', job_id='56101', GAL2='0.91', EG2='0.93', return_code2='0', photon_flux_error2='6.79e-08', ts2='2.09', photon_index='2.22' WHERE bin_id='1108' AND source_name='4FGL J2336.6-4115' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 02:03:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0052>
Subject: Job 56101: <4FGL_J2336.6-4115_daily_bin1108> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2336.6-4115_daily_bin1108 354.164 -41.2579 526521601 526780801 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 :                                   753.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             290.80 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   780 sec.
    Turnaround time :                            783 sec.

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

