/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 47 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 = 7429
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2336.6-4115_daily_bin150
RA = 354.164, Dec = -41.2579
tmin = 278208001, tmax = 278467201
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='49869', job_status='RUN', time_executed='2021-09-30 01:26:39.211693', time_epoch_executed='1632990399.21' WHERE source_name='4FGL J2336.6-4115' and cadence='daily' and bin_id='150'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/49869

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/49869/ft1_4FGL_J2336.6-4115_daily_bin150.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/49869/ft2_4FGL_J2336.6-4115_daily_bin150.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/49869/ft1_4FGL_J2336.6-4115_daily_bin150.fits outfile=/scratch/kocevski/49869/ft1_filteredMKT_4FGL_J2336.6-4115_daily_bin150.fits ra=354.164 dec=-41.2579 rad=12.0 tmin=278208001.0 tmax=278467201.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 5.39
user 5.09
sys 0.26

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/49869/ft1_filtered_4FGL_J2336.6-4115_daily_bin150.fits" evtable="EVENTS" scfile=/scratch/kocevski/49869/ft2_4FGL_J2336.6-4115_daily_bin150.fits sctable="SC_DATA" outfile=/scratch/kocevski/49869/ltcube_278208001_278467201_4FGL_J2336.6-4115_daily_bin150.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/49869/ft2_4FGL_J2336.6-4115_daily_bin150.fits
.....................!
real 11.61
user 11.22
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/49869/ft1_filtered_4FGL_J2336.6-4115_daily_bin150.fits evtable="EVENTS" scfile=/scratch/kocevski/49869/ft2_4FGL_J2336.6-4115_daily_bin150.fits sctable="SC_DATA" expcube=/scratch/kocevski/49869/ltcube_278208001_278467201_4FGL_J2336.6-4115_daily_bin150.fits outfile=/scratch/kocevski/49869/expmap_278208001_278467201_4FGL_J2336.6-4115_daily_bin150.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/49869/ltcube_278208001_278467201_4FGL_J2336.6-4115_daily_bin150.fits
.....................!
real 191.01
user 185.27
sys 5.39

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

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

