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


Performing analysis on: 4FGL_J2336.6-4115_daily_bin1245
RA = 354.164, Dec = -41.2579
tmin = 562032001, tmax = 562291201
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='57297', job_status='RUN', time_executed='2021-09-30 01:57:28.800197', time_epoch_executed='1632992248.8' WHERE source_name='4FGL J2336.6-4115' and cadence='daily' and bin_id='1245'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/57297

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/57297/ft1_4FGL_J2336.6-4115_daily_bin1245.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/57297/ft2_4FGL_J2336.6-4115_daily_bin1245.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/57297/ft1_4FGL_J2336.6-4115_daily_bin1245.fits outfile=/scratch/kocevski/57297/ft1_filteredMKT_4FGL_J2336.6-4115_daily_bin1245.fits ra=354.164 dec=-41.2579 rad=12.0 tmin=562032001.0 tmax=562291201.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.55
user 3.35
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/57297/ft2_4FGL_J2336.6-4115_daily_bin1245.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/57297/ft1_filteredMKT_4FGL_J2336.6-4115_daily_bin1245.fits evtable="EVENTS" outfile="/scratch/kocevski/57297/ft1_filtered_4FGL_J2336.6-4115_daily_bin1245.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.50
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/57297/ft1_filtered_4FGL_J2336.6-4115_daily_bin1245.fits" evtable="EVENTS" scfile=/scratch/kocevski/57297/ft2_4FGL_J2336.6-4115_daily_bin1245.fits sctable="SC_DATA" outfile=/scratch/kocevski/57297/ltcube_562032001_562291201_4FGL_J2336.6-4115_daily_bin1245.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/57297/ft2_4FGL_J2336.6-4115_daily_bin1245.fits
.....................!
real 11.71
user 11.37
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/57297/ft1_filtered_4FGL_J2336.6-4115_daily_bin1245.fits evtable="EVENTS" scfile=/scratch/kocevski/57297/ft2_4FGL_J2336.6-4115_daily_bin1245.fits sctable="SC_DATA" expcube=/scratch/kocevski/57297/ltcube_562032001_562291201_4FGL_J2336.6-4115_daily_bin1245.fits outfile=/scratch/kocevski/57297/expmap_562032001_562291201_4FGL_J2336.6-4115_daily_bin1245.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/57297/ltcube_562032001_562291201_4FGL_J2336.6-4115_daily_bin1245.fits
.....................!
real 190.83
user 184.98
sys 5.47

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/57297/ft1_filtered_4FGL_J2336.6-4115_daily_bin1245.fits scfile=/scratch/kocevski/57297/ft2_4FGL_J2336.6-4115_daily_bin1245.fits outfile=/scratch/kocevski/57297/cmap_562032001_562291201_4FGL_J2336.6-4115_daily_bin1245.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/57297/ft1_filtered_4FGL_J2336.6-4115_daily_bin1245.fits scfile=/scratch/kocevski/57297/ft2_4FGL_J2336.6-4115_daily_bin1245.fits outfile=/scratch/kocevski/57297/cmap_HighResolution_562032001_562291201_4FGL_J2336.6-4115_daily_bin1245.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.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    81.038       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10072E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    97.354       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.1187       1.0000         .10000E-03   10000.    
    12 'Prefactor '    27.800       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.9717       1.0000         .10000E-03   10000.    
    15 'norm      '    7.1754       1.0000         .10000E-03   10000.    
    16 'norm      '    .12294E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.5870       1.0000         .10000E-03   10000.    
    18 'norm      '    15.664       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    28.911       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .28138E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    12.962       1.0000         .10000E-03   10000.    
    24 'norm      '    .77121       1.0000         .10000E-03   10000.    
    25 'norm      '    .39029       1.0000         .10000E-03   10000.    
    26 'Prefactor '    5.8320       1.0000         .10000E-03   10000.    
    27 'Prefactor '    13.695       1.0000         .10000E-03   10000.    
    28 'Prefactor '    20.764       1.0000         .10000E-03   10000.    
    29 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .72926       1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10599E-03   1.0000         .10000E-03   10000.    
    32 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    33 'Normalizat'    .62889       1.0000         .10000E-01   10.000    
    34 'Prefactor '    .98897       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=   4522.180     FROM MIGRAD    STATUS=CONVERGED    925 CALLS     4928 TOTAL
                     EDM=   .57E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     81.033        55.262       -.11958E-05   -.65471E-04
   2  Prefactor     .10000E-03    19.737       -.26496E-05** at limit **
   3  Prefactor     97.354        51.610        .44151E-06   -.98192E-04
   4  Prefactor     .10000E-03    6.8392       -.76253E-06** at limit **
   5  Prefactor     .10000E-03    17.451       -.86396E-06** at limit **
   6  Prefactor     .10000E-03    2.5729        .17998E-08** at limit **
   7  Prefactor     .10000E-03    2.2421        .69294E-08** at limit **
   8  Prefactor     .10000E-03    8.4262       -.62874E-06** at limit **
   9  Prefactor     .10000E-03    14.850        .13616E-05** at limit **
  10  Prefactor     .10000E-03    11.443       -.86667E-06** at limit **
  11  Prefactor     5.1182        6.8522        .34786E-06   -.15970E-04
  12  Prefactor     27.798        32.414       -.20482E-06   -.18378E-04
  13  Prefactor     .10000E-03    46.936       -.52978E-06** at limit **
  14  Prefactor     4.9755        13.239        .41330E-06   -.11897E-03
  15  norm          7.1754        7.2014       -.10390E-05    .74751E-04
  16  norm          .10001E-03    5.2554        .12391E-06** at limit **
  17  norm          1.5881        3.9184       -.85502E-06    .38288E-04
  18  norm          15.663        9.3151       -.13046E-06   -.37697E-04
  19  Prefactor     .10001E-03    7.1320        .11753E-05** at limit **
  20  Prefactor     28.947        32.043        .52934E-06    .21397E-03
  21  Prefactor     .10000E-03    34.039        .46957E-05** at limit **
  22  norm          .10105E-03    2.7370        .11244E-06** at limit **
  23  Prefactor     12.968        14.334       -.43755E-07   -.41163E-03
  24  norm          .77060        1.4183        .35990E-06   -.84731E-03
  25  norm          .38832        3.5278        .17588E-06    .13209E-03
  26  Prefactor     5.8320        4.1655        .21977E-06   -.21634E-03
  27  Prefactor     13.698        28.910        .12627E-05   -.12454E-03
  28  Prefactor     20.763        25.109       -.69391E-07   -.77237E-05
  29  norm          .10000E-03    11.960       -.74697E-07** at limit **
  30  Prefactor     .72935        2.7642        .90484E-06    .66694E-04
  31  Prefactor     .10000E-03    3.7837        .18059E-05** at limit **
  32  Prefactor     .10000E-03    25.511       -.17242E-05** at limit **
  33  Normalizat    .62887        .18051       -.43817E-05   -.33975E-03
  34  Prefactor     .98904        .20008        .10652E-05   -.50089E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 81.033
  Prefactor  = 0.0001
  Prefactor  = 97.3545
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.11825
  Prefactor  = 27.7984
  Prefactor  = 0.0001
  Prefactor  = 4.9755
  norm       = 7.17541
  norm       = 0.000100005
  norm       = 1.58812
  norm       = 15.663
  Prefactor  = 0.000100009
  Prefactor  = 28.9474
  Prefactor  = 0.000100001
  norm       = 0.000101055
  Prefactor  = 12.9684
  norm       = 0.770597
  norm       = 0.388319
  Prefactor  = 5.83197
  Prefactor  = 13.6984
  Prefactor  = 20.7633
  norm       = 0.0001
  Prefactor  = 0.729353
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Normalizat = 0.628867
  Prefactor  = 0.989044
 **********
 **   18 **HESSE 
 **********

 FCN=   4522.180     FROM HESSE     STATUS=OK           740 CALLS     5668 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     81.033        55.346        .44616E-04   -1.3905    
   2  Prefactor     .10000E-03    19.817        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     97.354        51.497        .40739E-04   -1.3731    
   4  Prefactor     .10000E-03    6.8392        .17177E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    17.490        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    2.5779        .10534E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    2.2820        .98319E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    8.4293        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    14.867        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    11.451        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     5.1182        6.8502        .17770E-03   -1.5255    
  12  Prefactor     27.798        32.420        .75983E-04   -1.4653    
  13  Prefactor     .10000E-03    47.061        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     4.9755        12.994        .18036E-03   -1.5262    
  15  norm          7.1754        7.1981        .74874E-03   -1.5172    
  16  norm          .10001E-03    15.729        .28825E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.5881        3.9155        .19771E-03   -1.5456    
  18  norm          15.663        9.3096        .10120E-03   -1.4916    
  19  Prefactor     .10001E-03    14.455        .30827E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     28.947        40.642        .74511E-04   -1.4631    
  21  Prefactor     .10000E-03    34.445        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10105E-03    12.166        .32279E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     12.968        13.604        .11126E-03   -1.4988    
  24  norm          .77060        1.2726        .87107E-04   -1.5532    
  25  norm          .38832        6.3040        .22576E-02   -1.5583    
  26  Prefactor     5.8320        4.1502        .10134E-03   -1.5225    
  27  Prefactor     13.698        28.533        .10823E-03   -1.4968    
  28  Prefactor     20.763        25.105        .87898E-04   -1.4796    
  29  norm          .10000E-03    11.961        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .72935        2.7117        .21156E-03   -1.5537    
  31  Prefactor     .10000E-03    7.2763        .24186E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     .10000E-03    25.568        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Normalizat    .62887        .21009        .23762E-03   -1.0677    
  34  Prefactor     .98904        .23929        .22615E-03   -.93096    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.71304e-09
