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


Performing analysis on: 4FGL_J2336.6-4115_daily_bin1360
RA = 354.164, Dec = -41.2579
tmin = 591840001, tmax = 592099201
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='57466', job_status='RUN', time_executed='2021-09-30 01:56:21.521470', time_epoch_executed='1632992181.52' WHERE source_name='4FGL J2336.6-4115' and cadence='daily' and bin_id='1360'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/57466

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/57466/ft1_4FGL_J2336.6-4115_daily_bin1360.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/57466/ft2_4FGL_J2336.6-4115_daily_bin1360.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/57466/ft1_4FGL_J2336.6-4115_daily_bin1360.fits outfile=/scratch/kocevski/57466/ft1_filteredMKT_4FGL_J2336.6-4115_daily_bin1360.fits ra=354.164 dec=-41.2579 rad=12.0 tmin=591840001.0 tmax=592099201.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.22
user 4.96
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/57466/ft1_filtered_4FGL_J2336.6-4115_daily_bin1360.fits" evtable="EVENTS" scfile=/scratch/kocevski/57466/ft2_4FGL_J2336.6-4115_daily_bin1360.fits sctable="SC_DATA" outfile=/scratch/kocevski/57466/ltcube_591840001_592099201_4FGL_J2336.6-4115_daily_bin1360.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/57466/ft2_4FGL_J2336.6-4115_daily_bin1360.fits
.....................!
real 12.03
user 11.69
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/57466/ft1_filtered_4FGL_J2336.6-4115_daily_bin1360.fits evtable="EVENTS" scfile=/scratch/kocevski/57466/ft2_4FGL_J2336.6-4115_daily_bin1360.fits sctable="SC_DATA" expcube=/scratch/kocevski/57466/ltcube_591840001_592099201_4FGL_J2336.6-4115_daily_bin1360.fits outfile=/scratch/kocevski/57466/expmap_591840001_592099201_4FGL_J2336.6-4115_daily_bin1360.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/57466/ltcube_591840001_592099201_4FGL_J2336.6-4115_daily_bin1360.fits
.....................!
real 190.77
user 185.43
sys 4.92

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/57466/ft1_filtered_4FGL_J2336.6-4115_daily_bin1360.fits scfile=/scratch/kocevski/57466/ft2_4FGL_J2336.6-4115_daily_bin1360.fits outfile=/scratch/kocevski/57466/cmap_591840001_592099201_4FGL_J2336.6-4115_daily_bin1360.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/57466/ft1_filtered_4FGL_J2336.6-4115_daily_bin1360.fits scfile=/scratch/kocevski/57466/ft2_4FGL_J2336.6-4115_daily_bin1360.fits outfile=/scratch/kocevski/57466/cmap_HighResolution_591840001_592099201_4FGL_J2336.6-4115_daily_bin1360.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.57
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .93213E-02   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10081E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    20.548       1.0000         .10000E-03   10000.    
    10 'Prefactor '    52.024       1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.5568       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    9.6986       1.0000         .10000E-03   10000.    
    15 'norm      '    .27517E-01   1.0000         .10000E-03   10000.    
    16 'norm      '    3.8889       1.0000         .10000E-03   10000.    
    17 'norm      '    7.4894       1.0000         .10000E-03   10000.    
    18 'norm      '    .35470E-01   1.0000         .10000E-03   10000.    
    19 'Prefactor '    11.071       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10167E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10240E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .90969       1.0000         .10000E-03   10000.    
    25 'norm      '    2.4442       1.0000         .10000E-03   10000.    
    26 'Prefactor '    6.9144       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    71.902       1.0000         .10000E-03   10000.    
    29 'norm      '    25.876       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    32 'Prefactor '    .11134E-03   1.0000         .10000E-03   10000.    
    33 'Normalizat'    1.4513       1.0000         .10000E-01   10.000    
    34 'Prefactor '    .46634       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=   3740.084     FROM MIGRAD    STATUS=CONVERGED    961 CALLS     4870 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    39.077       -.80756E-06** at limit **
   2  Prefactor     .10000E-03    15.173       -.32947E-06** at limit **
   3  Prefactor     .10028E-03    484.05        .25099E-04** at limit **
   4  Prefactor     .10000E-03    22.222       -.30703E-06** at limit **
   5  Prefactor     .10000E-03    7.7359       -.44094E-07** at limit **
   6  Prefactor     .10000E-03    10.099       -.63055E-06** at limit **
   7  Prefactor     .10000E-03    3.3204       -.34411E-06** at limit **
   8  Prefactor     .10000E-03    20.556        .44856E-06** at limit **
   9  Prefactor     20.546        40.664       -.14793E-06    .60449E-05
  10  Prefactor     52.027        40.174       -.26431E-06    .35194E-04
  11  Prefactor     5.5566        10.867       -.15254E-05   -.18294E-04
  12  Prefactor     .10000E-03    18.161       -.19664E-06** at limit **
  13  Prefactor     .10000E-03    25.202       -.23235E-06** at limit **
  14  Prefactor     9.7000        18.752       -.10694E-05   -.10978E-04
  15  norm          .10059E-03    70.364       -.50033E-04** at limit **
  16  norm          3.8888        7.2616       -.14686E-05   -.33255E-03
  17  norm          7.4835        6.4581       -.54555E-06    .18912E-03
  18  norm          .10001E-03    177.64        .86626E-04** at limit **
  19  Prefactor     11.071        7.8420       -.10611E-06    .14277E-03
  20  Prefactor     .10002E-03    318.47       -.22010E-05** at limit **
  21  Prefactor     .10000E-03    49.520       -.16435E-05** at limit **
  22  norm          .10000E-03    2.8632        .53422E-06** at limit **
  23  Prefactor     .10000E-03    22.692       -.17325E-05** at limit **
  24  norm          .90978        1.3377       -.79503E-07   -.13602E-03
  25  norm          2.4404        4.7990       -.24808E-05   -.27571E-03
  26  Prefactor     6.9096        4.7286        .46840E-06   -.66933E-03
  27  Prefactor     .10001E-03    36.125       -.12135E-05** at limit **
  28  Prefactor     71.909        66.245        .13018E-05   -.20259E-04
  29  norm          25.868        35.908       -.19845E-06   -.59946E-04
  30  Prefactor     .10000E-03    3.7117       -.22856E-06** at limit **
  31  Prefactor     .10000E-03    4.5218       -.66272E-06** at limit **
  32  Prefactor     .10005E-03    136.70        .13977E-04** at limit **
  33  Normalizat    1.4510        .22913        .14547E-06    .25582E-03
  34  Prefactor     .46647        .24533        .53252E-05    .24714E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100285
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 20.546
  Prefactor  = 52.0267
  Prefactor  = 5.5566
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.7
  norm       = 0.000100595
  norm       = 3.88877
  norm       = 7.48354
  norm       = 0.000100005
  Prefactor  = 11.071
  Prefactor  = 0.000100025
  Prefactor  = 0.000100003
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.909779
  norm       = 2.44043
  Prefactor  = 6.90962
  Prefactor  = 0.00010001
  Prefactor  = 71.9085
  norm       = 25.8682
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100052
  Normalizat = 1.45104
  Prefactor  = 0.466472
 **********
 **   18 **HESSE 
 **********

 FCN=   3740.084     FROM HESSE     STATUS=OK           740 CALLS     5610 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    39.115        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    15.207        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10028E-03    481.48        .36409E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    22.235        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    7.7365        .16614E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    10.317        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    3.3522        .10884E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    20.614        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     20.546        40.673        .88359E-04   -1.4801    
  10  Prefactor     52.027        40.149        .55604E-04   -1.4264    
  11  Prefactor     5.5566        10.867        .17043E-03   -1.5236    
  12  Prefactor     .10000E-03    18.165        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    25.207        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     9.7000        18.722        .12868E-03   -1.5085    
  15  norm          .10059E-03    19.923        .75253E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          3.8888        7.2691        .20460E-03   -1.5314    
  17  norm          7.4835        6.4526        .14015E-03   -1.5161    
  18  norm          .10001E-03    12.023        .59106E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     11.071        7.8318        .12041E-03   -1.5042    
  20  Prefactor     .10002E-03    325.00        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    49.718        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    2.8788        .10106E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    22.986        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .90978        1.3350        .51371E-04   -1.5517    
  25  norm          2.4404        4.8153        .18125E-03   -1.5396    
  26  Prefactor     6.9096        4.7130        .10372E-03   -1.5182    
  27  Prefactor     .10001E-03    36.272        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     71.909        66.278        .47344E-04   -1.4010    
  29  norm          25.868        35.906        .78751E-04   -1.4690    
  30  Prefactor     .10000E-03    3.7283        .11507E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .10000E-03    4.6282        .12701E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     .10005E-03    139.72        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Normalizat    1.4510        .26338        .20457E-03   -.79163    
  34  Prefactor     .46647        .27915        .36217E-03   -1.1354    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.18875e-09
