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


Performing analysis on: 4FGL_J2336.6-4115_daily_bin1345
RA = 354.164, Dec = -41.2579
tmin = 587952001, tmax = 588211201
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='57445', job_status='RUN', time_executed='2021-09-30 01:56:02.968193', time_epoch_executed='1632992162.97' WHERE source_name='4FGL J2336.6-4115' and cadence='daily' and bin_id='1345'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/57445

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/57445/ft1_4FGL_J2336.6-4115_daily_bin1345.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/57445/ft2_4FGL_J2336.6-4115_daily_bin1345.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/57445/ft1_4FGL_J2336.6-4115_daily_bin1345.fits outfile=/scratch/kocevski/57445/ft1_filteredMKT_4FGL_J2336.6-4115_daily_bin1345.fits ra=354.164 dec=-41.2579 rad=12.0 tmin=587952001.0 tmax=588211201.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.44
user 3.23
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/57445/ft1_filtered_4FGL_J2336.6-4115_daily_bin1345.fits" evtable="EVENTS" scfile=/scratch/kocevski/57445/ft2_4FGL_J2336.6-4115_daily_bin1345.fits sctable="SC_DATA" outfile=/scratch/kocevski/57445/ltcube_587952001_588211201_4FGL_J2336.6-4115_daily_bin1345.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/57445/ft2_4FGL_J2336.6-4115_daily_bin1345.fits
.....................!
real 11.62
user 11.25
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/57445/ft1_filtered_4FGL_J2336.6-4115_daily_bin1345.fits evtable="EVENTS" scfile=/scratch/kocevski/57445/ft2_4FGL_J2336.6-4115_daily_bin1345.fits sctable="SC_DATA" expcube=/scratch/kocevski/57445/ltcube_587952001_588211201_4FGL_J2336.6-4115_daily_bin1345.fits outfile=/scratch/kocevski/57445/expmap_587952001_588211201_4FGL_J2336.6-4115_daily_bin1345.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/57445/ltcube_587952001_588211201_4FGL_J2336.6-4115_daily_bin1345.fits
.....................!
real 190.91
user 186.04
sys 4.51

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/57445/ft1_filtered_4FGL_J2336.6-4115_daily_bin1345.fits scfile=/scratch/kocevski/57445/ft2_4FGL_J2336.6-4115_daily_bin1345.fits outfile=/scratch/kocevski/57445/cmap_587952001_588211201_4FGL_J2336.6-4115_daily_bin1345.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.54
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/57445/ft1_filtered_4FGL_J2336.6-4115_daily_bin1345.fits scfile=/scratch/kocevski/57445/ft2_4FGL_J2336.6-4115_daily_bin1345.fits outfile=/scratch/kocevski/57445/cmap_HighResolution_587952001_588211201_4FGL_J2336.6-4115_daily_bin1345.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.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/57445/ft1_filtered_4FGL_J2336.6-4115_daily_bin1345.fits evtable="EVENTS" scfile=/scratch/kocevski/57445/ft2_4FGL_J2336.6-4115_daily_bin1345.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/57445/Model_4FGL_J2336.6-4115_daily_bin1345.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/57445/ft1_filtered_4FGL_J2336.6-4115_daily_bin1345.fits.....................!
real 38.37
user 37.13
sys 1.11

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.3383       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    60.057       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .56008E-02   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    10.409       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    8.6937       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    2.4629       1.0000         .10000E-03   10000.    
    18 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    13.686       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    14.499       1.0000         .10000E-03   10000.    
    22 'norm      '    3.2701       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .17585E-01   1.0000         .10000E-03   10000.    
    25 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    2.5050       1.0000         .10000E-03   10000.    
    27 'Prefactor '    19.192       1.0000         .10000E-03   10000.    
    28 'Prefactor '    49.162       1.0000         .10000E-03   10000.    
    29 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10325E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10159E-03   1.0000         .10000E-03   10000.    
    32 'Prefactor '    58.125       1.0000         .10000E-03   10000.    
    33 'Normalizat'    .85341       1.0000         .10000E-01   10.000    
    34 'Prefactor '    .99964       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=   5129.996     FROM MIGRAD    STATUS=CONVERGED    921 CALLS     4806 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    43.226       -.16751E-05** at limit **
   2  Prefactor     .10000E-03    10.701        .58539E-05** at limit **
   3  Prefactor     .10000E-03    71.456        .23603E-04** at limit **
   4  Prefactor     .10000E-03    8.2803        .25516E-05** at limit **
   5  Prefactor     .10000E-03    8.4143       -.24761E-05** at limit **
   6  Prefactor     .10000E-03    2.4238       -.31701E-07** at limit **
   7  Prefactor     4.3380        3.8190        .60125E-06   -.29842E-03
   8  Prefactor     .10000E-03    48.268        .12505E-04** at limit **
   9  Prefactor     60.059        56.067        .23058E-05    .10412E-03
  10  Prefactor     .10000E-03    12.549       -.87108E-05** at limit **
  11  Prefactor     .10504E-03    5.5803       -.26504E-05** at limit **
  12  Prefactor     .10000E-03    30.943       -.16929E-04** at limit **
  13  Prefactor     10.413        43.398        .60500E-05    .52831E-05
  14  Prefactor     .10000E-03    9.2559       -.25924E-05** at limit **
  15  norm          8.6939        9.5177        .43923E-07    .81362E-04
  16  norm          .10000E-03    2.1677        .47061E-07** at limit **
  17  norm          2.4634        3.5984        .10209E-05   -.13458E-03
  18  norm          .10000E-03    2.6348       -.19681E-07** at limit **
  19  Prefactor     13.686        8.4092       -.27487E-06    .20742E-03
  20  Prefactor     .10000E-03    11.319        .22645E-05** at limit **
  21  Prefactor     14.499        28.064       -.49388E-06   -.48753E-05
  22  norm          3.2698        3.2792       -.72617E-06   -.12539E-03
  23  Prefactor     .10000E-03    18.417        .42759E-05** at limit **
  24  norm          .17551E-01    .64348       -.10348E-05    .17285E-02
  25  norm          .10000E-03    2.0835        .13033E-07** at limit **
  26  Prefactor     2.5042        3.8853        .18823E-05   -.43619E-03
  27  Prefactor     19.190        21.147       -.23823E-06   -.16302E-04
  28  Prefactor     49.164        46.656        .34964E-05    .12062E-05
  29  norm          .10000E-03    22.980        .54999E-05** at limit **
  30  Prefactor     .10000E-03    2.8091        .26496E-06** at limit **
  31  Prefactor     .10000E-03    2.1241       -.29249E-06** at limit **
  32  Prefactor     58.098        41.516       -.18547E-04   -.82428E-05
  33  Normalizat    .85369        .17265        .17064E-05    .19496E-03
  34  Prefactor     .99931        .19522       -.69084E-06    .32127E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.33801
  Prefactor  = 0.000100001
  Prefactor  = 60.0594
  Prefactor  = 0.0001
  Prefactor  = 0.000105043
  Prefactor  = 0.0001
  Prefactor  = 10.4129
  Prefactor  = 0.0001
  norm       = 8.69392
  norm       = 0.0001
  norm       = 2.4634
  norm       = 0.0001
  Prefactor  = 13.6864
  Prefactor  = 0.0001
  Prefactor  = 14.4995
  norm       = 3.26983
  Prefactor  = 0.0001
  norm       = 0.017551
  norm       = 0.0001
  Prefactor  = 2.50419
  Prefactor  = 19.1904
  Prefactor  = 49.1643
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 58.0982
  Normalizat = 0.853687
  Prefactor  = 0.999305
 **********
 **   18 **HESSE 
 **********

 FCN=   5129.996     FROM HESSE     STATUS=OK           734 CALLS     5540 TOTAL
                     EDM=   .86E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    43.314        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    10.718        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    71.781        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    8.2906        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    8.4216        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    2.4289        .10890E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     4.3380        3.8204        .12628E-03   -1.5291    
   8  Prefactor     .10000E-03    48.792        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     60.059        56.079        .51773E-04   -1.4156    
  10  Prefactor     .10000E-03    12.591        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10504E-03    5.6925        .52803E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    31.052        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     10.413        43.406        .12419E-03   -1.5062    
  14  Prefactor     .10000E-03    9.2991        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          8.6939        9.5170        .67974E-03   -1.5118    
  16  norm          .10000E-03    2.1689        .10297E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          2.4634        3.6149        .15122E-03   -1.5394    
  18  norm          .10000E-03    2.6572        .11353E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     13.686        8.3534        .10827E-03   -1.4968    
  20  Prefactor     .10000E-03    11.335        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     14.499        28.063        .10519E-03   -1.4946    
  22  norm          3.2698        3.2984        .11855E-03   -1.5346    
  23  Prefactor     .10000E-03    18.511        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .17551E-01    3.9169        .10834E-02   -1.5682    
  25  norm          .10000E-03    2.1089        .10085E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     2.5042        3.8245        .15381E-03   -1.5391    
  27  Prefactor     19.190        20.997        .91425E-04   -1.4832    
  28  Prefactor     49.164        46.655        .57192E-04   -1.4304    
  29  norm          .10000E-03    22.994        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    2.8574        .11720E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .10000E-03    3.7629        .20106E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     58.098        41.725        .52621E-04   -1.4182    
  33  Normalizat    .85369        .20597        .22674E-03   -.98107    
  34  Prefactor     .99931        .23452        .24354E-03   -.92753    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.62856e-09