This is gtbin version HEAD
real 0.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/49869/ft1_filtered_4FGL_J2336.6-4115_daily_bin150.fits scfile=/scratch/kocevski/49869/ft2_4FGL_J2336.6-4115_daily_bin150.fits outfile=/scratch/kocevski/49869/cmap_HighResolution_278208001_278467201_4FGL_J2336.6-4115_daily_bin150.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.51
user 0.36
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    12.303       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10072E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    21.905       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    45.538       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.0450       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10084E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    25.789       1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.8011       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10530E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    36.366       1.0000         .10000E-03   10000.    
    21 'Prefactor '    81.274       1.0000         .10000E-03   10000.    
    22 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    30.965       1.0000         .10000E-03   10000.    
    24 'norm      '    2.8309       1.0000         .10000E-03   10000.    
    25 'norm      '    6.0839       1.0000         .10000E-03   10000.    
    26 'Prefactor '    1.2724       1.0000         .10000E-03   10000.    
    27 'Prefactor '    17.515       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10062E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .20498E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10497E-03   1.0000         .10000E-03   10000.    
    32 'Prefactor '    27.425       1.0000         .10000E-03   10000.    
    33 'Normalizat'    .97984       1.0000         .10000E-01   10.000    
    34 'Prefactor '    .89950       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=   5389.088     FROM MIGRAD    STATUS=CONVERGED    924 CALLS     4848 TOTAL
                     EDM=   .52E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    48.280       -.13409E-05** at limit **
   2  Prefactor     12.303        24.324       -.26582E-06   -.46702E-05
   3  Prefactor     .10000E-03    28.017       -.15243E-05** at limit **
   4  Prefactor     .10000E-03    11.471       -.54718E-06** at limit **
   5  Prefactor     .10000E-03    14.160        .27294E-06** at limit **
   6  Prefactor     21.905        12.639       -.73005E-07    .12000E-04
   7  Prefactor     .10000E-03    5.7141        .15949E-06** at limit **
   8  Prefactor     .10000E-03    16.703       -.22093E-06** at limit **
   9  Prefactor     45.542        58.979        .45181E-06    .18570E-04
  10  Prefactor     .10000E-03    17.589        .88400E-06** at limit **
  11  Prefactor     3.0454        5.2524       -.37670E-06   -.24194E-03
  12  Prefactor     .10000E-03    51.592        .22703E-05** at limit **
  13  Prefactor     25.791        29.264        .17118E-07    .19060E-05
  14  Prefactor     4.8008        13.608        .65831E-05   -.21146E-03
  15  norm          .10000E-03    3.0218        .17900E-08** at limit **
  16  norm          .10000E-03    2.6260       -.13519E-06** at limit **
  17  norm          .10000E-03    1.4620        .14439E-08** at limit **
  18  norm          .10000E-03    11.314        .49694E-06** at limit **
  19  Prefactor     .10000E-03    3.5763       -.35192E-07** at limit **
  20  Prefactor     36.362        28.190       -.25928E-06   -.19439E-04
  21  Prefactor     81.267        63.749       -.41937E-06   -.66216E-04
  22  norm          .10000E-03    1.4309        .56034E-08** at limit **
  23  Prefactor     30.965        15.910       -.26980E-06   -.11350E-04
  24  norm          2.8309        1.3831       -.23281E-06   -.18242E-03
  25  norm          6.0837        3.6871       -.26924E-07   -.19241E-04
  26  Prefactor     1.2721        3.3774        .48774E-06   -.65926E-04
  27  Prefactor     17.518        22.035       -.55961E-06   -.14571E-04
  28  Prefactor     .10000E-03    126.32       -.13032E-05** at limit **
  29  norm          .10000E-03    16.140       -.72406E-06** at limit **
  30  Prefactor     .10002E-03    5.1342        .10523E-05** at limit **
  31  Prefactor     .10000E-03    3.8650        .68918E-07** at limit **
  32  Prefactor     27.384        46.972       -.45834E-05   -.29623E-03
  33  Normalizat    .97997        .19384        .16965E-05   -.26518E-03
  34  Prefactor     .89932        .20717       -.15628E-05   -.56046E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 12.3028
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 21.905
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 45.5421
  Prefactor  = 0.0001
  Prefactor  = 3.04542
  Prefactor  = 0.000100001
  Prefactor  = 25.7907
  Prefactor  = 4.80084
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 36.3621
  Prefactor  = 81.2674
  norm       = 0.0001
  Prefactor  = 30.9646
  norm       = 2.83088
  norm       = 6.08368
  Prefactor  = 1.27209
  Prefactor  = 17.5177
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100015
  Prefactor  = 0.0001
  Prefactor  = 27.3838
  Normalizat = 0.979975
  Prefactor  = 0.899316
 **********
 **   18 **HESSE 
 **********

 FCN=   5389.088     FROM HESSE     STATUS=OK           722 CALLS     5570 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    48.477        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     12.303        24.232        .11420E-03   -1.5006    
   3  Prefactor     .10000E-03    28.187        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    11.475        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    14.184        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     21.905        12.643        .85582E-04   -1.4772    
   7  Prefactor     .10000E-03    5.8674        .34233E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    16.759        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     45.542        58.963        .59414E-04   -1.4357    
  10  Prefactor     .10000E-03    17.772        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     3.0454        5.2652        .21275E-03   -1.5359    
  12  Prefactor     .10000E-03    52.533        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     25.791        29.267        .78883E-04   -1.4692    
  14  Prefactor     4.8008        13.975        .91804E-03   -1.5270    
  15  norm          .10000E-03    3.0222        .12463E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    2.6307        .11622E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    1.4623        .86678E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    11.591        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    3.5842        .13524E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     36.362        28.208        .66457E-04   -1.4501    
  21  Prefactor     81.267        64.131        .44552E-04   -1.3903    
  22  norm          .10000E-03    1.4365        .85643E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     30.965        15.875        .72003E-04   -1.4594    
  24  norm          2.8309        1.3785        .55352E-04   -1.5371    
  25  norm          6.0837        3.6868        .10560E-03   -1.5215    
  26  Prefactor     1.2721        3.2950        .19716E-03   -1.5482    
  27  Prefactor     17.518        21.775        .95700E-04   -1.4871    
  28  Prefactor     .10000E-03    126.91        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          .10000E-03    16.176        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10002E-03    25.189        .30880E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .10000E-03    3.9806        .28067E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     27.384        49.565        .76498E-04   -1.4661    
  33  Normalizat    .97997        .22652        .23370E-03   -.93704    
  34  Prefactor     .89932        .24328        .27262E-03   -.96165    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.72161e-09