Minuit parameter uncertainties:
  1  55.3815
  2  0.000104562
  3  51.521
  4  1.33706e-05
  5  1.57087e-05
  6  2.63306e-06
  7  1.20587e-05
  8  1.04975e-07
  9  4.87213e-05
  10  2.36211e-06
  11  6.85125
  12  32.4404
  13  5.85954e-05
  14  13.0016
  15  7.19899
  16  0.000584897
  17  3.91615
  18  9.31047
  19  0.000703848
  20  40.6807
  21  0.00027411
  22  0.00716643
  23  13.6073
  24  1.27263
  25  3.12918
  26  4.1504
  27  28.5609
  28  25.1177
  29  4.21629e-06
  30  2.71219
  31  0.000265593
  32  3.38377e-05
  33  0.210353
  34  0.239552
Done.

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

Extracting fit parameters...

4FGL J2336.6-4115
   Spectrum: LogParabola
490         norm:  3.883e-01  3.129e+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:  9.890e-01  2.396e-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:  6.289e-01  2.104e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/57297/likelihoodResults_562032001_562291201_4FGL_J2336.6-4115_daily_bin1245.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) = 4521.99888185
delta logL = 0.180637169376

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4521.9752091
delta logL = 0.204309919603

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .49730       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.5775       1.0000          .0000       5.0000    
     3 'Normalizat'    .60365       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0041       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=   4521.975     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      239 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .49748        3.0283        .45039E-04    .16236E-02
   2  alpha         3.5774        3.9980        .22420E-01    .66671E-04
   3  Normalizat    .60377        .20570        .24203E-03    .12100E-03
   4  Prefactor     1.0040        .23880        .22451E-03    .12700E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.49748
  alpha      = 3.57743
  Normalizat = 0.603773
  Prefactor  = 1.00397
 **********
 **   18 **HESSE 
 **********

 FCN=   4521.975     FROM HESSE     STATUS=OK            25 CALLS      264 TOTAL
                     EDM=   .77E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .49748        1.5222        .18016E-05   -1.5567    
   2  alpha         3.5774        1.6456        .89680E-03    .44557    
   3  Normalizat    .60377        .20549        .96812E-05   -1.0782    
   4  Prefactor     1.0040        .23831        .44903E-04   -.92597    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.68847e-10
