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


Performing analysis on: 4FGL_J2336.6-4115_daily_bin1164
RA = 354.164, Dec = -41.2579
tmin = 541036801, tmax = 541296001
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='56189', job_status='RUN', time_executed='2021-09-30 01:51:17.033748', time_epoch_executed='1632991877.03' WHERE source_name='4FGL J2336.6-4115' and cadence='daily' and bin_id='1164'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/56189

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/56189/ft1_4FGL_J2336.6-4115_daily_bin1164.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/56189/ft2_4FGL_J2336.6-4115_daily_bin1164.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/56189/ft1_4FGL_J2336.6-4115_daily_bin1164.fits outfile=/scratch/kocevski/56189/ft1_filteredMKT_4FGL_J2336.6-4115_daily_bin1164.fits ra=354.164 dec=-41.2579 rad=12.0 tmin=541036801.0 tmax=541296001.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.75
user 3.50
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/56189/ft2_4FGL_J2336.6-4115_daily_bin1164.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/56189/ft1_filteredMKT_4FGL_J2336.6-4115_daily_bin1164.fits evtable="EVENTS" outfile="/scratch/kocevski/56189/ft1_filtered_4FGL_J2336.6-4115_daily_bin1164.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/56189/ft1_filtered_4FGL_J2336.6-4115_daily_bin1164.fits" evtable="EVENTS" scfile=/scratch/kocevski/56189/ft2_4FGL_J2336.6-4115_daily_bin1164.fits sctable="SC_DATA" outfile=/scratch/kocevski/56189/ltcube_541036801_541296001_4FGL_J2336.6-4115_daily_bin1164.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/56189/ft2_4FGL_J2336.6-4115_daily_bin1164.fits
.....................!
real 11.58
user 11.25
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/56189/ft1_filtered_4FGL_J2336.6-4115_daily_bin1164.fits evtable="EVENTS" scfile=/scratch/kocevski/56189/ft2_4FGL_J2336.6-4115_daily_bin1164.fits sctable="SC_DATA" expcube=/scratch/kocevski/56189/ltcube_541036801_541296001_4FGL_J2336.6-4115_daily_bin1164.fits outfile=/scratch/kocevski/56189/expmap_541036801_541296001_4FGL_J2336.6-4115_daily_bin1164.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/56189/ltcube_541036801_541296001_4FGL_J2336.6-4115_daily_bin1164.fits
.....................!
real 190.29
user 185.47
sys 4.48

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

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