Minuit parameter uncertainties:
  1  0.000334423
  2  24.251
  3  0.000266029
  4  3.13968e-05
  5  1.70492e-05
  6  12.6442
  7  1.49428e-05
  8  5.06574e-05
  9  59.039
  10  9.89462e-05
  11  5.26595
  12  0.000387254
  13  29.283
  14  13.984
  15  3.5734e-07
  16  9.55419e-06
  17  1.51882e-07
  18  3.72414e-05
  19  3.79913e-06
  20  28.2182
  21  64.1855
  22  2.39895e-07
  23  15.8774
  24  1.37849
  25  3.68691
  26  3.29543
  27  21.7851
  28  0.000295181
  29  9.35777e-05
  30  0.0012399
  31  3.73757e-06
  32  49.6394
  33  0.22674
  34  0.24357
Done.

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

Extracting fit parameters...

4FGL J2336.6-4115
   Spectrum: LogParabola
490         norm:  6.084e+00  3.687e+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.993e-01  2.436e-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.800e-01  2.267e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 11.34
Ra Dec: 354.164 -41.258
Photon Index (Fixed Index): 2.22 +/- 0.00
Photon Flux (Fixed Index): 3.98e-08 +/- 2.41e-08
Energy Flux (Fixed Index): 1.61e-05 +/- 9.77e-06

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) = 5388.19544218
delta logL = 0.892623737031

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5388.17590651
delta logL = 0.912159409712

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.3233       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.4006       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0028       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88755       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=   5388.176     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      203 TOTAL
                     EDM=   .33E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.3219        3.4307        .43548E-02   -.95484E-04
   2  alpha         1.4004        .43980        .34520       -.27275E-04
   3  Normalizat    1.0028        .18019        .46201E-01    .32231E-05
   4  Prefactor     .88752        .20306        .44846E-01    .12510E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 5.32189
  alpha      = 1.40043
  Normalizat = 1.00281
  Prefactor  = 0.887516
 **********
 **   18 **HESSE 
 **********

 FCN=   5388.176     FROM HESSE     STATUS=OK            33 CALLS      236 TOTAL
                     EDM=   .15E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.3219        3.9441        .10582E-03   -1.5247    
   2  alpha         1.4004        .54824        .14015E-01   -.45541    
   3  Normalizat    1.0028        .21309        .23139E-03   -.92936    
   4  Prefactor     .88752        .24023        .27434E-03   -.96579    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.48853e-12
Minuit parameter uncertainties:
  1  3.94432
  2  0.553836
  3  0.213266
  4  0.24052
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/49869': 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) = 5388.17590638
delta logL = 0.91215953373

Extracting fit parameters...

4FGL J2336.6-4115
   Spectrum: LogParabola
490         norm:  5.322e+00  3.944e+00  1.000e-04  1.000e+04 ( 1.000e-12)
491        alpha:  1.400e+00  5.538e-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:  8.875e-01  2.405e-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.003e+00  2.133e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 13.18
Ra Dec: 354.164 -41.258
Photon Index (Free Index): 1.40 +/- 0.55
Photon Flux (Free Index): 1.79e-08 +/- 1.50e-08
Energy Flux (Free Index): 3.33e-05 +/- 3.43e-05

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/49869/cmap_HighResolution_278208001_278467201_4FGL_J2336.6-4115_daily_bin150.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.98e-08', energy_flux2='3.33e-05', photon_flux_error='2.41e-08', dlogl='9.12e-01', energy_flux='1.61e-05', photon_flux2='1.79e-08', job_status='DONE', time_completed='2021-09-30 01:39:36.889391', photon_index_error2='0.55', photon_index2='1.40', ts='11.34', fit_tolerance='1e-08', GAL='0.90', photon_index_error='0.00', energy_flux_error2='3.43e-05', EG='0.98', time_epoch_completed='1632991176.89', return_code='0', job_id='49869', GAL2='0.89', EG2='1.00', return_code2='0', energy_flux_error='9.77e-06', photon_flux_error2='1.50e-08', ts2='13.18', photon_index='2.22' WHERE bin_id='150' AND source_name='4FGL J2336.6-4115' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 01:39:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0260>
Subject: Job 49869: <4FGL_J2336.6-4115_daily_bin150> in cluster <slac> Done

Job <4FGL_J2336.6-4115_daily_bin150> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Sep 30 01:25:43 2021
Job was executed on host(s) <bullet0260>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 01:25:44 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:25:44 2021
Terminated at Thu Sep 30 01:39:37 2021
Results reported at Thu Sep 30 01:39:37 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2336.6-4115_daily_bin150 354.164 -41.2579 278208001 278467201 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 :                                   773.39 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             281.89 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   833 sec.
    Turnaround time :                            834 sec.

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