Minuit parameter uncertainties:
  1  1.52235
  2  1.84424
  3  0.205753
  4  0.238562
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/57297': 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) = 4521.97520883
delta logL = 0.204310191358

Extracting fit parameters...

4FGL J2336.6-4115
   Spectrum: LogParabola
490         norm:  4.975e-01  1.522e+00  1.000e-04  1.000e+04 ( 1.000e-12)
491        alpha:  3.577e+00  1.844e+00  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.004e+00  2.386e-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:  6.038e-01  2.058e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.02
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/57297/cmap_HighResolution_562032001_562291201_4FGL_J2336.6-4115_daily_bin1245.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.58e-05', job_status='DONE', photon_flux_upper_limit='6.36e-08', time_completed='2021-09-30 02:10:57.626571', job_id='57297', GAL2='1.00', fit_tolerance='1e-08', EG2='0.60', EG='0.63', time_epoch_completed='1632993057.63', return_code2='0', ts='0.02', comment='SUCCESS', return_code='0', GAL='0.99', dlogl='2.04e-01', ts2='0.44', photon_index_error='0.00', photon_index='2.22' WHERE bin_id='1245' AND source_name='4FGL J2336.6-4115' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 02:10:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0082>
Subject: Job 57297: <4FGL_J2336.6-4115_daily_bin1245> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2336.6-4115_daily_bin1245 354.164 -41.2579 562032001 562291201 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 :                                   805.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             293.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   936 sec.
    Turnaround time :                            938 sec.

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

