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


Performing analysis on: 4FGL_J2336.6-4115_daily_bin1271
RA = 354.164, Dec = -41.2579
tmin = 568771201, tmax = 569030401
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='57336', job_status='RUN', time_executed='2021-09-30 01:56:02.238440', time_epoch_executed='1632992162.24' WHERE source_name='4FGL J2336.6-4115' and cadence='daily' and bin_id='1271'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/57336

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/57336/ft1_4FGL_J2336.6-4115_daily_bin1271.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/57336/ft2_4FGL_J2336.6-4115_daily_bin1271.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/57336/ft1_4FGL_J2336.6-4115_daily_bin1271.fits outfile=/scratch/kocevski/57336/ft1_filteredMKT_4FGL_J2336.6-4115_daily_bin1271.fits ra=354.164 dec=-41.2579 rad=12.0 tmin=568771201.0 tmax=569030401.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.53
user 3.32
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/57336/ft1_filtered_4FGL_J2336.6-4115_daily_bin1271.fits" evtable="EVENTS" scfile=/scratch/kocevski/57336/ft2_4FGL_J2336.6-4115_daily_bin1271.fits sctable="SC_DATA" outfile=/scratch/kocevski/57336/ltcube_568771201_569030401_4FGL_J2336.6-4115_daily_bin1271.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/57336/ft2_4FGL_J2336.6-4115_daily_bin1271.fits
.....................!
real 11.84
user 11.50
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/57336/ft1_filtered_4FGL_J2336.6-4115_daily_bin1271.fits evtable="EVENTS" scfile=/scratch/kocevski/57336/ft2_4FGL_J2336.6-4115_daily_bin1271.fits sctable="SC_DATA" expcube=/scratch/kocevski/57336/ltcube_568771201_569030401_4FGL_J2336.6-4115_daily_bin1271.fits outfile=/scratch/kocevski/57336/expmap_568771201_569030401_4FGL_J2336.6-4115_daily_bin1271.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/57336/ltcube_568771201_569030401_4FGL_J2336.6-4115_daily_bin1271.fits
.....................!
real 190.64
user 185.26
sys 5.03

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/57336/ft1_filtered_4FGL_J2336.6-4115_daily_bin1271.fits scfile=/scratch/kocevski/57336/ft2_4FGL_J2336.6-4115_daily_bin1271.fits outfile=/scratch/kocevski/57336/cmap_568771201_569030401_4FGL_J2336.6-4115_daily_bin1271.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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/57336/ft1_filtered_4FGL_J2336.6-4115_daily_bin1271.fits scfile=/scratch/kocevski/57336/ft2_4FGL_J2336.6-4115_daily_bin1271.fits outfile=/scratch/kocevski/57336/cmap_HighResolution_568771201_569030401_4FGL_J2336.6-4115_daily_bin1271.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/57336/ft1_filtered_4FGL_J2336.6-4115_daily_bin1271.fits evtable="EVENTS" scfile=/scratch/kocevski/57336/ft2_4FGL_J2336.6-4115_daily_bin1271.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/57336/Model_4FGL_J2336.6-4115_daily_bin1271.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/57336/ft1_filtered_4FGL_J2336.6-4115_daily_bin1271.fits.....................!
real 34.20
user 32.86
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    10.293       1.0000         .10000E-03   10000.    
     3 'Prefactor '    103.75       1.0000         .10000E-03   10000.    
     4 'Prefactor '    21.104       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10438E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    17.732       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    73.565       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .19834E-02   1.0000         .10000E-03   10000.    
    14 'Prefactor '    13.882       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    11.096       1.0000         .10000E-03   10000.    
    17 'norm      '    5.9445       1.0000         .10000E-03   10000.    
    18 'norm      '    .11581E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    11.530       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .12188E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    90.973       1.0000         .10000E-03   10000.    
    22 'norm      '    7.3030       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    1.4613       1.0000         .10000E-03   10000.    
    25 'norm      '    1.2987       1.0000         .10000E-03   10000.    
    26 'Prefactor '    2.2251       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10087E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    8.9299       1.0000         .10000E-03   10000.    
    30 'Prefactor '    6.0914       1.0000         .10000E-03   10000.    
    31 'Prefactor '    1.8954       1.0000         .10000E-03   10000.    
    32 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    33 'Normalizat'    .83597       1.0000         .10000E-01   10.000    
    34 'Prefactor '    .95625       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=   3964.487     FROM MIGRAD    STATUS=CONVERGED    921 CALLS     4844 TOTAL
                     EDM=   .76E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    20.708       -.60631E-05** at limit **
   2  Prefactor     10.296        19.017       -.38887E-05   -.30638E-06
   3  Prefactor     103.76        61.551        .55555E-05    .31085E-04
   4  Prefactor     21.107        33.870       -.45032E-05    .19305E-05
   5  Prefactor     .10000E-03    40.354       -.16414E-04** at limit **
   6  Prefactor     .10000E-03    5.2159       -.12782E-06** at limit **
   7  Prefactor     .10000E-03    2.3705        .58334E-07** at limit **
   8  Prefactor     17.734        28.477       -.76513E-05    .61875E-04
   9  Prefactor     .10000E-03    18.595        .34287E-05** at limit **
  10  Prefactor     73.546        44.631       -.90350E-06    .15011E-05
  11  Prefactor     .10000E-03    7.5602       -.23318E-06** at limit **
  12  Prefactor     .10000E-03    15.440       -.32072E-05** at limit **
  13  Prefactor     .10001E-03    500.56        .12183E-04** at limit **
  14  Prefactor     13.886        22.480       -.68512E-05   -.31662E-05
  15  norm          .10000E-03    3.9579       -.27829E-07** at limit **
  16  norm          11.096        8.9340        .56020E-06    .16632E-04
  17  norm          5.9449        6.0502       -.12980E-05    .31251E-04
  18  norm          .10000E-03    15.424        .43514E-05** at limit **
  19  Prefactor     11.531        8.2476        .26423E-06    .55175E-05
  20  Prefactor     .10000E-03    48.074        .90300E-05** at limit **
  21  Prefactor     90.918        82.378       -.35625E-04   -.18875E-04
  22  norm          7.2971        5.9006        .97696E-06   -.16563E-03
  23  Prefactor     .10000E-03    9.8712       -.15170E-06** at limit **
  24  norm          1.4615        1.3891        .34950E-08   -.44640E-04
  25  norm          1.3007        4.2862       -.22845E-05   -.73210E-03
  26  Prefactor     2.2263        5.0039       -.68452E-06   -.46993E-03
  27  Prefactor     .10000E-03    24.106        .12158E-05** at limit **
  28  Prefactor     .10000E-03    32.534        .66073E-05** at limit **
  29  norm          8.9035        80.250       -.20635E-04   -.38894E-05
  30  Prefactor     6.0920        6.2471        .53665E-06   -.85720E-04
  31  Prefactor     1.8951        4.1712       -.10585E-05   -.41595E-03
  32  Prefactor     .10000E-03    33.719        .22446E-05** at limit **
  33  Normalizat    .83603        .22300        .69111E-05   -.65015E-04
  34  Prefactor     .95590        .23471        .12488E-05    .11027E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 10.296
  Prefactor  = 103.762
  Prefactor  = 21.107
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.7341
  Prefactor  = 0.0001
  Prefactor  = 73.5461
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100006
  Prefactor  = 13.886
  norm       = 0.0001
  norm       = 11.0963
  norm       = 5.94488
  norm       = 0.000100003
  Prefactor  = 11.5308
  Prefactor  = 0.0001
  Prefactor  = 90.9182
  norm       = 7.29706
  Prefactor  = 0.0001
  norm       = 1.46151
  norm       = 1.30071
  Prefactor  = 2.22628
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 8.90348
  Prefactor  = 6.09197
  Prefactor  = 1.8951
  Prefactor  = 0.0001
  Normalizat = 0.836028
  Prefactor  = 0.955897
 **********
 **   18 **HESSE 
 **********

 FCN=   3964.487     FROM HESSE     STATUS=OK           730 CALLS     5574 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    20.710        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     10.296        18.963        .12489E-03   -1.5066    
   3  Prefactor     103.76        61.481        .39477E-04   -1.3667    
   4  Prefactor     21.107        33.875        .87189E-04   -1.4789    
   5  Prefactor     .10000E-03    40.749        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    5.2418        .14043E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    2.3789        .94595E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     17.734        28.467        .95114E-04   -1.4865    
   9  Prefactor     .10000E-03    18.592        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     73.546        44.672        .46810E-04   -1.3991    
  11  Prefactor     .10000E-03    7.6142        .16902E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    15.443        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10001E-03    507.25        .20236E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     13.886        22.377        .10750E-03   -1.4963    
  15  norm          .10000E-03    3.9583        .12234E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          11.096        8.9422        .12027E-03   -1.5042    
  17  norm          5.9449        6.0593        .14691E-03   -1.5220    
  18  norm          .10000E-03    15.774        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     11.531        8.2252        .11798E-03   -1.5029    
  20  Prefactor     .10000E-03    48.130        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     90.918        82.657        .42130E-04   -1.3798    
  22  norm          7.2971        5.8579        .12161E-03   -1.5168    
  23  Prefactor     .10000E-03    9.8894        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          1.4615        1.3588        .65700E-04   -1.5466    
  25  norm          1.3007        4.2390        .21825E-03   -1.5480    
  26  Prefactor     2.2263        4.9391        .18772E-03   -1.5410    
  27  Prefactor     .10000E-03    24.164        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    32.540        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          8.9035        79.580        .13413E-03   -1.5111    
  30  Prefactor     6.0920        6.2442        .15327E-03   -1.5214    
  31  Prefactor     1.8951        4.1373        .18025E-03   -1.5433    
  32  Prefactor     .10000E-03    33.744        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Normalizat    .83603        .26090        .25163E-03   -.98746    
  34  Prefactor     .95590        .27523        .26235E-03   -.94214    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.5513e-09
