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


Performing analysis on: 4FGL_J2336.6-4115_daily_bin1532
RA = 354.164, Dec = -41.2579
tmin = 636422401, tmax = 636681601
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='58710', job_status='RUN', time_executed='2021-09-30 02:01:12.601234', time_epoch_executed='1632992472.6' WHERE source_name='4FGL J2336.6-4115' and cadence='daily' and bin_id='1532'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/58710

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/58710/ft1_4FGL_J2336.6-4115_daily_bin1532.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/58710/ft2_4FGL_J2336.6-4115_daily_bin1532.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/58710/ft1_4FGL_J2336.6-4115_daily_bin1532.fits outfile=/scratch/kocevski/58710/ft1_filteredMKT_4FGL_J2336.6-4115_daily_bin1532.fits ra=354.164 dec=-41.2579 rad=12.0 tmin=636422401.0 tmax=636681601.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.59
user 3.37
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/58710/ft2_4FGL_J2336.6-4115_daily_bin1532.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/58710/ft1_filteredMKT_4FGL_J2336.6-4115_daily_bin1532.fits evtable="EVENTS" outfile="/scratch/kocevski/58710/ft1_filtered_4FGL_J2336.6-4115_daily_bin1532.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/58710/ft1_filtered_4FGL_J2336.6-4115_daily_bin1532.fits" evtable="EVENTS" scfile=/scratch/kocevski/58710/ft2_4FGL_J2336.6-4115_daily_bin1532.fits sctable="SC_DATA" outfile=/scratch/kocevski/58710/ltcube_636422401_636681601_4FGL_J2336.6-4115_daily_bin1532.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/58710/ft2_4FGL_J2336.6-4115_daily_bin1532.fits
.....................!
real 11.71
user 11.37
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/58710/ft1_filtered_4FGL_J2336.6-4115_daily_bin1532.fits evtable="EVENTS" scfile=/scratch/kocevski/58710/ft2_4FGL_J2336.6-4115_daily_bin1532.fits sctable="SC_DATA" expcube=/scratch/kocevski/58710/ltcube_636422401_636681601_4FGL_J2336.6-4115_daily_bin1532.fits outfile=/scratch/kocevski/58710/expmap_636422401_636681601_4FGL_J2336.6-4115_daily_bin1532.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/58710/ltcube_636422401_636681601_4FGL_J2336.6-4115_daily_bin1532.fits
.....................!
real 191.01
user 185.34
sys 5.32

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/58710/ft1_filtered_4FGL_J2336.6-4115_daily_bin1532.fits scfile=/scratch/kocevski/58710/ft2_4FGL_J2336.6-4115_daily_bin1532.fits outfile=/scratch/kocevski/58710/cmap_636422401_636681601_4FGL_J2336.6-4115_daily_bin1532.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.52
user 0.37
sys 0.15

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

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

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/58710/ft1_filtered_4FGL_J2336.6-4115_daily_bin1532.fits evtable="EVENTS" scfile=/scratch/kocevski/58710/ft2_4FGL_J2336.6-4115_daily_bin1532.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/58710/Model_4FGL_J2336.6-4115_daily_bin1532.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/58710/ft1_filtered_4FGL_J2336.6-4115_daily_bin1532.fits.....................!
real 36.38
user 35.10
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    60.406       1.0000         .10000E-03   10000.    
     2 'Prefactor '    23.329       1.0000         .10000E-03   10000.    
     3 'Prefactor '    29.058       1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.1376       1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.1205       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10404E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    88.918       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    21.311       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    7.0348       1.0000         .10000E-03   10000.    
    19 'Prefactor '    7.3911       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    84.659       1.0000         .10000E-03   10000.    
    22 'norm      '    5.3119       1.0000         .10000E-03   10000.    
    23 'Prefactor '    4.3144       1.0000         .10000E-03   10000.    
    24 'norm      '    2.4880       1.0000         .10000E-03   10000.    
    25 'norm      '    .17887       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10318E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    89.138       1.0000         .10000E-03   10000.    
    29 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10196E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .26813E-02   1.0000         .10000E-03   10000.    
    32 'Prefactor '    34.271       1.0000         .10000E-03   10000.    
    33 'Normalizat'    1.0056       1.0000         .10000E-01   10.000    
    34 'Prefactor '    .82580       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=   4303.018     FROM MIGRAD    STATUS=CONVERGED    930 CALLS     4802 TOTAL
                     EDM=   .16E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     60.410        58.654       -.48562E-07    .10317E-04
   2  Prefactor     23.392        33.997       -.18937E-05   -.58012E-04
   3  Prefactor     29.045        49.288       -.34050E-06   -.60785E-04
   4  Prefactor     7.0929        56.562       -.28389E-06   -.31752E-04
   5  Prefactor     5.0079        57.026        .14113E-06   -.48545E-04
   6  Prefactor     .10000E-03    5.1266        .33876E-07** at limit **
   7  Prefactor     .10000E-03    7.6999       -.23108E-06** at limit **
   8  Prefactor     88.928        40.733       -.14964E-07    .97873E-04
   9  Prefactor     .10000E-03    34.567        .43102E-06** at limit **
  10  Prefactor     21.309        22.440        .14487E-06   -.36593E-05
  11  Prefactor     .10000E-03    1.8433        .37363E-07** at limit **
  12  Prefactor     .10000E-03    20.374        .29566E-07** at limit **
  13  Prefactor     .10000E-03    57.796        .10084E-07** at limit **
  14  Prefactor     .10000E-03    10.329        .61154E-07** at limit **
  15  norm          .10000E-03    4.4336        .24512E-07** at limit **
  16  norm          .10000E-03    4.5411       -.36354E-06** at limit **
  17  norm          .10000E-03    3.8286       -.49202E-07** at limit **
  18  norm          7.0243        14.787        .39028E-06   -.18773E-05
  19  Prefactor     7.3905        10.095        .37585E-05   -.16759E-03
  20  Prefactor     .10000E-03    119.00        .88786E-06** at limit **
  21  Prefactor     84.655        69.952        .36893E-07   -.77820E-05
  22  norm          5.3042        4.8745        .36299E-06   -.15629E-05
  23  Prefactor     4.3159        16.921       -.53225E-05   -.29911E-04
  24  norm          2.4881        1.4397       -.15504E-06    .32456E-04
  25  norm          .17464        3.8251       -.36906E-06    .24329E-03
  26  Prefactor     .10000E-03    2.2575       -.33130E-07** at limit **
  27  Prefactor     .10000E-03    40.741       -.15271E-06** at limit **
  28  Prefactor     89.129        76.783        .16791E-08   -.21581E-04
  29  norm          .10000E-03    13.709        .13477E-07** at limit **
  30  Prefactor     .10000E-03    5.9511       -.43988E-06** at limit **
  31  Prefactor     .10000E-03    3.2319        .73372E-06** at limit **
  32  Prefactor     34.242        66.614       -.25708E-06   -.37939E-04
  33  Normalizat    1.0058        .21152       -.74412E-06   -.46387E-04
  34  Prefactor     .82570        .22259       -.17364E-06   -.33333E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 60.4098
  Prefactor  = 23.3924
  Prefactor  = 29.0452
  Prefactor  = 7.0929
  Prefactor  = 5.00792
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 88.928
  Prefactor  = 0.0001
  Prefactor  = 21.3089
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 7.02428
  Prefactor  = 7.39051
  Prefactor  = 0.000100003
  Prefactor  = 84.6547
  norm       = 5.30419
  Prefactor  = 4.31593
  norm       = 2.48807
  norm       = 0.174645
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 89.1287
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 34.2425
  Normalizat = 1.00582
  Prefactor  = 0.825695
 **********
 **   18 **HESSE 
 **********

 FCN=   4303.018     FROM HESSE     STATUS=OK           726 CALLS     5528 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     60.410        58.682        .25812E-03   -1.4152    
   2  Prefactor     23.392        32.737        .82932E-04   -1.4740    
   3  Prefactor     29.045        49.245        .74324E-04   -1.4630    
   4  Prefactor     7.0929        56.408        .15015E-03   -1.5175    
   5  Prefactor     5.0079        56.454        .17767E-03   -1.5260    
   6  Prefactor     .10000E-03    5.1499        .14504E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    7.7751        .17669E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     88.928        40.587        .21305E-03   -1.3819    
   9  Prefactor     .10000E-03    34.587        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     21.309        22.448        .86764E-04   -1.4784    
  11  Prefactor     .10000E-03    1.8452        .86977E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    20.391        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    57.924        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    10.370        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    4.4348        .13490E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    4.6012        .13674E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    3.8650        .12526E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          7.0243        14.750        .15125E-03   -1.5178    
  19  Prefactor     7.3905        9.9944        .73763E-03   -1.5164    
  20  Prefactor     .10000E-03    120.10        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     84.655        69.857        .43659E-04   -1.3865    
  22  norm          5.3042        4.9881        .12597E-03   -1.5247    
  23  Prefactor     4.3159        16.818        .19394E-03   -1.5292    
  24  norm          2.4881        1.4330        .55643E-04   -1.5392    
  25  norm          .17464        54.627        .22788E-02   -1.5624    
  26  Prefactor     .10000E-03    2.2815        .96119E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    41.057        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     89.129        76.771        .21279E-03   -1.3817    
  29  norm          .10000E-03    13.711        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    5.9817        .15599E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .10000E-03    24.358        .21194E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     34.242        66.469        .68453E-04   -1.4537    
  33  Normalizat    1.0058        .25386        .23242E-03   -.92836    
  34  Prefactor     .82570        .26785        .27996E-03   -.98788    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.85885e-09
