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


Performing analysis on: 4FGL_J2336.6-4115_daily_bin1228
RA = 354.164, Dec = -41.2579
tmin = 557625601, tmax = 557884801
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='57271', job_status='RUN', time_executed='2021-09-30 01:56:41.146546', time_epoch_executed='1632992201.15' WHERE source_name='4FGL J2336.6-4115' and cadence='daily' and bin_id='1228'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/57271

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/57271/ft1_4FGL_J2336.6-4115_daily_bin1228.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/57271/ft2_4FGL_J2336.6-4115_daily_bin1228.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/57271/ft1_4FGL_J2336.6-4115_daily_bin1228.fits outfile=/scratch/kocevski/57271/ft1_filteredMKT_4FGL_J2336.6-4115_daily_bin1228.fits ra=354.164 dec=-41.2579 rad=12.0 tmin=557625601.0 tmax=557884801.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.45
user 3.21
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/57271/ft2_4FGL_J2336.6-4115_daily_bin1228.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/57271/ft1_filteredMKT_4FGL_J2336.6-4115_daily_bin1228.fits evtable="EVENTS" outfile="/scratch/kocevski/57271/ft1_filtered_4FGL_J2336.6-4115_daily_bin1228.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/57271/ft1_filtered_4FGL_J2336.6-4115_daily_bin1228.fits" evtable="EVENTS" scfile=/scratch/kocevski/57271/ft2_4FGL_J2336.6-4115_daily_bin1228.fits sctable="SC_DATA" outfile=/scratch/kocevski/57271/ltcube_557625601_557884801_4FGL_J2336.6-4115_daily_bin1228.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/57271/ft2_4FGL_J2336.6-4115_daily_bin1228.fits
.....................!
real 12.15
user 11.80
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/57271/ft1_filtered_4FGL_J2336.6-4115_daily_bin1228.fits evtable="EVENTS" scfile=/scratch/kocevski/57271/ft2_4FGL_J2336.6-4115_daily_bin1228.fits sctable="SC_DATA" expcube=/scratch/kocevski/57271/ltcube_557625601_557884801_4FGL_J2336.6-4115_daily_bin1228.fits outfile=/scratch/kocevski/57271/expmap_557625601_557884801_4FGL_J2336.6-4115_daily_bin1228.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/57271/ltcube_557625601_557884801_4FGL_J2336.6-4115_daily_bin1228.fits
.....................!
real 191.09
user 186.48
sys 4.25

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/57271/ft1_filtered_4FGL_J2336.6-4115_daily_bin1228.fits scfile=/scratch/kocevski/57271/ft2_4FGL_J2336.6-4115_daily_bin1228.fits outfile=/scratch/kocevski/57271/cmap_557625601_557884801_4FGL_J2336.6-4115_daily_bin1228.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/57271/ft1_filtered_4FGL_J2336.6-4115_daily_bin1228.fits scfile=/scratch/kocevski/57271/ft2_4FGL_J2336.6-4115_daily_bin1228.fits outfile=/scratch/kocevski/57271/cmap_HighResolution_557625601_557884801_4FGL_J2336.6-4115_daily_bin1228.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/57271/ft1_filtered_4FGL_J2336.6-4115_daily_bin1228.fits evtable="EVENTS" scfile=/scratch/kocevski/57271/ft2_4FGL_J2336.6-4115_daily_bin1228.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/57271/Model_4FGL_J2336.6-4115_daily_bin1228.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/57271/ft1_filtered_4FGL_J2336.6-4115_daily_bin1228.fits........................!
real 17.09
user 15.86
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    216.50       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    75.488       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.2127       1.0000         .10000E-03   10000.    
     7 'Prefactor '    34.787       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    10 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    11 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .68819E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.2277       1.0000         .10000E-03   10000.    
    15 'norm      '    .10211E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10283E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    316.85       1.0000         .10000E-03   10000.    
    22 'norm      '    .11783E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    6.6200       1.0000         .10000E-03   10000.    
    25 'norm      '    .11002E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10266E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    46.930       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .54969E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    67.689       1.0000         .10000E-03   10000.    
    30 'Prefactor '    1.8499       1.0000         .10000E-03   10000.    
    31 'Prefactor '    7.6442       1.0000         .10000E-03   10000.    
    32 'Prefactor '    .49003E-03   1.0000         .10000E-03   10000.    
    33 'Normalizat'    1.1522       1.0000         .10000E-01   10.000    
    34 'Prefactor '    .93381       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=   553.2532     FROM MIGRAD    STATUS=CONVERGED    871 CALLS     5618 TOTAL
                     EDM=   .30E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     216.55        357.72       -.96350E-05   -.69778E-05
   2  Prefactor     .10000E-03    35.286       -.24837E-06** at limit **
   3  Prefactor     75.479        103.84       -.24243E-05    .80332E-05
   4  Prefactor     .10000E-03    119.88       -.26908E-05** at limit **
   5  Prefactor     .10000E-03    107.43        .28783E-05** at limit **
   6  Prefactor     8.2029        46.192       -.81490E-05    .18295E-04
   7  Prefactor     34.767        28.028       -.35105E-05   -.23692E-05
   8  Prefactor     .10000E-03    112.10        .20859E-06** at limit **
   9  Prefactor    10000.0        7870.4       -.13238E-03** at limit **
  10  Prefactor    10000.0        9958.5       -.90067E-04** at limit **
  11  Prefactor    10000.0        2151.6       -.18418E-04** at limit **
  12  Prefactor     .10000E-03    528.59        .38709E-05** at limit **
  13  Prefactor    10000.0        8867.4       -.81725E-04** at limit **
  14  Prefactor     3.3355        637.58       -.37560E-04   -.14545E-04
  15  norm          .10000E-03    115.62       -.65463E-06** at limit **
  16  norm          .10000E-03    22.037       -.67171E-06** at limit **
  17  norm          .10000E-03    36.415        .90751E-06** at limit **
  18  norm          .10000E-03    214.82       -.16724E-04** at limit **
  19  Prefactor     .10000E-03    20.492        .42115E-06** at limit **
  20  Prefactor     .10000E-03    361.23        .88139E-05** at limit **
  21  Prefactor     326.40        7386.4        .17610E-03   -.80573E-05
  22  norm          .10000E-03    32.741       -.20105E-05** at limit **
  23  Prefactor     .10000E-03    35.553        .97297E-07** at limit **
  24  norm          6.6116        7.8461        .88652E-06    .17620E-03
  25  norm          .10000E-03    26.216        .72437E-06** at limit **
  26  Prefactor     .10000E-03    9.3608       -.16878E-06** at limit **
  27  Prefactor     46.959        88.621       -.92062E-05    .11780E-04
  28  Prefactor     .10000E-03    715.88        .54347E-05** at limit **
  29  norm          67.639        126.68        .25195E-05    .60840E-05
  30  Prefactor     1.3704        2116.6       -.13125E-03   -.30367E-04
  31  Prefactor     7.6364        21.645       -.29186E-05    .87046E-05
  32  Prefactor     .10000E-03    352.40       -.20503E-05** at limit **
  33  Normalizat    1.1547        1.3604        .87683E-04   -.20615E-04
  34  Prefactor     .93187        1.2544       -.68428E-04    .19417E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 216.551
  Prefactor  = 0.0001
  Prefactor  = 75.4791
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.20289
  Prefactor  = 34.7667
  Prefactor  = 0.0001
  Prefactor  = 10000
  Prefactor  = 10000
  Prefactor  = 10000
  Prefactor  = 0.0001
  Prefactor  = 10000
  Prefactor  = 3.33553
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 326.403
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 6.61158
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 46.9589
  Prefactor  = 0.0001
  norm       = 67.6388
  Prefactor  = 1.37037
  Prefactor  = 7.63636
  Prefactor  = 0.000100001
  Normalizat = 1.15472
  Prefactor  = 0.931869
 **********
 **   18 **HESSE 
 **********

 FCN=   553.2532     FROM HESSE     STATUS=OK           718 CALLS     6336 TOTAL
                     EDM=   .70E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     216.55        358.46        .13742E-03   -1.2754    
   2  Prefactor     .10000E-03    35.284        .13659E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     75.479        103.85        .46214E-04   -1.3968    
   4  Prefactor     .10000E-03    120.00        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    107.38        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     8.2029        47.400        .13990E-03   -1.5135    
   7  Prefactor     34.767        28.244        .67944E-04   -1.4528    
   8  Prefactor     .10000E-03    112.10        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor    10000.0        7868.7        .18155E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor    10000.0        9958.3        .19143E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor    10000.0        2152.2        .21145E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    528.57        .20989E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor    10000.0        8866.5        .19417E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     3.3355        622.79        .22547E-03   -1.5343    
  15  norm          .10000E-03    115.62        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    22.027        .10789E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    36.413        .13876E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    215.42        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    20.493        .10407E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    361.13        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     326.40        7777.4        .11418E-03   -1.2075    
  22  norm          .10000E-03    32.756        .13159E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    35.552        .13710E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          6.6116        7.8075        .59910E-04   -1.5194    
  25  norm          .10000E-03    26.213        .11769E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    9.3681        .70237E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     46.959        88.685        .58530E-04   -1.4336    
  28  Prefactor     .10000E-03    715.72        .21110E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          67.639        126.78        .24393E-03   -1.4061    
  30  Prefactor     1.3704        6353.7        .30654E-02   -1.5474    
  31  Prefactor     7.6364        21.710        .14504E-03   -1.5155    
  32  Prefactor     .10000E-03    353.02        .21167E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Normalizat    1.1547        1.4126        .33783E-03   -.88014    
  34  Prefactor     .93187        1.2921        .39457E-03   -.95036    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.9898e-10