Minuit parameter uncertainties:
  1  1.73706e-05
  2  18.9742
  3  61.5185
  4  33.9063
  5  0.000116833
  6  2.52933e-05
  7  1.03557e-05
  8  28.4886
  9  9.17611e-06
  10  44.692
  11  6.14308e-05
  12  4.43383e-06
  13  0.0035649
  14  22.3908
  15  2.72726e-06
  16  8.94324
  17  6.05997
  18  0.000423474
  19  8.22596
  20  0.000209735
  21  82.7616
  22  5.85837
  23  2.8295e-05
  24  1.35881
  25  4.24002
  26  4.94001
  27  4.53912e-05
  28  1.99003e-05
  29  53.3312
  30  6.24488
  31  4.13795
  32  1.63946e-06
  33  0.261294
  34  0.27563
Done.

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

Extracting fit parameters...

4FGL J2336.6-4115
   Spectrum: LogParabola
490         norm:  1.301e+00  4.240e+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:  9.559e-01  2.756e-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:  8.360e-01  2.613e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/57336/likelihoodResults_568771201_569030401_4FGL_J2336.6-4115_daily_bin1271.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) = 3964.19017065
delta logL = 0.296599116355

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3964.17228386
delta logL = 0.314485911847

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .92072       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.5201       1.0000          .0000       5.0000    
     3 'Normalizat'    .80132       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97681       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=   3964.172     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      206 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .92039        25.998        .12883E-01    .60604E-03
   2  alpha         3.5206        4.1591        .46639        .31612E-04
   3  Normalizat    .80128        .44198E-01    .43628E-01    .10729E-04
   4  Prefactor     .97688        .48942E-01    .45977E-01    .29220E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.920388
  alpha      = 3.52064
  Normalizat = 0.801275
  Prefactor  = 0.976875
 **********
 **   18 **HESSE 
 **********

 FCN=   3964.172     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      241 TOTAL
                     EDM=   .90E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .92039        79.250        .77861E-03   -1.5516    
   2  alpha         3.5206        3.2357        .18284E-01    .42054    
   3  Normalizat    .80128        .26804        .25636E-03   -1.0002    
   4  Prefactor     .97688        .29734        .25966E-03   -.93504    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.96159e-11