Minuit parameter uncertainties:
  1  58.7382
  2  32.7618
  3  49.3143
  4  40.0564
  5  33.6683
  6  6.61394e-06
  7  1.73551e-05
  8  40.5994
  9  0.0001746
  10  22.4568
  11  2.31104e-07
  12  1.71e-05
  13  0.000138715
  14  5.7561e-06
  15  3.52304e-07
  16  3.8424e-05
  17  2.04236e-06
  18  14.7578
  19  9.99665
  20  0.00111043
  21  69.9245
  22  4.98853
  23  16.8368
  24  1.43297
  25  6.18142
  26  7.25899e-06
  27  5.45963e-05
  28  76.8563
  29  9.4998e-06
  30  1.45774e-05
  31  0.000357568
  32  66.6135
  33  0.25417
  34  0.268278
Done.

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

Extracting fit parameters...

4FGL J2336.6-4115
   Spectrum: LogParabola
490         norm:  1.746e-01  6.181e+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.257e-01  2.683e-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.006e+00  2.542e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/58710/likelihoodResults_636422401_636681601_4FGL_J2336.6-4115_daily_bin1532.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) = 4302.7080642
delta logL = 0.309906322076

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4302.67423495
delta logL = 0.343735575642

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .85757E-01   1.0000         .10000E-03   10000.    
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    .94374       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86953       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=   4302.674     FROM MIGRAD    STATUS=CONVERGED    106 CALLS      332 TOTAL
                     EDM=   .74E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .85752E-01    .14268        .24871E-03   -.56362E-03
   2  alpha         5.0000        3.9426        .50000    ** at limit **
   3  Normalizat    .94347        .25289        .23896E-03   -.97958E-04
   4  Prefactor     .86972        .27120        .27322E-03   -.81141E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0857522
  alpha      = 5
  Normalizat = 0.94347
  Prefactor  = 0.869717
 **********
 **   18 **HESSE 
 **********

 FCN=   4302.674     FROM HESSE     STATUS=OK            31 CALLS      363 TOTAL
                     EDM=   .83E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .85752E-01    .13516        .99483E-05   -1.5649    
   2  alpha         5.0000        3.8327        .50000        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .94347        .25365        .95585E-05   -.94949    
   4  Prefactor     .86972        .27178        .10929E-04   -.97207    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.2898e-11