Minuit parameter uncertainties:
  1  2.28114e-05
  2  2.93021e-05
  3  0.000581659
  4  3.31308e-05
  5  1.22043e-05
  6  3.82322e-06
  7  3.8206
  8  0.000431658
  9  56.1281
  10  2.6945e-06
  11  0.0107172
  12  1.11079e-05
  13  42.5725
  14  5.896e-06
  15  9.51864
  16  3.5204e-06
  17  3.61521
  18  6.50382e-07
  19  8.35415
  20  4.68182e-06
  21  28.0884
  22  3.29859
  23  8.76039e-07
  24  0.522926
  25  2.65685e-06
  26  3.8249
  27  21.0053
  28  46.6901
  29  5.58613e-05
  30  5.12215e-05
  31  6.23089e-05
  32  41.7464
  33  0.206157
  34  0.234759
Done.

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

Extracting fit parameters...

4FGL J2336.6-4115
   Spectrum: LogParabola
490         norm:  1.000e-04  2.657e-06  1.000e-04  1.000e+04 ( 1.000e-12)
491        alpha:  2.217e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
492         beta:  1.146e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
493           Eb:  8.053e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
582    Prefactor:  9.993e-01  2.348e-01  0.000e+00  1.000e+01 ( 1.000e+00)
583        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
584        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
581   Normalization:  8.537e-01  2.062e-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: 5.05e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.04e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/57445/likelihoodResults_587952001_588211201_4FGL_J2336.6-4115_daily_bin1345.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): 102
logL (Free Index) = 5129.99846584
delta logL = -0.00225622204653

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5129.99620968
delta logL = -6.44477040623e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2204       1.0000          .0000       5.0000    
     3 'Normalizat'    .85371       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99932       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=   5129.996     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      235 TOTAL
                     EDM=   .67E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    199.38        .10089E-02** at limit **
   2  alpha         2.3555        3.2311        .50000        .42633E-07
   3  Normalizat    .85369        .44236E-01    .22674E-03   -.16631E-03
   4  Prefactor     .99930        .51303E-01    .24354E-03   -.15591E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.35553
  Normalizat = 0.853688
  Prefactor  = 0.999302
 **********
 **   18 **HESSE 
 **********

 FCN=   5129.996     FROM HESSE     STATUS=OK            29 CALLS      264 TOTAL
                     EDM=   .58E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    8.2196        .20178E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.3555        2.7428        .50000       -.57822E-01
   3  Normalizat    .85369        .20013        .90695E-05   -.98107    
   4  Prefactor     .99930        .23207        .48708E-04   -.92753    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.77314e-11