Minuit parameter uncertainties:
  1  17.1035
  2  11.8961
  3  0.268478
  4  0.297834
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/57336': 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): 102
logL (Free Index) = 3964.17228375
delta logL = 0.314486014715

Extracting fit parameters...

4FGL J2336.6-4115
   Spectrum: LogParabola
490         norm:  9.204e-01  1.710e+01  1.000e-04  1.000e+04 ( 1.000e-12)
491        alpha:  3.521e+00  1.190e+01  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.769e-01  2.978e-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:  8.013e-01  2.685e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.12
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/57336/cmap_HighResolution_568771201_569030401_4FGL_J2336.6-4115_daily_bin1271.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.48e-05', job_status='DONE', photon_flux_upper_limit='8.60e-08', time_completed='2021-09-30 02:08:06.512012', job_id='57336', GAL2='0.98', fit_tolerance='1e-08', EG2='0.80', EG='0.84', time_epoch_completed='1632992886.51', return_code2='102', ts='0.12', comment='SUCCESS', return_code='0', GAL='0.96', dlogl='3.14e-01', ts2='0.77', photon_index_error='0.00', photon_index='2.22' WHERE bin_id='1271' AND source_name='4FGL J2336.6-4115' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 02:08:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0225>
Subject: Job 57336: <4FGL_J2336.6-4115_daily_bin1271> in cluster <slac> Done

Job <4FGL_J2336.6-4115_daily_bin1271> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Sep 30 01:55:23 2021
Job was executed on host(s) <bullet0225>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 01:55:24 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep 30 01:55:24 2021
Terminated at Thu Sep 30 02:08:07 2021
Results reported at Thu Sep 30 02:08:07 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2336.6-4115_daily_bin1271 354.164 -41.2579 568771201 569030401 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 :                                   715.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             310.15 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   762 sec.
    Turnaround time :                            764 sec.

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