This is gtbin version HEAD
real 0.53
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/56189/ft1_filtered_4FGL_J2336.6-4115_daily_bin1164.fits evtable="EVENTS" scfile=/scratch/kocevski/56189/ft2_4FGL_J2336.6-4115_daily_bin1164.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/56189/Model_4FGL_J2336.6-4115_daily_bin1164.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/56189/ft1_filtered_4FGL_J2336.6-4115_daily_bin1164.fits.....................!
real 31.85
user 30.56
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    18.321       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    74.931       1.0000         .10000E-03   10000.    
     4 'Prefactor '    22.085       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    21.028       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    44.055       1.0000         .10000E-03   10000.    
    13 'Prefactor '    55.930       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10169E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    17.952       1.0000         .10000E-03   10000.    
    20 'Prefactor '    11.893       1.0000         .10000E-03   10000.    
    21 'Prefactor '    124.23       1.0000         .10000E-03   10000.    
    22 'norm      '    .10160E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    12.882       1.0000         .10000E-03   10000.    
    24 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    2.9336       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .49859E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10209E-03   1.0000         .10000E-03   10000.    
    32 'Prefactor '    10.539       1.0000         .10000E-03   10000.    
    33 'Normalizat'    .88869       1.0000         .10000E-01   10.000    
    34 'Prefactor '    .88450       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=   3581.734     FROM MIGRAD    STATUS=CONVERGED    950 CALLS     4897 TOTAL
                     EDM=   .17E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     18.330        54.211       -.58581E-06    .23493E-05
   2  Prefactor     .10000E-03    9.9653        .14580E-06** at limit **
   3  Prefactor     74.937        47.677       -.24178E-06   -.64949E-05
   4  Prefactor     22.095        43.758       -.70978E-06    .60466E-05
   5  Prefactor     .10000E-03    13.159        .33130E-06** at limit **
   6  Prefactor     .10000E-03    2.2545        .57349E-08** at limit **
   7  Prefactor     .10000E-03    2.4209        .43771E-07** at limit **
   8  Prefactor     .10000E-03    12.306       -.72852E-06** at limit **
   9  Prefactor     .10000E-03    19.159       -.75632E-06** at limit **
  10  Prefactor     21.034        20.433       -.22531E-06    .24187E-05
  11  Prefactor     .10000E-03    4.7447        .79952E-07** at limit **
  12  Prefactor     44.070        43.423       -.27154E-06   -.52797E-06
  13  Prefactor     55.936        82.891       -.47316E-06    .10290E-05
  14  Prefactor     .10000E-03    45.024        .84126E-06** at limit **
  15  norm          .10000E-03    5.8011       -.65473E-07** at limit **
  16  norm          .10000E-03    3.8827        .93265E-07** at limit **
  17  norm          .10000E-03    3.6601        .20211E-07** at limit **
  18  norm          .10000E-03    25.039       -.41678E-05** at limit **
  19  Prefactor     17.954        15.830        .19221E-06   -.57101E-04
  20  Prefactor     11.783        67.255        .45541E-05    .35659E-04
  21  Prefactor     124.30        91.237       -.85671E-06   -.81774E-06
  22  norm          .10000E-03    4.8779       -.25367E-06** at limit **
  23  Prefactor     12.880        32.991        .30397E-06   -.20702E-04
  24  norm          .10000E-03    .72433        .32496E-06** at limit **
  25  norm          2.9361        6.5973        .25963E-06    .52455E-04
  26  Prefactor     .10000E-03    1.5763        .58210E-08** at limit **
  27  Prefactor     .10000E-03    7.7134       -.61585E-07** at limit **
  28  Prefactor     .10000E-03    17.411        .26793E-06** at limit **
  29  norm          .10000E-03    13.328        .49503E-06** at limit **
  30  Prefactor     .10000E-03    101.34        .55077E-05** at limit **
  31  Prefactor     .10000E-03    5.9661       -.32456E-07** at limit **
  32  Prefactor     10.543        33.139       -.67047E-06    .18561E-05
  33  Normalizat    .88816        .24282        .33759E-05   -.18044E-04
  34  Prefactor     .88513        .24746       -.29351E-05    .93741E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 18.3304
  Prefactor  = 0.0001
  Prefactor  = 74.9371
  Prefactor  = 22.0948
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 21.0337
  Prefactor  = 0.0001
  Prefactor  = 44.0705
  Prefactor  = 55.936
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.000100002
  Prefactor  = 17.9535
  Prefactor  = 11.7834
  Prefactor  = 124.295
  norm       = 0.0001
  Prefactor  = 12.8799
  norm       = 0.0001
  norm       = 2.93615
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.5428
  Normalizat = 0.888159
  Prefactor  = 0.885129
 **********
 **   18 **HESSE 
 **********

 FCN=   3581.734     FROM HESSE     STATUS=OK           726 CALLS     5623 TOTAL
                     EDM=   .35E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     18.330        54.267        .93571E-04   -1.4851    
   2  Prefactor     .10000E-03    9.9750        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     74.937        47.682        .46384E-04   -1.3974    
   4  Prefactor     22.095        43.685        .85232E-04   -1.4768    
   5  Prefactor     .10000E-03    13.175        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    2.2549        .87764E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    2.4303        .90922E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    12.341        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    19.182        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     21.034        20.433        .87347E-04   -1.4790    
  11  Prefactor     .10000E-03    4.7752        .12730E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     44.070        43.425        .60401E-04   -1.4379    
  13  Prefactor     55.936        82.863        .53638E-04   -1.4211    
  14  Prefactor     .10000E-03    45.932        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    5.8038        .14080E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    3.8880        .11515E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    3.6849        .11193E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    26.186        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     17.954        15.711        .94528E-04   -1.4860    
  20  Prefactor     11.783        69.266        .11616E-03   -1.5021    
  21  Prefactor     124.30        90.866        .18057E-03   -1.3474    
  22  norm          .10000E-03    5.1158        .13090E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     12.880        32.915        .11160E-03   -1.4990    
  24  norm          .10000E-03    .92846        .94147E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          2.9361        6.4573        .18960E-03   -1.5365    
  26  Prefactor     .10000E-03    1.6206        .14671E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    7.7202        .16235E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    17.413        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          .10000E-03    13.338        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    98.034        .25679E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .10000E-03    6.2244        .28510E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     10.543        32.991        .12342E-03   -1.5058    
  33  Normalizat    .88816        .27104        .23253E-03   -.96877    
  34  Prefactor     .88513        .27719        .25503E-03   -.96663    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.53635e-10