Minuit parameter uncertainties:
  1  0.000307855
  2  0.000214153
  3  0.0236152
  4  0.000131169
  5  1.7002e-05
  6  0.000285185
  7  6.34661e-05
  8  2.74484e-05
  9  40.7281
  10  40.1699
  11  10.8706
  12  4.86689e-05
  13  7.72093e-05
  14  18.7331
  15  0.00688711
  16  7.27071
  17  6.45324
  18  0.000492521
  19  7.83257
  20  0.00572148
  21  0.000717105
  22  7.0941e-05
  23  0.00033518
  24  1.33506
  25  4.81605
  26  4.71328
  27  0.00123488
  28  66.3458
  29  35.936
  30  5.6495e-05
  31  0.000162991
  32  0.00540178
  33  0.26363
  34  0.279969
Done.

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

Extracting fit parameters...

4FGL J2336.6-4115
   Spectrum: LogParabola
490         norm:  2.440e+00  4.816e+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:  4.665e-01  2.800e-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.451e+00  2.636e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/57466/likelihoodResults_591840001_592099201_4FGL_J2336.6-4115_daily_bin1360.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) = 3739.29192097
delta logL = 0.791997098288

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3739.25010841
delta logL = 0.83380966061

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .21210       1.0000         .10000E-03   10000.    
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3137       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .56919       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=   3739.250     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      326 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .21215        .19751        .20544E-04   -.33846E-02
   2  alpha         5.0000        3.0947        .49289    ** at limit **
   3  Normalizat    1.3134        .28275        .21288E-03   -.45569E-04
   4  Prefactor     .56947        .28728        .32985E-03    .56869E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 0.212147
  alpha      = 5
  Normalizat = 1.31337
  Prefactor  = 0.569466
 **********
 **   18 **HESSE 
 **********

 FCN=   3739.250     FROM HESSE     STATUS=OK            29 CALLS      355 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .21215        .19928        .82174E-06   -1.5616    
   2  alpha         5.0000        3.1183        .47863        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.3134        .28273        .42577E-04   -.83168    
   4  Prefactor     .56947        .28741        .13194E-04   -1.0889    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.40431e-10