Minuit parameter uncertainties:
  1  362.182
  2  1.62145e-05
  3  104.102
  4  0.000239696
  5  0.000267692
  6  39.484
  7  28.2549
  8  0.000409526
  9  0.00277889
  10  0.00177352
  11  0.00021582
  12  0.000324042
  13  0.00220604
  14  92.1439
  15  2.86677e-05
  16  5.5236e-05
  17  9.70586e-06
  18  0.000718928
  19  3.26899e-05
  20  0.000245843
  21  3751.6
  22  4.58328e-05
  23  1.42322e-05
  24  7.80867
  25  6.16158e-05
  26  1.13984e-06
  27  88.9357
  28  0.0011213
  29  127.294
  30  130.883
  31  21.7326
  32  0.00145524
  33  1.46369
  34  1.33898
Done.

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

Extracting fit parameters...

4FGL J2336.6-4115
   Spectrum: LogParabola
490         norm:  1.000e-04  6.162e-05  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.319e-01  1.339e+00  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.155e+00  1.464e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 354.164 -41.258
Photon Flux Upper Limit: 8.04e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.25e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/57271/likelihoodResults_557625601_557884801_4FGL_J2336.6-4115_daily_bin1228.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) = 553.253356667
delta logL = -0.00015813824848

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 553.172717727
delta logL = 0.0804808017562

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .66662       1.0000         .10000E-03   10000.    
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    .99026       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0545       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=   553.1727     FROM MIGRAD    STATUS=CONVERGED     75 CALLS      288 TOTAL
                     EDM=   .57E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .66661        1.8169        .48430E-04    .23672E-02
   2  alpha         5.0000        4.7800        .49297E-01** at limit **
   3  Normalizat    .98994        1.1649        .35960E-03    .64445E-04
   4  Prefactor     1.0547        1.2140        .37308E-03    .30510E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.66661
  alpha      = 5
  Normalizat = 0.989942
  Prefactor  = 1.05472
 **********
 **   18 **HESSE 
 **********

 FCN=   553.1727     FROM HESSE     STATUS=OK            23 CALLS      311 TOTAL
                     EDM=   .60E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .66661        1.8124        .96859E-05   -1.5545    
   2  alpha         5.0000        4.7807        .98593E-02    1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .98994        1.1661        .71920E-04   -.93368    
   4  Prefactor     1.0547        1.2153        .74616E-04   -.90927    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.04051e-09