Minuit parameter uncertainties:
  1  54.4141
  2  3.65404e-06
  3  47.7063
  4  43.748
  5  2.63163e-06
  6  1.29686e-07
  7  4.02975e-07
  8  7.6369e-06
  9  8.77076e-06
  10  20.4398
  11  9.49996e-07
  12  43.4565
  13  83.0342
  14  4.74247e-05
  15  3.58245e-06
  16  4.54191e-07
  17  4.4546e-06
  18  0.00045484
  19  15.7149
  20  57.2382
  21  90.9686
  22  6.69339e-06
  23  32.9615
  24  1.99773e-05
  25  6.45879
  26  1.024e-06
  27  6.50523e-06
  28  6.16763e-07
  29  5.41054e-06
  30  1.11908e-05
  31  2.48285e-05
  32  33.0477
  33  0.271456
  34  0.277628
Done.

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

Extracting fit parameters...

4FGL J2336.6-4115
   Spectrum: LogParabola
490         norm:  2.936e+00  6.459e+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:  8.851e-01  2.776e-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.882e-01  2.715e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.32
Ra Dec: 354.164 -41.258
Photon Flux Upper Limit: 1.11e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.48e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/56189/likelihoodResults_541036801_541296001_4FGL_J2336.6-4115_daily_bin1164.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) = 3581.58380316
delta logL = 0.149768255058

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3581.58085585
delta logL = 0.152715564545

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3581.581     FROM MIGRAD    STATUS=CONVERGED     79 CALLS      233 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.7219        4.9364        .12952E-03    .42186E-03
   2  alpha         2.7973        1.0709        .15434E-01    .41676E-04
   3  Normalizat    .86970        .25286        .23467E-03   -.17033E-03
   4  Prefactor     .89379        .27526        .25381E-03   -.17071E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.72188
  alpha      = 2.79727
  Normalizat = 0.869699
  Prefactor  = 0.893793
 **********
 **   18 **HESSE 
 **********

 FCN=   3581.581     FROM HESSE     STATUS=OK            25 CALLS      258 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.7219        4.6514        .51807E-05   -1.5378    
   2  alpha         2.7973        1.0120        .61736E-03    .11919    
   3  Normalizat    .86970        .25305        .46934E-04   -.97533    
   4  Prefactor     .89379        .27534        .50761E-04   -.96358    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.78564e-10
Minuit parameter uncertainties:
  1  4.65203
  2  1.04242
  3  0.253392
  4  0.275765
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/56189': 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) = 3581.58085583
delta logL = 0.152715580612

Extracting fit parameters...

4FGL J2336.6-4115
   Spectrum: LogParabola
490         norm:  2.722e+00  4.652e+00  1.000e-04  1.000e+04 ( 1.000e-12)
491        alpha:  2.797e+00  1.042e+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:  8.938e-01  2.758e-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.697e-01  2.534e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.32
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/56189/cmap_HighResolution_541036801_541296001_4FGL_J2336.6-4115_daily_bin1164.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.48e-05', job_status='DONE', photon_flux_upper_limit='1.11e-07', time_completed='2021-09-30 02:03:02.339082', job_id='56189', GAL2='0.89', fit_tolerance='1e-08', EG2='0.87', EG='0.89', time_epoch_completed='1632992582.34', return_code2='0', ts='0.32', comment='SUCCESS', return_code='0', GAL='0.89', dlogl='1.53e-01', ts2='0.63', photon_index_error='0.00', photon_index='2.22' WHERE bin_id='1164' AND source_name='4FGL J2336.6-4115' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 02:03:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0237>
Subject: Job 56189: <4FGL_J2336.6-4115_daily_bin1164> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2336.6-4115_daily_bin1164 354.164 -41.2579 541036801 541296001 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 :                                   686.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             308.64 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   735 sec.
    Turnaround time :                            737 sec.

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

