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


Performing analysis on: 4FGL_J2336.6-4115_daily_bin1272
RA = 354.164, Dec = -41.2579
tmin = 569030401, tmax = 569289601
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='57337', job_status='RUN', time_executed='2021-09-30 01:57:37.978033', time_epoch_executed='1632992257.98' WHERE source_name='4FGL J2336.6-4115' and cadence='daily' and bin_id='1272'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/57337

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/57337/ft1_4FGL_J2336.6-4115_daily_bin1272.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/57337/ft2_4FGL_J2336.6-4115_daily_bin1272.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/57337/ft1_4FGL_J2336.6-4115_daily_bin1272.fits outfile=/scratch/kocevski/57337/ft1_filteredMKT_4FGL_J2336.6-4115_daily_bin1272.fits ra=354.164 dec=-41.2579 rad=12.0 tmin=569030401.0 tmax=569289601.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.57
user 3.34
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/57337/ft1_filtered_4FGL_J2336.6-4115_daily_bin1272.fits" evtable="EVENTS" scfile=/scratch/kocevski/57337/ft2_4FGL_J2336.6-4115_daily_bin1272.fits sctable="SC_DATA" outfile=/scratch/kocevski/57337/ltcube_569030401_569289601_4FGL_J2336.6-4115_daily_bin1272.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/57337/ft2_4FGL_J2336.6-4115_daily_bin1272.fits
.....................!
real 11.76
user 11.42
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/57337/ft1_filtered_4FGL_J2336.6-4115_daily_bin1272.fits evtable="EVENTS" scfile=/scratch/kocevski/57337/ft2_4FGL_J2336.6-4115_daily_bin1272.fits sctable="SC_DATA" expcube=/scratch/kocevski/57337/ltcube_569030401_569289601_4FGL_J2336.6-4115_daily_bin1272.fits outfile=/scratch/kocevski/57337/expmap_569030401_569289601_4FGL_J2336.6-4115_daily_bin1272.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/57337/ltcube_569030401_569289601_4FGL_J2336.6-4115_daily_bin1272.fits
.....................!
real 189.53
user 184.88
sys 4.34

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/57337/ft1_filtered_4FGL_J2336.6-4115_daily_bin1272.fits scfile=/scratch/kocevski/57337/ft2_4FGL_J2336.6-4115_daily_bin1272.fits outfile=/scratch/kocevski/57337/cmap_569030401_569289601_4FGL_J2336.6-4115_daily_bin1272.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.34
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/57337/ft1_filtered_4FGL_J2336.6-4115_daily_bin1272.fits scfile=/scratch/kocevski/57337/ft2_4FGL_J2336.6-4115_daily_bin1272.fits outfile=/scratch/kocevski/57337/cmap_HighResolution_569030401_569289601_4FGL_J2336.6-4115_daily_bin1272.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.53
user 0.37
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/57337/ft1_filtered_4FGL_J2336.6-4115_daily_bin1272.fits evtable="EVENTS" scfile=/scratch/kocevski/57337/ft2_4FGL_J2336.6-4115_daily_bin1272.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/57337/Model_4FGL_J2336.6-4115_daily_bin1272.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/57337/ft1_filtered_4FGL_J2336.6-4115_daily_bin1272.fits.....................!
real 33.60
user 32.41
sys 1.12

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10345E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10474E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    23.969       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10110E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10311E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.5886       1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.9489       1.0000         .10000E-03   10000.    
    12 'Prefactor '    24.512       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.6445       1.0000         .10000E-03   10000.    
    14 'Prefactor '    10.803       1.0000         .10000E-03   10000.    
    15 'norm      '    .10042E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    4.7981       1.0000         .10000E-03   10000.    
    17 'norm      '    9.1146       1.0000         .10000E-03   10000.    
    18 'norm      '    3.0132       1.0000         .10000E-03   10000.    
    19 'Prefactor '    6.2219       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .16934E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    35.652       1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    5.6301       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .29425E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    40.053       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10827E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    9.9478       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .42212       1.0000         .10000E-03   10000.    
    32 'Prefactor '    .10307E-03   1.0000         .10000E-03   10000.    
    33 'Normalizat'    1.2872       1.0000         .10000E-01   10.000    
    34 'Prefactor '    .63649       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=   3952.487     FROM MIGRAD    STATUS=CONVERGED    984 CALLS     4915 TOTAL
                     EDM=   .72E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    19.421        .19681E-07** at limit **
   2  Prefactor     .10000E-03    8.0680       -.23706E-06** at limit **
   3  Prefactor     24.023        40.759        .93319E-06   -.81421E-04
   4  Prefactor     .10000E-03    51.591        .12428E-06** at limit **
   5  Prefactor     .10000E-03    14.218        .15134E-06** at limit **
   6  Prefactor     .10000E-03    3.4964       -.12492E-06** at limit **
   7  Prefactor     .10000E-03    2.2294        .11591E-06** at limit **
   8  Prefactor     .10000E-03    21.326        .45129E-06** at limit **
   9  Prefactor     .10000E-03    48.171        .11571E-06** at limit **
  10  Prefactor     4.5967        74.524       -.11032E-05    .98444E-05
  11  Prefactor     4.9517        8.1539        .74824E-07    .42691E-05
  12  Prefactor     24.515        24.588       -.99718E-08    .26350E-05
  13  Prefactor     1.0164        1491.3       -.10546E-04   -.94107E-06
  14  Prefactor     10.811        13.270        .27198E-06   -.17265E-04
  15  norm          .10000E-03    6.4680        .65584E-07** at limit **
  16  norm          4.7980        5.1291       -.12006E-05    .34139E-03
  17  norm          9.1128        6.4386        .12308E-10   -.23868E-04
  18  norm          3.0123        8.1765        .32036E-06   -.26934E-04
  19  Prefactor     6.2163        8.0401        .20084E-06    .10381E-04
  20  Prefactor     .10000E-03    77.198        .61217E-06** at limit **
  21  Prefactor     35.591        77.907       -.11715E-05    .75164E-05
  22  norm          .10000E-03    3.2818        .69966E-07** at limit **
  23  Prefactor     .10000E-03    23.843        .21092E-06** at limit **
  24  norm          .10000E-03    .41973        .65478E-07** at limit **
  25  norm          5.6304        4.9963        .35563E-07   -.15691E-04
  26  Prefactor     .10089E-03    2.5119       -.97339E-06** at limit **
  27  Prefactor     40.077        28.709        .42990E-05    .37044E-04
  28  Prefactor     .10000E-03    154.36        .10398E-06** at limit **
  29  norm          10.008        51.244        .78233E-05   -.58719E-04
  30  Prefactor     .10000E-03    14.934        .97222E-06** at limit **
  31  Prefactor     .42057        3.0986       -.38023E-07   -.20192E-03
  32  Prefactor     .10000E-03    46.475        .40206E-06** at limit **
  33  Normalizat    1.2875        .22075        .12513E-05    .35559E-04
  34  Prefactor     .63646        .23085       -.18356E-05    .87610E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 24.0227
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.59669
  Prefactor  = 4.95168
  Prefactor  = 24.5145
  Prefactor  = 1.0164
  Prefactor  = 10.8111
  norm       = 0.0001
  norm       = 4.79795
  norm       = 9.11281
  norm       = 3.01229
  Prefactor  = 6.21635
  Prefactor  = 0.0001
  Prefactor  = 35.5907
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 5.63042
  Prefactor  = 0.000100891
  Prefactor  = 40.0769
  Prefactor  = 0.000100001
  norm       = 10.0076
  Prefactor  = 0.0001
  Prefactor  = 0.420571
  Prefactor  = 0.0001
  Normalizat = 1.28751
  Prefactor  = 0.636458
 **********
 **   18 **HESSE 
 **********

 FCN=   3952.487     FROM HESSE     STATUS=OK           734 CALLS     5649 TOTAL
                     EDM=   .34E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    19.422        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    8.0734        .17441E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     24.023        40.675        .81819E-04   -1.4727    
   4  Prefactor     .10000E-03    52.066        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    14.231        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    3.5093        .11480E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    2.2393        .91641E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    21.400        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    48.208        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     4.5967        74.251        .18791E-03   -1.5279    
  11  Prefactor     4.9517        8.1356        .18079E-03   -1.5263    
  12  Prefactor     24.515        24.590        .80908E-04   -1.4717    
  13  Prefactor     1.0164        1583.9        .32939E-02   -1.5506    
  14  Prefactor     10.811        13.262        .12190E-03   -1.5050    
  15  norm          .10000E-03    6.4762        .15616E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          4.7980        5.0576        .70524E-03   -1.5270    
  17  norm          9.1128        6.4342        .13026E-03   -1.5104    
  18  norm          3.0123        8.1393        .23381E-03   -1.5361    
  19  Prefactor     6.2163        7.9923        .16094E-03   -1.5209    
  20  Prefactor     .10000E-03    77.590        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     35.591        78.137        .67118E-04   -1.4514    
  22  norm          .10000E-03    3.3246        .11104E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    23.977        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    .42332        .39660E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          5.6304        4.9925        .12694E-03   -1.5233    
  26  Prefactor     .10089E-03    46.316        .18549E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     40.077        28.937        .63336E-04   -1.4441    
  28  Prefactor     .10000E-03    155.31        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          10.008        50.916        .12705E-03   -1.5075    
  30  Prefactor     .10000E-03    15.379        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .42057        5.5970        .21076E-02   -1.5578    
  32  Prefactor     .10000E-03    46.532        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Normalizat    1.2875        .25358        .20698E-03   -.83940    
  34  Prefactor     .63646        .26275        .30755E-03   -1.0607    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.41345e-08