Minuit parameter uncertainties:
  1  1.8125
  2  0.000985166
  3  1.19834
  4  1.24943
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/57271': 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) = 553.172717671
delta logL = 0.080480857845

Extracting fit parameters...

4FGL J2336.6-4115
   Spectrum: LogParabola
490         norm:  6.666e-01  1.813e+00  1.000e-04  1.000e+04 ( 1.000e-12)
491        alpha:  5.000e+00  9.852e-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:  1.055e+00  1.249e+00  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.899e-01  1.198e+00  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/57271/cmap_HighResolution_557625601_557884801_4FGL_J2336.6-4115_daily_bin1228.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.25e-04', job_status='DONE', photon_flux_upper_limit='8.04e-07', time_completed='2021-09-30 02:03:16.519274', job_id='57271', GAL2='1.05', fit_tolerance='1e-08', EG2='0.99', EG='1.15', time_epoch_completed='1632992596.52', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.93', dlogl='8.05e-02', ts2='0.19', photon_index_error='0.00', photon_index='2.22' WHERE bin_id='1228' AND source_name='4FGL J2336.6-4115' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 02:03:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0075>
Subject: Job 57271: <4FGL_J2336.6-4115_daily_bin1228> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2336.6-4115_daily_bin1228 354.164 -41.2579 557625601 557884801 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 :                                   393.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             343.12 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   478 sec.
    Turnaround time :                            480 sec.

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