Minuit parameter uncertainties:
  1  0.135163
  2  4.51035e-05
  3  0.253976
  4  0.272201
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/58710': 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) = 4302.67423407
delta logL = 0.343736450208

Extracting fit parameters...

4FGL J2336.6-4115
   Spectrum: LogParabola
490         norm:  8.575e-02  1.352e-01  1.000e-04  1.000e+04 ( 1.000e-12)
491        alpha:  5.000e+00  4.510e-05  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.697e-01  2.722e-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.435e-01  2.540e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
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/58710/cmap_HighResolution_636422401_636681601_4FGL_J2336.6-4115_daily_bin1532.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.76e-05', job_status='DONE', photon_flux_upper_limit='9.27e-08', time_completed='2021-09-30 02:15:03.720668', job_id='58710', GAL2='0.87', fit_tolerance='1e-08', EG2='0.94', EG='1.01', time_epoch_completed='1632993303.72', return_code2='0', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.83', dlogl='3.44e-01', ts2='0.74', photon_index_error='0.00', photon_index='2.22' WHERE bin_id='1532' AND source_name='4FGL J2336.6-4115' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 02:15:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0244>
Subject: Job 58710: <4FGL_J2336.6-4115_daily_bin1532> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2336.6-4115_daily_bin1532 354.164 -41.2579 636422401 636681601 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 :                                   771.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             336.72 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   871 sec.
    Turnaround time :                            872 sec.

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