Minuit parameter uncertainties:
  1  3.32315e-05
  2  3.3093e-06
  3  40.7217
  4  0.000170465
  5  1.33763e-05
  6  7.07065e-07
  7  4.19943e-06
  8  2.09828e-05
  9  2.76868e-05
  10  37.0031
  11  8.1374
  12  24.6002
  13  82.5313
  14  13.2653
  15  3.19154e-06
  16  5.05804
  17  6.43464
  18  8.14224
  19  7.99365
  20  5.53444e-05
  21  78.3631
  22  4.16046e-06
  23  0.000161855
  24  3.88131e-06
  25  4.99287
  26  0.0128548
  27  28.9472
  28  0.000657754
  29  45.2073
  30  6.80147e-05
  31  3.06848
  32  4.29229e-05
  33  0.253827
  34  0.263259
Done.

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

Extracting fit parameters...

4FGL J2336.6-4115
   Spectrum: LogParabola
490         norm:  5.630e+00  4.993e+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:  6.365e-01  2.633e-01  0.000e+00  1.000e+01 ( 1.000e+00)
583        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
584        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
581   Normalization:  1.288e+00  2.538e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.01
Ra Dec: 354.164 -41.258
Photon Index (Fixed Index): 2.22 +/- 0.00
Photon Flux (Fixed Index): 3.69e-08 +/- 3.27e-08
Energy Flux (Fixed Index): 1.49e-05 +/- 1.32e-05

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