Minuit parameter uncertainties:
  1  1.58466e-06
  2  282.762
  3  0.200304
  4  0.232304
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/57445': 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) = 5129.99620936
delta logL = 2.63390575128e-07

Extracting fit parameters...

4FGL J2336.6-4115
   Spectrum: LogParabola
490         norm:  1.000e-04  1.585e-06  1.000e-04  1.000e+04 ( 1.000e-12)
491        alpha:  2.356e+00  2.828e+02  0.000e+00  5.000e+00 ( 1.000e+00)
492         beta:  1.146e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
493           Eb:  8.053e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
582    Prefactor:  9.993e-01  2.323e-01  0.000e+00  1.000e+01 ( 1.000e+00)
583        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
584        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
581   Normalization:  8.537e-01  2.003e-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/57445/cmap_HighResolution_587952001_588211201_4FGL_J2336.6-4115_daily_bin1345.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.04e-05', job_status='DONE', photon_flux_upper_limit='5.05e-08', time_completed='2021-09-30 02:10:18.533598', job_id='57445', GAL2='1.00', fit_tolerance='1e-08', EG2='0.85', EG='0.85', time_epoch_completed='1632993018.53', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.00', dlogl='2.63e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.22' WHERE bin_id='1345' AND source_name='4FGL J2336.6-4115' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 02:10:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0079>
Subject: Job 57445: <4FGL_J2336.6-4115_daily_bin1345> in cluster <slac> Done

Job <4FGL_J2336.6-4115_daily_bin1345> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Sep 30 01:55:34 2021
Job was executed on host(s) <bullet0079>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 01:55:36 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:36 2021
Terminated at Thu Sep 30 02:10:21 2021
Results reported at Thu Sep 30 02:10:21 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2336.6-4115_daily_bin1345 354.164 -41.2579 587952001 588211201 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 :                                   846.29 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             348.15 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   882 sec.
    Turnaround time :                            887 sec.

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