Minuit parameter uncertainties:
  1  0.199281
  2  0.000106814
  3  0.283059
  4  0.288156
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/57466': 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) = 3739.25010547
delta logL = 0.833812594855

Extracting fit parameters...

4FGL J2336.6-4115
   Spectrum: LogParabola
490         norm:  2.121e-01  1.993e-01  1.000e-04  1.000e+04 ( 1.000e-12)
491        alpha:  5.000e+00  1.068e-04  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:  5.695e-01  2.882e-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.313e+00  2.831e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.18
Ra Dec: 354.164 -41.258
Photon Index (Free Index): 5.00 +/- 0.00
Photon Flux (Free Index): 1.22e-07 +/- 1.14e-07
Energy Flux (Free Index): 1.68e-05 +/- 1.57e-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/57466/cmap_HighResolution_591840001_592099201_4FGL_J2336.6-4115_daily_bin1360.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.13e-05', comment='SUCCESS', energy_flux2='1.68e-05', dlogl='8.34e-01', photon_flux2='1.22e-07', job_status='DONE', time_completed='2021-09-30 02:08:28.297495', photon_index_error2='0.00', photon_index2='5.00', ts='0.34', fit_tolerance='1e-08', GAL='0.47', photon_index_error='0.00', photon_flux_upper_limit='1.02e-07', energy_flux_error2='1.57e-05', EG='1.45', time_epoch_completed='1632992908.3', return_code='0', job_id='57466', GAL2='0.57', EG2='1.31', return_code2='0', photon_flux_error2='1.14e-07', ts2='2.18', photon_index='2.22' WHERE bin_id='1360' AND source_name='4FGL J2336.6-4115' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 02:08:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0047>
Subject: Job 57466: <4FGL_J2336.6-4115_daily_bin1360> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2336.6-4115_daily_bin1360 354.164 -41.2579 591840001 592099201 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 :                                   713.39 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             299.85 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   771 sec.
    Turnaround time :                            774 sec.

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