Saving results to:
/scratch/kocevski/57337/likelihoodResults_569030401_569289601_4FGL_J2336.6-4115_daily_bin1272.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) = 3952.48387799
delta logL = 0.00359459262154

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3952.39049329
delta logL = 0.0969792937917

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.9483       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.5682       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1996       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .70801       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.

 FCN=   3952.390     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      231 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.9483        25.502        .74335E-02    .18797E-02
   2  alpha         3.5682        4.2788        .29579        .37177E-04
   3  Normalizat    1.1995        .72899E-01    .34902E-01    .27553E-05
   4  Prefactor     .70815        .71183E-01    .66232E-01    .15588E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.94828
  alpha      = 3.5682
  Normalizat = 1.19952
  Prefactor  = 0.708146
 **********
 **   18 **HESSE 
 **********

 FCN=   3952.390     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      264 TOTAL
                     EDM=   .86E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.9483        42.250        .57562E-04   -1.5429    
   2  alpha         3.5682        3.6603        .11954E-01    .44148    
   3  Normalizat    1.1995        .38071        .21307E-03   -.86618    
   4  Prefactor     .70815        .36490        .29304E-03   -1.0321    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.64152e-08
Minuit parameter uncertainties:
  1  18.1595
  2  6.91293
  3  0.381593
  4  0.366138
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/57337': 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): 102
logL (Free Index) = 3952.39049295
delta logL = 0.0969796331265

Extracting fit parameters...

4FGL J2336.6-4115
   Spectrum: LogParabola
490         norm:  1.948e+00  1.816e+01  1.000e-04  1.000e+04 ( 1.000e-12)
491        alpha:  3.568e+00  6.913e+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:  7.081e-01  3.661e-01  0.000e+00  1.000e+01 ( 1.000e+00)
583        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
584        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
581   Normalization:  1.200e+00  3.816e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.26
Ra Dec: 354.164 -41.258
Photon Index (Free Index): 3.57 +/- 6.91
Photon Flux (Free Index): 9.25e-08 +/- 2.04e-07
Energy Flux (Free Index): 1.61e-05 +/- 1.14e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/57337/cmap_HighResolution_569030401_569289601_4FGL_J2336.6-4115_daily_bin1272.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.76e-05', comment='SUCCESS', photon_flux='3.69e-08', energy_flux2='1.61e-05', photon_flux_error='3.27e-08', dlogl='9.70e-02', energy_flux='1.49e-05', photon_flux2='9.25e-08', job_status='DONE', time_completed='2021-09-30 02:10:48.575511', photon_index_error2='6.91', photon_index2='3.57', ts='3.01', fit_tolerance='1e-08', GAL='0.64', photon_index_error='0.00', photon_flux_upper_limit='1.18e-07', energy_flux_error2='1.14e-05', EG='1.29', time_epoch_completed='1632993048.58', return_code='0', job_id='57337', GAL2='0.71', EG2='1.20', return_code2='102', energy_flux_error='1.32e-05', photon_flux_error2='2.04e-07', ts2='3.26', photon_index='2.22' WHERE bin_id='1272' AND source_name='4FGL J2336.6-4115' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 02:10:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0228>
Subject: Job 57337: <4FGL_J2336.6-4115_daily_bin1272> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2336.6-4115_daily_bin1272 354.164 -41.2579 569030401 569289601 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 :                                   736.14 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             313.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   923 sec.
    Turnaround time :                            925 sec.

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

